@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
@@ -5,8 +5,7 @@
5
5
 
6
6
  @mixin iui-tabs-borderless {
7
7
  .iui-tab {
8
- height: $iui-component-height;
9
- padding: 0 ($iui-component-padding-horizontal * 2);
8
+ padding: $iui-xs ($iui-component-padding-horizontal * 2);
10
9
  background-color: transparent;
11
10
 
12
11
  &::after {
@@ -15,24 +14,18 @@
15
14
  }
16
15
 
17
16
  &:hover {
18
- @include themed {
19
- background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6));
20
- }
17
+ background-color: rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-6));
21
18
  }
22
19
 
23
20
  &.iui-active {
24
- @include themed {
25
- background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6));
26
- }
21
+ background-color: rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-6));
27
22
  }
28
23
  }
29
24
 
30
25
  @at-root {
31
26
  .iui-horizontal & ~ .iui-tabs-content {
32
27
  margin-top: -$iui-xxs;
33
- @include themed {
34
- border-top: $iui-xxs solid t(iui-color-background-4);
35
- }
28
+ border-top: $iui-xxs solid var(--iui-color-background-4);
36
29
  }
37
30
  }
38
31
 
@@ -41,32 +34,26 @@
41
34
  margin-left: -$iui-xxs;
42
35
  padding-left: $iui-sm;
43
36
  padding-right: $iui-sm;
44
- @include themed {
45
- border-left: $iui-xxs solid t(iui-color-background-4);
46
- }
37
+ border-left: $iui-xxs solid var(--iui-color-background-4);
47
38
  }
48
39
  }
49
40
 
50
41
  &.iui-green .iui-active,
51
42
  &.iui-green .iui-tab:hover {
52
- @include themed {
53
- background-color: rgba(t(iui-color-foreground-positive-rgb), t(iui-opacity-6));
54
- }
43
+ background-color: rgba(var(--iui-color-foreground-positive-rgb), var(--iui-opacity-6));
55
44
  }
56
45
 
57
46
  &.iui-large {
58
47
  .iui-tab {
59
- height: $iui-component-height-large;
48
+ min-height: $iui-component-height-large;
60
49
  }
61
50
 
62
51
  .iui-tab-description {
63
- display: block;
52
+ display: -webkit-box; /* stylelint-disable-line */
64
53
  }
65
54
  }
66
55
 
67
56
  .iui-tab[disabled]:hover {
68
- @include themed {
69
- background-color: transparent;
70
- }
57
+ background-color: transparent;
71
58
  }
72
59
  }
@@ -38,3 +38,7 @@
38
38
  @include iui-tab-not-animated;
39
39
  }
40
40
  }
41
+
42
+ .iui-tab-label {
43
+ @include iui-tab-label;
44
+ }
@@ -7,13 +7,9 @@
7
7
  @include iui-tab-not-animated;
8
8
 
9
9
  .iui-tab {
10
- height: $iui-component-height;
11
- padding: 0 $iui-m;
12
- box-sizing: border-box;
13
- @include themed {
14
- background-color: t(iui-color-background-2);
15
- border: 1px solid t(iui-color-background-5);
16
- }
10
+ padding: $iui-xs $iui-m;
11
+ background-color: var(--iui-color-background-2);
12
+ border: 1px solid var(--iui-color-background-5);
17
13
 
18
14
  &::after {
19
15
  top: 0;
@@ -21,21 +17,15 @@
21
17
  }
22
18
 
23
19
  &:hover {
24
- @include themed {
25
- background-color: t(iui-color-background-1);
26
- }
20
+ background-color: var(--iui-color-background-1);
27
21
  }
28
22
 
29
23
  &.iui-active {
30
- @include themed {
31
- background-color: t(iui-color-background-1);
32
- }
24
+ background-color: var(--iui-color-background-1);
33
25
  }
34
26
 
35
27
  &[disabled] {
36
- @include themed {
37
- background-color: t(iui-color-background-3);
38
- }
28
+ background-color: var(--iui-color-background-3);
39
29
  }
40
30
 
41
31
  &:focus {
@@ -78,26 +68,22 @@
78
68
 
79
69
  &.iui-large {
80
70
  .iui-tab {
81
- height: $iui-component-height-large;
71
+ min-height: $iui-component-height-large;
82
72
  }
83
73
 
84
74
  .iui-tab-description {
85
- display: block;
75
+ display: -webkit-box; /* stylelint-disable-line */
86
76
  }
87
77
  }
88
78
 
89
79
  &.iui-green .iui-tab::after {
90
- @include themed {
91
- background-color: t(iui-color-foreground-positive);
92
- }
80
+ background-color: var(--iui-color-foreground-positive);
93
81
  }
94
82
 
95
83
  ~ .iui-tabs-content {
96
84
  padding-left: $iui-m;
97
85
  padding-right: $iui-m;
98
- @include themed {
99
- background-color: t(iui-color-background-1);
100
- border: 1px solid t(iui-color-background-5);
101
- }
86
+ background-color: var(--iui-color-background-1);
87
+ border: 1px solid var(--iui-color-background-5);
102
88
  }
103
89
  }
@@ -1,28 +1,22 @@
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
4
  @import './tabs';
6
5
 
7
6
  @mixin iui-tabs-pill {
8
7
  justify-content: space-evenly;
8
+ gap: $iui-xxs;
9
9
 
10
10
  > li {
11
11
  flex: 1 1 0;
12
-
13
- &:not(:last-child) {
14
- margin-right: $iui-xxs;
15
- }
16
12
  }
17
13
 
18
14
  &.iui-green .iui-tab:hover {
19
- @include themed {
20
- background-color: rgba(t(iui-color-foreground-positive-rgb), t(iui-opacity-6));
21
- }
15
+ background-color: rgba(var(--iui-color-foreground-positive-rgb), var(--iui-opacity-6));
22
16
  }
23
17
 
24
18
  .iui-tab {
25
- height: $iui-component-height;
19
+ padding: $iui-xs;
26
20
  background-color: transparent;
27
21
  width: 100%;
28
22
  justify-content: center;
@@ -34,15 +28,11 @@
34
28
  }
35
29
 
36
30
  &:hover {
37
- @include themed {
38
- background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6));
39
- }
31
+ background-color: rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-6));
40
32
  }
41
33
 
42
34
  &[disabled]:hover {
43
- @include themed {
44
- background-color: transparent;
45
- }
35
+ background-color: transparent;
46
36
  }
47
37
  }
48
38
  }
@@ -1,11 +1,11 @@
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-tabs {
6
7
  @include iui-reset;
7
8
  position: relative;
8
- align-items: center;
9
9
  list-style: none;
10
10
  user-select: none;
11
11
 
@@ -16,42 +16,30 @@
16
16
  display: flex;
17
17
  align-items: center;
18
18
  font-size: $iui-font-size;
19
+ min-height: $iui-component-height;
20
+ height: 100%;
19
21
  cursor: pointer;
20
- @media (prefers-reduced-motion: no-preference) {
21
- transition: background-color $iui-speed-fast ease-out;
22
- }
23
- @include themed {
24
- color: t(iui-text-color);
25
- }
22
+ color: var(--iui-text-color);
23
+ transition: background-color $iui-speed-fast ease-out;
26
24
 
27
25
  &.iui-active {
28
- @include themed {
29
- color: t(iui-color-foreground-primary);
30
- }
26
+ color: var(--iui-color-foreground-primary);
31
27
 
32
28
  .iui-tab-icon {
33
- @include themed {
34
- fill: t(iui-icons-color-primary);
35
- }
29
+ fill: var(--iui-icons-color-primary);
36
30
  }
37
31
 
38
32
  .iui-tab-description {
39
- @include themed {
40
- opacity: t(iui-opacity-1);
41
- }
33
+ opacity: var(--iui-opacity-1);
42
34
  }
43
35
  }
44
36
 
45
37
  &[disabled] {
46
38
  cursor: not-allowed;
47
- @include themed {
48
- color: t(iui-text-color-muted);
49
- }
39
+ color: var(--iui-text-color-muted);
50
40
 
51
41
  .iui-tab-icon {
52
- @include themed {
53
- fill: t(iui-icons-color-actionable-disabled);
54
- }
42
+ fill: var(--iui-icons-color-actionable-disabled);
55
43
  }
56
44
  }
57
45
 
@@ -61,44 +49,31 @@
61
49
  .iui-tab-icon {
62
50
  width: $iui-icons-default;
63
51
  height: $iui-icons-default;
64
- @media (prefers-reduced-motion: no-preference) {
65
- transition: fill $iui-speed-fast ease-out;
66
- }
67
- @include themed {
68
- fill: t(iui-icons-color-actionable);
69
- }
52
+ flex-shrink: 0;
53
+ fill: var(--iui-icons-color-actionable);
54
+ transition: fill $iui-speed-fast ease-out;
70
55
 
71
56
  + .iui-tab-label {
72
57
  margin-left: $iui-s;
73
58
  }
74
59
  }
75
60
 
76
- .iui-tab-label {
77
- text-align: left;
78
- }
79
-
80
61
  .iui-tab-description {
81
62
  display: none;
82
63
  font-size: $iui-font-size-small;
83
- @include themed {
84
- opacity: t(iui-opacity-3);
85
- }
64
+ opacity: var(--iui-opacity-3);
86
65
  }
87
66
 
88
67
  &.iui-green .iui-tab {
89
68
  &:focus {
90
- outline-color: t(iui-color-foreground-positive);
69
+ outline-color: var(--iui-color-foreground-positive);
91
70
  }
92
71
 
93
72
  &.iui-active {
94
- @include themed {
95
- color: t(iui-color-foreground-positive);
96
- }
73
+ color: var(--iui-color-foreground-positive);
97
74
 
98
75
  .iui-tab-icon {
99
- @include themed {
100
- fill: t(iui-icons-color-positive);
101
- }
76
+ fill: var(--iui-icons-color-positive);
102
77
  }
103
78
  }
104
79
  }
@@ -106,7 +81,15 @@
106
81
  ~ .iui-tabs-content {
107
82
  padding-top: $iui-baseline;
108
83
  padding-bottom: $iui-baseline;
109
- box-sizing: border-box;
84
+ }
85
+ }
86
+
87
+ @mixin iui-tab-label {
88
+ text-align: left;
89
+ max-width: 60ch;
90
+
91
+ > * {
92
+ @include iui-line-clamp(3);
110
93
  }
111
94
  }
112
95
 
@@ -131,8 +114,6 @@
131
114
 
132
115
  @mixin iui-tabs-vertical {
133
116
  .iui-tabs {
134
- flex-direction: column;
135
-
136
117
  li,
137
118
  .iui-tab {
138
119
  width: 100%;
@@ -160,9 +141,7 @@
160
141
  .iui-tab::after {
161
142
  content: '';
162
143
  position: absolute;
163
- @include themed {
164
- background-color: t(iui-color-foreground-primary);
165
- }
144
+ background-color: var(--iui-color-foreground-primary);
166
145
  }
167
146
 
168
147
  .iui-active::after {
@@ -172,9 +151,7 @@
172
151
  }
173
152
 
174
153
  &.iui-green .iui-tab::after {
175
- @include themed {
176
- background-color: t(iui-color-foreground-positive);
177
- }
154
+ background-color: var(--iui-color-foreground-positive);
178
155
  }
179
156
  }
180
157
 
@@ -182,15 +159,11 @@
182
159
  &::after {
183
160
  position: absolute;
184
161
  content: ' ';
185
- @include themed {
186
- background-color: t(iui-color-foreground-primary);
187
- }
162
+ background-color: var(--iui-color-foreground-primary);
188
163
  }
189
164
 
190
165
  &.iui-green::after {
191
- @include themed {
192
- background-color: t(iui-color-foreground-positive);
193
- }
166
+ background-color: var(--iui-color-foreground-positive);
194
167
  }
195
168
 
196
169
  @at-root {
@@ -2,6 +2,7 @@
2
2
  // See LICENSE.md in the project root for license terms and full copyright notice.
3
3
  @import './tag';
4
4
  @import '../anchor/index';
5
+ @import '../utils/index';
5
6
 
6
7
  .iui-tag {
7
8
  @include iui-tag;
package/scss/tag/tag.scss CHANGED
@@ -1,11 +1,11 @@
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/mixins';
4
+ @import '../utils/index';
5
5
  @import '../button/index';
6
+ @import '../text/mixins';
6
7
 
7
8
  @mixin iui-tag-base {
8
- @include iui-reset;
9
9
  user-select: all;
10
10
  text-transform: lowercase;
11
11
  display: inline-flex;
@@ -15,18 +15,16 @@
15
15
  @include iui-tag-base;
16
16
 
17
17
  &:not(a) {
18
- @include themed {
19
- color: t(iui-text-color-muted);
20
- }
18
+ color: var(--iui-text-color-muted);
21
19
  }
22
20
  }
23
21
 
24
22
  @mixin iui-tag {
25
23
  @include iui-tag-base;
26
24
  height: $iui-baseline * 3;
27
- margin: $iui-component-offset 0;
25
+ margin-top: $iui-component-offset;
26
+ margin-bottom: $iui-component-offset;
28
27
  border-radius: $iui-border-radius-round;
29
- box-sizing: border-box;
30
28
  padding: 0 $iui-xxs;
31
29
  align-items: center;
32
30
  transition: border-color $iui-speed-fast ease-out;
@@ -34,16 +32,12 @@
34
32
  text-transform: none;
35
33
  cursor: default;
36
34
  -webkit-tap-highlight-color: transparent;
37
- @include themed {
38
- border: 1px solid rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-4));
39
- background-color: t(iui-color-background-1);
40
- color: t(iui-text-color);
41
- }
35
+ border: 1px solid rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-4));
36
+ background-color: var(--iui-color-background-1);
37
+ color: var(--iui-text-color);
42
38
 
43
39
  &:hover {
44
- @include themed {
45
- border-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-1));
46
- }
40
+ border-color: rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-1));
47
41
  }
48
42
  }
49
43
 
@@ -64,9 +58,7 @@
64
58
  }
65
59
 
66
60
  @mixin iui-tag-container {
67
- @include themed {
68
- color: t(iui-text-color-muted);
69
- }
61
+ color: var(--iui-text-color-muted);
70
62
 
71
63
  > a.iui-tag-basic {
72
64
  margin: $iui-xxs;
@@ -92,8 +84,6 @@
92
84
  &.iui-visible {
93
85
  border-radius: $iui-border-radius;
94
86
  padding: $iui-component-offset $iui-sm;
95
- @include themed {
96
- background-color: t(iui-color-background-3);
97
- }
87
+ background-color: var(--iui-color-background-3);
98
88
  }
99
89
  }
@@ -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-text-block-spacing {
6
7
  padding: 0;
@@ -1,9 +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';
3
+ @import '../style/theme';
4
4
 
5
5
  @mixin iui-text-muted {
6
- @include themed {
7
- color: t(iui-text-color-muted);
8
- }
6
+ color: var(--iui-text-color-muted);
9
7
  }
@@ -8,17 +8,14 @@
8
8
  color: transparent;
9
9
  border-radius: $iui-border-radius;
10
10
  cursor: progress;
11
-
12
- @include themed {
13
- background: linear-gradient(
14
- 292deg,
15
- t(iui-text-color-muted),
16
- t(iui-text-color-muted),
17
- t(iui-text-color-placeholder),
18
- t(iui-text-color-muted),
19
- t(iui-text-color-muted)
20
- );
21
- }
11
+ background: linear-gradient(
12
+ 292deg,
13
+ var(--iui-text-color-muted),
14
+ var(--iui-text-color-muted),
15
+ var(--iui-text-color-placeholder),
16
+ var(--iui-text-color-muted),
17
+ var(--iui-text-color-muted)
18
+ );
22
19
  background-size: 200% 100%;
23
20
 
24
21
  @media (forced-colors: active) {
@@ -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-textarea {
6
+ @include iui-textarea;
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 './textarea';
@@ -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
- @import '../style/index';
3
+ @import '../style/global-variables';
4
+ @import '../input/index';
4
5
 
5
6
  @mixin iui-textarea {
6
7
  @include iui-input;
@@ -4,14 +4,26 @@
4
4
 
5
5
  .iui-tile {
6
6
  @include iui-tile;
7
+
8
+ &.iui-positive {
9
+ @include iui-tile-status(positive);
10
+ }
11
+
12
+ &.iui-warning {
13
+ @include iui-tile-status(warning);
14
+ }
15
+
16
+ &.iui-negative {
17
+ @include iui-tile-status(negative);
18
+ }
7
19
  }
8
20
 
9
21
  .iui-tile-thumbnail-type-indicator {
10
- @include iui-tile-thumbnail-type-indicator;
22
+ @include iui-tile-thumbnail-button(type-indicator);
11
23
  }
12
24
 
13
25
  .iui-tile-thumbnail-quick-action {
14
- @include iui-tile-thumbnail-quick-action;
26
+ @include iui-tile-thumbnail-button(quick-action);
15
27
  }
16
28
 
17
29
  .iui-tile-thumbnail-badge-container {