superdesk-ui-framework 3.0.42 → 3.0.44

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 (119) hide show
  1. package/app/styles/_accessibility.scss +349 -310
  2. package/app/styles/_alerts.scss +102 -71
  3. package/app/styles/_animations.scss +29 -16
  4. package/app/styles/_avatar.scss +159 -140
  5. package/app/styles/_badge.scss +11 -5
  6. package/app/styles/_big-icon-font.scss +21 -9
  7. package/app/styles/_boxed-list.scss +72 -47
  8. package/app/styles/_buttons.scss +266 -177
  9. package/app/styles/_carousel.scss +58 -45
  10. package/app/styles/_content-divider.scss +28 -2
  11. package/app/styles/_drag-drop.scss +3 -0
  12. package/app/styles/_empty-states.scss +21 -13
  13. package/app/styles/_hamburger.scss +142 -144
  14. package/app/styles/_helpers.scss +297 -93
  15. package/app/styles/_icon-font.scss +75 -43
  16. package/app/styles/_icon-labels.scss +11 -1
  17. package/app/styles/_labels.scss +27 -14
  18. package/app/styles/_loaders.scss +2 -1
  19. package/app/styles/_master-desk.scss +67 -31
  20. package/app/styles/_mixins.scss +40 -20
  21. package/app/styles/_modals.scss +112 -56
  22. package/app/styles/_panel-info.scss +38 -34
  23. package/app/styles/_popover.scss +0 -1
  24. package/app/styles/_publisher-styles.scss +132 -122
  25. package/app/styles/_sd-tag-input.scss +104 -24
  26. package/app/styles/_simple-list.scss +89 -66
  27. package/app/styles/_spinner.scss +24 -17
  28. package/app/styles/_table-list.scss +114 -80
  29. package/app/styles/_tables.scss +14 -2
  30. package/app/styles/_tabs-vertical.scss +46 -43
  31. package/app/styles/_tabs.scss +97 -87
  32. package/app/styles/_tag-labels.scss +26 -11
  33. package/app/styles/_thumb-carousel.scss +37 -11
  34. package/app/styles/_toggle-box.scss +27 -7
  35. package/app/styles/_toggle-button.scss +5 -1
  36. package/app/styles/_tooltips.scss +284 -272
  37. package/app/styles/components/_card-item.scss +268 -192
  38. package/app/styles/components/_list-item.scss +261 -175
  39. package/app/styles/components/_sd-circular-progress.scss +109 -79
  40. package/app/styles/components/_sd-collapse-box.scss +45 -33
  41. package/app/styles/components/_sd-comment-box.scss +17 -12
  42. package/app/styles/components/_sd-dropzone.scss +32 -15
  43. package/app/styles/components/_sd-editor-popup.scss +29 -15
  44. package/app/styles/components/_sd-grid-item.scss +349 -237
  45. package/app/styles/components/_sd-loader.scss +1 -2
  46. package/app/styles/components/_sd-media-carousel.scss +119 -78
  47. package/app/styles/components/_sd-notification-panel.scss +2 -1
  48. package/app/styles/components/_sd-pagination.scss +27 -19
  49. package/app/styles/components/_sd-photo-preview.scss +82 -41
  50. package/app/styles/components/_sd-searchbar.scss +79 -51
  51. package/app/styles/components/_sd-toaster.scss +52 -30
  52. package/app/styles/components/_subnav.scss +230 -135
  53. package/app/styles/components/_theme-selector.scss +78 -53
  54. package/app/styles/components/sd-slider.scss +11 -7
  55. package/app/styles/design-tokens/_design-tokens-general.scss +31 -27
  56. package/app/styles/design-tokens/_new-colors.scss +3 -1
  57. package/app/styles/dropdowns/_basic-dropdown.scss +164 -86
  58. package/app/styles/dropdowns/_input-dropdown.scss +5 -2
  59. package/app/styles/dropdowns/_navigation_dropdown.scss +18 -4
  60. package/app/styles/dropdowns/_nested-dropdown.scss +11 -2
  61. package/app/styles/dropdowns/_other_dropdown.scss +9 -3
  62. package/app/styles/editor/_editor-buttons.scss +10 -6
  63. package/app/styles/editor/_editor-themes.scss +401 -350
  64. package/app/styles/form-elements/_autocomplete.scss +7 -1
  65. package/app/styles/form-elements/_checkbox.scss +230 -159
  66. package/app/styles/form-elements/_forms-general.scss +345 -285
  67. package/app/styles/form-elements/_input-preview.scss +15 -9
  68. package/app/styles/form-elements/_input-wrap.scss +77 -71
  69. package/app/styles/form-elements/_inputs.scss +668 -489
  70. package/app/styles/form-elements/_radio.scss +10 -5
  71. package/app/styles/form-elements/_switch.scss +27 -16
  72. package/app/styles/grids/_basic-grid.scss +83 -64
  73. package/app/styles/grids/_grid-layout.scss +301 -165
  74. package/app/styles/grids/_layout-grid.scss +85 -59
  75. package/app/styles/grids/_sd-kanban-list.scss +14 -4
  76. package/app/styles/interface-elements/_side-panel.scss +279 -200
  77. package/app/styles/layout/_basic-layout.scss +36 -34
  78. package/app/styles/layout/_container.scss +38 -31
  79. package/app/styles/layout/_editor.scss +57 -17
  80. package/app/styles/layout/_general.scss +81 -67
  81. package/app/styles/menus/_sd-bottom-tabs.scss +21 -12
  82. package/app/styles/menus/_sd-content-navigation.scss +20 -16
  83. package/app/styles/menus/_sd-left-navigation.scss +62 -49
  84. package/app/styles/menus/_sd-sidebar-menu.scss +365 -323
  85. package/app/styles/menus/_sd-top-menu.scss +16 -7
  86. package/app/styles/primereact/_pr-autocomplete.scss +2 -0
  87. package/app/styles/primereact/_pr-datepicker.scss +13 -2
  88. package/app/styles/primereact/_pr-dialog.scss +55 -47
  89. package/app/styles/primereact/_pr-dropdown.scss +27 -22
  90. package/app/styles/primereact/_pr-general.scss +3 -0
  91. package/app/styles/primereact/_pr-menu.scss +2 -1
  92. package/app/styles/primereact/_pr-skeleton.scss +1 -0
  93. package/app/styles/primereact/_pr-tag-input.scss +1 -0
  94. package/app/styles/variables/_colors.scss +168 -170
  95. package/app/styles/variables/_typography.scss +1 -2
  96. package/app-typescript/components/Form/InputWrapper.tsx +1 -1
  97. package/app-typescript/components/Menu.tsx +1 -1
  98. package/app-typescript/components/{TreeSelect.tsx → TreeSelect/TreeSelect.tsx} +228 -257
  99. package/app-typescript/components/TreeSelect/TreeSelectItem.tsx +84 -0
  100. package/app-typescript/components/TreeSelect/TreeSelectPill.tsx +53 -0
  101. package/app-typescript/index.ts +1 -1
  102. package/dist/examples.bundle.css +18 -16
  103. package/dist/examples.bundle.js +1029 -918
  104. package/dist/react/TreeSelect.tsx +1 -1
  105. package/dist/superdesk-ui.bundle.css +4265 -3552
  106. package/dist/superdesk-ui.bundle.js +776 -665
  107. package/dist/vendor.bundle.js +23 -23
  108. package/examples/pages/react/TreeSelect.tsx +1 -1
  109. package/package.json +2 -2
  110. package/react/components/Form/InputWrapper.d.ts +1 -1
  111. package/react/components/Menu.js +1 -1
  112. package/react/components/{TreeSelect.d.ts → TreeSelect/TreeSelect.d.ts} +2 -2
  113. package/react/components/{TreeSelect.js → TreeSelect/TreeSelect.js} +82 -144
  114. package/react/components/TreeSelect/TreeSelectItem.d.ts +20 -0
  115. package/react/components/TreeSelect/TreeSelectItem.js +90 -0
  116. package/react/components/TreeSelect/TreeSelectPill.d.ts +14 -0
  117. package/react/components/TreeSelect/TreeSelectPill.js +71 -0
  118. package/react/index.d.ts +1 -1
  119. package/react/index.js +1 -1
@@ -1,5 +1,4 @@
1
1
  // Simple lists
2
- // ---------------------------------------------
3
2
 
4
3
  //colors
5
4
  $simple-list-border-color: $neutral-border-color;
@@ -7,40 +6,50 @@ $simple-list-border-color: $neutral-border-color;
7
6
  .simple-list {
8
7
  padding: 0 0 $sd-base-increment * 3;
9
8
  align-self: stretch;
9
+
10
10
  .simple-list__item {
11
11
  padding: 0.5rem 0;
12
12
  display: flex;
13
13
  flex-direction: row;
14
14
  align-items: center;
15
15
  gap: 0.8rem;
16
+
16
17
  [class^="icon-"], [class*=" icon-"] {
17
18
  flex-grow: 0;
18
19
  flex-shrink: 0;
19
20
  }
20
- &--stacked {
21
- display: flex;
22
- flex-direction: column;
23
- align-items: stretch;
24
- .simple-list__item-data {
25
- text-align: start;
26
- }
27
- .simple-list__item-label {
28
- padding: 0 0 0.6rem 0;
29
- }
30
- }
31
- &--justify-flex-start {
32
- justify-content: flex-start;
33
- }
34
- &--justify-flex-end {
35
- justify-content: flex-end;
36
- }
37
- &--justify-center {
38
- justify-content: center;
21
+ }
22
+
23
+ .simple-list__item--stacked {
24
+ display: flex;
25
+ flex-direction: column;
26
+ align-items: stretch;
27
+
28
+ .simple-list__item-data {
29
+ text-align: start;
39
30
  }
40
- &--justify-space-between {
41
- justify-content: space-between;
31
+
32
+ .simple-list__item-label {
33
+ padding: 0 0 0.6rem 0;
42
34
  }
43
35
  }
36
+
37
+ .simple-list__item--justify-flex-start {
38
+ justify-content: flex-start;
39
+ }
40
+
41
+ .simple-list__item--justify-flex-end {
42
+ justify-content: flex-end;
43
+ }
44
+
45
+ .simple-list__item--justify-center {
46
+ justify-content: center;
47
+ }
48
+
49
+ .simple-list__item--justify-space-between {
50
+ justify-content: space-between;
51
+ }
52
+
44
53
  .simple-list__item-label {
45
54
  flex-grow: 0;
46
55
  font-size: 1.1rem;
@@ -52,62 +61,76 @@ $simple-list-border-color: $neutral-border-color;
52
61
  opacity: 0.65;
53
62
  font-weight: 500;
54
63
  }
64
+
55
65
  .simple-list__item-data {
56
66
  flex-grow: 1;
57
67
  text-align: end;
58
68
  }
59
- &--dotted {
60
- .simple-list__item {
61
- padding: 0.8rem 0;
62
- border-bottom: 1px dotted $simple-list-border-color;
63
- &:first-child {
64
- border-top: 1px dotted $simple-list-border-color;
65
- }
66
- }
67
- &.simple-list--no-border-b {
68
- .simple-list__item {
69
- &:last-child {
70
- border-bottom: none;
71
- }
72
- }
73
- }
74
- &.simple-list--no-border-t {
75
- .simple-list__item {
76
- &:first-child {
77
- border-top: none;
78
- }
79
- }
69
+
70
+ [class^="icon-"], [class*=" icon-"] {
71
+ vertical-align: middle;
72
+ }
73
+ }
74
+
75
+ .simple-list--dotted {
76
+ .simple-list__item {
77
+ padding: 0.8rem 0;
78
+ border-bottom: 1px dotted $simple-list-border-color;
79
+
80
+ &:first-child {
81
+ border-top: 1px dotted $simple-list-border-color;
80
82
  }
81
83
  }
82
- &--comfortable {
84
+
85
+ &.simple-list--no-border-b {
83
86
  .simple-list__item {
84
- padding: 1.2rem 0;
87
+ &:last-child {
88
+ border-bottom: none;
89
+ }
85
90
  }
86
91
  }
87
- &--loose {
92
+
93
+ &.simple-list--no-border-t {
88
94
  .simple-list__item {
89
- padding: 2.4rem 0;
95
+ &:first-child {
96
+ border-top: none;
97
+ }
90
98
  }
91
99
  }
92
- [class^="icon-"], [class*=" icon-"] {
93
- vertical-align: middle;
94
- }
95
- &--no-padding {
96
- padding: 0 0 2rem 0;
97
- }
98
- &--no-padding-b {
99
- padding-bottom: 0;
100
- }
101
- &--fixedW-x-small {
102
- width: var(--width__container--x-small);
103
- }
104
- &--fixedW-small {
105
- width: var(--width__container--small);
106
- }
107
- &--fixedW-medium {
108
- width: var(--width__container--medium);
100
+ }
101
+
102
+ .simple-list--comfortable {
103
+ .simple-list__item {
104
+ padding: 1.2rem 0;
109
105
  }
110
- &--fixedW-large {
111
- width: var(--width__container--large);
106
+ }
107
+
108
+ .simple-list--loose {
109
+ .simple-list__item {
110
+ padding: 2.4rem 0;
112
111
  }
113
112
  }
113
+
114
+ .simple-list--no-padding {
115
+ padding: 0 0 2rem 0;
116
+ }
117
+
118
+ .simple-list--no-padding-b {
119
+ padding-bottom: 0;
120
+ }
121
+
122
+ .simple-list--fixedW-x-small {
123
+ width: var(--width__container--x-small);
124
+ }
125
+
126
+ .simple-list--fixedW-small {
127
+ width: var(--width__container--small);
128
+ }
129
+
130
+ .simple-list--fixedW-medium {
131
+ width: var(--width__container--medium);
132
+ }
133
+
134
+ .simple-list--fixedW-large {
135
+ width: var(--width__container--large);
136
+ }
@@ -1,23 +1,28 @@
1
1
  .sd-spinner {
2
2
  animation: rotate 2s linear infinite;
3
3
  z-index: 1;
4
- &--mini {
5
- width: 1.8rem;
6
- height: 1.8rem;
7
- }
8
- &--small {
9
- width: 2.4rem;
10
- height: 2.4rem;
11
- }
12
- &--medium {
13
- width: 3.2rem;
14
- height: 3.2rem;
15
- }
16
- &--large {
17
- width: 4.8rem;
18
- height: 4.8rem;
19
- }
20
4
  }
5
+
6
+ .sd-spinner--mini {
7
+ width: 1.8rem;
8
+ height: 1.8rem;
9
+ }
10
+
11
+ .sd-spinner--small {
12
+ width: 2.4rem;
13
+ height: 2.4rem;
14
+ }
15
+
16
+ .sd-spinner--medium {
17
+ width: 3.2rem;
18
+ height: 3.2rem;
19
+ }
20
+
21
+ .sd-spinner--large {
22
+ width: 4.8rem;
23
+ height: 4.8rem;
24
+ }
25
+
21
26
  .sd-spinner__path {
22
27
  stroke: var(--color-text-light);
23
28
  stroke-linecap: round;
@@ -35,12 +40,14 @@
35
40
  stroke-dasharray: 1, 150;
36
41
  stroke-dashoffset: 0;
37
42
  }
43
+
38
44
  50% {
39
45
  stroke-dasharray: 90, 150;
40
46
  stroke-dashoffset: -32;
41
47
  }
48
+
42
49
  100% {
43
50
  stroke-dasharray: 90, 150;
44
51
  stroke-dashoffset: -124;
45
52
  }
46
- }
53
+ }
@@ -1,6 +1,6 @@
1
1
  // Boxed lists
2
2
  // Simpler version of the list item.
3
- // ---------------------------------------------
3
+
4
4
  .table-list {
5
5
  display: flex;
6
6
  flex-direction: column;
@@ -8,12 +8,14 @@
8
8
  overflow: hidden !important;
9
9
  padding: 1px;
10
10
  //gap: $sd-base-increment * 1.5;
11
- &--comfortable {
12
- gap: $sd-base-increment * 2;
13
- }
14
- &--contained {
15
- gap: 0;
16
- }
11
+ }
12
+
13
+ .table-list--comfortable {
14
+ gap: $sd-base-increment * 2;
15
+ }
16
+
17
+ .table-list--contained {
18
+ gap: 0;
17
19
  }
18
20
 
19
21
  .table-list--read-only {
@@ -37,63 +39,12 @@ $table-list-palette: $sd-basic-palette;
37
39
  transition: all 0.2s ease-in-out;
38
40
  inset-inline-start: 0;
39
41
 
40
- &--margin {
41
- margin-bottom: $sd-base-increment;
42
- }
43
-
44
- &--selected {
45
- box-shadow: var(--sd-shadow__item--selected-thin);
46
- }
47
- &--clickable {
48
- &:hover {
49
- cursor: pointer;
50
- border: 1px solid var(--sd-colour-line--strong);
51
- box-shadow: 0 1px 4px 0 hsla(0, 0%, 0%, 0.1);
52
- }
53
- &:active {
54
- border-color: var(--sd-colour-interactive);
55
- }
56
- }
57
- &--draggable {
58
- &::after {
59
- content: "";
60
- width: 20px;
61
- position: absolute;
62
- inset-block: -1px;
63
- inset-inline-start: 0px;
64
- background-image: url(../img/dots.svg);
65
- background-repeat: no-repeat;
66
- background-position: center center;
67
- z-index: 2;
68
- border-radius: var(--b-radius--small);
69
- opacity: 0;
70
- }
71
- &:hover {
72
- border-left-width: 16px;
73
- &::after {
74
- inset-inline-start: -18px;
75
- opacity: 0.65;
76
- cursor: grab;
77
- }
78
- }
79
- &:active {
80
- border-color: var(--sd-colour-interactive);
81
- cursor: grabbing;
82
- &::after {
83
- opacity: 1 !important;
84
- cursor: grabbing;
85
- }
86
- }
87
- }
88
- &--locked {
89
- border-color: hsla(350, 70%, 60%, 0.75);
90
- border-left-color: hsla(350, 70%, 60%, 0.75) !important;
91
- }
92
42
  &.table-list__item--selected.table-list__item--clickable {
93
43
  &:hover {
94
44
  box-shadow: var(--sd-shadow__item--selected-thin);
95
45
  }
96
46
  }
47
+
97
48
  &:hover {
98
49
  .table-list__slide-in-actions,
99
50
  .table-list__actions--slide-in {
@@ -103,20 +54,84 @@ $table-list-palette: $sd-basic-palette;
103
54
  overflow: visible;
104
55
  opacity: 1;
105
56
  transition: all ease-in 0.1s;
57
+
106
58
  .icn-btn {
107
59
  opacity: 0.4;
60
+
108
61
  &:hover {
109
62
  opacity: 1;
110
63
  }
111
64
  }
112
65
  }
113
66
  }
114
- &--disabled {
115
- pointer-events: none;
116
- opacity: 0.5;
67
+ }
68
+
69
+ .table-list__item--margin {
70
+ margin-bottom: $sd-base-increment;
71
+ }
72
+
73
+ .table-list__item--selected {
74
+ box-shadow: var(--sd-shadow__item--selected-thin);
75
+ }
76
+
77
+ .table-list__item--clickable {
78
+ &:hover {
79
+ cursor: pointer;
80
+ border: 1px solid var(--sd-colour-line--strong);
81
+ box-shadow: 0 1px 4px 0 hsla(0, 0%, 0%, 0.1);
82
+ }
83
+
84
+ &:active {
85
+ border-color: var(--sd-colour-interactive);
117
86
  }
118
87
  }
119
88
 
89
+ .table-list__item--draggable {
90
+ &::after {
91
+ content: "";
92
+ width: 20px;
93
+ position: absolute;
94
+ inset-block: -1px;
95
+ inset-inline-start: 0px;
96
+ background-image: url(../img/dots.svg);
97
+ background-repeat: no-repeat;
98
+ background-position: center center;
99
+ z-index: 2;
100
+ border-radius: var(--b-radius--small);
101
+ opacity: 0;
102
+ }
103
+
104
+ &:hover {
105
+ border-left-width: 16px;
106
+
107
+ &::after {
108
+ inset-inline-start: -18px;
109
+ opacity: 0.65;
110
+ cursor: grab;
111
+ }
112
+ }
113
+
114
+ &:active {
115
+ border-color: var(--sd-colour-interactive);
116
+ cursor: grabbing;
117
+
118
+ &::after {
119
+ opacity: 1 !important;
120
+ cursor: grabbing;
121
+ }
122
+ }
123
+ }
124
+
125
+ .table-list__item--locked {
126
+ border-color: hsla(350, 70%, 60%, 0.75);
127
+ border-left-color: hsla(350, 70%, 60%, 0.75) !important;
128
+ }
129
+
130
+ .table-list__item--disabled {
131
+ pointer-events: none;
132
+ opacity: 0.5;
133
+ }
134
+
120
135
  .table-list__add-item {
121
136
  display: grid;
122
137
  align-items: center;
@@ -130,12 +145,12 @@ $table-list-palette: $sd-basic-palette;
130
145
  border: 1px dashed var(--sd-colour-line--medium);
131
146
  transition: all 0.2s ease-in-out;
132
147
  inset-inline-start: 0;
148
+ }
133
149
 
134
- &--container {
135
- display: flex;
136
- justify-content: center;
137
- align-items: center;
138
- }
150
+ .table-list__add-item--container {
151
+ display: flex;
152
+ justify-content: center;
153
+ align-items: center;
139
154
  }
140
155
 
141
156
  .table-list__item-border {
@@ -148,8 +163,6 @@ $table-list-palette: $sd-basic-palette;
148
163
  border-radius: 2px;
149
164
  }
150
165
 
151
-
152
-
153
166
  .table-list__item-content {
154
167
  grid-column: contentCol;
155
168
  grid-row: mainRow;
@@ -161,6 +174,7 @@ $table-list-palette: $sd-basic-palette;
161
174
  align-items: center;
162
175
  gap:8px;
163
176
  }
177
+
164
178
  .table-list__item-border {
165
179
  width: 6px;
166
180
  background-color: var(--sd-colour-panel-bg--100);
@@ -170,26 +184,28 @@ $table-list-palette: $sd-basic-palette;
170
184
  inset-inline-start: 3px;
171
185
  border-radius: 2px;
172
186
  }
187
+
173
188
  .table-list__item-content-block {
174
189
  display: flex;
175
190
  align-items: center;
176
191
  gap: 8px;
177
- &--center {
192
+ }
193
+
194
+ .table-list__item-content-block--center {
195
+ text-overflow: ellipsis;
196
+ white-space: nowrap;
197
+ overflow: hidden;
198
+ font-size: 14px;
199
+ font-weight: 500;
200
+
201
+ span {
202
+ overflow: hidden;
178
203
  text-overflow: ellipsis;
179
204
  white-space: nowrap;
180
- overflow: hidden;
181
- font-size: 14px;
182
- font-weight: 500;
183
- span {
184
- overflow: hidden;
185
- text-overflow: ellipsis;
186
- white-space: nowrap;
187
- max-width: 100%;
188
- }
205
+ max-width: 100%;
189
206
  }
190
207
  }
191
208
 
192
-
193
209
  .table-list__slide-in-actions,
194
210
  .table-list__static-actions,
195
211
  .table-list__actions--slide-in,
@@ -211,6 +227,7 @@ $table-list-palette: $sd-basic-palette;
211
227
  overflow: hidden;
212
228
  opacity: 0;
213
229
  transition: all ease-in-out 0.2s;
230
+
214
231
  .icn-btn {
215
232
  flex: 0 0 auto;
216
233
  opacity: 0;
@@ -222,13 +239,16 @@ $table-list-palette: $sd-basic-palette;
222
239
  .table-list__actions--static {
223
240
  grid-column: actionsVisible;
224
241
  grid-row: mainRow;
242
+
225
243
  .icn-btn {
226
244
  opacity: 0.4;
245
+
227
246
  &:hover {
228
247
  opacity: 1;
229
248
  }
230
249
  }
231
250
  }
251
+
232
252
  .table-list__item {
233
253
  &.table-list__item--align-center {
234
254
  .table-list__item-content {
@@ -244,16 +264,19 @@ $table-list-palette: $sd-basic-palette;
244
264
  align-items: center;
245
265
  justify-content: center;
246
266
  position: relative;
267
+
247
268
  &:hover {
248
269
  .table-list__add-bar {
249
270
  opacity: 1;
250
271
  height: 32px;
251
272
  transform: scale(1);
252
273
  }
274
+
253
275
  &::after {
254
276
  opacity: 1;
255
277
  }
256
278
  }
279
+
257
280
  &::after {
258
281
  content: '';
259
282
  position: absolute;
@@ -295,6 +318,7 @@ $table-list-palette: $sd-basic-palette;
295
318
  &.table-list__item--drag-handles-always {
296
319
  border-left-width: 16px;
297
320
  border-left-color: var(--sd-colour-line--medium);
321
+
298
322
  &::after {
299
323
  content: "";
300
324
  width: 20px;
@@ -308,37 +332,47 @@ $table-list-palette: $sd-basic-palette;
308
332
  border-radius: var(--b-radius--small);
309
333
  opacity: 0.85;
310
334
  }
335
+
311
336
  &:hover {
312
337
  border-left-color: var(--sd-colour-line--strong);
338
+
313
339
  &::after {
314
340
  cursor: grab;
315
341
  }
316
342
  }
343
+
317
344
  &:active {
318
345
  border-color: var(--sd-colour-interactive);
319
346
  cursor: grabbing;
347
+
320
348
  &::after {
321
349
  opacity: 1 !important;
322
350
  cursor: grabbing;
323
351
  }
324
352
  }
325
353
  }
354
+
326
355
  &.table-list__item--drag-handles-none {
327
356
  border-left-width: 1px;
357
+
328
358
  &::after {
329
359
  content: "";
330
360
  width: 0;
331
361
  opacity: 0;
332
362
  }
363
+
333
364
  &:hover {
334
365
  border-left-color: var(--sd-colour-line--strong);
366
+
335
367
  &::after {
336
368
  cursor: grab;
337
369
  }
338
370
  }
371
+
339
372
  &:active {
340
373
  border-color: var(--sd-colour-interactive);
341
374
  cursor: grabbing;
375
+
342
376
  &::after {
343
377
  opacity: 1 !important;
344
378
  cursor: grabbing;
@@ -1,5 +1,4 @@
1
1
  // TABLES : tables.scss
2
- //
3
2
 
4
3
  $sd-tableBgColor: var(--sd-item__main-Bg);
5
4
  $sd-tableBorderColor: var(--sd-colour-line--medium);
@@ -11,7 +10,6 @@ $sd-tableBorderColor: var(--sd-colour-line--medium);
11
10
  border-top: 1px solid $sd-tableBorderColor;
12
11
  border-bottom: 1px solid $sd-tableBorderColor;
13
12
 
14
-
15
13
  th, td {
16
14
  padding: 1.2rem 0.8rem;
17
15
  text-align: start;
@@ -19,15 +17,18 @@ $sd-tableBorderColor: var(--sd-colour-line--medium);
19
17
  border-bottom: 1px solid $sd-tableBorderColor;
20
18
  font-weight: 500;
21
19
  }
20
+
22
21
  tr:last-child {
23
22
  td {
24
23
  border-bottom: none;
25
24
  }
26
25
  }
26
+
27
27
  th {
28
28
  font-weight: 600;
29
29
  border-bottom: 2px solid $sd-tableBorderColor;
30
30
  }
31
+
31
32
  // Bottom align for column headings
32
33
  thead th {
33
34
  vertical-align: bottom;
@@ -45,14 +46,17 @@ $sd-tableBorderColor: var(--sd-colour-line--medium);
45
46
  box-shadow: 0 1px 4px 0 rgba(0,0,0,.2);
46
47
  border: none;
47
48
  }
49
+
48
50
  .sd-table {
49
51
  td {
50
52
  vertical-align: middle;
51
53
  }
54
+
52
55
  th {
53
56
  vertical-align: top;
54
57
  }
55
58
  }
59
+
56
60
  .sd-table--action-hover {
57
61
  td,
58
62
  .sd-display-table__cell,
@@ -70,6 +74,7 @@ $sd-tableBorderColor: var(--sd-colour-line--medium);
70
74
  }
71
75
  }
72
76
  }
77
+
73
78
  .sd-table-two-rows {
74
79
  padding: 0.8rem;
75
80
  vertical-align: middle;
@@ -86,6 +91,7 @@ $sd-tableBorderColor: var(--sd-colour-line--medium);
86
91
  display: table;
87
92
  width: 100%;
88
93
  }
94
+
89
95
  .sd-display-table__head {
90
96
  display: table-row-group;
91
97
 
@@ -94,12 +100,15 @@ $sd-tableBorderColor: var(--sd-colour-line--medium);
94
100
  border-bottom: 2px solid var(--sd-colour-line--light);
95
101
  }
96
102
  }
103
+
97
104
  .sd-display-table__body {
98
105
  display: table-row-group;
99
106
  }
107
+
100
108
  .sd-display-table__row {
101
109
  display: table-row;
102
110
  }
111
+
103
112
  .sd-display-table__cell {
104
113
  display: table-cell;
105
114
  padding: 1.2rem 0.8rem;
@@ -117,10 +126,12 @@ $sd-tableBorderColor: var(--sd-colour-line--medium);
117
126
  display: flex;
118
127
  flex-direction: column;
119
128
  }
129
+
120
130
  .sd-flex-table__row {
121
131
  display: flex;
122
132
  flex-direction: row;
123
133
  }
134
+
124
135
  .sd-flex-table__cell {
125
136
  display: flex;
126
137
  flex-direction: column;
@@ -132,6 +143,7 @@ $sd-tableBorderColor: var(--sd-colour-line--medium);
132
143
  text-align: start;
133
144
  min-width: 120px;
134
145
  }
146
+
135
147
  .sd-flex-table--head .sd-flex-table__cell {
136
148
  font-weight: 600;
137
149
  border-bottom: 2px solid var(--sd-colour-line--light);