@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,8 +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
- @import '../style/index';
4
- @import '../icon/index';
5
- @import '../style/ripple';
3
+ @import '../../style/index';
4
+ @import '../mixins';
6
5
 
7
6
  /// Container for grouping inputs with a label, an icon and a status message.
8
7
  /// Supported modifiers: .iui-inline-label, .iui-inline-icon and .iui-with-message
@@ -13,13 +12,6 @@
13
12
  'label label'
14
13
  'inputs inputs' / auto 1fr;
15
14
 
16
- &.iui-inline-icon:not(.iui-inline-label) > .iui-input-icon {
17
- // stylelint-disable -- fix position in IE
18
- -ms-grid-row: 2;
19
- -ms-grid-column: 2;
20
- // stylelint-enable
21
- }
22
-
23
15
  &.iui-inline-icon {
24
16
  > .iui-input,
25
17
  > .iui-textarea {
@@ -48,11 +40,6 @@
48
40
  .iui-textarea,
49
41
  .iui-input-group {
50
42
  grid-area: inputs;
51
- // stylelint-disable -- fix position in IE
52
- -ms-grid-row: 2;
53
- -ms-grid-column: 1;
54
- -ms-grid-column-span: 2;
55
- // stylelint-enable
56
43
  }
57
44
 
58
45
  .iui-input-group .iui-toggle-switch-wrapper {
@@ -78,66 +65,16 @@
78
65
  &.iui-inline-label {
79
66
  grid-template: 'label inputs icon' / auto 1fr auto;
80
67
 
81
- // IE fix icon position for inline checkboxes/radios group
82
- @at-root {
83
- div#{&} {
84
- // stylelint-disable -- fix position in IE
85
- -ms-grid-columns: auto min-content auto;
86
- // stylelint-enable
87
- }
88
- }
89
-
90
- .iui-input,
91
- .iui-input-with-icon,
92
- .iui-textarea,
93
- .iui-input-group {
94
- // stylelint-disable -- fix position in IE
95
- -ms-grid-row: 1;
96
- -ms-grid-column: 2;
97
- // stylelint-enable
98
- }
99
-
100
- .iui-input-icon {
101
- // stylelint-disable -- fix position in IE
102
- -ms-grid-row: 1;
103
- -ms-grid-column: 3;
104
- // stylelint-enable
105
- }
106
-
107
68
  &.iui-with-message {
108
69
  grid-template:
109
70
  'label inputs inputs'
110
71
  '. icon message' / auto auto 1fr;
111
-
112
- &:not(.iui-inline-icon) > .iui-input-icon {
113
- // stylelint-disable -- fix position in IE
114
- -ms-grid-row: 2;
115
- -ms-grid-column: 2;
116
- // stylelint-enable
117
- }
118
-
119
- .iui-message {
120
- // stylelint-disable -- fix position in IE
121
- -ms-grid-row: 2;
122
- -ms-grid-column: 3;
123
- // stylelint-enable
124
- }
125
72
  }
126
73
 
127
74
  > .iui-input-group {
128
75
  display: flex;
129
76
  gap: $iui-m;
130
77
 
131
- > .iui-checkbox-wrapper,
132
- > .iui-radio-wrapper,
133
- > .iui-toggle-switch-wrapper {
134
- margin-right: $iui-m;
135
-
136
- @supports (gap: $iui-m) {
137
- margin-right: 0;
138
- }
139
- }
140
-
141
78
  &:not(:last-child) {
142
79
  margin-right: $iui-m;
143
80
  }
@@ -170,9 +107,7 @@
170
107
  &::after {
171
108
  content: '*';
172
109
  margin-left: $iui-xs;
173
- @include themed {
174
- color: t(iui-color-foreground-negative);
175
- }
110
+ color: var(--iui-color-foreground-negative);
176
111
  }
177
112
  }
178
113
  }
@@ -180,9 +115,6 @@
180
115
  /// Modifier on iui-input-label-styling to place it inline.
181
116
  @mixin iui-input-label-inline {
182
117
  margin: 0 $iui-m 0 0;
183
- // stylelint-disable -- fix position in IE
184
- -ms-grid-column-span: 1;
185
- // stylelint-enable
186
118
 
187
119
  &.iui-required {
188
120
  margin-right: $iui-xs * 1.5;
@@ -215,9 +147,7 @@
215
147
  font-size: $iui-font-size-small;
216
148
  grid-area: message;
217
149
  margin-top: $iui-component-offset;
218
- @include themed {
219
- color: t(iui-text-color-muted);
220
- }
150
+ color: var(--iui-text-color-muted);
221
151
 
222
152
  a {
223
153
  user-select: none;
@@ -231,9 +161,7 @@
231
161
  width: $iui-icons-default;
232
162
  height: $iui-icons-default;
233
163
  align-self: center;
234
- @include themed {
235
- fill: t(iui-icons-color);
236
- }
164
+ fill: var(--iui-icons-color);
237
165
 
238
166
  &:not(:last-child) {
239
167
  margin-right: $iui-xs;
@@ -242,11 +170,6 @@
242
170
 
243
171
  /// Modifier on iui-input-icon to place it at the end of input.
244
172
  @mixin iui-input-icon-inline {
245
- // stylelint-disable -- fix position in IE
246
- -ms-grid-row: 1;
247
- -ms-grid-column: 3;
248
- // stylelint-enable
249
-
250
173
  grid-area: inputs;
251
174
  justify-self: end;
252
175
  margin: 0 ($iui-sm + $iui-xxs) 0 0;
@@ -277,9 +200,7 @@
277
200
  @include iui-ripple(var(--iui-color-background-1), var(--iui-color-background-2));
278
201
 
279
202
  svg {
280
- @include themed {
281
- fill: t(iui-icons-color-actionable);
282
- }
203
+ fill: var(--iui-icons-color-actionable);
283
204
  transition: transform $iui-speed-fast ease-out;
284
205
  }
285
206
 
@@ -292,9 +213,7 @@
292
213
  cursor: not-allowed;
293
214
 
294
215
  svg {
295
- @include themed {
296
- fill: t(iui-icons-color-actionable-disabled);
297
- }
216
+ fill: var(--iui-icons-color-actionable-disabled);
298
217
  }
299
218
  }
300
219
  }
@@ -307,29 +226,19 @@
307
226
  @include iui-text-selection($status);
308
227
 
309
228
  #{$iconSelector} {
310
- @include themed {
311
- fill: t(iui-color-foreground-#{$status});
312
- }
229
+ fill: var(--iui-color-foreground-#{$status});
313
230
  }
314
231
 
315
232
  #{$textSelector} {
316
- @include themed {
317
- color: t(iui-color-foreground-#{$status});
318
- }
233
+ color: var(--iui-color-foreground-#{$status});
319
234
 
320
235
  a {
321
236
  text-decoration: underline;
322
-
323
- @include themed {
324
- color: t(iui-color-foreground-#{$status});
325
- }
237
+ color: var(--iui-color-foreground-#{$status});
326
238
 
327
239
  &:hover {
328
240
  text-decoration: none;
329
-
330
- @include themed {
331
- color: t(iui-color-foreground-#{$status}-overlay);
332
- }
241
+ color: var(--iui-color-foreground-#{$status}-overlay);
333
242
  }
334
243
  }
335
244
  }
@@ -346,16 +255,12 @@
346
255
  padding-bottom: $iui-component-padding-vertical-large - 1px;
347
256
  }
348
257
 
349
- @include themed {
350
- border-bottom: $iui-xxs solid t(iui-color-foreground-#{$status});
351
- }
258
+ border-bottom: $iui-xxs solid var(--iui-color-foreground-#{$status});
352
259
 
353
260
  &:focus {
354
- @include themed {
355
- border-bottom: $iui-xxs solid t(iui-color-foreground-#{$status});
356
- outline: 2px solid t(iui-color-foreground-#{$status});
357
- outline-offset: -2px;
358
- }
261
+ border-bottom: $iui-xxs solid var(--iui-color-foreground-#{$status});
262
+ outline: 2px solid var(--iui-color-foreground-#{$status});
263
+ outline-offset: -2px;
359
264
  }
360
265
  }
361
266
 
@@ -374,9 +279,7 @@
374
279
  bottom: 0;
375
280
  left: 0;
376
281
  height: $iui-xxs;
377
- @include themed {
378
- background-color: t(iui-color-foreground-#{$status});
379
- }
282
+ background-color: var(--iui-color-foreground-#{$status});
380
283
  }
381
284
  }
382
285
  }
@@ -1,24 +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
- @import './color';
4
-
5
- @mixin no-link {
6
- text-decoration: none;
7
-
8
- @include themed {
9
- color: t(iui-text-color);
10
- }
11
-
12
- &:link,
13
- &:visited,
14
- &:hover,
15
- &:active {
16
- @include themed {
17
- color: t(iui-text-color);
18
- }
19
- text-decoration: none;
20
- }
21
- }
3
+ @import '../style/color';
4
+ @import '../style/speed';
22
5
 
23
6
  @mixin focus-visible {
24
7
  &:focus-visible {
@@ -49,17 +32,13 @@
49
32
  @mixin iui-text-selection($status: primary) {
50
33
  &::selection,
51
34
  *::selection {
52
- @include themed {
53
- background-color: rgba(t(iui-color-foreground-#{$status}-rgb), t(iui-opacity-5));
54
- }
35
+ background-color: rgba(var(--iui-color-foreground-#{$status}-rgb), var(--iui-opacity-5));
55
36
  }
56
37
  }
57
38
 
58
39
  @mixin iui-scrollbar {
59
- @include themed {
60
- scrollbar-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-4)) transparent;
61
- scrollbar-width: thin;
62
- }
40
+ scrollbar-color: rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-4)) transparent;
41
+ scrollbar-width: thin;
63
42
 
64
43
  &::-webkit-scrollbar {
65
44
  width: $iui-s;
@@ -67,15 +46,11 @@
67
46
  }
68
47
 
69
48
  &::-webkit-scrollbar-thumb {
70
- @include themed {
71
- background-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-4));
72
- }
49
+ background-color: rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-4));
73
50
  border-radius: $iui-s * 0.5;
74
51
 
75
52
  &:hover {
76
- @include themed {
77
- background-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-3));
78
- }
53
+ background-color: rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-3));
79
54
  }
80
55
  }
81
56
 
@@ -87,22 +62,15 @@
87
62
 
88
63
  @mixin iui-line-clamp($lines: 1) {
89
64
  overflow: hidden;
90
- white-space: nowrap;
91
65
  text-overflow: ellipsis;
92
-
93
- @supports (-webkit-line-clamp: 1) {
94
- white-space: unset;
95
- display: -webkit-box; /* stylelint-disable-line */
96
- -webkit-line-clamp: $lines;
97
- -webkit-box-orient: vertical; /* stylelint-disable-line */
98
- }
66
+ display: -webkit-box; /* stylelint-disable-line */
67
+ -webkit-line-clamp: $lines;
68
+ -webkit-box-orient: vertical; /* stylelint-disable-line */
99
69
  }
100
70
 
101
71
  @mixin iui-blur($opacity: 4) {
102
72
  // Blur fallback
103
- @include themed {
104
- background-color: rgba(0, 0, 0, t(iui-opacity-#{$opacity - 1}));
105
- }
73
+ background-color: rgba(0, 0, 0, var(--iui-opacity-#{$opacity - 1}));
106
74
 
107
75
  // With blur
108
76
  @supports (backdrop-filter: $iui-blur-filter) {
@@ -186,3 +154,18 @@
186
154
  }
187
155
  }
188
156
  }
157
+
158
+ @mixin iui-ripple($hoverColor, $rippleColor) {
159
+ background-position: center;
160
+ transition: background $iui-speed ease-out;
161
+
162
+ &:hover {
163
+ background: $hoverColor radial-gradient(circle, transparent 1%, #{$hoverColor} 1%) center/15000%;
164
+ }
165
+
166
+ &:active {
167
+ background-color: $rippleColor;
168
+ background-size: 100%;
169
+ transition: background $iui-speed-instant;
170
+ }
171
+ }
@@ -1,6 +1,8 @@
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/index';
4
+
5
+ $iui-notification-marker-border-width: $iui-xxs;
4
6
 
5
7
  @mixin iui-notification-marker($status: primary) {
6
8
  position: relative;
@@ -8,15 +10,13 @@
8
10
  &::before {
9
11
  content: '';
10
12
  position: absolute;
11
- width: $iui-s;
12
- height: $iui-s;
13
+ width: $iui-s + $iui-notification-marker-border-width * 2;
14
+ height: $iui-s + $iui-notification-marker-border-width * 2;
13
15
  top: $iui-sm * -0.5;
14
16
  right: $iui-sm * -0.5;
15
17
  border-radius: 100%;
16
- @include themed {
17
- background-color: t(iui-color-foreground-#{$status});
18
- border: 2px solid t(iui-color-background-1);
19
- }
18
+ background-color: var(--iui-color-foreground-#{$status});
19
+ border: $iui-notification-marker-border-width solid var(--iui-color-background-1);
20
20
  @media (prefers-reduced-motion: no-preference) {
21
21
  transition: background-color $iui-speed-fast ease-out, border-color $iui-speed-fast ease-out;
22
22
  }
@@ -31,21 +31,15 @@
31
31
  @media (prefers-reduced-motion: no-preference) {
32
32
  @keyframes pulse-#{$status} {
33
33
  0% {
34
- @include themed {
35
- box-shadow: 0 0 0 0 rgba(t(iui-color-foreground-#{$status}-rgb), t(iui-opacity-1));
36
- }
34
+ box-shadow: 0 0 0 0 rgba(var(--iui-color-foreground-#{$status}-rgb), var(--iui-opacity-1));
37
35
  }
38
36
 
39
37
  70% {
40
- @include themed {
41
- box-shadow: 0 0 0 7px rgba(t(iui-color-foreground-#{$status}-rgb), 0);
42
- }
38
+ box-shadow: 0 0 0 7px rgba(var(--iui-color-foreground-#{$status}-rgb), 0);
43
39
  }
44
40
 
45
41
  100% {
46
- @include themed {
47
- box-shadow: 0 0 0 0 rgba(t(iui-color-foreground-#{$status}-rgb), 0);
48
- }
42
+ box-shadow: 0 0 0 0 rgba(var(--iui-color-foreground-#{$status}-rgb), 0);
49
43
  }
50
44
  }
51
45
  }
@@ -56,8 +50,6 @@
56
50
  .iui-notification-positive::before,
57
51
  .iui-notification-warning::before,
58
52
  .iui-notification-negative::before {
59
- @include themed {
60
- border-color: t(iui-color-background-1-overlay);
61
- }
53
+ border-color: var(--iui-color-background-1-overlay);
62
54
  }
63
55
  }
File without changes
File without changes
@@ -1,7 +1,6 @@
1
1
  /* stylelint-disable selector-class-pattern */
2
2
  // Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
3
  // See LICENSE.md in the project root for license terms and full copyright notice.
4
- @import '../style/index';
5
4
 
6
5
  // tippy.js helper class to hide Popover when it is scrolled out of view
7
6
  @mixin iui-popover {
@@ -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-workflow-diagram {
6
+ @include iui-workflow-diagram;
7
+ }
8
+
9
+ .iui-workflow-diagram-step {
10
+ @include iui-workflow-diagram-step;
11
+ }
12
+
13
+ .iui-workflow-diagram-content {
14
+ @include iui-workflow-diagram-content;
15
+ }
@@ -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 './workflow-diagram';
@@ -0,0 +1,64 @@
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 '../style/index';
4
+ @import '../stepper/index';
5
+
6
+ @mixin iui-workflow-diagram {
7
+ @include iui-stepper-list;
8
+ align-items: center;
9
+ }
10
+
11
+ @mixin iui-workflow-diagram-step {
12
+ --_iui-workflow-diagram-circle-background-color: var(--iui-color-background-positive);
13
+ --_iui-workflow-diagram-circle-border-color: var(--iui-color-background-positive);
14
+ --_iui-workflow-diagram-circle-border-radius: 0;
15
+ --_iui-workflow-diagram-circle-text-color: var(--iui-color-foreground-accessory);
16
+ --_iui-workflow-diagram-track-before-color: var(--iui-color-foreground-positive);
17
+ --_iui-workflow-diagram-track-after-color: var(--iui-color-foreground-positive);
18
+
19
+ flex: 1;
20
+ align-items: center;
21
+ display: flex;
22
+ @include iui-text(small);
23
+ color: var(--_iui-workflow-diagram-circle-text-color);
24
+
25
+ &:first-of-type,
26
+ &:last-of-type {
27
+ --_iui-workflow-diagram-circle-background-color: var(--iui-color-background-1);
28
+ --_iui-workflow-diagram-circle-border-color: var(--iui-color-foreground-positive);
29
+ --_iui-workflow-diagram-circle-border-radius: #{$iui-sm};
30
+ --_iui-workflow-diagram-circle-text-color: var(--iui-color-foreground-positive);
31
+ }
32
+
33
+ &::before,
34
+ &::after {
35
+ content: '';
36
+ height: $iui-xxs;
37
+ flex: 1 2 auto;
38
+ }
39
+
40
+ &::before {
41
+ background-color: var(--_iui-workflow-diagram-track-before-color);
42
+ }
43
+
44
+ &::after {
45
+ background-color: var(--_iui-workflow-diagram-track-after-color);
46
+ }
47
+
48
+ &:first-of-type {
49
+ --_iui-workflow-diagram-track-before-color: transparent;
50
+ }
51
+
52
+ &:last-of-type {
53
+ --_iui-workflow-diagram-track-after-color: transparent;
54
+ }
55
+ }
56
+
57
+ @mixin iui-workflow-diagram-content {
58
+ padding: 0 $iui-m;
59
+ font-weight: $iui-font-weight-normal;
60
+ text-align: center;
61
+ background-color: var(--_iui-workflow-diagram-circle-background-color);
62
+ border: 1px solid var(--_iui-workflow-diagram-circle-border-color);
63
+ border-radius: var(--_iui-workflow-diagram-circle-border-radius);
64
+ }
package/src/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';