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
@@ -31,7 +31,8 @@ sd-tag-input {
|
|
31
31
|
letter-spacing: 0.08em;
|
32
32
|
}
|
33
33
|
|
34
|
-
tags-input,
|
34
|
+
tags-input,
|
35
|
+
.tags-input {
|
35
36
|
display: block;
|
36
37
|
background-color: var(--color-input-bg);
|
37
38
|
.tags-input__host {
|
@@ -44,34 +45,24 @@ tags-input, .tags-input {
|
|
44
45
|
}
|
45
46
|
}
|
46
47
|
.tags-input__tags {
|
47
|
-
|
48
|
+
display: flex;
|
49
|
+
align-items: flex-start;
|
50
|
+
padding: 0.4rem 0.4rem 0.3rem 0.4rem;
|
48
51
|
overflow: hidden;
|
49
52
|
word-wrap: break-word;
|
50
|
-
cursor: text;
|
51
53
|
background-color: transparent;
|
52
54
|
border:none;
|
53
|
-
transition: border linear 0.2s, box-shadow linear 0.2s;
|
54
|
-
border-bottom: 1px solid $sd-inputBorderColor;
|
55
55
|
height: 100%;
|
56
|
-
&:hover {
|
57
|
-
border-color: rgba(0,0,0,0.3);
|
58
|
-
}
|
59
|
-
&.focused {
|
60
|
-
outline: none;
|
61
|
-
border-bottom: 1px solid $sd-colour-interactive;
|
62
|
-
box-shadow: 0 1px 0 $sd-colour-interactive;
|
63
|
-
.tags-input__input {
|
64
|
-
width: auto;
|
65
|
-
}
|
66
|
-
}
|
67
56
|
.tags-input__tag-list {
|
68
57
|
margin: 0;
|
69
58
|
padding: 0;
|
70
59
|
list-style-type: none;
|
71
60
|
display: flex;
|
72
|
-
justify-content:
|
61
|
+
justify-content: flex-start;
|
73
62
|
align-items: center;
|
74
|
-
|
63
|
+
flex-wrap: wrap;
|
64
|
+
padding-inline-start: $sd-base-increment / 2;
|
65
|
+
gap: $sd-base-increment / 2;
|
75
66
|
}
|
76
67
|
.tags-input__tag-item {
|
77
68
|
@include tag-label;
|
@@ -84,13 +75,6 @@ tags-input, .tags-input {
|
|
84
75
|
&:hover {
|
85
76
|
cursor: pointer;
|
86
77
|
}
|
87
|
-
&:hover .tags-input__remove-button {
|
88
|
-
text-decoration: none;
|
89
|
-
background-color: var(--sd-colour__tag-label-remove-Bg--hover);
|
90
|
-
[class^="icon-"], [class*=" icon-"] {
|
91
|
-
opacity: 0.85;
|
92
|
-
}
|
93
|
-
}
|
94
78
|
.tags-input__remove-button {
|
95
79
|
height: 1.8rem;
|
96
80
|
width: 1.8rem;
|
@@ -150,10 +134,10 @@ tags-input, .tags-input {
|
|
150
134
|
}
|
151
135
|
}
|
152
136
|
}
|
153
|
-
.tags-input__tag-item-
|
137
|
+
.tags-input__tag-item--multi-select {
|
154
138
|
margin: 0 !important;
|
155
139
|
}
|
156
|
-
.tags-input__tag-item
|
140
|
+
.tags-input__tag-item--readonly {
|
157
141
|
cursor: default !important;
|
158
142
|
}
|
159
143
|
.tags-input__input {
|
@@ -222,7 +206,6 @@ tags-input, .tags-input {
|
|
222
206
|
}
|
223
207
|
}
|
224
208
|
.tags-input__add-button {
|
225
|
-
float: left;
|
226
209
|
height: $sd-base-increment * 3;
|
227
210
|
width: $sd-base-increment * 3;
|
228
211
|
background-color: $sd-colour-interactive;
|
@@ -230,12 +213,12 @@ tags-input, .tags-input {
|
|
230
213
|
display: flex;
|
231
214
|
align-items: center;
|
232
215
|
text-align: center;
|
233
|
-
margin: 0.2rem 0.4rem 0.2rem 0;
|
234
216
|
transition: all 0.3s;
|
235
217
|
border-radius: $border-radius__base--x-small;
|
236
218
|
opacity: 0.5;
|
237
219
|
padding: 0;
|
238
220
|
justify-content: center;
|
221
|
+
flex-shrink: 0;
|
239
222
|
i {
|
240
223
|
color: inherit;
|
241
224
|
}
|
@@ -250,72 +233,26 @@ tags-input, .tags-input {
|
|
250
233
|
color: scale-color($white, $alpha: -20%);
|
251
234
|
}
|
252
235
|
}
|
236
|
+
.tags-input__remove-value {
|
237
|
+
display: flex;
|
238
|
+
align-items: center;
|
239
|
+
align-self: flex-end;
|
240
|
+
margin-inline-start: auto;
|
241
|
+
z-index: 2;
|
242
|
+
cursor: pointer;
|
243
|
+
opacity: 0.5;
|
244
|
+
transition: opacity 0.3s ease;
|
245
|
+
&:hover {
|
246
|
+
opacity: 1;
|
247
|
+
}
|
248
|
+
}
|
253
249
|
.autocomplete {
|
254
|
-
margin-top: 0.5rem;
|
255
250
|
position: absolute;
|
256
251
|
padding: 0.5rem 0;
|
257
252
|
z-index: 999;
|
258
253
|
width: 100%;
|
259
254
|
background-color: var(--color-dropdown-menu-Bg);
|
260
255
|
box-shadow: $shadow__dropdown--default;
|
261
|
-
&__header {
|
262
|
-
display: flex;
|
263
|
-
align-items: center;
|
264
|
-
justify-content: center;
|
265
|
-
gap: 10px;
|
266
|
-
border-bottom: 1px solid rgba(0, 0, 0, 0.15);
|
267
|
-
padding: 4px;
|
268
|
-
}
|
269
|
-
&__icon {
|
270
|
-
display: flex;
|
271
|
-
align-items: center;
|
272
|
-
justify-content: center;
|
273
|
-
height: 35px;
|
274
|
-
width: 35px;
|
275
|
-
&:hover .arrow-left {
|
276
|
-
color: var(--sd-colour-interactive--alpha-70);
|
277
|
-
transition: 0.2s;
|
278
|
-
transform: translate(-3px);
|
279
|
-
}
|
280
|
-
.arrow-left {
|
281
|
-
cursor: pointer;
|
282
|
-
}
|
283
|
-
.search {
|
284
|
-
cursor: not-allowed;
|
285
|
-
}
|
286
|
-
}
|
287
|
-
&__filter {
|
288
|
-
height: 32px;
|
289
|
-
width: 100%;
|
290
|
-
}
|
291
|
-
&__button {
|
292
|
-
height: 32px;
|
293
|
-
padding: 0 15px;
|
294
|
-
font-weight: bold;
|
295
|
-
width: 100%;
|
296
|
-
cursor: default;
|
297
|
-
}
|
298
|
-
&__input {
|
299
|
-
height: 32px;
|
300
|
-
width: 100%;
|
301
|
-
padding: 4px;
|
302
|
-
border: none;
|
303
|
-
}
|
304
|
-
&__button--multiselect {
|
305
|
-
background-color: var(--sd-colour-interactive--alpha-10);
|
306
|
-
border-radius: var(--b-radius--small);
|
307
|
-
cursor: pointer;
|
308
|
-
&:hover {
|
309
|
-
background-color: var(--sd-colour-interactive--alpha-20);
|
310
|
-
}
|
311
|
-
}
|
312
|
-
&-multiselect {
|
313
|
-
padding: 0 !important;
|
314
|
-
}
|
315
|
-
&-multiselect-width {
|
316
|
-
width: 275px !important;
|
317
|
-
}
|
318
|
-
|
319
256
|
.suggestion-list {
|
320
257
|
margin: 0;
|
321
258
|
padding: 0;
|
@@ -326,16 +263,28 @@ tags-input, .tags-input {
|
|
326
263
|
}
|
327
264
|
.suggestion-list--multi-select {
|
328
265
|
padding: 4px 0 !important;
|
266
|
+
min-height: 40px;
|
267
|
+
}
|
268
|
+
.suggestion-list--loader {
|
269
|
+
padding: 4px 0 !important;
|
270
|
+
position: relative;
|
271
|
+
min-height: 3.2rem;
|
272
|
+
>div {
|
273
|
+
padding: 0.5rem 1rem;
|
274
|
+
min-height: $sd-base-increment * 4;
|
275
|
+
position: relative;
|
276
|
+
}
|
329
277
|
}
|
330
278
|
.suggestion-item {
|
279
|
+
position: relative;
|
331
280
|
padding: 0.5rem 1rem;
|
332
281
|
cursor: pointer;
|
333
282
|
white-space: nowrap;
|
334
283
|
overflow: hidden;
|
335
284
|
text-overflow: ellipsis;
|
336
285
|
color: $sd-text;
|
337
|
-
|
338
|
-
|
286
|
+
transition: all ease 0.2s;
|
287
|
+
min-height: $sd-base-increment * 4;
|
339
288
|
&.selected {
|
340
289
|
background-color: var(--sd-colour-interactive--alpha-30);
|
341
290
|
&:active {
|
@@ -352,10 +301,11 @@ tags-input, .tags-input {
|
|
352
301
|
&:hover {
|
353
302
|
background-color: var(--sd-colour-interactive--alpha-10) !important;
|
354
303
|
}
|
355
|
-
|
304
|
+
.suggestion-item__icon {
|
356
305
|
display: flex;
|
357
306
|
align-items: center;
|
358
|
-
justify-content: center;
|
307
|
+
justify-content: center;
|
308
|
+
opacity: 0.5;
|
359
309
|
}
|
360
310
|
}
|
361
311
|
.suggestion-item--multi-select {
|
@@ -363,130 +313,46 @@ tags-input, .tags-input {
|
|
363
313
|
justify-content: space-between;
|
364
314
|
align-items: center;
|
365
315
|
}
|
316
|
+
.suggestion-item--bgcolor {
|
317
|
+
min-height: 1.5em;
|
318
|
+
min-width: 1.5em;
|
319
|
+
padding: 4px 0;
|
320
|
+
display: inline-flex;
|
321
|
+
justify-content: center;
|
322
|
+
align-items: center;
|
323
|
+
border-radius: 99px;
|
324
|
+
white-space: nowrap;
|
325
|
+
|
326
|
+
&[style] {
|
327
|
+
padding-inline: 8px;
|
328
|
+
}
|
329
|
+
}
|
366
330
|
.suggestion-item--disabled {
|
367
331
|
opacity: 0.5;
|
368
332
|
}
|
333
|
+
.suggestion-item--nothing-found {
|
334
|
+
padding: 0.5rem 1rem;
|
335
|
+
cursor: not-allowed;
|
336
|
+
white-space: nowrap;
|
337
|
+
overflow: hidden;
|
338
|
+
text-overflow: ellipsis;
|
339
|
+
color: $sd-text-light;
|
340
|
+
transition: all ease 0.2s;
|
341
|
+
min-height: $sd-base-increment * 4;
|
342
|
+
display: flex;
|
343
|
+
align-items: center;
|
344
|
+
justify-content: center;
|
345
|
+
}
|
369
346
|
}
|
370
347
|
}
|
371
348
|
|
372
|
-
.tags-input--multiselect {
|
373
|
-
position: relative;
|
374
|
-
}
|
375
|
-
|
376
|
-
|
377
349
|
//TESTING TAG INPUT REACT NEW CSS
|
378
350
|
|
379
351
|
.tags-input {
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
margin-top: 0.5rem;
|
384
|
-
margin-bottom: 0;
|
385
|
-
height: 100%;
|
386
|
-
&:active {
|
387
|
-
outline: none;
|
388
|
-
}
|
389
|
-
}
|
352
|
+
padding-inline: 0 !important;
|
353
|
+
height: auto !important;
|
354
|
+
min-height: $form-input-height;
|
390
355
|
.tags-input__tags {
|
391
|
-
padding: 0.1rem 0 0 0.1rem;
|
392
|
-
overflow: hidden;
|
393
|
-
word-wrap: break-word;
|
394
|
-
cursor: text;
|
395
|
-
background-color: transparent;
|
396
|
-
border:none;
|
397
|
-
transition: border linear 0.2s, box-shadow linear 0.2s;
|
398
|
-
border-bottom: 1px solid $sd-inputBorderColor;
|
399
|
-
height: 100%;
|
400
|
-
display: flex;
|
401
|
-
align-items: center;
|
402
|
-
min-height: $form-input-height;
|
403
|
-
&:hover {
|
404
|
-
border-color: rgba(0,0,0,0.3);
|
405
|
-
}
|
406
|
-
&.focused {
|
407
|
-
outline: none;
|
408
|
-
border-bottom: 1px solid $sd-colour-interactive;
|
409
|
-
box-shadow: 0 1px 0 $sd-colour-interactive;
|
410
|
-
.tags-input__input {
|
411
|
-
width: auto;
|
412
|
-
}
|
413
|
-
}
|
414
|
-
.tags-input__tag-list {
|
415
|
-
margin: 0;
|
416
|
-
padding: 0;
|
417
|
-
list-style-type: none;
|
418
|
-
display: flex;
|
419
|
-
flex-wrap: wrap;
|
420
|
-
gap: $sd-base-increment / 2;
|
421
|
-
}
|
422
|
-
.tags-input__tag-item {
|
423
|
-
@include tag-label;
|
424
|
-
//margin: 2px 4px 2px 0;
|
425
|
-
float: left;
|
426
|
-
transition: background-color .2s ease-out, color .1s ease-out, opacity .1s ease-out;
|
427
|
-
background: $tag-label-BG-default;
|
428
|
-
color: currentColor;
|
429
|
-
&.selected {
|
430
|
-
background-color: var(--sd-colour-interactive--alpha-70);
|
431
|
-
|
432
|
-
}
|
433
|
-
.tags-input__remove-button {
|
434
|
-
height: 1.8rem;
|
435
|
-
width: 1.8rem;
|
436
|
-
padding: 0;
|
437
|
-
display: inline-flex;
|
438
|
-
align-items: center;
|
439
|
-
justify-content: center;
|
440
|
-
font-size: inherit;
|
441
|
-
line-height: 1;
|
442
|
-
text-decoration: none;
|
443
|
-
text-align: center;
|
444
|
-
vertical-align: middle;
|
445
|
-
border-radius: $border-radius__base--full;
|
446
|
-
background-color: var(--sd-colour__tag-label-remove-Bg);
|
447
|
-
color: var(--color-text);
|
448
|
-
cursor: pointer;
|
449
|
-
transition: background-color .2s ease-out, color .1s ease-out, opacity .1s ease-out;
|
450
|
-
margin-inline-end: -1rem;
|
451
|
-
margin-inline-start: 0.8rem;
|
452
|
-
[class^="icon-"], [class*=" icon-"] {
|
453
|
-
color: var(--color-text-light);
|
454
|
-
font-size: 1.6rem;
|
455
|
-
flex-grow: 0;
|
456
|
-
flex-shrink: 0;
|
457
|
-
margin-inline-start: 1px;
|
458
|
-
opacity: 0.4;
|
459
|
-
transition: color .1s ease-out, opacity .1s ease-out;
|
460
|
-
}
|
461
|
-
&:hover {
|
462
|
-
text-decoration: none;
|
463
|
-
background-color: var(--sd-colour__tag-label-remove-Bg--hover);
|
464
|
-
[class^="icon-"], [class*=" icon-"] {
|
465
|
-
opacity: 0.85;
|
466
|
-
}
|
467
|
-
}
|
468
|
-
&:active {
|
469
|
-
background-color: var(--sd-colour__tag-label-remove-Bg--hover);
|
470
|
-
[class^="icon-"], [class*=" icon-"] {
|
471
|
-
color: $sd-colour-interactive;
|
472
|
-
opacity: 1;
|
473
|
-
}
|
474
|
-
}
|
475
|
-
}
|
476
|
-
ti-tag-item {
|
477
|
-
display: flex;
|
478
|
-
flex-direction: row;
|
479
|
-
align-items: center;
|
480
|
-
.tags-input__helper-box {
|
481
|
-
display: flex;
|
482
|
-
flex-direction: row;
|
483
|
-
align-items: center;
|
484
|
-
span {
|
485
|
-
flex-grow: 1;
|
486
|
-
}
|
487
|
-
}
|
488
|
-
}
|
489
|
-
}
|
490
356
|
.tags-input__input {
|
491
357
|
border: 0;
|
492
358
|
outline: none;
|
@@ -522,73 +388,11 @@ tags-input, .tags-input {
|
|
522
388
|
}
|
523
389
|
}
|
524
390
|
}
|
525
|
-
|
526
|
-
.tags-input__tags {
|
527
|
-
border-bottom: 1px solid $red !important;
|
528
|
-
box-shadow: 0 1px 0 $red !important;
|
529
|
-
}
|
530
|
-
}
|
531
|
-
|
532
|
-
&[disabled] {
|
533
|
-
.tags-input__host:focus {
|
534
|
-
outline: none;
|
535
|
-
}
|
536
|
-
.tags-input__tags {
|
537
|
-
background-color: #eee;
|
538
|
-
cursor: default;
|
539
|
-
.tags-input__tag-item {
|
540
|
-
opacity: 0.65;
|
541
|
-
.tags-input__remove-button {
|
542
|
-
cursor: default;
|
543
|
-
&:active {
|
544
|
-
color: #585858;
|
545
|
-
}
|
546
|
-
}
|
547
|
-
}
|
548
|
-
.tags-input__input {
|
549
|
-
background-color: #eee;
|
550
|
-
cursor: default;
|
551
|
-
}
|
552
|
-
}
|
553
|
-
}
|
554
|
-
.tag-input__invalid-tag{
|
555
|
-
border-bottom: 1px solid #E51C23 !important;
|
556
|
-
box-shadow: 0 1px 0 #E51C23 !important;
|
557
|
-
}
|
558
|
-
.tags-input__add-button {
|
559
|
-
height: $sd-base-increment * 3;
|
560
|
-
width: $sd-base-increment * 3;
|
561
|
-
background-color: $sd-colour-interactive;
|
562
|
-
color: $white;
|
391
|
+
.tags-input__helper-box {
|
563
392
|
display: flex;
|
564
393
|
align-items: center;
|
565
|
-
text-align: center;
|
566
|
-
margin-block-start: 0.2rem;
|
567
|
-
margin-block-end: 0.2rem;
|
568
|
-
margin-inline-start: 0;
|
569
|
-
margin-inline-end: 0.4rem;
|
570
|
-
transition: all 0.3s;
|
571
|
-
border-radius: $border-radius__base--x-small;
|
572
|
-
opacity: 0.5;
|
573
|
-
padding: 0;
|
574
|
-
justify-content: center;
|
575
|
-
flex-shrink: 0;
|
576
|
-
i {
|
577
|
-
color: inherit;
|
578
|
-
}
|
579
|
-
&:hover {
|
580
|
-
opacity: 1;
|
581
|
-
}
|
582
|
-
&[disabled], [disabled]:hover, [disabled]:active {
|
583
|
-
opacity: 0.5;
|
584
|
-
background-color: rgba(123, 123, 123, 0.4);
|
585
|
-
cursor: default;
|
586
|
-
cursor: not-allowed;
|
587
|
-
color: scale-color($white, $alpha: -20%);
|
588
|
-
}
|
589
394
|
}
|
590
395
|
.autocomplete {
|
591
|
-
margin-block-start: 0.5rem;
|
592
396
|
position: absolute;
|
593
397
|
padding: 0;
|
594
398
|
padding-block-start: 0.5rem;
|
@@ -598,41 +402,197 @@ tags-input, .tags-input {
|
|
598
402
|
border-radius: $border-radius__base--small;
|
599
403
|
background-color: var(--color-dropdown-menu-Bg);
|
600
404
|
box-shadow: $shadow__dropdown--default;
|
601
|
-
.
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
405
|
+
.autocomplete__header {
|
406
|
+
display: flex;
|
407
|
+
align-items: center;
|
408
|
+
justify-content: center;
|
409
|
+
gap: 4px;
|
410
|
+
border-bottom: 1px solid var(--sd-colour-line--light);
|
411
|
+
padding: 4px;
|
608
412
|
}
|
609
|
-
.
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
413
|
+
.autocomplete__category-header {
|
414
|
+
display: flex;
|
415
|
+
align-items: center;
|
416
|
+
justify-content: center;
|
417
|
+
gap: 4px;
|
418
|
+
border-bottom: 1px solid var(--sd-colour-line--x-light);
|
419
|
+
padding: 4px;
|
420
|
+
}
|
421
|
+
.autocomplete__icon {
|
422
|
+
display: flex;
|
423
|
+
align-items: center;
|
424
|
+
justify-content: center;
|
425
|
+
height: 35px;
|
426
|
+
width: 35px;
|
427
|
+
&:hover .arrow-left {
|
428
|
+
color: var(--sd-colour-interactive--alpha-70);
|
429
|
+
transition: 0.2s;
|
430
|
+
transform: translate(-3px);
|
619
431
|
}
|
620
|
-
|
621
|
-
|
622
|
-
&:active {
|
623
|
-
background-color: var(--sd-colour-interactive--alpha-70);
|
624
|
-
color: $white;
|
625
|
-
}
|
432
|
+
.arrow-left {
|
433
|
+
cursor: pointer;
|
626
434
|
}
|
627
|
-
|
628
|
-
background-color: transparent;
|
629
|
-
opacity: 0.45;
|
435
|
+
.search {
|
630
436
|
cursor: default;
|
631
|
-
|
437
|
+
opacity: 0.65;
|
632
438
|
}
|
633
439
|
}
|
440
|
+
.autocomplete__filter {
|
441
|
+
height: 32px;
|
442
|
+
width: 100%;
|
443
|
+
display: flex;
|
444
|
+
align-items: center;
|
445
|
+
gap: 4px;
|
446
|
+
}
|
447
|
+
.autocomplete__button {
|
448
|
+
height: 32px;
|
449
|
+
padding: 0 15px;
|
450
|
+
font-weight: 600;
|
451
|
+
width: auto;
|
452
|
+
cursor: default;
|
453
|
+
margin-inline-start: auto;
|
454
|
+
}
|
455
|
+
.autocomplete__category-title {
|
456
|
+
font-weight: 600;
|
457
|
+
padding: 0;
|
458
|
+
cursor: default;
|
459
|
+
}
|
460
|
+
.autocomplete__input {
|
461
|
+
height: 32px;
|
462
|
+
width: 100%;
|
463
|
+
padding: 4px;
|
464
|
+
border: none;
|
465
|
+
background-color: transparent;
|
466
|
+
color: var(--color-text);
|
467
|
+
&::placeholder {
|
468
|
+
color: var(--color-text-lighter);
|
469
|
+
font-weight: 300;
|
470
|
+
//font-style: italic;
|
471
|
+
}
|
472
|
+
}
|
473
|
+
.autocomplete__button--multi-select {
|
474
|
+
background-color: transparent;
|
475
|
+
border: 1px solid var(--sd-colour-interactive--alpha-50);
|
476
|
+
border-radius: var(--b-radius--small);
|
477
|
+
color: var(--sd-colour-interactive);
|
478
|
+
cursor: pointer;
|
479
|
+
transition: all ease 0.2s;
|
480
|
+
font-size: 1.3rem;
|
481
|
+
font-weight: 400;
|
482
|
+
margin-inline-end: $sd-base-increment;
|
483
|
+
height: 2.8rem;
|
484
|
+
&:hover {
|
485
|
+
border: 1px solid var(--sd-colour-interactive);
|
486
|
+
box-shadow: inset 0 0 0 2px var(--sd-colour-interactive--alpha-20);
|
487
|
+
}
|
488
|
+
&:active {
|
489
|
+
border: 1px solid var(--sd-colour-interactive);
|
490
|
+
box-shadow: inset 0 0 0 3px var(--sd-colour-interactive--alpha-30);
|
491
|
+
}
|
492
|
+
&.autocomplete__button--disabled,
|
493
|
+
&.autocomplete__button--disabled:hover {
|
494
|
+
opacity: 0.75;
|
495
|
+
border: 1px solid var(--sd-colour-line--light);
|
496
|
+
color: var(--color-text-light);
|
497
|
+
cursor: not-allowed;
|
498
|
+
box-shadow: none;
|
499
|
+
}
|
500
|
+
}
|
501
|
+
&--multi-select {
|
502
|
+
padding: 0 !important;
|
503
|
+
margin-block-start: 0;
|
504
|
+
}
|
505
|
+
&--fixed-width {
|
506
|
+
width: 275px !important;
|
507
|
+
}
|
508
|
+
}
|
509
|
+
}
|
510
|
+
|
511
|
+
.tags-input--single-select {
|
512
|
+
display: grid !important;
|
513
|
+
align-items: center !important;
|
514
|
+
}
|
515
|
+
|
516
|
+
.tags-input--multi-select,
|
517
|
+
.tags-input--single-select {
|
518
|
+
position: relative;
|
519
|
+
}
|
520
|
+
|
521
|
+
.tags-input--single-select {
|
522
|
+
.tags-input__tags {
|
523
|
+
align-items: center;
|
524
|
+
}
|
525
|
+
&::after {
|
526
|
+
position: absolute;
|
527
|
+
z-index: 1;
|
528
|
+
display: inline-block;
|
529
|
+
margin-inline-end: 1rem;
|
530
|
+
vertical-align: middle;
|
531
|
+
border-left: 0.4rem solid transparent;
|
532
|
+
border-right: 0.4rem solid transparent;
|
533
|
+
border-top: 0.4rem solid var(--color-text);
|
534
|
+
pointer-events: none;
|
535
|
+
opacity: 0.4;
|
536
|
+
content: "";
|
537
|
+
z-index: 0;
|
538
|
+
inset-inline-end: 0;
|
539
|
+
inset-block-start: 1.5rem;
|
540
|
+
}
|
541
|
+
&:hover {
|
542
|
+
&::after {
|
543
|
+
opacity: 0.6;
|
544
|
+
}
|
545
|
+
}
|
546
|
+
}
|
547
|
+
|
548
|
+
.tags-input__overlay-button {
|
549
|
+
position: absolute;
|
550
|
+
inset: 0;
|
551
|
+
width: 100%;
|
552
|
+
}
|
553
|
+
|
554
|
+
.tags-input__single-item {
|
555
|
+
display: flex;
|
556
|
+
align-items: center;
|
557
|
+
width: 100%;
|
558
|
+
justify-content: stretch;
|
559
|
+
padding-inline-start: $sd-base-increment;
|
560
|
+
padding-inline-end: $sd-base-increment * 3;
|
561
|
+
.tags-input__helper-box {
|
562
|
+
display: flex;
|
563
|
+
width: 100%;
|
564
|
+
align-items: center;
|
565
|
+
}
|
566
|
+
.tags-input__remove-button {
|
567
|
+
display: flex;
|
568
|
+
align-items: center;
|
569
|
+
align-self: center;
|
570
|
+
margin-inline-start: auto;
|
571
|
+
z-index: 2;
|
572
|
+
cursor: pointer;
|
573
|
+
opacity: 0.5;
|
574
|
+
transition: opacity 0.3s ease;
|
575
|
+
&:hover {
|
576
|
+
opacity: 1;
|
577
|
+
}
|
578
|
+
}
|
579
|
+
.tags-input__placeholder {
|
580
|
+
color: var(--color-text-lighter);
|
581
|
+
font-weight: 300;
|
634
582
|
}
|
635
583
|
}
|
636
584
|
|
585
|
+
.item-border {
|
586
|
+
width: 5px;
|
587
|
+
z-index: 2;
|
588
|
+
position: absolute;
|
589
|
+
inset-block: 7px;
|
590
|
+
inset-inline-start: 3px;
|
591
|
+
border-radius: 2px;
|
592
|
+
|
593
|
+
&-selected {
|
594
|
+
inset-block: 5px;
|
595
|
+
}
|
596
|
+
}
|
637
597
|
|
638
598
|
|