@itwin/itwinui-css 0.61.0 → 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 (194) hide show
  1. package/README.md +1 -4
  2. package/css/alert.css +272 -138
  3. package/css/all.css +4070 -5172
  4. package/css/anchor.css +0 -4
  5. package/css/{user-icon.css → avatar.css} +51 -71
  6. package/css/badge.css +1 -1
  7. package/css/blockquote.css +0 -3
  8. package/css/breadcrumbs.css +59 -132
  9. package/css/button.css +255 -340
  10. package/css/carousel.css +6 -14
  11. package/css/checkbox.css +149 -0
  12. package/css/code.css +2 -10
  13. package/css/color-picker.css +5 -43
  14. package/css/date-picker.css +0 -59
  15. package/css/dialog.css +0 -5
  16. package/css/expandable-block.css +0 -31
  17. package/css/fieldset.css +0 -5
  18. package/css/file-upload.css +0 -15
  19. package/css/footer.css +0 -8
  20. package/css/global.css +8 -63
  21. package/css/header.css +312 -398
  22. package/css/icon.css +0 -30
  23. package/css/information-panel.css +1 -15
  24. package/css/input.css +162 -0
  25. package/css/keyboard.css +1 -5
  26. package/css/location-marker.css +0 -11
  27. package/css/menu.css +0 -16
  28. package/css/progress-indicator.css +1 -93
  29. package/css/radio-tile.css +38 -65
  30. package/css/radio.css +156 -0
  31. package/css/select.css +230 -0
  32. package/css/side-navigation.css +5 -20
  33. package/css/skip-to-content.css +0 -3
  34. package/css/slider.css +2 -14
  35. package/css/stepper.css +141 -0
  36. package/css/surface.css +0 -1
  37. package/css/table.css +251 -338
  38. package/css/tabs.css +6 -49
  39. package/css/tag.css +3 -21
  40. package/css/text.css +0 -2
  41. package/css/textarea.css +96 -0
  42. package/css/tile.css +169 -155
  43. package/css/time-picker.css +0 -12
  44. package/css/{toast-notification.css → toast.css} +1 -43
  45. package/css/toggle-switch.css +13 -60
  46. package/css/tooltip.css +0 -3
  47. package/css/tree.css +0 -14
  48. package/css/utils.css +609 -0
  49. package/css/workflow-diagram.css +67 -0
  50. package/package.json +11 -7
  51. package/scss/alert/alert.scss +50 -44
  52. package/scss/alert/classes.scss +24 -4
  53. package/scss/anchor/anchor.scss +76 -1
  54. package/scss/{user-icon/sizes.scss → avatar/avatar-sizes.scss} +6 -5
  55. package/scss/{user-icon/user-icon.scss → avatar/avatar.scss} +35 -70
  56. package/scss/avatar/classes.scss +27 -0
  57. package/scss/{user-icon → avatar}/index.scss +1 -2
  58. package/scss/badge/badge.scss +4 -2
  59. package/scss/blockquote/blockquote.scss +4 -9
  60. package/scss/breadcrumbs/breadcrumbs.scss +13 -18
  61. package/scss/button/borderless.scss +20 -32
  62. package/scss/button/button-group.scss +15 -7
  63. package/scss/button/button.scss +64 -42
  64. package/scss/button/classes.scss +47 -37
  65. package/scss/button/default.scss +33 -41
  66. package/scss/button/idea.scss +4 -2
  67. package/scss/button/index.scss +3 -6
  68. package/scss/button/split-button.scss +45 -0
  69. package/scss/button/variant.scss +44 -0
  70. package/scss/carousel/carousel.scss +12 -23
  71. package/scss/{inputs → checkbox}/checkbox.scss +50 -2
  72. package/scss/checkbox/classes.scss +7 -0
  73. package/scss/checkbox/index.scss +3 -0
  74. package/scss/classes.scss +10 -6
  75. package/scss/code/code.scss +3 -5
  76. package/scss/code/codeblock.scss +7 -21
  77. package/scss/color-picker/color-picker.scss +32 -61
  78. package/scss/date-picker/date-picker.scss +21 -55
  79. package/scss/dialog/dialog.scss +1 -6
  80. package/scss/expandable-block/block.scss +22 -50
  81. package/scss/fieldset/fieldset.scss +6 -12
  82. package/scss/file-upload/file-upload.scss +13 -23
  83. package/scss/footer/footer.scss +5 -15
  84. package/scss/header/classes.scss +70 -2
  85. package/scss/header/header-buttons.scss +316 -0
  86. package/scss/header/header.scss +40 -408
  87. package/scss/header/index.scss +1 -0
  88. package/scss/icon/{mixins.scss → icon.scss} +5 -15
  89. package/scss/icon/index.scss +1 -2
  90. package/scss/index.scss +10 -6
  91. package/scss/information-panel/information-panel.scss +8 -26
  92. package/scss/input/classes.scss +15 -0
  93. package/scss/input/index.scss +4 -0
  94. package/scss/{inputs → input}/input-with-icon.scss +1 -0
  95. package/scss/{inputs → input}/input.scss +15 -25
  96. package/scss/keyboard/keyboard.scss +5 -9
  97. package/scss/location-marker/data-rich.scss +5 -14
  98. package/scss/location-marker/default.scss +1 -3
  99. package/scss/location-marker/location-marker.scss +1 -3
  100. package/scss/location-marker/me.scss +7 -14
  101. package/scss/menu/menu.scss +16 -36
  102. package/scss/non-ideal-state/non-ideal-state.scss +2 -1
  103. package/scss/progress-indicator/classes.scss +0 -4
  104. package/scss/progress-indicator/linear.scss +9 -27
  105. package/scss/progress-indicator/overlay.scss +4 -10
  106. package/scss/progress-indicator/radial.scss +10 -98
  107. package/scss/radio/classes.scss +7 -0
  108. package/scss/radio/index.scss +3 -0
  109. package/scss/{inputs → radio}/radio.scss +1 -1
  110. package/scss/radio-tile/radio-tile.scss +41 -83
  111. package/scss/select/classes.scss +27 -0
  112. package/scss/select/index.scss +3 -0
  113. package/scss/{inputs → select}/select.scss +7 -15
  114. package/scss/side-navigation/side-navigation.scss +26 -34
  115. package/scss/skip-to-content/skip-to-content.scss +2 -3
  116. package/scss/slider/slider.scss +12 -23
  117. package/scss/stepper/classes.scss +32 -0
  118. package/scss/stepper/index.scss +3 -0
  119. package/scss/stepper/stepper.scss +151 -0
  120. package/scss/style/{variables.scss → global-variables.scss} +3 -1
  121. package/scss/style/global.scss +9 -10
  122. package/scss/{icon/variables.scss → style/icon-sizes.scss} +1 -1
  123. package/scss/style/index.scss +6 -6
  124. package/scss/style/theme.scss +0 -39
  125. package/scss/style/typography.scss +5 -4
  126. package/scss/surface/surface.scss +0 -1
  127. package/scss/table/classes.scss +24 -23
  128. package/scss/table/column-filter.scss +2 -5
  129. package/scss/table/index.scss +1 -2
  130. package/scss/table/paginator.scss +22 -30
  131. package/scss/table/sizes.scss +31 -0
  132. package/scss/table/{variables.scss → table-densities.scss} +2 -1
  133. package/scss/table/table.scss +156 -228
  134. package/scss/tabs/borderless.scss +6 -18
  135. package/scss/tabs/default.scss +8 -21
  136. package/scss/tabs/pill.scss +4 -14
  137. package/scss/tabs/tabs.scss +16 -44
  138. package/scss/tag/classes.scss +1 -0
  139. package/scss/tag/tag.scss +9 -19
  140. package/scss/text/mixins.scss +1 -0
  141. package/scss/text/muted.scss +2 -4
  142. package/scss/text/skeleton.scss +8 -11
  143. package/scss/textarea/classes.scss +7 -0
  144. package/scss/textarea/index.scss +3 -0
  145. package/scss/{inputs → textarea}/textarea.scss +2 -1
  146. package/scss/tile/classes.scss +14 -2
  147. package/scss/tile/tile.scss +99 -80
  148. package/scss/time-picker/time-picker.scss +8 -17
  149. package/scss/{toast-notification → toast}/categories.scss +3 -7
  150. package/scss/{toast-notification → toast}/classes.scss +0 -0
  151. package/scss/{toast-notification → toast}/index.scss +0 -0
  152. package/scss/{toast-notification → toast}/toast.scss +7 -16
  153. package/scss/toggle-switch/toggle-switch.scss +11 -30
  154. package/scss/tooltip/tooltip.scss +4 -5
  155. package/scss/tree/tree.scss +10 -22
  156. package/scss/utils/classes.scss +6 -0
  157. package/scss/utils/index.scss +6 -0
  158. package/scss/{inputs → utils/input-container}/classes.scss +0 -48
  159. package/scss/utils/input-container/index.scss +3 -0
  160. package/scss/{inputs/labeled-inputs.scss → utils/input-container/input-container.scss} +16 -113
  161. package/scss/{style → utils}/mixins.scss +26 -43
  162. package/scss/{notification-marker → utils/notification-marker}/classes.scss +0 -0
  163. package/scss/{notification-marker → utils/notification-marker}/index.scss +0 -0
  164. package/scss/{notification-marker → utils/notification-marker}/notification-marker.scss +11 -19
  165. package/scss/{popover → utils/popover}/classes.scss +0 -0
  166. package/scss/{popover → utils/popover}/index.scss +0 -0
  167. package/scss/{popover → utils/popover}/popover.scss +0 -1
  168. package/scss/workflow-diagram/classes.scss +15 -0
  169. package/scss/workflow-diagram/index.scss +3 -0
  170. package/scss/workflow-diagram/workflow-diagram.scss +64 -0
  171. package/src/index.scss +10 -6
  172. package/css/inputs.css +0 -1339
  173. package/css/notification-marker.css +0 -293
  174. package/css/popover.css +0 -14
  175. package/css/reset-global-styles.css +0 -50
  176. package/css/wizard.css +0 -190
  177. package/scss/button/button-icon.scss +0 -12
  178. package/scss/button/cta.scss +0 -31
  179. package/scss/button/disabled.scss +0 -13
  180. package/scss/button/high-visibility.scss +0 -31
  181. package/scss/button/split-menu.scss +0 -66
  182. package/scss/inputs/checkbox-radio.scss +0 -73
  183. package/scss/inputs/index.scss +0 -10
  184. package/scss/reset-global-styles.scss +0 -33
  185. package/scss/style/anchor.scss +0 -82
  186. package/scss/style/ripple.scss +0 -18
  187. package/scss/table/condensed.scss +0 -15
  188. package/scss/table/extra-condensed.scss +0 -19
  189. package/scss/user-icon/classes.scss +0 -27
  190. package/scss/wizard/classes.scss +0 -27
  191. package/scss/wizard/index.scss +0 -5
  192. package/scss/wizard/long.scss +0 -19
  193. package/scss/wizard/wizard.scss +0 -160
  194. package/scss/wizard/workflow.scss +0 -43
@@ -0,0 +1,44 @@
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
+
5
+ /// @arg $variant Can be one of: cta, high-visibility
6
+ @mixin iui-button-variant($variant) {
7
+ @if $variant == cta {
8
+ --_iui-button-background-color: var(--iui-color-background-positive);
9
+
10
+ &:hover,
11
+ &:active {
12
+ --_iui-button-background-color: var(--iui-color-background-positive-overlay);
13
+ }
14
+ }
15
+
16
+ @if $variant == high-visibility {
17
+ --_iui-button-background-color: var(--iui-color-background-primary);
18
+
19
+ &:hover,
20
+ &:active {
21
+ --_iui-button-background-color: var(--iui-color-background-primary-overlay);
22
+ }
23
+ }
24
+
25
+ --_iui-button-text-color: var(--iui-color-foreground-accessory);
26
+ --_iui-button-border-color: var(--_iui-button-background-color);
27
+
28
+ &:focus {
29
+ outline-color: var(--iui-color-foreground-accessory);
30
+ outline-offset: -3px;
31
+ outline-width: 1px;
32
+ }
33
+
34
+ &[disabled],
35
+ &:disabled,
36
+ &[aria-disabled='true'] {
37
+ --_iui-button-background-color: var(--iui-color-background-disabled);
38
+ --_iui-button-text-color: var(--iui-text-color-placeholder);
39
+
40
+ outline-offset: -1px;
41
+ outline-width: 1px;
42
+ outline-color: var(--iui-color-foreground-primary);
43
+ }
44
+ }
@@ -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 '../text/index';
4
+ @import '../utils/index';
5
5
  @import '../button/button';
6
6
 
7
7
  @mixin iui-carousel {
@@ -22,7 +22,6 @@
22
22
  &-item {
23
23
  width: 100%;
24
24
  flex-shrink: 0;
25
- box-sizing: border-box;
26
25
  scroll-snap-align: center;
27
26
  }
28
27
  }
@@ -31,10 +30,7 @@
31
30
  display: flex;
32
31
  align-items: center;
33
32
  height: $iui-baseline * 3;
34
- box-sizing: border-box;
35
- @include themed {
36
- border-top: $iui-xxs solid t(iui-color-background-4);
37
- }
33
+ border-top: $iui-xxs solid var(--iui-color-background-4);
38
34
 
39
35
  &-left,
40
36
  &-right {
@@ -44,9 +40,7 @@
44
40
 
45
41
  button[data-pressed='true'] {
46
42
  outline-offset: -1px;
47
- @include themed {
48
- outline: 1px solid t(iui-color-foreground-primary);
49
- }
43
+ outline: 1px solid var(--iui-color-foreground-primary);
50
44
  }
51
45
  }
52
46
 
@@ -65,11 +59,12 @@
65
59
  background-color: transparent;
66
60
  border: none;
67
61
  cursor: pointer;
62
+ height: var(--_iui-button-height);
63
+ padding-left: var(--_iui-button-padding-inline);
64
+ padding-right: var(--_iui-button-padding-inline);
68
65
 
69
66
  &:hover::after {
70
- @include themed {
71
- background-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-3));
72
- }
67
+ background-color: rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-3));
73
68
  }
74
69
 
75
70
  &::after {
@@ -78,12 +73,9 @@
78
73
  width: $iui-icons-small;
79
74
  height: $iui-icons-small;
80
75
  border-radius: 50%;
81
- box-sizing: border-box;
82
76
  border: 1px solid transparent;
83
- @include themed {
84
- background-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-4));
85
- box-shadow: inset 0 0 0 0 t(iui-color-background-1);
86
- }
77
+ background-color: rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-4));
78
+ box-shadow: inset 0 0 0 0 var(--iui-color-background-1);
87
79
  }
88
80
 
89
81
  &.iui-first::after {
@@ -95,12 +87,9 @@
95
87
  }
96
88
 
97
89
  &.iui-active::after {
98
- @include themed {
99
- background-color: t(iui-color-foreground-primary);
100
- border-color: t(iui-color-foreground-primary);
101
- box-shadow: inset 0 0 0 1px t(iui-color-background-1);
102
- }
103
-
90
+ background-color: var(--iui-color-foreground-primary);
91
+ border-color: var(--iui-color-foreground-primary);
92
+ box-shadow: inset 0 0 0 1px var(--iui-color-background-1);
104
93
  @media (forced-colors: active) {
105
94
  border-width: $iui-icons-small * 0.5;
106
95
  }
@@ -1,11 +1,59 @@
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';
4
+ @import '../utils/index';
5
5
 
6
6
  @mixin iui-checkbox {
7
7
  &-wrapper {
8
- @include iui-inputs-checkbox-radio;
8
+ @include iui-reset;
9
+ display: flex;
10
+ align-items: center;
11
+ font-size: $iui-font-size;
12
+ width: fit-content;
13
+ user-select: none;
14
+ position: relative;
15
+ cursor: pointer;
16
+ color: rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-2));
17
+ gap: $iui-s;
18
+
19
+ &.iui-loading {
20
+ cursor: wait;
21
+ color: var(--iui-text-color-muted);
22
+ }
23
+
24
+ > .iui-checkbox-label,
25
+ > .iui-radio-label {
26
+ display: flex;
27
+ align-items: center;
28
+
29
+ svg {
30
+ width: $iui-icons-default;
31
+ height: $iui-icons-default;
32
+ vertical-align: middle;
33
+ fill: currentColor;
34
+ }
35
+ }
36
+
37
+ &.iui-disabled {
38
+ cursor: not-allowed;
39
+ color: var(--iui-text-color-muted);
40
+
41
+ svg {
42
+ fill: var(--iui-icons-color-actionable-disabled);
43
+ }
44
+ }
45
+
46
+ &.iui-positive {
47
+ color: var(--iui-color-foreground-positive);
48
+ }
49
+
50
+ &.iui-warning {
51
+ color: var(--iui-color-foreground-warning);
52
+ }
53
+
54
+ &.iui-negative {
55
+ color: var(--iui-color-foreground-negative);
56
+ }
9
57
  }
10
58
 
11
59
  --_iui-checkbox-checkmark-svg: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="m6.5 12.5-4.5-4.5 1.5-1.5 3 3 6-6 1.5 1.5z" /></svg>');
@@ -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-checkbox {
6
+ @include iui-checkbox;
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 './checkbox';
package/scss/classes.scss CHANGED
@@ -4,12 +4,14 @@
4
4
  @import './style/global';
5
5
  @import './alert/classes';
6
6
  @import './anchor/classes';
7
+ @import './avatar/classes';
7
8
  @import './badge/classes';
8
9
  @import './backdrop/classes';
9
10
  @import './blockquote/classes';
10
11
  @import './breadcrumbs/classes';
11
12
  @import './button/classes';
12
13
  @import './carousel/classes';
14
+ @import './checkbox/classes';
13
15
  @import './code/classes';
14
16
  @import './color-picker/classes';
15
17
  @import './date-picker/classes';
@@ -21,28 +23,30 @@
21
23
  @import './header/classes';
22
24
  @import './icon/classes';
23
25
  @import './information-panel/classes';
24
- @import './inputs/classes';
26
+ @import './input/classes';
25
27
  @import './keyboard/classes';
26
28
  @import './location-marker/classes';
27
29
  @import './menu/classes';
28
30
  @import './non-ideal-state/classes';
29
- @import './notification-marker/classes';
30
- @import './popover/classes';
31
31
  @import './progress-indicator/classes';
32
+ @import './radio/classes';
32
33
  @import './radio-tile/classes';
34
+ @import './select/classes';
33
35
  @import './side-navigation/classes';
34
36
  @import './skip-to-content/classes';
35
37
  @import './slider/classes';
38
+ @import './stepper/classes';
36
39
  @import './surface/classes';
37
40
  @import './table/classes';
38
41
  @import './tabs/classes';
39
42
  @import './tag/classes';
40
43
  @import './text/classes';
44
+ @import './textarea/classes';
41
45
  @import './tile/classes';
42
46
  @import './time-picker/classes';
43
- @import './toast-notification/classes';
47
+ @import './toast/classes';
44
48
  @import './toggle-switch/classes';
45
49
  @import './tooltip/classes';
46
50
  @import './tree/classes';
47
- @import './user-icon/classes';
48
- @import './wizard/classes';
51
+ @import './utils/classes';
52
+ @import './workflow-diagram/classes';
@@ -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-code {
6
7
  @include iui-reset;
@@ -10,9 +11,6 @@
10
11
  padding: 0 $iui-xs;
11
12
  border-radius: $iui-border-radius;
12
13
  user-select: all;
13
-
14
- @include themed {
15
- background-color: t(iui-color-background-3);
16
- color: t(iui-text-color);
17
- }
14
+ background-color: var(--iui-color-background-3);
15
+ color: var(--iui-text-color);
18
16
  }
@@ -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 '../icon/index';
4
+ @import '../utils/index';
5
5
 
6
6
  @mixin iui-codeblock {
7
7
  @include iui-reset;
@@ -11,10 +11,7 @@
11
11
  display: flex;
12
12
  align-items: center;
13
13
  border-radius: $iui-border-radius $iui-border-radius 0 0;
14
-
15
- @include themed {
16
- background-color: t(iui-color-background-3);
17
- }
14
+ background-color: var(--iui-color-background-3);
18
15
 
19
16
  > .iui-title {
20
17
  margin-left: $iui-sm;
@@ -32,13 +29,9 @@
32
29
  overflow-y: auto;
33
30
  border-radius: 0 0 $iui-border-radius $iui-border-radius;
34
31
  white-space: normal;
35
-
32
+ border: 1px solid var(--iui-color-background-3);
36
33
  @include iui-focus;
37
34
 
38
- @include themed {
39
- border: 1px solid t(iui-color-background-3);
40
- }
41
-
42
35
  > code {
43
36
  display: block;
44
37
  width: 100%;
@@ -46,14 +39,10 @@
46
39
  hyphens: auto;
47
40
  counter-increment: section;
48
41
  font-family: $iui-monospace;
49
- @include themed {
50
- background-color: t(iui-color-background-1);
51
- }
42
+ background-color: var(--iui-color-background-1);
52
43
 
53
44
  &:nth-child(even) {
54
- @include themed {
55
- background: rgba(t(iui-color-foreground-body-rgb), 0.02);
56
- }
45
+ background: rgba(var(--iui-color-foreground-body-rgb), 0.02);
57
46
  }
58
47
 
59
48
  &::before {
@@ -62,11 +51,8 @@
62
51
  display: inline-block;
63
52
  padding: 0 $iui-s;
64
53
  width: $iui-l;
65
-
66
- @include themed {
67
- background-color: t(iui-color-background-2);
68
- color: t(iui-text-color-muted);
69
- }
54
+ background-color: var(--iui-color-background-2);
55
+ color: var(--iui-text-color-muted);
70
56
  }
71
57
  }
72
58
  }
@@ -3,6 +3,7 @@
3
3
  @import '../style/index';
4
4
  @import '../surface/index';
5
5
  @import '../button/borderless';
6
+ @import '../utils/index';
6
7
 
7
8
  $iui-color-picker-content-width: ($iui-l * 9) + ($iui-s * 8); // (9 swatches per row) + (gaps)
8
9
  $iui-color-picker-max-width: ($iui-l * 10) + ($iui-s * 9); // (10 swatches per row) + (gaps)
@@ -15,7 +16,6 @@ $iui-hover-box-shadow: 0 0 1px $iui-xxs + 1 rgba(var(--iui-color-foreground-body
15
16
  --iui-color-picker-selected-color: initial;
16
17
 
17
18
  @include iui-surface;
18
- box-sizing: border-box;
19
19
  border-radius: $iui-border-radius;
20
20
  display: inline-flex;
21
21
  padding: $iui-baseline $iui-sm;
@@ -26,16 +26,7 @@ $iui-hover-box-shadow: 0 0 1px $iui-xxs + 1 rgba(var(--iui-color-foreground-body
26
26
  @supports (overflow-y: overlay) {
27
27
  overflow-y: overlay;
28
28
  }
29
- @supports (row-gap: $iui-baseline) {
30
- row-gap: $iui-baseline;
31
- }
32
-
33
- > div:not(:last-child) {
34
- margin-bottom: $iui-baseline;
35
- @supports (row-gap: $iui-baseline) {
36
- margin-bottom: 0;
37
- }
38
- }
29
+ row-gap: $iui-baseline;
39
30
  }
40
31
 
41
32
  @mixin iui-color-swatch {
@@ -45,16 +36,10 @@ $iui-hover-box-shadow: 0 0 1px $iui-xxs + 1 rgba(var(--iui-color-foreground-body
45
36
  width: $iui-l;
46
37
  cursor: pointer;
47
38
  border-radius: $iui-color-swatch-border-radius;
48
- margin-bottom: $iui-xs;
49
- margin-right: $iui-xs;
50
39
  position: relative;
51
40
  background-color: var(--iui-color-swatch-background);
52
41
  forced-color-adjust: none;
53
42
  @include iui-transparent-background;
54
- @supports (gap: $iui-s) {
55
- margin-bottom: 0;
56
- margin-right: 0;
57
- }
58
43
 
59
44
  &::after {
60
45
  content: '';
@@ -90,14 +75,11 @@ $iui-hover-box-shadow: 0 0 1px $iui-xxs + 1 rgba(var(--iui-color-foreground-body
90
75
  align-content: flex-start;
91
76
  min-height: $iui-l;
92
77
  min-width: $iui-l;
93
- @supports (gap: $iui-s) {
94
- gap: $iui-s;
95
- }
78
+ gap: $iui-s;
96
79
 
97
- button.iui-button.iui-borderless {
98
- height: $iui-l;
99
- width: $iui-l;
100
- padding: 0;
80
+ button[data-iui-variant='borderless'] {
81
+ --_iui-button-height: #{$iui-l};
82
+ --_iui-button-padding-inline: 0;
101
83
  }
102
84
 
103
85
  &-wrapper {
@@ -130,13 +112,6 @@ $iui-hover-box-shadow: 0 0 1px $iui-xxs + 1 rgba(var(--iui-color-foreground-body
130
112
  flex-grow: 1;
131
113
  }
132
114
 
133
- > *:not(:last-child) {
134
- margin-right: $iui-xxs;
135
- @supports (gap: $iui-xxs) {
136
- margin-right: 0;
137
- }
138
- }
139
-
140
115
  input {
141
116
  text-transform: uppercase;
142
117
  }
@@ -186,18 +161,16 @@ $iui-hover-box-shadow: 0 0 1px $iui-xxs + 1 rgba(var(--iui-color-foreground-body
186
161
  .iui-slider-rail {
187
162
  height: $iui-s;
188
163
  forced-color-adjust: none;
189
- @include themed {
190
- background: linear-gradient(
191
- to right,
192
- $iui-color-system-red 0%,
193
- $iui-color-system-yellow 17%,
194
- rgb(0, 255, 0) 33%,
195
- rgb(0, 255, 255) 50%,
196
- $iui-color-system-blue 67%,
197
- $iui-color-system-magenta 83%,
198
- $iui-color-system-red 100%
199
- );
200
- }
164
+ background: linear-gradient(
165
+ to right,
166
+ $iui-color-system-red 0%,
167
+ $iui-color-system-yellow 17%,
168
+ rgb(0, 255, 0) 33%,
169
+ rgb(0, 255, 255) 50%,
170
+ $iui-color-system-blue 67%,
171
+ $iui-color-system-magenta 83%,
172
+ $iui-color-system-red 100%
173
+ );
201
174
  }
202
175
 
203
176
  .iui-slider-thumb {
@@ -249,22 +222,20 @@ $iui-hover-box-shadow: 0 0 1px $iui-xxs + 1 rgba(var(--iui-color-foreground-body
249
222
  @mixin iui-transparent-background($size: $iui-m) {
250
223
  background-position: 0 0, ($size * 0.5) ($size * 0.5);
251
224
  background-size: $size $size;
252
- @include themed {
253
- background-image: repeating-linear-gradient(
254
- 45deg,
255
- t(iui-color-background-3) 25%,
256
- transparent 25%,
257
- transparent 75%,
258
- t(iui-color-background-3) 75%,
259
- t(iui-color-background-3)
260
- ),
261
- repeating-linear-gradient(
262
- 45deg,
263
- t(iui-color-background-3) 25%,
264
- t(iui-color-background-5) 25%,
265
- t(iui-color-background-5) 75%,
266
- t(iui-color-background-3) 75%,
267
- t(iui-color-background-3)
268
- );
269
- }
225
+ background-image: repeating-linear-gradient(
226
+ 45deg,
227
+ var(--iui-color-background-3) 25%,
228
+ transparent 25%,
229
+ transparent 75%,
230
+ var(--iui-color-background-3) 75%,
231
+ var(--iui-color-background-3)
232
+ ),
233
+ repeating-linear-gradient(
234
+ 45deg,
235
+ var(--iui-color-background-3) 25%,
236
+ var(--iui-color-background-5) 25%,
237
+ var(--iui-color-background-5) 75%,
238
+ var(--iui-color-background-3) 75%,
239
+ var(--iui-color-background-3)
240
+ );
270
241
  }
@@ -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 '../icon/index';
4
+ @import '../utils/index';
5
5
  @import '../surface/index';
6
6
 
7
7
  $iui-date-picker-cell-width: 40px;
@@ -26,7 +26,6 @@ $iui-date-picker-today-circle-size: 32px;
26
26
  align-items: center;
27
27
  justify-content: space-between;
28
28
  padding: 0 $iui-xs;
29
- box-sizing: border-box;
30
29
  font-weight: $iui-font-weight-bold;
31
30
  gap: $iui-xs;
32
31
 
@@ -54,9 +53,7 @@ $iui-date-picker-today-circle-size: 32px;
54
53
  display: flex;
55
54
  padding: 0 $iui-s;
56
55
  font-weight: $iui-font-weight-bold;
57
- @include themed {
58
- background-color: t(iui-color-background-2);
59
- }
56
+ background-color: var(--iui-color-background-2);
60
57
 
61
58
  > div {
62
59
  white-space: nowrap;
@@ -88,10 +85,8 @@ $iui-date-picker-today-circle-size: 32px;
88
85
  @mixin iui-calendar-day-base-hover {
89
86
  &:hover {
90
87
  font-weight: $iui-font-weight-semibold;
91
- @include themed {
92
- color: t(iui-color-foreground-primary);
93
- background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6));
94
- }
88
+ color: var(--iui-color-foreground-primary);
89
+ background-color: rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-6));
95
90
  }
96
91
  }
97
92
 
@@ -106,56 +101,41 @@ $iui-date-picker-today-circle-size: 32px;
106
101
  width: $iui-date-picker-today-circle-size;
107
102
  height: $iui-date-picker-today-circle-size;
108
103
  border-radius: $iui-border-radius-round;
109
- box-sizing: border-box;
110
104
  top: 50%;
111
105
  left: 50%;
112
106
  transform: translate(-50%, -50%);
113
- @include themed {
114
- border: 2px solid rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-5));
115
- }
107
+ border: 2px solid rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-5));
116
108
  }
117
109
 
118
110
  &:hover {
119
111
  background-color: initial;
120
- @include themed {
121
- color: t(iui-color-foreground-primary);
122
- }
112
+ color: var(--iui-color-foreground-primary);
123
113
  }
124
114
 
125
115
  &:hover::before {
126
- @include themed {
127
- background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6));
128
- }
116
+ background-color: rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-6));
129
117
  }
130
118
  }
131
119
 
132
120
  @mixin iui-calendar-day-selected-base {
133
121
  font-weight: $iui-font-weight-semibold;
134
- @include themed {
135
- background-color: t(iui-color-background-primary);
136
- color: t(iui-color-foreground-accessory);
137
- }
122
+ background-color: var(--iui-color-background-primary);
123
+ color: var(--iui-color-foreground-accessory);
138
124
  @include iui-focus($color: var(--iui-color-foreground-accessory), $offset: -3px);
139
125
  }
140
126
 
141
127
  @mixin iui-calendar-day-selected-today-base {
142
128
  &:hover {
143
- @include themed {
144
- background-color: t(iui-color-background-primary);
145
- color: t(iui-color-foreground-accessory);
146
- }
129
+ background-color: var(--iui-color-background-primary);
130
+ color: var(--iui-color-foreground-accessory);
147
131
 
148
132
  &::before {
149
- @include themed {
150
- background-color: initial;
151
- }
133
+ background-color: initial;
152
134
  }
153
135
  }
154
136
 
155
137
  &::before {
156
- @include themed {
157
- border-color: rgba(t(iui-color-foreground-accessory-rgb), t(iui-opacity-4));
158
- }
138
+ border-color: rgba(var(--iui-color-foreground-accessory-rgb), var(--iui-opacity-4));
159
139
  }
160
140
  }
161
141
  //#endregion Helper mixins
@@ -225,17 +205,12 @@ $iui-date-picker-today-circle-size: 32px;
225
205
  @include iui-calendar-day-base;
226
206
 
227
207
  border-radius: 0;
228
- @include themed {
229
- background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-5));
230
- color: t(iui-text-color);
231
- }
208
+ background-color: rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-5));
209
+ color: var(--iui-text-color);
232
210
 
233
211
  &:hover {
234
212
  font-weight: $iui-font-weight-semibold;
235
-
236
- @include themed {
237
- background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-4));
238
- }
213
+ background-color: rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-4));
239
214
  }
240
215
  }
241
216
 
@@ -243,22 +218,16 @@ $iui-date-picker-today-circle-size: 32px;
243
218
  @include iui-calendar-day-today-base;
244
219
 
245
220
  &:hover {
246
- @include themed {
247
- background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-5));
248
- color: t(iui-text-color);
249
- }
221
+ background-color: rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-5));
222
+ color: var(--iui-text-color);
250
223
 
251
224
  &::before {
252
- @include themed {
253
- background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-4));
254
- }
225
+ background-color: rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-4));
255
226
  }
256
227
  }
257
228
 
258
229
  &::before {
259
- @include themed {
260
- border-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-4));
261
- }
230
+ border-color: rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-4));
262
231
  }
263
232
  }
264
233
  }
@@ -268,10 +237,7 @@ $iui-date-picker-today-circle-size: 32px;
268
237
  &-today {
269
238
  @include iui-calendar-day-base;
270
239
  @include iui-calendar-day-base-hover;
271
-
272
- @include themed {
273
- color: t(iui-text-color-muted);
274
- }
240
+ color: var(--iui-text-color-muted);
275
241
  }
276
242
 
277
243
  &-today {