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

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 (194) hide show
  1. package/README.md +1 -4
  2. package/css/alert.css +272 -138
  3. package/css/all.css +4070 -5172
  4. package/css/anchor.css +0 -4
  5. package/css/{user-icon.css → avatar.css} +51 -71
  6. package/css/badge.css +1 -1
  7. package/css/blockquote.css +0 -3
  8. package/css/breadcrumbs.css +59 -132
  9. package/css/button.css +255 -340
  10. package/css/carousel.css +6 -14
  11. package/css/checkbox.css +149 -0
  12. package/css/code.css +2 -10
  13. package/css/color-picker.css +5 -43
  14. package/css/date-picker.css +0 -59
  15. package/css/dialog.css +0 -5
  16. package/css/expandable-block.css +0 -31
  17. package/css/fieldset.css +0 -5
  18. package/css/file-upload.css +0 -15
  19. package/css/footer.css +0 -8
  20. package/css/global.css +8 -63
  21. package/css/header.css +312 -398
  22. package/css/icon.css +0 -30
  23. package/css/information-panel.css +1 -15
  24. package/css/input.css +162 -0
  25. package/css/keyboard.css +1 -5
  26. package/css/location-marker.css +0 -11
  27. package/css/menu.css +0 -16
  28. package/css/progress-indicator.css +1 -93
  29. package/css/radio-tile.css +38 -65
  30. package/css/radio.css +156 -0
  31. package/css/select.css +230 -0
  32. package/css/side-navigation.css +5 -20
  33. package/css/skip-to-content.css +0 -3
  34. package/css/slider.css +2 -14
  35. package/css/stepper.css +141 -0
  36. package/css/surface.css +0 -1
  37. package/css/table.css +251 -338
  38. package/css/tabs.css +6 -49
  39. package/css/tag.css +3 -21
  40. package/css/text.css +0 -2
  41. package/css/textarea.css +96 -0
  42. package/css/tile.css +169 -155
  43. package/css/time-picker.css +0 -12
  44. package/css/{toast-notification.css → toast.css} +1 -43
  45. package/css/toggle-switch.css +13 -60
  46. package/css/tooltip.css +0 -3
  47. package/css/tree.css +0 -14
  48. package/css/utils.css +609 -0
  49. package/css/workflow-diagram.css +67 -0
  50. package/package.json +11 -7
  51. package/scss/alert/alert.scss +50 -44
  52. package/scss/alert/classes.scss +24 -4
  53. package/scss/anchor/anchor.scss +76 -1
  54. package/scss/{user-icon/sizes.scss → avatar/avatar-sizes.scss} +6 -5
  55. package/scss/{user-icon/user-icon.scss → avatar/avatar.scss} +35 -70
  56. package/scss/avatar/classes.scss +27 -0
  57. package/scss/{user-icon → avatar}/index.scss +1 -2
  58. package/scss/badge/badge.scss +4 -2
  59. package/scss/blockquote/blockquote.scss +4 -9
  60. package/scss/breadcrumbs/breadcrumbs.scss +13 -18
  61. package/scss/button/borderless.scss +20 -32
  62. package/scss/button/button-group.scss +15 -7
  63. package/scss/button/button.scss +64 -42
  64. package/scss/button/classes.scss +47 -37
  65. package/scss/button/default.scss +33 -41
  66. package/scss/button/idea.scss +4 -2
  67. package/scss/button/index.scss +3 -6
  68. package/scss/button/split-button.scss +45 -0
  69. package/scss/button/variant.scss +44 -0
  70. package/scss/carousel/carousel.scss +12 -23
  71. package/scss/{inputs → checkbox}/checkbox.scss +50 -2
  72. package/scss/checkbox/classes.scss +7 -0
  73. package/scss/checkbox/index.scss +3 -0
  74. package/scss/classes.scss +10 -6
  75. package/scss/code/code.scss +3 -5
  76. package/scss/code/codeblock.scss +7 -21
  77. package/scss/color-picker/color-picker.scss +32 -61
  78. package/scss/date-picker/date-picker.scss +21 -55
  79. package/scss/dialog/dialog.scss +1 -6
  80. package/scss/expandable-block/block.scss +22 -50
  81. package/scss/fieldset/fieldset.scss +6 -12
  82. package/scss/file-upload/file-upload.scss +13 -23
  83. package/scss/footer/footer.scss +5 -15
  84. package/scss/header/classes.scss +70 -2
  85. package/scss/header/header-buttons.scss +316 -0
  86. package/scss/header/header.scss +40 -408
  87. package/scss/header/index.scss +1 -0
  88. package/scss/icon/{mixins.scss → icon.scss} +5 -15
  89. package/scss/icon/index.scss +1 -2
  90. package/scss/index.scss +10 -6
  91. package/scss/information-panel/information-panel.scss +8 -26
  92. package/scss/input/classes.scss +15 -0
  93. package/scss/input/index.scss +4 -0
  94. package/scss/{inputs → input}/input-with-icon.scss +1 -0
  95. package/scss/{inputs → input}/input.scss +15 -25
  96. package/scss/keyboard/keyboard.scss +5 -9
  97. package/scss/location-marker/data-rich.scss +5 -14
  98. package/scss/location-marker/default.scss +1 -3
  99. package/scss/location-marker/location-marker.scss +1 -3
  100. package/scss/location-marker/me.scss +7 -14
  101. package/scss/menu/menu.scss +16 -36
  102. package/scss/non-ideal-state/non-ideal-state.scss +2 -1
  103. package/scss/progress-indicator/classes.scss +0 -4
  104. package/scss/progress-indicator/linear.scss +9 -27
  105. package/scss/progress-indicator/overlay.scss +4 -10
  106. package/scss/progress-indicator/radial.scss +10 -98
  107. package/scss/radio/classes.scss +7 -0
  108. package/scss/radio/index.scss +3 -0
  109. package/scss/{inputs → radio}/radio.scss +1 -1
  110. package/scss/radio-tile/radio-tile.scss +41 -83
  111. package/scss/select/classes.scss +27 -0
  112. package/scss/select/index.scss +3 -0
  113. package/scss/{inputs → select}/select.scss +7 -15
  114. package/scss/side-navigation/side-navigation.scss +26 -34
  115. package/scss/skip-to-content/skip-to-content.scss +2 -3
  116. package/scss/slider/slider.scss +12 -23
  117. package/scss/stepper/classes.scss +32 -0
  118. package/scss/stepper/index.scss +3 -0
  119. package/scss/stepper/stepper.scss +151 -0
  120. package/scss/style/{variables.scss → global-variables.scss} +3 -1
  121. package/scss/style/global.scss +9 -10
  122. package/scss/{icon/variables.scss → style/icon-sizes.scss} +1 -1
  123. package/scss/style/index.scss +6 -6
  124. package/scss/style/theme.scss +0 -39
  125. package/scss/style/typography.scss +5 -4
  126. package/scss/surface/surface.scss +0 -1
  127. package/scss/table/classes.scss +24 -23
  128. package/scss/table/column-filter.scss +2 -5
  129. package/scss/table/index.scss +1 -2
  130. package/scss/table/paginator.scss +22 -30
  131. package/scss/table/sizes.scss +31 -0
  132. package/scss/table/{variables.scss → table-densities.scss} +2 -1
  133. package/scss/table/table.scss +156 -228
  134. package/scss/tabs/borderless.scss +6 -18
  135. package/scss/tabs/default.scss +8 -21
  136. package/scss/tabs/pill.scss +4 -14
  137. package/scss/tabs/tabs.scss +16 -44
  138. package/scss/tag/classes.scss +1 -0
  139. package/scss/tag/tag.scss +9 -19
  140. package/scss/text/mixins.scss +1 -0
  141. package/scss/text/muted.scss +2 -4
  142. package/scss/text/skeleton.scss +8 -11
  143. package/scss/textarea/classes.scss +7 -0
  144. package/scss/textarea/index.scss +3 -0
  145. package/scss/{inputs → textarea}/textarea.scss +2 -1
  146. package/scss/tile/classes.scss +14 -2
  147. package/scss/tile/tile.scss +99 -80
  148. package/scss/time-picker/time-picker.scss +8 -17
  149. package/scss/{toast-notification → toast}/categories.scss +3 -7
  150. package/scss/{toast-notification → toast}/classes.scss +0 -0
  151. package/scss/{toast-notification → toast}/index.scss +0 -0
  152. package/scss/{toast-notification → toast}/toast.scss +7 -16
  153. package/scss/toggle-switch/toggle-switch.scss +11 -30
  154. package/scss/tooltip/tooltip.scss +4 -5
  155. package/scss/tree/tree.scss +10 -22
  156. package/scss/utils/classes.scss +6 -0
  157. package/scss/utils/index.scss +6 -0
  158. package/scss/{inputs → utils/input-container}/classes.scss +0 -48
  159. package/scss/utils/input-container/index.scss +3 -0
  160. package/scss/{inputs/labeled-inputs.scss → utils/input-container/input-container.scss} +16 -113
  161. package/scss/{style → utils}/mixins.scss +26 -43
  162. package/scss/{notification-marker → utils/notification-marker}/classes.scss +0 -0
  163. package/scss/{notification-marker → utils/notification-marker}/index.scss +0 -0
  164. package/scss/{notification-marker → utils/notification-marker}/notification-marker.scss +11 -19
  165. package/scss/{popover → utils/popover}/classes.scss +0 -0
  166. package/scss/{popover → utils/popover}/index.scss +0 -0
  167. package/scss/{popover → utils/popover}/popover.scss +0 -1
  168. package/scss/workflow-diagram/classes.scss +15 -0
  169. package/scss/workflow-diagram/index.scss +3 -0
  170. package/scss/workflow-diagram/workflow-diagram.scss +64 -0
  171. package/src/index.scss +10 -6
  172. package/css/inputs.css +0 -1339
  173. package/css/notification-marker.css +0 -293
  174. package/css/popover.css +0 -14
  175. package/css/reset-global-styles.css +0 -50
  176. package/css/wizard.css +0 -190
  177. package/scss/button/button-icon.scss +0 -12
  178. package/scss/button/cta.scss +0 -31
  179. package/scss/button/disabled.scss +0 -13
  180. package/scss/button/high-visibility.scss +0 -31
  181. package/scss/button/split-menu.scss +0 -66
  182. package/scss/inputs/checkbox-radio.scss +0 -73
  183. package/scss/inputs/index.scss +0 -10
  184. package/scss/reset-global-styles.scss +0 -33
  185. package/scss/style/anchor.scss +0 -82
  186. package/scss/style/ripple.scss +0 -18
  187. package/scss/table/condensed.scss +0 -15
  188. package/scss/table/extra-condensed.scss +0 -19
  189. package/scss/user-icon/classes.scss +0 -27
  190. package/scss/wizard/classes.scss +0 -27
  191. package/scss/wizard/index.scss +0 -5
  192. package/scss/wizard/long.scss +0 -19
  193. package/scss/wizard/wizard.scss +0 -160
  194. package/scss/wizard/workflow.scss +0 -43
@@ -0,0 +1,151 @@
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 '../text/mixins';
6
+
7
+ @mixin iui-stepper {
8
+ display: flex;
9
+ flex-direction: column;
10
+ row-gap: $iui-baseline * 0.5;
11
+
12
+ > ol {
13
+ @include iui-stepper-list;
14
+ }
15
+ }
16
+
17
+ @mixin iui-stepper-list {
18
+ @include iui-reset;
19
+ display: flex;
20
+ justify-content: space-around;
21
+ align-items: flex-start;
22
+ width: 100%;
23
+ }
24
+
25
+ @mixin iui-stepper-step {
26
+ --_iui-stepper-step-background-color: var(--iui-color-background-1);
27
+ --_iui-stepper-step-border-color: var(--iui-color-foreground-positive);
28
+ --_iui-stepper-step-number-color: var(--iui-color-foreground-positive);
29
+ --_iui-stepper-step-text-color: var(--iui-color-foreground-positive);
30
+ --_iui-stepper-step-track-before-color: var(--iui-color-foreground-positive);
31
+ --_iui-stepper-step-track-after-color: var(--iui-color-foreground-positive);
32
+
33
+ flex: 1;
34
+ align-items: center;
35
+ display: flex;
36
+ flex-direction: column;
37
+ @include iui-text(small);
38
+ color: var(--_iui-stepper-step-text-color);
39
+
40
+ &:first-of-type {
41
+ --_iui-stepper-step-track-before-color: transparent;
42
+ }
43
+
44
+ &:last-of-type {
45
+ --_iui-stepper-step-track-after-color: transparent;
46
+ }
47
+ }
48
+
49
+ @mixin iui-stepper-step-modifiers {
50
+ // Current step
51
+ &.iui-current {
52
+ --_iui-stepper-step-background-color: var(--iui-color-background-positive);
53
+ --_iui-stepper-step-border-color: var(--iui-color-background-positive);
54
+ --_iui-stepper-step-number-color: var(--iui-color-foreground-accessory);
55
+ --_iui-stepper-step-track-after-color: var(--iui-color-background-border);
56
+
57
+ font-weight: $iui-font-weight-semibold;
58
+ }
59
+
60
+ // Future steps
61
+ &.iui-current ~ & {
62
+ --_iui-stepper-step-background-color: var(--iui-color-background-1);
63
+ --_iui-stepper-step-border-color: var(--iui-color-background-border);
64
+ --_iui-stepper-step-number-color: var(--iui-text-color-muted);
65
+ --_iui-stepper-step-text-color: var(--iui-text-color-muted);
66
+ --_iui-stepper-step-track-before-color: var(--iui-color-background-5);
67
+
68
+ &:not(:last-of-type) {
69
+ --_iui-stepper-step-track-after-color: var(--iui-color-background-5);
70
+ }
71
+ }
72
+
73
+ // Clickable steps
74
+ &.iui-clickable:focus {
75
+ outline: 0;
76
+ }
77
+ }
78
+
79
+ @mixin iui-stepper-circle {
80
+ align-items: center;
81
+ border-radius: $iui-border-radius-round;
82
+ display: flex;
83
+ width: $iui-l;
84
+ height: $iui-l;
85
+ justify-content: center;
86
+ overflow-wrap: break-word;
87
+ user-select: none;
88
+ border: 1px solid var(--_iui-stepper-step-border-color);
89
+ background-color: var(--_iui-stepper-step-background-color);
90
+ color: var(--_iui-stepper-step-number-color);
91
+
92
+ @at-root .iui-clickable & {
93
+ cursor: pointer;
94
+ transition: background-color $iui-speed-fast ease-out, border-color $iui-speed-fast ease-out,
95
+ color $iui-speed-fast ease-out;
96
+
97
+ &:hover {
98
+ --_iui-stepper-step-background-color: var(--iui-color-background-positive);
99
+ --_iui-stepper-step-border-color: var(--iui-color-background-positive);
100
+ --_iui-stepper-step-number-color: var(--iui-color-foreground-accessory);
101
+ }
102
+ }
103
+
104
+ @at-root .iui-clickable:focus & {
105
+ outline: 2px solid var(--iui-color-foreground-positive);
106
+ outline-offset: -1px;
107
+ }
108
+
109
+ @at-root .iui-clickable:focus:not(:focus-visible) & {
110
+ outline: none;
111
+ }
112
+ }
113
+
114
+ @mixin iui-stepper-track-content {
115
+ display: flex;
116
+ align-items: center;
117
+ width: 100%;
118
+
119
+ &::before,
120
+ &::after {
121
+ content: '';
122
+ height: $iui-xxs;
123
+ flex: 1 2 auto;
124
+ }
125
+
126
+ &::before {
127
+ background-color: var(--_iui-stepper-step-track-before-color);
128
+ }
129
+
130
+ &::after {
131
+ background-color: var(--_iui-stepper-step-track-after-color);
132
+ }
133
+ }
134
+
135
+ @mixin iui-stepper-step-name {
136
+ text-align: center;
137
+ user-select: all;
138
+ color: var(--_iui-stepper-step-text-color);
139
+ }
140
+
141
+ @mixin iui-stepper-steps-label {
142
+ display: block;
143
+ font-size: $iui-font-size-subheading;
144
+ text-align: center;
145
+ }
146
+
147
+ @mixin iui-stepper-steps-label-count {
148
+ user-select: none;
149
+ margin-right: $iui-s;
150
+ color: var(--iui-text-color-muted);
151
+ }
@@ -2,7 +2,7 @@
2
2
  // See LICENSE.md in the project root for license terms and full copyright notice.
3
3
  @import './space';
4
4
  @import './baseline';
5
- @import '../icon/variables';
5
+ @import './icon-sizes';
6
6
 
7
7
  $iui-border-radius: 4px;
8
8
  $iui-border-radius-round: 9999px;
@@ -19,3 +19,5 @@ $iui-component-padding-horizontal: $iui-sm; // 12px
19
19
  $iui-component-padding-vertical: (($iui-component-height - $iui-line-height) * 0.5) - 1; // 12.5px
20
20
  $iui-component-padding-vertical-small: (($iui-component-height-small - $iui-line-height) * 0.5) - 1; // 7px
21
21
  $iui-component-padding-vertical-large: (($iui-component-height-large - $iui-line-height) * 0.5) - 1; // 18px
22
+
23
+ $iui-side-navigation-icon-margins: $iui-icons-large; // Used to align header brand button & side navigation spacing
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2
2
  // See LICENSE.md in the project root for license terms and full copyright notice.
3
3
  @import './index';
4
- @import './anchor';
4
+ @import '../utils/index';
5
5
 
6
6
  html {
7
7
  @include theme-variables(light);
@@ -36,11 +36,8 @@ html {
36
36
  }
37
37
 
38
38
  .iui-body {
39
- @include themed {
40
- background-color: t(iui-color-background-2);
41
- color: t(iui-text-color);
42
- }
43
-
39
+ background-color: var(--iui-color-background-2);
40
+ color: var(--iui-text-color);
44
41
  font-size: $iui-font-size;
45
42
  line-height: $iui-line-height;
46
43
 
@@ -52,10 +49,6 @@ html {
52
49
  }
53
50
  }
54
51
 
55
- .iui-anchor {
56
- @include iui-anchor;
57
- }
58
-
59
52
  .iui-visually-hidden {
60
53
  @include visually-hidden;
61
54
  }
@@ -68,3 +61,9 @@ html {
68
61
  // Scrollbar
69
62
  @include iui-scrollbar;
70
63
  }
64
+
65
+ [class*=iui-]:where(:not(.iui-body)),
66
+ [class*=iui-]:where(:not(.iui-body))::before,
67
+ [class*=iui-]:where(:not(.iui-body))::after {
68
+ box-sizing: border-box;
69
+ }
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2
2
  // See LICENSE.md in the project root for license terms and full copyright notice.
3
3
 
4
- /// Sizes
4
+ /// Icon sizes
5
5
 
6
6
  $iui-icons-default: 16px;
7
7
 
@@ -1,11 +1,11 @@
1
1
  // Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2
2
  // See LICENSE.md in the project root for license terms and full copyright notice.
3
- @import './theme';
4
3
  @import './baseline';
5
- @import './mixins';
6
- @import './space';
7
- @import './typography';
8
- @import './variables';
9
4
  @import './color';
10
- @import './speed';
11
5
  @import './elevation';
6
+ @import './global-variables';
7
+ @import './icon-sizes';
8
+ @import './space';
9
+ @import './speed';
10
+ @import './theme';
11
+ @import './typography';
@@ -415,20 +415,6 @@ $cssVariables: (
415
415
  iui-icons-color-actionable-disabled: rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-5)),
416
416
  );
417
417
 
418
- @function getfallbackvars() {
419
- $theme: map-get($themes, light);
420
-
421
- @each $var, $value in $theme {
422
- @if (type-of($value) == color) {
423
- $theme: map-merge($theme, (#{$var}-rgb: $value));
424
- }
425
- }
426
-
427
- @return $theme;
428
- }
429
-
430
- $fallbackvars: getfallbackvars();
431
-
432
418
  @function hextorgb($hex) {
433
419
  @return red($hex), green($hex), blue($hex);
434
420
  }
@@ -455,28 +441,3 @@ $fallbackvars: getfallbackvars();
455
441
  }
456
442
  }
457
443
  }
458
-
459
- $fallback: null;
460
-
461
- // Adds a CSS variable with a fallback value.
462
- //
463
- // Usage example:
464
- // @include themed {
465
- // color: rgba(t(iui-color-background-1-rgb), t(iui-opacity-4));
466
- // background-color: t(iui-color-background-2);
467
- // }
468
- @mixin themed($property: null, $var: null) {
469
- $fallback: true !global;
470
- @content;
471
- $fallback: false !global;
472
- @content;
473
- }
474
-
475
- // Returns a CSS variable or a fallback value. Can only be used in a `themed` mixin content.
476
- @function t($var) {
477
- @if ($fallback) {
478
- @return map-get($fallbackvars, $var);
479
- }
480
-
481
- @return var(--#{unquote($var)});
482
- }
@@ -4,10 +4,11 @@
4
4
  @import './theme';
5
5
 
6
6
  /// Constants ------------------------------------------------------------------
7
-
8
- $iui-sans-fallback: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
9
- $iui-sans: 'Open Sans';
10
- $iui-monospace: ui-monospace, Menlo, 'Segoe UI Mono', Consolas, 'Roboto Mono', 'Courier New', monospace;
7
+ $iui-sans-fallback: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial,
8
+ sans-serif;
9
+ $iui-sans: 'Noto Sans';
10
+ $iui-monospace: 'Noto Sans Mono', ui-monospace, Menlo, 'Segoe UI Mono', Consolas, 'Roboto Mono', 'Courier New',
11
+ monospace;
11
12
 
12
13
  $iui-font-family: $iui-sans, $iui-sans-fallback;
13
14
 
@@ -10,7 +10,6 @@
10
10
  background-color: var(--iui-surface-background-color);
11
11
  border-radius: var(--iui-surface-border-radius);
12
12
  box-shadow: var(--iui-surface-elevation);
13
- box-sizing: border-box;
14
13
  color: var(--iui-text-color);
15
14
  @media (forced-colors: active) {
16
15
  border: 1px solid transparent;
@@ -4,14 +4,7 @@
4
4
 
5
5
  .iui-table {
6
6
  @include iui-table;
7
-
8
- &.iui-condensed {
9
- @include iui-table-condensed;
10
- }
11
-
12
- &.iui-extra-condensed {
13
- @include iui-table-extra-condensed;
14
- }
7
+ @include iui-table-sizes;
15
8
  }
16
9
 
17
10
  .iui-table-header-wrapper {
@@ -22,6 +15,10 @@
22
15
  @include iui-table-header;
23
16
  }
24
17
 
18
+ .iui-table-row {
19
+ @include iui-table-row;
20
+ }
21
+
25
22
  .iui-table-header-actions-container {
26
23
  @include iui-table-header-actions-container;
27
24
  }
@@ -30,34 +27,38 @@
30
27
  @include iui-table-body;
31
28
  }
32
29
 
33
- .iui-cell {
30
+ .iui-table-cell {
34
31
  @include iui-table-cell;
35
32
  }
36
33
 
37
- .iui-cell-shadow-left {
38
- @include iui-table-cell-shadow-left;
34
+ .iui-table-cell-shadow-left {
35
+ @include iui-table-cell-shadow(left);
36
+ }
37
+
38
+ .iui-table-cell-shadow-right {
39
+ @include iui-table-cell-shadow(right);
39
40
  }
40
41
 
41
- .iui-cell-shadow-right {
42
- @include iui-table-cell-shadow-right;
42
+ .iui-table-paginator {
43
+ @include iui-table-paginator;
43
44
  }
44
45
 
45
- .iui-paginator {
46
- @include iui-paginator;
46
+ .iui-table-paginator-page-size-label {
47
+ @include iui-table-paginator-page-size-label;
47
48
  }
48
49
 
49
- .iui-paginator-ellipsis {
50
- @include iui-paginator-ellipsis;
50
+ .iui-table-paginator-ellipsis {
51
+ @include iui-table-paginator-ellipsis;
51
52
  }
52
53
 
53
- .iui-paginator-pages-group {
54
- @include iui-paginator-pages-group;
54
+ .iui-table-paginator-pages-group {
55
+ @include iui-table-paginator-pages-group;
55
56
  }
56
57
 
57
- .iui-paginator-page-button {
58
- @include iui-paginator-page-button;
58
+ .iui-table-paginator-page-button {
59
+ @include iui-table-paginator-page-button;
59
60
  }
60
61
 
61
- .iui-column-filter {
62
- @include iui-column-filter;
62
+ .iui-table-column-filter {
63
+ @include iui-table-column-filter;
63
64
  }
@@ -3,7 +3,7 @@
3
3
  @import '../style/index';
4
4
  @import '../surface/index';
5
5
 
6
- @mixin iui-column-filter {
6
+ @mixin iui-table-column-filter {
7
7
  @include iui-surface;
8
8
  padding: $iui-baseline $iui-sm;
9
9
  display: inline-flex;
@@ -23,15 +23,12 @@
23
23
  display: flex;
24
24
  width: 100%;
25
25
  align-content: center;
26
+ gap: $iui-s;
26
27
 
27
28
  > .iui-button {
28
29
  &:first-of-type {
29
30
  margin-left: auto;
30
31
  }
31
-
32
- &:not(:last-child) {
33
- margin-right: $iui-s;
34
- }
35
32
  }
36
33
  }
37
34
  }
@@ -1,7 +1,6 @@
1
1
  // Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2
2
  // See LICENSE.md in the project root for license terms and full copyright notice.
3
3
  @import './table';
4
- @import './condensed';
5
- @import './extra-condensed';
6
4
  @import './column-filter';
7
5
  @import './paginator';
6
+ @import './sizes';
@@ -1,22 +1,18 @@
1
1
  // Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2
2
  // See LICENSE.md in the project root for license terms and full copyright notice.
3
3
  @import '../style/index';
4
- @import '../icon/index';
4
+ @import '../utils/index';
5
5
  @import '../button/index';
6
- @import '../text/index';
7
- @import './variables';
6
+ @import '../text/muted';
8
7
 
9
- @mixin iui-paginator {
8
+ @mixin iui-table-paginator {
10
9
  @include iui-reset;
11
10
  display: flex;
12
11
  justify-content: space-between;
13
12
  align-items: center;
14
- min-height: $iui-baseline * 5;
15
13
  padding: 0 $iui-m;
16
14
  user-select: none;
17
- @include themed {
18
- background-color: t(iui-color-background-3);
19
- }
15
+ background-color: var(--iui-color-background-3);
20
16
 
21
17
  > .iui-left,
22
18
  > .iui-center,
@@ -31,57 +27,53 @@
31
27
  > .iui-center {
32
28
  justify-content: center;
33
29
  flex: 2 1;
34
- @include themed {
35
- color: t(iui-text-color);
36
- }
30
+ color: var(--iui-text-color);
37
31
  }
38
32
 
39
33
  > .iui-right {
40
34
  justify-content: flex-end;
41
35
  }
36
+ }
42
37
 
43
- &-page-size-label {
44
- @include iui-text-muted;
45
- white-space: nowrap;
46
- overflow: hidden;
47
- text-overflow: ellipsis;
48
- }
38
+ @mixin iui-table-paginator-page-size-label {
39
+ @include iui-text-muted;
40
+ white-space: nowrap;
41
+ overflow: hidden;
42
+ text-overflow: ellipsis;
49
43
  }
50
44
 
51
- @mixin iui-paginator-ellipsis {
45
+ @mixin iui-table-paginator-ellipsis {
52
46
  display: flex;
53
47
  justify-content: center;
54
48
  align-items: center;
55
49
  width: $iui-component-height;
56
- @include themed {
57
- color: t(iui-text-color-muted);
58
- }
50
+ color: var(--iui-text-color-muted);
59
51
 
60
52
  &-small {
61
53
  width: $iui-component-height-small;
62
54
  }
63
55
  }
64
56
 
65
- @mixin iui-paginator-pages-group {
57
+ @mixin iui-table-paginator-pages-group {
66
58
  display: inline-flex;
67
59
  align-items: center;
68
60
  margin: 0 $iui-s;
69
61
  }
70
62
 
71
- @mixin iui-paginator-page-button {
63
+ @mixin iui-table-paginator-page-button {
72
64
  @include iui-button;
73
65
  @include iui-button-borderless;
74
66
  width: $iui-component-height;
75
67
 
76
- &.iui-active {
77
- @include iui-button-active;
78
- }
79
-
80
- // Adds stripe above active button
81
- --_iui-button-active-stripe-inset: calc(100% - #{$iui-xs}) #{$iui-xxs} #{$iui-xxs};
82
-
83
68
  &-small {
84
69
  @include iui-button-size(small);
85
70
  width: $iui-component-height-small;
86
71
  }
72
+
73
+ &[data-iui-active='true'] {
74
+ @include iui-button-default-active;
75
+ @include iui-button-borderless-active;
76
+ // Adds stripe above active button
77
+ --_iui-button-active-stripe-inset: calc(100% - #{$iui-xs}) #{$iui-xxs} #{$iui-xxs};
78
+ }
87
79
  }
@@ -0,0 +1,31 @@
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-table-sizes {
6
+ --_iui-table-header-size: #{$iui-baseline * 5};
7
+ --_iui-table-row-size: #{$iui-baseline * 5 + 2px};
8
+
9
+ &[data-iui-size='condensed'] {
10
+ --_iui-table-header-size: #{$iui-baseline * 4};
11
+ --_iui-table-row-size: #{$iui-baseline * 4 + 2px};
12
+ }
13
+
14
+ &[data-iui-size='extra-condensed'] {
15
+ --_iui-table-header-size: #{$iui-baseline * 3};
16
+ --_iui-table-row-size: #{$iui-baseline * 3 + 2px};
17
+
18
+ .iui-table-header .iui-table-cell {
19
+ padding-block: $iui-baseline * 0.25;
20
+ }
21
+ }
22
+
23
+ .iui-table-header .iui-table-cell,
24
+ .iui-table-paginator {
25
+ min-height: var(--_iui-table-header-size);
26
+ }
27
+
28
+ .iui-table-cell {
29
+ min-height: var(--_iui-table-row-size);
30
+ }
31
+ }
@@ -1,6 +1,7 @@
1
1
  // Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2
2
  // See LICENSE.md in the project root for license terms and full copyright notice.
3
- @import '../style/index';
3
+ @import '../style/baseline';
4
+ @import '../style/space';
4
5
 
5
6
  $iui-table-density-vertical: $iui-baseline * 1.5;
6
7
  $iui-table-density-vertical-condensed: $iui-baseline;