superdesk-ui-framework 3.0.1-beta.3 → 3.0.1-beta.30
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/app/fonts/sd_icons.eot +0 -0
- package/app/fonts/sd_icons.svg +14 -7
- package/app/fonts/sd_icons.ttf +0 -0
- package/app/fonts/sd_icons.woff +0 -0
- package/app/scripts/toggleBoxNext.js +1 -1
- package/app/styles/_big-icon-font.scss +1 -1
- package/app/styles/_buttons.scss +11 -6
- package/app/styles/_content-divider.scss +63 -8
- package/app/styles/_helpers.scss +24 -1
- package/app/styles/_icon-font.scss +17 -10
- package/app/styles/_labels.scss +0 -1
- package/app/styles/_master-desk.scss +3 -2
- package/app/styles/_modals.scss +6 -3
- package/app/styles/_normalize.scss +4 -0
- package/app/styles/_sd-tag-input.scss +256 -296
- package/app/styles/_simple-list.scss +0 -2
- package/app/styles/_table-list.scss +116 -12
- package/app/styles/app.scss +1 -0
- package/app/styles/components/_list-item.scss +36 -17
- package/app/styles/components/_sd-collapse-box.scss +6 -6
- package/app/styles/components/_sd-comment-box.scss +8 -4
- package/app/styles/components/_sd-editor-popup.scss +4 -4
- package/app/styles/components/_sd-grid-item.scss +30 -16
- package/app/styles/components/_sd-media-carousel.scss +37 -2
- package/app/styles/components/_sd-photo-preview.scss +3 -3
- package/app/styles/components/_sd-searchbar.scss +7 -0
- package/app/styles/components/_subnav.scss +470 -470
- package/app/styles/design-tokens/_design-tokens-general.scss +1 -1
- package/app/styles/design-tokens/_new-colors.scss +30 -13
- package/app/styles/dropdowns/_basic-dropdown.scss +6 -0
- package/app/styles/form-elements/_forms-general.scss +81 -7
- package/app/styles/form-elements/_input-wrap.scss +138 -0
- package/app/styles/form-elements/_inputs.scss +368 -110
- package/app/styles/grids/_grid-layout.scss +34 -1
- package/app/styles/interface-elements/_side-panel.scss +1 -1
- package/app/styles/layout/_basic-layout.scss +2 -2
- package/app/styles/layout/_editor.scss +10 -4
- package/app/styles/primereact/_pr-datepicker.scss +4 -2
- package/app/styles/primereact/_pr-dialog.scss +5 -0
- package/app/styles/primereact/_pr-dropdown.scss +17 -1
- package/app/styles/primereact/_pr-menu.scss +6 -5
- package/app/styles/variables/_colors.scss +21 -21
- package/app-typescript/components/Badge.tsx +3 -2
- package/app-typescript/components/ContentDivider.tsx +3 -0
- package/app-typescript/components/DatePicker.tsx +40 -52
- package/app-typescript/components/Dropdown.tsx +127 -82
- package/app-typescript/components/DurationInput.tsx +400 -0
- package/app-typescript/components/EmptyState.tsx +2 -1
- package/app-typescript/components/Form/FormLabel.tsx +8 -1
- package/app-typescript/components/Form/FormRowNew.tsx +41 -0
- package/app-typescript/components/Form/InputBase.tsx +95 -0
- package/app-typescript/components/Form/InputNew.tsx +107 -0
- package/app-typescript/components/Form/InputWrapper.tsx +79 -0
- package/app-typescript/components/Form/index.tsx +4 -0
- package/app-typescript/components/Input.tsx +28 -45
- package/app-typescript/components/Label.tsx +65 -10
- package/app-typescript/components/Layouts/AuthoringContainer.tsx +2 -1
- package/app-typescript/components/Layouts/AuthoringFrame.tsx +2 -1
- package/app-typescript/components/Layouts/AuthoringFrameRightBar.tsx +21 -2
- package/app-typescript/components/Layouts/AuthoringInnerHeader.tsx +1 -1
- package/app-typescript/components/Layouts/AuthoringMain.tsx +4 -2
- package/app-typescript/components/Layouts/CoreLayout.tsx +2 -1
- package/app-typescript/components/Layouts/CoreLayoutMain.tsx +7 -1
- package/app-typescript/components/Layouts/Layout.tsx +1 -1
- package/app-typescript/components/LeftMenu.tsx +127 -122
- package/app-typescript/components/Lists/ContentList.tsx +66 -33
- package/app-typescript/components/Lists/TableList.tsx +348 -151
- package/app-typescript/components/Menu.tsx +2 -2
- package/app-typescript/components/MultiSelect.tsx +37 -50
- package/app-typescript/components/NavButton.tsx +2 -1
- package/app-typescript/components/Navigation/BottomNav.tsx +3 -2
- package/app-typescript/components/SearchBar.tsx +39 -12
- package/app-typescript/components/Select.tsx +23 -41
- package/app-typescript/components/SelectWithTemplate.tsx +32 -7
- package/app-typescript/components/Spacer.tsx +87 -0
- package/app-typescript/components/TimePicker.tsx +38 -15
- package/app-typescript/components/TreeSelect.tsx +546 -212
- package/app-typescript/index.ts +6 -1
- package/dist/examples.bundle.css +344 -71
- package/dist/examples.bundle.js +48203 -45174
- package/dist/playgrounds/react-playgrounds/CoreLayout.tsx +65 -54
- package/dist/playgrounds/react-playgrounds/Index.tsx +1 -0
- package/dist/playgrounds/react-playgrounds/Multiedit.tsx +321 -0
- package/dist/playgrounds/react-playgrounds/RundownEditor.tsx +26 -23
- package/dist/playgrounds/react-playgrounds/Rundowns.tsx +20 -21
- package/dist/playgrounds/react-playgrounds/SamsPlayground.tsx +12 -3
- package/dist/playgrounds/react-playgrounds/TestGround.tsx +379 -25
- package/dist/playgrounds/react-playgrounds/components/Layout.tsx +1 -1
- package/dist/react/Badges.tsx +18 -0
- package/dist/react/ContentDivider.tsx +22 -18
- package/dist/react/ContentList.tsx +200 -18
- package/dist/react/DatePicker.tsx +21 -1
- package/dist/react/Dropdowns.tsx +580 -48
- package/dist/react/DurationInput.tsx +108 -0
- package/dist/react/Index.tsx +5 -0
- package/dist/react/Inputs.tsx +147 -2
- package/dist/react/Labels.tsx +51 -1
- package/dist/react/LeftNavigations.tsx +71 -44
- package/dist/react/MultiSelect.tsx +10 -7
- package/dist/react/NavButtons.tsx +31 -1
- package/dist/react/SelectWithTemplate.tsx +6 -1
- package/dist/react/TableList.tsx +79 -186
- package/dist/react/TimePicker.tsx +22 -12
- package/dist/react/Togglebox.tsx +1 -1
- package/dist/react/TreeSelect.tsx +295 -51
- package/dist/react/tree-select/TreeSelect.tsx +273 -0
- package/dist/react/tree-select/example-1.tsx +71 -0
- package/dist/react/tree-select/example-2.tsx +59 -0
- package/dist/sd_icons.eot +0 -0
- package/dist/sd_icons.svg +14 -7
- package/dist/sd_icons.ttf +0 -0
- package/dist/sd_icons.woff +0 -0
- package/dist/superdesk-ui.bundle.css +2282 -782
- package/dist/superdesk-ui.bundle.js +37312 -21800
- package/dist/vendor.bundle.js +27 -27
- package/examples/css/docs-page.css +4 -4
- package/examples/index.js +4 -0
- package/examples/pages/playgrounds/react-playgrounds/CoreLayout.tsx +65 -54
- package/examples/pages/playgrounds/react-playgrounds/Index.tsx +1 -0
- package/examples/pages/playgrounds/react-playgrounds/Multiedit.tsx +321 -0
- package/examples/pages/playgrounds/react-playgrounds/RundownEditor.tsx +26 -23
- package/examples/pages/playgrounds/react-playgrounds/Rundowns.tsx +20 -21
- package/examples/pages/playgrounds/react-playgrounds/SamsPlayground.tsx +12 -3
- package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +379 -25
- package/examples/pages/playgrounds/react-playgrounds/components/Layout.tsx +1 -1
- package/examples/pages/react/Badges.tsx +18 -0
- package/examples/pages/react/ContentDivider.tsx +22 -18
- package/examples/pages/react/ContentList.tsx +200 -18
- package/examples/pages/react/DatePicker.tsx +21 -1
- package/examples/pages/react/Dropdowns.tsx +580 -48
- package/examples/pages/react/DurationInput.tsx +108 -0
- package/examples/pages/react/Index.tsx +5 -0
- package/examples/pages/react/Inputs.tsx +147 -2
- package/examples/pages/react/Labels.tsx +51 -1
- package/examples/pages/react/LeftNavigations.tsx +71 -44
- package/examples/pages/react/MultiSelect.tsx +10 -7
- package/examples/pages/react/NavButtons.tsx +31 -1
- package/examples/pages/react/SelectWithTemplate.tsx +6 -1
- package/examples/pages/react/TableList.tsx +79 -186
- package/examples/pages/react/TimePicker.tsx +22 -12
- package/examples/pages/react/Togglebox.tsx +1 -1
- package/examples/pages/react/TreeSelect.tsx +295 -51
- package/examples/pages/react/tree-select/TreeSelect.tsx +273 -0
- package/examples/pages/react/tree-select/example-1.tsx +71 -0
- package/examples/pages/react/tree-select/example-2.tsx +59 -0
- package/package.json +5 -5
- package/react/components/Badge.d.ts +1 -0
- package/react/components/Badge.js +2 -2
- package/react/components/ContentDivider.d.ts +1 -0
- package/react/components/ContentDivider.js +2 -0
- package/react/components/DatePicker.d.ts +1 -0
- package/react/components/DatePicker.js +6 -22
- package/react/components/Dropdown.d.ts +6 -5
- package/react/components/Dropdown.js +57 -30
- package/react/components/DurationInput.d.ts +42 -0
- package/react/components/DurationInput.js +364 -0
- package/react/components/EmptyState.d.ts +1 -0
- package/react/components/EmptyState.js +1 -1
- package/react/components/Form/FormLabel.d.ts +4 -1
- package/react/components/Form/FormLabel.js +9 -3
- package/react/components/Form/FormRowNew.d.ts +12 -0
- package/react/components/Form/FormRowNew.js +67 -0
- package/react/components/Form/InputBase.d.ts +41 -0
- package/react/components/Form/InputBase.js +86 -0
- package/react/components/Form/InputNew.d.ts +45 -0
- package/react/components/Form/InputNew.js +75 -0
- package/react/components/Form/InputWrapper.d.ts +28 -0
- package/react/components/Form/InputWrapper.js +91 -0
- package/react/components/Form/index.d.ts +4 -0
- package/react/components/Form/index.js +9 -1
- package/react/components/Input.js +5 -34
- package/react/components/Label.d.ts +2 -0
- package/react/components/Label.js +34 -3
- package/react/components/Layouts/AuthoringContainer.d.ts +1 -0
- package/react/components/Layouts/AuthoringContainer.js +1 -1
- package/react/components/Layouts/AuthoringFrame.d.ts +1 -0
- package/react/components/Layouts/AuthoringFrame.js +1 -1
- package/react/components/Layouts/AuthoringFrameRightBar.d.ts +9 -2
- package/react/components/Layouts/AuthoringFrameRightBar.js +14 -3
- package/react/components/Layouts/AuthoringInnerHeader.js +1 -1
- package/react/components/Layouts/AuthoringMain.js +1 -1
- package/react/components/Layouts/CoreLayout.d.ts +1 -0
- package/react/components/Layouts/CoreLayout.js +1 -1
- package/react/components/Layouts/CoreLayoutMain.d.ts +1 -0
- package/react/components/Layouts/CoreLayoutMain.js +8 -1
- package/react/components/Layouts/Layout.js +1 -1
- package/react/components/LeftMenu.d.ts +3 -1
- package/react/components/LeftMenu.js +8 -1
- package/react/components/Lists/ContentList.d.ts +51 -0
- package/react/components/Lists/ContentList.js +110 -0
- package/react/components/Lists/TableList.d.ts +64 -0
- package/react/components/Lists/TableList.js +240 -0
- package/react/components/Menu.js +1 -1
- package/react/components/MultiSelect.d.ts +40 -0
- package/react/components/MultiSelect.js +70 -0
- package/react/components/NavButton.d.ts +1 -1
- package/react/components/Navigation/BottomNav.d.ts +1 -0
- package/react/components/Navigation/BottomNav.js +2 -2
- package/react/components/SearchBar.d.ts +3 -2
- package/react/components/SearchBar.js +28 -4
- package/react/components/Select.d.ts +1 -1
- package/react/components/Select.js +4 -26
- package/react/components/SelectWithTemplate.d.ts +11 -1
- package/react/components/SelectWithTemplate.js +19 -10
- package/react/components/TimePicker.d.ts +11 -1
- package/react/components/TimePicker.js +10 -3
- package/react/components/TreeSelect.d.ts +82 -0
- package/react/components/TreeSelect.js +521 -0
- package/react/index.d.ts +6 -0
- package/react/index.js +16 -3
- package/.vscode/settings.json +0 -5
- package/app-typescript/dist/components/Alert.d.ts +0 -16
- package/app-typescript/dist/components/Autocomplete.d.ts +0 -48
- package/app-typescript/dist/components/Avatar.d.ts +0 -33
- package/app-typescript/dist/components/Badge.d.ts +0 -13
- package/app-typescript/dist/components/Button.d.ts +0 -23
- package/app-typescript/dist/components/ButtonGroup.d.ts +0 -12
- package/app-typescript/dist/components/CheckButtonGroup.d.ts +0 -11
- package/app-typescript/dist/components/CheckGroup.d.ts +0 -9
- package/app-typescript/dist/components/Checkbox.d.ts +0 -19
- package/app-typescript/dist/components/CheckboxButton.d.ts +0 -19
- package/app-typescript/dist/components/DatePicker.d.ts +0 -37
- package/app-typescript/dist/components/Divider.d.ts +0 -9
- package/app-typescript/dist/components/DonutChart.d.ts +0 -12
- package/app-typescript/dist/components/Dropdown.d.ts +0 -28
- package/app-typescript/dist/components/DropdownFirst.d.ts +0 -42
- package/app-typescript/dist/components/EmptyState.d.ts +0 -11
- package/app-typescript/dist/components/FormLabel.d.ts +0 -9
- package/app-typescript/dist/components/Genie.d.ts +0 -13
- package/app-typescript/dist/components/GridItem.d.ts +0 -69
- package/app-typescript/dist/components/GridList.d.ts +0 -14
- package/app-typescript/dist/components/HeadingText.d.ts +0 -10
- package/app-typescript/dist/components/HelloWorld.d.ts +0 -8
- package/app-typescript/dist/components/Icon.d.ts +0 -12
- package/app-typescript/dist/components/IconButton.d.ts +0 -12
- package/app-typescript/dist/components/IconLabel.d.ts +0 -11
- package/app-typescript/dist/components/Input.d.ts +0 -24
- package/app-typescript/dist/components/Label.d.ts +0 -15
- package/app-typescript/dist/components/LeftMenu.d.ts +0 -26
- package/app-typescript/dist/components/Loader.d.ts +0 -8
- package/app-typescript/dist/components/NavButton.d.ts +0 -15
- package/app-typescript/dist/components/Popover.d.ts +0 -13
- package/app-typescript/dist/components/PropsList.d.ts +0 -15
- package/app-typescript/dist/components/Radio.d.ts +0 -19
- package/app-typescript/dist/components/RadioButton.d.ts +0 -20
- package/app-typescript/dist/components/Select.d.ts +0 -29
- package/app-typescript/dist/components/SelectWithTemplate.d.ts +0 -32
- package/app-typescript/dist/components/SlidingToolbar.d.ts +0 -8
- package/app-typescript/dist/components/StrechBar.d.ts +0 -4
- package/app-typescript/dist/components/SubNav.d.ts +0 -10
- package/app-typescript/dist/components/Switch.d.ts +0 -12
- package/app-typescript/dist/components/TabCustom.d.ts +0 -25
- package/app-typescript/dist/components/TabList.d.ts +0 -22
- package/app-typescript/dist/components/Tag.d.ts +0 -9
- package/app-typescript/dist/components/TagInput.d.ts +0 -7
- package/app-typescript/dist/components/TagInputTest.d.ts +0 -18
- package/app-typescript/dist/components/TimePicker.d.ts +0 -11
- package/app-typescript/dist/components/Tooltip.d.ts +0 -11
- package/app-typescript/dist/components/_Positioner.d.ts +0 -27
- package/app-typescript/dist/index.d.ts +0 -56
- package/patches/@superdesk+primereact+5.0.2-4.patch +0 -57
- package/yarn-error.log +0 -111
@@ -14,6 +14,7 @@
|
|
14
14
|
height: $form-input-height;
|
15
15
|
border-radius: $border-radius__base--x-small $border-radius__base--x-small 0 0;
|
16
16
|
display: block;
|
17
|
+
position: relative;
|
17
18
|
&::placeholder {
|
18
19
|
color: var(--color-text-lighter);
|
19
20
|
font-weight: 400;
|
@@ -34,7 +35,9 @@
|
|
34
35
|
}
|
35
36
|
|
36
37
|
@mixin Form-label-base {
|
37
|
-
display: inline-
|
38
|
+
display: inline-flex;
|
39
|
+
align-items: flex-start;
|
40
|
+
justify-content: flex-start;
|
38
41
|
font-size: 1.1rem;
|
39
42
|
margin: 0 0.5rem 0 0;
|
40
43
|
line-height: 1;
|
@@ -50,15 +53,15 @@
|
|
50
53
|
display: inline-flex;
|
51
54
|
align-items: center;
|
52
55
|
justify-content: center;
|
53
|
-
padding: 2px 8px
|
56
|
+
padding: 2px 8px;
|
54
57
|
font-size: 1.1rem;
|
55
58
|
font-family: $baseFontFamily;
|
56
59
|
font-weight: 400;
|
57
|
-
line-height:
|
60
|
+
line-height: 2rem;
|
58
61
|
text-transform: uppercase;
|
59
62
|
font-style: normal;
|
60
63
|
letter-spacing: 0.08em;
|
61
|
-
height:
|
64
|
+
height: 2rem;
|
62
65
|
transition: opacity ease 0.2s;
|
63
66
|
justify-self: start;
|
64
67
|
position: relative;
|
@@ -87,7 +90,50 @@
|
|
87
90
|
content: "*";
|
88
91
|
vertical-align: top;
|
89
92
|
font-size: 1.2rem;
|
90
|
-
padding-
|
93
|
+
padding-inline-start: 0.3rem;
|
94
|
+
margin-top: -2px
|
95
|
+
}
|
96
|
+
}
|
97
|
+
&--invalid {
|
98
|
+
color: $red;
|
99
|
+
}
|
100
|
+
&--focused {
|
101
|
+
color: var(--sd-colour-interactive);
|
102
|
+
&.form-label--invalid {
|
103
|
+
color: $red;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
&--boxed {
|
107
|
+
@include Boxed-label-base;
|
108
|
+
&--light {
|
109
|
+
background-color: hsla(214, 13%, 30%, 0.4);
|
110
|
+
color: hsl(214, 13%, 96%);
|
111
|
+
}
|
112
|
+
&--dark {
|
113
|
+
background-color: hsla(214, 13%, 30%, 0.4);
|
114
|
+
color: hsl(214, 13%, 96%);
|
115
|
+
}
|
116
|
+
&.form-label--required {
|
117
|
+
&::after {
|
118
|
+
margin-inline-start: 0.2rem;
|
119
|
+
color: #e41b21;
|
120
|
+
content: "*";
|
121
|
+
vertical-align: top;
|
122
|
+
font-size: 1.2rem;
|
123
|
+
padding-inline-start: 0.3rem;
|
124
|
+
position: absolute;
|
125
|
+
inset-block-start: -4px;
|
126
|
+
inset-inline-end: -10px;
|
127
|
+
}
|
128
|
+
}
|
129
|
+
&.form-label--invalid,
|
130
|
+
&.form-label--invalid.form-label--focused {
|
131
|
+
background-color: $red;
|
132
|
+
color: hsl(214, 13%, 96%);
|
133
|
+
}
|
134
|
+
&.form-label--focused {
|
135
|
+
background-color: var(--sd-colour-interactive);
|
136
|
+
color: hsl(214, 13%, 96%);
|
91
137
|
}
|
92
138
|
}
|
93
139
|
}
|
@@ -118,7 +164,7 @@
|
|
118
164
|
width: 100%;
|
119
165
|
}
|
120
166
|
&__value {
|
121
|
-
margin-
|
167
|
+
margin-inline-end: 6px;
|
122
168
|
text-transform: uppercase;
|
123
169
|
}
|
124
170
|
input, textarea {
|
@@ -175,25 +221,30 @@
|
|
175
221
|
}
|
176
222
|
.sd-line-input__info-left, .sd-line-input__info-right { // use for 1-2 letter info that appear inside inputs ("W" - for width; "H" - for height; px, mm - for units, etc.)
|
177
223
|
position: absolute;
|
178
|
-
|
224
|
+
inset-block-start: 2.5rem;
|
179
225
|
opacity: 0.3;
|
180
226
|
font-size: 1.5rem;
|
181
227
|
font-weight: 300;
|
182
228
|
}
|
183
229
|
.sd-line-input__info-right {
|
184
|
-
|
230
|
+
inset-inline-end: 0.8rem;
|
185
231
|
}
|
186
232
|
.sd-line-input__info-left {
|
187
|
-
|
233
|
+
inset-inline-start: 0.8rem;
|
188
234
|
}
|
189
235
|
|
190
236
|
.sd-line-input__icon-left, .sd-line-input__icon-right {
|
191
237
|
position: absolute;
|
192
|
-
|
238
|
+
inset-block-start: 1.6rem;
|
193
239
|
cursor: pointer;
|
194
240
|
}
|
195
241
|
.sd-line-input__icon-right {
|
196
|
-
|
242
|
+
inset-inline-end: 0.2rem;
|
243
|
+
}
|
244
|
+
.sd-line-input__icon-right.icn-btn {
|
245
|
+
inset-inline-end: 0.2rem;
|
246
|
+
inset-block-start: 1.8rem;
|
247
|
+
z-index: 1;
|
197
248
|
}
|
198
249
|
.sd-line-input__icon-left {
|
199
250
|
left: 0.2rem;
|
@@ -202,14 +253,14 @@
|
|
202
253
|
&.sd-line-input--indent-l30 {
|
203
254
|
input, textarea {
|
204
255
|
&.sd-line-input__input {
|
205
|
-
padding-
|
256
|
+
padding-inline-start: 3rem;
|
206
257
|
}
|
207
258
|
}
|
208
259
|
}
|
209
260
|
&.sd-line-input--indent-r30 {
|
210
261
|
input, textarea {
|
211
262
|
&.sd-line-input__input {
|
212
|
-
padding-
|
263
|
+
padding-inline-end: 3rem;
|
213
264
|
}
|
214
265
|
}
|
215
266
|
}
|
@@ -219,13 +270,13 @@
|
|
219
270
|
position: absolute;
|
220
271
|
line-height: 100%;
|
221
272
|
margin: 0;
|
222
|
-
|
273
|
+
inset-block-start:0;
|
223
274
|
&--required::after {
|
224
275
|
color:$red;
|
225
276
|
content: "*";
|
226
277
|
vertical-align: top;
|
227
278
|
font-size: 1.2rem;
|
228
|
-
padding-
|
279
|
+
padding-inline-start: 0.3rem;
|
229
280
|
}
|
230
281
|
|
231
282
|
}
|
@@ -241,15 +292,15 @@
|
|
241
292
|
}
|
242
293
|
.sd-line-input__hint {
|
243
294
|
position: absolute;
|
244
|
-
|
245
|
-
|
246
|
-
padding-
|
295
|
+
inset-inline-start: 1px;
|
296
|
+
inset-inline-end: auto;
|
297
|
+
padding-inline-end: 5.5rem;
|
247
298
|
margin-top: 0.4rem;
|
248
299
|
}
|
249
300
|
.sd-line-input__char-count {
|
250
301
|
position: absolute;
|
251
|
-
|
252
|
-
|
302
|
+
inset-inline-end: 1px;
|
303
|
+
inset-inline-start: auto;
|
253
304
|
margin-top: 0.5rem;
|
254
305
|
font-size: 1.1rem;
|
255
306
|
font-weight: 400;
|
@@ -347,12 +398,12 @@
|
|
347
398
|
}
|
348
399
|
&.sd-line-input--no-label {
|
349
400
|
&::after {
|
350
|
-
|
401
|
+
inset-block-start: 1.4rem;
|
351
402
|
}
|
352
403
|
}
|
353
404
|
&.sd-line-input--label-left {
|
354
405
|
&::after {
|
355
|
-
|
406
|
+
inset-block-start: 1.2rem;
|
356
407
|
}
|
357
408
|
}
|
358
409
|
}
|
@@ -368,7 +419,7 @@
|
|
368
419
|
content: "*";
|
369
420
|
vertical-align: top;
|
370
421
|
font-size: 1.2rem;
|
371
|
-
padding-
|
422
|
+
padding-inline-start: 0.3rem;
|
372
423
|
}
|
373
424
|
}
|
374
425
|
&.sd-line-input--no-label {
|
@@ -403,14 +454,14 @@
|
|
403
454
|
position: static;
|
404
455
|
grid-row: 2/3;
|
405
456
|
grid-column: 3/4;
|
406
|
-
padding-
|
457
|
+
padding-inline-end: 0;
|
407
458
|
}
|
408
459
|
.sd-line-input__char-count {
|
409
460
|
position: static;
|
410
461
|
grid-row: 2/3;
|
411
462
|
grid-column: 5/4;
|
412
463
|
text-align: end;
|
413
|
-
padding-
|
464
|
+
padding-inline-start: 1.6rem;
|
414
465
|
}
|
415
466
|
}
|
416
467
|
&--label-left-auto {
|
@@ -430,14 +481,14 @@
|
|
430
481
|
&--with-icon-l {
|
431
482
|
input, textarea {
|
432
483
|
&.sd-line-input__input {
|
433
|
-
padding-
|
484
|
+
padding-inline-end: 3rem;
|
434
485
|
}
|
435
486
|
}
|
436
487
|
}
|
437
488
|
.sd-line-input__plus-btn {
|
438
489
|
position: absolute;
|
439
|
-
|
440
|
-
|
490
|
+
inset-block-start: 1.8rem;
|
491
|
+
inset-inline-start: 0;
|
441
492
|
height: 2.2rem;
|
442
493
|
width: 2.2rem;
|
443
494
|
background-color: var(--sd-colour-interactive--alpha-70);
|
@@ -463,6 +514,129 @@
|
|
463
514
|
|
464
515
|
///////////////// -------------------- NEW INPUTS --------------------- /////////////////
|
465
516
|
|
517
|
+
.sd-input__input {
|
518
|
+
@include Line-input-base;
|
519
|
+
&--invalid {
|
520
|
+
border-bottom: 1px solid $red;
|
521
|
+
background-color: hsla(357, 79%, 50%, 0.075);
|
522
|
+
&:hover {
|
523
|
+
background-color: hsla(357, 79%, 50%, 0.12);
|
524
|
+
border-bottom-color: $red;
|
525
|
+
}
|
526
|
+
&:focus {
|
527
|
+
background-color: hsla(357, 79%, 50%, 0.16);
|
528
|
+
border-bottom-color: $red;
|
529
|
+
box-shadow: 0 1px 0 0 $red;
|
530
|
+
}
|
531
|
+
}
|
532
|
+
&--disabled {
|
533
|
+
opacity: 0.5;
|
534
|
+
background-color: var(--color-input-bg);
|
535
|
+
border-bottom: 1px dotted var(--color-input-border);
|
536
|
+
cursor: not-allowed !important;
|
537
|
+
box-shadow: none;
|
538
|
+
&:hover {
|
539
|
+
background-color: var(--color-input-bg);
|
540
|
+
border-bottom-color: var(--color-input-border);
|
541
|
+
}
|
542
|
+
}
|
543
|
+
&--boxed-style {
|
544
|
+
border: 0;
|
545
|
+
border: 2px solid var(--color-input-border);
|
546
|
+
background-color: transparent;
|
547
|
+
transition: all ease 0.3s;
|
548
|
+
border-radius: var(--b-radius--large);
|
549
|
+
display: block;
|
550
|
+
&:hover {
|
551
|
+
border-color: var(--color-input-border-hover);
|
552
|
+
background-color: transparent;
|
553
|
+
}
|
554
|
+
&:focus {
|
555
|
+
outline: none;
|
556
|
+
border-color: var(--sd-colour-interactive--alpha-50);
|
557
|
+
box-shadow: inset 0 0 0 4px var(--sd-colour-interactive--alpha-20);
|
558
|
+
background-color: transparent;
|
559
|
+
}
|
560
|
+
|
561
|
+
&.sd-input__input--disabled {
|
562
|
+
border: 2px solid var(--color-input-border);
|
563
|
+
// cursor: not-allowed !important;
|
564
|
+
box-shadow: none;
|
565
|
+
&:hover {
|
566
|
+
//background-color: var(--color-input-bg);
|
567
|
+
border-color: var(--color-input-border);
|
568
|
+
}
|
569
|
+
}
|
570
|
+
|
571
|
+
&.sd-input__input--invalid {
|
572
|
+
background-color: hsla(357, 79%, 50%, 0.075);
|
573
|
+
border-color: $red;
|
574
|
+
&:hover,
|
575
|
+
&:focus {
|
576
|
+
background-color: hsla(357, 79%, 50%, 0.12);
|
577
|
+
box-shadow: none !important;
|
578
|
+
}
|
579
|
+
}
|
580
|
+
}
|
581
|
+
&--medium {
|
582
|
+
border-radius: var(--b-radius--medium);
|
583
|
+
&:focus {
|
584
|
+
box-shadow: inset 0 0 0 3px var(--sd-colour-interactive--alpha-20);
|
585
|
+
}
|
586
|
+
}
|
587
|
+
&--large {
|
588
|
+
padding: 0 1.6rem;
|
589
|
+
min-height: 4.8rem;
|
590
|
+
font-size: 2.4rem;
|
591
|
+
font-weight: 500;
|
592
|
+
}
|
593
|
+
&--x-large {
|
594
|
+
padding: 0 1.6rem;
|
595
|
+
min-height: 5.6rem;
|
596
|
+
font-size: 3.2rem;
|
597
|
+
font-weight: 500;
|
598
|
+
}
|
599
|
+
}
|
600
|
+
|
601
|
+
.sd-input__select {
|
602
|
+
display: block;
|
603
|
+
position: relative;
|
604
|
+
@include Line-input-base;
|
605
|
+
padding-inline-end: 2rem;
|
606
|
+
min-width: 5rem;
|
607
|
+
cursor: pointer;
|
608
|
+
option {
|
609
|
+
color:inherit;
|
610
|
+
font-size: 1.4rem;
|
611
|
+
line-height: 2rem;
|
612
|
+
background-color: var(--color-dropdown-menu-Bg);
|
613
|
+
color: var(--color-dropdown-menu-text);
|
614
|
+
}
|
615
|
+
}
|
616
|
+
|
617
|
+
.sd-input__hint,
|
618
|
+
.sd-input__message,
|
619
|
+
.sd-input__char-count {
|
620
|
+
font-size: 1.2rem;
|
621
|
+
line-height: 1.4rem;
|
622
|
+
transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
|
623
|
+
color: var(--color-text-light);
|
624
|
+
font-weight: 300;
|
625
|
+
letter-spacing: 0.03em;
|
626
|
+
display: block;
|
627
|
+
}
|
628
|
+
.sd-input__char-count {
|
629
|
+
font-size: 1.1rem;
|
630
|
+
font-weight: 400;
|
631
|
+
font-style: italic;
|
632
|
+
&--error {
|
633
|
+
color: $red;
|
634
|
+
}
|
635
|
+
}
|
636
|
+
|
637
|
+
|
638
|
+
//----
|
639
|
+
|
466
640
|
.sd-input {
|
467
641
|
padding-top: 0;
|
468
642
|
margin: 0;
|
@@ -471,9 +645,15 @@
|
|
471
645
|
grid-template-rows: $form-label-height auto auto;
|
472
646
|
grid-gap: 0;
|
473
647
|
position: relative;
|
648
|
+
align-self: stretch;
|
649
|
+
|
474
650
|
|
475
651
|
.sd-input__input {
|
476
|
-
|
652
|
+
//@include Line-input-base;
|
653
|
+
grid-row: 2/3;
|
654
|
+
grid-column: 2/4;
|
655
|
+
}
|
656
|
+
.sd-input__input-container {
|
477
657
|
grid-row: 2/3;
|
478
658
|
grid-column: 2/4;
|
479
659
|
}
|
@@ -495,21 +675,21 @@
|
|
495
675
|
}
|
496
676
|
}
|
497
677
|
.sd-input__select {
|
498
|
-
display: block;
|
499
|
-
position: relative;
|
500
|
-
@include Line-input-base;
|
501
|
-
padding-inline-end: 2rem;
|
678
|
+
// display: block;
|
679
|
+
// position: relative;
|
680
|
+
// @include Line-input-base;
|
681
|
+
// padding-inline-end: 2rem;
|
502
682
|
grid-row: 2/3;
|
503
683
|
grid-column: 2/4;
|
504
|
-
min-width: 5rem;
|
505
|
-
cursor: pointer;
|
506
|
-
option {
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
}
|
684
|
+
// min-width: 5rem;
|
685
|
+
// cursor: pointer;
|
686
|
+
// option {
|
687
|
+
// color:inherit;
|
688
|
+
// font-size: 1.4rem;
|
689
|
+
// line-height: 2rem;
|
690
|
+
// background-color: var(--color-dropdown-menu-Bg);
|
691
|
+
// color: var(--color-dropdown-menu-text);
|
692
|
+
// }
|
513
693
|
}
|
514
694
|
&.sd-input--is-select {
|
515
695
|
&::after {
|
@@ -550,24 +730,24 @@
|
|
550
730
|
.sd-input__hint,
|
551
731
|
.sd-input__message,
|
552
732
|
.sd-input__char-count {
|
553
|
-
font-size: 1.2rem;
|
554
|
-
line-height: 1.4rem;
|
555
|
-
transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
|
556
|
-
color: var(--color-text-light);
|
557
|
-
font-weight: 300;
|
733
|
+
// font-size: 1.2rem;
|
734
|
+
// line-height: 1.4rem;
|
735
|
+
// transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
|
736
|
+
// color: var(--color-text-light);
|
737
|
+
// font-weight: 300;
|
558
738
|
margin: 0.5rem 0;
|
559
|
-
letter-spacing: 0.03em;
|
560
|
-
display: block;
|
739
|
+
// letter-spacing: 0.03em;
|
740
|
+
// display: block;
|
561
741
|
}
|
562
742
|
.sd-input__char-count {
|
563
|
-
font-size: 1.1rem;
|
564
|
-
font-weight: 400;
|
565
|
-
font-style: italic;
|
743
|
+
// font-size: 1.1rem;
|
744
|
+
// font-weight: 400;
|
745
|
+
// font-style: italic;
|
566
746
|
grid-row: 3/4;
|
567
747
|
grid-column: 3/4;
|
568
|
-
&--error {
|
569
|
-
|
570
|
-
}
|
748
|
+
// &--error {
|
749
|
+
// color: $red;
|
750
|
+
// }
|
571
751
|
}
|
572
752
|
.sd-input__label {
|
573
753
|
@include Form-label-base;
|
@@ -655,7 +835,7 @@
|
|
655
835
|
content: "*";
|
656
836
|
vertical-align: top;
|
657
837
|
font-size: 1.2rem;
|
658
|
-
padding-
|
838
|
+
padding-inline-start: 0.3rem;
|
659
839
|
}
|
660
840
|
.sd-input__label.sd-input__label--boxed::after {
|
661
841
|
position: absolute;
|
@@ -687,6 +867,24 @@
|
|
687
867
|
}
|
688
868
|
}
|
689
869
|
}
|
870
|
+
div {
|
871
|
+
&.sd-input__duration-input, &.sd-input__duration-input:hover, &.sd-input__duration-input:focus {
|
872
|
+
opacity: 0.5;
|
873
|
+
//background-color: var(--color-input-bg);
|
874
|
+
//border-bottom: 1px dotted var(--color-input-border);
|
875
|
+
cursor: not-allowed !important;
|
876
|
+
box-shadow: none;
|
877
|
+
}
|
878
|
+
input {
|
879
|
+
&.duration-input, &.duration-input:hover, &.duration-input:focus {
|
880
|
+
opacity: 0.5;
|
881
|
+
//background-color: var(--color-input-bg);
|
882
|
+
//border-bottom: 1px dotted var(--color-input-border);
|
883
|
+
cursor: not-allowed !important;
|
884
|
+
box-shadow: none;
|
885
|
+
}
|
886
|
+
}
|
887
|
+
}
|
690
888
|
.sd-input__label, .sd-input__message-box, .sd-input__char-count {
|
691
889
|
opacity: 0.5 !important;
|
692
890
|
pointer-events: none !important;
|
@@ -704,6 +902,54 @@
|
|
704
902
|
flex-grow: 1;
|
705
903
|
width: 100%;
|
706
904
|
}
|
905
|
+
|
906
|
+
&--medium {
|
907
|
+
&.sd-input--boxed-style {
|
908
|
+
.sd-input__input,
|
909
|
+
.sd-input__select {
|
910
|
+
border-radius: var(--b-radius--medium);
|
911
|
+
&:focus {
|
912
|
+
box-shadow: inset 0 0 0 3px var(--sd-colour-interactive--alpha-20);
|
913
|
+
}
|
914
|
+
}
|
915
|
+
}
|
916
|
+
}
|
917
|
+
&--large {
|
918
|
+
.sd-input__input,
|
919
|
+
.sd-input__select {
|
920
|
+
padding: 0 1.6rem;
|
921
|
+
min-height: 4.8rem;
|
922
|
+
font-size: 2.4rem;
|
923
|
+
font-weight: 500;
|
924
|
+
}
|
925
|
+
.sd-input__select {
|
926
|
+
line-height: 2.4rem;
|
927
|
+
option {
|
928
|
+
color: var(--color-text);
|
929
|
+
font-size: 1.4rem !important;
|
930
|
+
line-height: 2rem;
|
931
|
+
background-color: var(--color-dropdown-menu-Bg);
|
932
|
+
}
|
933
|
+
}
|
934
|
+
}
|
935
|
+
&--x-large {
|
936
|
+
.sd-input__input,
|
937
|
+
.sd-input__select {
|
938
|
+
padding: 0 1.6rem;
|
939
|
+
min-height: 5.6rem;
|
940
|
+
font-size: 3.2rem;
|
941
|
+
font-weight: 500;
|
942
|
+
}
|
943
|
+
.sd-input__select {
|
944
|
+
line-height: 3.2rem;
|
945
|
+
option {
|
946
|
+
color: var(--color-text);
|
947
|
+
font-size: 1.4rem !important;
|
948
|
+
line-height: 2rem;
|
949
|
+
background-color: var(--color-dropdown-menu-Bg);
|
950
|
+
}
|
951
|
+
}
|
952
|
+
}
|
707
953
|
&--boxed-style {
|
708
954
|
.sd-input__input,
|
709
955
|
.sd-input__select {
|
@@ -724,18 +970,23 @@
|
|
724
970
|
background-color: transparent;
|
725
971
|
}
|
726
972
|
}
|
973
|
+
|
727
974
|
&.sd-input--disabled {
|
728
|
-
input,
|
729
|
-
|
975
|
+
input,
|
976
|
+
textarea {
|
977
|
+
&.sd-input__input,
|
978
|
+
&.sd-input__input:hover,
|
979
|
+
&.sd-input__input:focus {
|
730
980
|
opacity: 0.5;
|
731
981
|
background-color: transparent;
|
732
982
|
border: 2px solid var(--color-input-border) !important;
|
733
|
-
//cursor: not-allowed !important;
|
734
983
|
box-shadow: none;
|
735
984
|
}
|
736
985
|
}
|
737
986
|
select {
|
738
|
-
&.sd-input__select,
|
987
|
+
&.sd-input__select,
|
988
|
+
&.sd-input__select:hover,
|
989
|
+
&.sd-input__select:focus {
|
739
990
|
opacity: 0.5;
|
740
991
|
background-color: transparent;
|
741
992
|
border: 2px solid var(--color-input-border) !important;
|
@@ -743,8 +994,17 @@
|
|
743
994
|
box-shadow: none;
|
744
995
|
}
|
745
996
|
}
|
746
|
-
.
|
747
|
-
|
997
|
+
.tags-input__add-button {
|
998
|
+
pointer-events: none;
|
999
|
+
}
|
1000
|
+
.sd-input__label,
|
1001
|
+
.sd-input__message-box,
|
1002
|
+
.sd-input__char-count {
|
1003
|
+
.sd-input__label,
|
1004
|
+
.sd-input__message-box,
|
1005
|
+
.sd-input__char-count {
|
1006
|
+
opacity: 0.5;
|
1007
|
+
}
|
748
1008
|
}
|
749
1009
|
.sd-input__hint,
|
750
1010
|
.sd-input__message,
|
@@ -752,6 +1012,7 @@
|
|
752
1012
|
pointer-events: none;
|
753
1013
|
}
|
754
1014
|
}
|
1015
|
+
|
755
1016
|
&.sd-input--invalid {
|
756
1017
|
input, textarea {
|
757
1018
|
&.sd-input__input {
|
@@ -774,53 +1035,6 @@
|
|
774
1035
|
}
|
775
1036
|
}
|
776
1037
|
}
|
777
|
-
&--medium {
|
778
|
-
&.sd-input--boxed-style {
|
779
|
-
.sd-input__input,
|
780
|
-
.sd-input__select {
|
781
|
-
border-radius: var(--b-radius--medium);
|
782
|
-
&:focus {
|
783
|
-
box-shadow: inset 0 0 0 3px var(--sd-colour-interactive--alpha-20);
|
784
|
-
}
|
785
|
-
}
|
786
|
-
}
|
787
|
-
}
|
788
|
-
&--large {
|
789
|
-
.sd-input__input,
|
790
|
-
.sd-input__select {
|
791
|
-
padding: 0 1.6rem;
|
792
|
-
min-height: 4.8rem;
|
793
|
-
font-size: 2.4rem;
|
794
|
-
font-weight: 500;
|
795
|
-
}
|
796
|
-
.sd-input__select {
|
797
|
-
line-height: 2.4rem;
|
798
|
-
option {
|
799
|
-
color: var(--color-text);
|
800
|
-
font-size: 1.4rem !important;
|
801
|
-
line-height: 2rem;
|
802
|
-
background-color: var(--color-dropdown-menu-Bg);
|
803
|
-
}
|
804
|
-
}
|
805
|
-
}
|
806
|
-
&--x-large {
|
807
|
-
.sd-input__input,
|
808
|
-
.sd-input__select {
|
809
|
-
padding: 0 1.6rem;
|
810
|
-
min-height: 5.6rem;
|
811
|
-
font-size: 3.2rem;
|
812
|
-
font-weight: 500;
|
813
|
-
}
|
814
|
-
.sd-input__select {
|
815
|
-
line-height: 3.2rem;
|
816
|
-
option {
|
817
|
-
color: var(--color-text);
|
818
|
-
font-size: 1.4rem !important;
|
819
|
-
line-height: 2rem;
|
820
|
-
background-color: var(--color-dropdown-menu-Bg);
|
821
|
-
}
|
822
|
-
}
|
823
|
-
}
|
824
1038
|
&--boxed-label {
|
825
1039
|
grid-template-columns: auto 1fr auto;
|
826
1040
|
grid-template-rows: auto auto auto;
|
@@ -850,10 +1064,17 @@
|
|
850
1064
|
}
|
851
1065
|
}
|
852
1066
|
}
|
1067
|
+
|
853
1068
|
}
|
854
1069
|
|
855
1070
|
///////////////// -------------------- Duration & Time-Date input --------------------- /////////////////
|
856
1071
|
|
1072
|
+
|
1073
|
+
|
1074
|
+
|
1075
|
+
|
1076
|
+
|
1077
|
+
|
857
1078
|
.sd-input__duration-input,
|
858
1079
|
.sd-input__time-date-input {
|
859
1080
|
@include Line-input-base;
|
@@ -867,6 +1088,7 @@
|
|
867
1088
|
background-color: var(--sd-colour-interactive--alpha-20);
|
868
1089
|
}
|
869
1090
|
}
|
1091
|
+
|
870
1092
|
.sd-input__duration-input {
|
871
1093
|
input {
|
872
1094
|
-webkit-appearance: none;
|
@@ -879,6 +1101,9 @@
|
|
879
1101
|
color: var(--color-text);
|
880
1102
|
text-align: end;
|
881
1103
|
width: 2.5ch;
|
1104
|
+
font-size: 1.4rem;
|
1105
|
+
padding: 0 !important;
|
1106
|
+
line-height: 3.2rem;
|
882
1107
|
&::-webkit-outer-spin-button,
|
883
1108
|
&::-webkit-inner-spin-button {
|
884
1109
|
-webkit-appearance: none;
|
@@ -888,6 +1113,10 @@
|
|
888
1113
|
-moz-appearance: textfield;
|
889
1114
|
}
|
890
1115
|
}
|
1116
|
+
span {
|
1117
|
+
display: flex;
|
1118
|
+
align-items: center;
|
1119
|
+
}
|
891
1120
|
.sd-input__suffix {
|
892
1121
|
height: 3.2rem;
|
893
1122
|
line-height: 3.2rem;
|
@@ -908,5 +1137,34 @@
|
|
908
1137
|
.tags-input {
|
909
1138
|
grid-row: 2/3;
|
910
1139
|
grid-column: 2/4;
|
1140
|
+
width: 100%;
|
1141
|
+
}
|
1142
|
+
&.sd-input--disabled,
|
1143
|
+
&.sd-input--disabled:hover {
|
1144
|
+
.p-multiselect,
|
1145
|
+
.p-calendar,
|
1146
|
+
.p-multiselect,
|
1147
|
+
.p-dropdown,
|
1148
|
+
.tags-input {
|
1149
|
+
opacity: 0.5;
|
1150
|
+
cursor: not-allowed;
|
1151
|
+
}
|
1152
|
+
.p-calendar {
|
1153
|
+
.p-calendar-icon {
|
1154
|
+
pointer-events: none;
|
1155
|
+
}
|
1156
|
+
border-bottom: 1px dotted var(--color-input-border);
|
1157
|
+
background-color: var(--color-input-bg);
|
1158
|
+
}
|
911
1159
|
}
|
912
|
-
}
|
1160
|
+
}
|
1161
|
+
|
1162
|
+
.blink_me {
|
1163
|
+
animation: blinker 1s linear infinite;
|
1164
|
+
}
|
1165
|
+
|
1166
|
+
@keyframes blinker {
|
1167
|
+
50% {
|
1168
|
+
opacity: 0;
|
1169
|
+
}
|
1170
|
+
}
|