@itwin/itwinui-css 0.59.2 → 1.0.0-dev.0

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 (202) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +1 -4
  3. package/css/alert.css +273 -139
  4. package/css/all.css +4046 -4967
  5. package/css/anchor.css +1 -5
  6. package/css/{user-icon.css → avatar.css} +51 -71
  7. package/css/backdrop.css +24 -0
  8. package/css/badge.css +2 -2
  9. package/css/blockquote.css +1 -4
  10. package/css/breadcrumbs.css +64 -137
  11. package/css/button.css +264 -349
  12. package/css/carousel.css +8 -16
  13. package/css/checkbox.css +149 -0
  14. package/css/code.css +5 -13
  15. package/css/color-picker.css +6 -44
  16. package/css/date-picker.css +6 -65
  17. package/css/dialog.css +63 -101
  18. package/css/expandable-block.css +1 -32
  19. package/css/fieldset.css +2 -7
  20. package/css/file-upload.css +0 -15
  21. package/css/footer.css +1 -9
  22. package/css/global.css +8 -63
  23. package/css/header.css +312 -398
  24. package/css/icon.css +0 -30
  25. package/css/information-panel.css +1 -15
  26. package/css/input.css +162 -0
  27. package/css/keyboard.css +2 -6
  28. package/css/location-marker.css +1 -12
  29. package/css/menu.css +1 -17
  30. package/css/progress-indicator.css +1 -93
  31. package/css/radio-tile.css +38 -65
  32. package/css/radio.css +156 -0
  33. package/css/select.css +230 -0
  34. package/css/side-navigation.css +5 -20
  35. package/css/skip-to-content.css +0 -3
  36. package/css/slider.css +2 -14
  37. package/css/stepper.css +141 -0
  38. package/css/surface.css +0 -1
  39. package/css/table.css +252 -339
  40. package/css/tabs.css +26 -65
  41. package/css/tag.css +7 -32
  42. package/css/text.css +1 -3
  43. package/css/textarea.css +96 -0
  44. package/css/tile.css +169 -155
  45. package/css/time-picker.css +2 -14
  46. package/css/{toast-notification.css → toast.css} +3 -45
  47. package/css/toggle-switch.css +13 -60
  48. package/css/tooltip.css +1 -4
  49. package/css/tree.css +0 -14
  50. package/css/utils.css +609 -0
  51. package/css/workflow-diagram.css +67 -0
  52. package/package.json +11 -7
  53. package/scss/alert/alert.scss +50 -44
  54. package/scss/alert/classes.scss +24 -4
  55. package/scss/anchor/anchor.scss +76 -1
  56. package/scss/{user-icon/sizes.scss → avatar/avatar-sizes.scss} +6 -5
  57. package/scss/{user-icon/user-icon.scss → avatar/avatar.scss} +35 -70
  58. package/scss/avatar/classes.scss +27 -0
  59. package/scss/{user-icon → avatar}/index.scss +1 -2
  60. package/scss/backdrop/backdrop.scss +27 -0
  61. package/scss/backdrop/classes.scss +7 -0
  62. package/scss/backdrop/index.scss +3 -0
  63. package/scss/badge/badge.scss +4 -2
  64. package/scss/blockquote/blockquote.scss +4 -9
  65. package/scss/breadcrumbs/breadcrumbs.scss +13 -18
  66. package/scss/button/borderless.scss +20 -32
  67. package/scss/button/button-group.scss +15 -7
  68. package/scss/button/button.scss +64 -42
  69. package/scss/button/classes.scss +47 -37
  70. package/scss/button/default.scss +33 -41
  71. package/scss/button/idea.scss +4 -2
  72. package/scss/button/index.scss +3 -6
  73. package/scss/button/split-button.scss +45 -0
  74. package/scss/button/variant.scss +44 -0
  75. package/scss/carousel/carousel.scss +12 -23
  76. package/scss/{inputs → checkbox}/checkbox.scss +50 -2
  77. package/scss/checkbox/classes.scss +7 -0
  78. package/scss/checkbox/index.scss +3 -0
  79. package/scss/classes.scss +11 -6
  80. package/scss/code/code.scss +3 -5
  81. package/scss/code/codeblock.scss +7 -21
  82. package/scss/color-picker/color-picker.scss +32 -61
  83. package/scss/date-picker/date-picker.scss +21 -55
  84. package/scss/dialog/classes.scss +7 -6
  85. package/scss/dialog/dialog.scss +95 -130
  86. package/scss/expandable-block/block.scss +22 -50
  87. package/scss/fieldset/fieldset.scss +6 -12
  88. package/scss/file-upload/file-upload.scss +13 -23
  89. package/scss/footer/footer.scss +5 -15
  90. package/scss/header/classes.scss +70 -2
  91. package/scss/header/header-buttons.scss +316 -0
  92. package/scss/header/header.scss +40 -408
  93. package/scss/header/index.scss +1 -0
  94. package/scss/icon/{mixins.scss → icon.scss} +5 -15
  95. package/scss/icon/index.scss +1 -2
  96. package/scss/index.scss +11 -6
  97. package/scss/information-panel/information-panel.scss +8 -26
  98. package/scss/input/classes.scss +15 -0
  99. package/scss/input/index.scss +4 -0
  100. package/scss/{inputs → input}/input-with-icon.scss +1 -0
  101. package/scss/{inputs → input}/input.scss +15 -25
  102. package/scss/keyboard/keyboard.scss +5 -9
  103. package/scss/location-marker/data-rich.scss +5 -14
  104. package/scss/location-marker/default.scss +1 -3
  105. package/scss/location-marker/location-marker.scss +1 -3
  106. package/scss/location-marker/me.scss +7 -14
  107. package/scss/menu/menu.scss +16 -36
  108. package/scss/non-ideal-state/non-ideal-state.scss +2 -1
  109. package/scss/progress-indicator/classes.scss +0 -4
  110. package/scss/progress-indicator/linear.scss +9 -27
  111. package/scss/progress-indicator/overlay.scss +4 -10
  112. package/scss/progress-indicator/radial.scss +10 -98
  113. package/scss/radio/classes.scss +7 -0
  114. package/scss/radio/index.scss +3 -0
  115. package/scss/{inputs → radio}/radio.scss +1 -1
  116. package/scss/radio-tile/radio-tile.scss +41 -83
  117. package/scss/select/classes.scss +27 -0
  118. package/scss/select/index.scss +3 -0
  119. package/scss/select/select.scss +124 -0
  120. package/scss/side-navigation/side-navigation.scss +26 -34
  121. package/scss/skip-to-content/skip-to-content.scss +2 -3
  122. package/scss/slider/slider.scss +12 -23
  123. package/scss/stepper/classes.scss +32 -0
  124. package/scss/stepper/index.scss +3 -0
  125. package/scss/stepper/stepper.scss +151 -0
  126. package/scss/style/{variables.scss → global-variables.scss} +4 -2
  127. package/scss/style/global.scss +9 -10
  128. package/scss/{icon/variables.scss → style/icon-sizes.scss} +1 -1
  129. package/scss/style/index.scss +6 -6
  130. package/scss/style/theme.scss +0 -39
  131. package/scss/style/typography.scss +5 -4
  132. package/scss/surface/surface.scss +0 -1
  133. package/scss/table/classes.scss +24 -23
  134. package/scss/table/column-filter.scss +2 -5
  135. package/scss/table/index.scss +1 -2
  136. package/scss/table/paginator.scss +22 -30
  137. package/scss/table/sizes.scss +31 -0
  138. package/scss/table/{variables.scss → table-densities.scss} +2 -1
  139. package/scss/table/table.scss +156 -228
  140. package/scss/tabs/borderless.scss +9 -22
  141. package/scss/tabs/classes.scss +4 -0
  142. package/scss/tabs/default.scss +11 -25
  143. package/scss/tabs/pill.scss +5 -15
  144. package/scss/tabs/tabs.scss +30 -57
  145. package/scss/tag/classes.scss +1 -0
  146. package/scss/tag/tag.scss +11 -21
  147. package/scss/text/mixins.scss +1 -0
  148. package/scss/text/muted.scss +2 -4
  149. package/scss/text/skeleton.scss +8 -11
  150. package/scss/textarea/classes.scss +7 -0
  151. package/scss/textarea/index.scss +3 -0
  152. package/scss/{inputs → textarea}/textarea.scss +2 -1
  153. package/scss/tile/classes.scss +14 -2
  154. package/scss/tile/tile.scss +99 -80
  155. package/scss/time-picker/time-picker.scss +8 -17
  156. package/scss/{toast-notification → toast}/categories.scss +3 -7
  157. package/scss/{toast-notification → toast}/classes.scss +0 -0
  158. package/scss/{toast-notification → toast}/index.scss +0 -0
  159. package/scss/{toast-notification → toast}/toast.scss +7 -16
  160. package/scss/toggle-switch/toggle-switch.scss +11 -30
  161. package/scss/tooltip/tooltip.scss +4 -5
  162. package/scss/tree/tree.scss +10 -22
  163. package/scss/utils/classes.scss +6 -0
  164. package/scss/utils/index.scss +6 -0
  165. package/scss/{inputs → utils/input-container}/classes.scss +0 -28
  166. package/scss/utils/input-container/index.scss +3 -0
  167. package/scss/{inputs/labeled-inputs.scss → utils/input-container/input-container.scss} +16 -113
  168. package/scss/{style → utils}/mixins.scss +26 -43
  169. package/scss/{notification-marker → utils/notification-marker}/classes.scss +0 -0
  170. package/scss/{notification-marker → utils/notification-marker}/index.scss +0 -0
  171. package/scss/{notification-marker → utils/notification-marker}/notification-marker.scss +11 -19
  172. package/scss/{popover → utils/popover}/classes.scss +0 -0
  173. package/scss/{popover → utils/popover}/index.scss +0 -0
  174. package/scss/{popover → utils/popover}/popover.scss +0 -1
  175. package/scss/workflow-diagram/classes.scss +15 -0
  176. package/scss/workflow-diagram/index.scss +3 -0
  177. package/scss/workflow-diagram/workflow-diagram.scss +64 -0
  178. package/src/index.scss +11 -6
  179. package/css/inputs.css +0 -1143
  180. package/css/notification-marker.css +0 -293
  181. package/css/popover.css +0 -14
  182. package/css/reset-global-styles.css +0 -50
  183. package/css/wizard.css +0 -190
  184. package/scss/button/button-icon.scss +0 -12
  185. package/scss/button/cta.scss +0 -31
  186. package/scss/button/disabled.scss +0 -13
  187. package/scss/button/high-visibility.scss +0 -31
  188. package/scss/button/split-menu.scss +0 -66
  189. package/scss/inputs/checkbox-radio.scss +0 -73
  190. package/scss/inputs/index.scss +0 -10
  191. package/scss/inputs/select.scss +0 -66
  192. package/scss/reset-global-styles.scss +0 -33
  193. package/scss/style/anchor.scss +0 -82
  194. package/scss/style/ripple.scss +0 -18
  195. package/scss/table/condensed.scss +0 -15
  196. package/scss/table/extra-condensed.scss +0 -19
  197. package/scss/user-icon/classes.scss +0 -27
  198. package/scss/wizard/classes.scss +0 -27
  199. package/scss/wizard/index.scss +0 -5
  200. package/scss/wizard/long.scss +0 -19
  201. package/scss/wizard/wizard.scss +0 -160
  202. package/scss/wizard/workflow.scss +0 -43
@@ -2,8 +2,9 @@
2
2
  // See LICENSE.md in the project root for license terms and full copyright notice.
3
3
  @import '../style/index';
4
4
  @import '../button/index';
5
- @import '../icon/index';
6
5
  @import '../surface/index';
6
+ @import '../utils/index';
7
+ @import '../icon/index';
7
8
 
8
9
  @mixin iui-tile {
9
10
  @include iui-reset;
@@ -34,14 +35,12 @@
34
35
 
35
36
  &.iui-selected {
36
37
  @include iui-focus($offset: 0, $thickness: $iui-xs);
37
- @include themed() {
38
- outline: solid 2px t(iui-color-foreground-primary);
39
- background: linear-gradient(
40
- rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6)),
41
- rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6))
42
- ),
43
- linear-gradient(t(iui-color-background-1), t(iui-color-background-1));
44
- }
38
+ outline: solid 2px var(--iui-color-foreground-primary);
39
+ background: linear-gradient(
40
+ rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-6)),
41
+ rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-6))
42
+ ),
43
+ linear-gradient(var(--iui-color-background-1), var(--iui-color-background-1));
45
44
  }
46
45
 
47
46
  &.iui-actionable {
@@ -71,9 +70,7 @@
71
70
  height: $iui-baseline * 10;
72
71
  flex: 1;
73
72
  border-bottom: none;
74
- @include themed() {
75
- border-right: 1px solid t(iui-color-background-border);
76
- }
73
+ border-right: 1px solid var(--iui-color-background-border);
77
74
  }
78
75
 
79
76
  .iui-tile-content {
@@ -87,6 +84,35 @@
87
84
  -webkit-line-clamp: 2;
88
85
  }
89
86
  }
87
+
88
+ //#region Statuses
89
+ &.iui-progress {
90
+ cursor: progress;
91
+ font-style: italic;
92
+ }
93
+
94
+ &[aria-disabled='true'] {
95
+ cursor: not-allowed;
96
+
97
+ .iui-tile-name-label {
98
+ color: var(--iui-text-color-muted);
99
+ }
100
+
101
+ .iui-thumbnail-icon,
102
+ .iui-tile-thumbnail-picture {
103
+ filter: grayscale(100%);
104
+ }
105
+
106
+ &:hover .iui-tile-thumbnail-picture,
107
+ &:focus-within .iui-tile-thumbnail-picture {
108
+ transform: none;
109
+ }
110
+
111
+ .iui-tile-more-options {
112
+ display: none;
113
+ }
114
+ }
115
+ //#endregion Statuses
90
116
  }
91
117
 
92
118
  @mixin iui-tile-content {
@@ -104,9 +130,7 @@
104
130
  font-size: $iui-font-size-leading;
105
131
  user-select: all;
106
132
  margin-bottom: $iui-baseline * 0.5;
107
- @include themed() {
108
- color: t(iui-text-color);
109
- }
133
+ color: var(--iui-text-color);
110
134
  }
111
135
 
112
136
  .iui-tile-status-icon {
@@ -127,9 +151,7 @@
127
151
  height: 100%;
128
152
  max-height: $iui-baseline * 6;
129
153
  @include iui-line-clamp(3);
130
- @include themed() {
131
- color: t(iui-text-color-muted);
132
- }
154
+ color: var(--iui-text-color-muted);
133
155
  }
134
156
 
135
157
  .iui-tile-metadata {
@@ -142,9 +164,7 @@
142
164
  display: flex;
143
165
  align-items: center;
144
166
  margin-top: auto;
145
- @include themed() {
146
- color: t(iui-text-color-muted);
147
- }
167
+ color: var(--iui-text-color-muted);
148
168
 
149
169
  > svg,
150
170
  .iui-tile-metadata-icon {
@@ -162,6 +182,7 @@
162
182
  }
163
183
 
164
184
  @mixin iui-tile-thumbnail {
185
+ box-sizing: content-box;
165
186
  width: 100%;
166
187
  height: $iui-baseline * 14;
167
188
  flex-shrink: 0;
@@ -170,10 +191,8 @@
170
191
  display: flex;
171
192
  align-items: center;
172
193
  justify-content: center;
173
- @include themed() {
174
- background-color: t(iui-color-background-1-overlay);
175
- border-bottom: 1px solid t(iui-color-background-border);
176
- }
194
+ background-color: var(--iui-color-background-1-overlay);
195
+ border-bottom: 1px solid var(--iui-color-background-border);
177
196
 
178
197
  .iui-thumbnail-icon {
179
198
  @include iui-icons-3xl;
@@ -197,69 +216,56 @@
197
216
  }
198
217
 
199
218
  ~ .iui-thumbnail-icon {
200
- z-index: 1;
201
219
  cursor: pointer;
202
220
  @media (prefers-reduced-motion: no-preference) {
203
221
  transition: fill $iui-speed-fast ease;
204
222
  }
205
- @include themed() {
206
- fill: rgba(t(iui-color-foreground-accessory-rgb), t(iui-opacity-3));
207
- filter: drop-shadow(0 2px 1px rgba(0, 1, 5, t(iui-opacity-5)));
208
- }
223
+ fill: rgba(var(--iui-color-foreground-accessory-rgb), var(--iui-opacity-3));
224
+ filter: drop-shadow(0 2px 1px rgba(0, 1, 5, var(--iui-opacity-5)));
209
225
 
210
226
  &:hover {
211
- @include themed() {
212
- fill: rgba(t(iui-color-foreground-accessory-rgb), t(iui-opacity-2));
213
- }
227
+ fill: rgba(var(--iui-color-foreground-accessory-rgb), var(--iui-opacity-2));
214
228
  }
215
229
  }
230
+ }
231
+
232
+ /// @arg $variant Can be either: type-indicator, quick-action
233
+ @mixin iui-tile-thumbnail-button($variant) {
234
+ @include iui-button-borderless;
235
+ @include iui-button-size(small, borderless);
236
+ position: absolute;
237
+ border-radius: 50%;
238
+ top: round($iui-baseline * 0.5);
239
+
240
+ @if $variant == type-indicator {
241
+ left: $iui-s;
242
+ }
243
+ @if $variant == quick-action {
244
+ right: $iui-s;
245
+ }
246
+
247
+ &[data-iui-active='true'] {
248
+ --_iui-button-text-color: var(--iui-color-foreground-primary);
249
+ --_iui-button-background-color: rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-6));
250
+ }
216
251
 
217
- ~ .iui-tile-thumbnail-type-indicator,
218
- ~ .iui-tile-thumbnail-quick-action {
252
+ @at-root .iui-tile-thumbnail-picture ~ & {
219
253
  @include iui-blur($opacity: 5);
254
+ --_iui-button-text-color: var(--iui-color-foreground-accessory);
220
255
 
221
256
  > .iui-button-icon {
222
- @include themed() {
223
- fill: t(iui-color-foreground-accessory);
224
- filter: drop-shadow(0 2px 1px rgba(0, 0, 0, t(iui-opacity-5)));
225
- }
257
+ filter: drop-shadow(0 2px 1px rgba(0, 0, 0, var(--iui-opacity-5)));
226
258
  }
227
259
 
228
260
  &:hover,
229
- &.iui-active:enabled,
230
- &.iui-active:enabled:hover,
231
- &.iui-active:active {
232
- @include themed() {
233
- background-color: rgba(0, 0, 0, t(iui-opacity-4));
234
- }
235
-
236
- .iui-button-icon {
237
- @include themed() {
238
- fill: t(iui-color-foreground-accessory);
239
- }
240
- }
261
+ &[data-iui-active='true']:enabled,
262
+ &[data-iui-active='true']:enabled:hover,
263
+ &[data-iui-active='true']:active {
264
+ background-color: rgba(0, 0, 0, var(--iui-opacity-4));
241
265
  }
242
266
  }
243
267
  }
244
268
 
245
- @mixin iui-tile-thumbnail-type-indicator {
246
- @include iui-button-borderless;
247
- @include iui-button-size(small, borderless);
248
- position: absolute;
249
- border-radius: 50%;
250
- top: round($iui-baseline * 0.5);
251
- left: $iui-s;
252
- }
253
-
254
- @mixin iui-tile-thumbnail-quick-action {
255
- @include iui-button-borderless;
256
- @include iui-button-size(small, borderless);
257
- position: absolute;
258
- border-radius: 50%;
259
- top: round($iui-baseline * 0.5);
260
- right: $iui-s;
261
- }
262
-
263
269
  @mixin iui-tile-thumbnail-badge {
264
270
  position: absolute;
265
271
  bottom: round($iui-baseline * 0.5);
@@ -269,10 +275,7 @@
269
275
  display: flex;
270
276
  justify-content: flex-end;
271
277
  overflow: hidden;
272
-
273
- > .iui-badge:not(:last-child) {
274
- margin-right: $iui-xs;
275
- }
278
+ gap: $iui-xs;
276
279
  }
277
280
 
278
281
  @mixin iui-tile-buttons {
@@ -296,17 +299,13 @@
296
299
 
297
300
  &,
298
301
  &:hover {
299
- @include themed() {
300
- border-top: 1px solid t(iui-color-background-border);
301
- border-color: t(iui-color-background-border);
302
- }
302
+ border-top: 1px solid var(--iui-color-background-border);
303
+ border-color: var(--iui-color-background-border);
303
304
  }
304
305
  }
305
306
 
306
307
  > button:not(:last-child) {
307
- @include themed() {
308
- border-right: 1px solid t(iui-color-background-border);
309
- }
308
+ border-right: 1px solid var(--iui-color-background-border);
310
309
  }
311
310
  }
312
311
 
@@ -319,3 +318,23 @@
319
318
  @include visually-hidden;
320
319
  }
321
320
  }
321
+
322
+ @mixin iui-tile-status($status) {
323
+ @include iui-text-selection($status);
324
+
325
+ .iui-tile-thumbnail {
326
+ box-shadow: 0 $iui-xs 0 var(--iui-color-foreground-#{$status});
327
+ }
328
+
329
+ @at-root &.iui-folder .iui-tile-thumbnail {
330
+ box-shadow: $iui-xs 0 0 var(--iui-color-foreground-#{$status});
331
+ }
332
+
333
+ .iui-tile-name-label {
334
+ color: var(--iui-color-foreground-#{$status});
335
+ }
336
+
337
+ .iui-tile-status-icon {
338
+ fill: var(--iui-color-foreground-#{$status});
339
+ }
340
+ }
@@ -2,6 +2,7 @@
2
2
  // See LICENSE.md in the project root for license terms and full copyright notice.
3
3
  @import '../style/index';
4
4
  @import '../menu/index';
5
+ @import '../utils/index';
5
6
 
6
7
  @mixin iui-time-picker {
7
8
  @include iui-reset;
@@ -9,14 +10,10 @@
9
10
  text-align: center;
10
11
  height: $iui-baseline * 26;
11
12
  display: inline-flex;
12
- @include themed {
13
- background-color: t(iui-color-background-1);
14
- }
13
+ background-color: var(--iui-color-background-1);
15
14
 
16
15
  &:not(:first-child) {
17
- @include themed {
18
- border-left: 1px solid t(iui-color-background-border);
19
- }
16
+ border-left: 1px solid var(--iui-color-background-border);
20
17
  }
21
18
 
22
19
  &:first-child {
@@ -31,9 +28,7 @@
31
28
  scrollbar-width: none;
32
29
 
33
30
  &:not(:first-child) {
34
- @include themed {
35
- border-left: 1px solid t(iui-color-background-border);
36
- }
31
+ border-left: 1px solid var(--iui-color-background-border);
37
32
  }
38
33
 
39
34
  > ol {
@@ -47,20 +42,16 @@
47
42
 
48
43
  &:hover {
49
44
  cursor: pointer;
50
- @include themed {
51
- color: t(iui-color-foreground-primary);
52
- background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6));
53
- }
45
+ color: var(--iui-color-foreground-primary);
46
+ background-color: rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-6));
54
47
  }
55
48
 
56
49
  &.iui-selected {
57
50
  font-weight: $iui-font-weight-semibold;
58
51
  cursor: default;
59
52
  @include iui-focus($color: var(--iui-color-foreground-accessory), $offset: -3px);
60
- @include themed {
61
- background-color: t(iui-color-background-primary);
62
- color: t(iui-color-foreground-accessory);
63
- }
53
+ background-color: var(--iui-color-background-primary);
54
+ color: var(--iui-color-foreground-accessory);
64
55
  }
65
56
  }
66
57
  }
@@ -1,23 +1,19 @@
1
1
  // Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2
2
  // See LICENSE.md in the project root for license terms and full copyright notice.
3
- @import '../style/index';
3
+ @import '../style/theme';
4
4
  @import '../anchor/index';
5
5
  @import './toast';
6
6
 
7
7
  /// category must be one of: positive, negative, primary (informational), warning
8
8
  @mixin iui-toast-category($category) {
9
- @include themed {
10
- border-color: t(iui-color-foreground-#{$category});
11
- }
9
+ border-color: var(--iui-color-foreground-#{$category});
12
10
 
13
11
  > .iui-message {
14
12
  @include iui-text-selection($category);
15
13
  }
16
14
 
17
15
  > .iui-status-area {
18
- @include themed {
19
- background-color: t(iui-color-background-#{$category});
20
- }
16
+ background-color: var(--iui-color-background-#{$category});
21
17
  }
22
18
 
23
19
  > .iui-toast-anchor {
File without changes
File without changes
@@ -2,22 +2,19 @@
2
2
  // See LICENSE.md in the project root for license terms and full copyright notice.
3
3
  @import '../style/index';
4
4
  @import '../anchor/index';
5
- @import '../icon/index';
5
+ @import '../utils/index';
6
6
 
7
7
  @mixin iui-toast {
8
8
  @include iui-reset;
9
9
  display: inline-flex;
10
10
  align-items: center;
11
- box-sizing: border-box;
12
11
  pointer-events: all;
13
12
  margin: 0 $iui-m $iui-baseline $iui-m;
14
13
  min-height: $iui-baseline * 4;
15
14
  border-radius: $iui-border-radius;
16
- @include themed {
17
- background-color: t(iui-color-background-1);
18
- border: 1px solid t(iui-color-foreground-body);
19
- box-shadow: 0 0 0 1px rgba(t(iui-color-foreground-accessory-rgb), t(iui-opacity-4)), $iui-elevation-24;
20
- }
15
+ background-color: var(--iui-color-background-1);
16
+ border: 1px solid var(--iui-color-foreground-body);
17
+ box-shadow: 0 0 0 1px rgba(var(--iui-color-foreground-accessory-rgb), var(--iui-opacity-4)), $iui-elevation-24;
21
18
 
22
19
  > .iui-status-area {
23
20
  display: flex;
@@ -26,16 +23,12 @@
26
23
  align-items: center;
27
24
  width: $iui-l * 2;
28
25
  flex-shrink: 0;
29
- @include themed {
30
- background-color: t(iui-color-background-5);
31
- }
26
+ background-color: var(--iui-color-background-5);
32
27
 
33
28
  > .iui-icon {
34
29
  height: $iui-icons-default;
35
30
  width: $iui-icons-default;
36
- @include themed {
37
- fill: t(iui-color-foreground-accessory);
38
- }
31
+ fill: var(--iui-color-foreground-accessory);
39
32
  }
40
33
  }
41
34
 
@@ -49,9 +42,7 @@
49
42
  line-height: $iui-line-height;
50
43
  font-weight: $iui-font-weight-normal;
51
44
  font-style: normal;
52
- @include themed {
53
- color: t(iui-text-color);
54
- }
45
+ color: var(--iui-text-color);
55
46
  }
56
47
 
57
48
  &-anchor {
@@ -1,6 +1,7 @@
1
1
  // Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2
2
  // See LICENSE.md in the project root for license terms and full copyright notice.
3
3
  @import '../style/index';
4
+ @import '../utils/index';
4
5
 
5
6
  @mixin iui-toggle-switch-wrapper {
6
7
  @include iui-reset;
@@ -13,23 +14,12 @@
13
14
  user-select: none;
14
15
  cursor: pointer;
15
16
  isolation: isolate;
16
- @include themed {
17
- color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-2));
18
- }
19
-
20
- > * + * {
21
- margin-left: $iui-s;
22
- @supports (gap: $iui-s) {
23
- margin-left: 0;
24
- }
25
- }
17
+ color: rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-2));
26
18
 
27
19
  // Disabled
28
20
  &.iui-disabled {
29
21
  cursor: not-allowed;
30
- @include themed {
31
- color: t(iui-text-color-muted);
32
- }
22
+ color: var(--iui-text-color-muted);
33
23
  @media (forced-colors: active) {
34
24
  color: GrayText;
35
25
  }
@@ -57,21 +47,12 @@
57
47
  display: flex;
58
48
  position: relative;
59
49
  cursor: pointer;
60
-
61
- // #region IE solution
62
- width: $iui-toggle-switch-handle-size;
63
- height: $iui-toggle-switch-handle-size;
64
- @supports (appearance: none) {
65
- appearance: none;
66
- width: ($iui-toggle-switch-handle-size + ($iui-toggle-switch-handle-offset * 2)) * 2;
67
- height: auto;
68
- border-radius: $iui-border-radius-round;
69
- box-sizing: border-box;
70
- transition: background-color $iui-speed-fast ease-out, border-color $iui-speed-fast ease-out;
71
- background-color: var(--iui-color-background-1);
72
- border: $iui-toggle-switch-border-thickness solid rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-4));
73
- }
74
- // #endregion IE solution
50
+ appearance: none;
51
+ width: ($iui-toggle-switch-handle-size + ($iui-toggle-switch-handle-offset * 2)) * 2;
52
+ border-radius: $iui-border-radius-round;
53
+ transition: background-color $iui-speed-fast ease-out, border-color $iui-speed-fast ease-out;
54
+ background-color: var(--iui-color-background-1);
55
+ border: $iui-toggle-switch-border-thickness solid rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-4));
75
56
 
76
57
  &-label {
77
58
  grid-area: label;
@@ -206,8 +187,8 @@
206
187
  &-icon {
207
188
  opacity: 0;
208
189
  grid-area: toggle;
209
- width: $iui-toggle-switch-handle-size * 0.75;
210
- height: $iui-toggle-switch-handle-size * 0.75;
190
+ width: $iui-toggle-switch-handle-size;
191
+ height: $iui-toggle-switch-handle-size;
211
192
  padding: $iui-toggle-switch-handle-size * 0.125;
212
193
  margin: $iui-toggle-switch-handle-offset + $iui-toggle-switch-border-thickness;
213
194
  display: flex;
@@ -1,6 +1,7 @@
1
1
  // Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2
2
  // See LICENSE.md in the project root for license terms and full copyright notice.
3
3
  @import '../style/index';
4
+ @import '../utils/index';
4
5
 
5
6
  @mixin iui-tooltip {
6
7
  @include iui-reset;
@@ -17,11 +18,9 @@
17
18
  z-index: 999;
18
19
  box-shadow: $iui-elevation-8;
19
20
  pointer-events: none;
20
- @include themed {
21
- background-color: rgba(0, 0, 0, t(iui-opacity-3));
22
- color: t(iui-color-foreground-accessory);
23
- border: 1px solid rgba(t(iui-color-foreground-accessory-rgb), t(iui-opacity-4));
24
- }
21
+ background-color: rgba(0, 0, 0, var(--iui-opacity-3));
22
+ color: var(--iui-color-foreground-accessory);
23
+ border: 1px solid rgba(var(--iui-color-foreground-accessory-rgb), var(--iui-opacity-4));
25
24
  }
26
25
 
27
26
  @mixin iui-tooltip-hidden {
@@ -2,8 +2,9 @@
2
2
  // See LICENSE.md in the project root for license terms and full copyright notice.
3
3
  @import '../style/index';
4
4
  @import '../icon/index';
5
+ @import '../utils/index';
5
6
 
6
- $iui-active-outline: thin solid t(iui-color-foreground-primary);
7
+ $iui-active-outline: thin solid var(--iui-color-foreground-primary);
7
8
  $iui-expander-inline-padding: $iui-component-offset + $iui-xxs + 1px; // margin + padding + border
8
9
  $iui-expander-button-width: ($iui-icons-default) + ($iui-expander-inline-padding * 2); // icon width + inline padding on both sides
9
10
 
@@ -46,7 +47,6 @@ $iui-expander-button-width: ($iui-icons-default) + ($iui-expander-inline-padding
46
47
  &-content {
47
48
  display: flex;
48
49
  align-items: center;
49
- box-sizing: border-box;
50
50
  min-height: $iui-baseline * 3;
51
51
  margin-left: calc(#{$iui-expander-button-width} * (var(--level, 0)));
52
52
  overflow: hidden;
@@ -94,45 +94,33 @@ $iui-expander-button-width: ($iui-icons-default) + ($iui-expander-inline-padding
94
94
 
95
95
  &-caption {
96
96
  font-size: $iui-font-size-small;
97
- @include themed {
98
- color: t(iui-text-color-muted);
99
- }
97
+ color: var(--iui-text-color-muted);
100
98
  }
101
99
  }
102
100
 
103
101
  &:hover {
104
- @include themed {
105
- background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6));
106
- }
102
+ background-color: rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-6));
107
103
 
108
104
  .iui-tree-node-content-caption {
109
- @include themed {
110
- color: t(iui-color-foreground-body);
111
- }
105
+ color: var(--iui-color-foreground-body);
112
106
  transition: color $iui-speed-fast ease;
113
107
  }
114
108
  }
115
109
 
116
110
  &.iui-active {
117
- @include themed {
118
- background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-5));
119
- outline: $iui-active-outline;
120
- outline-offset: -1px;
121
- }
111
+ background-color: rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-5));
112
+ outline: $iui-active-outline;
113
+ outline-offset: -1px;
122
114
  }
123
115
 
124
116
  &.iui-disabled {
125
117
  cursor: not-allowed;
126
118
  outline: none;
127
119
  background-color: transparent;
128
- @include themed {
129
- color: t(iui-text-color-placeholder);
130
- }
120
+ color: var(--iui-text-color-placeholder);
131
121
 
132
122
  .iui-tree-node-content-caption {
133
- @include themed {
134
- color: t(iui-text-color-placeholder);
135
- }
123
+ color: var(--iui-text-color-placeholder);
136
124
  }
137
125
  }
138
126
  }
@@ -0,0 +1,6 @@
1
+ // Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2
+ // See LICENSE.md in the project root for license terms and full copyright notice.
3
+ @import './index';
4
+ @import './input-container/classes';
5
+ @import './notification-marker/classes';
6
+ @import './popover/classes';
@@ -0,0 +1,6 @@
1
+ // Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2
+ // See LICENSE.md in the project root for license terms and full copyright notice.
3
+ @import './input-container/index';
4
+ @import './mixins';
5
+ @import './notification-marker/index';
6
+ @import './popover/index';
@@ -37,31 +37,3 @@
37
37
  .iui-input-label {
38
38
  @include iui-input-label;
39
39
  }
40
-
41
- .iui-input {
42
- @include iui-input;
43
- }
44
-
45
- .iui-select-button {
46
- @include iui-select-button;
47
- }
48
-
49
- .iui-textarea {
50
- @include iui-textarea;
51
- }
52
-
53
- .iui-input-with-icon {
54
- @include iui-input-with-icon;
55
- }
56
-
57
- .iui-end-icon {
58
- @include iui-end-icon;
59
- }
60
-
61
- .iui-checkbox {
62
- @include iui-checkbox;
63
- }
64
-
65
- .iui-radio {
66
- @include iui-radio;
67
- }
@@ -0,0 +1,3 @@
1
+ // Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2
+ // See LICENSE.md in the project root for license terms and full copyright notice.
3
+ @import './input-container';