@itwin/itwinui-css 1.0.0-dev.0 → 1.0.0-dev.1

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 (239) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/css/alert.css +16 -27
  3. package/css/all.css +723 -817
  4. package/css/avatar.css +1 -1
  5. package/css/blockquote.css +2 -2
  6. package/css/breadcrumbs.css +19 -13
  7. package/css/button.css +30 -56
  8. package/css/carousel.css +5 -4
  9. package/css/checkbox.css +10 -7
  10. package/css/code.css +1 -0
  11. package/css/color-picker.css +10 -10
  12. package/css/date-picker.css +1 -1
  13. package/css/dialog.css +12 -9
  14. package/css/expandable-block.css +8 -19
  15. package/css/fieldset.css +2 -2
  16. package/css/file-upload.css +11 -20
  17. package/css/footer.css +28 -28
  18. package/css/global.css +65 -65
  19. package/css/header.css +12 -6
  20. package/css/information-panel.css +12 -7
  21. package/css/input.css +18 -10
  22. package/css/location-marker.css +8 -2
  23. package/css/menu.css +14 -7
  24. package/css/non-ideal-state.css +5 -5
  25. package/css/progress-indicator.css +10 -6
  26. package/css/radio-tile.css +19 -10
  27. package/css/radio.css +10 -7
  28. package/css/select.css +25 -19
  29. package/css/side-navigation.css +14 -19
  30. package/css/skip-to-content.css +2 -2
  31. package/css/slider.css +108 -40
  32. package/css/stepper.css +4 -4
  33. package/css/table.css +28 -28
  34. package/css/tabs.css +17 -10
  35. package/css/tag.css +5 -5
  36. package/css/text.css +7 -7
  37. package/css/tile.css +45 -69
  38. package/css/time-picker.css +3 -3
  39. package/css/toast.css +13 -11
  40. package/css/toggle-switch.css +5 -5
  41. package/css/tree.css +13 -20
  42. package/css/utils.css +104 -44
  43. package/css/workflow-diagram.css +1 -1
  44. package/package.json +8 -11
  45. package/css/icon.css +0 -117
  46. package/css/textarea.css +0 -96
  47. package/scss/alert/alert.scss +0 -89
  48. package/scss/alert/classes.scss +0 -33
  49. package/scss/alert/index.scss +0 -3
  50. package/scss/anchor/anchor.scss +0 -78
  51. package/scss/anchor/classes.scss +0 -11
  52. package/scss/anchor/index.scss +0 -3
  53. package/scss/avatar/avatar-sizes.scss +0 -23
  54. package/scss/avatar/avatar.scss +0 -215
  55. package/scss/avatar/classes.scss +0 -27
  56. package/scss/avatar/index.scss +0 -3
  57. package/scss/backdrop/backdrop.scss +0 -27
  58. package/scss/backdrop/classes.scss +0 -7
  59. package/scss/backdrop/index.scss +0 -3
  60. package/scss/badge/badge.scss +0 -34
  61. package/scss/badge/classes.scss +0 -7
  62. package/scss/badge/index.scss +0 -3
  63. package/scss/blockquote/blockquote.scss +0 -26
  64. package/scss/blockquote/classes.scss +0 -7
  65. package/scss/blockquote/index.scss +0 -3
  66. package/scss/breadcrumbs/breadcrumbs.scss +0 -119
  67. package/scss/breadcrumbs/classes.scss +0 -31
  68. package/scss/breadcrumbs/index.scss +0 -3
  69. package/scss/button/borderless.scss +0 -36
  70. package/scss/button/button-group.scss +0 -118
  71. package/scss/button/button.scss +0 -119
  72. package/scss/button/classes.scss +0 -80
  73. package/scss/button/default.scss +0 -51
  74. package/scss/button/idea.scss +0 -12
  75. package/scss/button/index.scss +0 -9
  76. package/scss/button/split-button.scss +0 -45
  77. package/scss/button/variant.scss +0 -44
  78. package/scss/carousel/carousel.scss +0 -113
  79. package/scss/carousel/classes.scss +0 -15
  80. package/scss/carousel/index.scss +0 -3
  81. package/scss/checkbox/checkbox.scss +0 -154
  82. package/scss/checkbox/classes.scss +0 -7
  83. package/scss/checkbox/index.scss +0 -3
  84. package/scss/classes.scss +0 -52
  85. package/scss/code/classes.scss +0 -11
  86. package/scss/code/code.scss +0 -16
  87. package/scss/code/codeblock.scss +0 -59
  88. package/scss/code/index.scss +0 -4
  89. package/scss/color-picker/classes.scss +0 -43
  90. package/scss/color-picker/color-picker.scss +0 -241
  91. package/scss/color-picker/index.scss +0 -3
  92. package/scss/date-picker/classes.scss +0 -47
  93. package/scss/date-picker/date-picker.scss +0 -246
  94. package/scss/date-picker/index.scss +0 -3
  95. package/scss/dialog/classes.scss +0 -48
  96. package/scss/dialog/dialog.scss +0 -178
  97. package/scss/dialog/index.scss +0 -3
  98. package/scss/expandable-block/block.scss +0 -165
  99. package/scss/expandable-block/classes.scss +0 -7
  100. package/scss/expandable-block/index.scss +0 -3
  101. package/scss/fieldset/classes.scss +0 -7
  102. package/scss/fieldset/fieldset.scss +0 -29
  103. package/scss/fieldset/index.scss +0 -3
  104. package/scss/file-upload/classes.scss +0 -7
  105. package/scss/file-upload/file-upload.scss +0 -80
  106. package/scss/file-upload/index.scss +0 -3
  107. package/scss/footer/classes.scss +0 -7
  108. package/scss/footer/footer.scss +0 -55
  109. package/scss/footer/index.scss +0 -3
  110. package/scss/header/classes.scss +0 -79
  111. package/scss/header/header-buttons.scss +0 -316
  112. package/scss/header/header.scss +0 -75
  113. package/scss/header/index.scss +0 -4
  114. package/scss/icon/classes.scss +0 -27
  115. package/scss/icon/icon.scss +0 -65
  116. package/scss/icon/index.scss +0 -3
  117. package/scss/index.scss +0 -50
  118. package/scss/information-panel/classes.scss +0 -27
  119. package/scss/information-panel/index.scss +0 -3
  120. package/scss/information-panel/information-panel.scss +0 -215
  121. package/scss/input/classes.scss +0 -15
  122. package/scss/input/index.scss +0 -4
  123. package/scss/input/input-with-icon.scss +0 -37
  124. package/scss/input/input.scss +0 -70
  125. package/scss/keyboard/classes.scss +0 -7
  126. package/scss/keyboard/index.scss +0 -3
  127. package/scss/keyboard/keyboard.scss +0 -29
  128. package/scss/location-marker/classes.scss +0 -15
  129. package/scss/location-marker/data-rich.scss +0 -49
  130. package/scss/location-marker/default.scss +0 -19
  131. package/scss/location-marker/index.scss +0 -6
  132. package/scss/location-marker/location-marker.scss +0 -11
  133. package/scss/location-marker/me.scss +0 -29
  134. package/scss/menu/classes.scss +0 -21
  135. package/scss/menu/index.scss +0 -3
  136. package/scss/menu/menu.scss +0 -185
  137. package/scss/non-ideal-state/classes.scss +0 -7
  138. package/scss/non-ideal-state/index.scss +0 -3
  139. package/scss/non-ideal-state/non-ideal-state.scss +0 -56
  140. package/scss/progress-indicator/classes.scss +0 -31
  141. package/scss/progress-indicator/index.scss +0 -5
  142. package/scss/progress-indicator/linear.scss +0 -108
  143. package/scss/progress-indicator/overlay.scss +0 -51
  144. package/scss/progress-indicator/radial.scss +0 -155
  145. package/scss/radio/classes.scss +0 -7
  146. package/scss/radio/index.scss +0 -3
  147. package/scss/radio/radio.scss +0 -18
  148. package/scss/radio-tile/classes.scss +0 -31
  149. package/scss/radio-tile/index.scss +0 -3
  150. package/scss/radio-tile/radio-tile.scss +0 -167
  151. package/scss/select/classes.scss +0 -27
  152. package/scss/select/index.scss +0 -3
  153. package/scss/select/select.scss +0 -124
  154. package/scss/side-navigation/classes.scss +0 -15
  155. package/scss/side-navigation/index.scss +0 -3
  156. package/scss/side-navigation/side-navigation.scss +0 -202
  157. package/scss/skip-to-content/classes.scss +0 -7
  158. package/scss/skip-to-content/index.scss +0 -3
  159. package/scss/skip-to-content/skip-to-content.scss +0 -40
  160. package/scss/slider/classes.scss +0 -27
  161. package/scss/slider/index.scss +0 -3
  162. package/scss/slider/slider.scss +0 -135
  163. package/scss/stepper/classes.scss +0 -32
  164. package/scss/stepper/index.scss +0 -3
  165. package/scss/stepper/stepper.scss +0 -151
  166. package/scss/style/baseline.scss +0 -4
  167. package/scss/style/color.scss +0 -39
  168. package/scss/style/elevation.scss +0 -11
  169. package/scss/style/global-variables.scss +0 -23
  170. package/scss/style/global.scss +0 -69
  171. package/scss/style/icon-sizes.scss +0 -14
  172. package/scss/style/index.scss +0 -11
  173. package/scss/style/space.scss +0 -11
  174. package/scss/style/speed.scss +0 -8
  175. package/scss/style/theme.scss +0 -443
  176. package/scss/style/typography.scss +0 -55
  177. package/scss/surface/classes.scss +0 -7
  178. package/scss/surface/index.scss +0 -3
  179. package/scss/surface/surface.scss +0 -17
  180. package/scss/table/classes.scss +0 -64
  181. package/scss/table/column-filter.scss +0 -34
  182. package/scss/table/index.scss +0 -6
  183. package/scss/table/paginator.scss +0 -79
  184. package/scss/table/sizes.scss +0 -31
  185. package/scss/table/table-densities.scss +0 -11
  186. package/scss/table/table.scss +0 -482
  187. package/scss/tabs/borderless.scss +0 -59
  188. package/scss/tabs/classes.scss +0 -44
  189. package/scss/tabs/default.scss +0 -89
  190. package/scss/tabs/index.scss +0 -6
  191. package/scss/tabs/pill.scss +0 -38
  192. package/scss/tabs/tabs.scss +0 -192
  193. package/scss/tag/classes.scss +0 -30
  194. package/scss/tag/index.scss +0 -3
  195. package/scss/tag/tag.scss +0 -89
  196. package/scss/text/classes.scss +0 -40
  197. package/scss/text/index.scss +0 -5
  198. package/scss/text/mixins.scss +0 -43
  199. package/scss/text/muted.scss +0 -7
  200. package/scss/text/skeleton.scss +0 -43
  201. package/scss/textarea/classes.scss +0 -7
  202. package/scss/textarea/index.scss +0 -3
  203. package/scss/textarea/textarea.scss +0 -15
  204. package/scss/tile/classes.scss +0 -51
  205. package/scss/tile/index.scss +0 -3
  206. package/scss/tile/tile.scss +0 -340
  207. package/scss/time-picker/classes.scss +0 -16
  208. package/scss/time-picker/index.scss +0 -3
  209. package/scss/time-picker/time-picker.scss +0 -63
  210. package/scss/toast/categories.scss +0 -22
  211. package/scss/toast/classes.scss +0 -98
  212. package/scss/toast/index.scss +0 -4
  213. package/scss/toast/toast.scss +0 -70
  214. package/scss/toggle-switch/classes.scss +0 -11
  215. package/scss/toggle-switch/index.scss +0 -3
  216. package/scss/toggle-switch/toggle-switch.scss +0 -203
  217. package/scss/tooltip/classes.scss +0 -24
  218. package/scss/tooltip/index.scss +0 -3
  219. package/scss/tooltip/tooltip.scss +0 -40
  220. package/scss/tree/classes.scss +0 -19
  221. package/scss/tree/index.scss +0 -3
  222. package/scss/tree/tree.scss +0 -126
  223. package/scss/utils/classes.scss +0 -6
  224. package/scss/utils/index.scss +0 -6
  225. package/scss/utils/input-container/classes.scss +0 -39
  226. package/scss/utils/input-container/index.scss +0 -3
  227. package/scss/utils/input-container/input-container.scss +0 -285
  228. package/scss/utils/mixins.scss +0 -171
  229. package/scss/utils/notification-marker/classes.scss +0 -9
  230. package/scss/utils/notification-marker/index.scss +0 -3
  231. package/scss/utils/notification-marker/notification-marker.scss +0 -55
  232. package/scss/utils/popover/classes.scss +0 -7
  233. package/scss/utils/popover/index.scss +0 -3
  234. package/scss/utils/popover/popover.scss +0 -21
  235. package/scss/variables.scss +0 -3
  236. package/scss/workflow-diagram/classes.scss +0 -15
  237. package/scss/workflow-diagram/index.scss +0 -3
  238. package/scss/workflow-diagram/workflow-diagram.scss +0 -64
  239. package/src/index.scss +0 -50
@@ -1,203 +0,0 @@
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 '../utils/index';
5
-
6
- @mixin iui-toggle-switch-wrapper {
7
- @include iui-reset;
8
- display: grid;
9
- grid-template-areas: 'toggle';
10
- align-items: center;
11
- gap: $iui-s;
12
- font-size: $iui-font-size;
13
- width: fit-content;
14
- user-select: none;
15
- cursor: pointer;
16
- isolation: isolate;
17
- color: rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-2));
18
-
19
- // Disabled
20
- &.iui-disabled {
21
- cursor: not-allowed;
22
- color: var(--iui-text-color-muted);
23
- @media (forced-colors: active) {
24
- color: GrayText;
25
- }
26
- }
27
-
28
- // For labels on the left
29
- &.iui-label-on-left {
30
- grid-template-areas: 'label toggle';
31
- }
32
-
33
- // For labels on the right
34
- &.iui-label-on-right {
35
- grid-template-areas: 'toggle label';
36
- }
37
- }
38
-
39
- @mixin iui-toggle-switch {
40
- $iui-toggle-switch-handle-size: $iui-icons-default;
41
- $iui-toggle-switch-handle-offset: $iui-component-offset;
42
- $iui-toggle-switch-border-thickness: 1px;
43
-
44
- @include iui-reset;
45
- @include iui-focus($thickness: $iui-toggle-switch-border-thickness, $offset: $iui-toggle-switch-border-thickness);
46
- grid-area: toggle;
47
- display: flex;
48
- position: relative;
49
- cursor: pointer;
50
- appearance: none;
51
- width: ($iui-toggle-switch-handle-size + ($iui-toggle-switch-handle-offset * 2)) * 2;
52
- border-radius: $iui-border-radius-round;
53
- transition: background-color $iui-speed-fast ease-out, border-color $iui-speed-fast ease-out;
54
- background-color: var(--iui-color-background-1);
55
- border: $iui-toggle-switch-border-thickness solid rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-4));
56
-
57
- &-label {
58
- grid-area: label;
59
- }
60
-
61
- &::after {
62
- content: '';
63
- height: $iui-toggle-switch-handle-size;
64
- width: $iui-toggle-switch-handle-size;
65
- margin: $iui-toggle-switch-handle-offset;
66
- aspect-ratio: 1 / 1;
67
- border-radius: 50%;
68
- transition: background-color $iui-speed-fast ease-out, opacity $iui-speed-fast ease-out;
69
- z-index: 2;
70
- @media (prefers-reduced-motion: no-preference) {
71
- transition: transform $iui-speed-fast ease-out, background-color $iui-speed-fast ease-out,
72
- opacity $iui-speed-fast ease-out;
73
- }
74
- }
75
-
76
- // #region Unchecked toggle switch
77
- background-color: var(--iui-color-background-1);
78
- border-color: rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-4));
79
- @media (forced-colors: active) {
80
- border-color: CanvasText;
81
- }
82
-
83
- &::after {
84
- background-color: var(--iui-color-foreground-body);
85
- opacity: var(--iui-opacity-2);
86
- @media (forced-colors: active) {
87
- background-color: CanvasText;
88
- opacity: 1;
89
- }
90
- }
91
-
92
- &:hover {
93
- border-color: rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-2));
94
- @media (forced-colors: active) {
95
- border-color: CanvasText;
96
- }
97
- }
98
-
99
- @include focus-visible {
100
- border-color: rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-2));
101
- }
102
- // #endregion Unchecked toggle switch
103
-
104
- // #region Checked toggle switch
105
- &:checked {
106
- background-color: var(--iui-color-background-primary);
107
- border-color: var(--iui-color-background-primary);
108
- @media (forced-colors: active) {
109
- background-color: Highlight;
110
- border-color: Highlight;
111
- }
112
-
113
- &::after {
114
- transform: translateX($iui-toggle-switch-handle-size + $iui-toggle-switch-handle-offset);
115
- background-color: var(--iui-color-foreground-accessory);
116
- opacity: var(--iui-opacity-2);
117
- @media (forced-colors: active) {
118
- background-color: HighlightText;
119
- opacity: 1;
120
- }
121
- }
122
-
123
- ~ .iui-toggle-switch-icon {
124
- opacity: var(--iui-opacity-1);
125
- }
126
- }
127
- // #endregion Checked toggle switch
128
-
129
- // #region Focused or hovered toggle switch
130
- &:hover::after {
131
- opacity: var(--iui-opacity-1);
132
- }
133
-
134
- @include focus-visible {
135
- &::after {
136
- opacity: var(--iui-opacity-1);
137
- }
138
- }
139
- // #endregion Focused or hovered toggle switch
140
-
141
- // #region Disabled toggle switch
142
- &:disabled {
143
- cursor: not-allowed;
144
- background-color: var(--iui-color-background-disabled);
145
- border-color: var(--iui-color-background-disabled);
146
- @media (forced-colors: active) {
147
- border-color: GrayText;
148
- }
149
-
150
- &::after {
151
- background-color: var(--iui-color-foreground-body);
152
- opacity: var(--iui-opacity-5);
153
-
154
- @media (forced-colors: active) {
155
- background-color: GrayText;
156
- opacity: 0.75;
157
- }
158
- }
159
-
160
- ~ .iui-toggle-switch-icon {
161
- opacity: 0;
162
- fill: var(--iui-icons-color-actionable);
163
- }
164
-
165
- &:checked {
166
- @media (forced-colors: active) {
167
- background-color: GrayText;
168
- }
169
-
170
- &::after {
171
- @media (forced-colors: active) {
172
- background-color: Canvas;
173
- }
174
- }
175
-
176
- ~ .iui-toggle-switch-icon {
177
- opacity: var(--iui-opacity-5);
178
- @media (forced-colors: active) {
179
- fill: Canvas;
180
- opacity: 0.75;
181
- }
182
- }
183
- }
184
- }
185
- // #endregion Disabled toggle switch
186
-
187
- &-icon {
188
- opacity: 0;
189
- grid-area: toggle;
190
- width: $iui-toggle-switch-handle-size;
191
- height: $iui-toggle-switch-handle-size;
192
- padding: $iui-toggle-switch-handle-size * 0.125;
193
- margin: $iui-toggle-switch-handle-offset + $iui-toggle-switch-border-thickness;
194
- display: flex;
195
- z-index: 1;
196
- transition: opacity $iui-speed-fast ease-out;
197
- pointer-events: none;
198
- fill: var(--iui-color-foreground-accessory);
199
- @media (forced-colors: active) {
200
- fill: HighlightText;
201
- }
202
- }
203
- }
@@ -1,24 +0,0 @@
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
- // Statics version of hidden/visible animation handling
6
- .iui-tooltip-container {
7
- width: fit-content;
8
- height: fit-content;
9
- position: relative;
10
-
11
- > .iui-tooltip {
12
- @include iui-tooltip-hidden;
13
- }
14
-
15
- > .iui-tooltip.iui-tooltip-visible,
16
- &:hover > .iui-tooltip {
17
- @include iui-tooltip-visible;
18
- }
19
- }
20
-
21
- // Styling tooltip only
22
- .iui-tooltip {
23
- @include iui-tooltip;
24
- }
@@ -1,3 +0,0 @@
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 './tooltip';
@@ -1,40 +0,0 @@
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 '../utils/index';
5
-
6
- @mixin iui-tooltip {
7
- @include iui-reset;
8
- display: block;
9
- text-align: center;
10
- border-radius: $iui-border-radius;
11
- font-size: $iui-font-size-small;
12
- overflow: hidden;
13
- max-width: 400px;
14
- width: max-content;
15
- overflow-wrap: break-word;
16
- box-sizing: content-box;
17
- padding: round($iui-baseline * 0.33) $iui-s;
18
- z-index: 999;
19
- box-shadow: $iui-elevation-8;
20
- pointer-events: none;
21
- background-color: rgba(0, 0, 0, var(--iui-opacity-3));
22
- color: var(--iui-color-foreground-accessory);
23
- border: 1px solid rgba(var(--iui-color-foreground-accessory-rgb), var(--iui-opacity-4));
24
- }
25
-
26
- @mixin iui-tooltip-hidden {
27
- position: absolute;
28
- visibility: hidden;
29
- user-select: none;
30
- opacity: 0;
31
- /// Following this guide for animation on exit hover: https://greywyvern.com/?post=337
32
- @media (prefers-reduced-motion: no-preference) {
33
- transition: visibility $iui-speed-instant linear $iui-speed-fast, opacity $iui-speed-fast ease-out;
34
- }
35
- }
36
-
37
- @mixin iui-tooltip-visible {
38
- visibility: visible;
39
- opacity: 1;
40
- }
@@ -1,19 +0,0 @@
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-tree {
6
- @include iui-tree;
7
- }
8
-
9
- .iui-sub-tree {
10
- @include iui-sub-tree;
11
- }
12
-
13
- .iui-tree-item {
14
- @include iui-tree-item;
15
- }
16
-
17
- .iui-tree-node {
18
- @include iui-tree-node;
19
- }
@@ -1,3 +0,0 @@
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 './tree';
@@ -1,126 +0,0 @@
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 '../icon/index';
5
- @import '../utils/index';
6
-
7
- $iui-active-outline: thin solid var(--iui-color-foreground-primary);
8
- $iui-expander-inline-padding: $iui-component-offset + $iui-xxs + 1px; // margin + padding + border
9
- $iui-expander-button-width: ($iui-icons-default) + ($iui-expander-inline-padding * 2); // icon width + inline padding on both sides
10
-
11
- @mixin iui-tree {
12
- @include iui-reset;
13
- list-style: none;
14
- }
15
-
16
- @mixin iui-sub-tree {
17
- @include iui-reset;
18
- list-style: none;
19
- }
20
-
21
- @mixin iui-tree-item {
22
- @include focus-visible {
23
- outline: none;
24
-
25
- > .iui-tree-node {
26
- outline: 1px solid var(--iui-color-foreground-primary);
27
- outline-offset: -1px;
28
-
29
- &.iui-active {
30
- outline: 2px solid var(--iui-color-foreground-primary);
31
- outline-offset: -2px;
32
- }
33
- }
34
- }
35
- }
36
-
37
- @mixin iui-tree-node {
38
- display: flex;
39
- cursor: pointer;
40
- padding: 0 $iui-s;
41
- align-items: center;
42
-
43
- &-checkbox {
44
- margin-right: $iui-s;
45
- }
46
-
47
- &-content {
48
- display: flex;
49
- align-items: center;
50
- min-height: $iui-baseline * 3;
51
- margin-left: calc(#{$iui-expander-button-width} * (var(--level, 0)));
52
- overflow: hidden;
53
- padding-left: $iui-xxs;
54
-
55
- &-icon {
56
- @include iui-icons-default;
57
- margin: 0 $iui-expander-inline-padding;
58
- flex-shrink: 0;
59
-
60
- &:first-child {
61
- margin-left: $iui-expander-button-width + $iui-expander-inline-padding;
62
- }
63
- }
64
-
65
- &-expander-icon {
66
- @media (prefers-reduced-motion: no-preference) {
67
- transition: transform $iui-speed-fast ease-out;
68
- }
69
-
70
- &-expanded {
71
- transform: rotate(90deg);
72
- }
73
- }
74
-
75
- &-label {
76
- min-width: 0;
77
- padding-left: $iui-expander-inline-padding;
78
-
79
- &:first-child {
80
- margin-left: $iui-expander-button-width;
81
- }
82
- }
83
-
84
- &-title,
85
- &-caption {
86
- white-space: nowrap;
87
- overflow: hidden;
88
- text-overflow: ellipsis;
89
- }
90
-
91
- &-title {
92
- font-size: $iui-font-size;
93
- }
94
-
95
- &-caption {
96
- font-size: $iui-font-size-small;
97
- color: var(--iui-text-color-muted);
98
- }
99
- }
100
-
101
- &:hover {
102
- background-color: rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-6));
103
-
104
- .iui-tree-node-content-caption {
105
- color: var(--iui-color-foreground-body);
106
- transition: color $iui-speed-fast ease;
107
- }
108
- }
109
-
110
- &.iui-active {
111
- background-color: rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-5));
112
- outline: $iui-active-outline;
113
- outline-offset: -1px;
114
- }
115
-
116
- &.iui-disabled {
117
- cursor: not-allowed;
118
- outline: none;
119
- background-color: transparent;
120
- color: var(--iui-text-color-placeholder);
121
-
122
- .iui-tree-node-content-caption {
123
- color: var(--iui-text-color-placeholder);
124
- }
125
- }
126
- }
@@ -1,6 +0,0 @@
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
- @import './input-container/classes';
5
- @import './notification-marker/classes';
6
- @import './popover/classes';
@@ -1,6 +0,0 @@
1
- // Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2
- // See LICENSE.md in the project root for license terms and full copyright notice.
3
- @import './input-container/index';
4
- @import './mixins';
5
- @import './notification-marker/index';
6
- @import './popover/index';
@@ -1,39 +0,0 @@
1
- // Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2
- // See LICENSE.md in the project root for license terms and full copyright notice.
3
- @import './index';
4
-
5
- .iui-input-container {
6
- @include iui-input-container;
7
-
8
- > .iui-label {
9
- @include iui-input-container-label;
10
- }
11
-
12
- .iui-input-icon {
13
- @include iui-input-icon;
14
- }
15
-
16
- .iui-message {
17
- @include iui-input-message;
18
- }
19
-
20
- &.iui-inline-icon > .iui-input-icon {
21
- @include iui-input-icon-inline;
22
- }
23
-
24
- &.iui-inline-label {
25
- > .iui-label {
26
- @include iui-input-label-inline;
27
- }
28
- }
29
-
30
- @each $status in positive, negative, warning {
31
- &.iui-#{$status} {
32
- @include iui-input-status($status: $status);
33
- }
34
- }
35
- }
36
-
37
- .iui-input-label {
38
- @include iui-input-label;
39
- }
@@ -1,3 +0,0 @@
1
- // Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2
- // See LICENSE.md in the project root for license terms and full copyright notice.
3
- @import './input-container';