@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
package/css/textarea.css DELETED
@@ -1,96 +0,0 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
5
- .iui-textarea{
6
- margin:0;
7
- padding:0;
8
- border:none;
9
- vertical-align:baseline;
10
- width:100%;
11
- font-family:inherit;
12
- font-size:14px;
13
- font-weight:400;
14
- line-height:22px;
15
- border-radius:4px;
16
- -webkit-appearance:none;
17
- -moz-appearance:none;
18
- appearance:none;
19
- padding:7px 12px;
20
- min-height:38px;
21
- color:var(--iui-text-color);
22
- background-color:var(--iui-color-background-1);
23
- border:1px solid rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-4));
24
- resize:vertical;
25
- min-height:38px;
26
- }
27
- .iui-textarea:focus-visible{
28
- outline:2px solid var(--iui-color-foreground-primary);
29
- outline-offset:-2px;
30
- }
31
- @supports not selector(*:focus-visible){
32
- .iui-textarea:focus{
33
- outline:2px solid var(--iui-color-foreground-primary);
34
- outline-offset:-2px;
35
- }
36
- }
37
- @media (prefers-reduced-motion: no-preference){
38
- .iui-textarea{
39
- transition:border-color 0.2s ease-out;
40
- }
41
- }
42
- .iui-textarea.iui-small{
43
- padding-top:1.5px;
44
- padding-bottom:1.5px;
45
- min-height:27px;
46
- }
47
- .iui-textarea.iui-large{
48
- padding-top:12.5px;
49
- padding-bottom:12.5px;
50
- min-height:49px;
51
- font-size:16px;
52
- }
53
- .iui-textarea::-moz-placeholder{
54
- -moz-user-select:none;
55
- user-select:none;
56
- color:var(--iui-text-color-placeholder);
57
- }
58
- .iui-textarea:-ms-input-placeholder{
59
- -ms-user-select:none;
60
- user-select:none;
61
- color:var(--iui-text-color-placeholder);
62
- }
63
- .iui-textarea::placeholder{
64
- -webkit-user-select:none;
65
- -moz-user-select:none;
66
- -ms-user-select:none;
67
- user-select:none;
68
- color:var(--iui-text-color-placeholder);
69
- }
70
- .iui-textarea:-webkit-autofill{
71
- border-color:rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-1));
72
- color:rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-1));
73
- background:linear-gradient(rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-6)), rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-6))), linear-gradient(var(--iui-color-background-1), var(--iui-color-background-1));
74
- }
75
- .iui-textarea:autofill{
76
- border-color:rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-1));
77
- color:rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-1));
78
- background:linear-gradient(rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-6)), rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-6))), linear-gradient(var(--iui-color-background-1), var(--iui-color-background-1));
79
- }
80
- .iui-textarea:hover{
81
- border-color:rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-2));
82
- }
83
- @media (prefers-reduced-motion: no-preference){
84
- .iui-textarea:hover{
85
- transition:border-color 0.2s ease-out;
86
- }
87
- }
88
- .iui-textarea[disabled]{
89
- background-color:var(--iui-color-background-disabled);
90
- border-color:var(--iui-color-background-disabled);
91
- cursor:not-allowed;
92
- --_hover-color:var(--iui-color-background-disabled);
93
- }
94
- .iui-textarea[disabled], .iui-textarea[readonly]{
95
- resize:none;
96
- }
@@ -1,89 +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 '../icon/index';
6
- @import '../utils/index';
7
- @import '../button/index';
8
-
9
- @mixin iui-alert {
10
- @include iui-reset;
11
- border-radius: $iui-border-radius;
12
- display: flex;
13
- align-items: center;
14
- border: 1px solid var(--iui-color-background-5);
15
- color: var(--iui-text-color);
16
- background-color: var(--iui-color-background-1);
17
- @media (forced-colors: active) {
18
- background-color: Canvas;
19
- }
20
-
21
- &.iui-sticky {
22
- border-radius: 0;
23
- position: sticky;
24
- top: 0;
25
- left: 0;
26
- }
27
- }
28
-
29
- @mixin iui-alert-icon {
30
- @include iui-icons-default;
31
- flex-shrink: 0;
32
- margin-left: $iui-m;
33
- }
34
-
35
- @mixin iui-alert-message {
36
- margin: $iui-baseline $iui-m;
37
- }
38
-
39
- @mixin iui-alert-link {
40
- @include iui-anchor-underline('on-initial');
41
- border-radius: $iui-border-radius;
42
- cursor: pointer;
43
- margin-left: $iui-s;
44
- user-select: none;
45
- white-space: nowrap;
46
- }
47
-
48
- @mixin iui-alert-button {
49
- @include iui-button;
50
- @include iui-button-borderless;
51
- @include iui-button-size(small, borderless);
52
- margin-left: auto;
53
- margin-right: $iui-s;
54
- }
55
-
56
- @mixin iui-alert-button-icon {
57
- @include iui-button-icon;
58
- margin-left: $iui-component-offset;
59
- margin-right: $iui-component-offset;
60
- }
61
-
62
- /// Modifier mixin to categorize the alert
63
- /// @arg $statusColor Can be one of: positive, negative, warning, primary
64
- /// @arg $rootSelector Selector of the root alert element. Defaults to .iui-alert
65
- @mixin iui-alert-category($statusColor, $rootSelector: '.iui-alert') {
66
- @include iui-alert;
67
- background: linear-gradient(
68
- rgba(var(--iui-color-foreground-#{$statusColor}-rgb), var(--iui-opacity-6)),
69
- rgba(var(--iui-color-foreground-#{$statusColor}-rgb), var(--iui-opacity-6))
70
- ),
71
- linear-gradient(var(--iui-color-background-1), var(--iui-color-background-1));
72
- border-color: var(--iui-color-foreground-#{$statusColor});
73
-
74
- #{$rootSelector}-icon {
75
- fill: var(--iui-icons-color-#{$statusColor});
76
- }
77
-
78
- #{$rootSelector}-message {
79
- @include iui-text-selection($statusColor);
80
- }
81
-
82
- #{$rootSelector}-link {
83
- @include iui-anchor-status($statusColor);
84
- }
85
-
86
- #{$rootSelector}-button {
87
- outline-color: var(--iui-color-foreground-#{$statusColor});
88
- }
89
- }
@@ -1,33 +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-alert {
6
- @include iui-alert;
7
- }
8
-
9
- @each $status in positive, negative, warning, informational {
10
- .iui-alert-#{$status} {
11
- @include iui-alert-category($statusColor: if($status == informational, 'primary', $status));
12
- }
13
- }
14
-
15
- .iui-alert-icon {
16
- @include iui-alert-icon;
17
- }
18
-
19
- .iui-alert-message {
20
- @include iui-alert-message;
21
- }
22
-
23
- .iui-alert-link {
24
- @include iui-alert-link;
25
- }
26
-
27
- .iui-alert-button {
28
- @include iui-alert-button;
29
- }
30
-
31
- .iui-alert-button-icon {
32
- @include iui-alert-button-icon;
33
- }
@@ -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 './alert';
@@ -1,78 +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-anchor {
7
- @include iui-anchor-status('primary');
8
- border-radius: $iui-border-radius;
9
- cursor: pointer;
10
-
11
- @include iui-anchor-underline('on-hover');
12
-
13
- @media (prefers-contrast: more) {
14
- @include iui-anchor-underline('on-initial');
15
- }
16
-
17
- @at-root {
18
- .iui-theme-light &,
19
- .iui-theme-dark & {
20
- @include iui-anchor-underline('on-hover');
21
- }
22
- }
23
-
24
- @at-root {
25
- .iui-theme-light-hc &,
26
- .iui-theme-dark-hc & {
27
- @include iui-anchor-underline('on-initial');
28
- }
29
- }
30
- }
31
-
32
- @mixin iui-anchor-external {
33
- --_iui-anchor-external-svg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='m16 0v5.4l-1.9-2-8.4 8.4-1.5-1.5 8.3-8.4-1.9-1.9m5.4 16v-9h-1v8h-14v-14h8v-1h-9v16z' /></svg>");
34
-
35
- &::after {
36
- content: '';
37
- display: inline-block;
38
- width: 1.5ch;
39
- height: 1.5ch;
40
- margin-left: 0.5ch;
41
- vertical-align: -0.1ch;
42
- background-color: currentColor;
43
- mask: var(--_iui-anchor-external-svg);
44
- @media (forced-colors: active) {
45
- background-color: LinkText;
46
- }
47
- }
48
- }
49
-
50
- @mixin iui-anchor-status($status: primary) {
51
- @include iui-focus($color: var(--iui-color-foreground-#{$status}), $offset: 1px);
52
- color: var(--iui-color-foreground-#{$status});
53
- -webkit-tap-highlight-color: rgba(var(--iui-color-foreground-#{$status}-rgb), var(--iui-opacity-5));
54
- @if $status != primary {
55
- @include iui-text-selection($status);
56
- }
57
-
58
- &:hover {
59
- color: var(--iui-color-foreground-#{$status}-overlay);
60
- }
61
- }
62
-
63
- /// $behavior should be one of: 'on-hover' or 'on-initial'
64
- @mixin iui-anchor-underline($behavior: 'on-hover') {
65
- @if $behavior == 'on-hover' {
66
- text-decoration: none;
67
-
68
- &:hover {
69
- text-decoration: underline;
70
- }
71
- } @else {
72
- text-decoration: underline;
73
-
74
- &:hover {
75
- text-decoration: none;
76
- }
77
- }
78
- }
@@ -1,11 +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-anchor {
6
- @include iui-anchor;
7
-
8
- &-external {
9
- @include iui-anchor-external;
10
- }
11
- }
@@ -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 './anchor';
@@ -1,23 +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-avatar-size($size: $iui-icons-xl, $font-size: $iui-font-size-leading) {
6
- width: $size;
7
- height: $size;
8
-
9
- @if ($size == $iui-icons-xl) {
10
- --_iui-avatar-status-size: #{$iui-xs * 1.5};
11
- } @else if ($size == $iui-icons-large) {
12
- --_iui-avatar-status-size: #{$iui-xs};
13
- } @else if ($size == $iui-icons-xxl) {
14
- --_iui-avatar-status-size: #{$iui-s};
15
- } @else {
16
- --_iui-avatar-status-size: #{$iui-sm};
17
- }
18
-
19
- > .iui-initials {
20
- line-height: $size;
21
- font-size: $font-size;
22
- }
23
- }
@@ -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';