@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
@@ -1,443 +1,75 @@
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 '../user-icon/index';
5
- @import '../icon/index';
6
- @import '../button/index';
4
+ @import '../breadcrumbs/index';
7
5
 
8
6
  @mixin iui-page-header {
9
- @include iui-reset;
7
+ --_iui-header-brand-label-font-size: #{$iui-font-size-leading};
8
+ --_iui-header-height: #{$iui-baseline * 5};
9
+ --_iui-header-icon-scale: none;
10
10
 
11
+ @include iui-reset;
11
12
  display: flex;
12
13
  justify-content: space-between;
13
14
  width: 100%;
14
- height: $iui-baseline * 5 + $iui-xxs; // Remove `+ $iui-xxs` when box-sizing: border-box is applied to all elements.
15
+ height: var(--_iui-header-height);
15
16
  user-select: none;
16
- box-sizing: border-box;
17
- // iPhone notch support
18
- padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
17
+ background-color: var(--iui-color-background-1);
18
+ border-bottom: $iui-xxs solid var(--iui-color-background-border);
19
+ color: var(--iui-text-color);
20
+ padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left); // iPhone notch support
19
21
  @media (prefers-reduced-motion: no-preference) {
20
22
  transition: height $iui-speed-fast ease-out;
21
23
  }
22
- @include themed {
23
- background-color: t(iui-color-background-1);
24
- border-bottom: $iui-xxs solid t(iui-color-background-border);
25
- color: t(iui-text-color);
26
- }
27
-
28
- > .iui-left,
29
- > .iui-center,
30
- > .iui-right {
31
- display: flex;
32
- align-items: center;
33
- height: 100%;
34
- }
35
-
36
- @include iui-header-buttons;
37
-
38
- > .iui-left {
39
- > nav {
40
- display: flex;
41
- align-items: center;
42
- height: 100%;
43
- }
44
-
45
- &,
46
- > nav {
47
- overflow: hidden;
48
- box-sizing: content-box;
49
- margin-bottom: -$iui-xs;
50
- padding-bottom: $iui-xs;
51
- }
52
-
53
- .iui-chevron {
54
- @include iui-icons-small;
55
- flex-shrink: 0;
56
- margin: 0 $iui-xs;
57
- }
58
- }
59
-
60
- > .iui-center {
61
- justify-content: center;
62
- }
63
-
64
- > .iui-right {
65
- justify-content: flex-end;
66
-
67
- @media (prefers-reduced-motion: no-preference) {
68
- .iui-user-icon {
69
- &,
70
- * {
71
- transition: all $iui-speed-fast ease-out;
72
- }
73
- }
74
- }
75
- }
76
-
77
- .iui-button {
78
- height: 100%;
79
- border-radius: 0;
80
- }
81
-
82
- .iui-divider {
83
- width: 1px;
84
- height: $iui-baseline * 2;
85
- @include themed {
86
- background-color: t(iui-color-background-border);
87
- }
88
- }
89
-
90
- &.iui-slim {
91
- height: round($iui-baseline * 2.5) + $iui-xxs; // Remove `+ $iui-xxs` when box-sizing: border-box is applied to all elements.
92
-
93
- > .iui-left {
94
- .iui-header-logo {
95
- > .iui-label {
96
- font-size: $iui-font-size;
97
- }
98
-
99
- .iui-header-button-icon {
100
- margin: 0 $iui-l + $iui-xs;
101
- }
102
- }
103
-
104
- .iui-header-button-icon {
105
- width: $iui-icons-default;
106
- height: $iui-icons-default;
107
- margin: 0 $iui-xs;
108
- display: inline-flex;
109
- }
110
- }
111
-
112
- > .iui-right {
113
- .iui-user-icon {
114
- @include iui-user-icon-size($size: $iui-icons-large, $font-size: $iui-font-size-small);
115
- }
116
- }
117
- }
118
-
119
- @media (max-width: 768px) {
120
- &,
121
- &.iui-slim {
122
- .iui-left {
123
- .iui-button {
124
- .iui-header-button-icon.iui-header-button-icon {
125
- @include iui-display-none;
126
- }
127
-
128
- .iui-header-button-icon + .iui-button-label {
129
- margin-left: 0;
130
- }
131
- }
132
- }
133
- }
134
- }
135
-
136
- @media (max-width: 1024px) {
137
- .iui-left {
138
- .iui-header-logo > .iui-label {
139
- display: none;
140
- }
141
- }
142
- }
143
24
  }
144
25
 
145
- @mixin iui-header-button-icon($size: $iui-icons-large, $border-radius: $iui-border-radius) {
146
- width: $size;
147
- height: $size;
148
- border-radius: $border-radius;
149
- @media (prefers-reduced-motion: no-preference) {
150
- transition: width $iui-speed-fast ease-out, height $iui-speed-fast ease-out, margin $iui-speed-fast ease-out;
151
- }
152
- }
153
-
154
- @mixin iui-header-buttons {
155
- .iui-header-button-icon {
156
- @include iui-header-button-icon;
157
- }
158
-
159
- // boost specificity
160
- .iui-header-button.iui-header-button {
161
- @include iui-header-button;
162
- }
163
-
164
- .iui-header-dropdown-button.iui-header-dropdown-button {
165
- @include iui-header-dropdown-button;
166
- }
167
-
168
- .iui-header-split-button {
169
- @include iui-header-split-button;
170
- }
26
+ @mixin iui-page-header-slim {
27
+ --_iui-header-brand-label-font-size: #{$iui-font-size};
28
+ --_iui-header-height: #{$iui-baseline * 3};
29
+ --_iui-header-icon-scale: scale(0.66666);
171
30
  }
172
31
 
173
- @mixin iui-header-logo {
174
- display: inline-flex;
32
+ @mixin iui-page-header-zone {
33
+ display: flex;
175
34
  align-items: center;
176
- white-space: nowrap;
177
- height: 100%;
178
-
179
- @at-root {
180
- a#{&}, // rendered as anchor element
181
- button#{&}, // rendered as button element
182
- &[role='button'] {
183
- @include iui-header-button-focus;
184
- cursor: pointer;
185
-
186
- // #region resets for button
187
- @include iui-reset;
188
- font-family: inherit;
189
- background-color: unset;
190
- color: unset;
191
- // #endregion
192
-
193
- &:hover {
194
- @include themed {
195
- background-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-6));
196
- }
197
-
198
- &:not(:focus-visible):not(:hover) {
199
- @include themed {
200
- background-color: t(iui-color-background-1);
201
- }
202
- }
203
- }
204
- }
205
- }
206
-
207
- .iui-header-button-icon {
208
- margin: 0 $iui-l;
209
- @include themed {
210
- fill: t(iui-icons-color-actionable);
211
- }
212
- }
213
-
214
- > .iui-label {
215
- margin-right: $iui-sm;
216
- font-size: $iui-font-size-leading;
217
- @media (prefers-reduced-motion: no-preference) {
218
- transition: font-size $iui-speed-fast ease-out;
219
- }
220
- }
221
35
  }
222
36
 
223
- @mixin iui-header-button-focus {
224
- &:focus {
225
- box-shadow: none;
226
- outline-offset: -1px;
227
-
228
- @include themed {
229
- outline: 1px solid t(iui-color-foreground-primary);
230
- }
231
- }
232
-
233
- &:focus:not(:focus-visible) {
234
- outline: 0;
235
- }
236
- }
237
-
238
- @mixin iui-header-button {
239
- @include iui-button-size(large, borderless);
240
-
241
- gap: 0;
242
- max-width: 25vw;
243
- height: 100%;
244
- border-radius: 0;
37
+ @mixin iui-page-header-left {
245
38
  overflow: hidden;
246
-
247
- @include iui-header-button-focus;
248
-
249
- > .iui-button-label {
250
- text-align: left;
251
- font-size: $iui-font-size;
252
- overflow: hidden;
253
-
254
- > div {
255
- overflow: hidden;
256
- text-overflow: ellipsis;
257
- }
258
- }
259
-
260
- .iui-description {
261
- height: $iui-baseline * 2;
262
- font-size: $iui-font-size-small;
263
- @media (prefers-reduced-motion: no-preference) {
264
- transition: all $iui-speed-fast ease;
265
- }
266
- @include themed {
267
- opacity: t(iui-opacity-3);
268
- }
269
- }
270
-
271
- > .iui-button-icon {
272
- flex-shrink: 0;
273
- }
274
-
275
- > * + * {
276
- margin-left: $iui-sm;
277
- }
278
-
279
- .iui-header-button-icon {
280
- padding: $iui-xs;
281
- @include iui-header-button-icon($iui-icons-default, $iui-border-radius);
282
- @include themed {
283
- background-color: t(iui-color-background-3);
284
- fill: t(iui-icons-color);
285
- }
286
- }
287
-
288
- &.iui-active {
289
- @include iui-header-button-active;
290
- }
291
-
292
- &:disabled {
293
- .iui-header-button-icon {
294
- filter: grayscale(1) opacity(0.7);
295
- }
296
- }
297
-
298
- @at-root {
299
- .iui-page-header.iui-slim {
300
- > .iui-left {
301
- .iui-button {
302
- .iui-header-button-icon.iui-header-button-icon {
303
- width: $iui-icons-small;
304
- height: $iui-icons-small;
305
- padding: $iui-xxs;
306
- }
307
- }
308
-
309
- .iui-button-label {
310
- .iui-description {
311
- @include iui-display-none;
312
- }
313
- }
314
- }
315
- }
316
- }
317
- }
318
-
319
- @mixin iui-header-dropdown-button {
320
- padding-right: $iui-s;
39
+ box-sizing: content-box;
40
+ margin-bottom: -$iui-xs;
41
+ padding-bottom: $iui-xs;
321
42
  }
322
43
 
323
- @mixin iui-header-split-button {
324
- &,
325
- > * {
326
- height: 100%;
327
- display: flex;
328
- overflow: hidden;
329
- }
330
-
331
- max-width: 25vw;
332
-
44
+ @mixin iui-page-header-right {
333
45
  .iui-button {
334
- @include iui-header-button;
335
- padding: 0 $iui-xs;
336
- }
337
-
338
- > *:first-child {
339
- .iui-button {
340
- padding-left: $iui-sm;
46
+ height: 100%;
47
+ border-radius: 0;
48
+ flex-shrink: 0;
49
+ @media (forced-colors: active) {
50
+ border-top-width: 0;
51
+ border-bottom-width: 0;
341
52
  }
342
53
  }
343
54
 
344
- &.iui-active {
345
- @include iui-header-button-active;
346
-
347
- // Removing button hovers and backgrounds and adding last child hover
348
- .iui-button {
349
- &.iui-borderless {
350
- &,
351
- &:hover {
352
- background-color: transparent;
353
- }
354
-
355
- &::after {
356
- display: none;
357
- }
358
- }
359
- }
360
-
361
- > *:last-child {
362
- > .iui-button:hover {
363
- @include themed {
364
- background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6));
365
- }
366
- }
367
- }
368
-
369
- &.iui-disabled {
370
- .iui-button {
371
- &:last-child:hover {
372
- @include themed {
373
- background-color: transparent;
374
- }
375
- }
55
+ @media (prefers-reduced-motion: no-preference) {
56
+ .iui-avatar {
57
+ &,
58
+ * {
59
+ transition: width $iui-speed-fast ease-out, height $iui-speed-fast ease-out, font-size $iui-speed-fast ease-out;
376
60
  }
377
61
  }
378
62
  }
379
63
  }
380
64
 
381
- @mixin iui-header-button-active {
382
- // Blue icons
383
- svg {
384
- @include themed {
385
- fill: t(iui-icons-color-primary);
386
- }
387
- }
388
-
389
- .iui-description {
390
- opacity: 1;
391
- }
392
-
393
- &,
394
- &:hover {
395
- // Blue background and darker blue bottom line
396
- @include themed {
397
- box-shadow: 0 $iui-xxs 0 0 t(iui-color-foreground-primary);
398
- background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6));
399
- }
400
-
401
- .iui-header-button-icon {
402
- @include themed {
403
- fill: t(iui-icons-color-primary);
404
- background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6));
405
- }
406
- }
407
- }
408
-
409
- // Blue text
410
- .iui-button-label {
411
- @include themed {
412
- color: t(iui-color-foreground-primary);
413
- }
65
+ @mixin iui-page-header-divider {
66
+ height: $iui-baseline * 2;
67
+ border-left: 1px solid var(--iui-color-background-border);
68
+ @media (forced-colors: active) {
69
+ display: none;
414
70
  }
71
+ }
415
72
 
416
- // Disabled state
417
- &.iui-disabled,
418
- &:disabled {
419
- @include themed {
420
- background-color: rgba(t(iui-color-foreground-body-rgb), 0.05);
421
- box-shadow: 0 $iui-xxs 0 0 rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-4));
422
- }
423
-
424
- .iui-button-label {
425
- @include themed {
426
- color: t(iui-icons-color-actionable-disabled);
427
- }
428
- }
429
-
430
- .iui-button-icon,
431
- svg {
432
- @include themed {
433
- fill: t(iui-icons-color-actionable-disabled);
434
- }
435
- }
436
-
437
- .iui-header-button-icon {
438
- @include themed {
439
- background-color: rgba(t(iui-color-foreground-body-rgb), 0.05);
440
- }
441
- }
442
- }
73
+ @mixin iui-page-header-breadcrumbs {
74
+ @include iui-breadcrumbs($breadcrumbs-height: 100%);
443
75
  }
@@ -1,3 +1,4 @@
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 './header';
4
+ @import './header-buttons';
@@ -45,31 +45,21 @@
45
45
  }
46
46
 
47
47
  @mixin iui-icons-color {
48
- @include themed {
49
- fill: t(iui-icons-color);
50
- }
48
+ fill: var(--iui-icons-color);
51
49
 
52
50
  &.iui-informational {
53
- @include themed {
54
- fill: t(iui-icons-color-primary);
55
- }
51
+ fill: var(--iui-icons-color-primary);
56
52
  }
57
53
 
58
54
  &.iui-positive {
59
- @include themed {
60
- fill: t(iui-icons-color-positive);
61
- }
55
+ fill: var(--iui-icons-color-positive);
62
56
  }
63
57
 
64
58
  &.iui-warning {
65
- @include themed {
66
- fill: t(iui-icons-color-warning);
67
- }
59
+ fill: var(--iui-icons-color-warning);
68
60
  }
69
61
 
70
62
  &.iui-negative {
71
- @include themed {
72
- fill: t(iui-icons-color-negative);
73
- }
63
+ fill: var(--iui-icons-color-negative);
74
64
  }
75
65
  }
@@ -1,4 +1,3 @@
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 './variables';
4
- @import './mixins';
3
+ @import './icon';
package/scss/index.scss CHANGED
@@ -3,11 +3,14 @@
3
3
  @import './style/index';
4
4
  @import './alert/index';
5
5
  @import './anchor/index';
6
+ @import './avatar/index';
6
7
  @import './badge/index';
8
+ @import './backdrop/index';
7
9
  @import './blockquote/index';
8
10
  @import './breadcrumbs/index';
9
11
  @import './button/index';
10
12
  @import './carousel/index';
13
+ @import './checkbox/index';
11
14
  @import './code/index';
12
15
  @import './color-picker/index';
13
16
  @import './date-picker/index';
@@ -18,28 +21,30 @@
18
21
  @import './header/index';
19
22
  @import './icon/index';
20
23
  @import './information-panel/index';
21
- @import './inputs/index';
24
+ @import './input/index';
22
25
  @import './keyboard/index';
23
26
  @import './location-marker/index';
24
27
  @import './menu/index';
25
28
  @import './non-ideal-state/index';
26
- @import './notification-marker/index';
27
- @import './popover/index';
28
29
  @import './progress-indicator/index';
30
+ @import './radio/index';
29
31
  @import './radio-tile/index';
32
+ @import './select/index';
30
33
  @import './side-navigation/index';
31
34
  @import './skip-to-content/index';
32
35
  @import './slider/index';
36
+ @import './stepper/index';
33
37
  @import './surface/index';
34
38
  @import './table/index';
35
39
  @import './tabs/index';
36
40
  @import './tag/index';
37
41
  @import './text/index';
42
+ @import './textarea/index';
38
43
  @import './tile/index';
39
44
  @import './time-picker/index';
40
- @import './toast-notification/index';
45
+ @import './toast/index';
41
46
  @import './toggle-switch/index';
42
47
  @import './tooltip/index';
43
48
  @import './tree/index';
44
- @import './user-icon/index';
45
- @import './wizard/index';
49
+ @import './utils/index';
50
+ @import './workflow-diagram/index';
@@ -1,7 +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 '../inputs/labeled-inputs';
4
+ @import '../utils/index';
5
5
 
6
6
  @mixin iui-information-panel-wrapper {
7
7
  position: relative;
@@ -14,34 +14,25 @@
14
14
  visibility: hidden;
15
15
  display: flex;
16
16
  flex-direction: column;
17
- box-sizing: border-box;
18
17
  max-width: 100%;
19
18
  max-height: 100%;
20
- z-index: 2; // Needs to be higher than table's column resizers.
19
+ background-color: var(--iui-color-background-1);
21
20
  @media (prefers-reduced-motion: no-preference) {
22
21
  transition: visibility $iui-speed-instant $iui-speed-fast ease-in, transform $iui-speed-fast ease-out,
23
22
  opacity $iui-speed-fast ease;
24
23
  }
25
24
 
26
- @include themed {
27
- background-color: t(iui-color-background-1);
28
- }
29
-
30
25
  > .iui-resizer {
31
26
  display: none;
32
27
  position: absolute;
33
28
  touch-action: none;
34
29
 
35
30
  > .iui-resizer-bar {
36
- @include themed {
37
- background-color: t(iui-color-background-border);
38
- }
31
+ background-color: var(--iui-color-background-border);
39
32
  }
40
33
 
41
34
  &:hover > .iui-resizer-bar {
42
- @include themed {
43
- background-color: t(iui-color-foreground-primary);
44
- }
35
+ background-color: var(--iui-color-foreground-primary);
45
36
  }
46
37
  }
47
38
 
@@ -49,7 +40,6 @@
49
40
  .iui-information-body {
50
41
  padding-left: $iui-sm;
51
42
  padding-right: $iui-sm;
52
- box-sizing: border-box;
53
43
  }
54
44
 
55
45
  .iui-information-header {
@@ -58,9 +48,7 @@
58
48
  display: flex;
59
49
  align-items: center;
60
50
  justify-content: space-between;
61
- @include themed {
62
- background-color: t(iui-color-background-3);
63
- }
51
+ background-color: var(--iui-color-background-3);
64
52
 
65
53
  .iui-information-header-label {
66
54
  display: flex;
@@ -80,9 +68,7 @@
80
68
  height: $iui-icons-large;
81
69
  margin-right: $iui-s;
82
70
  flex-shrink: 0;
83
- @include themed {
84
- fill: t(iui-icons-color);
85
- }
71
+ fill: var(--iui-icons-color);
86
72
  }
87
73
  }
88
74
 
@@ -101,9 +87,7 @@
101
87
  overflow-y: overlay;
102
88
 
103
89
  > hr {
104
- @include themed {
105
- border-color: t(iui-color-background-border);
106
- }
90
+ border-color: var(--iui-color-background-border);
107
91
  }
108
92
  }
109
93
  }
@@ -206,9 +190,7 @@
206
190
 
207
191
  .iui-input-label {
208
192
  font-weight: $iui-font-weight-normal;
209
- @include themed {
210
- color: t(iui-text-color-muted);
211
- }
193
+ color: var(--iui-text-color-muted);
212
194
  }
213
195
 
214
196
  &:not(.iui-inline) {
@@ -0,0 +1,15 @@
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
+
5
+ .iui-input {
6
+ @include iui-input;
7
+ }
8
+
9
+ .iui-input-with-icon.iui-input-with-icon {
10
+ @include iui-input-with-icon;
11
+ }
12
+
13
+ .iui-end-icon {
14
+ @include iui-end-icon;
15
+ }
@@ -0,0 +1,4 @@
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';
4
+ @import './input-with-icon';