@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,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 to have inputs combined with icon (eg. select)
6
7
  @mixin iui-input-with-icon {
@@ -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-input {
6
7
  @include iui-reset;
@@ -12,17 +13,14 @@
12
13
  line-height: $iui-line-height;
13
14
  border-radius: $iui-border-radius;
14
15
  appearance: none;
15
- box-sizing: border-box;
16
16
  padding: $iui-component-padding-vertical $iui-component-padding-horizontal;
17
17
  min-height: $iui-component-height;
18
+ color: var(--iui-text-color);
19
+ background-color: var(--iui-color-background-1);
20
+ border: 1px solid rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-4));
18
21
  @media (prefers-reduced-motion: no-preference) {
19
22
  transition: border-color $iui-speed-fast ease-out;
20
23
  }
21
- @include themed {
22
- color: t(iui-text-color);
23
- background-color: t(iui-color-background-1);
24
- border: 1px solid rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-4));
25
- }
26
24
 
27
25
  &.iui-small {
28
26
  padding-top: $iui-component-padding-vertical-small;
@@ -39,9 +37,7 @@
39
37
 
40
38
  &::placeholder {
41
39
  user-select: none;
42
- @include themed {
43
- color: t(iui-text-color-placeholder);
44
- }
40
+ color: var(--iui-text-color-placeholder);
45
41
  }
46
42
 
47
43
  &:autofill {
@@ -49,32 +45,26 @@
49
45
  }
50
46
 
51
47
  &:hover {
52
- @include themed {
53
- border-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-2));
54
- }
48
+ border-color: rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-2));
55
49
  @media (prefers-reduced-motion: no-preference) {
56
50
  transition: border-color $iui-speed-fast ease-out;
57
51
  }
58
52
  }
59
53
 
60
54
  &[disabled] {
61
- @include themed {
62
- background-color: t(iui-color-background-disabled);
63
- border-color: t(iui-color-background-disabled);
64
- }
55
+ background-color: var(--iui-color-background-disabled);
56
+ border-color: var(--iui-color-background-disabled);
65
57
  cursor: not-allowed;
66
58
  --_hover-color: var(--iui-color-background-disabled);
67
59
  }
68
60
  }
69
61
 
70
62
  @mixin iui-input-autofill {
71
- @include themed {
72
- border-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-1));
73
- color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-1));
74
- background: linear-gradient(
75
- rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6)),
76
- rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6))
77
- ),
78
- linear-gradient(t(iui-color-background-1), t(iui-color-background-1));
79
- }
63
+ border-color: rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-1));
64
+ color: rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-1));
65
+ background: linear-gradient(
66
+ rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-6)),
67
+ rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-6))
68
+ ),
69
+ linear-gradient(var(--iui-color-background-1), var(--iui-color-background-1));
80
70
  }
@@ -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-keyboard {
6
7
  @include iui-reset;
@@ -15,19 +16,14 @@
15
16
  text-transform: uppercase;
16
17
  user-select: none;
17
18
  cursor: default;
19
+ background-color: var(--iui-color-background-1);
20
+ border: 1px solid var(--iui-color-background-5);
21
+ box-shadow: 0 1px 1px var(--iui-color-background-5), 0 1px 0 0 rgba(255, 255, 255, var(--iui-opacity-5)) inset;
18
22
  @media (prefers-reduced-motion: no-preference) {
19
23
  transition: box-shadow $iui-speed-fast ease-out;
20
24
  }
21
25
 
22
- @include themed {
23
- background-color: t(iui-color-background-1);
24
- border: 1px solid t(iui-color-background-5);
25
- box-shadow: 0 1px 1px t(iui-color-background-5), 0 1px 0 0 rgba(255, 255, 255, t(iui-opacity-5)) inset;
26
- }
27
-
28
26
  &:hover {
29
- @include themed {
30
- box-shadow: 0 0 0 t(iui-color-background-5), 0 0 0 0 rgba(255, 255, 255, t(iui-opacity-5)) inset;
31
- }
27
+ box-shadow: 0 0 0 var(--iui-color-background-5), 0 0 0 0 rgba(255, 255, 255, var(--iui-opacity-5)) inset;
32
28
  }
33
29
  }
@@ -14,14 +14,10 @@
14
14
  font-size: $iui-font-size-leading;
15
15
  padding: round($iui-baseline * 0.25) $iui-s;
16
16
  filter: drop-shadow($iui-elevation-2);
17
- box-sizing: border-box;
18
17
  position: relative;
19
-
20
- @include themed {
21
- border: solid 1px t(iui-color-foreground-accessory);
22
- background-color: t(iui-color-foreground-accessory);
23
- color: t(iui-color-foreground-accessory);
24
- }
18
+ border: solid 1px var(--iui-color-foreground-accessory);
19
+ background-color: var(--iui-color-foreground-accessory);
20
+ color: var(--iui-color-foreground-accessory);
25
21
 
26
22
  &::before {
27
23
  content: '';
@@ -35,10 +31,7 @@
35
31
  margin: auto;
36
32
  border-width: $iui-xs;
37
33
  border-style: solid;
38
-
39
- @include themed {
40
- border-color: t(iui-color-foreground-accessory) transparent transparent transparent;
41
- }
34
+ border-color: var(--iui-color-foreground-accessory) transparent transparent transparent;
42
35
  }
43
36
 
44
37
  > .iui-location-marker-data-rich-icon {
@@ -49,9 +42,7 @@
49
42
  vertical-align: -2px;
50
43
 
51
44
  &.iui-location-marker-data-rich-icon-monochrome {
52
- @include themed {
53
- fill: t(iui-color-foreground-accessory);
54
- }
45
+ fill: var(--iui-color-foreground-accessory);
55
46
  }
56
47
  }
57
48
  }
@@ -13,9 +13,7 @@
13
13
  filter: drop-shadow($iui-elevation-2);
14
14
 
15
15
  > .iui-location-marker-default-pin-dot {
16
- @include themed {
17
- fill: t(iui-color-foreground-accessory);
18
- }
16
+ fill: var(--iui-color-foreground-accessory);
19
17
  }
20
18
  }
21
19
  }
@@ -1,8 +1,6 @@
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 '../text/index';
5
- @import '../icon/index';
3
+ @import '../utils/index';
6
4
 
7
5
  @mixin iui-location-marker {
8
6
  @include iui-reset;
@@ -10,14 +10,11 @@
10
10
  height: $iui-icons-large;
11
11
  border-radius: 50%;
12
12
  cursor: default;
13
-
14
- @include themed {
15
- background: radial-gradient(
16
- circle at center,
17
- rgba(t(iui-color-foreground-primary-rgb), 0),
18
- rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-5))
19
- );
20
- }
13
+ background: radial-gradient(
14
+ circle at center,
15
+ rgba(var(--iui-color-foreground-primary-rgb), 0),
16
+ rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-5))
17
+ );
21
18
 
22
19
  > .iui-location-marker-me-dot {
23
20
  width: $iui-icons-large * 0.5;
@@ -26,11 +23,7 @@
26
23
  top: $iui-icons-large * 0.25;
27
24
  left: $iui-icons-large * 0.25;
28
25
  border-radius: 50%;
29
- box-sizing: border-box;
30
-
31
- @include themed {
32
- border: 1px solid t(iui-color-foreground-accessory);
33
- background-color: t(iui-color-background-primary);
34
- }
26
+ border: 1px solid var(--iui-color-foreground-accessory);
27
+ background-color: var(--iui-color-background-primary);
35
28
  }
36
29
  }
@@ -1,10 +1,9 @@
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 '../icon/index';
5
- @import '../text/index';
4
+ @import '../utils/index';
6
5
 
7
- $iui-active-outline: thin solid t(iui-color-foreground-primary);
6
+ $iui-active-outline: thin solid var(--iui-color-foreground-primary);
8
7
 
9
8
  @mixin iui-list-menu {
10
9
  @include iui-reset;
@@ -38,7 +37,6 @@ $iui-active-outline: thin solid t(iui-color-foreground-primary);
38
37
  padding: 0 ($iui-component-padding-horizontal + 1px);
39
38
  height: $iui-component-height;
40
39
  cursor: pointer;
41
- box-sizing: border-box;
42
40
  line-height: normal;
43
41
 
44
42
  + #{&} {
@@ -65,9 +63,7 @@ $iui-active-outline: thin solid t(iui-color-foreground-primary);
65
63
  .iui-menu-description {
66
64
  display: none;
67
65
  font-size: $iui-font-size-small;
68
- @include themed {
69
- opacity: t(iui-opacity-3);
70
- }
66
+ opacity: var(--iui-opacity-3);
71
67
  }
72
68
 
73
69
  > .iui-icon {
@@ -75,17 +71,13 @@ $iui-active-outline: thin solid t(iui-color-foreground-primary);
75
71
  }
76
72
 
77
73
  &:hover {
78
- @include themed {
79
- background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6));
80
- }
74
+ background-color: rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-6));
81
75
  }
82
76
 
83
77
  &:focus,
84
78
  &.iui-focused {
85
- @include themed {
86
- outline: $iui-active-outline;
87
- outline-offset: -1px;
88
- }
79
+ outline: $iui-active-outline;
80
+ outline-offset: -1px;
89
81
  }
90
82
 
91
83
  &:focus:not(:focus-visible) {
@@ -103,12 +95,10 @@ $iui-active-outline: thin solid t(iui-color-foreground-primary);
103
95
  &.iui-active {
104
96
  &,
105
97
  &:hover {
106
- @include themed {
107
- background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6));
108
- color: t(iui-color-foreground-primary);
109
- outline: $iui-active-outline;
110
- outline-offset: -1px;
111
- }
98
+ background-color: rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-6));
99
+ color: var(--iui-color-foreground-primary);
100
+ outline: $iui-active-outline;
101
+ outline-offset: -1px;
112
102
  }
113
103
 
114
104
  .iui-menu-description {
@@ -116,9 +106,7 @@ $iui-active-outline: thin solid t(iui-color-foreground-primary);
116
106
  }
117
107
 
118
108
  > .iui-icon {
119
- @include themed {
120
- fill: t(iui-icons-color-primary);
121
- }
109
+ fill: var(--iui-icons-color-primary);
122
110
  }
123
111
 
124
112
  &:focus,
@@ -138,15 +126,11 @@ $iui-active-outline: thin solid t(iui-color-foreground-primary);
138
126
  &:hover {
139
127
  cursor: not-allowed;
140
128
  outline: none;
141
- @include themed {
142
- background-color: t(iui-color-background-1);
143
- color: t(iui-text-color-placeholder);
144
- }
129
+ background-color: var(--iui-color-background-1);
130
+ color: var(--iui-text-color-placeholder);
145
131
 
146
132
  > .iui-icon {
147
- @include themed {
148
- fill: t(iui-icons-color-actionable-disabled);
149
- }
133
+ fill: var(--iui-icons-color-actionable-disabled);
150
134
  }
151
135
  }
152
136
  }
@@ -186,18 +170,14 @@ $iui-active-outline: thin solid t(iui-color-foreground-primary);
186
170
  height: 1px;
187
171
  width: calc(100% - #{$iui-l});
188
172
  margin: 1px auto;
189
- @include themed {
190
- background-color: t(iui-color-background-border);
191
- }
173
+ background-color: var(--iui-color-background-border);
192
174
  }
193
175
 
194
176
  @mixin iui-menu-icon {
195
177
  width: $iui-icons-default;
196
178
  height: $iui-icons-default;
197
179
  flex: 0 0 auto;
198
- @include themed {
199
- fill: t(iui-icons-color-actionable);
200
- }
180
+ fill: var(--iui-icons-color-actionable);
201
181
 
202
182
  + .iui-content {
203
183
  margin-left: $iui-s;
@@ -1,7 +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
3
  @import '../style/index';
4
- @import '../text/index';
4
+ @import '../utils/index';
5
+ @import '../text/mixins';
5
6
 
6
7
  @mixin iui-non-ideal-state {
7
8
  @include iui-reset;
@@ -14,10 +14,6 @@
14
14
  }
15
15
  }
16
16
 
17
- .iui-progress-indicator-radial-ie {
18
- @include iui-progress-indicator-radial-ie;
19
- }
20
-
21
17
  .iui-progress-indicator-radial {
22
18
  @include iui-progress-indicator-radial;
23
19
 
@@ -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-progress-indicator-linear($height: 4px) {
6
7
  @include iui-reset;
@@ -11,19 +12,13 @@
11
12
  width: 100%;
12
13
  height: $height;
13
14
  overflow: hidden;
14
-
15
- @include themed {
16
- background-color: t(iui-color-background-border);
17
- }
15
+ background-color: var(--iui-color-background-border);
18
16
 
19
17
  > .iui-fill {
20
18
  display: inline-block;
21
19
  height: 100%;
22
20
  vertical-align: top;
23
-
24
- @include themed {
25
- background-color: t(iui-color-foreground-primary);
26
- }
21
+ background-color: var(--iui-color-foreground-primary);
27
22
  }
28
23
  }
29
24
 
@@ -54,20 +49,14 @@
54
49
  &.iui-positive {
55
50
  > .iui-track,
56
51
  > .iui-track > * {
57
- @include themed {
58
- background-color: t(iui-color-foreground-positive);
59
- }
52
+ background-color: var(--iui-color-foreground-positive);
60
53
  }
61
54
 
62
55
  > .iui-label {
63
- @include themed {
64
- color: t(iui-color-foreground-positive);
65
- }
56
+ color: var(--iui-color-foreground-positive);
66
57
 
67
58
  svg {
68
- @include themed {
69
- fill: t(iui-icons-color-positive);
70
- }
59
+ fill: var(--iui-icons-color-positive);
71
60
  }
72
61
 
73
62
  > span {
@@ -79,21 +68,14 @@
79
68
  &.iui-negative {
80
69
  > .iui-track > * {
81
70
  width: 100%;
82
-
83
- @include themed {
84
- background-color: t(iui-color-foreground-negative);
85
- }
71
+ background-color: var(--iui-color-foreground-negative);
86
72
  }
87
73
 
88
74
  > .iui-label {
89
- @include themed {
90
- color: t(iui-color-foreground-negative);
91
- }
75
+ color: var(--iui-color-foreground-negative);
92
76
 
93
77
  svg {
94
- @include themed {
95
- fill: t(iui-icons-color-negative);
96
- }
78
+ fill: var(--iui-icons-color-negative);
97
79
  }
98
80
 
99
81
  > span {
@@ -15,16 +15,12 @@
15
15
  pointer-events: none;
16
16
 
17
17
  // Blur fallback
18
- @include themed {
19
- background-color: rgba(t(iui-color-background-1-rgb), t(iui-opacity-2));
20
- }
18
+ background-color: rgba(var(--iui-color-background-1-rgb), var(--iui-opacity-2));
21
19
 
22
20
  // With blur
23
21
  @supports (backdrop-filter: $iui-blur-filter) {
24
- @include themed {
25
- background-color: rgba(t(iui-color-background-1-rgb), t(iui-opacity-3));
26
- backdrop-filter: $iui-blur-filter;
27
- }
22
+ background-color: rgba(var(--iui-color-background-1-rgb), var(--iui-opacity-3));
23
+ backdrop-filter: $iui-blur-filter;
28
24
  }
29
25
 
30
26
  // Focus trap
@@ -41,9 +37,7 @@
41
37
  // Fade out on completion
42
38
  @keyframes closeAnimation {
43
39
  from {
44
- @include themed {
45
- opacity: t(iui-opacity-1);
46
- }
40
+ opacity: var(--iui-opacity-1);
47
41
  }
48
42
 
49
43
  to {
@@ -2,46 +2,6 @@
2
2
  // See LICENSE.md in the project root for license terms and full copyright notice.
3
3
  @import '../style/index';
4
4
 
5
- @mixin iui-progress-indicator-radial-ie {
6
- @include iui-reset;
7
- display: inline-block;
8
- position: relative;
9
- box-sizing: border-box;
10
- height: 100%;
11
- width: 100%;
12
-
13
- @include themed {
14
- color: t(iui-color-foreground-primary);
15
- }
16
-
17
- &::after {
18
- position: relative;
19
- box-sizing: border-box;
20
- content: '';
21
- width: 100%;
22
- height: 100%;
23
- display: inline-block;
24
- border: 3px solid currentColor;
25
- border-radius: 100%;
26
- background-color: transparent;
27
- animation: dash $iui-speed-slow linear infinite;
28
-
29
- @include themed {
30
- border-bottom-color: t(iui-color-background-border);
31
- }
32
- }
33
-
34
- @keyframes dash {
35
- 0% {
36
- transform: rotate(0deg);
37
- }
38
-
39
- 100% {
40
- transform: rotate(360deg);
41
- }
42
- }
43
- }
44
-
45
5
  @mixin iui-progress-indicator-radial {
46
6
  position: relative;
47
7
  display: inline-block;
@@ -52,17 +12,13 @@
52
12
  width: 100%;
53
13
 
54
14
  > circle.iui-fill {
55
- @include themed {
56
- stroke: t(iui-color-foreground-primary);
57
- }
15
+ stroke: var(--iui-color-foreground-primary);
58
16
  fill: none;
59
17
  stroke-width: 3.2;
60
18
  }
61
19
 
62
20
  > circle.iui-track {
63
- @include themed {
64
- stroke: t(iui-color-background-5);
65
- }
21
+ stroke: var(--iui-color-background-5);
66
22
  fill: none;
67
23
  stroke-width: 3.2;
68
24
  }
@@ -87,82 +43,38 @@
87
43
  display: flex;
88
44
  width: $iui-icons-default;
89
45
  height: $iui-icons-default;
90
- @include themed {
91
- fill: t(iui-icons-color-actionable);
92
- }
46
+ fill: var(--iui-icons-color-actionable);
93
47
 
94
48
  &:hover {
95
- @include themed {
96
- fill: t(iui-icons-color-actionable-hover);
97
- }
49
+ fill: var(--iui-icons-color-actionable-hover);
98
50
  }
99
51
  }
100
52
  }
101
53
 
102
54
  &.iui-positive {
103
- @include themed {
104
- color: t(iui-color-foreground-positive);
105
- }
55
+ color: var(--iui-color-foreground-positive);
106
56
 
107
57
  svg.iui-radial {
108
58
  circle.iui-fill,
109
59
  circle.iui-track {
110
- @include themed {
111
- stroke: t(iui-color-foreground-positive);
112
- }
60
+ stroke: var(--iui-color-foreground-positive);
113
61
  }
114
62
  }
115
63
 
116
64
  .iui-inner-content svg {
117
- @include themed {
118
- fill: t(iui-icons-color-positive);
119
- }
120
- }
121
-
122
- .iui-progress-indicator-radial-ie {
123
- @include themed {
124
- color: t(iui-color-foreground-positive);
125
- }
126
-
127
- &::after {
128
- animation: none;
129
-
130
- @include themed {
131
- border-bottom-color: t(iui-color-foreground-positive);
132
- }
133
- }
65
+ fill: var(--iui-icons-color-positive);
134
66
  }
135
67
  }
136
68
 
137
69
  &.iui-negative {
138
- @include themed {
139
- color: t(iui-color-foreground-negative);
140
- }
70
+ color: var(--iui-color-foreground-negative);
141
71
 
142
72
  svg.iui-radial circle.iui-fill {
143
- @include themed {
144
- stroke: t(iui-color-foreground-negative);
145
- }
73
+ stroke: var(--iui-color-foreground-negative);
146
74
  }
147
75
 
148
76
  .iui-inner-content svg {
149
- @include themed {
150
- fill: t(iui-icons-color-negative);
151
- }
152
- }
153
-
154
- .iui-progress-indicator-radial-ie {
155
- @include themed {
156
- color: t(iui-color-foreground-negative);
157
- }
158
-
159
- &::after {
160
- animation: none;
161
-
162
- @include themed {
163
- border-bottom-color: t(iui-color-foreground-negative);
164
- }
165
- }
77
+ fill: var(--iui-icons-color-negative);
166
78
  }
167
79
  }
168
80
 
@@ -0,0 +1,7 @@
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-radio {
6
+ @include iui-radio;
7
+ }
@@ -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 './radio';
@@ -1,6 +1,6 @@
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 '../checkbox/index';
4
4
 
5
5
  @mixin iui-radio {
6
6
  @include iui-checkbox;