@itwin/itwinui-css 0.63.1 → 1.0.0-dev.2

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 (244) hide show
  1. package/README.md +1 -4
  2. package/css/alert.css +291 -173
  3. package/css/all.css +4355 -6315
  4. package/css/anchor.css +3 -7
  5. package/css/avatar.css +226 -0
  6. package/css/backdrop.css +6 -4
  7. package/css/badge.css +8 -8
  8. package/css/blockquote.css +6 -9
  9. package/css/breadcrumbs.css +94 -156
  10. package/css/button.css +258 -365
  11. package/css/carousel.css +20 -26
  12. package/css/checkbox.css +152 -0
  13. package/css/code.css +14 -23
  14. package/css/color-picker.css +36 -77
  15. package/css/date-picker.css +59 -147
  16. package/css/dialog.css +25 -29
  17. package/css/expandable-block.css +36 -80
  18. package/css/fieldset.css +7 -12
  19. package/css/file-upload.css +15 -44
  20. package/css/footer.css +11 -19
  21. package/css/global.css +49 -671
  22. package/css/header.css +324 -408
  23. package/css/information-panel.css +39 -47
  24. package/css/input.css +170 -0
  25. package/css/keyboard.css +6 -10
  26. package/css/location-marker.css +32 -29
  27. package/css/menu.css +41 -43
  28. package/css/non-ideal-state.css +12 -12
  29. package/css/progress-indicator.css +37 -127
  30. package/css/radio-tile.css +70 -88
  31. package/css/radio.css +159 -0
  32. package/css/select.css +239 -0
  33. package/css/side-navigation.css +33 -57
  34. package/css/skip-to-content.css +11 -14
  35. package/css/slider.css +35 -67
  36. package/css/stepper.css +141 -0
  37. package/css/surface.css +2 -3
  38. package/css/table.css +362 -431
  39. package/css/tabs.css +58 -93
  40. package/css/tag.css +27 -46
  41. package/css/text.css +24 -26
  42. package/css/tile.css +200 -293
  43. package/css/time-picker.css +16 -26
  44. package/css/{toast-notification.css → toast.css} +50 -90
  45. package/css/toggle-switch.css +33 -80
  46. package/css/tooltip.css +6 -9
  47. package/css/tree.css +25 -49
  48. package/css/utils.css +683 -0
  49. package/css/workflow-diagram.css +67 -0
  50. package/package.json +7 -10
  51. package/css/icon.css +0 -177
  52. package/css/inputs.css +0 -1339
  53. package/css/notification-marker.css +0 -293
  54. package/css/popover.css +0 -14
  55. package/css/reset-global-styles.css +0 -50
  56. package/css/user-icon.css +0 -246
  57. package/css/wizard.css +0 -190
  58. package/scss/alert/alert.scss +0 -83
  59. package/scss/alert/classes.scss +0 -13
  60. package/scss/alert/index.scss +0 -3
  61. package/scss/anchor/anchor.scss +0 -3
  62. package/scss/anchor/classes.scss +0 -11
  63. package/scss/anchor/index.scss +0 -3
  64. package/scss/backdrop/backdrop.scss +0 -27
  65. package/scss/backdrop/classes.scss +0 -7
  66. package/scss/backdrop/index.scss +0 -3
  67. package/scss/badge/badge.scss +0 -32
  68. package/scss/badge/classes.scss +0 -7
  69. package/scss/badge/index.scss +0 -3
  70. package/scss/blockquote/blockquote.scss +0 -31
  71. package/scss/blockquote/classes.scss +0 -7
  72. package/scss/blockquote/index.scss +0 -3
  73. package/scss/breadcrumbs/breadcrumbs.scss +0 -124
  74. package/scss/breadcrumbs/classes.scss +0 -31
  75. package/scss/breadcrumbs/index.scss +0 -3
  76. package/scss/button/borderless.scss +0 -48
  77. package/scss/button/button-group.scss +0 -110
  78. package/scss/button/button-icon.scss +0 -12
  79. package/scss/button/button.scss +0 -97
  80. package/scss/button/classes.scss +0 -70
  81. package/scss/button/cta.scss +0 -31
  82. package/scss/button/default.scss +0 -59
  83. package/scss/button/disabled.scss +0 -13
  84. package/scss/button/high-visibility.scss +0 -31
  85. package/scss/button/idea.scss +0 -10
  86. package/scss/button/index.scss +0 -12
  87. package/scss/button/split-menu.scss +0 -66
  88. package/scss/carousel/carousel.scss +0 -124
  89. package/scss/carousel/classes.scss +0 -15
  90. package/scss/carousel/index.scss +0 -3
  91. package/scss/classes.scss +0 -48
  92. package/scss/code/classes.scss +0 -11
  93. package/scss/code/code.scss +0 -18
  94. package/scss/code/codeblock.scss +0 -74
  95. package/scss/code/index.scss +0 -4
  96. package/scss/color-picker/classes.scss +0 -43
  97. package/scss/color-picker/color-picker.scss +0 -274
  98. package/scss/color-picker/index.scss +0 -3
  99. package/scss/date-picker/classes.scss +0 -47
  100. package/scss/date-picker/date-picker.scss +0 -280
  101. package/scss/date-picker/index.scss +0 -3
  102. package/scss/dialog/classes.scss +0 -48
  103. package/scss/dialog/dialog.scss +0 -185
  104. package/scss/dialog/index.scss +0 -3
  105. package/scss/expandable-block/block.scss +0 -193
  106. package/scss/expandable-block/classes.scss +0 -7
  107. package/scss/expandable-block/index.scss +0 -3
  108. package/scss/fieldset/classes.scss +0 -7
  109. package/scss/fieldset/fieldset.scss +0 -35
  110. package/scss/fieldset/index.scss +0 -3
  111. package/scss/file-upload/classes.scss +0 -7
  112. package/scss/file-upload/file-upload.scss +0 -90
  113. package/scss/file-upload/index.scss +0 -3
  114. package/scss/footer/classes.scss +0 -23
  115. package/scss/footer/footer.scss +0 -62
  116. package/scss/footer/index.scss +0 -3
  117. package/scss/header/classes.scss +0 -11
  118. package/scss/header/header.scss +0 -443
  119. package/scss/header/index.scss +0 -3
  120. package/scss/icon/classes.scss +0 -27
  121. package/scss/icon/index.scss +0 -4
  122. package/scss/icon/mixins.scss +0 -78
  123. package/scss/icon/variables.scss +0 -14
  124. package/scss/index.scss +0 -46
  125. package/scss/information-panel/classes.scss +0 -27
  126. package/scss/information-panel/index.scss +0 -3
  127. package/scss/information-panel/information-panel.scss +0 -233
  128. package/scss/inputs/checkbox-radio.scss +0 -73
  129. package/scss/inputs/checkbox.scss +0 -106
  130. package/scss/inputs/classes.scss +0 -87
  131. package/scss/inputs/index.scss +0 -10
  132. package/scss/inputs/input-with-icon.scss +0 -36
  133. package/scss/inputs/input.scss +0 -80
  134. package/scss/inputs/labeled-inputs.scss +0 -382
  135. package/scss/inputs/radio.scss +0 -18
  136. package/scss/inputs/select.scss +0 -132
  137. package/scss/inputs/textarea.scss +0 -14
  138. package/scss/keyboard/classes.scss +0 -7
  139. package/scss/keyboard/index.scss +0 -3
  140. package/scss/keyboard/keyboard.scss +0 -33
  141. package/scss/location-marker/classes.scss +0 -15
  142. package/scss/location-marker/data-rich.scss +0 -58
  143. package/scss/location-marker/default.scss +0 -21
  144. package/scss/location-marker/index.scss +0 -6
  145. package/scss/location-marker/location-marker.scss +0 -13
  146. package/scss/location-marker/me.scss +0 -36
  147. package/scss/menu/classes.scss +0 -21
  148. package/scss/menu/index.scss +0 -3
  149. package/scss/menu/menu.scss +0 -205
  150. package/scss/non-ideal-state/classes.scss +0 -7
  151. package/scss/non-ideal-state/index.scss +0 -3
  152. package/scss/non-ideal-state/non-ideal-state.scss +0 -55
  153. package/scss/notification-marker/classes.scss +0 -9
  154. package/scss/notification-marker/index.scss +0 -3
  155. package/scss/notification-marker/notification-marker.scss +0 -63
  156. package/scss/popover/classes.scss +0 -7
  157. package/scss/popover/index.scss +0 -3
  158. package/scss/popover/popover.scss +0 -22
  159. package/scss/progress-indicator/classes.scss +0 -35
  160. package/scss/progress-indicator/index.scss +0 -5
  161. package/scss/progress-indicator/linear.scss +0 -126
  162. package/scss/progress-indicator/overlay.scss +0 -57
  163. package/scss/progress-indicator/radial.scss +0 -243
  164. package/scss/radio-tile/classes.scss +0 -31
  165. package/scss/radio-tile/index.scss +0 -3
  166. package/scss/radio-tile/radio-tile.scss +0 -209
  167. package/scss/reset-global-styles.scss +0 -33
  168. package/scss/side-navigation/classes.scss +0 -15
  169. package/scss/side-navigation/index.scss +0 -3
  170. package/scss/side-navigation/side-navigation.scss +0 -210
  171. package/scss/skip-to-content/classes.scss +0 -7
  172. package/scss/skip-to-content/index.scss +0 -3
  173. package/scss/skip-to-content/skip-to-content.scss +0 -41
  174. package/scss/slider/classes.scss +0 -40
  175. package/scss/slider/index.scss +0 -3
  176. package/scss/slider/slider.scss +0 -256
  177. package/scss/style/anchor.scss +0 -82
  178. package/scss/style/baseline.scss +0 -4
  179. package/scss/style/color.scss +0 -39
  180. package/scss/style/elevation.scss +0 -11
  181. package/scss/style/global.scss +0 -70
  182. package/scss/style/index.scss +0 -11
  183. package/scss/style/mixins.scss +0 -188
  184. package/scss/style/ripple.scss +0 -18
  185. package/scss/style/space.scss +0 -11
  186. package/scss/style/speed.scss +0 -8
  187. package/scss/style/theme.scss +0 -482
  188. package/scss/style/typography.scss +0 -54
  189. package/scss/style/variables.scss +0 -21
  190. package/scss/surface/classes.scss +0 -7
  191. package/scss/surface/index.scss +0 -3
  192. package/scss/surface/surface.scss +0 -18
  193. package/scss/table/classes.scss +0 -63
  194. package/scss/table/column-filter.scss +0 -37
  195. package/scss/table/condensed.scss +0 -15
  196. package/scss/table/extra-condensed.scss +0 -19
  197. package/scss/table/index.scss +0 -7
  198. package/scss/table/paginator.scss +0 -87
  199. package/scss/table/table.scss +0 -558
  200. package/scss/table/variables.scss +0 -10
  201. package/scss/tabs/borderless.scss +0 -71
  202. package/scss/tabs/classes.scss +0 -44
  203. package/scss/tabs/default.scss +0 -110
  204. package/scss/tabs/index.scss +0 -6
  205. package/scss/tabs/pill.scss +0 -48
  206. package/scss/tabs/tabs.scss +0 -220
  207. package/scss/tag/classes.scss +0 -29
  208. package/scss/tag/index.scss +0 -3
  209. package/scss/tag/tag.scss +0 -99
  210. package/scss/text/classes.scss +0 -40
  211. package/scss/text/index.scss +0 -5
  212. package/scss/text/mixins.scss +0 -42
  213. package/scss/text/muted.scss +0 -9
  214. package/scss/text/skeleton.scss +0 -46
  215. package/scss/tile/classes.scss +0 -51
  216. package/scss/tile/index.scss +0 -3
  217. package/scss/tile/tile.scss +0 -370
  218. package/scss/time-picker/classes.scss +0 -16
  219. package/scss/time-picker/index.scss +0 -3
  220. package/scss/time-picker/time-picker.scss +0 -72
  221. package/scss/toast-notification/categories.scss +0 -26
  222. package/scss/toast-notification/classes.scss +0 -98
  223. package/scss/toast-notification/index.scss +0 -4
  224. package/scss/toast-notification/toast.scss +0 -79
  225. package/scss/toggle-switch/classes.scss +0 -11
  226. package/scss/toggle-switch/index.scss +0 -3
  227. package/scss/toggle-switch/toggle-switch.scss +0 -222
  228. package/scss/tooltip/classes.scss +0 -24
  229. package/scss/tooltip/index.scss +0 -3
  230. package/scss/tooltip/tooltip.scss +0 -41
  231. package/scss/tree/classes.scss +0 -19
  232. package/scss/tree/index.scss +0 -3
  233. package/scss/tree/tree.scss +0 -138
  234. package/scss/user-icon/classes.scss +0 -27
  235. package/scss/user-icon/index.scss +0 -4
  236. package/scss/user-icon/sizes.scss +0 -22
  237. package/scss/user-icon/user-icon.scss +0 -250
  238. package/scss/variables.scss +0 -3
  239. package/scss/wizard/classes.scss +0 -27
  240. package/scss/wizard/index.scss +0 -5
  241. package/scss/wizard/long.scss +0 -19
  242. package/scss/wizard/wizard.scss +0 -160
  243. package/scss/wizard/workflow.scss +0 -43
  244. package/src/index.scss +0 -46
@@ -1,280 +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 '../surface/index';
6
-
7
- $iui-date-picker-cell-width: 40px;
8
- $iui-date-picker-cell-height: 36px;
9
- $iui-date-picker-today-circle-size: 32px;
10
-
11
- @mixin iui-date-picker {
12
- @include iui-surface;
13
- user-select: none;
14
- display: inline-grid;
15
- grid-template-columns: 1fr auto;
16
-
17
- .iui-time-picker {
18
- height: 0;
19
- min-height: 100%;
20
- }
21
- }
22
-
23
- @mixin iui-calendar-month-year {
24
- display: inline-flex;
25
- width: 100%;
26
- align-items: center;
27
- justify-content: space-between;
28
- padding: 0 $iui-xs;
29
- box-sizing: border-box;
30
- font-weight: $iui-font-weight-bold;
31
- gap: $iui-xs;
32
-
33
- > span {
34
- width: 156px;
35
- white-space: nowrap;
36
- display: inline-flex;
37
- flex-shrink: 0;
38
- align-items: center;
39
- justify-content: center;
40
- line-height: $iui-baseline * 4;
41
- }
42
- }
43
-
44
- @mixin iui-calendar-month {
45
- overflow: hidden;
46
- max-width: 15ch;
47
- text-overflow: ellipsis;
48
- white-space: nowrap;
49
- flex-shrink: 0;
50
- }
51
-
52
- @mixin iui-calendar-weekdays {
53
- line-height: $iui-date-picker-cell-height;
54
- display: flex;
55
- padding: 0 $iui-s;
56
- font-weight: $iui-font-weight-bold;
57
- @include themed {
58
- background-color: t(iui-color-background-2);
59
- }
60
-
61
- > div {
62
- white-space: nowrap;
63
- overflow: hidden;
64
- width: $iui-date-picker-cell-width;
65
- text-align: center;
66
- }
67
- }
68
-
69
- @mixin iui-calendar-week {
70
- white-space: nowrap;
71
- line-height: $iui-date-picker-cell-height;
72
- display: flex;
73
- padding: 0 $iui-s;
74
- margin-bottom: $iui-xxs;
75
- }
76
-
77
- //#region Helper mixins
78
- @mixin iui-calendar-day-base {
79
- @include iui-focus;
80
- cursor: pointer;
81
- text-align: center;
82
- width: $iui-date-picker-cell-width;
83
- height: $iui-date-picker-cell-height;
84
- border-radius: $iui-border-radius;
85
- font-variant-numeric: tabular-nums;
86
- }
87
-
88
- @mixin iui-calendar-day-base-hover {
89
- &:hover {
90
- 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
- }
95
- }
96
- }
97
-
98
- @mixin iui-calendar-day-today-base {
99
- position: relative;
100
- font-weight: $iui-font-weight-semibold;
101
-
102
- &::before {
103
- content: '';
104
- position: absolute;
105
- display: block;
106
- width: $iui-date-picker-today-circle-size;
107
- height: $iui-date-picker-today-circle-size;
108
- border-radius: $iui-border-radius-round;
109
- box-sizing: border-box;
110
- top: 50%;
111
- left: 50%;
112
- transform: translate(-50%, -50%);
113
- @include themed {
114
- border: 2px solid rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-5));
115
- }
116
- }
117
-
118
- &:hover {
119
- background-color: initial;
120
- @include themed {
121
- color: t(iui-color-foreground-primary);
122
- }
123
- }
124
-
125
- &:hover::before {
126
- @include themed {
127
- background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6));
128
- }
129
- }
130
- }
131
-
132
- @mixin iui-calendar-day-selected-base {
133
- 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
- }
138
- @include iui-focus($color: var(--iui-color-foreground-accessory), $offset: -3px);
139
- }
140
-
141
- @mixin iui-calendar-day-selected-today-base {
142
- &:hover {
143
- @include themed {
144
- background-color: t(iui-color-background-primary);
145
- color: t(iui-color-foreground-accessory);
146
- }
147
-
148
- &::before {
149
- @include themed {
150
- background-color: initial;
151
- }
152
- }
153
- }
154
-
155
- &::before {
156
- @include themed {
157
- border-color: rgba(t(iui-color-foreground-accessory-rgb), t(iui-opacity-4));
158
- }
159
- }
160
- }
161
- //#endregion Helper mixins
162
-
163
- @mixin iui-calendar-day {
164
- &,
165
- &-today {
166
- @include iui-calendar-day-base;
167
- @include iui-calendar-day-base-hover;
168
- }
169
-
170
- &-today {
171
- @include iui-calendar-day-today-base;
172
- }
173
- }
174
-
175
- @mixin iui-calendar-day-selected {
176
- &,
177
- &-today {
178
- @include iui-calendar-day-base;
179
- @include iui-calendar-day-selected-base;
180
- cursor: default;
181
- }
182
-
183
- &-today {
184
- @include iui-calendar-day-today-base;
185
- @include iui-calendar-day-selected-today-base;
186
- }
187
- }
188
-
189
- @mixin iui-calendar-day-range-start {
190
- &,
191
- &-today {
192
- @include iui-calendar-day-base;
193
- @include iui-calendar-day-selected-base;
194
-
195
- border-top-right-radius: 0;
196
- border-bottom-right-radius: 0;
197
- cursor: pointer;
198
- }
199
-
200
- &-today {
201
- @include iui-calendar-day-today-base;
202
- @include iui-calendar-day-selected-today-base;
203
- }
204
- }
205
-
206
- @mixin iui-calendar-day-range-end {
207
- &,
208
- &-today {
209
- @include iui-calendar-day-base;
210
- @include iui-calendar-day-selected-base;
211
-
212
- border-top-left-radius: 0;
213
- border-bottom-left-radius: 0;
214
- }
215
-
216
- &-today {
217
- @include iui-calendar-day-today-base;
218
- @include iui-calendar-day-selected-today-base;
219
- }
220
- }
221
-
222
- @mixin iui-calendar-day-range {
223
- &,
224
- &-today {
225
- @include iui-calendar-day-base;
226
-
227
- 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
- }
232
-
233
- &:hover {
234
- 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
- }
239
- }
240
- }
241
-
242
- &-today {
243
- @include iui-calendar-day-today-base;
244
-
245
- &: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
- }
250
-
251
- &::before {
252
- @include themed {
253
- background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-4));
254
- }
255
- }
256
- }
257
-
258
- &::before {
259
- @include themed {
260
- border-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-4));
261
- }
262
- }
263
- }
264
- }
265
-
266
- @mixin iui-calendar-day-outside-month {
267
- &,
268
- &-today {
269
- @include iui-calendar-day-base;
270
- @include iui-calendar-day-base-hover;
271
-
272
- @include themed {
273
- color: t(iui-text-color-muted);
274
- }
275
- }
276
-
277
- &-today {
278
- @include iui-calendar-day-today-base;
279
- }
280
- }
@@ -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 './date-picker';
@@ -1,48 +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-dialog-wrapper {
6
- @include iui-dialog-wrapper;
7
- }
8
-
9
- .iui-dialog {
10
- @include iui-dialog;
11
- }
12
-
13
- .iui-dialog-default {
14
- @include iui-dialog-default;
15
- @include iui-dialog-placement;
16
- }
17
-
18
- .iui-dialog-full-page {
19
- @include iui-dialog-full-page;
20
- }
21
-
22
- .iui-dialog-draggable {
23
- @include iui-dialog-draggable;
24
- }
25
-
26
- .iui-dialog-title {
27
- @include iui-dialog-title;
28
- }
29
-
30
- .iui-dialog-title-bar {
31
- @include iui-dialog-title-bar;
32
- }
33
-
34
- .iui-dialog-title-bar-filled {
35
- @include iui-dialog-title-bar-filled;
36
- }
37
-
38
- .iui-dialog-content {
39
- @include iui-dialog-content;
40
- }
41
-
42
- .iui-dialog-button-bar {
43
- @include iui-dialog-button-bar;
44
- }
45
-
46
- .iui-dialog-animation {
47
- @include iui-dialog-animation;
48
- }
@@ -1,185 +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
-
6
- $iui-dialog-width: 380px;
7
-
8
- @mixin iui-dialog-wrapper {
9
- position: relative;
10
- overflow: hidden;
11
- top: 0;
12
- left: 0;
13
- width: 100%;
14
- height: 100%;
15
- pointer-events: none;
16
- transform: translateX(0); // creates containing block for position: fixed
17
- }
18
-
19
- @mixin iui-dialog {
20
- z-index: 999;
21
- isolation: isolate;
22
- border-radius: $iui-border-radius;
23
- box-shadow: $iui-elevation-24;
24
- box-sizing: border-box;
25
- position: fixed;
26
- padding: $iui-baseline $iui-m;
27
- box-sizing: border-box;
28
- padding: $iui-baseline $iui-m;
29
- overflow: hidden;
30
- pointer-events: auto;
31
- background-color: #FFF; // IE fallback
32
- background-color: var(--iui-color-background-1);
33
- @media (forced-colors: active) {
34
- border: 1px solid;
35
- }
36
-
37
- &:not(.iui-dialog-visible) {
38
- visibility: hidden;
39
- opacity: 0;
40
- }
41
-
42
- transition: visibility $iui-speed-instant linear, opacity $iui-speed-fast ease-out;
43
- transition-delay: $iui-speed-fast, $iui-speed-instant;
44
-
45
- &.iui-dialog-visible {
46
- transition-delay: $iui-speed-instant; // remove delay for entry animation
47
- }
48
- }
49
-
50
- @mixin iui-dialog-default {
51
- max-width: Max(50%, $iui-dialog-width);
52
- min-width: $iui-dialog-width;
53
- max-height: 100vh;
54
- }
55
-
56
- @mixin iui-dialog-placement {
57
- &:not([data-iui-placement]) {
58
- left: 50%;
59
- top: 33%;
60
- transform: translate(-50%, -33%);
61
- }
62
-
63
- &[data-iui-placement='top-left'] {
64
- top: 0;
65
- left: 0;
66
- margin-left: $iui-baseline;
67
- margin-top: $iui-m;
68
- }
69
-
70
- &[data-iui-placement='top-right'] {
71
- top: 0;
72
- right: 0;
73
- margin-right: $iui-baseline;
74
- margin-top: $iui-m;
75
- }
76
-
77
- &[data-iui-placement='bottom-left'] {
78
- bottom: 0;
79
- left: 0;
80
- margin-left: $iui-baseline;
81
- margin-bottom: $iui-m;
82
- }
83
-
84
- &[data-iui-placement='bottom-right'] {
85
- bottom: 0;
86
- right: 0;
87
- margin-right: $iui-baseline;
88
- margin-bottom: $iui-m;
89
- }
90
- }
91
-
92
- @mixin iui-dialog-full-page {
93
- border-radius: 0;
94
- height: 100vh;
95
- height: 100dvh;
96
- width: 100vw;
97
- top: 0;
98
- left: 0;
99
- display: flex;
100
- flex-direction: column;
101
- will-change: transform;
102
-
103
- &:not(.iui-dialog-visible) {
104
- transform: translateY(100%);
105
- }
106
-
107
- @media (prefers-reduced-motion: no-preference) {
108
- transition: visibility $iui-speed-instant linear $iui-speed, opacity $iui-speed-instant linear $iui-speed,
109
- transform $iui-speed-fast ease-in;
110
-
111
- &.iui-dialog-visible {
112
- transition: transform $iui-speed ease-out;
113
- }
114
- }
115
- }
116
-
117
- @mixin iui-dialog-draggable {
118
- max-width: 100%;
119
- max-height: 100vh;
120
- min-width: $iui-dialog-width;
121
- min-height: 144px;
122
- display: flex;
123
- flex-direction: column;
124
- border: 1px solid var(--iui-color-background-border);
125
- }
126
-
127
- @mixin iui-dialog-animation {
128
- &-enter {
129
- transform: translateY(100%);
130
- opacity: 0;
131
- }
132
-
133
- &-enter-active {
134
- transform: translateY(0);
135
- opacity: 1;
136
- }
137
- }
138
-
139
- @mixin iui-dialog-title {
140
- display: flex;
141
- align-items: center;
142
- font-size: inherit;
143
- white-space: nowrap;
144
- overflow: hidden;
145
- text-overflow: ellipsis;
146
- line-height: 1.5;
147
- margin-right: auto;
148
- }
149
-
150
- @mixin iui-dialog-title-bar {
151
- display: flex;
152
- align-items: center;
153
- margin-bottom: $iui-baseline;
154
- box-sizing: border-box;
155
- font-size: $iui-font-size-subheading;
156
- }
157
-
158
- @mixin iui-dialog-title-bar-filled {
159
- font-size: $iui-font-size-leading;
160
- padding: round($iui-baseline * 0.5) $iui-m;
161
- margin: -#{$iui-baseline} -#{$iui-m} $iui-baseline -#{$iui-m}; // negative margin to counteract dialog padding
162
- cursor: grab;
163
- background-color: var(--iui-color-background-3);
164
- border-bottom: 1px solid var(--iui-color-background-border);
165
-
166
- &:active {
167
- cursor: grabbing;
168
- }
169
- }
170
-
171
- @mixin iui-dialog-content {
172
- flex-grow: 2;
173
- margin: 0 -#{$iui-m};
174
- padding: 0 $iui-m;
175
- overflow-y: auto;
176
- overflow-y: overlay;
177
- }
178
-
179
- @mixin iui-dialog-button-bar {
180
- margin-top: $iui-baseline;
181
- display: flex;
182
- align-items: center;
183
- justify-content: flex-end;
184
- gap: $iui-s;
185
- }
@@ -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 './dialog';
@@ -1,193 +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 '../text/mixins';
5
- @import '../icon/index';
6
-
7
- @mixin iui-expandable-block {
8
- @include iui-reset;
9
- display: flex;
10
- flex-direction: column;
11
- box-sizing: border-box;
12
- width: 100%;
13
- @include themed {
14
- background-color: t(iui-color-background-1);
15
- }
16
-
17
- > .iui-header {
18
- @include iui-focus;
19
- display: flex;
20
- align-items: center;
21
- padding: $iui-baseline $iui-sm;
22
- cursor: pointer;
23
- box-sizing: border-box;
24
- user-select: none;
25
- @media (prefers-reduced-motion: no-preference) {
26
- transition: background-color $iui-speed-fast ease-out;
27
- }
28
- @include themed {
29
- border: 1px solid t(iui-color-background-3);
30
- border-bottom-color: t(iui-color-background-4);
31
- background-color: t(iui-color-background-3);
32
- }
33
-
34
- > .iui-icon,
35
- > .iui-status-icon {
36
- display: inline-flex;
37
- flex-shrink: 0;
38
- width: $iui-icons-default;
39
- height: $iui-icons-default;
40
- }
41
-
42
- > .iui-icon {
43
- @media (prefers-reduced-motion: no-preference) {
44
- transition: transform $iui-speed-fast ease-out;
45
- }
46
- @include themed {
47
- fill: t(iui-icons-color-actionable);
48
- }
49
- }
50
-
51
- > .iui-status-icon {
52
- margin-left: $iui-sm;
53
- @include iui-icons-color;
54
- }
55
-
56
- .iui-expandable-block-label {
57
- display: flex;
58
- flex-direction: column;
59
- flex: auto;
60
- min-width: 0;
61
- margin-left: $iui-sm;
62
- @media (prefers-reduced-motion: no-preference) {
63
- transition: color $iui-speed-fast ease;
64
- }
65
- @include themed {
66
- color: t(iui-text-color);
67
- }
68
- }
69
-
70
- .iui-title,
71
- .iui-caption {
72
- white-space: nowrap;
73
- overflow: hidden;
74
- text-overflow: ellipsis;
75
- }
76
-
77
- .iui-title {
78
- font-size: $iui-font-size-leading;
79
- }
80
-
81
- .iui-caption {
82
- font-size: $iui-font-size-small;
83
- @include themed {
84
- color: t(iui-text-color-muted);
85
- }
86
- }
87
-
88
- @include iui-focus;
89
- }
90
-
91
- .iui-expandable-content {
92
- overflow: hidden;
93
- box-sizing: border-box;
94
-
95
- @include themed {
96
- border-bottom: 1px solid t(iui-color-background-4);
97
- border-right: 1px solid t(iui-color-background-4);
98
- border-left: 1px solid t(iui-color-background-4);
99
- }
100
-
101
- @include iui-transition-group;
102
-
103
- // padding should be in a separate div because otherwise it messes up height transition
104
- > div {
105
- padding: $iui-baseline $iui-sm;
106
- }
107
- }
108
-
109
- &:hover {
110
- > .iui-header {
111
- @include themed {
112
- background-color: t(iui-color-background-4);
113
- }
114
-
115
- > .iui-icon {
116
- @include themed {
117
- fill: t(iui-icons-color-actionable-hover);
118
- }
119
- }
120
-
121
- .iui-caption,
122
- .iui-title {
123
- @include themed {
124
- color: t(iui-color-foreground-body);
125
- }
126
- @media (prefers-reduced-motion: no-preference) {
127
- transition: color $iui-speed-fast ease;
128
- }
129
- }
130
- }
131
- }
132
-
133
- &.iui-expanded {
134
- > .iui-header {
135
- @include themed {
136
- background-color: t(iui-color-background-3);
137
- border-left: 1px solid t(iui-color-background-4);
138
- border-top: 1px solid t(iui-color-background-4);
139
- border-right: 1px solid t(iui-color-background-4);
140
-
141
- &:hover {
142
- @include themed {
143
- background-color: t(iui-color-background-4);
144
- }
145
- }
146
- }
147
-
148
- > .iui-icon {
149
- transform: rotate(90deg);
150
- }
151
- }
152
- }
153
-
154
- &.iui-small .iui-header {
155
- padding: ($iui-baseline * 0.5) $iui-s;
156
-
157
- > .iui-icon {
158
- width: $iui-icons-small;
159
- height: $iui-icons-small;
160
- }
161
-
162
- > .iui-expandable-block-label {
163
- margin-left: $iui-s;
164
- }
165
-
166
- > .iui-status-icon {
167
- margin-left: $iui-s;
168
- }
169
- }
170
-
171
- &.iui-borderless {
172
- &,
173
- .iui-header,
174
- .iui-expandable-content {
175
- background-color: transparent;
176
- border: initial;
177
- }
178
-
179
- .iui-header {
180
- border-radius: $iui-border-radius;
181
-
182
- &:hover {
183
- @include themed {
184
- background-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-6));
185
- }
186
- }
187
- }
188
-
189
- .iui-expandable-content > div {
190
- padding: 0;
191
- }
192
- }
193
- }
@@ -1,7 +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-expandable-block {
6
- @include iui-expandable-block;
7
- }
@@ -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 './block';