@pareto-engineering/design-system 4.0.0-alpha.63 → 4.0.0-alpha.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/f/FormInput/FormInput.js +13 -43
- package/dist/cjs/f/common/Label/Label.js +3 -18
- package/dist/cjs/f/common/Label/styles.scss +0 -5
- package/dist/cjs/f/common/index.js +1 -21
- package/dist/cjs/f/fields/Checkbox/Checkbox.js +10 -20
- package/dist/cjs/f/fields/Checkbox/styles.scss +7 -5
- package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +8 -21
- package/dist/cjs/f/fields/ChoicesInput/styles.scss +44 -41
- package/dist/cjs/f/fields/EditorInput/EditorInput.js +8 -33
- package/dist/cjs/f/fields/EditorInput/styles.scss +92 -90
- package/dist/cjs/f/fields/LinkInput/LinkInput.js +10 -20
- package/dist/cjs/f/fields/LinkInput/styles.scss +52 -51
- package/dist/cjs/f/fields/QueryChoices/QueryChoices.js +2 -26
- package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +0 -24
- package/dist/cjs/f/fields/QueryCombobox/common/Combobox/Combobox.js +10 -17
- package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +13 -19
- package/dist/cjs/f/fields/QueryCombobox/styles.scss +11 -4
- package/dist/cjs/f/fields/QuerySelect/QuerySelect.js +2 -10
- package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +11 -33
- package/dist/cjs/f/fields/RatingsInput/styles.scss +5 -1
- package/dist/cjs/f/fields/SelectInput/SelectInput.js +9 -33
- package/dist/cjs/f/fields/SelectInput/styles.scss +5 -2
- package/dist/cjs/f/fields/TextInput/TextInput.js +15 -37
- package/dist/cjs/f/fields/TextInput/styles.scss +37 -30
- package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +11 -35
- package/dist/cjs/f/fields/TextareaInput/styles.scss +30 -27
- package/dist/cjs/f/fields/index.js +1 -26
- package/dist/es/f/FormInput/FormInput.js +3 -33
- package/dist/es/f/common/Description/Description.js +1 -1
- package/dist/es/f/common/Label/Label.js +4 -20
- package/dist/es/f/common/Label/styles.scss +0 -5
- package/dist/es/f/common/index.js +1 -3
- package/dist/es/f/fields/Checkbox/Checkbox.js +11 -20
- package/dist/es/f/fields/Checkbox/styles.scss +7 -5
- package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +9 -22
- package/dist/es/f/fields/ChoicesInput/styles.scss +44 -41
- package/dist/es/f/fields/EditorInput/EditorInput.js +9 -34
- package/dist/es/f/fields/EditorInput/styles.scss +92 -90
- package/dist/es/f/fields/LinkInput/LinkInput.js +11 -19
- package/dist/es/f/fields/LinkInput/styles.scss +52 -51
- package/dist/es/f/fields/QueryChoices/QueryChoices.js +2 -26
- package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +1 -25
- package/dist/es/f/fields/QueryCombobox/common/Combobox/Combobox.js +11 -18
- package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +14 -20
- package/dist/es/f/fields/QueryCombobox/styles.scss +11 -4
- package/dist/es/f/fields/QuerySelect/QuerySelect.js +2 -10
- package/dist/es/f/fields/RatingsInput/RatingsInput.js +12 -35
- package/dist/es/f/fields/RatingsInput/styles.scss +5 -1
- package/dist/es/f/fields/SelectInput/SelectInput.js +10 -34
- package/dist/es/f/fields/SelectInput/styles.scss +5 -2
- package/dist/es/f/fields/TextInput/TextInput.js +16 -36
- package/dist/es/f/fields/TextInput/styles.scss +37 -30
- package/dist/es/f/fields/TextareaInput/TextareaInput.js +11 -35
- package/dist/es/f/fields/TextareaInput/styles.scss +30 -27
- package/dist/es/f/fields/index.js +1 -2
- package/package.json +3 -3
- package/src/stories/f/Checkbox.stories.jsx +13 -21
- package/src/stories/f/ChoicesInput.stories.jsx +12 -27
- package/src/stories/f/EditorInput.stories.jsx +7 -14
- package/src/stories/f/LinkInput.stories.jsx +15 -22
- package/src/stories/f/QueryChoices.stories.jsx +12 -19
- package/src/stories/f/QueryCombobox.stories.jsx +16 -24
- package/src/stories/f/QuerySelect.stories.jsx +12 -19
- package/src/stories/f/RatingsInput.stories.jsx +7 -14
- package/src/stories/f/SelectInput.stories.jsx +12 -19
- package/src/stories/f/TextInput.stories.jsx +16 -23
- package/src/stories/f/TextareaInput.stories.jsx +7 -14
- package/src/ui/f/FormInput/FormInput.jsx +12 -57
- package/src/ui/f/common/Description/Description.jsx +2 -2
- package/src/ui/f/common/Label/Label.jsx +2 -20
- package/src/ui/f/common/Label/styles.scss +0 -5
- package/src/ui/f/common/index.js +0 -2
- package/src/ui/f/fields/Checkbox/Checkbox.jsx +22 -33
- package/src/ui/f/fields/Checkbox/styles.scss +7 -5
- package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +43 -57
- package/src/ui/f/fields/ChoicesInput/styles.scss +44 -41
- package/src/ui/f/fields/EditorInput/EditorInput.jsx +13 -40
- package/src/ui/f/fields/EditorInput/styles.scss +92 -90
- package/src/ui/f/fields/LinkInput/LinkInput.jsx +35 -44
- package/src/ui/f/fields/LinkInput/styles.scss +52 -51
- package/src/ui/f/fields/QueryChoices/QueryChoices.jsx +0 -28
- package/src/ui/f/fields/QueryCombobox/QueryCombobox.jsx +2 -30
- package/src/ui/f/fields/QueryCombobox/common/Combobox/Combobox.jsx +32 -41
- package/src/ui/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.jsx +55 -62
- package/src/ui/f/fields/QueryCombobox/styles.scss +11 -4
- package/src/ui/f/fields/QuerySelect/QuerySelect.jsx +0 -8
- package/src/ui/f/fields/RatingsInput/RatingsInput.jsx +16 -46
- package/src/ui/f/fields/RatingsInput/styles.scss +5 -1
- package/src/ui/f/fields/SelectInput/SelectInput.jsx +28 -58
- package/src/ui/f/fields/SelectInput/styles.scss +5 -2
- package/src/ui/f/fields/TextInput/TextInput.jsx +24 -49
- package/src/ui/f/fields/TextInput/styles.scss +37 -30
- package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +28 -57
- package/src/ui/f/fields/TextareaInput/styles.scss +30 -27
- package/src/ui/f/fields/index.js +0 -1
- package/tests/__snapshots__/Storyshots.test.js.snap +609 -8434
- package/dist/cjs/f/common/InputWrapper/InputWrapper.js +0 -73
- package/dist/cjs/f/common/InputWrapper/index.js +0 -13
- package/dist/cjs/f/common/InputWrapper/styles.scss +0 -13
- package/dist/cjs/f/common/V2/Description/Description.js +0 -76
- package/dist/cjs/f/common/V2/Description/index.js +0 -13
- package/dist/cjs/f/common/V2/Description/styles.scss +0 -10
- package/dist/cjs/f/common/V2/Label/Label.js +0 -84
- package/dist/cjs/f/common/V2/Label/index.js +0 -13
- package/dist/cjs/f/common/V2/Label/styles.scss +0 -9
- package/dist/cjs/f/common/V2/index.js +0 -19
- package/dist/cjs/f/fields/V2/Checkbox/Checkbox.js +0 -122
- package/dist/cjs/f/fields/V2/Checkbox/index.js +0 -13
- package/dist/cjs/f/fields/V2/Checkbox/styles.scss +0 -16
- package/dist/cjs/f/fields/V2/ChoicesInput/ChoicesInput.js +0 -154
- package/dist/cjs/f/fields/V2/ChoicesInput/common/Choice/Choice.js +0 -104
- package/dist/cjs/f/fields/V2/ChoicesInput/common/Choice/index.js +0 -13
- package/dist/cjs/f/fields/V2/ChoicesInput/common/index.js +0 -12
- package/dist/cjs/f/fields/V2/ChoicesInput/index.js +0 -13
- package/dist/cjs/f/fields/V2/ChoicesInput/styles.scss +0 -79
- package/dist/cjs/f/fields/V2/EditorInput/EditorInput.js +0 -197
- package/dist/cjs/f/fields/V2/EditorInput/common/Toolbar.js +0 -257
- package/dist/cjs/f/fields/V2/EditorInput/common/TreeViewPlugin.js +0 -18
- package/dist/cjs/f/fields/V2/EditorInput/common/index.js +0 -20
- package/dist/cjs/f/fields/V2/EditorInput/index.js +0 -13
- package/dist/cjs/f/fields/V2/EditorInput/styles.scss +0 -149
- package/dist/cjs/f/fields/V2/LinkInput/LinkInput.js +0 -156
- package/dist/cjs/f/fields/V2/LinkInput/index.js +0 -13
- package/dist/cjs/f/fields/V2/LinkInput/styles.scss +0 -90
- package/dist/cjs/f/fields/V2/QueryChoices/QueryChoices.js +0 -137
- package/dist/cjs/f/fields/V2/QueryChoices/index.js +0 -13
- package/dist/cjs/f/fields/V2/QueryCombobox/QueryCombobox.js +0 -229
- package/dist/cjs/f/fields/V2/QueryCombobox/common/Combobox/Combobox.js +0 -236
- package/dist/cjs/f/fields/V2/QueryCombobox/common/Combobox/index.js +0 -13
- package/dist/cjs/f/fields/V2/QueryCombobox/common/Menu/Menu.js +0 -83
- package/dist/cjs/f/fields/V2/QueryCombobox/common/Menu/index.js +0 -13
- package/dist/cjs/f/fields/V2/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +0 -300
- package/dist/cjs/f/fields/V2/QueryCombobox/common/MultipleCombobox/index.js +0 -13
- package/dist/cjs/f/fields/V2/QueryCombobox/common/index.js +0 -26
- package/dist/cjs/f/fields/V2/QueryCombobox/index.js +0 -13
- package/dist/cjs/f/fields/V2/QueryCombobox/styles.scss +0 -127
- package/dist/cjs/f/fields/V2/QuerySelect/QuerySelect.js +0 -198
- package/dist/cjs/f/fields/V2/QuerySelect/index.js +0 -13
- package/dist/cjs/f/fields/V2/RatingsInput/RatingsInput.js +0 -130
- package/dist/cjs/f/fields/V2/RatingsInput/common/Rating/Rating.js +0 -117
- package/dist/cjs/f/fields/V2/RatingsInput/common/Rating/index.js +0 -13
- package/dist/cjs/f/fields/V2/RatingsInput/common/index.js +0 -12
- package/dist/cjs/f/fields/V2/RatingsInput/index.js +0 -13
- package/dist/cjs/f/fields/V2/RatingsInput/styles.scss +0 -48
- package/dist/cjs/f/fields/V2/SelectInput/SelectInput.js +0 -154
- package/dist/cjs/f/fields/V2/SelectInput/index.js +0 -13
- package/dist/cjs/f/fields/V2/SelectInput/styles.scss +0 -87
- package/dist/cjs/f/fields/V2/TextInput/TextInput.js +0 -155
- package/dist/cjs/f/fields/V2/TextInput/index.js +0 -13
- package/dist/cjs/f/fields/V2/TextInput/styles.scss +0 -78
- package/dist/cjs/f/fields/V2/TextareaInput/TextareaInput.js +0 -152
- package/dist/cjs/f/fields/V2/TextareaInput/index.js +0 -13
- package/dist/cjs/f/fields/V2/TextareaInput/styles.scss +0 -53
- package/dist/cjs/f/fields/V2/index.js +0 -82
- package/dist/es/f/common/InputWrapper/InputWrapper.js +0 -61
- package/dist/es/f/common/InputWrapper/index.js +0 -2
- package/dist/es/f/common/InputWrapper/styles.scss +0 -13
- package/dist/es/f/common/V2/Description/Description.js +0 -68
- package/dist/es/f/common/V2/Description/index.js +0 -2
- package/dist/es/f/common/V2/Description/styles.scss +0 -10
- package/dist/es/f/common/V2/Label/Label.js +0 -76
- package/dist/es/f/common/V2/Label/index.js +0 -2
- package/dist/es/f/common/V2/Label/styles.scss +0 -9
- package/dist/es/f/common/V2/index.js +0 -2
- package/dist/es/f/fields/V2/Checkbox/Checkbox.js +0 -114
- package/dist/es/f/fields/V2/Checkbox/index.js +0 -2
- package/dist/es/f/fields/V2/Checkbox/styles.scss +0 -16
- package/dist/es/f/fields/V2/ChoicesInput/ChoicesInput.js +0 -148
- package/dist/es/f/fields/V2/ChoicesInput/common/Choice/Choice.js +0 -97
- package/dist/es/f/fields/V2/ChoicesInput/common/Choice/index.js +0 -2
- package/dist/es/f/fields/V2/ChoicesInput/common/index.js +0 -1
- package/dist/es/f/fields/V2/ChoicesInput/index.js +0 -2
- package/dist/es/f/fields/V2/ChoicesInput/styles.scss +0 -79
- package/dist/es/f/fields/V2/EditorInput/EditorInput.js +0 -192
- package/dist/es/f/fields/V2/EditorInput/common/Toolbar.js +0 -246
- package/dist/es/f/fields/V2/EditorInput/common/TreeViewPlugin.js +0 -11
- package/dist/es/f/fields/V2/EditorInput/common/index.js +0 -2
- package/dist/es/f/fields/V2/EditorInput/index.js +0 -2
- package/dist/es/f/fields/V2/EditorInput/styles.scss +0 -149
- package/dist/es/f/fields/V2/LinkInput/LinkInput.js +0 -148
- package/dist/es/f/fields/V2/LinkInput/index.js +0 -2
- package/dist/es/f/fields/V2/LinkInput/styles.scss +0 -90
- package/dist/es/f/fields/V2/QueryChoices/QueryChoices.js +0 -126
- package/dist/es/f/fields/V2/QueryChoices/index.js +0 -2
- package/dist/es/f/fields/V2/QueryCombobox/QueryCombobox.js +0 -221
- package/dist/es/f/fields/V2/QueryCombobox/common/Combobox/Combobox.js +0 -229
- package/dist/es/f/fields/V2/QueryCombobox/common/Combobox/index.js +0 -2
- package/dist/es/f/fields/V2/QueryCombobox/common/Menu/Menu.js +0 -73
- package/dist/es/f/fields/V2/QueryCombobox/common/Menu/index.js +0 -2
- package/dist/es/f/fields/V2/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +0 -293
- package/dist/es/f/fields/V2/QueryCombobox/common/MultipleCombobox/index.js +0 -2
- package/dist/es/f/fields/V2/QueryCombobox/common/index.js +0 -3
- package/dist/es/f/fields/V2/QueryCombobox/index.js +0 -2
- package/dist/es/f/fields/V2/QueryCombobox/styles.scss +0 -127
- package/dist/es/f/fields/V2/QuerySelect/QuerySelect.js +0 -186
- package/dist/es/f/fields/V2/QuerySelect/index.js +0 -2
- package/dist/es/f/fields/V2/RatingsInput/RatingsInput.js +0 -124
- package/dist/es/f/fields/V2/RatingsInput/common/Rating/Rating.js +0 -109
- package/dist/es/f/fields/V2/RatingsInput/common/Rating/index.js +0 -2
- package/dist/es/f/fields/V2/RatingsInput/common/index.js +0 -1
- package/dist/es/f/fields/V2/RatingsInput/index.js +0 -2
- package/dist/es/f/fields/V2/RatingsInput/styles.scss +0 -48
- package/dist/es/f/fields/V2/SelectInput/SelectInput.js +0 -146
- package/dist/es/f/fields/V2/SelectInput/index.js +0 -2
- package/dist/es/f/fields/V2/SelectInput/styles.scss +0 -87
- package/dist/es/f/fields/V2/TextInput/TextInput.js +0 -147
- package/dist/es/f/fields/V2/TextInput/index.js +0 -2
- package/dist/es/f/fields/V2/TextInput/styles.scss +0 -78
- package/dist/es/f/fields/V2/TextareaInput/TextareaInput.js +0 -146
- package/dist/es/f/fields/V2/TextareaInput/index.js +0 -2
- package/dist/es/f/fields/V2/TextareaInput/styles.scss +0 -53
- package/dist/es/f/fields/V2/index.js +0 -11
- package/src/stories/f/v2/Checkbox.stories.jsx +0 -102
- package/src/stories/f/v2/ChoicesInput.stories.jsx +0 -139
- package/src/stories/f/v2/EditorInput.stories.jsx +0 -81
- package/src/stories/f/v2/LinkInput.stories.jsx +0 -93
- package/src/stories/f/v2/QueryChoices.stories.jsx +0 -144
- package/src/stories/f/v2/QueryCombobox.stories.jsx +0 -301
- package/src/stories/f/v2/QuerySelect.stories.jsx +0 -150
- package/src/stories/f/v2/RatingsInput.stories.jsx +0 -77
- package/src/stories/f/v2/SelectInput.stories.jsx +0 -95
- package/src/stories/f/v2/TextInput.stories.jsx +0 -120
- package/src/stories/f/v2/TextareaInput.stories.jsx +0 -107
- package/src/stories/f/v2/__generated__/FormInputAllTaskStatusesQuery.graphql.js +0 -122
- package/src/stories/f/v2/__generated__/FormInputAllTeamsQuery.graphql.js +0 -139
- package/src/stories/f/v2/__generated__/QueryChoicesAllTaskStatusesQuery.graphql.js +0 -122
- package/src/stories/f/v2/__generated__/QueryComboboxAllTeamsQuery.graphql.js +0 -139
- package/src/stories/f/v2/__generated__/QuerySelectAllTaskStatusesQuery.graphql.js +0 -122
- package/src/ui/f/common/InputWrapper/InputWrapper.jsx +0 -83
- package/src/ui/f/common/InputWrapper/index.js +0 -2
- package/src/ui/f/common/InputWrapper/styles.scss +0 -13
- package/src/ui/f/common/V2/Description/Description.jsx +0 -94
- package/src/ui/f/common/V2/Description/index.js +0 -2
- package/src/ui/f/common/V2/Description/styles.scss +0 -10
- package/src/ui/f/common/V2/Label/Label.jsx +0 -102
- package/src/ui/f/common/V2/Label/index.js +0 -2
- package/src/ui/f/common/V2/Label/styles.scss +0 -9
- package/src/ui/f/common/V2/index.js +0 -2
- package/src/ui/f/fields/V2/Checkbox/Checkbox.jsx +0 -146
- package/src/ui/f/fields/V2/Checkbox/index.js +0 -2
- package/src/ui/f/fields/V2/Checkbox/styles.scss +0 -16
- package/src/ui/f/fields/V2/ChoicesInput/ChoicesInput.jsx +0 -183
- package/src/ui/f/fields/V2/ChoicesInput/common/Choice/Choice.jsx +0 -125
- package/src/ui/f/fields/V2/ChoicesInput/common/Choice/index.js +0 -2
- package/src/ui/f/fields/V2/ChoicesInput/common/index.js +0 -1
- package/src/ui/f/fields/V2/ChoicesInput/index.js +0 -2
- package/src/ui/f/fields/V2/ChoicesInput/styles.scss +0 -79
- package/src/ui/f/fields/V2/EditorInput/EditorInput.jsx +0 -244
- package/src/ui/f/fields/V2/EditorInput/common/Toolbar.jsx +0 -356
- package/src/ui/f/fields/V2/EditorInput/common/TreeViewPlugin.jsx +0 -16
- package/src/ui/f/fields/V2/EditorInput/common/index.jsx +0 -2
- package/src/ui/f/fields/V2/EditorInput/index.js +0 -2
- package/src/ui/f/fields/V2/EditorInput/styles.scss +0 -149
- package/src/ui/f/fields/V2/LinkInput/LinkInput.jsx +0 -187
- package/src/ui/f/fields/V2/LinkInput/index.js +0 -2
- package/src/ui/f/fields/V2/LinkInput/styles.scss +0 -90
- package/src/ui/f/fields/V2/QueryChoices/QueryChoices.jsx +0 -153
- package/src/ui/f/fields/V2/QueryChoices/index.js +0 -2
- package/src/ui/f/fields/V2/QueryCombobox/QueryCombobox.jsx +0 -254
- package/src/ui/f/fields/V2/QueryCombobox/common/Combobox/Combobox.jsx +0 -276
- package/src/ui/f/fields/V2/QueryCombobox/common/Combobox/index.js +0 -2
- package/src/ui/f/fields/V2/QueryCombobox/common/Menu/Menu.jsx +0 -103
- package/src/ui/f/fields/V2/QueryCombobox/common/Menu/index.js +0 -2
- package/src/ui/f/fields/V2/QueryCombobox/common/MultipleCombobox/MultipleCombobox.jsx +0 -362
- package/src/ui/f/fields/V2/QueryCombobox/common/MultipleCombobox/index.js +0 -2
- package/src/ui/f/fields/V2/QueryCombobox/common/index.js +0 -3
- package/src/ui/f/fields/V2/QueryCombobox/index.js +0 -2
- package/src/ui/f/fields/V2/QueryCombobox/styles.scss +0 -127
- package/src/ui/f/fields/V2/QuerySelect/QuerySelect.jsx +0 -220
- package/src/ui/f/fields/V2/QuerySelect/index.js +0 -2
- package/src/ui/f/fields/V2/RatingsInput/RatingsInput.jsx +0 -152
- package/src/ui/f/fields/V2/RatingsInput/common/Rating/Rating.jsx +0 -142
- package/src/ui/f/fields/V2/RatingsInput/common/Rating/index.js +0 -2
- package/src/ui/f/fields/V2/RatingsInput/common/index.js +0 -1
- package/src/ui/f/fields/V2/RatingsInput/index.js +0 -2
- package/src/ui/f/fields/V2/RatingsInput/styles.scss +0 -48
- package/src/ui/f/fields/V2/SelectInput/SelectInput.jsx +0 -187
- package/src/ui/f/fields/V2/SelectInput/index.js +0 -2
- package/src/ui/f/fields/V2/SelectInput/styles.scss +0 -87
- package/src/ui/f/fields/V2/TextInput/TextInput.jsx +0 -192
- package/src/ui/f/fields/V2/TextInput/index.js +0 -2
- package/src/ui/f/fields/V2/TextInput/styles.scss +0 -78
- package/src/ui/f/fields/V2/TextareaInput/TextareaInput.jsx +0 -180
- package/src/ui/f/fields/V2/TextareaInput/index.js +0 -2
- package/src/ui/f/fields/V2/TextareaInput/styles.scss +0 -53
- package/src/ui/f/fields/V2/index.js +0 -11
|
@@ -28,15 +28,11 @@ export default {
|
|
|
28
28
|
),
|
|
29
29
|
],
|
|
30
30
|
argTypes:{
|
|
31
|
-
color
|
|
32
|
-
label
|
|
33
|
-
labelColor
|
|
34
|
-
isLoading
|
|
35
|
-
optional
|
|
36
|
-
labelSpan :{ control: 'number' },
|
|
37
|
-
inputSpan :{ control: 'number' },
|
|
38
|
-
desktopLabelSpan:{ control: 'number' },
|
|
39
|
-
desktopInputSpan:{ control: 'number' },
|
|
31
|
+
color :{ control: 'text' },
|
|
32
|
+
label :{ control: 'text' },
|
|
33
|
+
labelColor:{ control: 'text' },
|
|
34
|
+
isLoading :{ control: 'boolean' },
|
|
35
|
+
optional :{ control: 'boolean' },
|
|
40
36
|
},
|
|
41
37
|
}
|
|
42
38
|
const statuses = [
|
|
@@ -99,7 +95,13 @@ const Template = ({ isLoading, defaultFormikState, ...args }) => {
|
|
|
99
95
|
}
|
|
100
96
|
|
|
101
97
|
const Content = () => (
|
|
102
|
-
<div
|
|
98
|
+
<div
|
|
99
|
+
style={{
|
|
100
|
+
display :'flex',
|
|
101
|
+
flexDirection:'column',
|
|
102
|
+
gap :'1rem',
|
|
103
|
+
}}
|
|
104
|
+
>
|
|
103
105
|
<QuerySelect
|
|
104
106
|
name="status"
|
|
105
107
|
label="Select Task Status"
|
|
@@ -146,12 +148,3 @@ export const Optional = Template.bind({})
|
|
|
146
148
|
Optional.args = {
|
|
147
149
|
optional:true,
|
|
148
150
|
}
|
|
149
|
-
|
|
150
|
-
export const OnSingleRow = Template.bind({})
|
|
151
|
-
OnSingleRow.args = {
|
|
152
|
-
...Base.args,
|
|
153
|
-
labelSpan :4,
|
|
154
|
-
inputSpan :4,
|
|
155
|
-
desktopLabelSpan:4,
|
|
156
|
-
desktopInputSpan:10,
|
|
157
|
-
}
|
|
@@ -33,15 +33,17 @@ export default {
|
|
|
33
33
|
labelMax :{ control: 'text' },
|
|
34
34
|
labelMin :{ control: 'text' },
|
|
35
35
|
optional :{ control: 'boolean' },
|
|
36
|
-
labelSpan :{ control: 'number' },
|
|
37
|
-
inputSpan :{ control: 'number' },
|
|
38
|
-
desktopLabelSpan :{ control: 'number' },
|
|
39
|
-
desktopInputSpan :{ control: 'number' },
|
|
40
36
|
},
|
|
41
37
|
}
|
|
42
38
|
|
|
43
39
|
const Template = (args) => (
|
|
44
|
-
<div
|
|
40
|
+
<div
|
|
41
|
+
style={{
|
|
42
|
+
display :'flex',
|
|
43
|
+
flexDirection:'column',
|
|
44
|
+
gap :'1rem',
|
|
45
|
+
}}
|
|
46
|
+
>
|
|
45
47
|
<RatingsInput {...args} />
|
|
46
48
|
<FormDebugger />
|
|
47
49
|
</div>
|
|
@@ -73,12 +75,3 @@ Labels.args = {
|
|
|
73
75
|
labelMin :'not satisfied.',
|
|
74
76
|
displayRatingsLabel:true,
|
|
75
77
|
}
|
|
76
|
-
|
|
77
|
-
export const OnSingleRow = Template.bind({})
|
|
78
|
-
OnSingleRow.args = {
|
|
79
|
-
...Base.args,
|
|
80
|
-
labelSpan :4,
|
|
81
|
-
inputSpan :4,
|
|
82
|
-
desktopLabelSpan:4,
|
|
83
|
-
desktopInputSpan:10,
|
|
84
|
-
}
|
|
@@ -22,20 +22,22 @@ export default {
|
|
|
22
22
|
),
|
|
23
23
|
],
|
|
24
24
|
argTypes:{
|
|
25
|
-
color
|
|
26
|
-
label
|
|
27
|
-
labelColor
|
|
28
|
-
disabled
|
|
29
|
-
optional
|
|
30
|
-
labelSpan :{ control: 'number' },
|
|
31
|
-
inputSpan :{ control: 'number' },
|
|
32
|
-
desktopLabelSpan:{ control: 'number' },
|
|
33
|
-
desktopInputSpan:{ control: 'number' },
|
|
25
|
+
color :{ control: 'text' },
|
|
26
|
+
label :{ control: 'text' },
|
|
27
|
+
labelColor:{ control: 'text' },
|
|
28
|
+
disabled :{ control: 'boolean' },
|
|
29
|
+
optional :{ control: 'boolean' },
|
|
34
30
|
},
|
|
35
31
|
}
|
|
36
32
|
|
|
37
33
|
const Template = (args) => (
|
|
38
|
-
<div
|
|
34
|
+
<div
|
|
35
|
+
style={{
|
|
36
|
+
display :'flex',
|
|
37
|
+
flexDirection:'column',
|
|
38
|
+
gap :'1rem',
|
|
39
|
+
}}
|
|
40
|
+
>
|
|
39
41
|
<SelectInput {...args} />
|
|
40
42
|
<FormDebugger />
|
|
41
43
|
</div>
|
|
@@ -91,12 +93,3 @@ DisabledWithDescriptionSelectInput.args = {
|
|
|
91
93
|
disabled :true,
|
|
92
94
|
description:'This is a description',
|
|
93
95
|
}
|
|
94
|
-
|
|
95
|
-
export const OnSingleRow = Template.bind({})
|
|
96
|
-
OnSingleRow.args = {
|
|
97
|
-
...Base.args,
|
|
98
|
-
labelSpan :4,
|
|
99
|
-
inputSpan :4,
|
|
100
|
-
desktopLabelSpan:4,
|
|
101
|
-
desktopInputSpan:10,
|
|
102
|
-
}
|
|
@@ -27,25 +27,27 @@ export default {
|
|
|
27
27
|
],
|
|
28
28
|
argTypes:{
|
|
29
29
|
// backgroundColor:{ control: 'color' },
|
|
30
|
-
placeholder
|
|
31
|
-
autoComplete
|
|
32
|
-
disabled
|
|
33
|
-
type
|
|
34
|
-
name
|
|
35
|
-
label
|
|
36
|
-
labelColor
|
|
37
|
-
optional
|
|
38
|
-
symbol
|
|
39
|
-
labelSpan :{ control: 'number' },
|
|
40
|
-
inputSpan :{ control: 'number' },
|
|
41
|
-
desktopLabelSpan:{ control: 'number' },
|
|
42
|
-
desktopInputSpan:{ control: 'number' },
|
|
30
|
+
placeholder :{ control: 'text' },
|
|
31
|
+
autoComplete:{ control: 'select', options: ['off', 'on'] },
|
|
32
|
+
disabled :{ control: 'boolean' },
|
|
33
|
+
type :{ control: 'text' },
|
|
34
|
+
name :{ control: 'text' },
|
|
35
|
+
label :{ control: 'text' },
|
|
36
|
+
labelColor :{ control: 'text' },
|
|
37
|
+
optional :{ control: 'boolean' },
|
|
38
|
+
symbol :{ control: 'text' },
|
|
43
39
|
},
|
|
44
40
|
}
|
|
45
41
|
|
|
46
42
|
// eslint-disable-next-line react/prop-types
|
|
47
43
|
const Template = (args) => (
|
|
48
|
-
<div
|
|
44
|
+
<div
|
|
45
|
+
style={{
|
|
46
|
+
display :'flex',
|
|
47
|
+
flexDirection:'column',
|
|
48
|
+
gap :'1rem',
|
|
49
|
+
}}
|
|
50
|
+
>
|
|
49
51
|
<TextInput {...args} />
|
|
50
52
|
<FormDebugger />
|
|
51
53
|
</div>
|
|
@@ -116,12 +118,3 @@ HasSymbol.args = {
|
|
|
116
118
|
...Base.args,
|
|
117
119
|
symbol:"'$'",
|
|
118
120
|
}
|
|
119
|
-
|
|
120
|
-
export const OnSingleRow = Template.bind({})
|
|
121
|
-
OnSingleRow.args = {
|
|
122
|
-
...Base.args,
|
|
123
|
-
labelSpan :4,
|
|
124
|
-
inputSpan :4,
|
|
125
|
-
desktopLabelSpan:4,
|
|
126
|
-
desktopInputSpan:10,
|
|
127
|
-
}
|
|
@@ -32,15 +32,17 @@ export default {
|
|
|
32
32
|
disabled :{ control: 'boolean' },
|
|
33
33
|
labelAsDescription:{ control: 'boolean' },
|
|
34
34
|
optional :{ control: 'boolean' },
|
|
35
|
-
labelSpan :{ control: 'number' },
|
|
36
|
-
inputSpan :{ control: 'number' },
|
|
37
|
-
desktopLabelSpan :{ control: 'number' },
|
|
38
|
-
desktopInputSpan :{ control: 'number' },
|
|
39
35
|
},
|
|
40
36
|
}
|
|
41
37
|
|
|
42
38
|
const Template = (args) => (
|
|
43
|
-
<div
|
|
39
|
+
<div
|
|
40
|
+
style={{
|
|
41
|
+
display :'flex',
|
|
42
|
+
flexDirection:'column',
|
|
43
|
+
gap :'1rem',
|
|
44
|
+
}}
|
|
45
|
+
>
|
|
44
46
|
<TextareaInput {...args} />
|
|
45
47
|
<FormDebugger />
|
|
46
48
|
</div>
|
|
@@ -103,12 +105,3 @@ DisableResize.args = {
|
|
|
103
105
|
...Base.args,
|
|
104
106
|
resize:'none',
|
|
105
107
|
}
|
|
106
|
-
|
|
107
|
-
export const OnSingleRow = Template.bind({})
|
|
108
|
-
OnSingleRow.args = {
|
|
109
|
-
...Base.args,
|
|
110
|
-
labelSpan :4,
|
|
111
|
-
inputSpan :4,
|
|
112
|
-
desktopLabelSpan:4,
|
|
113
|
-
desktopInputSpan:10,
|
|
114
|
-
}
|
|
@@ -6,28 +6,17 @@ import { memo } from 'react'
|
|
|
6
6
|
import PropTypes from 'prop-types'
|
|
7
7
|
|
|
8
8
|
import {
|
|
9
|
-
TextInput
|
|
10
|
-
TextareaInput
|
|
11
|
-
ChoicesInput
|
|
12
|
-
SelectInput
|
|
13
|
-
QueryCombobox
|
|
14
|
-
QuerySelect
|
|
15
|
-
RatingsInput
|
|
16
|
-
Checkbox
|
|
17
|
-
QueryChoices
|
|
18
|
-
LinkInput
|
|
19
|
-
EditorInput
|
|
20
|
-
TextInputV2,
|
|
21
|
-
TextareaInputV2,
|
|
22
|
-
ChoicesInputV2,
|
|
23
|
-
SelectInputV2,
|
|
24
|
-
QueryComboboxV2,
|
|
25
|
-
QuerySelectV2,
|
|
26
|
-
RatingsInputV2,
|
|
27
|
-
CheckboxV2,
|
|
28
|
-
QueryChoicesV2,
|
|
29
|
-
LinkInputV2,
|
|
30
|
-
EditorInputV2,
|
|
9
|
+
TextInput,
|
|
10
|
+
TextareaInput,
|
|
11
|
+
ChoicesInput,
|
|
12
|
+
SelectInput,
|
|
13
|
+
QueryCombobox,
|
|
14
|
+
QuerySelect,
|
|
15
|
+
RatingsInput,
|
|
16
|
+
Checkbox,
|
|
17
|
+
QueryChoices,
|
|
18
|
+
LinkInput,
|
|
19
|
+
EditorInput,
|
|
31
20
|
} from '../fields'
|
|
32
21
|
|
|
33
22
|
import './styles.scss'
|
|
@@ -46,7 +35,6 @@ const FormInput = ({
|
|
|
46
35
|
type,
|
|
47
36
|
extraTypes,
|
|
48
37
|
disabled,
|
|
49
|
-
isVersionTwo,
|
|
50
38
|
...otherProps
|
|
51
39
|
}) => {
|
|
52
40
|
const newClassName = [
|
|
@@ -54,32 +42,6 @@ const FormInput = ({
|
|
|
54
42
|
componentClassName,
|
|
55
43
|
].filter(Boolean).join(' ')
|
|
56
44
|
|
|
57
|
-
let TextInput = TextInputV1
|
|
58
|
-
let TextareaInput = TextareaInputV1
|
|
59
|
-
let ChoicesInput = ChoicesInputV1
|
|
60
|
-
let SelectInput = SelectInputV1
|
|
61
|
-
let QueryCombobox = QueryComboboxV1
|
|
62
|
-
let QuerySelect = QuerySelectV1
|
|
63
|
-
let RatingsInput = RatingsInputV1
|
|
64
|
-
let Checkbox = CheckboxV1
|
|
65
|
-
let QueryChoices = QueryChoicesV1
|
|
66
|
-
let LinkInput = LinkInputV1
|
|
67
|
-
let EditorInput = EditorInputV1
|
|
68
|
-
|
|
69
|
-
if (isVersionTwo) {
|
|
70
|
-
TextInput = TextInputV2
|
|
71
|
-
TextareaInput = TextareaInputV2
|
|
72
|
-
ChoicesInput = ChoicesInputV2
|
|
73
|
-
SelectInput = SelectInputV2
|
|
74
|
-
QueryCombobox = QueryComboboxV2
|
|
75
|
-
QuerySelect = QuerySelectV2
|
|
76
|
-
RatingsInput = RatingsInputV2
|
|
77
|
-
Checkbox = CheckboxV2
|
|
78
|
-
QueryChoices = QueryChoicesV2
|
|
79
|
-
LinkInput = LinkInputV2
|
|
80
|
-
EditorInput = EditorInputV2
|
|
81
|
-
}
|
|
82
|
-
|
|
83
45
|
if (type === 'textarea') {
|
|
84
46
|
return (
|
|
85
47
|
<TextareaInput
|
|
@@ -234,17 +196,10 @@ FormInput.propTypes = {
|
|
|
234
196
|
* Whether the Form input input should be disabled
|
|
235
197
|
*/
|
|
236
198
|
disabled :PropTypes.bool,
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* Whethe the Form input is version 2
|
|
240
|
-
*/
|
|
241
|
-
isVersionTwo:PropTypes.bool,
|
|
242
|
-
|
|
243
199
|
}
|
|
244
200
|
|
|
245
201
|
FormInput.defaultProps = {
|
|
246
|
-
disabled
|
|
247
|
-
isVersionTwo:false,
|
|
202
|
+
disabled:false,
|
|
248
203
|
}
|
|
249
204
|
|
|
250
205
|
export default memo(FormInput)
|
|
@@ -7,10 +7,10 @@ import PropTypes from 'prop-types'
|
|
|
7
7
|
|
|
8
8
|
import styleNames from '@pareto-engineering/bem/exports'
|
|
9
9
|
|
|
10
|
-
import './styles.scss'
|
|
11
|
-
|
|
12
10
|
// Local Definitions
|
|
13
11
|
|
|
12
|
+
import './styles.scss'
|
|
13
|
+
|
|
14
14
|
const baseClassName = styleNames.base
|
|
15
15
|
|
|
16
16
|
const componentClassName = 'description'
|
|
@@ -5,9 +5,8 @@ import PropTypes from 'prop-types'
|
|
|
5
5
|
|
|
6
6
|
import styleNames from '@pareto-engineering/bem/exports'
|
|
7
7
|
|
|
8
|
-
import './styles.scss'
|
|
9
|
-
|
|
10
8
|
// Local Definitions
|
|
9
|
+
import './styles.scss'
|
|
11
10
|
|
|
12
11
|
const baseClassName = styleNames.base
|
|
13
12
|
|
|
@@ -25,8 +24,6 @@ const Label = ({
|
|
|
25
24
|
color,
|
|
26
25
|
optional,
|
|
27
26
|
as:Wrapper,
|
|
28
|
-
columnSpan,
|
|
29
|
-
desktopColumnSpan,
|
|
30
27
|
// ...otherProps
|
|
31
28
|
}) => (
|
|
32
29
|
<Wrapper
|
|
@@ -40,12 +37,7 @@ const Label = ({
|
|
|
40
37
|
]
|
|
41
38
|
.filter((e) => e)
|
|
42
39
|
.join(' ')}
|
|
43
|
-
style={
|
|
44
|
-
...style,
|
|
45
|
-
'--column-span' :columnSpan || 'var(--columns)',
|
|
46
|
-
'--column-span-md':desktopColumnSpan || 'var(--columns)',
|
|
47
|
-
}}
|
|
48
|
-
// {...otherProps}
|
|
40
|
+
style={style}
|
|
49
41
|
>
|
|
50
42
|
{children}
|
|
51
43
|
{optional && ' (Optional)'}
|
|
@@ -91,16 +83,6 @@ Label.propTypes = {
|
|
|
91
83
|
* Whether the input should have an optional tag
|
|
92
84
|
*/
|
|
93
85
|
optional:PropTypes.bool,
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* How many columns the input should span
|
|
97
|
-
*/
|
|
98
|
-
columnSpan:PropTypes.number,
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* How many columns the input should span on desktop
|
|
102
|
-
*/
|
|
103
|
-
desktopColumnSpan:PropTypes.number,
|
|
104
86
|
}
|
|
105
87
|
|
|
106
88
|
Label.defaultProps = {
|
package/src/ui/f/common/index.js
CHANGED
|
@@ -7,11 +7,10 @@ import styleNames from '@pareto-engineering/bem/exports'
|
|
|
7
7
|
|
|
8
8
|
import { useField } from 'formik'
|
|
9
9
|
|
|
10
|
-
import { FormLabel, FormDescription
|
|
11
|
-
|
|
12
|
-
import './styles.scss'
|
|
10
|
+
import { FormLabel, FormDescription } from '../../common'
|
|
13
11
|
|
|
14
12
|
// Local Definitions
|
|
13
|
+
import './styles.scss'
|
|
15
14
|
|
|
16
15
|
const baseClassName = styleNames.base
|
|
17
16
|
|
|
@@ -30,51 +29,41 @@ const Checkbox = ({
|
|
|
30
29
|
disabled,
|
|
31
30
|
optional,
|
|
32
31
|
labelColor,
|
|
33
|
-
labelSpan,
|
|
34
|
-
desktopLabelSpan,
|
|
35
|
-
inputSpan,
|
|
36
|
-
desktopInputSpan,
|
|
37
32
|
// ...otherProps
|
|
38
33
|
}) => {
|
|
39
34
|
const [field] = useField({ name, type: 'checkbox' })
|
|
40
35
|
|
|
41
36
|
return (
|
|
42
|
-
|
|
37
|
+
<div
|
|
38
|
+
id={id}
|
|
39
|
+
className={[
|
|
40
|
+
baseClassName,
|
|
41
|
+
componentClassName,
|
|
42
|
+
userClassName,
|
|
43
|
+
]
|
|
44
|
+
.filter((e) => e)
|
|
45
|
+
.join(' ')}
|
|
46
|
+
style={style}
|
|
47
|
+
>
|
|
43
48
|
{label && (
|
|
44
49
|
<FormLabel
|
|
45
50
|
name={name}
|
|
46
51
|
color={labelColor}
|
|
47
52
|
optional={optional}
|
|
48
|
-
columnSpan={labelSpan}
|
|
49
|
-
desktopColumnSpan={desktopLabelSpan}
|
|
50
53
|
// {...otherProps}
|
|
51
54
|
>
|
|
52
55
|
{label}
|
|
53
56
|
</FormLabel>
|
|
54
57
|
)}
|
|
55
|
-
<
|
|
56
|
-
id={
|
|
57
|
-
className=
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
style={style}
|
|
65
|
-
columnSpan={inputSpan}
|
|
66
|
-
desktopColumnSpan={desktopInputSpan}
|
|
67
|
-
>
|
|
68
|
-
<input
|
|
69
|
-
id={name}
|
|
70
|
-
className="input"
|
|
71
|
-
type="checkbox"
|
|
72
|
-
disabled={disabled}
|
|
73
|
-
{...field}
|
|
74
|
-
/>
|
|
75
|
-
<FormDescription className="s-1" description={description} name={name} />
|
|
76
|
-
</InputWrapper>
|
|
77
|
-
</>
|
|
58
|
+
<input
|
|
59
|
+
id={name}
|
|
60
|
+
className="input"
|
|
61
|
+
type="checkbox"
|
|
62
|
+
disabled={disabled}
|
|
63
|
+
{...field}
|
|
64
|
+
/>
|
|
65
|
+
<FormDescription className="s-1" description={description} name={name} />
|
|
66
|
+
</div>
|
|
78
67
|
)
|
|
79
68
|
}
|
|
80
69
|
|
|
@@ -5,10 +5,12 @@
|
|
|
5
5
|
@use "@pareto-engineering/styles/src/globals" as *;
|
|
6
6
|
|
|
7
7
|
.#{bem.$base}.checkbox {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
align-items: flex-start;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
|
|
13
|
+
> .#{bem.$base}.form-label {
|
|
14
|
+
margin-bottom: var(--gap);
|
|
13
15
|
}
|
|
14
16
|
}
|
|
@@ -11,7 +11,7 @@ import styleNames from '@pareto-engineering/bem/exports'
|
|
|
11
11
|
|
|
12
12
|
import { Choice } from './common'
|
|
13
13
|
|
|
14
|
-
import { FormDescription, FormLabel
|
|
14
|
+
import { FormDescription, FormLabel } from '../../common'
|
|
15
15
|
|
|
16
16
|
import './styles.scss'
|
|
17
17
|
|
|
@@ -37,56 +37,45 @@ const ChoicesInput = ({
|
|
|
37
37
|
disabled,
|
|
38
38
|
description,
|
|
39
39
|
spaceBetween,
|
|
40
|
-
labelSpan,
|
|
41
|
-
desktopLabelSpan,
|
|
42
|
-
inputSpan,
|
|
43
|
-
desktopInputSpan,
|
|
44
40
|
...otherProps
|
|
45
41
|
}) => (
|
|
46
|
-
|
|
42
|
+
<div
|
|
43
|
+
id={id}
|
|
44
|
+
className={[
|
|
45
|
+
baseClassName,
|
|
46
|
+
componentClassName,
|
|
47
|
+
userClassName,
|
|
48
|
+
]
|
|
49
|
+
.filter((e) => e)
|
|
50
|
+
.join(' ')}
|
|
51
|
+
style={style}
|
|
52
|
+
>
|
|
47
53
|
{label && (
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
columnSpan={labelSpan}
|
|
53
|
-
desktopColumnSpan={desktopLabelSpan}
|
|
54
|
-
// {...otherProps}
|
|
55
|
-
>
|
|
56
|
-
{label}
|
|
57
|
-
</FormLabel>
|
|
58
|
-
)}
|
|
59
|
-
<InputWrapper
|
|
60
|
-
id={id}
|
|
61
|
-
className={[
|
|
62
|
-
baseClassName,
|
|
63
|
-
componentClassName,
|
|
64
|
-
userClassName,
|
|
65
|
-
]
|
|
66
|
-
.filter((e) => e)
|
|
67
|
-
.join(' ')}
|
|
68
|
-
style={style}
|
|
69
|
-
columnSpan={inputSpan}
|
|
70
|
-
desktopColumnSpan={desktopInputSpan}
|
|
54
|
+
<FormLabel
|
|
55
|
+
name={name}
|
|
56
|
+
color={labelColor}
|
|
57
|
+
optional={optional}
|
|
71
58
|
>
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
59
|
+
{label}
|
|
60
|
+
</FormLabel>
|
|
61
|
+
)}
|
|
62
|
+
<div className={['choices', spaceBetween && 'space-between'].filter(Boolean).join(' ')}>
|
|
63
|
+
{ options.map((choice) => (
|
|
64
|
+
<Choice
|
|
65
|
+
className={`x-${color}`}
|
|
66
|
+
key={choice.value}
|
|
67
|
+
name={name}
|
|
68
|
+
id={`${name}-${choice.value}`}
|
|
69
|
+
multiple={multiple}
|
|
70
|
+
validate={validate}
|
|
71
|
+
disabled={disabled}
|
|
72
|
+
{...otherProps}
|
|
73
|
+
{...choice}
|
|
74
|
+
/>
|
|
75
|
+
))}
|
|
76
|
+
</div>
|
|
77
|
+
<FormDescription className="s-1" description={description} name={name} />
|
|
78
|
+
</div>
|
|
90
79
|
)
|
|
91
80
|
|
|
92
81
|
ChoicesInput.propTypes = {
|
|
@@ -122,31 +111,28 @@ ChoicesInput.propTypes = {
|
|
|
122
111
|
/**
|
|
123
112
|
* If the input should be multiple - checkbox
|
|
124
113
|
*/
|
|
125
|
-
multiple
|
|
114
|
+
multiple :PropTypes.bool,
|
|
126
115
|
/**
|
|
127
116
|
* how many columns should be displayed on the mobile grid
|
|
128
117
|
*/
|
|
129
|
-
gridColumnsMobile
|
|
130
|
-
|
|
131
|
-
* how many columns should be displayed on the desktop grid
|
|
132
|
-
*/
|
|
133
|
-
gridColumnsDesktop:PropTypes.number,
|
|
118
|
+
gridColumnsMobile:PropTypes.number,
|
|
119
|
+
|
|
134
120
|
/**
|
|
135
121
|
* The choice color
|
|
136
122
|
*/
|
|
137
|
-
color
|
|
123
|
+
color :PropTypes.string,
|
|
138
124
|
/**
|
|
139
125
|
* The selected choice color
|
|
140
126
|
*/
|
|
141
|
-
colorChecked
|
|
127
|
+
colorChecked:PropTypes.string,
|
|
142
128
|
/**
|
|
143
129
|
* The label of the choices input
|
|
144
130
|
*/
|
|
145
|
-
label
|
|
131
|
+
label :PropTypes.string,
|
|
146
132
|
/**
|
|
147
133
|
* Whether all the Choices inputs should be disabled
|
|
148
134
|
*/
|
|
149
|
-
disabled
|
|
135
|
+
disabled :PropTypes.bool,
|
|
150
136
|
|
|
151
137
|
/**
|
|
152
138
|
* Whether the input is optional or not
|