@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,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,102 +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
- }
61
-
62
- @at-root {
63
- .iui-vertical & {
64
- .iui-tab.iui-active {
65
- border-right-color: transparent;
66
- }
67
-
68
- :not(:first-child) .iui-tab {
69
- border-top: none;
70
- }
71
-
72
- ~ .iui-tabs-content {
73
- margin-left: -1px;
74
- }
75
- }
76
- }
77
-
78
- &.iui-large {
79
- .iui-tab {
80
- min-height: $iui-component-height-large;
81
- }
82
-
83
- .iui-tab-description {
84
- display: -webkit-box; /* stylelint-disable-line */
85
- }
86
- }
87
-
88
- &.iui-green .iui-tab::after {
89
- @include themed {
90
- background-color: t(iui-color-foreground-positive);
91
- }
92
- }
93
-
94
- ~ .iui-tabs-content {
95
- padding-left: $iui-m;
96
- padding-right: $iui-m;
97
- @include themed {
98
- background-color: t(iui-color-background-1);
99
- border: 1px solid t(iui-color-background-5);
100
- }
101
- }
102
- }
@@ -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';