@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,10 +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
- $iui-table-density-vertical: $iui-baseline * 1.5;
6
- $iui-table-density-vertical-condensed: $iui-baseline;
7
- $iui-table-density-vertical-extra-condensed: $iui-baseline * 0.5;
8
- $iui-table-density: $iui-table-density-vertical $iui-m;
9
- $iui-table-density-condensed: $iui-table-density-vertical-condensed $iui-m;
10
- $iui-table-density-extra-condensed: $iui-table-density-vertical-extra-condensed $iui-m;
@@ -1,71 +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 './tabs';
5
-
6
- @mixin iui-tabs-borderless {
7
- .iui-tab {
8
- padding: $iui-xs ($iui-component-padding-horizontal * 2);
9
- background-color: transparent;
10
-
11
- &::after {
12
- bottom: 0;
13
- right: 0;
14
- }
15
-
16
- &:hover {
17
- @include themed {
18
- background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6));
19
- }
20
- }
21
-
22
- &.iui-active {
23
- @include themed {
24
- background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6));
25
- }
26
- }
27
- }
28
-
29
- @at-root {
30
- .iui-horizontal & ~ .iui-tabs-content {
31
- margin-top: -$iui-xxs;
32
- @include themed {
33
- border-top: $iui-xxs solid t(iui-color-background-4);
34
- }
35
- }
36
- }
37
-
38
- @at-root {
39
- .iui-vertical & ~ .iui-tabs-content {
40
- margin-left: -$iui-xxs;
41
- padding-left: $iui-sm;
42
- padding-right: $iui-sm;
43
- @include themed {
44
- border-left: $iui-xxs solid t(iui-color-background-4);
45
- }
46
- }
47
- }
48
-
49
- &.iui-green .iui-active,
50
- &.iui-green .iui-tab:hover {
51
- @include themed {
52
- background-color: rgba(t(iui-color-foreground-positive-rgb), t(iui-opacity-6));
53
- }
54
- }
55
-
56
- &.iui-large {
57
- .iui-tab {
58
- min-height: $iui-component-height-large;
59
- }
60
-
61
- .iui-tab-description {
62
- display: -webkit-box; /* stylelint-disable-line */
63
- }
64
- }
65
-
66
- .iui-tab[disabled]:hover {
67
- @include themed {
68
- background-color: transparent;
69
- }
70
- }
71
- }
@@ -1,44 +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-tabs-wrapper {
6
- display: flex;
7
- position: relative;
8
-
9
- &.iui-horizontal {
10
- @include iui-tabs-horizontal;
11
- }
12
-
13
- &.iui-vertical {
14
- @include iui-tabs-vertical;
15
- }
16
- }
17
-
18
- .iui-tabs {
19
- @include iui-tabs;
20
-
21
- &.iui-default {
22
- @include iui-tabs-default;
23
- }
24
-
25
- &.iui-borderless {
26
- @include iui-tabs-borderless;
27
- }
28
-
29
- &.iui-pill {
30
- @include iui-tabs-pill;
31
- }
32
-
33
- &.iui-animated {
34
- @include iui-tab-animated;
35
- }
36
-
37
- &.iui-not-animated {
38
- @include iui-tab-not-animated;
39
- }
40
- }
41
-
42
- .iui-tab-label {
43
- @include iui-tab-label;
44
- }
@@ -1,110 +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 './tabs';
5
-
6
- @mixin iui-tabs-default {
7
- @include iui-tab-not-animated;
8
-
9
- .iui-tab {
10
- padding: $iui-xs $iui-m;
11
- box-sizing: border-box;
12
- @include themed {
13
- background-color: t(iui-color-background-2);
14
- border: 1px solid t(iui-color-background-5);
15
- }
16
-
17
- &::after {
18
- top: 0;
19
- left: 0;
20
- }
21
-
22
- &:hover {
23
- @include themed {
24
- background-color: t(iui-color-background-1);
25
- }
26
- }
27
-
28
- &.iui-active {
29
- @include themed {
30
- background-color: t(iui-color-background-1);
31
- }
32
- }
33
-
34
- &[disabled] {
35
- @include themed {
36
- background-color: t(iui-color-background-3);
37
- }
38
- }
39
-
40
- &:focus {
41
- outline-width: 2px;
42
- outline-offset: -2px;
43
- }
44
- }
45
-
46
- @at-root {
47
- .iui-horizontal & {
48
- .iui-tab.iui-active {
49
- border-bottom-color: transparent;
50
- }
51
-
52
- :not(:first-child) .iui-tab {
53
- border-left: none;
54
- }
55
-
56
- ~ .iui-tabs-content {
57
- margin-top: -1px;
58
- }
59
-
60
- :where(.iui-button) {
61
- height: 100%;
62
- }
63
- }
64
- }
65
-
66
- @at-root {
67
- .iui-vertical & {
68
- .iui-tab.iui-active {
69
- border-right-color: transparent;
70
- }
71
-
72
- :not(:first-child) .iui-tab {
73
- border-top: none;
74
- }
75
-
76
- ~ .iui-tabs-content {
77
- margin-left: -1px;
78
- }
79
-
80
- :where(.iui-button) {
81
- width: 100%;
82
- }
83
- }
84
- }
85
-
86
- &.iui-large {
87
- .iui-tab {
88
- min-height: $iui-component-height-large;
89
- }
90
-
91
- .iui-tab-description {
92
- display: -webkit-box; /* stylelint-disable-line */
93
- }
94
- }
95
-
96
- &.iui-green .iui-tab::after {
97
- @include themed {
98
- background-color: t(iui-color-foreground-positive);
99
- }
100
- }
101
-
102
- ~ .iui-tabs-content {
103
- padding-left: $iui-m;
104
- padding-right: $iui-m;
105
- @include themed {
106
- background-color: t(iui-color-background-1);
107
- border: 1px solid t(iui-color-background-5);
108
- }
109
- }
110
- }
@@ -1,6 +0,0 @@
1
- // Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2
- // See LICENSE.md in the project root for license terms and full copyright notice.
3
- @import './tabs';
4
- @import './default';
5
- @import './borderless';
6
- @import './pill';
@@ -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 '../style/index';
4
- @import '../icon/index';
5
- @import './tabs';
6
-
7
- @mixin iui-tabs-pill {
8
- justify-content: space-evenly;
9
-
10
- > li {
11
- flex: 1 1 0;
12
-
13
- &:not(:last-child) {
14
- margin-right: $iui-xxs;
15
- }
16
- }
17
-
18
- &.iui-green .iui-tab:hover {
19
- @include themed {
20
- background-color: rgba(t(iui-color-foreground-positive-rgb), t(iui-opacity-6));
21
- }
22
- }
23
-
24
- .iui-tab {
25
- padding: $iui-xs;
26
- background-color: transparent;
27
- width: 100%;
28
- justify-content: center;
29
- border-radius: $iui-border-radius;
30
-
31
- &::after {
32
- bottom: 0;
33
- left: 0;
34
- }
35
-
36
- &:hover {
37
- @include themed {
38
- background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6));
39
- }
40
- }
41
-
42
- &[disabled]:hover {
43
- @include themed {
44
- background-color: transparent;
45
- }
46
- }
47
- }
48
- }
@@ -1,220 +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-tabs {
6
- @include iui-reset;
7
- position: relative;
8
- list-style: none;
9
- user-select: none;
10
-
11
- .iui-tab {
12
- @include iui-reset;
13
- font-family: inherit;
14
- position: relative;
15
- display: flex;
16
- align-items: center;
17
- font-size: $iui-font-size;
18
- min-height: $iui-component-height;
19
- height: 100%;
20
- cursor: pointer;
21
- transition: background-color $iui-speed-fast ease-out;
22
- @include themed {
23
- color: t(iui-text-color);
24
- }
25
-
26
- &.iui-active {
27
- @include themed {
28
- color: t(iui-color-foreground-primary);
29
- }
30
-
31
- .iui-tab-icon {
32
- @include themed {
33
- fill: t(iui-icons-color-primary);
34
- }
35
- }
36
-
37
- .iui-tab-description {
38
- @include themed {
39
- opacity: t(iui-opacity-1);
40
- }
41
- }
42
- }
43
-
44
- &[disabled] {
45
- cursor: not-allowed;
46
- @include themed {
47
- color: t(iui-text-color-muted);
48
- }
49
-
50
- .iui-tab-icon {
51
- @include themed {
52
- fill: t(iui-icons-color-actionable-disabled);
53
- }
54
- }
55
- }
56
-
57
- @include iui-focus;
58
- }
59
-
60
- .iui-tab-icon {
61
- width: $iui-icons-default;
62
- height: $iui-icons-default;
63
- flex-shrink: 0;
64
- transition: fill $iui-speed-fast ease-out;
65
- @include themed {
66
- fill: t(iui-icons-color-actionable);
67
- }
68
-
69
- + .iui-tab-label {
70
- margin-left: $iui-s;
71
- }
72
- }
73
-
74
- .iui-tab-description {
75
- display: none;
76
- font-size: $iui-font-size-small;
77
- @include themed {
78
- opacity: t(iui-opacity-3);
79
- }
80
- }
81
-
82
- &.iui-green .iui-tab {
83
- &:focus {
84
- outline-color: t(iui-color-foreground-positive);
85
- }
86
-
87
- &.iui-active {
88
- @include themed {
89
- color: t(iui-color-foreground-positive);
90
- }
91
-
92
- .iui-tab-icon {
93
- @include themed {
94
- fill: t(iui-icons-color-positive);
95
- }
96
- }
97
- }
98
- }
99
-
100
- ~ .iui-tabs-content {
101
- padding-top: $iui-baseline;
102
- padding-bottom: $iui-baseline;
103
- box-sizing: border-box;
104
- }
105
- }
106
-
107
- @mixin iui-tab-label {
108
- text-align: left;
109
- max-width: 60ch;
110
-
111
- > * {
112
- @include iui-line-clamp(3);
113
- }
114
- }
115
-
116
- @mixin iui-tabs-horizontal {
117
- flex-direction: column;
118
-
119
- .iui-tabs {
120
- display: flex;
121
- }
122
-
123
- .iui-tab {
124
- &::after {
125
- width: 100%;
126
- height: 0;
127
- }
128
-
129
- &.iui-active::after {
130
- height: $iui-xxs;
131
- }
132
- }
133
- }
134
-
135
- @mixin iui-tabs-vertical {
136
- .iui-tabs {
137
- li,
138
- .iui-tab {
139
- width: 100%;
140
- white-space: nowrap;
141
- }
142
-
143
- ~ .iui-tabs-content {
144
- flex-grow: 1;
145
- }
146
- }
147
-
148
- .iui-tab {
149
- &::after {
150
- width: 0;
151
- height: 100%;
152
- }
153
-
154
- &.iui-active::after {
155
- width: $iui-xxs;
156
- }
157
- }
158
- }
159
-
160
- @mixin iui-tab-not-animated {
161
- .iui-tab::after {
162
- content: '';
163
- position: absolute;
164
- @include themed {
165
- background-color: t(iui-color-foreground-primary);
166
- }
167
- }
168
-
169
- .iui-active::after {
170
- @media (prefers-reduced-motion: no-preference) {
171
- transition: width $iui-speed-fast ease, height $iui-speed-fast ease;
172
- }
173
- }
174
-
175
- &.iui-green .iui-tab::after {
176
- @include themed {
177
- background-color: t(iui-color-foreground-positive);
178
- }
179
- }
180
- }
181
-
182
- @mixin iui-tab-animated {
183
- &::after {
184
- position: absolute;
185
- content: ' ';
186
- @include themed {
187
- background-color: t(iui-color-foreground-primary);
188
- }
189
- }
190
-
191
- &.iui-green::after {
192
- @include themed {
193
- background-color: t(iui-color-foreground-positive);
194
- }
195
- }
196
-
197
- @at-root {
198
- .iui-horizontal &::after {
199
- top: calc(100% - #{$iui-xxs});
200
- height: $iui-xxs;
201
- left: var(--stripe-left);
202
- width: var(--stripe-width);
203
- @media (prefers-reduced-motion: no-preference) {
204
- transition: width $iui-speed-fast ease-out, left $iui-speed-fast ease-out;
205
- }
206
- }
207
- }
208
-
209
- @at-root {
210
- .iui-vertical &::after {
211
- left: calc(100% - #{$iui-xxs});
212
- width: $iui-xxs;
213
- top: var(--stripe-top);
214
- height: var(--stripe-height);
215
- @media (prefers-reduced-motion: no-preference) {
216
- transition: top $iui-speed-fast ease-out;
217
- }
218
- }
219
- }
220
- }
@@ -1,29 +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 './tag';
4
- @import '../anchor/index';
5
-
6
- .iui-tag {
7
- @include iui-tag;
8
- }
9
-
10
- .iui-tag-basic {
11
- @include iui-tag-basic;
12
- }
13
-
14
- .iui-tag-label {
15
- @include iui-tag-label;
16
- }
17
-
18
- .iui-tag-button {
19
- @include iui-tag-button;
20
- }
21
-
22
- a.iui-tag-basic {
23
- @include iui-anchor;
24
- @include iui-focus($offset: 1px);
25
- }
26
-
27
- .iui-tag-container {
28
- @include iui-tag-container;
29
- }
@@ -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 './tag';
package/scss/tag/tag.scss DELETED
@@ -1,99 +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 '../button/index';
6
-
7
- @mixin iui-tag-base {
8
- user-select: all;
9
- text-transform: lowercase;
10
- display: inline-flex;
11
- }
12
-
13
- @mixin iui-tag-basic {
14
- @include iui-tag-base;
15
-
16
- &:not(a) {
17
- @include themed {
18
- color: t(iui-text-color-muted);
19
- }
20
- }
21
- }
22
-
23
- @mixin iui-tag {
24
- @include iui-tag-base;
25
- height: $iui-baseline * 3;
26
- margin-top: $iui-component-offset;
27
- margin-bottom: $iui-component-offset;
28
- border-radius: $iui-border-radius-round;
29
- box-sizing: border-box;
30
- padding: 0 $iui-xxs;
31
- align-items: center;
32
- transition: border-color $iui-speed-fast ease-out;
33
- font-size: $iui-font-size;
34
- text-transform: none;
35
- cursor: default;
36
- -webkit-tap-highlight-color: transparent;
37
- @include themed {
38
- border: 1px solid rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-4));
39
- background-color: t(iui-color-background-1);
40
- color: t(iui-text-color);
41
- }
42
-
43
- &:hover {
44
- @include themed {
45
- border-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-1));
46
- }
47
- }
48
- }
49
-
50
- @mixin iui-tag-label {
51
- @include iui-text;
52
- white-space: nowrap;
53
- text-overflow: ellipsis;
54
- overflow: hidden;
55
- margin: 0 $iui-xs 0 $iui-s;
56
-
57
- &:only-child {
58
- margin: 0 $iui-s;
59
- }
60
- }
61
-
62
- @mixin iui-tag-button {
63
- border-radius: 50%;
64
- }
65
-
66
- @mixin iui-tag-container {
67
- @include themed {
68
- color: t(iui-text-color-muted);
69
- }
70
-
71
- > a.iui-tag-basic {
72
- margin: $iui-xxs;
73
- }
74
-
75
- > *:not(last-child) {
76
- margin-right: $iui-xs;
77
- }
78
-
79
- > .iui-tag-basic:not(:last-child)::after {
80
- content: ',';
81
- }
82
-
83
- &.iui-truncate {
84
- @include iui-line-clamp(1);
85
- }
86
-
87
- &.iui-scroll {
88
- white-space: nowrap;
89
- overflow-x: scroll;
90
- }
91
-
92
- &.iui-visible {
93
- border-radius: $iui-border-radius;
94
- padding: $iui-component-offset $iui-sm;
95
- @include themed {
96
- background-color: t(iui-color-background-3);
97
- }
98
- }
99
- }
@@ -1,40 +0,0 @@
1
- // Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2
- // See LICENSE.md in the project root for license terms and full copyright notice.
3
- @import './index';
4
- @import './mixins';
5
-
6
- .iui-text-headline {
7
- @include iui-text(headline);
8
- }
9
-
10
- .iui-text-title {
11
- @include iui-text(title);
12
- }
13
-
14
- .iui-text-subheading {
15
- @include iui-text(subheading);
16
- }
17
-
18
- .iui-text-leading {
19
- @include iui-text(leading);
20
- }
21
-
22
- .iui-text-block {
23
- @include iui-text(body);
24
- }
25
-
26
- .iui-text-small {
27
- @include iui-text(small);
28
- }
29
-
30
- .iui-text-muted {
31
- @include iui-text-muted;
32
- }
33
-
34
- .iui-skeleton {
35
- @include iui-text-skeleton;
36
- }
37
-
38
- .iui-text-spacing {
39
- @include iui-text-block-spacing;
40
- }
@@ -1,5 +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 './mixins';
4
- @import './muted';
5
- @import './skeleton';