@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
|
@@ -26,89 +26,64 @@ const FormInput = _ref => {
|
|
|
26
26
|
type,
|
|
27
27
|
extraTypes,
|
|
28
28
|
disabled,
|
|
29
|
-
isVersionTwo,
|
|
30
29
|
...otherProps
|
|
31
30
|
} = _ref;
|
|
32
31
|
const newClassName = [className, componentClassName].filter(Boolean).join(' ');
|
|
33
|
-
let TextInput = _fields.TextInput;
|
|
34
|
-
let TextareaInput = _fields.TextareaInput;
|
|
35
|
-
let ChoicesInput = _fields.ChoicesInput;
|
|
36
|
-
let SelectInput = _fields.SelectInput;
|
|
37
|
-
let QueryCombobox = _fields.QueryCombobox;
|
|
38
|
-
let QuerySelect = _fields.QuerySelect;
|
|
39
|
-
let RatingsInput = _fields.RatingsInput;
|
|
40
|
-
let Checkbox = _fields.Checkbox;
|
|
41
|
-
let QueryChoices = _fields.QueryChoices;
|
|
42
|
-
let LinkInput = _fields.LinkInput;
|
|
43
|
-
let EditorInput = _fields.EditorInput;
|
|
44
|
-
if (isVersionTwo) {
|
|
45
|
-
TextInput = _fields.TextInputV2;
|
|
46
|
-
TextareaInput = _fields.TextareaInputV2;
|
|
47
|
-
ChoicesInput = _fields.ChoicesInputV2;
|
|
48
|
-
SelectInput = _fields.SelectInputV2;
|
|
49
|
-
QueryCombobox = _fields.QueryComboboxV2;
|
|
50
|
-
QuerySelect = _fields.QuerySelectV2;
|
|
51
|
-
RatingsInput = _fields.RatingsInputV2;
|
|
52
|
-
Checkbox = _fields.CheckboxV2;
|
|
53
|
-
QueryChoices = _fields.QueryChoicesV2;
|
|
54
|
-
LinkInput = _fields.LinkInputV2;
|
|
55
|
-
EditorInput = _fields.EditorInputV2;
|
|
56
|
-
}
|
|
57
32
|
if (type === 'textarea') {
|
|
58
|
-
return /*#__PURE__*/React.createElement(TextareaInput, _extends({
|
|
33
|
+
return /*#__PURE__*/React.createElement(_fields.TextareaInput, _extends({
|
|
59
34
|
className: newClassName,
|
|
60
35
|
disabled: disabled
|
|
61
36
|
}, otherProps));
|
|
62
37
|
}
|
|
63
38
|
if (type === 'choices') {
|
|
64
|
-
return /*#__PURE__*/React.createElement(ChoicesInput, _extends({
|
|
39
|
+
return /*#__PURE__*/React.createElement(_fields.ChoicesInput, _extends({
|
|
65
40
|
className: newClassName,
|
|
66
41
|
disabled: disabled
|
|
67
42
|
}, otherProps));
|
|
68
43
|
}
|
|
69
44
|
if (type === 'select') {
|
|
70
|
-
return /*#__PURE__*/React.createElement(SelectInput, _extends({
|
|
45
|
+
return /*#__PURE__*/React.createElement(_fields.SelectInput, _extends({
|
|
71
46
|
className: newClassName,
|
|
72
47
|
disabled: disabled
|
|
73
48
|
}, otherProps));
|
|
74
49
|
}
|
|
75
50
|
if (type === 'query-combobox') {
|
|
76
|
-
return /*#__PURE__*/React.createElement(QueryCombobox, _extends({
|
|
51
|
+
return /*#__PURE__*/React.createElement(_fields.QueryCombobox, _extends({
|
|
77
52
|
className: newClassName,
|
|
78
53
|
disabled: disabled
|
|
79
54
|
}, otherProps));
|
|
80
55
|
}
|
|
81
56
|
if (type === 'query-select') {
|
|
82
|
-
return /*#__PURE__*/React.createElement(QuerySelect, _extends({
|
|
57
|
+
return /*#__PURE__*/React.createElement(_fields.QuerySelect, _extends({
|
|
83
58
|
className: newClassName,
|
|
84
59
|
disabled: disabled
|
|
85
60
|
}, otherProps));
|
|
86
61
|
}
|
|
87
62
|
if (type === 'query-choices') {
|
|
88
|
-
return /*#__PURE__*/React.createElement(QueryChoices, _extends({
|
|
63
|
+
return /*#__PURE__*/React.createElement(_fields.QueryChoices, _extends({
|
|
89
64
|
className: newClassName,
|
|
90
65
|
disabled: disabled
|
|
91
66
|
}, otherProps));
|
|
92
67
|
}
|
|
93
68
|
if (type === 'rating') {
|
|
94
|
-
return /*#__PURE__*/React.createElement(RatingsInput, _extends({
|
|
69
|
+
return /*#__PURE__*/React.createElement(_fields.RatingsInput, _extends({
|
|
95
70
|
className: newClassName
|
|
96
71
|
}, otherProps));
|
|
97
72
|
}
|
|
98
73
|
if (type === 'checkbox') {
|
|
99
|
-
return /*#__PURE__*/React.createElement(Checkbox, _extends({
|
|
74
|
+
return /*#__PURE__*/React.createElement(_fields.Checkbox, _extends({
|
|
100
75
|
className: newClassName,
|
|
101
76
|
disabled: disabled
|
|
102
77
|
}, otherProps));
|
|
103
78
|
}
|
|
104
79
|
if (type === 'link') {
|
|
105
|
-
return /*#__PURE__*/React.createElement(LinkInput, _extends({
|
|
80
|
+
return /*#__PURE__*/React.createElement(_fields.LinkInput, _extends({
|
|
106
81
|
className: newClassName,
|
|
107
82
|
disabled: disabled
|
|
108
83
|
}, otherProps));
|
|
109
84
|
}
|
|
110
85
|
if (type === 'editor') {
|
|
111
|
-
return /*#__PURE__*/React.createElement(EditorInput, _extends({
|
|
86
|
+
return /*#__PURE__*/React.createElement(_fields.EditorInput, _extends({
|
|
112
87
|
className: newClassName,
|
|
113
88
|
disabled: disabled
|
|
114
89
|
}, otherProps));
|
|
@@ -120,7 +95,7 @@ const FormInput = _ref => {
|
|
|
120
95
|
disabled: disabled
|
|
121
96
|
}, otherProps));
|
|
122
97
|
}
|
|
123
|
-
return /*#__PURE__*/React.createElement(TextInput, _extends({
|
|
98
|
+
return /*#__PURE__*/React.createElement(_fields.TextInput, _extends({
|
|
124
99
|
className: newClassName,
|
|
125
100
|
disabled: disabled,
|
|
126
101
|
type: type
|
|
@@ -144,14 +119,9 @@ FormInput.propTypes = {
|
|
|
144
119
|
/**
|
|
145
120
|
* Whether the Form input input should be disabled
|
|
146
121
|
*/
|
|
147
|
-
disabled: _propTypes.default.bool
|
|
148
|
-
/**
|
|
149
|
-
* Whethe the Form input is version 2
|
|
150
|
-
*/
|
|
151
|
-
isVersionTwo: _propTypes.default.bool
|
|
122
|
+
disabled: _propTypes.default.bool
|
|
152
123
|
};
|
|
153
124
|
FormInput.defaultProps = {
|
|
154
|
-
disabled: false
|
|
155
|
-
isVersionTwo: false
|
|
125
|
+
disabled: false
|
|
156
126
|
};
|
|
157
127
|
var _default = exports.default = /*#__PURE__*/(0, _react.memo)(FormInput);
|
|
@@ -30,21 +30,14 @@ const Label = _ref => {
|
|
|
30
30
|
name,
|
|
31
31
|
color,
|
|
32
32
|
optional,
|
|
33
|
-
as: Wrapper
|
|
34
|
-
columnSpan,
|
|
35
|
-
desktopColumnSpan
|
|
33
|
+
as: Wrapper
|
|
36
34
|
// ...otherProps
|
|
37
35
|
} = _ref;
|
|
38
36
|
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
39
37
|
htmlFor: Wrapper === 'label' ? name : undefined,
|
|
40
38
|
id: id,
|
|
41
39
|
className: [baseClassName, componentClassName, userClassName, `x-${color}`].filter(e => e).join(' '),
|
|
42
|
-
style:
|
|
43
|
-
...style,
|
|
44
|
-
'--column-span': columnSpan || 'var(--columns)',
|
|
45
|
-
'--column-span-md': desktopColumnSpan || 'var(--columns)'
|
|
46
|
-
}
|
|
47
|
-
// {...otherProps}
|
|
40
|
+
style: style
|
|
48
41
|
}, children, optional && ' (Optional)');
|
|
49
42
|
};
|
|
50
43
|
Label.propTypes = {
|
|
@@ -79,15 +72,7 @@ Label.propTypes = {
|
|
|
79
72
|
/**
|
|
80
73
|
* Whether the input should have an optional tag
|
|
81
74
|
*/
|
|
82
|
-
optional: _propTypes.default.bool
|
|
83
|
-
/**
|
|
84
|
-
* How many columns the input should span
|
|
85
|
-
*/
|
|
86
|
-
columnSpan: _propTypes.default.number,
|
|
87
|
-
/**
|
|
88
|
-
* How many columns the input should span on desktop
|
|
89
|
-
*/
|
|
90
|
-
desktopColumnSpan: _propTypes.default.number
|
|
75
|
+
optional: _propTypes.default.bool
|
|
91
76
|
};
|
|
92
77
|
Label.defaultProps = {
|
|
93
78
|
as: 'label',
|
|
@@ -6,8 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
var _exportNames = {
|
|
7
7
|
FormLabel: true,
|
|
8
8
|
FormDescription: true,
|
|
9
|
-
FormDebugger: true
|
|
10
|
-
InputWrapper: true
|
|
9
|
+
FormDebugger: true
|
|
11
10
|
};
|
|
12
11
|
Object.defineProperty(exports, "FormDebugger", {
|
|
13
12
|
enumerable: true,
|
|
@@ -27,16 +26,9 @@ Object.defineProperty(exports, "FormLabel", {
|
|
|
27
26
|
return _Label.Label;
|
|
28
27
|
}
|
|
29
28
|
});
|
|
30
|
-
Object.defineProperty(exports, "InputWrapper", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function () {
|
|
33
|
-
return _InputWrapper.InputWrapper;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
29
|
var _Label = require("./Label");
|
|
37
30
|
var _Description = require("./Description");
|
|
38
31
|
var _Debugger = require("./Debugger");
|
|
39
|
-
var _InputWrapper = require("./InputWrapper");
|
|
40
32
|
var _utils = require("./utils");
|
|
41
33
|
Object.keys(_utils).forEach(function (key) {
|
|
42
34
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -48,16 +40,4 @@ Object.keys(_utils).forEach(function (key) {
|
|
|
48
40
|
return _utils[key];
|
|
49
41
|
}
|
|
50
42
|
});
|
|
51
|
-
});
|
|
52
|
-
var _V = require("./V2");
|
|
53
|
-
Object.keys(_V).forEach(function (key) {
|
|
54
|
-
if (key === "default" || key === "__esModule") return;
|
|
55
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
56
|
-
if (key in exports && exports[key] === _V[key]) return;
|
|
57
|
-
Object.defineProperty(exports, key, {
|
|
58
|
-
enumerable: true,
|
|
59
|
-
get: function () {
|
|
60
|
-
return _V[key];
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
43
|
});
|
|
@@ -13,9 +13,7 @@ require("./styles.scss");
|
|
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
14
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
15
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } /* @pareto-engineering/generator-front 1.0.12 */
|
|
17
|
-
// Local Definitions
|
|
18
|
-
|
|
16
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } /* @pareto-engineering/generator-front 1.0.12 */ // Local Definitions
|
|
19
17
|
const baseClassName = _exports.default.base;
|
|
20
18
|
const componentClassName = 'checkbox';
|
|
21
19
|
|
|
@@ -32,31 +30,23 @@ const Checkbox = _ref => {
|
|
|
32
30
|
description,
|
|
33
31
|
disabled,
|
|
34
32
|
optional,
|
|
35
|
-
labelColor
|
|
36
|
-
labelSpan,
|
|
37
|
-
desktopLabelSpan,
|
|
38
|
-
inputSpan,
|
|
39
|
-
desktopInputSpan
|
|
33
|
+
labelColor
|
|
40
34
|
// ...otherProps
|
|
41
35
|
} = _ref;
|
|
42
36
|
const [field] = (0, _formik.useField)({
|
|
43
37
|
name,
|
|
44
38
|
type: 'checkbox'
|
|
45
39
|
});
|
|
46
|
-
return /*#__PURE__*/React.createElement(
|
|
40
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
41
|
+
id: id,
|
|
42
|
+
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
43
|
+
style: style
|
|
44
|
+
}, label && /*#__PURE__*/React.createElement(_common.FormLabel, {
|
|
47
45
|
name: name,
|
|
48
46
|
color: labelColor,
|
|
49
|
-
optional: optional
|
|
50
|
-
columnSpan: labelSpan,
|
|
51
|
-
desktopColumnSpan: desktopLabelSpan
|
|
47
|
+
optional: optional
|
|
52
48
|
// {...otherProps}
|
|
53
|
-
}, label), /*#__PURE__*/React.createElement(
|
|
54
|
-
id: id,
|
|
55
|
-
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
56
|
-
style: style,
|
|
57
|
-
columnSpan: inputSpan,
|
|
58
|
-
desktopColumnSpan: desktopInputSpan
|
|
59
|
-
}, /*#__PURE__*/React.createElement("input", _extends({
|
|
49
|
+
}, label), /*#__PURE__*/React.createElement("input", _extends({
|
|
60
50
|
id: name,
|
|
61
51
|
className: "input",
|
|
62
52
|
type: "checkbox",
|
|
@@ -65,7 +55,7 @@ const Checkbox = _ref => {
|
|
|
65
55
|
className: "s-1",
|
|
66
56
|
description: description,
|
|
67
57
|
name: name
|
|
68
|
-
}))
|
|
58
|
+
}));
|
|
69
59
|
};
|
|
70
60
|
Checkbox.propTypes = {
|
|
71
61
|
/**
|
|
@@ -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
|
}
|
|
@@ -37,26 +37,17 @@ const ChoicesInput = _ref => {
|
|
|
37
37
|
disabled,
|
|
38
38
|
description,
|
|
39
39
|
spaceBetween,
|
|
40
|
-
labelSpan,
|
|
41
|
-
desktopLabelSpan,
|
|
42
|
-
inputSpan,
|
|
43
|
-
desktopInputSpan,
|
|
44
40
|
...otherProps
|
|
45
41
|
} = _ref;
|
|
46
|
-
return /*#__PURE__*/React.createElement(
|
|
47
|
-
name: name,
|
|
48
|
-
color: labelColor,
|
|
49
|
-
optional: optional,
|
|
50
|
-
columnSpan: labelSpan,
|
|
51
|
-
desktopColumnSpan: desktopLabelSpan
|
|
52
|
-
// {...otherProps}
|
|
53
|
-
}, label), /*#__PURE__*/React.createElement(_common2.InputWrapper, {
|
|
42
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
54
43
|
id: id,
|
|
55
44
|
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
56
|
-
style: style
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
45
|
+
style: style
|
|
46
|
+
}, label && /*#__PURE__*/React.createElement(_common2.FormLabel, {
|
|
47
|
+
name: name,
|
|
48
|
+
color: labelColor,
|
|
49
|
+
optional: optional
|
|
50
|
+
}, label), /*#__PURE__*/React.createElement("div", {
|
|
60
51
|
className: ['choices', spaceBetween && 'space-between'].filter(Boolean).join(' ')
|
|
61
52
|
}, options.map(choice => /*#__PURE__*/React.createElement(_common.Choice, _extends({
|
|
62
53
|
className: `x-${color}`,
|
|
@@ -70,7 +61,7 @@ const ChoicesInput = _ref => {
|
|
|
70
61
|
className: "s-1",
|
|
71
62
|
description: description,
|
|
72
63
|
name: name
|
|
73
|
-
}))
|
|
64
|
+
}));
|
|
74
65
|
};
|
|
75
66
|
ChoicesInput.propTypes = {
|
|
76
67
|
/**
|
|
@@ -108,10 +99,6 @@ ChoicesInput.propTypes = {
|
|
|
108
99
|
* how many columns should be displayed on the mobile grid
|
|
109
100
|
*/
|
|
110
101
|
gridColumnsMobile: _propTypes.default.number,
|
|
111
|
-
/**
|
|
112
|
-
* how many columns should be displayed on the desktop grid
|
|
113
|
-
*/
|
|
114
|
-
gridColumnsDesktop: _propTypes.default.number,
|
|
115
102
|
/**
|
|
116
103
|
* The choice color
|
|
117
104
|
*/
|
|
@@ -18,59 +18,62 @@ $default-background: var(--background-inputs);
|
|
|
18
18
|
$disabled-background: var(--background-inputs-30);
|
|
19
19
|
|
|
20
20
|
.#{bem.$base}.choices-input {
|
|
21
|
-
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
|
|
24
|
+
> .#{bem.$base}.form-label {
|
|
25
|
+
margin-bottom: var(--gap);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
> .choices {
|
|
22
29
|
display: flex;
|
|
23
|
-
flex-
|
|
30
|
+
flex-wrap: wrap;
|
|
31
|
+
gap: $default-flex-separator;
|
|
24
32
|
|
|
25
|
-
|
|
33
|
+
&.space-between {
|
|
34
|
+
justify-content: space-between;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
>.choice {
|
|
26
38
|
display: flex;
|
|
27
|
-
flex-wrap: wrap;
|
|
28
|
-
gap: $default-flex-separator;
|
|
29
39
|
|
|
30
|
-
|
|
31
|
-
|
|
40
|
+
input {
|
|
41
|
+
opacity: 0;
|
|
42
|
+
position: fixed;
|
|
43
|
+
visibility: none;
|
|
44
|
+
z-index: -1;
|
|
32
45
|
}
|
|
33
46
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
input {
|
|
38
|
-
opacity: 0;
|
|
39
|
-
position: fixed;
|
|
40
|
-
visibility: none;
|
|
41
|
-
z-index: -1;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
input:disabled + label {
|
|
45
|
-
background-color: $disabled-background;
|
|
46
|
-
}
|
|
47
|
+
input:disabled + label {
|
|
48
|
+
background-color: $disabled-background;
|
|
49
|
+
}
|
|
47
50
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
51
|
+
> label {
|
|
52
|
+
background-color: $default-background;
|
|
53
|
+
border: $default-border;
|
|
54
|
+
border-radius: $default-input-border-radius;
|
|
55
|
+
color: var(--paragraph);
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
display: block;
|
|
58
|
+
height: $default-label-height;
|
|
59
|
+
max-width: 100%;
|
|
60
|
+
padding: $default-label-padding;
|
|
61
|
+
position: relative;
|
|
62
|
+
transition: $default-transition;
|
|
63
|
+
white-space: nowrap;
|
|
61
64
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
65
|
+
&:not(.disabled) {
|
|
66
|
+
&:hover {
|
|
67
|
+
border: $hover-border;
|
|
66
68
|
}
|
|
67
69
|
}
|
|
70
|
+
}
|
|
68
71
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
72
|
+
input:checked + label {
|
|
73
|
+
background: var(--x);
|
|
74
|
+
color: var(--on-x);
|
|
73
75
|
}
|
|
74
76
|
}
|
|
75
77
|
}
|
|
76
78
|
}
|
|
79
|
+
|
|
@@ -19,9 +19,9 @@ var _link = require("@lexical/link");
|
|
|
19
19
|
var _list = require("@lexical/list");
|
|
20
20
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
21
21
|
var _exports = _interopRequireDefault(require("@pareto-engineering/bem/exports"));
|
|
22
|
-
require("./styles.scss");
|
|
23
22
|
var _common = require("../../common");
|
|
24
23
|
var _common2 = require("./common");
|
|
24
|
+
require("./styles.scss");
|
|
25
25
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
26
26
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
27
27
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -51,10 +51,6 @@ const EditorInput = _ref => {
|
|
|
51
51
|
labelColor,
|
|
52
52
|
description,
|
|
53
53
|
disabled,
|
|
54
|
-
labelSpan,
|
|
55
|
-
desktopLabelSpan,
|
|
56
|
-
inputSpan,
|
|
57
|
-
desktopInputSpan,
|
|
58
54
|
showDebugger
|
|
59
55
|
// ...otherProps
|
|
60
56
|
} = _ref;
|
|
@@ -115,24 +111,19 @@ const EditorInput = _ref => {
|
|
|
115
111
|
};
|
|
116
112
|
return /*#__PURE__*/React.createElement(_LexicalComposer.LexicalComposer, {
|
|
117
113
|
initialConfig: initialConfig
|
|
118
|
-
}, /*#__PURE__*/React.createElement(
|
|
119
|
-
name: name,
|
|
120
|
-
color: labelColor,
|
|
121
|
-
optional: optional,
|
|
122
|
-
columnSpan: labelSpan,
|
|
123
|
-
desktopColumnSpan: desktopLabelSpan
|
|
124
|
-
// {...otherProps}
|
|
125
|
-
}, label), /*#__PURE__*/React.createElement(_common.InputWrapper, {
|
|
114
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
126
115
|
id: id,
|
|
127
116
|
className: [baseClassName, componentClassName, userClassName, `y-${color}`, disabled && 'disabled'].filter(e => e).join(' '),
|
|
128
117
|
style: {
|
|
129
118
|
...style,
|
|
130
119
|
'--resize': resize,
|
|
131
120
|
'--rows': `${rows}em`
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
121
|
+
}
|
|
122
|
+
}, /*#__PURE__*/React.createElement(_common.FormLabel, {
|
|
123
|
+
name: name,
|
|
124
|
+
color: labelColor,
|
|
125
|
+
optional: optional
|
|
126
|
+
}, label), !disabled && /*#__PURE__*/React.createElement(_common2.Toolbar, null), /*#__PURE__*/React.createElement(_LexicalRichTextPlugin.RichTextPlugin, {
|
|
136
127
|
contentEditable: /*#__PURE__*/React.createElement(_LexicalContentEditable.ContentEditable, {
|
|
137
128
|
id: name,
|
|
138
129
|
className: "content-editable"
|
|
@@ -195,22 +186,6 @@ EditorInput.propTypes = {
|
|
|
195
186
|
* Whether the input is optional or not
|
|
196
187
|
*/
|
|
197
188
|
optional: _propTypes.default.bool,
|
|
198
|
-
/**
|
|
199
|
-
* The number of columns the label should span
|
|
200
|
-
*/
|
|
201
|
-
labelSpan: _propTypes.default.number,
|
|
202
|
-
/**
|
|
203
|
-
* The number of columns the input should span
|
|
204
|
-
*/
|
|
205
|
-
inputSpan: _propTypes.default.number,
|
|
206
|
-
/**
|
|
207
|
-
* The number of columns the label should span on desktop
|
|
208
|
-
*/
|
|
209
|
-
desktopLabelSpan: _propTypes.default.number,
|
|
210
|
-
/**
|
|
211
|
-
* The number of columns the input should span on desktop
|
|
212
|
-
*/
|
|
213
|
-
desktopInputSpan: _propTypes.default.number,
|
|
214
189
|
/**
|
|
215
190
|
* The resize property of the text area
|
|
216
191
|
*/
|