@itwin/itwinui-css 0.63.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 (243) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +1 -4
  3. package/css/alert.css +263 -145
  4. package/css/all.css +5470 -6944
  5. package/css/anchor.css +0 -4
  6. package/css/{user-icon.css → avatar.css} +52 -72
  7. package/css/badge.css +1 -1
  8. package/css/blockquote.css +2 -5
  9. package/css/breadcrumbs.css +68 -135
  10. package/css/button.css +237 -348
  11. package/css/carousel.css +10 -17
  12. package/css/checkbox.css +152 -0
  13. package/css/code.css +3 -10
  14. package/css/color-picker.css +9 -47
  15. package/css/date-picker.css +1 -60
  16. package/css/dialog.css +11 -13
  17. package/css/expandable-block.css +8 -55
  18. package/css/fieldset.css +2 -7
  19. package/css/file-upload.css +6 -36
  20. package/css/footer.css +2 -10
  21. package/css/global.css +73 -128
  22. package/css/header.css +318 -403
  23. package/css/information-panel.css +13 -22
  24. package/css/input.css +170 -0
  25. package/css/keyboard.css +1 -5
  26. package/css/location-marker.css +8 -13
  27. package/css/menu.css +14 -23
  28. package/css/non-ideal-state.css +5 -5
  29. package/css/progress-indicator.css +11 -99
  30. package/css/radio-tile.css +56 -74
  31. package/css/radio.css +159 -0
  32. package/css/select.css +236 -0
  33. package/css/side-navigation.css +15 -40
  34. package/css/skip-to-content.css +2 -5
  35. package/css/slider.css +11 -70
  36. package/css/stepper.css +141 -0
  37. package/css/surface.css +0 -1
  38. package/css/table.css +266 -353
  39. package/css/tabs.css +22 -58
  40. package/css/tag.css +8 -26
  41. package/css/text.css +7 -9
  42. package/css/tile.css +119 -231
  43. package/css/time-picker.css +3 -15
  44. package/css/{toast-notification.css → toast.css} +14 -54
  45. package/css/toggle-switch.css +17 -64
  46. package/css/tooltip.css +0 -3
  47. package/css/tree.css +9 -35
  48. package/css/utils.css +669 -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/wizard.css +0 -190
  57. package/scss/alert/alert.scss +0 -83
  58. package/scss/alert/classes.scss +0 -13
  59. package/scss/alert/index.scss +0 -3
  60. package/scss/anchor/anchor.scss +0 -3
  61. package/scss/anchor/classes.scss +0 -11
  62. package/scss/anchor/index.scss +0 -3
  63. package/scss/backdrop/backdrop.scss +0 -27
  64. package/scss/backdrop/classes.scss +0 -7
  65. package/scss/backdrop/index.scss +0 -3
  66. package/scss/badge/badge.scss +0 -32
  67. package/scss/badge/classes.scss +0 -7
  68. package/scss/badge/index.scss +0 -3
  69. package/scss/blockquote/blockquote.scss +0 -31
  70. package/scss/blockquote/classes.scss +0 -7
  71. package/scss/blockquote/index.scss +0 -3
  72. package/scss/breadcrumbs/breadcrumbs.scss +0 -124
  73. package/scss/breadcrumbs/classes.scss +0 -31
  74. package/scss/breadcrumbs/index.scss +0 -3
  75. package/scss/button/borderless.scss +0 -48
  76. package/scss/button/button-group.scss +0 -110
  77. package/scss/button/button-icon.scss +0 -12
  78. package/scss/button/button.scss +0 -97
  79. package/scss/button/classes.scss +0 -70
  80. package/scss/button/cta.scss +0 -31
  81. package/scss/button/default.scss +0 -59
  82. package/scss/button/disabled.scss +0 -13
  83. package/scss/button/high-visibility.scss +0 -31
  84. package/scss/button/idea.scss +0 -10
  85. package/scss/button/index.scss +0 -12
  86. package/scss/button/split-menu.scss +0 -66
  87. package/scss/carousel/carousel.scss +0 -124
  88. package/scss/carousel/classes.scss +0 -15
  89. package/scss/carousel/index.scss +0 -3
  90. package/scss/classes.scss +0 -48
  91. package/scss/code/classes.scss +0 -11
  92. package/scss/code/code.scss +0 -18
  93. package/scss/code/codeblock.scss +0 -73
  94. package/scss/code/index.scss +0 -4
  95. package/scss/color-picker/classes.scss +0 -43
  96. package/scss/color-picker/color-picker.scss +0 -274
  97. package/scss/color-picker/index.scss +0 -3
  98. package/scss/date-picker/classes.scss +0 -47
  99. package/scss/date-picker/date-picker.scss +0 -280
  100. package/scss/date-picker/index.scss +0 -3
  101. package/scss/dialog/classes.scss +0 -48
  102. package/scss/dialog/dialog.scss +0 -183
  103. package/scss/dialog/index.scss +0 -3
  104. package/scss/expandable-block/block.scss +0 -193
  105. package/scss/expandable-block/classes.scss +0 -7
  106. package/scss/expandable-block/index.scss +0 -3
  107. package/scss/fieldset/classes.scss +0 -7
  108. package/scss/fieldset/fieldset.scss +0 -35
  109. package/scss/fieldset/index.scss +0 -3
  110. package/scss/file-upload/classes.scss +0 -7
  111. package/scss/file-upload/file-upload.scss +0 -90
  112. package/scss/file-upload/index.scss +0 -3
  113. package/scss/footer/classes.scss +0 -23
  114. package/scss/footer/footer.scss +0 -62
  115. package/scss/footer/index.scss +0 -3
  116. package/scss/header/classes.scss +0 -11
  117. package/scss/header/header.scss +0 -443
  118. package/scss/header/index.scss +0 -3
  119. package/scss/icon/classes.scss +0 -27
  120. package/scss/icon/index.scss +0 -4
  121. package/scss/icon/mixins.scss +0 -78
  122. package/scss/icon/variables.scss +0 -14
  123. package/scss/index.scss +0 -46
  124. package/scss/information-panel/classes.scss +0 -27
  125. package/scss/information-panel/index.scss +0 -3
  126. package/scss/information-panel/information-panel.scss +0 -233
  127. package/scss/inputs/checkbox-radio.scss +0 -73
  128. package/scss/inputs/checkbox.scss +0 -106
  129. package/scss/inputs/classes.scss +0 -87
  130. package/scss/inputs/index.scss +0 -10
  131. package/scss/inputs/input-with-icon.scss +0 -36
  132. package/scss/inputs/input.scss +0 -80
  133. package/scss/inputs/labeled-inputs.scss +0 -382
  134. package/scss/inputs/radio.scss +0 -18
  135. package/scss/inputs/select.scss +0 -132
  136. package/scss/inputs/textarea.scss +0 -14
  137. package/scss/keyboard/classes.scss +0 -7
  138. package/scss/keyboard/index.scss +0 -3
  139. package/scss/keyboard/keyboard.scss +0 -33
  140. package/scss/location-marker/classes.scss +0 -15
  141. package/scss/location-marker/data-rich.scss +0 -58
  142. package/scss/location-marker/default.scss +0 -21
  143. package/scss/location-marker/index.scss +0 -6
  144. package/scss/location-marker/location-marker.scss +0 -13
  145. package/scss/location-marker/me.scss +0 -36
  146. package/scss/menu/classes.scss +0 -21
  147. package/scss/menu/index.scss +0 -3
  148. package/scss/menu/menu.scss +0 -205
  149. package/scss/non-ideal-state/classes.scss +0 -7
  150. package/scss/non-ideal-state/index.scss +0 -3
  151. package/scss/non-ideal-state/non-ideal-state.scss +0 -55
  152. package/scss/notification-marker/classes.scss +0 -9
  153. package/scss/notification-marker/index.scss +0 -3
  154. package/scss/notification-marker/notification-marker.scss +0 -63
  155. package/scss/popover/classes.scss +0 -7
  156. package/scss/popover/index.scss +0 -3
  157. package/scss/popover/popover.scss +0 -22
  158. package/scss/progress-indicator/classes.scss +0 -35
  159. package/scss/progress-indicator/index.scss +0 -5
  160. package/scss/progress-indicator/linear.scss +0 -126
  161. package/scss/progress-indicator/overlay.scss +0 -57
  162. package/scss/progress-indicator/radial.scss +0 -243
  163. package/scss/radio-tile/classes.scss +0 -31
  164. package/scss/radio-tile/index.scss +0 -3
  165. package/scss/radio-tile/radio-tile.scss +0 -209
  166. package/scss/reset-global-styles.scss +0 -33
  167. package/scss/side-navigation/classes.scss +0 -15
  168. package/scss/side-navigation/index.scss +0 -3
  169. package/scss/side-navigation/side-navigation.scss +0 -210
  170. package/scss/skip-to-content/classes.scss +0 -7
  171. package/scss/skip-to-content/index.scss +0 -3
  172. package/scss/skip-to-content/skip-to-content.scss +0 -41
  173. package/scss/slider/classes.scss +0 -40
  174. package/scss/slider/index.scss +0 -3
  175. package/scss/slider/slider.scss +0 -256
  176. package/scss/style/anchor.scss +0 -82
  177. package/scss/style/baseline.scss +0 -4
  178. package/scss/style/color.scss +0 -39
  179. package/scss/style/elevation.scss +0 -11
  180. package/scss/style/global.scss +0 -70
  181. package/scss/style/index.scss +0 -11
  182. package/scss/style/mixins.scss +0 -188
  183. package/scss/style/ripple.scss +0 -18
  184. package/scss/style/space.scss +0 -11
  185. package/scss/style/speed.scss +0 -8
  186. package/scss/style/theme.scss +0 -482
  187. package/scss/style/typography.scss +0 -54
  188. package/scss/style/variables.scss +0 -21
  189. package/scss/surface/classes.scss +0 -7
  190. package/scss/surface/index.scss +0 -3
  191. package/scss/surface/surface.scss +0 -18
  192. package/scss/table/classes.scss +0 -63
  193. package/scss/table/column-filter.scss +0 -37
  194. package/scss/table/condensed.scss +0 -15
  195. package/scss/table/extra-condensed.scss +0 -19
  196. package/scss/table/index.scss +0 -7
  197. package/scss/table/paginator.scss +0 -87
  198. package/scss/table/table.scss +0 -558
  199. package/scss/table/variables.scss +0 -10
  200. package/scss/tabs/borderless.scss +0 -71
  201. package/scss/tabs/classes.scss +0 -44
  202. package/scss/tabs/default.scss +0 -102
  203. package/scss/tabs/index.scss +0 -6
  204. package/scss/tabs/pill.scss +0 -48
  205. package/scss/tabs/tabs.scss +0 -220
  206. package/scss/tag/classes.scss +0 -29
  207. package/scss/tag/index.scss +0 -3
  208. package/scss/tag/tag.scss +0 -99
  209. package/scss/text/classes.scss +0 -40
  210. package/scss/text/index.scss +0 -5
  211. package/scss/text/mixins.scss +0 -42
  212. package/scss/text/muted.scss +0 -9
  213. package/scss/text/skeleton.scss +0 -46
  214. package/scss/tile/classes.scss +0 -51
  215. package/scss/tile/index.scss +0 -3
  216. package/scss/tile/tile.scss +0 -370
  217. package/scss/time-picker/classes.scss +0 -16
  218. package/scss/time-picker/index.scss +0 -3
  219. package/scss/time-picker/time-picker.scss +0 -72
  220. package/scss/toast-notification/categories.scss +0 -26
  221. package/scss/toast-notification/classes.scss +0 -98
  222. package/scss/toast-notification/index.scss +0 -4
  223. package/scss/toast-notification/toast.scss +0 -79
  224. package/scss/toggle-switch/classes.scss +0 -11
  225. package/scss/toggle-switch/index.scss +0 -3
  226. package/scss/toggle-switch/toggle-switch.scss +0 -222
  227. package/scss/tooltip/classes.scss +0 -24
  228. package/scss/tooltip/index.scss +0 -3
  229. package/scss/tooltip/tooltip.scss +0 -41
  230. package/scss/tree/classes.scss +0 -19
  231. package/scss/tree/index.scss +0 -3
  232. package/scss/tree/tree.scss +0 -138
  233. package/scss/user-icon/classes.scss +0 -27
  234. package/scss/user-icon/index.scss +0 -4
  235. package/scss/user-icon/sizes.scss +0 -22
  236. package/scss/user-icon/user-icon.scss +0 -250
  237. package/scss/variables.scss +0 -3
  238. package/scss/wizard/classes.scss +0 -27
  239. package/scss/wizard/index.scss +0 -5
  240. package/scss/wizard/long.scss +0 -19
  241. package/scss/wizard/wizard.scss +0 -160
  242. package/scss/wizard/workflow.scss +0 -43
  243. package/src/index.scss +0 -46
@@ -1,274 +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 '../surface/index';
5
- @import '../button/borderless';
6
-
7
- $iui-color-picker-content-width: ($iui-l * 9) + ($iui-s * 8); // (9 swatches per row) + (gaps)
8
- $iui-color-picker-max-width: ($iui-l * 10) + ($iui-s * 9); // (10 swatches per row) + (gaps)
9
- $iui-color-swatch-border-radius: 5px;
10
- $iui-inset-box-shadow: inset 0 0 0 1px rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-5));
11
- $iui-active-box-shadow: 0 0 0 $iui-xxs rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-3));
12
- $iui-hover-box-shadow: 0 0 1px $iui-xxs + 1 rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-5));
13
-
14
- @mixin iui-color-picker {
15
- --iui-color-picker-selected-color: initial;
16
-
17
- @include iui-surface;
18
- box-sizing: border-box;
19
- border-radius: $iui-border-radius;
20
- display: inline-flex;
21
- padding: $iui-baseline $iui-sm;
22
- user-select: none;
23
- overflow-y: auto;
24
- flex-direction: column;
25
- max-height: $iui-baseline * 45;
26
- @supports (overflow-y: overlay) {
27
- overflow-y: overlay;
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
- }
39
- }
40
-
41
- @mixin iui-color-swatch {
42
- --iui-color-swatch-background: initial;
43
-
44
- height: $iui-l;
45
- width: $iui-l;
46
- cursor: pointer;
47
- border-radius: $iui-color-swatch-border-radius;
48
- margin-bottom: $iui-xs;
49
- margin-right: $iui-xs;
50
- position: relative;
51
- background-color: var(--iui-color-swatch-background);
52
- forced-color-adjust: none;
53
- @include iui-transparent-background;
54
- @supports (gap: $iui-s) {
55
- margin-bottom: 0;
56
- margin-right: 0;
57
- }
58
-
59
- &::after {
60
- content: '';
61
- position: absolute;
62
- left: 0;
63
- top: 0;
64
- width: inherit;
65
- height: inherit;
66
- border-radius: inherit;
67
- background-color: inherit;
68
- box-shadow: $iui-inset-box-shadow;
69
- }
70
-
71
- &:hover {
72
- box-shadow: $iui-hover-box-shadow, $iui-inset-box-shadow;
73
- }
74
-
75
- @include iui-focus($offset: 1px, $thickness: 2px);
76
-
77
- &.iui-active {
78
- box-shadow: $iui-active-box-shadow, $iui-inset-box-shadow;
79
-
80
- &:hover {
81
- box-shadow: $iui-hover-box-shadow, $iui-inset-box-shadow, $iui-active-box-shadow;
82
- }
83
- }
84
- }
85
-
86
- @mixin iui-color-palette {
87
- //Contains the color swatches
88
- display: flex;
89
- flex-wrap: wrap;
90
- align-content: flex-start;
91
- min-height: $iui-l;
92
- min-width: $iui-l;
93
- @supports (gap: $iui-s) {
94
- gap: $iui-s;
95
- }
96
-
97
- button.iui-button.iui-borderless {
98
- height: $iui-l;
99
- width: $iui-l;
100
- padding: 0;
101
- }
102
-
103
- &-wrapper {
104
- max-width: $iui-color-picker-content-width;
105
-
106
- &:only-child {
107
- max-width: $iui-color-picker-max-width;
108
- }
109
- }
110
- }
111
-
112
- @mixin iui-color-input {
113
- display: flex;
114
- align-items: center;
115
-
116
- &-wrapper {
117
- max-width: $iui-color-picker-content-width;
118
- }
119
-
120
- .iui-button {
121
- margin-right: $iui-xs;
122
- }
123
-
124
- &-fields {
125
- display: flex;
126
- width: 100%;
127
- gap: $iui-xxs;
128
-
129
- > * {
130
- flex-grow: 1;
131
- }
132
-
133
- > *:not(:last-child) {
134
- margin-right: $iui-xxs;
135
- @supports (gap: $iui-xxs) {
136
- margin-right: 0;
137
- }
138
- }
139
-
140
- input {
141
- text-transform: uppercase;
142
- }
143
-
144
- input[type='number'] {
145
- appearance: textfield;
146
- text-align: right;
147
-
148
- &::-webkit-inner-spin-button {
149
- appearance: none;
150
- }
151
- }
152
- }
153
- }
154
-
155
- @mixin iui-color-picker-section-label {
156
- margin-bottom: $iui-baseline * 0.5;
157
- overflow: hidden;
158
- text-overflow: ellipsis;
159
- white-space: nowrap;
160
- flex-shrink: 0;
161
- }
162
-
163
- @mixin iui-color-selection-wrapper {
164
- display: flex;
165
- flex-direction: column;
166
- min-width: $iui-color-picker-content-width;
167
- }
168
-
169
- @mixin iui-color-field {
170
- --iui-color-field-hue: initial;
171
-
172
- position: relative;
173
- cursor: crosshair;
174
- width: 100%;
175
- height: $iui-baseline * 19;
176
- forced-color-adjust: none;
177
- background-image: linear-gradient(0deg, rgb(0, 0, 0), transparent),
178
- linear-gradient(90deg, rgb(255, 255, 255), var(--iui-color-field-hue));
179
-
180
- &:not(:last-child) {
181
- margin-bottom: round($iui-baseline * 0.5);
182
- }
183
- }
184
-
185
- @mixin iui-hue-slider {
186
- .iui-slider-container {
187
- .iui-slider-rail {
188
- height: $iui-s;
189
- forced-color-adjust: none;
190
- @include themed {
191
- background: linear-gradient(
192
- to right,
193
- $iui-color-system-red 0%,
194
- $iui-color-system-yellow 17%,
195
- rgb(0, 255, 0) 33%,
196
- rgb(0, 255, 255) 50%,
197
- $iui-color-system-blue 67%,
198
- $iui-color-system-magenta 83%,
199
- $iui-color-system-red 100%
200
- );
201
- }
202
- }
203
-
204
- .iui-slider-thumb {
205
- top: 7px;
206
- }
207
- }
208
- }
209
-
210
- @mixin iui-opacity-slider {
211
- .iui-slider-container {
212
- .iui-slider-rail {
213
- height: $iui-s;
214
- forced-color-adjust: none;
215
- @include iui-transparent-background($size: $iui-s);
216
-
217
- &::before {
218
- display: block;
219
- content: '';
220
- width: 100%;
221
- height: 100%;
222
- background-image: linear-gradient(to right, transparent 0%, var(--iui-color-picker-selected-color) 100%);
223
- }
224
- }
225
-
226
- .iui-slider-thumb {
227
- top: 7px;
228
- }
229
- }
230
- }
231
-
232
- @mixin iui-color-dot {
233
- --iui-color-dot-inset: initial;
234
-
235
- position: absolute;
236
- inset: var(--iui-color-dot-inset);
237
- width: $iui-m;
238
- height: $iui-m;
239
- border-radius: 50%;
240
- transform: translate(-$iui-s, -$iui-s);
241
- cursor: crosshair;
242
- box-shadow: rgba(var(--iui-color-foreground-accessory-rgb), var(--iui-opacity-1)) 0 0 0 $iui-xxs - 1,
243
- inset 0 0 0 $iui-xxs - 1 rgba(var(--iui-color-foreground-accessory-rgb), var(--iui-opacity-6));
244
- background-color: var(--iui-color-picker-selected-color);
245
-
246
- &:hover {
247
- box-shadow: $iui-hover-box-shadow;
248
- }
249
-
250
- @include iui-focus($offset: 0, $thickness: 2px);
251
- }
252
-
253
- @mixin iui-transparent-background($size: $iui-m) {
254
- background-position: 0 0, ($size * 0.5) ($size * 0.5);
255
- background-size: $size $size;
256
- @include themed {
257
- background-image: repeating-linear-gradient(
258
- 45deg,
259
- t(iui-color-background-3) 25%,
260
- transparent 25%,
261
- transparent 75%,
262
- t(iui-color-background-3) 75%,
263
- t(iui-color-background-3)
264
- ),
265
- repeating-linear-gradient(
266
- 45deg,
267
- t(iui-color-background-3) 25%,
268
- t(iui-color-background-5) 25%,
269
- t(iui-color-background-5) 75%,
270
- t(iui-color-background-3) 75%,
271
- t(iui-color-background-3)
272
- );
273
- }
274
- }
@@ -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 './color-picker';
@@ -1,47 +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-date-picker {
6
- @include iui-date-picker;
7
- }
8
-
9
- .iui-calendar-month-year {
10
- @include iui-calendar-month-year;
11
- }
12
-
13
- .iui-calendar-month {
14
- @include iui-calendar-month;
15
- }
16
-
17
- .iui-calendar-weekdays {
18
- @include iui-calendar-weekdays;
19
- }
20
-
21
- .iui-calendar-week {
22
- @include iui-calendar-week;
23
- }
24
-
25
- .iui-calendar-day {
26
- @include iui-calendar-day;
27
- }
28
-
29
- .iui-calendar-day-selected {
30
- @include iui-calendar-day-selected;
31
- }
32
-
33
- .iui-calendar-day-outside-month {
34
- @include iui-calendar-day-outside-month;
35
- }
36
-
37
- .iui-calendar-day-range-start {
38
- @include iui-calendar-day-range-start;
39
- }
40
-
41
- .iui-calendar-day-range-end {
42
- @include iui-calendar-day-range-end;
43
- }
44
-
45
- .iui-calendar-day-range {
46
- @include iui-calendar-day-range;
47
- }
@@ -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
- }