@itwin/itwinui-css 1.0.0-dev.0 → 1.0.0-dev.10
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 +26 -0
- package/css/alert.css +81 -92
- package/css/all.css +2143 -2719
- package/css/anchor.css +3 -3
- package/css/avatar.css +46 -46
- package/css/backdrop.css +6 -4
- package/css/badge.css +8 -8
- package/css/blockquote.css +6 -6
- package/css/breadcrumbs.css +63 -52
- package/css/button.css +113 -135
- package/css/carousel.css +17 -16
- package/css/checkbox.css +27 -22
- package/css/code.css +15 -14
- package/css/color-picker.css +41 -44
- package/css/date-picker.css +59 -88
- package/css/dialog.css +32 -32
- package/css/expandable-block.css +36 -57
- package/css/fieldset.css +7 -7
- package/css/file-upload.css +20 -28
- package/css/footer.css +35 -35
- package/css/global.css +50 -617
- package/css/header.css +58 -51
- package/css/information-panel.css +38 -32
- package/css/input.css +64 -56
- package/css/keyboard.css +6 -10
- package/css/location-marker.css +32 -18
- package/css/menu.css +41 -27
- package/css/non-ideal-state.css +12 -12
- package/css/progress-indicator.css +37 -35
- package/css/radio-tile.css +39 -38
- package/css/radio.css +27 -22
- package/css/select.css +89 -80
- package/css/side-navigation.css +34 -38
- package/css/skip-to-content.css +11 -11
- package/css/slider.css +166 -55
- package/css/stepper.css +17 -17
- package/css/surface.css +2 -2
- package/css/table.css +180 -144
- package/css/tabs.css +61 -47
- package/css/tag.css +24 -25
- package/css/text.css +24 -24
- package/css/tile.css +160 -176
- package/css/time-picker.css +16 -14
- package/css/toast.css +49 -47
- package/css/toggle-switch.css +26 -26
- package/css/tooltip.css +6 -10
- package/css/tree.css +30 -35
- package/css/utils.css +228 -154
- package/css/workflow-diagram.css +8 -8
- package/package.json +8 -11
- package/css/icon.css +0 -117
- package/css/textarea.css +0 -96
- package/scss/alert/alert.scss +0 -89
- package/scss/alert/classes.scss +0 -33
- package/scss/alert/index.scss +0 -3
- package/scss/anchor/anchor.scss +0 -78
- package/scss/anchor/classes.scss +0 -11
- package/scss/anchor/index.scss +0 -3
- package/scss/avatar/avatar-sizes.scss +0 -23
- package/scss/avatar/avatar.scss +0 -215
- package/scss/avatar/classes.scss +0 -27
- package/scss/avatar/index.scss +0 -3
- package/scss/backdrop/backdrop.scss +0 -27
- package/scss/backdrop/classes.scss +0 -7
- package/scss/backdrop/index.scss +0 -3
- package/scss/badge/badge.scss +0 -34
- package/scss/badge/classes.scss +0 -7
- package/scss/badge/index.scss +0 -3
- package/scss/blockquote/blockquote.scss +0 -26
- package/scss/blockquote/classes.scss +0 -7
- package/scss/blockquote/index.scss +0 -3
- package/scss/breadcrumbs/breadcrumbs.scss +0 -119
- package/scss/breadcrumbs/classes.scss +0 -31
- package/scss/breadcrumbs/index.scss +0 -3
- package/scss/button/borderless.scss +0 -36
- package/scss/button/button-group.scss +0 -118
- package/scss/button/button.scss +0 -119
- package/scss/button/classes.scss +0 -80
- package/scss/button/default.scss +0 -51
- package/scss/button/idea.scss +0 -12
- package/scss/button/index.scss +0 -9
- package/scss/button/split-button.scss +0 -45
- package/scss/button/variant.scss +0 -44
- package/scss/carousel/carousel.scss +0 -113
- package/scss/carousel/classes.scss +0 -15
- package/scss/carousel/index.scss +0 -3
- package/scss/checkbox/checkbox.scss +0 -154
- package/scss/checkbox/classes.scss +0 -7
- package/scss/checkbox/index.scss +0 -3
- package/scss/classes.scss +0 -52
- package/scss/code/classes.scss +0 -11
- package/scss/code/code.scss +0 -16
- package/scss/code/codeblock.scss +0 -59
- package/scss/code/index.scss +0 -4
- package/scss/color-picker/classes.scss +0 -43
- package/scss/color-picker/color-picker.scss +0 -241
- package/scss/color-picker/index.scss +0 -3
- package/scss/date-picker/classes.scss +0 -47
- package/scss/date-picker/date-picker.scss +0 -246
- package/scss/date-picker/index.scss +0 -3
- package/scss/dialog/classes.scss +0 -48
- package/scss/dialog/dialog.scss +0 -178
- package/scss/dialog/index.scss +0 -3
- package/scss/expandable-block/block.scss +0 -165
- package/scss/expandable-block/classes.scss +0 -7
- package/scss/expandable-block/index.scss +0 -3
- package/scss/fieldset/classes.scss +0 -7
- package/scss/fieldset/fieldset.scss +0 -29
- package/scss/fieldset/index.scss +0 -3
- package/scss/file-upload/classes.scss +0 -7
- package/scss/file-upload/file-upload.scss +0 -80
- package/scss/file-upload/index.scss +0 -3
- package/scss/footer/classes.scss +0 -7
- package/scss/footer/footer.scss +0 -55
- package/scss/footer/index.scss +0 -3
- package/scss/header/classes.scss +0 -79
- package/scss/header/header-buttons.scss +0 -316
- package/scss/header/header.scss +0 -75
- package/scss/header/index.scss +0 -4
- package/scss/icon/classes.scss +0 -27
- package/scss/icon/icon.scss +0 -65
- package/scss/icon/index.scss +0 -3
- package/scss/index.scss +0 -50
- package/scss/information-panel/classes.scss +0 -27
- package/scss/information-panel/index.scss +0 -3
- package/scss/information-panel/information-panel.scss +0 -215
- package/scss/input/classes.scss +0 -15
- package/scss/input/index.scss +0 -4
- package/scss/input/input-with-icon.scss +0 -37
- package/scss/input/input.scss +0 -70
- package/scss/keyboard/classes.scss +0 -7
- package/scss/keyboard/index.scss +0 -3
- package/scss/keyboard/keyboard.scss +0 -29
- package/scss/location-marker/classes.scss +0 -15
- package/scss/location-marker/data-rich.scss +0 -49
- package/scss/location-marker/default.scss +0 -19
- package/scss/location-marker/index.scss +0 -6
- package/scss/location-marker/location-marker.scss +0 -11
- package/scss/location-marker/me.scss +0 -29
- package/scss/menu/classes.scss +0 -21
- package/scss/menu/index.scss +0 -3
- package/scss/menu/menu.scss +0 -185
- package/scss/non-ideal-state/classes.scss +0 -7
- package/scss/non-ideal-state/index.scss +0 -3
- package/scss/non-ideal-state/non-ideal-state.scss +0 -56
- package/scss/progress-indicator/classes.scss +0 -31
- package/scss/progress-indicator/index.scss +0 -5
- package/scss/progress-indicator/linear.scss +0 -108
- package/scss/progress-indicator/overlay.scss +0 -51
- package/scss/progress-indicator/radial.scss +0 -155
- package/scss/radio/classes.scss +0 -7
- package/scss/radio/index.scss +0 -3
- package/scss/radio/radio.scss +0 -18
- package/scss/radio-tile/classes.scss +0 -31
- package/scss/radio-tile/index.scss +0 -3
- package/scss/radio-tile/radio-tile.scss +0 -167
- package/scss/select/classes.scss +0 -27
- package/scss/select/index.scss +0 -3
- package/scss/select/select.scss +0 -124
- package/scss/side-navigation/classes.scss +0 -15
- package/scss/side-navigation/index.scss +0 -3
- package/scss/side-navigation/side-navigation.scss +0 -202
- package/scss/skip-to-content/classes.scss +0 -7
- package/scss/skip-to-content/index.scss +0 -3
- package/scss/skip-to-content/skip-to-content.scss +0 -40
- package/scss/slider/classes.scss +0 -27
- package/scss/slider/index.scss +0 -3
- package/scss/slider/slider.scss +0 -135
- package/scss/stepper/classes.scss +0 -32
- package/scss/stepper/index.scss +0 -3
- package/scss/stepper/stepper.scss +0 -151
- package/scss/style/baseline.scss +0 -4
- package/scss/style/color.scss +0 -39
- package/scss/style/elevation.scss +0 -11
- package/scss/style/global-variables.scss +0 -23
- package/scss/style/global.scss +0 -69
- package/scss/style/icon-sizes.scss +0 -14
- package/scss/style/index.scss +0 -11
- package/scss/style/space.scss +0 -11
- package/scss/style/speed.scss +0 -8
- package/scss/style/theme.scss +0 -443
- package/scss/style/typography.scss +0 -55
- package/scss/surface/classes.scss +0 -7
- package/scss/surface/index.scss +0 -3
- package/scss/surface/surface.scss +0 -17
- package/scss/table/classes.scss +0 -64
- package/scss/table/column-filter.scss +0 -34
- package/scss/table/index.scss +0 -6
- package/scss/table/paginator.scss +0 -79
- package/scss/table/sizes.scss +0 -31
- package/scss/table/table-densities.scss +0 -11
- package/scss/table/table.scss +0 -482
- package/scss/tabs/borderless.scss +0 -59
- package/scss/tabs/classes.scss +0 -44
- package/scss/tabs/default.scss +0 -89
- package/scss/tabs/index.scss +0 -6
- package/scss/tabs/pill.scss +0 -38
- package/scss/tabs/tabs.scss +0 -192
- package/scss/tag/classes.scss +0 -30
- package/scss/tag/index.scss +0 -3
- package/scss/tag/tag.scss +0 -89
- package/scss/text/classes.scss +0 -40
- package/scss/text/index.scss +0 -5
- package/scss/text/mixins.scss +0 -43
- package/scss/text/muted.scss +0 -7
- package/scss/text/skeleton.scss +0 -43
- package/scss/textarea/classes.scss +0 -7
- package/scss/textarea/index.scss +0 -3
- package/scss/textarea/textarea.scss +0 -15
- package/scss/tile/classes.scss +0 -51
- package/scss/tile/index.scss +0 -3
- package/scss/tile/tile.scss +0 -340
- package/scss/time-picker/classes.scss +0 -16
- package/scss/time-picker/index.scss +0 -3
- package/scss/time-picker/time-picker.scss +0 -63
- package/scss/toast/categories.scss +0 -22
- package/scss/toast/classes.scss +0 -98
- package/scss/toast/index.scss +0 -4
- package/scss/toast/toast.scss +0 -70
- package/scss/toggle-switch/classes.scss +0 -11
- package/scss/toggle-switch/index.scss +0 -3
- package/scss/toggle-switch/toggle-switch.scss +0 -203
- package/scss/tooltip/classes.scss +0 -24
- package/scss/tooltip/index.scss +0 -3
- package/scss/tooltip/tooltip.scss +0 -40
- package/scss/tree/classes.scss +0 -19
- package/scss/tree/index.scss +0 -3
- package/scss/tree/tree.scss +0 -126
- package/scss/utils/classes.scss +0 -6
- package/scss/utils/index.scss +0 -6
- package/scss/utils/input-container/classes.scss +0 -39
- package/scss/utils/input-container/index.scss +0 -3
- package/scss/utils/input-container/input-container.scss +0 -285
- package/scss/utils/mixins.scss +0 -171
- package/scss/utils/notification-marker/classes.scss +0 -9
- package/scss/utils/notification-marker/index.scss +0 -3
- package/scss/utils/notification-marker/notification-marker.scss +0 -55
- package/scss/utils/popover/classes.scss +0 -7
- package/scss/utils/popover/index.scss +0 -3
- package/scss/utils/popover/popover.scss +0 -21
- package/scss/variables.scss +0 -3
- package/scss/workflow-diagram/classes.scss +0 -15
- package/scss/workflow-diagram/index.scss +0 -3
- package/scss/workflow-diagram/workflow-diagram.scss +0 -64
- package/src/index.scss +0 -50
|
@@ -1,285 +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 '../mixins';
|
|
5
|
-
|
|
6
|
-
/// Container for grouping inputs with a label, an icon and a status message.
|
|
7
|
-
/// Supported modifiers: .iui-inline-label, .iui-inline-icon and .iui-with-message
|
|
8
|
-
@mixin iui-input-container {
|
|
9
|
-
@include iui-reset;
|
|
10
|
-
display: grid;
|
|
11
|
-
grid-template:
|
|
12
|
-
'label label'
|
|
13
|
-
'inputs inputs' / auto 1fr;
|
|
14
|
-
|
|
15
|
-
&.iui-inline-icon {
|
|
16
|
-
> .iui-input,
|
|
17
|
-
> .iui-textarea {
|
|
18
|
-
padding-right: $iui-icons-default + $iui-l;
|
|
19
|
-
|
|
20
|
-
&:last-child {
|
|
21
|
-
padding-right: $iui-sm;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&.iui-with-message {
|
|
27
|
-
grid-template:
|
|
28
|
-
'label label'
|
|
29
|
-
'inputs inputs'
|
|
30
|
-
'icon message' / auto 1fr;
|
|
31
|
-
|
|
32
|
-
// add margin to the icon if it is below input
|
|
33
|
-
&:not(.iui-inline-icon) > .iui-input-icon {
|
|
34
|
-
margin-top: $iui-component-offset;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.iui-input,
|
|
39
|
-
.iui-input-with-icon,
|
|
40
|
-
.iui-textarea,
|
|
41
|
-
.iui-input-group {
|
|
42
|
-
grid-area: inputs;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.iui-input-group .iui-toggle-switch-wrapper {
|
|
46
|
-
padding: round($iui-baseline * 0.5) 0;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
// #region Cursors
|
|
50
|
-
@include iui-input-label-cursor;
|
|
51
|
-
|
|
52
|
-
&.iui-disabled {
|
|
53
|
-
label {
|
|
54
|
-
cursor: not-allowed;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
// #endregion
|
|
58
|
-
|
|
59
|
-
// Appropriate spacing even if no text label is given
|
|
60
|
-
.iui-checkbox-wrapper,
|
|
61
|
-
.iui-radio-wrapper {
|
|
62
|
-
min-height: $iui-line-height;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&.iui-inline-label {
|
|
66
|
-
grid-template: 'label inputs icon' / auto 1fr auto;
|
|
67
|
-
|
|
68
|
-
&.iui-with-message {
|
|
69
|
-
grid-template:
|
|
70
|
-
'label inputs inputs'
|
|
71
|
-
'. icon message' / auto auto 1fr;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
> .iui-input-group {
|
|
75
|
-
display: flex;
|
|
76
|
-
gap: $iui-m;
|
|
77
|
-
|
|
78
|
-
&:not(:last-child) {
|
|
79
|
-
margin-right: $iui-m;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/// Cursor styling for the label.
|
|
86
|
-
@mixin iui-input-label-cursor {
|
|
87
|
-
cursor: default;
|
|
88
|
-
|
|
89
|
-
@at-root {
|
|
90
|
-
label#{&} {
|
|
91
|
-
cursor: pointer;
|
|
92
|
-
|
|
93
|
-
&.iui-disabled {
|
|
94
|
-
cursor: not-allowed;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/// Text label for an input.
|
|
101
|
-
/// Supports .iui-required modifier to show red asterisk.
|
|
102
|
-
@mixin iui-input-label-styling {
|
|
103
|
-
font-weight: $iui-font-weight-semibold;
|
|
104
|
-
margin-bottom: $iui-component-offset;
|
|
105
|
-
|
|
106
|
-
&.iui-required {
|
|
107
|
-
&::after {
|
|
108
|
-
content: '*';
|
|
109
|
-
margin-left: $iui-xs;
|
|
110
|
-
color: var(--iui-color-foreground-negative);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
/// Modifier on iui-input-label-styling to place it inline.
|
|
116
|
-
@mixin iui-input-label-inline {
|
|
117
|
-
margin: 0 $iui-m 0 0;
|
|
118
|
-
|
|
119
|
-
&.iui-required {
|
|
120
|
-
margin-right: $iui-xs * 1.5;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
/// Label inside the input-container grid.
|
|
125
|
-
@mixin iui-input-container-label {
|
|
126
|
-
@include iui-input-label-styling;
|
|
127
|
-
grid-area: label;
|
|
128
|
-
align-self: center;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/// Independent label outside the grid.
|
|
132
|
-
/// Supports .iui-inline modifier to place it inline.
|
|
133
|
-
@mixin iui-input-label {
|
|
134
|
-
@include iui-input-label-styling;
|
|
135
|
-
@include iui-input-label-cursor;
|
|
136
|
-
display: block;
|
|
137
|
-
|
|
138
|
-
&.iui-inline {
|
|
139
|
-
@include iui-input-label-inline;
|
|
140
|
-
display: inline-flex;
|
|
141
|
-
align-items: center;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
/// Message shown below input
|
|
146
|
-
@mixin iui-input-message {
|
|
147
|
-
font-size: $iui-font-size-small;
|
|
148
|
-
grid-area: message;
|
|
149
|
-
margin-top: $iui-component-offset;
|
|
150
|
-
color: var(--iui-text-color-muted);
|
|
151
|
-
|
|
152
|
-
a {
|
|
153
|
-
user-select: none;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
/// Icon to be shown near a message.
|
|
158
|
-
@mixin iui-input-icon {
|
|
159
|
-
display: flex;
|
|
160
|
-
grid-area: icon;
|
|
161
|
-
width: $iui-icons-default;
|
|
162
|
-
height: $iui-icons-default;
|
|
163
|
-
align-self: center;
|
|
164
|
-
fill: var(--iui-icons-color);
|
|
165
|
-
|
|
166
|
-
&:not(:last-child) {
|
|
167
|
-
margin-right: $iui-xs;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
/// Modifier on iui-input-icon to place it at the end of input.
|
|
172
|
-
@mixin iui-input-icon-inline {
|
|
173
|
-
grid-area: inputs;
|
|
174
|
-
justify-self: end;
|
|
175
|
-
margin: 0 ($iui-sm + $iui-xxs) 0 0;
|
|
176
|
-
position: relative;
|
|
177
|
-
|
|
178
|
-
svg {
|
|
179
|
-
width: $iui-icons-default;
|
|
180
|
-
height: $iui-icons-default;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
&.iui-button {
|
|
184
|
-
height: 100%;
|
|
185
|
-
width: fit-content;
|
|
186
|
-
margin-right: 0;
|
|
187
|
-
border-top-left-radius: 0;
|
|
188
|
-
border-bottom-left-radius: 0;
|
|
189
|
-
border-top-right-radius: inherit;
|
|
190
|
-
border-bottom-right-radius: inherit;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
&.iui-actionable {
|
|
194
|
-
align-items: center;
|
|
195
|
-
height: 90%;
|
|
196
|
-
margin-right: $iui-xxs;
|
|
197
|
-
padding: 0 $iui-sm;
|
|
198
|
-
cursor: pointer;
|
|
199
|
-
|
|
200
|
-
@include iui-ripple(var(--iui-color-background-1), var(--iui-color-background-2));
|
|
201
|
-
|
|
202
|
-
svg {
|
|
203
|
-
fill: var(--iui-icons-color-actionable);
|
|
204
|
-
transition: transform $iui-speed-fast ease-out;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
&.iui-open svg {
|
|
208
|
-
transform: rotate(180deg); // transform for arrow icon (e.g. svg-caret-down), used in combobox
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
&.iui-disabled {
|
|
213
|
-
cursor: not-allowed;
|
|
214
|
-
|
|
215
|
-
svg {
|
|
216
|
-
fill: var(--iui-icons-color-actionable-disabled);
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
/// Mixin for applying status colors to input container.
|
|
222
|
-
/// @arg status - must be one of: positive, negative, warning
|
|
223
|
-
/// @arg iconSelector - selector to apply status fill on. Defaults to .iui-input-icon
|
|
224
|
-
/// @arg textSelector - selector to apply text color on. Defaults to .iui-message
|
|
225
|
-
@mixin iui-input-status($status, $iconSelector: '.iui-input-icon', $textSelector: '.iui-message') {
|
|
226
|
-
@include iui-text-selection($status);
|
|
227
|
-
|
|
228
|
-
#{$iconSelector} {
|
|
229
|
-
fill: var(--iui-color-foreground-#{$status});
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
#{$textSelector} {
|
|
233
|
-
color: var(--iui-color-foreground-#{$status});
|
|
234
|
-
|
|
235
|
-
a {
|
|
236
|
-
text-decoration: underline;
|
|
237
|
-
color: var(--iui-color-foreground-#{$status});
|
|
238
|
-
|
|
239
|
-
&:hover {
|
|
240
|
-
text-decoration: none;
|
|
241
|
-
color: var(--iui-color-foreground-#{$status}-overlay);
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.iui-input,
|
|
247
|
-
.iui-textarea {
|
|
248
|
-
padding-bottom: $iui-component-padding-vertical - 1px;
|
|
249
|
-
|
|
250
|
-
&.iui-small {
|
|
251
|
-
padding-bottom: $iui-component-padding-vertical-small - 1px;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
&.iui-large {
|
|
255
|
-
padding-bottom: $iui-component-padding-vertical-large - 1px;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
border-bottom: $iui-xxs solid var(--iui-color-foreground-#{$status});
|
|
259
|
-
|
|
260
|
-
&:focus {
|
|
261
|
-
border-bottom: $iui-xxs solid var(--iui-color-foreground-#{$status});
|
|
262
|
-
outline: 2px solid var(--iui-color-foreground-#{$status});
|
|
263
|
-
outline-offset: -2px;
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
.iui-input-with-icon {
|
|
268
|
-
--_hover-color: var(--iui-color-foreground-#{$status});
|
|
269
|
-
--_focus-color: var(--iui-color-foreground-#{$status});
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
.iui-select-button {
|
|
273
|
-
border-bottom: transparent;
|
|
274
|
-
|
|
275
|
-
&::after {
|
|
276
|
-
content: '';
|
|
277
|
-
width: 100%;
|
|
278
|
-
position: absolute;
|
|
279
|
-
bottom: 0;
|
|
280
|
-
left: 0;
|
|
281
|
-
height: $iui-xxs;
|
|
282
|
-
background-color: var(--iui-color-foreground-#{$status});
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
}
|
package/scss/utils/mixins.scss
DELETED
|
@@ -1,171 +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/color';
|
|
4
|
-
@import '../style/speed';
|
|
5
|
-
|
|
6
|
-
@mixin focus-visible {
|
|
7
|
-
&:focus-visible {
|
|
8
|
-
@content;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@supports #{'not selector(*:focus-visible)'} {
|
|
12
|
-
&:focus {
|
|
13
|
-
@content;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
@mixin iui-focus($color: var(--iui-color-foreground-primary), $offset: -1px, $thickness: 1px) {
|
|
19
|
-
@include focus-visible {
|
|
20
|
-
outline: $thickness solid $color;
|
|
21
|
-
outline-offset: $offset;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@mixin iui-reset {
|
|
26
|
-
margin: 0;
|
|
27
|
-
padding: 0;
|
|
28
|
-
border: none;
|
|
29
|
-
vertical-align: baseline;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@mixin iui-text-selection($status: primary) {
|
|
33
|
-
&::selection,
|
|
34
|
-
*::selection {
|
|
35
|
-
background-color: rgba(var(--iui-color-foreground-#{$status}-rgb), var(--iui-opacity-5));
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
@mixin iui-scrollbar {
|
|
40
|
-
scrollbar-color: rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-4)) transparent;
|
|
41
|
-
scrollbar-width: thin;
|
|
42
|
-
|
|
43
|
-
&::-webkit-scrollbar {
|
|
44
|
-
width: $iui-s;
|
|
45
|
-
height: $iui-s;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&::-webkit-scrollbar-thumb {
|
|
49
|
-
background-color: rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-4));
|
|
50
|
-
border-radius: $iui-s * 0.5;
|
|
51
|
-
|
|
52
|
-
&:hover {
|
|
53
|
-
background-color: rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-3));
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&::-webkit-scrollbar-track,
|
|
58
|
-
&::-webkit-scrollbar-corner {
|
|
59
|
-
background-color: transparent;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
@mixin iui-line-clamp($lines: 1) {
|
|
64
|
-
overflow: hidden;
|
|
65
|
-
text-overflow: ellipsis;
|
|
66
|
-
display: -webkit-box; /* stylelint-disable-line */
|
|
67
|
-
-webkit-line-clamp: $lines;
|
|
68
|
-
-webkit-box-orient: vertical; /* stylelint-disable-line */
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
@mixin iui-blur($opacity: 4) {
|
|
72
|
-
// Blur fallback
|
|
73
|
-
background-color: rgba(0, 0, 0, var(--iui-opacity-#{$opacity - 1}));
|
|
74
|
-
|
|
75
|
-
// With blur
|
|
76
|
-
@supports (backdrop-filter: $iui-blur-filter) {
|
|
77
|
-
background-color: rgba(0, 0, 0, var(--iui-opacity-#{$opacity}));
|
|
78
|
-
backdrop-filter: $iui-blur-filter;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/// Simulates display: none but keeps the element in DOM tree
|
|
83
|
-
@mixin iui-display-none {
|
|
84
|
-
opacity: 0;
|
|
85
|
-
height: 0.1px;
|
|
86
|
-
width: 0.1px;
|
|
87
|
-
margin: 0;
|
|
88
|
-
padding: 0;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/// Visually hides an element but keeps it accessible to screen readers.
|
|
92
|
-
/// Because it applies some potentially invasive styles, use this mixin on a wrapper element for best results.
|
|
93
|
-
/// If it contains a focusable element, make sure to revert/exclude these styles.
|
|
94
|
-
@mixin visually-hidden {
|
|
95
|
-
clip-path: inset(50%);
|
|
96
|
-
overflow: hidden;
|
|
97
|
-
position: absolute;
|
|
98
|
-
white-space: nowrap;
|
|
99
|
-
height: 1px;
|
|
100
|
-
width: 1px;
|
|
101
|
-
padding: 0;
|
|
102
|
-
margin: -1px;
|
|
103
|
-
border-width: 0;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/// Reverts visually-hidden styles, making it visible again.
|
|
107
|
-
@mixin visually-hidden-revert {
|
|
108
|
-
clip-path: revert;
|
|
109
|
-
overflow: visible;
|
|
110
|
-
position: static;
|
|
111
|
-
white-space: normal;
|
|
112
|
-
height: auto;
|
|
113
|
-
width: auto;
|
|
114
|
-
padding: 0;
|
|
115
|
-
margin: 0;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/// Classes for react-transition-group
|
|
119
|
-
/// Used for expand/collapse transitions. Needs height/width to be set in JS.
|
|
120
|
-
@mixin iui-transition-group {
|
|
121
|
-
$transition-rule: opacity $iui-speed-fast ease-out, width $iui-speed-fast ease-out, height $iui-speed-fast ease-out;
|
|
122
|
-
|
|
123
|
-
&.iui-enter {
|
|
124
|
-
opacity: 0;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
&.iui-enter-active {
|
|
128
|
-
opacity: 1;
|
|
129
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
130
|
-
transition: $transition-rule;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
&.iui-exit {
|
|
135
|
-
opacity: 1;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
&.iui-exit-active {
|
|
139
|
-
opacity: 0;
|
|
140
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
141
|
-
transition: $transition-rule;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
/// Adds the ability to toggle vertical scroll snapping by setting `.iui-scroll-snapping` as a modifier (if used inside a class) or at root level.
|
|
147
|
-
/// @arg $selector - selector to apply `scroll-snap-align: start` on. Defaults to '> *'
|
|
148
|
-
@mixin iui-scroll-snapping($selector: '> *') {
|
|
149
|
-
#{if(&, '&.iui-scroll-snapping', '.iui-scroll-snapping')} {
|
|
150
|
-
scroll-snap-type: y mandatory;
|
|
151
|
-
|
|
152
|
-
#{$selector} {
|
|
153
|
-
scroll-snap-align: start none;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
@mixin iui-ripple($hoverColor, $rippleColor) {
|
|
159
|
-
background-position: center;
|
|
160
|
-
transition: background $iui-speed ease-out;
|
|
161
|
-
|
|
162
|
-
&:hover {
|
|
163
|
-
background: $hoverColor radial-gradient(circle, transparent 1%, #{$hoverColor} 1%) center/15000%;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
&:active {
|
|
167
|
-
background-color: $rippleColor;
|
|
168
|
-
background-size: 100%;
|
|
169
|
-
transition: background $iui-speed-instant;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
@@ -1,9 +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
|
-
@each $status in primary, positive, warning, negative, accessory {
|
|
6
|
-
.iui-notification-#{$status} {
|
|
7
|
-
@include iui-notification-marker($status: $status);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
@@ -1,55 +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-notification-marker-border-width: $iui-xxs;
|
|
6
|
-
|
|
7
|
-
@mixin iui-notification-marker($status: primary) {
|
|
8
|
-
position: relative;
|
|
9
|
-
|
|
10
|
-
&::before {
|
|
11
|
-
content: '';
|
|
12
|
-
position: absolute;
|
|
13
|
-
width: $iui-s + $iui-notification-marker-border-width * 2;
|
|
14
|
-
height: $iui-s + $iui-notification-marker-border-width * 2;
|
|
15
|
-
top: $iui-sm * -0.5;
|
|
16
|
-
right: $iui-sm * -0.5;
|
|
17
|
-
border-radius: 100%;
|
|
18
|
-
background-color: var(--iui-color-foreground-#{$status});
|
|
19
|
-
border: $iui-notification-marker-border-width solid var(--iui-color-background-1);
|
|
20
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
21
|
-
transition: background-color $iui-speed-fast ease-out, border-color $iui-speed-fast ease-out;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&.iui-urgent::before {
|
|
26
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
27
|
-
animation: pulse-#{$status} 2s infinite;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
32
|
-
@keyframes pulse-#{$status} {
|
|
33
|
-
0% {
|
|
34
|
-
box-shadow: 0 0 0 0 rgba(var(--iui-color-foreground-#{$status}-rgb), var(--iui-opacity-1));
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
70% {
|
|
38
|
-
box-shadow: 0 0 0 7px rgba(var(--iui-color-foreground-#{$status}-rgb), 0);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
100% {
|
|
42
|
-
box-shadow: 0 0 0 0 rgba(var(--iui-color-foreground-#{$status}-rgb), 0);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
@mixin iui-notification-marker-hover {
|
|
49
|
-
.iui-notification-primary::before,
|
|
50
|
-
.iui-notification-positive::before,
|
|
51
|
-
.iui-notification-warning::before,
|
|
52
|
-
.iui-notification-negative::before {
|
|
53
|
-
border-color: var(--iui-color-background-1-overlay);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/* stylelint-disable selector-class-pattern */
|
|
2
|
-
// Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
-
// See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
-
|
|
5
|
-
// tippy.js helper class to hide Popover when it is scrolled out of view
|
|
6
|
-
@mixin iui-popover {
|
|
7
|
-
&.tippy-box {
|
|
8
|
-
&[data-reference-hidden] {
|
|
9
|
-
visibility: hidden;
|
|
10
|
-
pointer-events: none;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
// Resets tippy.js default stylings that interfere with our own
|
|
14
|
-
all: revert;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
// Resets tippy.js default stylings that interfere with our own
|
|
18
|
-
.tippy-content {
|
|
19
|
-
all: revert;
|
|
20
|
-
}
|
|
21
|
-
}
|
package/scss/variables.scss
DELETED
|
@@ -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-workflow-diagram {
|
|
6
|
-
@include iui-workflow-diagram;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.iui-workflow-diagram-step {
|
|
10
|
-
@include iui-workflow-diagram-step;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.iui-workflow-diagram-content {
|
|
14
|
-
@include iui-workflow-diagram-content;
|
|
15
|
-
}
|
|
@@ -1,64 +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 '../stepper/index';
|
|
5
|
-
|
|
6
|
-
@mixin iui-workflow-diagram {
|
|
7
|
-
@include iui-stepper-list;
|
|
8
|
-
align-items: center;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@mixin iui-workflow-diagram-step {
|
|
12
|
-
--_iui-workflow-diagram-circle-background-color: var(--iui-color-background-positive);
|
|
13
|
-
--_iui-workflow-diagram-circle-border-color: var(--iui-color-background-positive);
|
|
14
|
-
--_iui-workflow-diagram-circle-border-radius: 0;
|
|
15
|
-
--_iui-workflow-diagram-circle-text-color: var(--iui-color-foreground-accessory);
|
|
16
|
-
--_iui-workflow-diagram-track-before-color: var(--iui-color-foreground-positive);
|
|
17
|
-
--_iui-workflow-diagram-track-after-color: var(--iui-color-foreground-positive);
|
|
18
|
-
|
|
19
|
-
flex: 1;
|
|
20
|
-
align-items: center;
|
|
21
|
-
display: flex;
|
|
22
|
-
@include iui-text(small);
|
|
23
|
-
color: var(--_iui-workflow-diagram-circle-text-color);
|
|
24
|
-
|
|
25
|
-
&:first-of-type,
|
|
26
|
-
&:last-of-type {
|
|
27
|
-
--_iui-workflow-diagram-circle-background-color: var(--iui-color-background-1);
|
|
28
|
-
--_iui-workflow-diagram-circle-border-color: var(--iui-color-foreground-positive);
|
|
29
|
-
--_iui-workflow-diagram-circle-border-radius: #{$iui-sm};
|
|
30
|
-
--_iui-workflow-diagram-circle-text-color: var(--iui-color-foreground-positive);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&::before,
|
|
34
|
-
&::after {
|
|
35
|
-
content: '';
|
|
36
|
-
height: $iui-xxs;
|
|
37
|
-
flex: 1 2 auto;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&::before {
|
|
41
|
-
background-color: var(--_iui-workflow-diagram-track-before-color);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&::after {
|
|
45
|
-
background-color: var(--_iui-workflow-diagram-track-after-color);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&:first-of-type {
|
|
49
|
-
--_iui-workflow-diagram-track-before-color: transparent;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&:last-of-type {
|
|
53
|
-
--_iui-workflow-diagram-track-after-color: transparent;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
@mixin iui-workflow-diagram-content {
|
|
58
|
-
padding: 0 $iui-m;
|
|
59
|
-
font-weight: $iui-font-weight-normal;
|
|
60
|
-
text-align: center;
|
|
61
|
-
background-color: var(--_iui-workflow-diagram-circle-background-color);
|
|
62
|
-
border: 1px solid var(--_iui-workflow-diagram-circle-border-color);
|
|
63
|
-
border-radius: var(--_iui-workflow-diagram-circle-border-radius);
|
|
64
|
-
}
|
package/src/index.scss
DELETED
|
@@ -1,50 +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 './alert/index';
|
|
5
|
-
@import './anchor/index';
|
|
6
|
-
@import './avatar/index';
|
|
7
|
-
@import './badge/index';
|
|
8
|
-
@import './backdrop/index';
|
|
9
|
-
@import './blockquote/index';
|
|
10
|
-
@import './breadcrumbs/index';
|
|
11
|
-
@import './button/index';
|
|
12
|
-
@import './carousel/index';
|
|
13
|
-
@import './checkbox/index';
|
|
14
|
-
@import './code/index';
|
|
15
|
-
@import './color-picker/index';
|
|
16
|
-
@import './date-picker/index';
|
|
17
|
-
@import './dialog/index';
|
|
18
|
-
@import './expandable-block/index';
|
|
19
|
-
@import './file-upload/index';
|
|
20
|
-
@import './footer/index';
|
|
21
|
-
@import './header/index';
|
|
22
|
-
@import './icon/index';
|
|
23
|
-
@import './information-panel/index';
|
|
24
|
-
@import './input/index';
|
|
25
|
-
@import './keyboard/index';
|
|
26
|
-
@import './location-marker/index';
|
|
27
|
-
@import './menu/index';
|
|
28
|
-
@import './non-ideal-state/index';
|
|
29
|
-
@import './progress-indicator/index';
|
|
30
|
-
@import './radio/index';
|
|
31
|
-
@import './radio-tile/index';
|
|
32
|
-
@import './select/index';
|
|
33
|
-
@import './side-navigation/index';
|
|
34
|
-
@import './skip-to-content/index';
|
|
35
|
-
@import './slider/index';
|
|
36
|
-
@import './stepper/index';
|
|
37
|
-
@import './surface/index';
|
|
38
|
-
@import './table/index';
|
|
39
|
-
@import './tabs/index';
|
|
40
|
-
@import './tag/index';
|
|
41
|
-
@import './text/index';
|
|
42
|
-
@import './textarea/index';
|
|
43
|
-
@import './tile/index';
|
|
44
|
-
@import './time-picker/index';
|
|
45
|
-
@import './toast/index';
|
|
46
|
-
@import './toggle-switch/index';
|
|
47
|
-
@import './tooltip/index';
|
|
48
|
-
@import './tree/index';
|
|
49
|
-
@import './utils/index';
|
|
50
|
-
@import './workflow-diagram/index';
|