@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,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
-
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
-
13
- @if $orientation != 'horizontal' {
14
- flex-direction: column;
15
- max-height: 100%;
16
- }
17
-
18
- $childZindexSelector: '.iui-input-container, .iui-button, .iui-input:where(:not(.iui-input-container .iui-input))';
19
- $childBorderSelector: '.iui-input, .iui-button:where(:not(.iui-borderless))';
20
- $disabledSelector: '&:disabled, &.iui-disabled, &[aria-disabled="true"]';
21
-
22
- > * {
23
- display: flex;
24
-
25
- #{$childZindexSelector} {
26
- position: relative;
27
-
28
- // Adds stripe to active button
29
- @if $orientation == 'horizontal' {
30
- --_iui-button-active-stripe-inset: #{$iui-xxs} #{$iui-xxs} calc(100% - #{$iui-xs});
31
- } @else {
32
- --_iui-button-active-stripe-inset: #{$iui-xxs} calc(100% - #{$iui-xs}) #{$iui-xxs} #{$iui-xxs};
33
- }
34
-
35
- &:hover {
36
- z-index: 1;
37
- }
38
-
39
- &:focus,
40
- &:focus-within {
41
- z-index: 2;
42
- }
43
-
44
- #{$disabledSelector} {
45
- z-index: -1;
46
- }
47
- }
48
-
49
- #{$childBorderSelector} {
50
- // Reset border radius
51
- border-radius: 0;
52
-
53
- transition-duration: 0ms; // disable exit animation to avoid border flicker
54
-
55
- &:hover,
56
- &:focus {
57
- transition-duration: $iui-speed-fast; // re-enable enter animation
58
- }
59
- }
60
-
61
- // Add rounded corners to first and last items
62
- &:first-child {
63
- #{$childBorderSelector} {
64
- border-top-left-radius: $iui-border-radius;
65
-
66
- @if $orientation == 'horizontal' {
67
- border-bottom-left-radius: $iui-border-radius;
68
- } @else {
69
- border-top-right-radius: $iui-border-radius;
70
- }
71
- }
72
- }
73
-
74
- &:last-child {
75
- #{$childBorderSelector} {
76
- border-bottom-right-radius: $iui-border-radius;
77
-
78
- @if $orientation == 'horizontal' {
79
- border-top-right-radius: $iui-border-radius;
80
- } @else {
81
- border-bottom-left-radius: $iui-border-radius;
82
- }
83
- }
84
- }
85
-
86
- // Use negative margin to make adjacent borders overlap
87
- + * {
88
- @if $orientation == 'horizontal' {
89
- margin-left: -1px;
90
- } @else {
91
- margin-top: -1px;
92
- }
93
- }
94
-
95
- // Add slight border between disabled items
96
- &:not(:first-child) :where(.iui-button.iui-default) {
97
- #{$disabledSelector} {
98
- @if $orientation == 'horizontal' {
99
- border-left-color: var(--iui-color-background-4);
100
- } @else {
101
- border-top-color: var(--iui-color-background-4);
102
- }
103
- }
104
- }
105
- }
106
- }
107
-
108
- @mixin iui-button-group-overflow-x {
109
- width: 100%;
110
- }
@@ -1,12 +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
-
6
- /// Mixin for button icons
7
- @mixin iui-button-icon {
8
- width: $iui-icons-default;
9
- height: $iui-icons-default;
10
- transition: fill $iui-speed-fast ease-out;
11
- fill: currentColor;
12
- }
@@ -1,97 +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 './disabled';
6
- @import './button-icon';
7
-
8
- $iui-button-padding: $iui-xs * 4;
9
- $iui-button-padding-small: $iui-xs * 2;
10
- $iui-button-padding-large: $iui-xs * 6;
11
-
12
- @mixin iui-button {
13
- --_iui-button-active-stripe-inset: initial;
14
- --_iui-button-text-color: rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-2));
15
-
16
- @include iui-reset;
17
- font-family: inherit;
18
- display: inline-flex;
19
- align-items: center;
20
- vertical-align: middle;
21
- justify-content: center;
22
- position: relative;
23
- box-sizing: border-box;
24
- border-radius: $iui-border-radius;
25
- line-height: $iui-line-height;
26
- box-shadow: none;
27
- font-size: $iui-font-size;
28
- font-weight: $iui-font-weight-normal;
29
- text-decoration: none;
30
- user-select: none;
31
- cursor: pointer;
32
- white-space: nowrap;
33
- border: 1px solid transparent;
34
- @media (prefers-reduced-motion: no-preference) {
35
- transition: color $iui-speed-fast ease-out, background-color $iui-speed-fast ease-out,
36
- border-color $iui-speed-fast ease-out;
37
- }
38
-
39
- @include themed {
40
- color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-2));
41
- }
42
- color: var(--_iui-button-text-color);
43
-
44
- &:hover {
45
- --_iui-button-text-color: rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-1));
46
-
47
- text-decoration: none;
48
- }
49
-
50
- @include iui-focus;
51
-
52
- &[disabled],
53
- &:disabled {
54
- @include iui-button-disabled;
55
- }
56
- }
57
-
58
- @mixin iui-button-active {
59
- // Shows active stripe only if --_iui-button-active-stripe-inset is set (from outside)
60
- &::after {
61
- content: '';
62
- position: absolute;
63
- inset: var(--_iui-button-active-stripe-inset);
64
- background-color: var(--iui-color-foreground-primary);
65
- }
66
-
67
- &[disabled],
68
- &:disabled {
69
- &::after {
70
- background-color: rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-5));
71
- }
72
- }
73
- }
74
-
75
- /// Mixin for applying padding and margins to various button sizes.
76
- /// @arg size - must be one of: small, medium, large
77
- /// @arg styleType - must be one of: default, borderless
78
- @mixin iui-button-size($size: medium, $styleType: default) {
79
- @if $size == medium {
80
- padding: if($styleType == 'borderless', 0 $iui-s, 0 $iui-button-padding);
81
- height: $iui-component-height;
82
- gap: $iui-s;
83
- }
84
-
85
- @if $size == small {
86
- padding: if($styleType == 'borderless', 0 $iui-xxs, 0 $iui-button-padding-small);
87
- height: $iui-component-height-small;
88
- gap: $iui-xs;
89
- }
90
-
91
- @if $size == large {
92
- padding: if($styleType == 'borderless', 0 $iui-sm, 0 $iui-button-padding-large);
93
- height: $iui-component-height-large;
94
- font-size: $iui-font-size-leading;
95
- gap: $iui-sm;
96
- }
97
- }
@@ -1,70 +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-button {
6
- @include iui-button;
7
- @include iui-button-size;
8
-
9
- &.iui-active {
10
- @include iui-button-active;
11
- }
12
-
13
- &.iui-default {
14
- @include iui-button-default;
15
- }
16
-
17
- &.iui-high-visibility {
18
- @include iui-button-high-visibility;
19
- }
20
-
21
- &.iui-cta {
22
- @include iui-button-cta;
23
- }
24
-
25
- &.iui-idea {
26
- @include iui-button-idea;
27
- }
28
-
29
- &.iui-borderless {
30
- @include iui-button-borderless;
31
- }
32
-
33
- @include iui-button-size(medium);
34
-
35
- &.iui-small {
36
- @include iui-button-size(small);
37
-
38
- &.iui-borderless {
39
- @include iui-button-size(small, borderless);
40
- }
41
- }
42
-
43
- &.iui-large {
44
- @include iui-button-size(large);
45
-
46
- &.iui-borderless {
47
- @include iui-button-size(large, borderless);
48
- }
49
- }
50
- }
51
-
52
- .iui-button-group {
53
- @include iui-button-group;
54
-
55
- &-vertical {
56
- @include iui-button-group(vertical);
57
- }
58
-
59
- &-overflow-x {
60
- @include iui-button-group-overflow-x;
61
- }
62
- }
63
-
64
- .iui-button-split-menu {
65
- @include iui-button-split-menu;
66
- }
67
-
68
- .iui-button-icon {
69
- @include iui-button-icon;
70
- }
@@ -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 '../style/index';
4
- @import './button';
5
- @import './button-icon';
6
- @import './disabled';
7
-
8
- @mixin iui-button-cta {
9
- --_iui-button-text-color: var(--iui-color-foreground-accessory);
10
-
11
- @include themed {
12
- background-color: t(iui-color-background-positive);
13
- border-color: t(iui-color-background-positive);
14
- color: t(iui-color-foreground-accessory);
15
- }
16
- color: var(--_iui-button-text-color);
17
- @include iui-focus($color: var(--iui-color-foreground-accessory), $offset: -3px, $thickness: 1px);
18
-
19
- &:hover,
20
- &:active {
21
- @include themed {
22
- background-color: t(iui-color-background-positive-overlay);
23
- border-color: t(iui-color-background-positive-overlay);
24
- }
25
- }
26
-
27
- &[disabled],
28
- &:disabled {
29
- @include iui-button-disabled;
30
- }
31
- }
@@ -1,59 +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
- @import './button-icon';
6
- @import '../notification-marker/index';
7
- @import './disabled';
8
-
9
- @mixin iui-button-default {
10
- @include themed {
11
- background-color: t(iui-color-background-1);
12
- border-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-4));
13
- }
14
- @include iui-focus($offset: -2px, $thickness: 2px);
15
-
16
- &:hover,
17
- &:active {
18
- @include themed {
19
- background-color: t(iui-color-background-1-overlay);
20
- border-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-1));
21
- }
22
- @include iui-notification-marker-hover;
23
- }
24
-
25
- &.iui-dropdown {
26
- padding-right: $iui-s;
27
-
28
- // Sizes
29
- &.iui-small {
30
- padding-right: $iui-xs;
31
- }
32
-
33
- &.iui-large {
34
- padding-right: $iui-sm;
35
- }
36
- }
37
-
38
- &.iui-active:enabled {
39
- position: relative;
40
- @include themed {
41
- color: t(iui-color-foreground-primary);
42
- }
43
-
44
- // Used for combining overlay background color with base background
45
- &::before {
46
- content: '';
47
- position: absolute;
48
- inset: 0;
49
- @include themed {
50
- background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6));
51
- }
52
- }
53
- }
54
-
55
- &[disabled],
56
- &:disabled {
57
- @include iui-button-disabled;
58
- }
59
- }
@@ -1,13 +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-icon';
5
-
6
- @mixin iui-button-disabled {
7
- cursor: not-allowed;
8
- @include themed {
9
- background: t(iui-color-background-disabled);
10
- border-color: t(iui-color-background-disabled);
11
- color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-5));
12
- }
13
- }
@@ -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 '../style/index';
4
- @import './button';
5
- @import './disabled';
6
- @import './button-icon';
7
-
8
- @mixin iui-button-high-visibility {
9
- --_iui-button-text-color: var(--iui-color-foreground-accessory);
10
-
11
- @include themed {
12
- background-color: t(iui-color-background-primary);
13
- border-color: t(iui-color-background-primary);
14
- color: t(iui-color-foreground-accessory);
15
- }
16
- color: var(--_iui-button-text-color);
17
- @include iui-focus($color: var(--iui-color-foreground-accessory), $offset: -3px, $thickness: 1px);
18
-
19
- &:hover,
20
- &:active {
21
- @include themed {
22
- background-color: t(iui-color-background-primary-overlay);
23
- border-color: t(iui-color-background-primary-overlay);
24
- }
25
- }
26
-
27
- &[disabled],
28
- &:disabled {
29
- @include iui-button-disabled;
30
- }
31
- }
@@ -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
- @mixin iui-button-idea {
4
- @include iui-button-high-visibility;
5
- border-radius: $iui-line-height;
6
- box-shadow: $iui-elevation-24;
7
- position: fixed;
8
- bottom: $iui-baseline;
9
- right: $iui-m;
10
- }
@@ -1,12 +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 './button';
4
- @import './default';
5
- @import './cta';
6
- @import './high-visibility';
7
- @import './idea';
8
- @import './button-group';
9
- @import './split-menu';
10
- @import './borderless';
11
- @import './disabled';
12
- @import './button-icon';
@@ -1,66 +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-button-split-menu {
6
- @include iui-button-group;
7
-
8
- &:hover {
9
- @include themed {
10
- background-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-6));
11
- }
12
- }
13
-
14
- > * {
15
- &:first-child {
16
- > .iui-borderless:hover {
17
- background-color: transparent;
18
- }
19
- }
20
-
21
- // Sizes
22
- &:last-child {
23
- > .iui-button {
24
- padding: $iui-xs;
25
- }
26
-
27
- > .iui-small {
28
- padding: $iui-xxs;
29
- }
30
-
31
- > .iui-large {
32
- padding: $iui-s;
33
- }
34
- }
35
-
36
- // Border between buttons for high-visibility and cta
37
- &:first-child {
38
- > .iui-high-visibility,
39
- > .iui-cta {
40
- @include themed {
41
- border-right-color: rgba(t(iui-color-foreground-accessory-rgb), t(iui-opacity-4));
42
- }
43
- }
44
- }
45
-
46
- &:last-child {
47
- > .iui-high-visibility,
48
- > .iui-cta {
49
- @include themed {
50
- border-left-color: rgba(t(iui-color-foreground-accessory-rgb), t(iui-opacity-4));
51
- }
52
- }
53
- }
54
- }
55
-
56
- &.iui-disabled {
57
- @include themed {
58
- background-color: transparent;
59
- }
60
- }
61
-
62
- &[disabled],
63
- &:disabled {
64
- @include iui-button-disabled;
65
- }
66
- }
@@ -1,124 +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/index';
5
- @import '../button/button';
6
-
7
- @mixin iui-carousel {
8
- overflow: hidden;
9
- @include iui-focus($offset: 4px);
10
- border-radius: $iui-border-radius;
11
- }
12
-
13
- @mixin iui-carousel-slider {
14
- display: flex;
15
- gap: $iui-s;
16
- list-style: none;
17
- margin: 0;
18
- padding: 0;
19
- scroll-snap-type: x mandatory;
20
- @include hide-scrollbar;
21
-
22
- &-item {
23
- width: 100%;
24
- flex-shrink: 0;
25
- box-sizing: border-box;
26
- scroll-snap-align: center;
27
- }
28
- }
29
-
30
- @mixin iui-carousel-navigation {
31
- display: flex;
32
- align-items: center;
33
- height: $iui-baseline * 3;
34
- box-sizing: border-box;
35
- @include themed {
36
- border-top: $iui-xxs solid t(iui-color-background-4);
37
- }
38
-
39
- &-left,
40
- &-right {
41
- display: flex;
42
- align-items: center;
43
- flex: 1;
44
-
45
- button[data-pressed='true'] {
46
- outline-offset: -1px;
47
- @include themed {
48
- outline: 1px solid t(iui-color-foreground-primary);
49
- }
50
- }
51
- }
52
-
53
- &-dots {
54
- @include iui-reset;
55
- @include iui-focus;
56
- flex: 2;
57
- max-width: $iui-xxl * 4;
58
- border-radius: $iui-border-radius;
59
- white-space: nowrap;
60
- @include hide-scrollbar;
61
- }
62
-
63
- &-dot {
64
- @include iui-button-size($size: small);
65
- background-color: transparent;
66
- border: none;
67
- cursor: pointer;
68
-
69
- &:hover::after {
70
- @include themed {
71
- background-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-3));
72
- }
73
- }
74
-
75
- &::after {
76
- content: '';
77
- display: block;
78
- width: $iui-icons-small;
79
- height: $iui-icons-small;
80
- border-radius: 50%;
81
- box-sizing: border-box;
82
- border: 1px solid transparent;
83
- @include themed {
84
- background-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-4));
85
- box-shadow: inset 0 0 0 0 t(iui-color-background-1);
86
- }
87
- }
88
-
89
- &.iui-first::after {
90
- transform: scale(0.5);
91
- }
92
-
93
- &.iui-second::after {
94
- transform: scale(0.75);
95
- }
96
-
97
- &.iui-active::after {
98
- @include themed {
99
- background-color: t(iui-color-foreground-primary);
100
- border-color: t(iui-color-foreground-primary);
101
- box-shadow: inset 0 0 0 1px t(iui-color-background-1);
102
- }
103
-
104
- @media (forced-colors: active) {
105
- border-width: $iui-icons-small * 0.5;
106
- }
107
- }
108
- }
109
-
110
- &-right {
111
- justify-content: flex-end;
112
- }
113
- }
114
-
115
- @mixin hide-scrollbar {
116
- overflow-x: auto;
117
- overflow-x: overlay;
118
-
119
- // hide scrollbar
120
- &::-webkit-scrollbar {
121
- display: none;
122
- }
123
- scrollbar-width: none;
124
- }
@@ -1,15 +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-carousel {
6
- @include iui-carousel;
7
- }
8
-
9
- .iui-carousel-slider {
10
- @include iui-carousel-slider;
11
- }
12
-
13
- .iui-carousel-navigation {
14
- @include iui-carousel-navigation;
15
- }
@@ -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 './carousel';