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.
Files changed (262) hide show
  1. package/app/fonts/sd_icons.eot +0 -0
  2. package/app/fonts/sd_icons.svg +14 -7
  3. package/app/fonts/sd_icons.ttf +0 -0
  4. package/app/fonts/sd_icons.woff +0 -0
  5. package/app/scripts/toggleBoxNext.js +1 -1
  6. package/app/styles/_big-icon-font.scss +1 -1
  7. package/app/styles/_buttons.scss +11 -6
  8. package/app/styles/_content-divider.scss +63 -8
  9. package/app/styles/_helpers.scss +24 -1
  10. package/app/styles/_icon-font.scss +17 -10
  11. package/app/styles/_labels.scss +0 -1
  12. package/app/styles/_master-desk.scss +3 -2
  13. package/app/styles/_modals.scss +6 -3
  14. package/app/styles/_normalize.scss +4 -0
  15. package/app/styles/_sd-tag-input.scss +256 -296
  16. package/app/styles/_simple-list.scss +0 -2
  17. package/app/styles/_table-list.scss +116 -12
  18. package/app/styles/app.scss +1 -0
  19. package/app/styles/components/_list-item.scss +36 -17
  20. package/app/styles/components/_sd-collapse-box.scss +6 -6
  21. package/app/styles/components/_sd-comment-box.scss +8 -4
  22. package/app/styles/components/_sd-editor-popup.scss +4 -4
  23. package/app/styles/components/_sd-grid-item.scss +30 -16
  24. package/app/styles/components/_sd-media-carousel.scss +37 -2
  25. package/app/styles/components/_sd-photo-preview.scss +3 -3
  26. package/app/styles/components/_sd-searchbar.scss +7 -0
  27. package/app/styles/components/_subnav.scss +470 -470
  28. package/app/styles/design-tokens/_design-tokens-general.scss +1 -1
  29. package/app/styles/design-tokens/_new-colors.scss +30 -13
  30. package/app/styles/dropdowns/_basic-dropdown.scss +6 -0
  31. package/app/styles/form-elements/_forms-general.scss +81 -7
  32. package/app/styles/form-elements/_input-wrap.scss +138 -0
  33. package/app/styles/form-elements/_inputs.scss +368 -110
  34. package/app/styles/grids/_grid-layout.scss +34 -1
  35. package/app/styles/interface-elements/_side-panel.scss +1 -1
  36. package/app/styles/layout/_basic-layout.scss +2 -2
  37. package/app/styles/layout/_editor.scss +10 -4
  38. package/app/styles/primereact/_pr-datepicker.scss +4 -2
  39. package/app/styles/primereact/_pr-dialog.scss +5 -0
  40. package/app/styles/primereact/_pr-dropdown.scss +17 -1
  41. package/app/styles/primereact/_pr-menu.scss +6 -5
  42. package/app/styles/variables/_colors.scss +21 -21
  43. package/app-typescript/components/Badge.tsx +3 -2
  44. package/app-typescript/components/ContentDivider.tsx +3 -0
  45. package/app-typescript/components/DatePicker.tsx +40 -52
  46. package/app-typescript/components/Dropdown.tsx +127 -82
  47. package/app-typescript/components/DurationInput.tsx +400 -0
  48. package/app-typescript/components/EmptyState.tsx +2 -1
  49. package/app-typescript/components/Form/FormLabel.tsx +8 -1
  50. package/app-typescript/components/Form/FormRowNew.tsx +41 -0
  51. package/app-typescript/components/Form/InputBase.tsx +95 -0
  52. package/app-typescript/components/Form/InputNew.tsx +107 -0
  53. package/app-typescript/components/Form/InputWrapper.tsx +79 -0
  54. package/app-typescript/components/Form/index.tsx +4 -0
  55. package/app-typescript/components/Input.tsx +28 -45
  56. package/app-typescript/components/Label.tsx +65 -10
  57. package/app-typescript/components/Layouts/AuthoringContainer.tsx +2 -1
  58. package/app-typescript/components/Layouts/AuthoringFrame.tsx +2 -1
  59. package/app-typescript/components/Layouts/AuthoringFrameRightBar.tsx +21 -2
  60. package/app-typescript/components/Layouts/AuthoringInnerHeader.tsx +1 -1
  61. package/app-typescript/components/Layouts/AuthoringMain.tsx +4 -2
  62. package/app-typescript/components/Layouts/CoreLayout.tsx +2 -1
  63. package/app-typescript/components/Layouts/CoreLayoutMain.tsx +7 -1
  64. package/app-typescript/components/Layouts/Layout.tsx +1 -1
  65. package/app-typescript/components/LeftMenu.tsx +127 -122
  66. package/app-typescript/components/Lists/ContentList.tsx +66 -33
  67. package/app-typescript/components/Lists/TableList.tsx +348 -151
  68. package/app-typescript/components/Menu.tsx +2 -2
  69. package/app-typescript/components/MultiSelect.tsx +37 -50
  70. package/app-typescript/components/NavButton.tsx +2 -1
  71. package/app-typescript/components/Navigation/BottomNav.tsx +3 -2
  72. package/app-typescript/components/SearchBar.tsx +39 -12
  73. package/app-typescript/components/Select.tsx +23 -41
  74. package/app-typescript/components/SelectWithTemplate.tsx +32 -7
  75. package/app-typescript/components/Spacer.tsx +87 -0
  76. package/app-typescript/components/TimePicker.tsx +38 -15
  77. package/app-typescript/components/TreeSelect.tsx +546 -212
  78. package/app-typescript/index.ts +6 -1
  79. package/dist/examples.bundle.css +344 -71
  80. package/dist/examples.bundle.js +48203 -45174
  81. package/dist/playgrounds/react-playgrounds/CoreLayout.tsx +65 -54
  82. package/dist/playgrounds/react-playgrounds/Index.tsx +1 -0
  83. package/dist/playgrounds/react-playgrounds/Multiedit.tsx +321 -0
  84. package/dist/playgrounds/react-playgrounds/RundownEditor.tsx +26 -23
  85. package/dist/playgrounds/react-playgrounds/Rundowns.tsx +20 -21
  86. package/dist/playgrounds/react-playgrounds/SamsPlayground.tsx +12 -3
  87. package/dist/playgrounds/react-playgrounds/TestGround.tsx +379 -25
  88. package/dist/playgrounds/react-playgrounds/components/Layout.tsx +1 -1
  89. package/dist/react/Badges.tsx +18 -0
  90. package/dist/react/ContentDivider.tsx +22 -18
  91. package/dist/react/ContentList.tsx +200 -18
  92. package/dist/react/DatePicker.tsx +21 -1
  93. package/dist/react/Dropdowns.tsx +580 -48
  94. package/dist/react/DurationInput.tsx +108 -0
  95. package/dist/react/Index.tsx +5 -0
  96. package/dist/react/Inputs.tsx +147 -2
  97. package/dist/react/Labels.tsx +51 -1
  98. package/dist/react/LeftNavigations.tsx +71 -44
  99. package/dist/react/MultiSelect.tsx +10 -7
  100. package/dist/react/NavButtons.tsx +31 -1
  101. package/dist/react/SelectWithTemplate.tsx +6 -1
  102. package/dist/react/TableList.tsx +79 -186
  103. package/dist/react/TimePicker.tsx +22 -12
  104. package/dist/react/Togglebox.tsx +1 -1
  105. package/dist/react/TreeSelect.tsx +295 -51
  106. package/dist/react/tree-select/TreeSelect.tsx +273 -0
  107. package/dist/react/tree-select/example-1.tsx +71 -0
  108. package/dist/react/tree-select/example-2.tsx +59 -0
  109. package/dist/sd_icons.eot +0 -0
  110. package/dist/sd_icons.svg +14 -7
  111. package/dist/sd_icons.ttf +0 -0
  112. package/dist/sd_icons.woff +0 -0
  113. package/dist/superdesk-ui.bundle.css +2282 -782
  114. package/dist/superdesk-ui.bundle.js +37312 -21800
  115. package/dist/vendor.bundle.js +27 -27
  116. package/examples/css/docs-page.css +4 -4
  117. package/examples/index.js +4 -0
  118. package/examples/pages/playgrounds/react-playgrounds/CoreLayout.tsx +65 -54
  119. package/examples/pages/playgrounds/react-playgrounds/Index.tsx +1 -0
  120. package/examples/pages/playgrounds/react-playgrounds/Multiedit.tsx +321 -0
  121. package/examples/pages/playgrounds/react-playgrounds/RundownEditor.tsx +26 -23
  122. package/examples/pages/playgrounds/react-playgrounds/Rundowns.tsx +20 -21
  123. package/examples/pages/playgrounds/react-playgrounds/SamsPlayground.tsx +12 -3
  124. package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +379 -25
  125. package/examples/pages/playgrounds/react-playgrounds/components/Layout.tsx +1 -1
  126. package/examples/pages/react/Badges.tsx +18 -0
  127. package/examples/pages/react/ContentDivider.tsx +22 -18
  128. package/examples/pages/react/ContentList.tsx +200 -18
  129. package/examples/pages/react/DatePicker.tsx +21 -1
  130. package/examples/pages/react/Dropdowns.tsx +580 -48
  131. package/examples/pages/react/DurationInput.tsx +108 -0
  132. package/examples/pages/react/Index.tsx +5 -0
  133. package/examples/pages/react/Inputs.tsx +147 -2
  134. package/examples/pages/react/Labels.tsx +51 -1
  135. package/examples/pages/react/LeftNavigations.tsx +71 -44
  136. package/examples/pages/react/MultiSelect.tsx +10 -7
  137. package/examples/pages/react/NavButtons.tsx +31 -1
  138. package/examples/pages/react/SelectWithTemplate.tsx +6 -1
  139. package/examples/pages/react/TableList.tsx +79 -186
  140. package/examples/pages/react/TimePicker.tsx +22 -12
  141. package/examples/pages/react/Togglebox.tsx +1 -1
  142. package/examples/pages/react/TreeSelect.tsx +295 -51
  143. package/examples/pages/react/tree-select/TreeSelect.tsx +273 -0
  144. package/examples/pages/react/tree-select/example-1.tsx +71 -0
  145. package/examples/pages/react/tree-select/example-2.tsx +59 -0
  146. package/package.json +5 -5
  147. package/react/components/Badge.d.ts +1 -0
  148. package/react/components/Badge.js +2 -2
  149. package/react/components/ContentDivider.d.ts +1 -0
  150. package/react/components/ContentDivider.js +2 -0
  151. package/react/components/DatePicker.d.ts +1 -0
  152. package/react/components/DatePicker.js +6 -22
  153. package/react/components/Dropdown.d.ts +6 -5
  154. package/react/components/Dropdown.js +57 -30
  155. package/react/components/DurationInput.d.ts +42 -0
  156. package/react/components/DurationInput.js +364 -0
  157. package/react/components/EmptyState.d.ts +1 -0
  158. package/react/components/EmptyState.js +1 -1
  159. package/react/components/Form/FormLabel.d.ts +4 -1
  160. package/react/components/Form/FormLabel.js +9 -3
  161. package/react/components/Form/FormRowNew.d.ts +12 -0
  162. package/react/components/Form/FormRowNew.js +67 -0
  163. package/react/components/Form/InputBase.d.ts +41 -0
  164. package/react/components/Form/InputBase.js +86 -0
  165. package/react/components/Form/InputNew.d.ts +45 -0
  166. package/react/components/Form/InputNew.js +75 -0
  167. package/react/components/Form/InputWrapper.d.ts +28 -0
  168. package/react/components/Form/InputWrapper.js +91 -0
  169. package/react/components/Form/index.d.ts +4 -0
  170. package/react/components/Form/index.js +9 -1
  171. package/react/components/Input.js +5 -34
  172. package/react/components/Label.d.ts +2 -0
  173. package/react/components/Label.js +34 -3
  174. package/react/components/Layouts/AuthoringContainer.d.ts +1 -0
  175. package/react/components/Layouts/AuthoringContainer.js +1 -1
  176. package/react/components/Layouts/AuthoringFrame.d.ts +1 -0
  177. package/react/components/Layouts/AuthoringFrame.js +1 -1
  178. package/react/components/Layouts/AuthoringFrameRightBar.d.ts +9 -2
  179. package/react/components/Layouts/AuthoringFrameRightBar.js +14 -3
  180. package/react/components/Layouts/AuthoringInnerHeader.js +1 -1
  181. package/react/components/Layouts/AuthoringMain.js +1 -1
  182. package/react/components/Layouts/CoreLayout.d.ts +1 -0
  183. package/react/components/Layouts/CoreLayout.js +1 -1
  184. package/react/components/Layouts/CoreLayoutMain.d.ts +1 -0
  185. package/react/components/Layouts/CoreLayoutMain.js +8 -1
  186. package/react/components/Layouts/Layout.js +1 -1
  187. package/react/components/LeftMenu.d.ts +3 -1
  188. package/react/components/LeftMenu.js +8 -1
  189. package/react/components/Lists/ContentList.d.ts +51 -0
  190. package/react/components/Lists/ContentList.js +110 -0
  191. package/react/components/Lists/TableList.d.ts +64 -0
  192. package/react/components/Lists/TableList.js +240 -0
  193. package/react/components/Menu.js +1 -1
  194. package/react/components/MultiSelect.d.ts +40 -0
  195. package/react/components/MultiSelect.js +70 -0
  196. package/react/components/NavButton.d.ts +1 -1
  197. package/react/components/Navigation/BottomNav.d.ts +1 -0
  198. package/react/components/Navigation/BottomNav.js +2 -2
  199. package/react/components/SearchBar.d.ts +3 -2
  200. package/react/components/SearchBar.js +28 -4
  201. package/react/components/Select.d.ts +1 -1
  202. package/react/components/Select.js +4 -26
  203. package/react/components/SelectWithTemplate.d.ts +11 -1
  204. package/react/components/SelectWithTemplate.js +19 -10
  205. package/react/components/TimePicker.d.ts +11 -1
  206. package/react/components/TimePicker.js +10 -3
  207. package/react/components/TreeSelect.d.ts +82 -0
  208. package/react/components/TreeSelect.js +521 -0
  209. package/react/index.d.ts +6 -0
  210. package/react/index.js +16 -3
  211. package/.vscode/settings.json +0 -5
  212. package/app-typescript/dist/components/Alert.d.ts +0 -16
  213. package/app-typescript/dist/components/Autocomplete.d.ts +0 -48
  214. package/app-typescript/dist/components/Avatar.d.ts +0 -33
  215. package/app-typescript/dist/components/Badge.d.ts +0 -13
  216. package/app-typescript/dist/components/Button.d.ts +0 -23
  217. package/app-typescript/dist/components/ButtonGroup.d.ts +0 -12
  218. package/app-typescript/dist/components/CheckButtonGroup.d.ts +0 -11
  219. package/app-typescript/dist/components/CheckGroup.d.ts +0 -9
  220. package/app-typescript/dist/components/Checkbox.d.ts +0 -19
  221. package/app-typescript/dist/components/CheckboxButton.d.ts +0 -19
  222. package/app-typescript/dist/components/DatePicker.d.ts +0 -37
  223. package/app-typescript/dist/components/Divider.d.ts +0 -9
  224. package/app-typescript/dist/components/DonutChart.d.ts +0 -12
  225. package/app-typescript/dist/components/Dropdown.d.ts +0 -28
  226. package/app-typescript/dist/components/DropdownFirst.d.ts +0 -42
  227. package/app-typescript/dist/components/EmptyState.d.ts +0 -11
  228. package/app-typescript/dist/components/FormLabel.d.ts +0 -9
  229. package/app-typescript/dist/components/Genie.d.ts +0 -13
  230. package/app-typescript/dist/components/GridItem.d.ts +0 -69
  231. package/app-typescript/dist/components/GridList.d.ts +0 -14
  232. package/app-typescript/dist/components/HeadingText.d.ts +0 -10
  233. package/app-typescript/dist/components/HelloWorld.d.ts +0 -8
  234. package/app-typescript/dist/components/Icon.d.ts +0 -12
  235. package/app-typescript/dist/components/IconButton.d.ts +0 -12
  236. package/app-typescript/dist/components/IconLabel.d.ts +0 -11
  237. package/app-typescript/dist/components/Input.d.ts +0 -24
  238. package/app-typescript/dist/components/Label.d.ts +0 -15
  239. package/app-typescript/dist/components/LeftMenu.d.ts +0 -26
  240. package/app-typescript/dist/components/Loader.d.ts +0 -8
  241. package/app-typescript/dist/components/NavButton.d.ts +0 -15
  242. package/app-typescript/dist/components/Popover.d.ts +0 -13
  243. package/app-typescript/dist/components/PropsList.d.ts +0 -15
  244. package/app-typescript/dist/components/Radio.d.ts +0 -19
  245. package/app-typescript/dist/components/RadioButton.d.ts +0 -20
  246. package/app-typescript/dist/components/Select.d.ts +0 -29
  247. package/app-typescript/dist/components/SelectWithTemplate.d.ts +0 -32
  248. package/app-typescript/dist/components/SlidingToolbar.d.ts +0 -8
  249. package/app-typescript/dist/components/StrechBar.d.ts +0 -4
  250. package/app-typescript/dist/components/SubNav.d.ts +0 -10
  251. package/app-typescript/dist/components/Switch.d.ts +0 -12
  252. package/app-typescript/dist/components/TabCustom.d.ts +0 -25
  253. package/app-typescript/dist/components/TabList.d.ts +0 -22
  254. package/app-typescript/dist/components/Tag.d.ts +0 -9
  255. package/app-typescript/dist/components/TagInput.d.ts +0 -7
  256. package/app-typescript/dist/components/TagInputTest.d.ts +0 -18
  257. package/app-typescript/dist/components/TimePicker.d.ts +0 -11
  258. package/app-typescript/dist/components/Tooltip.d.ts +0 -11
  259. package/app-typescript/dist/components/_Positioner.d.ts +0 -27
  260. package/app-typescript/dist/index.d.ts +0 -56
  261. package/patches/@superdesk+primereact+5.0.2-4.patch +0 -57
  262. 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-block;
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 1px;
56
+ padding: 2px 8px;
54
57
  font-size: 1.1rem;
55
58
  font-family: $baseFontFamily;
56
59
  font-weight: 400;
57
- line-height: 1.8rem;
60
+ line-height: 2rem;
58
61
  text-transform: uppercase;
59
62
  font-style: normal;
60
63
  letter-spacing: 0.08em;
61
- height: 1.8rem;
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-left: 0.3rem;
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-right: 6px;
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
- top: 2.5rem;
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
- right: 0.8rem;
230
+ inset-inline-end: 0.8rem;
185
231
  }
186
232
  .sd-line-input__info-left {
187
- left: 0.8rem;
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
- top: 1.6rem;
238
+ inset-block-start: 1.6rem;
193
239
  cursor: pointer;
194
240
  }
195
241
  .sd-line-input__icon-right {
196
- right: 0.2rem;
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-left: 3rem;
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-right: 3rem;
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
- top:0;
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-left: 0.3rem;
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
- left: 1px;
245
- right: auto;
246
- padding-right: 5.5rem;
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
- right: 1px;
252
- left: auto;
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
- top: 1.4rem;
401
+ inset-block-start: 1.4rem;
351
402
  }
352
403
  }
353
404
  &.sd-line-input--label-left {
354
405
  &::after {
355
- top: 1.2rem;
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-left: 0.3rem;
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-right: 0;
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-left: 1.6rem;
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-right: 3rem;
484
+ padding-inline-end: 3rem;
434
485
  }
435
486
  }
436
487
  }
437
488
  .sd-line-input__plus-btn {
438
489
  position: absolute;
439
- top: 1.8rem;
440
- left: 0;
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
- @include Line-input-base;
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
- color:inherit;
508
- font-size: 1.4rem;
509
- line-height: 2rem;
510
- background-color: var(--color-dropdown-menu-Bg);
511
- color: var(--color-dropdown-menu-text);
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
- color: $red;
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-left: 0.3rem;
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, textarea {
729
- &.sd-input__input, &.sd-input__input:hover, &.sd-input__input:focus {
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, &.sd-input__select:hover, &.sd-input__select:focus {
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
- .sd-input__label, .sd-input__message-box, .sd-input__char-count {
747
- opacity: 0.5;
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
+ }