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

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 (245) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/css/alert.css +81 -92
  3. package/css/all.css +2143 -2719
  4. package/css/anchor.css +3 -3
  5. package/css/avatar.css +46 -46
  6. package/css/backdrop.css +6 -4
  7. package/css/badge.css +8 -8
  8. package/css/blockquote.css +6 -6
  9. package/css/breadcrumbs.css +63 -52
  10. package/css/button.css +113 -135
  11. package/css/carousel.css +17 -16
  12. package/css/checkbox.css +27 -22
  13. package/css/code.css +15 -14
  14. package/css/color-picker.css +41 -44
  15. package/css/date-picker.css +59 -88
  16. package/css/dialog.css +32 -32
  17. package/css/expandable-block.css +36 -57
  18. package/css/fieldset.css +7 -7
  19. package/css/file-upload.css +20 -28
  20. package/css/footer.css +35 -35
  21. package/css/global.css +50 -617
  22. package/css/header.css +58 -51
  23. package/css/information-panel.css +38 -32
  24. package/css/input.css +64 -56
  25. package/css/keyboard.css +6 -10
  26. package/css/location-marker.css +32 -18
  27. package/css/menu.css +41 -27
  28. package/css/non-ideal-state.css +12 -12
  29. package/css/progress-indicator.css +37 -35
  30. package/css/radio-tile.css +39 -38
  31. package/css/radio.css +27 -22
  32. package/css/select.css +89 -80
  33. package/css/side-navigation.css +34 -38
  34. package/css/skip-to-content.css +11 -11
  35. package/css/slider.css +166 -55
  36. package/css/stepper.css +17 -17
  37. package/css/surface.css +2 -2
  38. package/css/table.css +180 -144
  39. package/css/tabs.css +61 -47
  40. package/css/tag.css +24 -25
  41. package/css/text.css +24 -24
  42. package/css/tile.css +160 -176
  43. package/css/time-picker.css +16 -14
  44. package/css/toast.css +49 -47
  45. package/css/toggle-switch.css +26 -26
  46. package/css/tooltip.css +6 -10
  47. package/css/tree.css +30 -35
  48. package/css/utils.css +228 -154
  49. package/css/workflow-diagram.css +8 -8
  50. package/package.json +8 -11
  51. package/css/icon.css +0 -117
  52. package/css/textarea.css +0 -96
  53. package/scss/alert/alert.scss +0 -89
  54. package/scss/alert/classes.scss +0 -33
  55. package/scss/alert/index.scss +0 -3
  56. package/scss/anchor/anchor.scss +0 -78
  57. package/scss/anchor/classes.scss +0 -11
  58. package/scss/anchor/index.scss +0 -3
  59. package/scss/avatar/avatar-sizes.scss +0 -23
  60. package/scss/avatar/avatar.scss +0 -215
  61. package/scss/avatar/classes.scss +0 -27
  62. package/scss/avatar/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 -34
  67. package/scss/badge/classes.scss +0 -7
  68. package/scss/badge/index.scss +0 -3
  69. package/scss/blockquote/blockquote.scss +0 -26
  70. package/scss/blockquote/classes.scss +0 -7
  71. package/scss/blockquote/index.scss +0 -3
  72. package/scss/breadcrumbs/breadcrumbs.scss +0 -119
  73. package/scss/breadcrumbs/classes.scss +0 -31
  74. package/scss/breadcrumbs/index.scss +0 -3
  75. package/scss/button/borderless.scss +0 -36
  76. package/scss/button/button-group.scss +0 -118
  77. package/scss/button/button.scss +0 -119
  78. package/scss/button/classes.scss +0 -80
  79. package/scss/button/default.scss +0 -51
  80. package/scss/button/idea.scss +0 -12
  81. package/scss/button/index.scss +0 -9
  82. package/scss/button/split-button.scss +0 -45
  83. package/scss/button/variant.scss +0 -44
  84. package/scss/carousel/carousel.scss +0 -113
  85. package/scss/carousel/classes.scss +0 -15
  86. package/scss/carousel/index.scss +0 -3
  87. package/scss/checkbox/checkbox.scss +0 -154
  88. package/scss/checkbox/classes.scss +0 -7
  89. package/scss/checkbox/index.scss +0 -3
  90. package/scss/classes.scss +0 -52
  91. package/scss/code/classes.scss +0 -11
  92. package/scss/code/code.scss +0 -16
  93. package/scss/code/codeblock.scss +0 -59
  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 -241
  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 -246
  100. package/scss/date-picker/index.scss +0 -3
  101. package/scss/dialog/classes.scss +0 -48
  102. package/scss/dialog/dialog.scss +0 -178
  103. package/scss/dialog/index.scss +0 -3
  104. package/scss/expandable-block/block.scss +0 -165
  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 -29
  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 -80
  112. package/scss/file-upload/index.scss +0 -3
  113. package/scss/footer/classes.scss +0 -7
  114. package/scss/footer/footer.scss +0 -55
  115. package/scss/footer/index.scss +0 -3
  116. package/scss/header/classes.scss +0 -79
  117. package/scss/header/header-buttons.scss +0 -316
  118. package/scss/header/header.scss +0 -75
  119. package/scss/header/index.scss +0 -4
  120. package/scss/icon/classes.scss +0 -27
  121. package/scss/icon/icon.scss +0 -65
  122. package/scss/icon/index.scss +0 -3
  123. package/scss/index.scss +0 -50
  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 -215
  127. package/scss/input/classes.scss +0 -15
  128. package/scss/input/index.scss +0 -4
  129. package/scss/input/input-with-icon.scss +0 -37
  130. package/scss/input/input.scss +0 -70
  131. package/scss/keyboard/classes.scss +0 -7
  132. package/scss/keyboard/index.scss +0 -3
  133. package/scss/keyboard/keyboard.scss +0 -29
  134. package/scss/location-marker/classes.scss +0 -15
  135. package/scss/location-marker/data-rich.scss +0 -49
  136. package/scss/location-marker/default.scss +0 -19
  137. package/scss/location-marker/index.scss +0 -6
  138. package/scss/location-marker/location-marker.scss +0 -11
  139. package/scss/location-marker/me.scss +0 -29
  140. package/scss/menu/classes.scss +0 -21
  141. package/scss/menu/index.scss +0 -3
  142. package/scss/menu/menu.scss +0 -185
  143. package/scss/non-ideal-state/classes.scss +0 -7
  144. package/scss/non-ideal-state/index.scss +0 -3
  145. package/scss/non-ideal-state/non-ideal-state.scss +0 -56
  146. package/scss/progress-indicator/classes.scss +0 -31
  147. package/scss/progress-indicator/index.scss +0 -5
  148. package/scss/progress-indicator/linear.scss +0 -108
  149. package/scss/progress-indicator/overlay.scss +0 -51
  150. package/scss/progress-indicator/radial.scss +0 -155
  151. package/scss/radio/classes.scss +0 -7
  152. package/scss/radio/index.scss +0 -3
  153. package/scss/radio/radio.scss +0 -18
  154. package/scss/radio-tile/classes.scss +0 -31
  155. package/scss/radio-tile/index.scss +0 -3
  156. package/scss/radio-tile/radio-tile.scss +0 -167
  157. package/scss/select/classes.scss +0 -27
  158. package/scss/select/index.scss +0 -3
  159. package/scss/select/select.scss +0 -124
  160. package/scss/side-navigation/classes.scss +0 -15
  161. package/scss/side-navigation/index.scss +0 -3
  162. package/scss/side-navigation/side-navigation.scss +0 -202
  163. package/scss/skip-to-content/classes.scss +0 -7
  164. package/scss/skip-to-content/index.scss +0 -3
  165. package/scss/skip-to-content/skip-to-content.scss +0 -40
  166. package/scss/slider/classes.scss +0 -27
  167. package/scss/slider/index.scss +0 -3
  168. package/scss/slider/slider.scss +0 -135
  169. package/scss/stepper/classes.scss +0 -32
  170. package/scss/stepper/index.scss +0 -3
  171. package/scss/stepper/stepper.scss +0 -151
  172. package/scss/style/baseline.scss +0 -4
  173. package/scss/style/color.scss +0 -39
  174. package/scss/style/elevation.scss +0 -11
  175. package/scss/style/global-variables.scss +0 -23
  176. package/scss/style/global.scss +0 -69
  177. package/scss/style/icon-sizes.scss +0 -14
  178. package/scss/style/index.scss +0 -11
  179. package/scss/style/space.scss +0 -11
  180. package/scss/style/speed.scss +0 -8
  181. package/scss/style/theme.scss +0 -443
  182. package/scss/style/typography.scss +0 -55
  183. package/scss/surface/classes.scss +0 -7
  184. package/scss/surface/index.scss +0 -3
  185. package/scss/surface/surface.scss +0 -17
  186. package/scss/table/classes.scss +0 -64
  187. package/scss/table/column-filter.scss +0 -34
  188. package/scss/table/index.scss +0 -6
  189. package/scss/table/paginator.scss +0 -79
  190. package/scss/table/sizes.scss +0 -31
  191. package/scss/table/table-densities.scss +0 -11
  192. package/scss/table/table.scss +0 -482
  193. package/scss/tabs/borderless.scss +0 -59
  194. package/scss/tabs/classes.scss +0 -44
  195. package/scss/tabs/default.scss +0 -89
  196. package/scss/tabs/index.scss +0 -6
  197. package/scss/tabs/pill.scss +0 -38
  198. package/scss/tabs/tabs.scss +0 -192
  199. package/scss/tag/classes.scss +0 -30
  200. package/scss/tag/index.scss +0 -3
  201. package/scss/tag/tag.scss +0 -89
  202. package/scss/text/classes.scss +0 -40
  203. package/scss/text/index.scss +0 -5
  204. package/scss/text/mixins.scss +0 -43
  205. package/scss/text/muted.scss +0 -7
  206. package/scss/text/skeleton.scss +0 -43
  207. package/scss/textarea/classes.scss +0 -7
  208. package/scss/textarea/index.scss +0 -3
  209. package/scss/textarea/textarea.scss +0 -15
  210. package/scss/tile/classes.scss +0 -51
  211. package/scss/tile/index.scss +0 -3
  212. package/scss/tile/tile.scss +0 -340
  213. package/scss/time-picker/classes.scss +0 -16
  214. package/scss/time-picker/index.scss +0 -3
  215. package/scss/time-picker/time-picker.scss +0 -63
  216. package/scss/toast/categories.scss +0 -22
  217. package/scss/toast/classes.scss +0 -98
  218. package/scss/toast/index.scss +0 -4
  219. package/scss/toast/toast.scss +0 -70
  220. package/scss/toggle-switch/classes.scss +0 -11
  221. package/scss/toggle-switch/index.scss +0 -3
  222. package/scss/toggle-switch/toggle-switch.scss +0 -203
  223. package/scss/tooltip/classes.scss +0 -24
  224. package/scss/tooltip/index.scss +0 -3
  225. package/scss/tooltip/tooltip.scss +0 -40
  226. package/scss/tree/classes.scss +0 -19
  227. package/scss/tree/index.scss +0 -3
  228. package/scss/tree/tree.scss +0 -126
  229. package/scss/utils/classes.scss +0 -6
  230. package/scss/utils/index.scss +0 -6
  231. package/scss/utils/input-container/classes.scss +0 -39
  232. package/scss/utils/input-container/index.scss +0 -3
  233. package/scss/utils/input-container/input-container.scss +0 -285
  234. package/scss/utils/mixins.scss +0 -171
  235. package/scss/utils/notification-marker/classes.scss +0 -9
  236. package/scss/utils/notification-marker/index.scss +0 -3
  237. package/scss/utils/notification-marker/notification-marker.scss +0 -55
  238. package/scss/utils/popover/classes.scss +0 -7
  239. package/scss/utils/popover/index.scss +0 -3
  240. package/scss/utils/popover/popover.scss +0 -21
  241. package/scss/variables.scss +0 -3
  242. package/scss/workflow-diagram/classes.scss +0 -15
  243. package/scss/workflow-diagram/index.scss +0 -3
  244. package/scss/workflow-diagram/workflow-diagram.scss +0 -64
  245. package/src/index.scss +0 -50
@@ -1,215 +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
- @import './avatar-sizes';
6
-
7
- @mixin iui-avatar {
8
- @include iui-reset;
9
- display: inline-flex;
10
- align-items: center;
11
- justify-content: center;
12
- position: relative;
13
- margin: 0;
14
- user-select: none;
15
-
16
- > .iui-stroke {
17
- display: block;
18
- position: absolute;
19
- left: 0;
20
- top: 0;
21
- width: 100%;
22
- height: 100%;
23
- margin: 0;
24
- border-radius: 50%;
25
- box-shadow: inset 0 0 0 $iui-xxs rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-6));
26
- }
27
-
28
- > .iui-initials {
29
- display: flex;
30
- justify-content: center;
31
- align-items: center;
32
- position: absolute;
33
- left: 0;
34
- top: 0;
35
- width: 100%;
36
- height: 100%;
37
- margin: 0;
38
- border-radius: 50%;
39
- font-style: normal;
40
- font-weight: $iui-font-weight-semibold;
41
- text-align: center;
42
- text-decoration: none;
43
- text-transform: uppercase;
44
- background-color: $iui-color-dataviz-celery;
45
- overflow: hidden;
46
- color: var(--iui-color-foreground-accessory);
47
- }
48
-
49
- > .iui-icon {
50
- display: inline-flex;
51
- width: 50%;
52
- height: 50%;
53
- position: absolute;
54
- fill: var(--iui-color-foreground-accessory);
55
- }
56
-
57
- > img {
58
- display: block;
59
- position: absolute;
60
- object-fit: cover;
61
- left: 0;
62
- top: 0;
63
- width: 100%;
64
- height: 100%;
65
- border-width: 0;
66
- border-radius: 50%;
67
- background-color: var(--iui-color-background-1);
68
- }
69
-
70
- > .iui-status {
71
- box-sizing: content-box;
72
- display: flex;
73
- align-items: center;
74
- justify-content: center;
75
- position: absolute;
76
- right: -$iui-xxs;
77
- bottom: -$iui-xxs;
78
- width: 25%;
79
- height: 25%;
80
- border-radius: 50%;
81
- border: $iui-xxs solid var(--iui-color-background-1);
82
- background-color: var(--iui-color-background-5);
83
-
84
- &::after {
85
- content: '';
86
- width: var(--_iui-avatar-status-size, $iui-s);
87
- height: var(--_iui-avatar-status-size, $iui-s);
88
- }
89
-
90
- &.iui-online {
91
- background-color: var(--iui-color-background-positive);
92
-
93
- &::after {
94
- mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M6,14L0,8l2-2l4,4l8-8l2,2L6,14z' /></svg>");
95
- background-color: var(--iui-color-foreground-accessory);
96
- }
97
- }
98
-
99
- &.iui-away {
100
- background-color: var(--iui-color-background-warning);
101
-
102
- &::after {
103
- mask: url("data:image/svg+xml,<svg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'><path d='m13.445 12.832-6.445-4.297v-7.535h2v6.465l5.555 3.703z' /></svg>");
104
- background-color: var(--iui-color-foreground-accessory);
105
- }
106
- }
107
-
108
- &.iui-busy {
109
- background-color: var(--iui-color-background-negative);
110
-
111
- &::after {
112
- mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><rect x='2' y='7' width='12' height='2'></rect></svg>");
113
- background-color: var(--iui-color-foreground-accessory);
114
- }
115
- }
116
-
117
- &.iui-offline {
118
- background-color: var(--iui-color-background-1);
119
- box-shadow: inset 0 0 0 1px rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-3));
120
-
121
- &::after {
122
- mask: url("data:image/svg+xml,<svg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'><path d='m12.5 2-4.5 4.5-4.5-4.5-1.5 1.5 4.5 4.5-4.5 4.5 1.5 1.5 4.5-4.5 4.5 4.5 1.5-1.5-4.5-4.5 4.5-4.5z' /></svg>");
123
- background-color: var(--iui-icons-color);
124
- }
125
- }
126
- }
127
-
128
- &.iui-avatar-count {
129
- > .iui-initials {
130
- background-color: var(--iui-color-background-3);
131
- color: var(--iui-text-color-muted);
132
- }
133
-
134
- &:focus {
135
- outline: none;
136
-
137
- > .iui-stroke {
138
- box-shadow: var(--iui-focus-box-shadow);
139
- }
140
- }
141
-
142
- &:focus-visible {
143
- outline: none;
144
- }
145
-
146
- &:focus:not(:focus-visible) {
147
- > .iui-stroke {
148
- box-shadow: inset 0 0 0 $iui-xxs rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-6));
149
- }
150
- }
151
- }
152
- }
153
-
154
- @mixin iui-avatar-list {
155
- display: inline-flex;
156
- flex-wrap: wrap;
157
-
158
- @include iui-avatar-margins;
159
-
160
- &.iui-stacked {
161
- .iui-avatar:not(:first-child) {
162
- margin-left: -$iui-xs;
163
-
164
- .iui-initials {
165
- box-shadow: 0 0 0 $iui-xs var(--iui-color-background-1);
166
- }
167
-
168
- &.iui-small {
169
- margin-left: -$iui-xxs;
170
-
171
- .iui-initials {
172
- box-shadow: 0 0 0 $iui-xxs var(--iui-color-background-1);
173
- }
174
- }
175
-
176
- &.iui-large {
177
- margin-left: -$iui-s;
178
- }
179
-
180
- &.iui-x-large {
181
- margin-left: -$iui-sm;
182
- }
183
- }
184
-
185
- &.iui-animated {
186
- @media (prefers-reduced-motion: no-preference) {
187
- .iui-avatar {
188
- transition: margin-left $iui-speed ease-out;
189
- }
190
- }
191
-
192
- &:hover {
193
- @include iui-avatar-margins;
194
- }
195
- }
196
- }
197
- }
198
-
199
- @mixin iui-avatar-margins {
200
- .iui-avatar:not(:first-child) {
201
- margin-left: $iui-xs;
202
-
203
- &.iui-small {
204
- margin-left: $iui-xxs;
205
- }
206
-
207
- &.iui-large {
208
- margin-left: $iui-s;
209
- }
210
-
211
- &.iui-x-large {
212
- margin-left: $iui-sm;
213
- }
214
- }
215
- }
@@ -1,27 +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-avatar {
6
- @include iui-avatar;
7
-
8
- &#{&} {
9
- @include iui-avatar-size;
10
- }
11
-
12
- &.iui-small {
13
- @include iui-avatar-size($size: $iui-icons-large, $font-size: $iui-font-size-small);
14
- }
15
-
16
- &.iui-large {
17
- @include iui-avatar-size($size: $iui-icons-xxl, $font-size: $iui-font-size-subheading);
18
- }
19
-
20
- &.iui-x-large {
21
- @include iui-avatar-size($size: $iui-icons-3xl, $font-size: $iui-font-size-title);
22
- }
23
- }
24
-
25
- .iui-avatar-list {
26
- @include iui-avatar-list;
27
- }
@@ -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 './avatar';
@@ -1,27 +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
-
5
- @mixin iui-backdrop {
6
- z-index: 998;
7
- isolation: isolate;
8
- position: absolute;
9
- top: 0;
10
- left: 0;
11
- width: 100%;
12
- height: 100%;
13
- background-color: rgba(0, 0, 0, 0.4); // IE fallback
14
- background-color: rgba(0, 0, 0, var(--iui-opacity-4));
15
-
16
- &:not(.iui-backdrop-visible) {
17
- visibility: hidden;
18
- opacity: 0;
19
- }
20
-
21
- transition: visibility $iui-speed-instant linear, opacity $iui-speed-fast ease-out;
22
- transition-delay: $iui-speed-fast, $iui-speed-instant;
23
-
24
- &.iui-backdrop-visible {
25
- transition-delay: $iui-speed-instant; // remove delay for entry animation
26
- }
27
- }
@@ -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-backdrop {
6
- @include iui-backdrop;
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 './backdrop';
@@ -1,34 +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
- $iui-badge-background-default: $iui-color-background-5--light;
7
- $iui-badge-background-positive: $iui-color-foreground-positive--dark;
8
- $iui-badge-background-negative: $iui-color-foreground-negative--dark;
9
- $iui-badge-background-warning: $iui-color-foreground-warning--dark;
10
- $iui-badge-background-primary: $iui-color-foreground-primary--dark;
11
- $iui-badge-horizontal-padding: $iui-xs * 1.5;
12
-
13
- $iui-badge-text-color: rgba($iui-color-foreground-body--light, $iui-opacity-3--light);
14
-
15
- @mixin iui-badge {
16
- --iui-badge-background-color: #{$iui-badge-background-default};
17
- --_iui-badge-text-color: #{$iui-badge-text-color};
18
-
19
- @include iui-reset;
20
- display: inline-block;
21
- font-size: $iui-font-size-small;
22
- padding: 0 $iui-badge-horizontal-padding;
23
- margin: round($iui-baseline * 0.5) 0;
24
- border-radius: $iui-border-radius;
25
- background-color: var(--iui-badge-background-color);
26
- color: var(--_iui-badge-text-color);
27
- text-transform: uppercase;
28
- user-select: none;
29
- max-width: calc(20ch + $iui-badge-horizontal-padding * 2);
30
- white-space: nowrap;
31
- overflow: hidden;
32
- text-overflow: ellipsis;
33
- font-weight: $iui-font-weight-semibold;
34
- }
@@ -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-badge {
6
- @include iui-badge;
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 './badge';
@@ -1,26 +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-blockquote {
7
- @include iui-reset;
8
- display: block;
9
- position: relative;
10
- padding: $iui-baseline $iui-m;
11
- margin: $iui-baseline 0;
12
- text-align: justify;
13
- box-shadow: $iui-elevation-2;
14
- border-radius: $iui-border-radius;
15
- background-color: var(--iui-color-background-1);
16
- border-left: $iui-s solid var(--iui-color-foreground-primary);
17
-
18
- > footer {
19
- text-align: right;
20
- color: var(--iui-text-color-muted);
21
-
22
- > cite {
23
- font-style: normal;
24
- }
25
- }
26
- }
@@ -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-blockquote {
6
- @include iui-blockquote;
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 './blockquote';
@@ -1,119 +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 '../anchor/index';
5
- @import '../button/borderless';
6
- @import '../utils/index';
7
-
8
- @mixin iui-breadcrumbs($breadcrumbs-height: $iui-component-height) {
9
- @include iui-reset;
10
- display: flex;
11
- align-items: center;
12
- height: $breadcrumbs-height;
13
- }
14
-
15
- @mixin iui-breadcrumbs-list {
16
- @include iui-reset;
17
- display: flex;
18
- align-items: center;
19
- list-style-type: none;
20
- user-select: none;
21
- height: 100%;
22
- }
23
-
24
- @mixin iui-breadcrumbs-item {
25
- display: flex;
26
- align-items: center;
27
- height: 100%;
28
-
29
- > * {
30
- max-width: 26ch;
31
- }
32
- }
33
-
34
- @mixin iui-breadcrumbs-item-overrides {
35
- > * {
36
- padding: 0 $iui-s;
37
- overflow: hidden;
38
- white-space: nowrap;
39
- text-overflow: ellipsis;
40
-
41
- &:not(.iui-button) {
42
- color: var(--iui-text-color);
43
- }
44
- }
45
-
46
- > :any-link {
47
- @include iui-anchor;
48
- box-sizing: border-box;
49
- line-height: $iui-component-height;
50
-
51
- &:focus {
52
- outline-offset: -1px;
53
- }
54
- }
55
-
56
- .iui-button {
57
- &.iui-button {
58
- @include iui-button-borderless;
59
- border: none;
60
- }
61
-
62
- > span {
63
- overflow: hidden;
64
- white-space: nowrap;
65
- text-overflow: ellipsis;
66
- }
67
-
68
- &:not([aria-current]) {
69
- &,
70
- &:hover,
71
- &:active {
72
- --_iui-button-text-color: var(--iui-color-foreground-primary);
73
- }
74
- }
75
- }
76
- }
77
-
78
- @mixin iui-breadcrumbs-text {
79
- padding: 0 $iui-s;
80
- overflow: hidden;
81
- white-space: nowrap;
82
- text-overflow: ellipsis;
83
- line-height: $iui-component-height;
84
-
85
- @at-root a#{&} {
86
- @include iui-anchor;
87
-
88
- &:focus {
89
- outline-offset: -1px;
90
- }
91
- }
92
- }
93
-
94
- @mixin iui-breadcrumbs-button {
95
- @include iui-button;
96
- @include iui-button-borderless;
97
- padding: 0;
98
- border: none;
99
- color: var(--iui-color-foreground-primary);
100
-
101
- &[aria-current] {
102
- color: var(--iui-text-color);
103
- }
104
- }
105
-
106
- @mixin iui-breadcrumbs-separator {
107
- display: flex;
108
- margin: 0 $iui-xxs;
109
-
110
- svg {
111
- width: $iui-icons-small;
112
- height: $iui-icons-small;
113
- display: flex; // needed for vertical alignment of webcomponents
114
- fill: var(--iui-icons-color);
115
- @media (forced-colors: active) {
116
- fill: CanvasText;
117
- }
118
- }
119
- }
@@ -1,31 +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-breadcrumbs {
6
- @include iui-breadcrumbs;
7
- }
8
-
9
- .iui-breadcrumbs-list {
10
- @include iui-breadcrumbs-list;
11
- }
12
-
13
- .iui-breadcrumbs-item {
14
- @include iui-breadcrumbs-item;
15
- }
16
-
17
- .iui-breadcrumbs-item-overrides {
18
- @include iui-breadcrumbs-item-overrides;
19
- }
20
-
21
- .iui-breadcrumbs-text {
22
- @include iui-breadcrumbs-text;
23
- }
24
-
25
- .iui-breadcrumbs-button {
26
- @include iui-breadcrumbs-button;
27
- }
28
-
29
- .iui-breadcrumbs-separator {
30
- @include iui-breadcrumbs-separator;
31
- }
@@ -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 './breadcrumbs';
@@ -1,36 +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 './button';
5
-
6
- @mixin iui-button-borderless {
7
- --_iui-button-text-color: var(--iui-text-color);
8
- --_iui-button-background-color: transparent;
9
- --_iui-button-border-color: transparent;
10
- --_iui-button-icon-margin-x: #{$iui-component-offset};
11
- @include iui-button-size(medium, borderless);
12
-
13
- &:where(:hover, :active) {
14
- --_iui-button-text-color: var(--iui-color-foreground-body);
15
- --_iui-button-background-color: rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-6));
16
- }
17
-
18
- &:where(:focus) {
19
- outline-offset: -1px;
20
- outline-width: 1px;
21
- }
22
-
23
- &:where([disabled], :disabled, [aria-disabled='true']) {
24
- --_iui-button-text-color: var(--iui-text-color-placeholder);
25
- --_iui-button-background-color: transparent;
26
- --_iui-button-border-color: transparent;
27
- }
28
- }
29
-
30
- @mixin iui-button-borderless-active {
31
- --_iui-button-background-color: rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-6));
32
-
33
- &:where([disabled], :disabled, [aria-disabled='true']) {
34
- --_iui-button-background-color: rgba(var(--iui-color-foreground-body-rgb), 0.05);
35
- }
36
- }
@@ -1,118 +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
-
5
- /// Mixin for button group or input+button combo group.
6
- /// @arg $orientation must be one of: horizontal, vertical
7
- /// Note: Vertical button-group should be used for icon buttons only.
8
- @mixin iui-button-group($orientation: horizontal) {
9
- display: inline-flex;
10
- align-items: center;
11
- isolation: isolate;
12
- pointer-events: none;
13
-
14
- @if $orientation != 'horizontal' {
15
- flex-direction: column;
16
- max-height: 100%;
17
- }
18
-
19
- $childZindexSelector: '.iui-input-container, .iui-button, .iui-input:where(:not(.iui-input-container .iui-input))';
20
- $childBorderSelector: '.iui-input, .iui-button:where(:not([data-iui-variant="borderless"]))';
21
- $disabledSelector: '&:disabled, &.iui-disabled, &[aria-disabled="true"]';
22
-
23
- > * {
24
- display: flex;
25
-
26
- > * {
27
- pointer-events: all;
28
- }
29
-
30
- #{$childZindexSelector} {
31
- position: relative;
32
-
33
- // Adds stripe to active button
34
- @if $orientation == 'horizontal' {
35
- --_iui-button-active-stripe-inset: #{$iui-xxs} #{$iui-xxs} calc(100% - #{$iui-xs});
36
- } @else {
37
- --_iui-button-active-stripe-inset: #{$iui-xxs} calc(100% - #{$iui-xs}) #{$iui-xxs} #{$iui-xxs};
38
- }
39
-
40
- &:hover {
41
- z-index: 1;
42
- }
43
-
44
- #{$disabledSelector} {
45
- z-index: -1;
46
- }
47
-
48
- &:focus,
49
- &:focus-within {
50
- &,
51
- &:where([aria-disabled='true']) {
52
- z-index: 2;
53
- }
54
- }
55
- }
56
-
57
- #{$childBorderSelector} {
58
- // Reset border radius
59
- border-radius: 0;
60
-
61
- transition-duration: 0ms; // disable exit animation to avoid border flicker
62
-
63
- &:hover,
64
- &:focus {
65
- transition-duration: $iui-speed-fast; // re-enable enter animation
66
- }
67
- }
68
-
69
- // Add rounded corners to first and last items
70
- &:first-child {
71
- #{$childBorderSelector} {
72
- border-top-left-radius: $iui-border-radius;
73
-
74
- @if $orientation == 'horizontal' {
75
- border-bottom-left-radius: $iui-border-radius;
76
- } @else {
77
- border-top-right-radius: $iui-border-radius;
78
- }
79
- }
80
- }
81
-
82
- &:last-child {
83
- #{$childBorderSelector} {
84
- border-bottom-right-radius: $iui-border-radius;
85
-
86
- @if $orientation == 'horizontal' {
87
- border-top-right-radius: $iui-border-radius;
88
- } @else {
89
- border-bottom-left-radius: $iui-border-radius;
90
- }
91
- }
92
- }
93
-
94
- // Use negative margin to make adjacent borders overlap
95
- + * {
96
- @if $orientation == 'horizontal' {
97
- margin-left: -1px;
98
- } @else {
99
- margin-top: -1px;
100
- }
101
- }
102
-
103
- // Add slight border between disabled items
104
- &:not(:first-child) :not([data-iui-variant='borderless']) {
105
- #{$disabledSelector} {
106
- @if $orientation == 'horizontal' {
107
- border-left-color: var(--iui-color-background-4);
108
- } @else {
109
- border-top-color: var(--iui-color-background-4);
110
- }
111
- }
112
- }
113
- }
114
- }
115
-
116
- @mixin iui-button-group-overflow-x {
117
- width: 100%;
118
- }