@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
|
@@ -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
|
+
|
|
@@ -16,13 +16,14 @@ import { ListItemNode, ListNode } from '@lexical/list'
|
|
|
16
16
|
|
|
17
17
|
import PropTypes from 'prop-types'
|
|
18
18
|
import styleNames from '@pareto-engineering/bem/exports'
|
|
19
|
-
import './styles.scss'
|
|
20
19
|
|
|
21
20
|
// Local Definitions
|
|
22
21
|
|
|
23
|
-
import { FormLabel, FormDescription
|
|
22
|
+
import { FormLabel, FormDescription } from '../../common'
|
|
24
23
|
import { Toolbar, TreeViewPlugin } from './common'
|
|
25
24
|
|
|
25
|
+
import './styles.scss'
|
|
26
|
+
|
|
26
27
|
const baseClassName = styleNames.base
|
|
27
28
|
const componentClassName = 'editor-input'
|
|
28
29
|
|
|
@@ -43,10 +44,6 @@ const EditorInput = ({
|
|
|
43
44
|
labelColor,
|
|
44
45
|
description,
|
|
45
46
|
disabled,
|
|
46
|
-
labelSpan,
|
|
47
|
-
desktopLabelSpan,
|
|
48
|
-
inputSpan,
|
|
49
|
-
desktopInputSpan,
|
|
50
47
|
showDebugger,
|
|
51
48
|
// ...otherProps
|
|
52
49
|
}) => {
|
|
@@ -122,17 +119,7 @@ const EditorInput = ({
|
|
|
122
119
|
<LexicalComposer
|
|
123
120
|
initialConfig={initialConfig}
|
|
124
121
|
>
|
|
125
|
-
<
|
|
126
|
-
name={name}
|
|
127
|
-
color={labelColor}
|
|
128
|
-
optional={optional}
|
|
129
|
-
columnSpan={labelSpan}
|
|
130
|
-
desktopColumnSpan={desktopLabelSpan}
|
|
131
|
-
// {...otherProps}
|
|
132
|
-
>
|
|
133
|
-
{label}
|
|
134
|
-
</FormLabel>
|
|
135
|
-
<InputWrapper
|
|
122
|
+
<div
|
|
136
123
|
id={id}
|
|
137
124
|
className={[
|
|
138
125
|
baseClassName,
|
|
@@ -148,9 +135,15 @@ const EditorInput = ({
|
|
|
148
135
|
'--resize':resize,
|
|
149
136
|
'--rows' :`${rows}em`,
|
|
150
137
|
}}
|
|
151
|
-
columnSpan={inputSpan}
|
|
152
|
-
desktopColumnSpan={desktopInputSpan}
|
|
153
138
|
>
|
|
139
|
+
<FormLabel
|
|
140
|
+
name={name}
|
|
141
|
+
color={labelColor}
|
|
142
|
+
optional={optional}
|
|
143
|
+
>
|
|
144
|
+
{label}
|
|
145
|
+
</FormLabel>
|
|
146
|
+
|
|
154
147
|
{ !disabled && <Toolbar /> }
|
|
155
148
|
<RichTextPlugin
|
|
156
149
|
contentEditable={(
|
|
@@ -167,7 +160,7 @@ const EditorInput = ({
|
|
|
167
160
|
<HistoryPlugin />
|
|
168
161
|
<FormDescription className="s-1" description={description} name={name} />
|
|
169
162
|
{ showDebugger && <TreeViewPlugin />}
|
|
170
|
-
</
|
|
163
|
+
</div>
|
|
171
164
|
</LexicalComposer>
|
|
172
165
|
)
|
|
173
166
|
}
|
|
@@ -233,26 +226,6 @@ EditorInput.propTypes = {
|
|
|
233
226
|
*/
|
|
234
227
|
optional:PropTypes.bool,
|
|
235
228
|
|
|
236
|
-
/**
|
|
237
|
-
* The number of columns the label should span
|
|
238
|
-
*/
|
|
239
|
-
labelSpan:PropTypes.number,
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* The number of columns the input should span
|
|
243
|
-
*/
|
|
244
|
-
inputSpan:PropTypes.number,
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* The number of columns the label should span on desktop
|
|
248
|
-
*/
|
|
249
|
-
desktopLabelSpan:PropTypes.number,
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* The number of columns the input should span on desktop
|
|
253
|
-
*/
|
|
254
|
-
desktopInputSpan:PropTypes.number,
|
|
255
|
-
|
|
256
229
|
/**
|
|
257
230
|
* The resize property of the text area
|
|
258
231
|
*/
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
-
/* stylelint-disable max-nesting-depth -- required here */
|
|
3
2
|
|
|
4
3
|
@use "@pareto-engineering/bem";
|
|
5
4
|
@use "@pareto-engineering/styles/src/mixins";
|
|
@@ -18,124 +17,127 @@ $disabled-background: var(--background-inputs-30);
|
|
|
18
17
|
$default-color-menu-padding: .5em .25em;
|
|
19
18
|
|
|
20
19
|
.#{bem.$base}.editor-input {
|
|
21
|
-
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
|
|
23
|
+
> .#{bem.$base}.form-label {
|
|
24
|
+
margin-bottom: var(--gap);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
> .#{bem.$base}.toolbar {
|
|
22
28
|
display: flex;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
color: $
|
|
35
|
-
padding: $default-padding;
|
|
36
|
-
|
|
37
|
-
&.active {
|
|
38
|
-
background-color: $active-background;
|
|
39
|
-
}
|
|
29
|
+
gap: $default-gap;
|
|
30
|
+
margin-bottom: .25em;
|
|
31
|
+
|
|
32
|
+
> .group {
|
|
33
|
+
> button {
|
|
34
|
+
background: $default-background;
|
|
35
|
+
border: $default-border;
|
|
36
|
+
color: $default-icon-color;
|
|
37
|
+
padding: $default-padding;
|
|
38
|
+
|
|
39
|
+
&.active {
|
|
40
|
+
background-color: $active-background;
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
|
-
|
|
43
|
-
.flip {
|
|
44
|
-
transform: scaleX(-1);
|
|
45
|
-
}
|
|
46
43
|
}
|
|
47
44
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
&:focus,
|
|
51
|
-
&:active {
|
|
52
|
-
> .textarea {
|
|
53
|
-
border: $focus-border;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
45
|
+
.flip {
|
|
46
|
+
transform: scaleX(-1);
|
|
56
47
|
}
|
|
48
|
+
}
|
|
57
49
|
|
|
58
|
-
|
|
50
|
+
&:not(.disabled) {
|
|
51
|
+
&:hover,
|
|
52
|
+
&:focus,
|
|
53
|
+
&:active {
|
|
59
54
|
> .textarea {
|
|
60
|
-
|
|
61
|
-
color: var(--metadata);
|
|
62
|
-
cursor: not-allowed;
|
|
55
|
+
border: $focus-border;
|
|
63
56
|
}
|
|
64
57
|
}
|
|
58
|
+
}
|
|
65
59
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
60
|
+
&.disabled {
|
|
61
|
+
> .textarea {
|
|
62
|
+
background: $disabled-background;
|
|
63
|
+
color: var(--metadata);
|
|
64
|
+
cursor: not-allowed;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
72
67
|
|
|
68
|
+
.color-menu-button {
|
|
69
|
+
&:hover {
|
|
73
70
|
> .#{bem.$base}.popover {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
.color-menu {
|
|
77
|
-
display: flex;
|
|
78
|
-
flex-wrap: wrap;
|
|
79
|
-
gap: calc($default-gap / 2);
|
|
80
|
-
justify-content: center;
|
|
81
|
-
max-width: 10em;
|
|
82
|
-
min-width: 5em;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.color-option:hover {
|
|
86
|
-
opacity: .5;
|
|
87
|
-
}
|
|
71
|
+
display: block;
|
|
88
72
|
}
|
|
89
73
|
}
|
|
90
74
|
|
|
91
|
-
> .
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
width: 100%;
|
|
102
|
-
|
|
103
|
-
li:has(ol, ul) {
|
|
104
|
-
list-style-type: none;
|
|
75
|
+
> .#{bem.$base}.popover {
|
|
76
|
+
padding: $default-color-menu-padding;
|
|
77
|
+
|
|
78
|
+
.color-menu {
|
|
79
|
+
display: flex;
|
|
80
|
+
flex-wrap: wrap;
|
|
81
|
+
gap: calc($default-gap / 2);
|
|
82
|
+
justify-content: center;
|
|
83
|
+
max-width: 10em;
|
|
84
|
+
min-width: 5em;
|
|
105
85
|
}
|
|
106
86
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
&.underlined {
|
|
113
|
-
text-decoration: underline;
|
|
114
|
-
|
|
115
|
-
&.strikethrough {
|
|
116
|
-
text-decoration: underline line-through;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
87
|
+
.color-option:hover {
|
|
88
|
+
opacity: .5;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
119
92
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
93
|
+
> .content-editable {
|
|
94
|
+
background: $default-background;
|
|
95
|
+
border: $default-border;
|
|
96
|
+
border-radius: $default-input-border-radius;
|
|
97
|
+
color: var(--y);
|
|
98
|
+
height: var(--rows);
|
|
99
|
+
outline: none;
|
|
100
|
+
overflow: auto;
|
|
101
|
+
padding: $default-padding;
|
|
102
|
+
resize: var(--resize);
|
|
103
|
+
width: 100%;
|
|
123
104
|
|
|
124
|
-
|
|
125
|
-
|
|
105
|
+
li:has(ol, ul) {
|
|
106
|
+
list-style-type: none;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
p,
|
|
110
|
+
span,
|
|
111
|
+
strong,
|
|
112
|
+
em,
|
|
113
|
+
li {
|
|
114
|
+
&.underlined {
|
|
115
|
+
text-decoration: underline;
|
|
116
|
+
|
|
117
|
+
&.strikethrough {
|
|
118
|
+
text-decoration: underline line-through;
|
|
126
119
|
}
|
|
127
120
|
}
|
|
128
121
|
|
|
129
|
-
|
|
130
|
-
|
|
122
|
+
&.strikethrough {
|
|
123
|
+
text-decoration: line-through;
|
|
131
124
|
}
|
|
132
125
|
|
|
133
|
-
|
|
134
|
-
|
|
126
|
+
&.italic {
|
|
127
|
+
font-style: italic;
|
|
135
128
|
}
|
|
136
129
|
}
|
|
130
|
+
|
|
131
|
+
:first-child {
|
|
132
|
+
margin-top: 0;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&::placeholder {
|
|
136
|
+
color: var(--metadata);
|
|
137
|
+
}
|
|
137
138
|
}
|
|
138
139
|
|
|
140
|
+
|
|
139
141
|
> .tree-view-output {
|
|
140
142
|
background: $default-background;
|
|
141
143
|
border: $default-border;
|
|
@@ -9,11 +9,12 @@ import styleNames from '@pareto-engineering/bem/exports'
|
|
|
9
9
|
|
|
10
10
|
import { useField } from 'formik'
|
|
11
11
|
|
|
12
|
-
import { FormLabel, FormDescription
|
|
13
|
-
import './styles.scss'
|
|
12
|
+
import { FormLabel, FormDescription } from '../../common'
|
|
14
13
|
|
|
15
14
|
// Local Definitions
|
|
16
15
|
|
|
16
|
+
import './styles.scss'
|
|
17
|
+
|
|
17
18
|
const baseClassName = styleNames.base
|
|
18
19
|
|
|
19
20
|
const componentClassName = 'link-input'
|
|
@@ -35,61 +36,51 @@ const LinkInput = ({
|
|
|
35
36
|
placeholder,
|
|
36
37
|
optional,
|
|
37
38
|
autoComplete,
|
|
38
|
-
labelSpan,
|
|
39
|
-
desktopLabelSpan,
|
|
40
|
-
inputSpan,
|
|
41
|
-
desktopInputSpan,
|
|
42
39
|
// ...otherProps
|
|
43
40
|
}) => {
|
|
44
41
|
const [field] = useField({ name, validate })
|
|
45
42
|
|
|
46
43
|
return (
|
|
47
|
-
|
|
44
|
+
<div
|
|
45
|
+
id={id}
|
|
46
|
+
className={[
|
|
47
|
+
baseClassName,
|
|
48
|
+
componentClassName,
|
|
49
|
+
userClassName,
|
|
50
|
+
`y-${color}`,
|
|
51
|
+
]
|
|
52
|
+
.filter((e) => e)
|
|
53
|
+
.join(' ')}
|
|
54
|
+
style={style}
|
|
55
|
+
>
|
|
48
56
|
<FormLabel
|
|
49
57
|
name={name}
|
|
50
58
|
color={labelColor}
|
|
51
59
|
optional={optional}
|
|
52
|
-
columnSpan={labelSpan}
|
|
53
|
-
desktopColumnSpan={desktopLabelSpan}
|
|
54
60
|
// {...otherProps}
|
|
55
61
|
>
|
|
56
62
|
{label}
|
|
57
63
|
</FormLabel>
|
|
58
|
-
<
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
placeholder={placeholder}
|
|
79
|
-
autoComplete={autoComplete}
|
|
80
|
-
{...field}
|
|
81
|
-
/>
|
|
82
|
-
<a
|
|
83
|
-
href={field.value}
|
|
84
|
-
target="_blank"
|
|
85
|
-
rel="noopener noreferrer"
|
|
86
|
-
>
|
|
87
|
-
→
|
|
88
|
-
</a>
|
|
89
|
-
</div>
|
|
90
|
-
<FormDescription className="s-1" description={description} name={name} />
|
|
91
|
-
</InputWrapper>
|
|
92
|
-
</>
|
|
64
|
+
<div className="input-link-wrapper">
|
|
65
|
+
<input
|
|
66
|
+
id={name}
|
|
67
|
+
className="input"
|
|
68
|
+
type="text"
|
|
69
|
+
disabled={disabled}
|
|
70
|
+
placeholder={placeholder}
|
|
71
|
+
autoComplete={autoComplete}
|
|
72
|
+
{...field}
|
|
73
|
+
/>
|
|
74
|
+
<a
|
|
75
|
+
href={field.value}
|
|
76
|
+
target="_blank"
|
|
77
|
+
rel="noopener noreferrer"
|
|
78
|
+
>
|
|
79
|
+
→
|
|
80
|
+
</a>
|
|
81
|
+
</div>
|
|
82
|
+
<FormDescription className="s-1" description={description} name={name} />
|
|
83
|
+
</div>
|
|
93
84
|
)
|
|
94
85
|
}
|
|
95
86
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
-
/* stylelint-disable max-nesting-depth -- required here */
|
|
3
2
|
|
|
4
3
|
@use "@pareto-engineering/bem";
|
|
5
4
|
@use "@pareto-engineering/styles/src/mixins";
|
|
@@ -20,68 +19,70 @@ $default-background: var(--background-inputs);
|
|
|
20
19
|
$disabled-background: var(--background-inputs-30);
|
|
21
20
|
|
|
22
21
|
.#{bem.$base}.link-input {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
position: relative;
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
position: relative;
|
|
27
25
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
content: var(--symbol);
|
|
32
|
-
left: $default-symbol-left;
|
|
33
|
-
position: absolute;
|
|
34
|
-
top: 50%;
|
|
35
|
-
transform: translate(-50%, -50%);
|
|
36
|
-
}
|
|
26
|
+
> .#{bem.$base}.form-label {
|
|
27
|
+
margin-bottom: var(--gap);
|
|
28
|
+
}
|
|
37
29
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
30
|
+
&.has-symbol {
|
|
31
|
+
&::before {
|
|
32
|
+
color: var(--y);
|
|
33
|
+
content: var(--symbol);
|
|
34
|
+
left: $default-symbol-left;
|
|
35
|
+
position: absolute;
|
|
36
|
+
top: 50%;
|
|
37
|
+
transform: translate(-50%, -50%);
|
|
41
38
|
}
|
|
42
39
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
input {
|
|
41
|
+
padding: $default-padding-with-symbol;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
46
44
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
border-radius: var(--theme-default-input-border-radius);
|
|
51
|
-
padding: .5em;
|
|
45
|
+
> .input-link-wrapper {
|
|
46
|
+
display: flex;
|
|
47
|
+
gap: calc(var(--gap) / 2);
|
|
52
48
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
49
|
+
> a {
|
|
50
|
+
align-self: center;
|
|
51
|
+
border: 1px solid var(--interactive);
|
|
52
|
+
border-radius: var(--theme-default-input-border-radius);
|
|
53
|
+
padding: .5em;
|
|
54
|
+
|
|
55
|
+
&:hover {
|
|
56
|
+
background-color: var(--interactive);
|
|
57
|
+
color: var(--on-interactive);
|
|
57
58
|
}
|
|
59
|
+
}
|
|
58
60
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
61
|
+
> input {
|
|
62
|
+
background-color: $default-background;
|
|
63
|
+
border: $default-border;
|
|
64
|
+
border-radius: $default-input-border-radius;
|
|
65
|
+
color: var(--y);
|
|
66
|
+
outline: none;
|
|
67
|
+
padding: $default-padding;
|
|
68
|
+
width: 100%;
|
|
67
69
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
70
|
+
&::placeholder {
|
|
71
|
+
color: var(--metadata);
|
|
72
|
+
}
|
|
71
73
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
&:disabled {
|
|
75
|
+
background-color: $disabled-background;
|
|
76
|
+
}
|
|
75
77
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
&:not(:disabled) {
|
|
79
|
+
&:hover,
|
|
80
|
+
&:active {
|
|
81
|
+
border: $hover-border;
|
|
82
|
+
}
|
|
81
83
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
84
|
+
&:focus {
|
|
85
|
+
border: $focus-border;
|
|
85
86
|
}
|
|
86
87
|
}
|
|
87
88
|
}
|