@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
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
5
|
-
import "./styles.scss";
|
|
6
5
|
|
|
7
6
|
// Local Definitions
|
|
8
|
-
|
|
7
|
+
import "./styles.scss";
|
|
9
8
|
const baseClassName = styleNames.base;
|
|
10
9
|
const componentClassName = 'form-label';
|
|
11
10
|
|
|
@@ -20,20 +19,13 @@ const Label = ({
|
|
|
20
19
|
name,
|
|
21
20
|
color,
|
|
22
21
|
optional,
|
|
23
|
-
as: Wrapper
|
|
24
|
-
columnSpan,
|
|
25
|
-
desktopColumnSpan
|
|
22
|
+
as: Wrapper
|
|
26
23
|
// ...otherProps
|
|
27
24
|
}) => /*#__PURE__*/React.createElement(Wrapper, {
|
|
28
25
|
htmlFor: Wrapper === 'label' ? name : undefined,
|
|
29
26
|
id: id,
|
|
30
27
|
className: [baseClassName, componentClassName, userClassName, `x-${color}`].filter(e => e).join(' '),
|
|
31
|
-
style:
|
|
32
|
-
...style,
|
|
33
|
-
'--column-span': columnSpan || 'var(--columns)',
|
|
34
|
-
'--column-span-md': desktopColumnSpan || 'var(--columns)'
|
|
35
|
-
}
|
|
36
|
-
// {...otherProps}
|
|
28
|
+
style: style
|
|
37
29
|
}, children, optional && ' (Optional)');
|
|
38
30
|
Label.propTypes = {
|
|
39
31
|
/**
|
|
@@ -67,15 +59,7 @@ Label.propTypes = {
|
|
|
67
59
|
/**
|
|
68
60
|
* Whether the input should have an optional tag
|
|
69
61
|
*/
|
|
70
|
-
optional: PropTypes.bool
|
|
71
|
-
/**
|
|
72
|
-
* How many columns the input should span
|
|
73
|
-
*/
|
|
74
|
-
columnSpan: PropTypes.number,
|
|
75
|
-
/**
|
|
76
|
-
* How many columns the input should span on desktop
|
|
77
|
-
*/
|
|
78
|
-
desktopColumnSpan: PropTypes.number
|
|
62
|
+
optional: PropTypes.bool
|
|
79
63
|
};
|
|
80
64
|
Label.defaultProps = {
|
|
81
65
|
as: 'label',
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export { Label as FormLabel } from "./Label";
|
|
2
2
|
export { Description as FormDescription } from "./Description";
|
|
3
3
|
export { Debugger as FormDebugger } from "./Debugger";
|
|
4
|
-
export
|
|
5
|
-
export * from "./utils";
|
|
6
|
-
export * from "./V2";
|
|
4
|
+
export * from "./utils";
|
|
@@ -4,11 +4,10 @@ import * as React from 'react';
|
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
6
6
|
import { useField } from 'formik';
|
|
7
|
-
import { FormLabel, FormDescription
|
|
8
|
-
import "./styles.scss";
|
|
7
|
+
import { FormLabel, FormDescription } from "../../common";
|
|
9
8
|
|
|
10
9
|
// Local Definitions
|
|
11
|
-
|
|
10
|
+
import "./styles.scss";
|
|
12
11
|
const baseClassName = styleNames.base;
|
|
13
12
|
const componentClassName = 'checkbox';
|
|
14
13
|
|
|
@@ -24,31 +23,23 @@ const Checkbox = ({
|
|
|
24
23
|
description,
|
|
25
24
|
disabled,
|
|
26
25
|
optional,
|
|
27
|
-
labelColor
|
|
28
|
-
labelSpan,
|
|
29
|
-
desktopLabelSpan,
|
|
30
|
-
inputSpan,
|
|
31
|
-
desktopInputSpan
|
|
26
|
+
labelColor
|
|
32
27
|
// ...otherProps
|
|
33
28
|
}) => {
|
|
34
29
|
const [field] = useField({
|
|
35
30
|
name,
|
|
36
31
|
type: 'checkbox'
|
|
37
32
|
});
|
|
38
|
-
return /*#__PURE__*/React.createElement(
|
|
33
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
34
|
+
id: id,
|
|
35
|
+
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
36
|
+
style: style
|
|
37
|
+
}, label && /*#__PURE__*/React.createElement(FormLabel, {
|
|
39
38
|
name: name,
|
|
40
39
|
color: labelColor,
|
|
41
|
-
optional: optional
|
|
42
|
-
columnSpan: labelSpan,
|
|
43
|
-
desktopColumnSpan: desktopLabelSpan
|
|
40
|
+
optional: optional
|
|
44
41
|
// {...otherProps}
|
|
45
|
-
}, label), /*#__PURE__*/React.createElement(
|
|
46
|
-
id: id,
|
|
47
|
-
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
48
|
-
style: style,
|
|
49
|
-
columnSpan: inputSpan,
|
|
50
|
-
desktopColumnSpan: desktopInputSpan
|
|
51
|
-
}, /*#__PURE__*/React.createElement("input", _extends({
|
|
42
|
+
}, label), /*#__PURE__*/React.createElement("input", _extends({
|
|
52
43
|
id: name,
|
|
53
44
|
className: "input",
|
|
54
45
|
type: "checkbox",
|
|
@@ -57,7 +48,7 @@ const Checkbox = ({
|
|
|
57
48
|
className: "s-1",
|
|
58
49
|
description: description,
|
|
59
50
|
name: name
|
|
60
|
-
}))
|
|
51
|
+
}));
|
|
61
52
|
};
|
|
62
53
|
Checkbox.propTypes = {
|
|
63
54
|
/**
|
|
@@ -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
|
}
|
|
@@ -8,7 +8,7 @@ import styleNames from '@pareto-engineering/bem/exports';
|
|
|
8
8
|
// Local Definitions
|
|
9
9
|
|
|
10
10
|
import { Choice } from "./common";
|
|
11
|
-
import { FormDescription, FormLabel
|
|
11
|
+
import { FormDescription, FormLabel } from "../../common";
|
|
12
12
|
import "./styles.scss";
|
|
13
13
|
const baseClassName = styleNames.base;
|
|
14
14
|
const componentClassName = 'choices-input';
|
|
@@ -31,25 +31,16 @@ const ChoicesInput = ({
|
|
|
31
31
|
disabled,
|
|
32
32
|
description,
|
|
33
33
|
spaceBetween,
|
|
34
|
-
labelSpan,
|
|
35
|
-
desktopLabelSpan,
|
|
36
|
-
inputSpan,
|
|
37
|
-
desktopInputSpan,
|
|
38
34
|
...otherProps
|
|
39
|
-
}) => /*#__PURE__*/React.createElement(
|
|
40
|
-
name: name,
|
|
41
|
-
color: labelColor,
|
|
42
|
-
optional: optional,
|
|
43
|
-
columnSpan: labelSpan,
|
|
44
|
-
desktopColumnSpan: desktopLabelSpan
|
|
45
|
-
// {...otherProps}
|
|
46
|
-
}, label), /*#__PURE__*/React.createElement(InputWrapper, {
|
|
35
|
+
}) => /*#__PURE__*/React.createElement("div", {
|
|
47
36
|
id: id,
|
|
48
37
|
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
49
|
-
style: style
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
38
|
+
style: style
|
|
39
|
+
}, label && /*#__PURE__*/React.createElement(FormLabel, {
|
|
40
|
+
name: name,
|
|
41
|
+
color: labelColor,
|
|
42
|
+
optional: optional
|
|
43
|
+
}, label), /*#__PURE__*/React.createElement("div", {
|
|
53
44
|
className: ['choices', spaceBetween && 'space-between'].filter(Boolean).join(' ')
|
|
54
45
|
}, options.map(choice => /*#__PURE__*/React.createElement(Choice, _extends({
|
|
55
46
|
className: `x-${color}`,
|
|
@@ -63,7 +54,7 @@ const ChoicesInput = ({
|
|
|
63
54
|
className: "s-1",
|
|
64
55
|
description: description,
|
|
65
56
|
name: name
|
|
66
|
-
}))
|
|
57
|
+
}));
|
|
67
58
|
ChoicesInput.propTypes = {
|
|
68
59
|
/**
|
|
69
60
|
* The HTML id for this element
|
|
@@ -100,10 +91,6 @@ ChoicesInput.propTypes = {
|
|
|
100
91
|
* how many columns should be displayed on the mobile grid
|
|
101
92
|
*/
|
|
102
93
|
gridColumnsMobile: PropTypes.number,
|
|
103
|
-
/**
|
|
104
|
-
* how many columns should be displayed on the desktop grid
|
|
105
|
-
*/
|
|
106
|
-
gridColumnsDesktop: PropTypes.number,
|
|
107
94
|
/**
|
|
108
95
|
* The choice color
|
|
109
96
|
*/
|
|
@@ -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
|
+
|
|
@@ -15,12 +15,12 @@ import { AutoLinkNode, LinkNode } from '@lexical/link';
|
|
|
15
15
|
import { ListItemNode, ListNode } from '@lexical/list';
|
|
16
16
|
import PropTypes from 'prop-types';
|
|
17
17
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
18
|
-
import "./styles.scss";
|
|
19
18
|
|
|
20
19
|
// Local Definitions
|
|
21
20
|
|
|
22
|
-
import { FormLabel, FormDescription
|
|
21
|
+
import { FormLabel, FormDescription } from "../../common";
|
|
23
22
|
import { Toolbar, TreeViewPlugin } from "./common";
|
|
23
|
+
import "./styles.scss";
|
|
24
24
|
const baseClassName = styleNames.base;
|
|
25
25
|
const componentClassName = 'editor-input';
|
|
26
26
|
|
|
@@ -41,10 +41,6 @@ const EditorInput = ({
|
|
|
41
41
|
labelColor,
|
|
42
42
|
description,
|
|
43
43
|
disabled,
|
|
44
|
-
labelSpan,
|
|
45
|
-
desktopLabelSpan,
|
|
46
|
-
inputSpan,
|
|
47
|
-
desktopInputSpan,
|
|
48
44
|
showDebugger
|
|
49
45
|
// ...otherProps
|
|
50
46
|
}) => {
|
|
@@ -105,24 +101,19 @@ const EditorInput = ({
|
|
|
105
101
|
};
|
|
106
102
|
return /*#__PURE__*/React.createElement(LexicalComposer, {
|
|
107
103
|
initialConfig: initialConfig
|
|
108
|
-
}, /*#__PURE__*/React.createElement(
|
|
109
|
-
name: name,
|
|
110
|
-
color: labelColor,
|
|
111
|
-
optional: optional,
|
|
112
|
-
columnSpan: labelSpan,
|
|
113
|
-
desktopColumnSpan: desktopLabelSpan
|
|
114
|
-
// {...otherProps}
|
|
115
|
-
}, label), /*#__PURE__*/React.createElement(InputWrapper, {
|
|
104
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
116
105
|
id: id,
|
|
117
106
|
className: [baseClassName, componentClassName, userClassName, `y-${color}`, disabled && 'disabled'].filter(e => e).join(' '),
|
|
118
107
|
style: {
|
|
119
108
|
...style,
|
|
120
109
|
'--resize': resize,
|
|
121
110
|
'--rows': `${rows}em`
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
111
|
+
}
|
|
112
|
+
}, /*#__PURE__*/React.createElement(FormLabel, {
|
|
113
|
+
name: name,
|
|
114
|
+
color: labelColor,
|
|
115
|
+
optional: optional
|
|
116
|
+
}, label), !disabled && /*#__PURE__*/React.createElement(Toolbar, null), /*#__PURE__*/React.createElement(RichTextPlugin, {
|
|
126
117
|
contentEditable: /*#__PURE__*/React.createElement(ContentEditable, {
|
|
127
118
|
id: name,
|
|
128
119
|
className: "content-editable"
|
|
@@ -185,22 +176,6 @@ EditorInput.propTypes = {
|
|
|
185
176
|
* Whether the input is optional or not
|
|
186
177
|
*/
|
|
187
178
|
optional: PropTypes.bool,
|
|
188
|
-
/**
|
|
189
|
-
* The number of columns the label should span
|
|
190
|
-
*/
|
|
191
|
-
labelSpan: PropTypes.number,
|
|
192
|
-
/**
|
|
193
|
-
* The number of columns the input should span
|
|
194
|
-
*/
|
|
195
|
-
inputSpan: PropTypes.number,
|
|
196
|
-
/**
|
|
197
|
-
* The number of columns the label should span on desktop
|
|
198
|
-
*/
|
|
199
|
-
desktopLabelSpan: PropTypes.number,
|
|
200
|
-
/**
|
|
201
|
-
* The number of columns the input should span on desktop
|
|
202
|
-
*/
|
|
203
|
-
desktopInputSpan: PropTypes.number,
|
|
204
179
|
/**
|
|
205
180
|
* The resize property of the text area
|
|
206
181
|
*/
|
|
@@ -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;
|
|
@@ -5,11 +5,11 @@ import { memo } from 'react';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
7
7
|
import { useField } from 'formik';
|
|
8
|
-
import { FormLabel, FormDescription
|
|
9
|
-
import "./styles.scss";
|
|
8
|
+
import { FormLabel, FormDescription } from "../../common";
|
|
10
9
|
|
|
11
10
|
// Local Definitions
|
|
12
11
|
|
|
12
|
+
import "./styles.scss";
|
|
13
13
|
const baseClassName = styleNames.base;
|
|
14
14
|
const componentClassName = 'link-input';
|
|
15
15
|
|
|
@@ -29,31 +29,23 @@ const LinkInput = ({
|
|
|
29
29
|
disabled,
|
|
30
30
|
placeholder,
|
|
31
31
|
optional,
|
|
32
|
-
autoComplete
|
|
33
|
-
labelSpan,
|
|
34
|
-
desktopLabelSpan,
|
|
35
|
-
inputSpan,
|
|
36
|
-
desktopInputSpan
|
|
32
|
+
autoComplete
|
|
37
33
|
// ...otherProps
|
|
38
34
|
}) => {
|
|
39
35
|
const [field] = useField({
|
|
40
36
|
name,
|
|
41
37
|
validate
|
|
42
38
|
});
|
|
43
|
-
return /*#__PURE__*/React.createElement(
|
|
39
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
40
|
+
id: id,
|
|
41
|
+
className: [baseClassName, componentClassName, userClassName, `y-${color}`].filter(e => e).join(' '),
|
|
42
|
+
style: style
|
|
43
|
+
}, /*#__PURE__*/React.createElement(FormLabel, {
|
|
44
44
|
name: name,
|
|
45
45
|
color: labelColor,
|
|
46
|
-
optional: optional
|
|
47
|
-
columnSpan: labelSpan,
|
|
48
|
-
desktopColumnSpan: desktopLabelSpan
|
|
46
|
+
optional: optional
|
|
49
47
|
// {...otherProps}
|
|
50
|
-
}, label), /*#__PURE__*/React.createElement(
|
|
51
|
-
id: id,
|
|
52
|
-
className: [baseClassName, componentClassName, userClassName, `y-${color}`].filter(e => e).join(' '),
|
|
53
|
-
style: style,
|
|
54
|
-
columnSpan: inputSpan,
|
|
55
|
-
desktopColumnSpan: desktopInputSpan
|
|
56
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
48
|
+
}, label), /*#__PURE__*/React.createElement("div", {
|
|
57
49
|
className: "input-link-wrapper"
|
|
58
50
|
}, /*#__PURE__*/React.createElement("input", _extends({
|
|
59
51
|
id: name,
|
|
@@ -70,7 +62,7 @@ const LinkInput = ({
|
|
|
70
62
|
className: "s-1",
|
|
71
63
|
description: description,
|
|
72
64
|
name: name
|
|
73
|
-
}))
|
|
65
|
+
}));
|
|
74
66
|
};
|
|
75
67
|
LinkInput.propTypes = {
|
|
76
68
|
/**
|