superdesk-ui-framework 3.0.1-beta.13 → 3.0.1-beta.15

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 (63) hide show
  1. package/app/scripts/toggleBoxNext.js +1 -1
  2. package/app/styles/_buttons.scss +1 -1
  3. package/app/styles/_content-divider.scss +5 -5
  4. package/app/styles/_helpers.scss +24 -1
  5. package/app/styles/_icon-font.scss +9 -9
  6. package/app/styles/_modals.scss +3 -0
  7. package/app/styles/_normalize.scss +4 -0
  8. package/app/styles/_simple-list.scss +1 -0
  9. package/app/styles/_table-list.scss +11 -1
  10. package/app/styles/app.scss +1 -0
  11. package/app/styles/components/_list-item.scss +23 -16
  12. package/app/styles/components/_sd-collapse-box.scss +6 -6
  13. package/app/styles/design-tokens/_new-colors.scss +10 -5
  14. package/app/styles/dropdowns/_basic-dropdown.scss +6 -0
  15. package/app/styles/form-elements/_input-wrap.scss +138 -0
  16. package/app/styles/form-elements/_inputs.scss +230 -61
  17. package/app/styles/interface-elements/_side-panel.scss +1 -1
  18. package/app/styles/primereact/_pr-dialog.scss +1 -0
  19. package/app/styles/primereact/_pr-menu.scss +6 -5
  20. package/app-typescript/components/Dropdown.tsx +65 -65
  21. package/app-typescript/components/DurationInput.tsx +10 -6
  22. package/app-typescript/components/Form/FormLabel.tsx +8 -1
  23. package/app-typescript/components/Form/InputBase.tsx +12 -2
  24. package/app-typescript/components/Lists/ContentList.tsx +28 -4
  25. package/app-typescript/components/Lists/TableList.tsx +11 -9
  26. package/dist/examples.bundle.css +8 -8
  27. package/dist/examples.bundle.js +1075 -640
  28. package/dist/playgrounds/react-playgrounds/CoreLayout.tsx +1 -1
  29. package/dist/playgrounds/react-playgrounds/RundownEditor.tsx +5 -10
  30. package/dist/playgrounds/react-playgrounds/Rundowns.tsx +20 -21
  31. package/dist/playgrounds/react-playgrounds/TestGround.tsx +198 -25
  32. package/dist/react/ContentDivider.tsx +4 -4
  33. package/dist/react/ContentList.tsx +2 -10
  34. package/dist/react/Dropdowns.tsx +357 -5
  35. package/dist/react/Inputs.tsx +1 -7
  36. package/dist/react/TableList.tsx +28 -30
  37. package/dist/react/Togglebox.tsx +1 -1
  38. package/dist/superdesk-ui.bundle.css +463 -176
  39. package/dist/superdesk-ui.bundle.js +591 -539
  40. package/dist/vendor.bundle.js +2 -2
  41. package/examples/pages/playgrounds/react-playgrounds/CoreLayout.tsx +1 -1
  42. package/examples/pages/playgrounds/react-playgrounds/RundownEditor.tsx +5 -10
  43. package/examples/pages/playgrounds/react-playgrounds/Rundowns.tsx +20 -21
  44. package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +198 -25
  45. package/examples/pages/react/ContentDivider.tsx +4 -4
  46. package/examples/pages/react/ContentList.tsx +2 -10
  47. package/examples/pages/react/Dropdowns.tsx +357 -5
  48. package/examples/pages/react/Inputs.tsx +1 -7
  49. package/examples/pages/react/TableList.tsx +28 -30
  50. package/examples/pages/react/Togglebox.tsx +1 -1
  51. package/package.json +1 -1
  52. package/react/components/Dropdown.d.ts +4 -4
  53. package/react/components/Dropdown.js +19 -15
  54. package/react/components/DurationInput.d.ts +1 -1
  55. package/react/components/DurationInput.js +12 -7
  56. package/react/components/Form/FormLabel.d.ts +4 -1
  57. package/react/components/Form/FormLabel.js +9 -3
  58. package/react/components/Form/InputBase.d.ts +0 -1
  59. package/react/components/Form/InputBase.js +15 -1
  60. package/react/components/Lists/ContentList.d.ts +5 -0
  61. package/react/components/Lists/ContentList.js +36 -15
  62. package/react/components/Lists/TableList.d.ts +5 -5
  63. package/react/components/Lists/TableList.js +6 -4
@@ -23,7 +23,7 @@ export class ToggleBoxNext extends React.Component {
23
23
  const {isOpen} = this.state;
24
24
 
25
25
  const classNames = [
26
- `toggle-box toggle-box--${style}`,
26
+ `toggle-box toggle-box--margin-normal toggle-box--${style}`,
27
27
  mode,
28
28
  ];
29
29
 
@@ -327,7 +327,7 @@ $new-button-active-shadow-hollow: inset 0 0 0 1px;
327
327
  border-radius: $border-radius__base--full;
328
328
  background-color: transparent;
329
329
  opacity: 0.75;
330
- background-color: rgba(55,55,55,0);
330
+ background-color: hsla(214, 13%, 55%, 0);
331
331
  color: inherit;
332
332
  text-decoration: none;
333
333
  cursor: pointer;
@@ -16,7 +16,7 @@
16
16
  text-align: center;
17
17
  border-top: 0;
18
18
  border-top-color: var(--sd-colour-line--medium);
19
- border-top-style: solid;
19
+ border-style: solid;
20
20
  }
21
21
 
22
22
  &.sd-content-divider--horizontal {
@@ -38,7 +38,7 @@
38
38
  border-top-color: inherit;
39
39
  border-bottom: 0;
40
40
  transform: translateY(50%);
41
- border-top-style: inherit;
41
+ border-style: inherit;
42
42
  }
43
43
  &.sd-content-divider--text-left {
44
44
  &::before {
@@ -66,7 +66,7 @@
66
66
  vertical-align: middle;
67
67
  border-top: 0;
68
68
  border-left: 1px var(--sd-colour-line--medium);
69
- border-left-style: solid;
69
+ border-style: solid;
70
70
  flex-grow: 0;
71
71
  align-self: stretch;
72
72
  min-height: $sd-base-increment * 2;
@@ -88,7 +88,7 @@
88
88
  border-left: 1px var(--sd-colour-line--medium);
89
89
  border-bottom: 0;
90
90
  width: 1px;
91
- border-left-style: solid;
91
+ border-style: solid;
92
92
  }
93
93
  &.sd-content-divider--dashed {
94
94
  &::before, &::after {
@@ -98,7 +98,7 @@
98
98
  }
99
99
  &.sd-content-divider--dotted {
100
100
  &::before, &::after {
101
- border-left-style: dotted;
101
+ border-style: dotted;
102
102
  border-color: var(--sd-colour-line--strong);
103
103
  }
104
104
  }
@@ -1024,4 +1024,27 @@ $sd-properties: (padding, margin); // It's generating these properties
1024
1024
  }
1025
1025
  .sd-width--full {
1026
1026
  width: var(--width__container--full);
1027
- }
1027
+ }
1028
+
1029
+
1030
+ .sd-gap--x-small {
1031
+ gap: var(--gap--x-small);
1032
+ }
1033
+ .sd-gap--small {
1034
+ gap: var(--gap--small);
1035
+ }
1036
+ .sd-gap--medium {
1037
+ gap: var(--gap--medium);
1038
+ }
1039
+ .sd-gap--large {
1040
+ gap: var(--gap--large);
1041
+ }
1042
+ .sd-gap--x-large {
1043
+ gap: var(--gap--x-large);
1044
+ }
1045
+ .sd-gap--xx-large {
1046
+ gap: var(--gap--xx-large);
1047
+ }
1048
+ .sd-gap--auto {
1049
+ gap: var(--gap--auto);
1050
+ }
@@ -46,7 +46,7 @@ $icon-base-size: 16px;
46
46
  [class^="icon-"],
47
47
  [class*=" icon-"] {
48
48
  @include icon-base;
49
- color: $icon-color;
49
+ color: var(--color-icon-default);
50
50
  /* Better Font Rendering =========== */
51
51
  -webkit-font-smoothing: antialiased;
52
52
  -moz-osx-font-smoothing: grayscale;
@@ -362,11 +362,11 @@ $sd-icon-font: (
362
362
  box-sizing: content-box;
363
363
  line-height: 100%;
364
364
  color: $purple;
365
- right: -0.5rem;
366
- bottom: -0.7rem;
365
+ inset-inline-end: -0.4rem;
366
+ inset-block-end: -0.6rem;
367
367
  height: 1em;
368
368
  width: 1em;
369
- background-color: var(--sd-item__main-Bg);
369
+ background-color: var(--sd-item__main-Bg) !important;
370
370
  border-radius: $border-radius__base--full;
371
371
  padding: 1px;
372
372
  z-index: 1;
@@ -384,8 +384,8 @@ $sd-icon-font: (
384
384
  }
385
385
  .icn-mix__sub-icn {
386
386
  font-size: 1.6rem;
387
- right: -0.6rem;
388
- bottom: -0.3rem;
387
+ inset-inline-end: -0.6rem;
388
+ inset-block-end: -0.3rem;
389
389
  }
390
390
  }
391
391
  }
@@ -411,16 +411,16 @@ $sd-icon-font: (
411
411
 
412
412
  .subnav {
413
413
  .icn-mix__sub-icn {
414
- background-color: $subnav-background;
414
+ background-color: $subnav-background !important;
415
415
  }
416
416
  &--darker {
417
417
  .icn-mix__sub-icn {
418
- background-color: $subnav-background-darker;
418
+ background-color: $subnav-background-darker !important;
419
419
  }
420
420
  }
421
421
  &--dark-blue-grey {
422
422
  .icn-mix__sub-icn {
423
- background-color: $subnav-background-dark-blue-grey;
423
+ background-color: $subnav-background-dark-blue-grey !important;
424
424
  color: scale-color($purple, $lightness: 50%);
425
425
  }
426
426
  .icn-mix__icn {
@@ -92,6 +92,9 @@ $modal-sizes: (
92
92
  text-align: end; // right align buttons
93
93
  border-top: 1px solid $modal-line-color;
94
94
  min-height: $modal-footer-height;
95
+ display: flex;
96
+ align-items: center;
97
+ justify-content: flex-end;
95
98
  @include clearfix(); // clear it in case folks use .pull-* classes on buttons
96
99
  }
97
100
 
@@ -259,6 +259,10 @@ textarea {
259
259
  font-size: 100%; /* 1 */
260
260
  line-height: 1.15; /* 1 */
261
261
  margin: 0; /* 2 */
262
+ &:focus {
263
+ outline: none;
264
+ box-shadow: none;
265
+ }
262
266
  }
263
267
 
264
268
  /**
@@ -17,6 +17,7 @@ $simple-list-border-color: $neutral-border-color;
17
17
  flex-grow: 0;
18
18
  flex-shrink: 0;
19
19
  //margin-inline-end: 1rem;
20
+ color: var(--color-icon-default) !important;
20
21
  opacity: .75;
21
22
  }
22
23
  &--stacked {
@@ -5,6 +5,7 @@
5
5
  display: flex;
6
6
  flex-direction: column;
7
7
  align-self: stretch;
8
+ overflow: hidden !important;
8
9
  //gap: $sd-base-increment * 1.5;
9
10
  &--comfortable {
10
11
  gap: $sd-base-increment * 2;
@@ -27,7 +28,7 @@ $table-list-palette: $sd-basic-palette;
27
28
  grid-template-columns: [contentCol] 1fr [actionsVisible] auto [actionsHidden] auto;
28
29
  position: relative;
29
30
  flex-direction: row;
30
- padding: 8px;
31
+ padding: $sd-base-increment;
31
32
  min-height: 4.2rem;
32
33
  border-radius: var(--b-radius--medium);
33
34
  background-color: var(--sd-item__main-Bg);
@@ -155,6 +156,15 @@ $table-list-palette: $sd-basic-palette;
155
156
  align-items: center;
156
157
  gap:8px;
157
158
  }
159
+ .table-list__item-border {
160
+ width: 6px;
161
+ background-color: var(--sd-colour-panel-bg--100);
162
+ z-index: 2;
163
+ position: absolute;
164
+ inset-block: 3px;
165
+ inset-inline-start: 3px;
166
+ border-radius: 2px;
167
+ }
158
168
  .table-list__item-content-block {
159
169
  display: flex;
160
170
  align-items: center;
@@ -85,6 +85,7 @@
85
85
  @import 'form-elements/radio';
86
86
  @import 'form-elements/autocomplete';
87
87
  @import 'form-elements/select-grid';
88
+ @import 'form-elements/input-wrap';
88
89
 
89
90
  // Menus
90
91
  @import 'menus/sd-sidebar-menu';
@@ -16,6 +16,7 @@ $sd-ListItem-column-border: var(--sd-colour-line--x-light);
16
16
  flex-direction: row;
17
17
  background-color: $sd-ListItem-background;
18
18
  transition: background-color 0.2s linear;
19
+ flex-shrink: 0;
19
20
  &:hover {
20
21
  background-color: $sd-ListItem-background-hover;
21
22
  cursor: pointer;
@@ -304,12 +305,6 @@ $sd-ListItem-column-border: var(--sd-colour-line--x-light);
304
305
  flex-grow: 1;
305
306
  }
306
307
 
307
- // Overrides for inner elements
308
- // .sd-list-item {
309
- // .label {
310
- // margin-right: 0.6rem;
311
- // }
312
- // }
313
308
 
314
309
  .sd-list-item {
315
310
  .badge {
@@ -320,14 +315,15 @@ $sd-ListItem-column-border: var(--sd-colour-line--x-light);
320
315
  .sd-list-item {
321
316
  [class^="icon-"],
322
317
  [class*=" icon-"] {
323
- opacity: 0.6;
318
+ opacity: 0.75;
324
319
  vertical-align: middle;
320
+ color: var(--color-icon-default);
325
321
  }
326
322
  time {
327
323
  [class^="icon-"],
328
324
  [class*=" icon-"] {
329
325
  vertical-align: top;
330
- margin-right: 0.2rem;
326
+ margin-inline-end: 0.2rem;
331
327
  }
332
328
  }
333
329
  }
@@ -375,17 +371,28 @@ $sd-ListItem-column-border: var(--sd-colour-line--x-light);
375
371
  }
376
372
  .sd-list-item__inline-icon,
377
373
  .sd-list-item__inline-text {
378
- margin-right: 0.6rem;
374
+ margin-inline-end: 0.6rem;
375
+ }
376
+
377
+ .sd-list-item__icon-group {
378
+ display: flex;
379
+ align-items: flex-start;
380
+ gap: var(--gap--small);
381
+ min-height: 2rem;
382
+ margin-inline-end: 4px;
383
+ .sd-list-item__inline-icon {
384
+ margin: 0;
385
+ }
379
386
  }
380
387
  .sd-list-item__text-strong {
381
388
  font-weight: 500;
382
389
  color: $sd-text;
383
390
  }
384
391
  .sd-list-item__element-rm-10 {
385
- margin-right: 1rem;
392
+ margin-inline-end: 1rem;
386
393
  }
387
394
  .sd-list-item__element-lm-10 {
388
- margin-left: 1rem;
395
+ margin-inline-start: 1rem;
389
396
  }
390
397
  .sd-list-item__location {
391
398
  padding-left: 1.6rem;
@@ -417,7 +424,7 @@ $sd-ListItem-column-border: var(--sd-colour-line--x-light);
417
424
  width: 3rem;
418
425
  background-color: $avatarBG;
419
426
  border-radius: $border-radius__base--full;
420
- margin-right: 0.6rem;
427
+ margin-inline-end: 0.6rem;
421
428
  color: $white;
422
429
  text-align: center;
423
430
  text-transform: uppercase;
@@ -446,8 +453,8 @@ $sd-ListItem-column-border: var(--sd-colour-line--x-light);
446
453
  border: 1px dashed rgba(123, 123, 123, 0.6);
447
454
  }
448
455
  &--on-right {
449
- margin-right: 0;
450
- margin-left: 0.6rem;
456
+ margin-inline-end: 0;
457
+ margin-inline-start: 0.6rem;
451
458
  }
452
459
  }
453
460
 
@@ -489,7 +496,7 @@ $sd-ListItem-column-border: var(--sd-colour-line--x-light);
489
496
  z-index: 0;
490
497
  display: flex;
491
498
  flex-direction: column;
492
- margin-left: 1rem;
499
+ margin-inline-start: 1rem;
493
500
  .sd-list-item {
494
501
  margin-top: 0;
495
502
  border-top: 1px solid var(--sd-colour-line--x-light);
@@ -582,7 +589,7 @@ $sd-ListItem-column-border: var(--sd-colour-line--x-light);
582
589
  }
583
590
  }
584
591
  .sd-list-header__number {
585
- margin-left: 1rem;
592
+ margin-inline-start: 1rem;
586
593
  }
587
594
  .sd-list-header__stretch-bar {
588
595
  flex-grow: 1;
@@ -3,9 +3,10 @@
3
3
  .sd-collapse-box {
4
4
  display: flex;
5
5
  flex-direction: column;
6
- border-radius: $border-radius__base--x-small;
6
+ border-radius: $border-radius__base--small;
7
7
  position: relative;
8
8
  margin-bottom: 1rem;
9
+ border: 1px solid var(--sd-colour--shadow-line--m);
9
10
  .sd-collapse-box__header {
10
11
  display: block;
11
12
  flex-grow: 0;
@@ -18,7 +19,7 @@
18
19
  right: 1rem;
19
20
  top: 0.8rem;
20
21
  z-index: 2;
21
- color: $gray;
22
+ color: var(--color-icon-default);
22
23
  &--flex {
23
24
  position: relative;
24
25
  right: 0;
@@ -29,17 +30,17 @@
29
30
  }
30
31
  .sd-collapse-box__collapse-btn {
31
32
  flex-grow: 1;
32
- color: $gray;
33
+ color: var(--color-icon-default);
33
34
  &:hover {
34
35
  .icn-btn {
35
- background-color: rgba(155, 155, 155, 0.25);
36
+ background-color: hsla(214, 13%, 60%, 0.25);
36
37
  color: $white;
37
38
  opacity: 1;
38
39
  }
39
40
  }
40
41
  &:active {
41
42
  .icn-btn {
42
- background-color: rgba(155, 155, 155, 0.35);
43
+ background-color: hsla(214, 13%, 70%, 0.25);
43
44
  color: $sd-colour-interactive;
44
45
  opacity: 1;
45
46
  }
@@ -70,7 +71,6 @@
70
71
  margin: 0 -2rem 3rem -2rem;
71
72
  &--top {
72
73
  margin-top: 2.2rem;
73
- background-color: rgba(0,0,0,0.04);
74
74
  }
75
75
  }
76
76
 
@@ -271,6 +271,7 @@
271
271
  --sd-colour-sidebar-menu--00: hsla(var(--sd-colour-cool-grey-l--85), 1);
272
272
  --sd-colour-sidebar-menu--10: hsla(var(--sd-colour-cool-grey-l--80), 1);
273
273
  --sd-colour-sidebar-menu--20: hsla(var(--sd-colour-cool-grey-l--75), 1);
274
+ --sd-colour-quickbar-menu: hsla(var(--sd-colour-cool-grey-l--98), 1);
274
275
 
275
276
  --sd-colour-background__left-nav: var(--sd-colour-bg--99);
276
277
 
@@ -310,6 +311,8 @@
310
311
  --color-modal-Bg: var(--sd-colour-bg--99);
311
312
 
312
313
  --sd-colour--shadow-line: hsla(var(--sd-colour-cool-grey-l--70), 0);
314
+ --sd-colour--shadow-line--m: hsla(var(--sd-colour-cool-grey-l--80), 0);
315
+
313
316
  --sd-shadow__subnav: 0 1px 0px var(--sd-colour--shadow-line), 0 1px 3px hsla(0, 0%, 0%, 0.07), 0 1px 0 0 hsla(0, 0%, 0%, 0.1);
314
317
 
315
318
  --sd-shadow__item--selected: 0 0 0 2px var(--sd-colour-interactive), 0 0 0 5px var(--sd-colour-interactive--alpha-30);
@@ -413,6 +416,7 @@
413
416
  --sd-colour-btn-txt-neutral: hsla(var(--sd-colour-neutral-l--80), 1);
414
417
 
415
418
  --sd-colour--shadow-line: hsla(var(--sd-colour-cool-grey-l--75), 0.2);
419
+ --sd-colour--shadow-line--m: hsla(var(--sd-colour-cool-grey-l--80), 0.2);
416
420
 
417
421
  --sd-colour-panel-bg--000: hsla(var(--sd-colour-cool-grey-l--10), 1);
418
422
  --sd-colour-panel-bg--050: hsla(var(--sd-colour-cool-grey-l--05), 1);
@@ -423,6 +427,7 @@
423
427
  --sd-colour-sidebar-menu--00: hsla(var(--sd-colour-cool-grey-l--25), 1);
424
428
  --sd-colour-sidebar-menu--10: hsla(var(--sd-colour-cool-grey-l--30), 1);
425
429
  --sd-colour-sidebar-menu--20: hsla(var(--sd-colour-cool-grey-l--35), 1);
430
+ --sd-colour-quickbar-menu: hsla(var(--sd-colour-cool-grey-l--20), 1);
426
431
 
427
432
  --sd-colour-background__left-nav: var(--sd-colour-bg--04);
428
433
 
@@ -560,8 +565,8 @@
560
565
 
561
566
  --color-text: hsla(214, 13%, 20%, 1);
562
567
  --color-text--inverse: hsla(0, 0%, 98%, 1); // equals #333;
563
- --color-text-light: hsla(214, 13%, 30%, 0.75);
564
- --color-text-lighter: hsla(214, 13%, 30%, 0.55);
568
+ --color-text-light: hsla(214, 13%, 40%, 1);
569
+ --color-text-lighter: hsla(214, 13%, 60%, 1);
565
570
  --color-icon-default: hsla(214, 13%, 30%, 1);
566
571
  --sd-slugline-color: hsla(197, 100%, 15%, 1) !important;
567
572
  --sd-time-schedule-color: hsla(268, 100%, 25%, 1);
@@ -634,9 +639,9 @@
634
639
 
635
640
  //color: hsla(0, 0%, 100%, 1);
636
641
  --color-text: hsla(0, 0%, 96%, 1);
637
- --color-text-light: hsla(214, 13%, 96%, 0.75);
638
- --color-text-lighter: hsla(214, 13%, 96%, 0.55);
639
- --color-icon-default: hsla(214, 13%, 96%, 0.65);
642
+ --color-text-light: hsla(214, 13%, 76%, 1);
643
+ --color-text-lighter: hsla(214, 13%, 56%, 1);
644
+ --color-icon-default: hsla(214, 13%, 64%, 1);
640
645
  --sd-slugline-color: hsla(197, 60%, 75%, 1) !important;
641
646
  --sd-time-schedule-color: hsla(268, 60%, 65%, 1);
642
647
  --sd-navy-color: hsla(240, 90%, 75%, 1);
@@ -109,6 +109,10 @@ $focus-box-shadow: 0 0 0 3px $sd-colour--focus-shadow;
109
109
  border-radius: $dropdownMenuBorderRadius;
110
110
  text-align: start;
111
111
 
112
+ .dropdown {
113
+ width: 100%;
114
+ }
115
+
112
116
  // Links within the dropdown menu
113
117
  li, .dropdown__menu-item {
114
118
  a:not(.btn), button:not(.btn):not(.dropdown__menu-close):not(.toggle-button) {
@@ -193,8 +197,10 @@ $focus-box-shadow: 0 0 0 3px $sd-colour--focus-shadow;
193
197
  }
194
198
  .dropdown__menu-body {
195
199
  overflow-y: auto;
200
+ overflow-x: hidden;
196
201
  flex: 0 1;
197
202
  padding: 0.6rem 0;
203
+ max-height: 320px;
198
204
  }
199
205
  .dropdown__menu-body:first-child {
200
206
  .dropdown__menu-label {
@@ -0,0 +1,138 @@
1
+
2
+ .input-wrap {
3
+ padding-top: 0;
4
+ margin: 0;
5
+ display: grid;
6
+ grid-template-columns: auto 1fr auto;
7
+ grid-template-rows: auto auto auto;
8
+ grid-gap: 0;
9
+ position: relative;
10
+ align-self: stretch;
11
+ flex-grow: 1;
12
+ width: 100%;
13
+ row-gap: $sd-base-increment / 2;
14
+
15
+ .input-wrap__input-container,
16
+ .sd-input__input {
17
+ grid-row: 2/3;
18
+ grid-column: 2/4;
19
+ }
20
+
21
+ .input-wrap__message-box {
22
+ grid-row: 3/4;
23
+ grid-column: 2/3;
24
+ }
25
+
26
+ .input-wrap__icon-right {
27
+ grid-row: 2/3;
28
+ grid-column: 3/4;
29
+ z-index: 1;
30
+ }
31
+ .sd-input__char-count {
32
+ grid-row: 3/4;
33
+ grid-column: 3/4;
34
+ z-index: 1;
35
+ font-size: 1.1rem;
36
+ font-weight: 400;
37
+ font-style: italic;
38
+ }
39
+
40
+ .sd-input__label,
41
+ .form-label {
42
+ grid-row: 1/2;
43
+ grid-column: 2/3;
44
+ margin-bottom: 0 !important;
45
+ align-items: center;
46
+ justify-content: flex-start;
47
+ }
48
+ .form-label--boxed {
49
+ margin-block: 2px !important;
50
+ }
51
+ .icn-btn {
52
+ grid-row: 1/2;
53
+ grid-column: 3/4;
54
+ }
55
+
56
+ &--inline-label {
57
+ grid-template-columns: auto 1fr auto;
58
+ grid-template-rows: auto auto auto;
59
+ .sd-input__label,
60
+ .form-label {
61
+ grid-row: 2/3;
62
+ grid-column: 1/2;
63
+ padding-inline-end: 1rem;
64
+ padding-inline-start: 0;
65
+ padding-block-start: 0.4rem;
66
+ padding-block-end: 0;
67
+ position: relative;
68
+
69
+ max-width: 260px;
70
+ min-width: 100px;
71
+ text-align: end;
72
+ position: relative;
73
+ align-self: center;
74
+ line-height: 1.2;
75
+ &::after {
76
+ position: absolute;
77
+ z-index: 2;
78
+ inset-block-start: -2px;
79
+ inset-inline-end: 4px;
80
+ }
81
+ }
82
+ }
83
+
84
+ &--required {
85
+ .sd-input__label::after {
86
+ color:$red;
87
+ content: "*";
88
+ vertical-align: top;
89
+ font-size: 1.2rem;
90
+ padding-left: 0.3rem;
91
+ }
92
+ .sd-input__label.sd-input__label--boxed::after {
93
+ position: absolute;
94
+ inset-block-start: -4px;
95
+ inset-inline-end: -10px;
96
+ }
97
+ }
98
+
99
+ &--disabled {
100
+ .sd-input__label,
101
+ .sd-input__message-box,
102
+ .sd-input__char-count {
103
+ opacity: 0.5 !important;
104
+ pointer-events: none !important;
105
+ }
106
+ .sd-input__hint,
107
+ .sd-input__message,
108
+ .sd-input__char-count {
109
+ pointer-events: none;
110
+ }
111
+ }
112
+
113
+ &--no-label {
114
+ grid-template-rows: auto auto auto;
115
+ }
116
+
117
+ &--medium {
118
+ &.sd-input--boxed-style {
119
+ .sd-input__input,
120
+ .sd-input__select {
121
+ border-radius: var(--b-radius--medium);
122
+ &:focus {
123
+ box-shadow: inset 0 0 0 3px var(--sd-colour-interactive--alpha-20);
124
+ }
125
+ }
126
+ }
127
+ }
128
+ &--boxed {
129
+ //grid-template-columns: auto 1fr auto;
130
+ //grid-template-rows: auto auto auto;
131
+ // grid-gap: 0;
132
+ // position: relative;
133
+ // align-self: stretch;
134
+ // flex-grow: 1;
135
+ // width: 100%;
136
+
137
+ }
138
+ }