Skip to content

Commit ad733be

Browse files
authored
feat(Field): message -> errorMessage prop (#711)
1 parent 77275fb commit ad733be

25 files changed

+190
-30
lines changed

.changeset/slimy-vans-provide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cube-dev/ui-kit": minor
3+
---
4+
5+
The `message` field prop is now deprecated. Use `errorMessage` or `description` instead.

src/components/fields/Checkbox/Checkbox.docs.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ Checkboxes allow users to select multiple items from a list of individual items,
2020

2121
<Story of={CheckboxStories.Default} />
2222

23+
---
24+
2325
### Properties
2426

2527
<Controls of={CheckboxStories.Default} />

src/components/fields/ComboBox/ComboBox.docs.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ A combo box combines a text input with a listbox, allowing users to filter a lis
2020

2121
<Story of={ComboBoxStories.Default} />
2222

23+
---
24+
2325
### Properties
2426

2527
<Controls of={ComboBoxStories.Default} />

src/components/fields/DatePicker/DatePicker.docs.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ A date picker combines a text input with a calendar interface, allowing users to
2020

2121
<Story of={DatePickerStories.Default} />
2222

23+
---
24+
2325
### Properties
2426

2527
<Controls of={DatePickerStories.Default} />

src/components/fields/FileInput/FileInput.docs.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ A file input component that allows users to select and upload files through a cu
2020

2121
<Story of={FileInputStories.Default} />
2222

23+
---
24+
2325
### Properties
2426

2527
<Controls of={FileInputStories.Default} />

src/components/fields/NumberInput/NumberInput.docs.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ A number input component that allows users to enter numeric values and increment
2222
<Story of={NumberInputStories.Default} />
2323
</Canvas>
2424

25+
---
26+
2527
### Properties
2628

2729
<Controls />
@@ -110,7 +112,7 @@ The `mods` prop accepts the following modifiers you can override:
110112
<NumberInput
111113
label="Price"
112114
validationState="invalid"
113-
message="Price must be positive"
115+
errorMessage="Price must be positive"
114116
/>
115117
```
116118

src/components/fields/PasswordInput/PasswordInput.docs.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ A password input is a specialized text field that masks user input to protect se
2020

2121
<Story of={PasswordInputStories.Default} />
2222

23+
---
24+
2325
### Properties
2426

2527
<Controls of={PasswordInputStories.Default} />

src/components/fields/RadioGroup/RadioGroup.docs.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ A radio group allows users to select exactly one option from a set of mutually e
2020

2121
<Story of={RadioGroupStories.Default} />
2222

23+
---
24+
2325
### Properties
2426

2527
<Controls of={RadioGroupStories.Default} />

src/components/fields/SearchInput/SearchInput.docs.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ A search input provides a specialized text field for search functionality, featu
2020

2121
<Story of={SearchInputStories.Default} />
2222

23+
---
24+
2325
### Properties
2426

2527
<Controls of={SearchInputStories.Default} />

src/components/fields/Select/Select.docs.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ A select allows users to choose a single option from a list of predefined choice
2020

2121
<Story of={SelectStories.Default} />
2222

23+
---
24+
2325
### Properties
2426

2527
<Controls of={SelectStories.Default} />

0 commit comments

Comments
 (0)