@itwin/itwinui-css 0.59.2 → 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.
- package/CHANGELOG.md +21 -0
- package/README.md +1 -4
- package/css/alert.css +273 -139
- package/css/all.css +4046 -4967
- package/css/anchor.css +1 -5
- package/css/{user-icon.css → avatar.css} +51 -71
- package/css/backdrop.css +24 -0
- package/css/badge.css +2 -2
- package/css/blockquote.css +1 -4
- package/css/breadcrumbs.css +64 -137
- package/css/button.css +264 -349
- package/css/carousel.css +8 -16
- package/css/checkbox.css +149 -0
- package/css/code.css +5 -13
- package/css/color-picker.css +6 -44
- package/css/date-picker.css +6 -65
- package/css/dialog.css +63 -101
- package/css/expandable-block.css +1 -32
- package/css/fieldset.css +2 -7
- package/css/file-upload.css +0 -15
- package/css/footer.css +1 -9
- package/css/global.css +8 -63
- package/css/header.css +312 -398
- package/css/icon.css +0 -30
- package/css/information-panel.css +1 -15
- package/css/input.css +162 -0
- package/css/keyboard.css +2 -6
- package/css/location-marker.css +1 -12
- package/css/menu.css +1 -17
- package/css/progress-indicator.css +1 -93
- package/css/radio-tile.css +38 -65
- package/css/radio.css +156 -0
- package/css/select.css +230 -0
- package/css/side-navigation.css +5 -20
- package/css/skip-to-content.css +0 -3
- package/css/slider.css +2 -14
- package/css/stepper.css +141 -0
- package/css/surface.css +0 -1
- package/css/table.css +252 -339
- package/css/tabs.css +26 -65
- package/css/tag.css +7 -32
- package/css/text.css +1 -3
- package/css/textarea.css +96 -0
- package/css/tile.css +169 -155
- package/css/time-picker.css +2 -14
- package/css/{toast-notification.css → toast.css} +3 -45
- package/css/toggle-switch.css +13 -60
- package/css/tooltip.css +1 -4
- package/css/tree.css +0 -14
- package/css/utils.css +609 -0
- package/css/workflow-diagram.css +67 -0
- package/package.json +11 -7
- package/scss/alert/alert.scss +50 -44
- package/scss/alert/classes.scss +24 -4
- package/scss/anchor/anchor.scss +76 -1
- package/scss/{user-icon/sizes.scss → avatar/avatar-sizes.scss} +6 -5
- package/scss/{user-icon/user-icon.scss → avatar/avatar.scss} +35 -70
- package/scss/avatar/classes.scss +27 -0
- package/scss/{user-icon → avatar}/index.scss +1 -2
- package/scss/backdrop/backdrop.scss +27 -0
- package/scss/backdrop/classes.scss +7 -0
- package/scss/backdrop/index.scss +3 -0
- package/scss/badge/badge.scss +4 -2
- package/scss/blockquote/blockquote.scss +4 -9
- package/scss/breadcrumbs/breadcrumbs.scss +13 -18
- package/scss/button/borderless.scss +20 -32
- package/scss/button/button-group.scss +15 -7
- package/scss/button/button.scss +64 -42
- package/scss/button/classes.scss +47 -37
- package/scss/button/default.scss +33 -41
- package/scss/button/idea.scss +4 -2
- package/scss/button/index.scss +3 -6
- package/scss/button/split-button.scss +45 -0
- package/scss/button/variant.scss +44 -0
- package/scss/carousel/carousel.scss +12 -23
- package/scss/{inputs → checkbox}/checkbox.scss +50 -2
- package/scss/checkbox/classes.scss +7 -0
- package/scss/checkbox/index.scss +3 -0
- package/scss/classes.scss +11 -6
- package/scss/code/code.scss +3 -5
- package/scss/code/codeblock.scss +7 -21
- package/scss/color-picker/color-picker.scss +32 -61
- package/scss/date-picker/date-picker.scss +21 -55
- package/scss/dialog/classes.scss +7 -6
- package/scss/dialog/dialog.scss +95 -130
- package/scss/expandable-block/block.scss +22 -50
- package/scss/fieldset/fieldset.scss +6 -12
- package/scss/file-upload/file-upload.scss +13 -23
- package/scss/footer/footer.scss +5 -15
- package/scss/header/classes.scss +70 -2
- package/scss/header/header-buttons.scss +316 -0
- package/scss/header/header.scss +40 -408
- package/scss/header/index.scss +1 -0
- package/scss/icon/{mixins.scss → icon.scss} +5 -15
- package/scss/icon/index.scss +1 -2
- package/scss/index.scss +11 -6
- package/scss/information-panel/information-panel.scss +8 -26
- package/scss/input/classes.scss +15 -0
- package/scss/input/index.scss +4 -0
- package/scss/{inputs → input}/input-with-icon.scss +1 -0
- package/scss/{inputs → input}/input.scss +15 -25
- package/scss/keyboard/keyboard.scss +5 -9
- package/scss/location-marker/data-rich.scss +5 -14
- package/scss/location-marker/default.scss +1 -3
- package/scss/location-marker/location-marker.scss +1 -3
- package/scss/location-marker/me.scss +7 -14
- package/scss/menu/menu.scss +16 -36
- package/scss/non-ideal-state/non-ideal-state.scss +2 -1
- package/scss/progress-indicator/classes.scss +0 -4
- package/scss/progress-indicator/linear.scss +9 -27
- package/scss/progress-indicator/overlay.scss +4 -10
- package/scss/progress-indicator/radial.scss +10 -98
- package/scss/radio/classes.scss +7 -0
- package/scss/radio/index.scss +3 -0
- package/scss/{inputs → radio}/radio.scss +1 -1
- package/scss/radio-tile/radio-tile.scss +41 -83
- package/scss/select/classes.scss +27 -0
- package/scss/select/index.scss +3 -0
- package/scss/select/select.scss +124 -0
- package/scss/side-navigation/side-navigation.scss +26 -34
- package/scss/skip-to-content/skip-to-content.scss +2 -3
- package/scss/slider/slider.scss +12 -23
- package/scss/stepper/classes.scss +32 -0
- package/scss/stepper/index.scss +3 -0
- package/scss/stepper/stepper.scss +151 -0
- package/scss/style/{variables.scss → global-variables.scss} +4 -2
- package/scss/style/global.scss +9 -10
- package/scss/{icon/variables.scss → style/icon-sizes.scss} +1 -1
- package/scss/style/index.scss +6 -6
- package/scss/style/theme.scss +0 -39
- package/scss/style/typography.scss +5 -4
- package/scss/surface/surface.scss +0 -1
- package/scss/table/classes.scss +24 -23
- package/scss/table/column-filter.scss +2 -5
- package/scss/table/index.scss +1 -2
- package/scss/table/paginator.scss +22 -30
- package/scss/table/sizes.scss +31 -0
- package/scss/table/{variables.scss → table-densities.scss} +2 -1
- package/scss/table/table.scss +156 -228
- package/scss/tabs/borderless.scss +9 -22
- package/scss/tabs/classes.scss +4 -0
- package/scss/tabs/default.scss +11 -25
- package/scss/tabs/pill.scss +5 -15
- package/scss/tabs/tabs.scss +30 -57
- package/scss/tag/classes.scss +1 -0
- package/scss/tag/tag.scss +11 -21
- package/scss/text/mixins.scss +1 -0
- package/scss/text/muted.scss +2 -4
- package/scss/text/skeleton.scss +8 -11
- package/scss/textarea/classes.scss +7 -0
- package/scss/textarea/index.scss +3 -0
- package/scss/{inputs → textarea}/textarea.scss +2 -1
- package/scss/tile/classes.scss +14 -2
- package/scss/tile/tile.scss +99 -80
- package/scss/time-picker/time-picker.scss +8 -17
- package/scss/{toast-notification → toast}/categories.scss +3 -7
- package/scss/{toast-notification → toast}/classes.scss +0 -0
- package/scss/{toast-notification → toast}/index.scss +0 -0
- package/scss/{toast-notification → toast}/toast.scss +7 -16
- package/scss/toggle-switch/toggle-switch.scss +11 -30
- package/scss/tooltip/tooltip.scss +4 -5
- package/scss/tree/tree.scss +10 -22
- package/scss/utils/classes.scss +6 -0
- package/scss/utils/index.scss +6 -0
- package/scss/{inputs → utils/input-container}/classes.scss +0 -28
- package/scss/utils/input-container/index.scss +3 -0
- package/scss/{inputs/labeled-inputs.scss → utils/input-container/input-container.scss} +16 -113
- package/scss/{style → utils}/mixins.scss +26 -43
- package/scss/{notification-marker → utils/notification-marker}/classes.scss +0 -0
- package/scss/{notification-marker → utils/notification-marker}/index.scss +0 -0
- package/scss/{notification-marker → utils/notification-marker}/notification-marker.scss +11 -19
- package/scss/{popover → utils/popover}/classes.scss +0 -0
- package/scss/{popover → utils/popover}/index.scss +0 -0
- package/scss/{popover → utils/popover}/popover.scss +0 -1
- package/scss/workflow-diagram/classes.scss +15 -0
- package/scss/workflow-diagram/index.scss +3 -0
- package/scss/workflow-diagram/workflow-diagram.scss +64 -0
- package/src/index.scss +11 -6
- package/css/inputs.css +0 -1143
- package/css/notification-marker.css +0 -293
- package/css/popover.css +0 -14
- package/css/reset-global-styles.css +0 -50
- package/css/wizard.css +0 -190
- package/scss/button/button-icon.scss +0 -12
- package/scss/button/cta.scss +0 -31
- package/scss/button/disabled.scss +0 -13
- package/scss/button/high-visibility.scss +0 -31
- package/scss/button/split-menu.scss +0 -66
- package/scss/inputs/checkbox-radio.scss +0 -73
- package/scss/inputs/index.scss +0 -10
- package/scss/inputs/select.scss +0 -66
- package/scss/reset-global-styles.scss +0 -33
- package/scss/style/anchor.scss +0 -82
- package/scss/style/ripple.scss +0 -18
- package/scss/table/condensed.scss +0 -15
- package/scss/table/extra-condensed.scss +0 -19
- package/scss/user-icon/classes.scss +0 -27
- package/scss/wizard/classes.scss +0 -27
- package/scss/wizard/index.scss +0 -5
- package/scss/wizard/long.scss +0 -19
- package/scss/wizard/wizard.scss +0 -160
- 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,9 +2,9 @@
|
|
|
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 '
|
|
5
|
+
@import './icon-sizes';
|
|
6
6
|
|
|
7
|
-
$iui-border-radius:
|
|
7
|
+
$iui-border-radius: 4px;
|
|
8
8
|
$iui-border-radius-round: 9999px;
|
|
9
9
|
$iui-blur-filter: blur(5px);
|
|
10
10
|
|
|
@@ -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
|
package/scss/style/global.scss
CHANGED
|
@@ -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 '
|
|
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
|
-
|
|
40
|
-
|
|
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
|
+
}
|
package/scss/style/index.scss
CHANGED
|
@@ -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';
|
package/scss/style/theme.scss
CHANGED
|
@@ -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
|
-
|
|
9
|
-
$iui-sans: '
|
|
10
|
-
$iui-monospace: ui-monospace, Menlo, 'Segoe UI Mono', Consolas, 'Roboto Mono', 'Courier New',
|
|
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;
|
package/scss/table/classes.scss
CHANGED
|
@@ -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
|
|
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-
|
|
42
|
-
@include iui-table-
|
|
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
|
}
|
package/scss/table/index.scss
CHANGED
|
@@ -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 '../
|
|
4
|
+
@import '../utils/index';
|
|
5
5
|
@import '../button/index';
|
|
6
|
-
@import '../text/
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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
|
-
|
|
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/
|
|
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;
|