@ardium-ui/ui 5.0.0-alpha.75 → 5.0.0-alpha.77
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/fesm2022/ardium-ui-ui.mjs +106 -106
- package/fesm2022/ardium-ui-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/prebuilt-themes/default/badge.css +234 -234
- package/prebuilt-themes/default/badge.css.map +1 -1
- package/prebuilt-themes/default/buttons/button.css +324 -324
- package/prebuilt-themes/default/buttons/button.css.map +1 -1
- package/prebuilt-themes/default/buttons/fab.css +317 -319
- package/prebuilt-themes/default/buttons/fab.css.map +1 -1
- package/prebuilt-themes/default/buttons/icon-button.css +299 -300
- package/prebuilt-themes/default/buttons/icon-button.css.map +1 -1
- package/prebuilt-themes/default/calendar.css +390 -391
- package/prebuilt-themes/default/calendar.css.map +1 -1
- package/prebuilt-themes/default/card.css +151 -159
- package/prebuilt-themes/default/card.css.map +1 -1
- package/prebuilt-themes/default/checkbox-list.css +89 -88
- package/prebuilt-themes/default/checkbox-list.css.map +1 -1
- package/prebuilt-themes/default/checkbox.css +349 -349
- package/prebuilt-themes/default/checkbox.css.map +1 -1
- package/prebuilt-themes/default/chips.css +412 -412
- package/prebuilt-themes/default/chips.css.map +1 -1
- package/prebuilt-themes/default/color-display.css +34 -33
- package/prebuilt-themes/default/color-display.css.map +1 -1
- package/prebuilt-themes/default/color-picker.css +105 -103
- package/prebuilt-themes/default/color-picker.css.map +1 -1
- package/prebuilt-themes/default/core.css +108 -106
- package/prebuilt-themes/default/core.css.map +1 -1
- package/prebuilt-themes/default/dialog.css +19 -20
- package/prebuilt-themes/default/dialog.css.map +1 -1
- package/prebuilt-themes/default/divider.css +84 -83
- package/prebuilt-themes/default/divider.css.map +1 -1
- package/prebuilt-themes/default/dropdown-panel.css +42 -42
- package/prebuilt-themes/default/dropdown-panel.css.map +1 -1
- package/prebuilt-themes/default/file-drop-area.css +329 -329
- package/prebuilt-themes/default/file-drop-area.css.map +1 -1
- package/prebuilt-themes/default/form-field-frame.css +102 -102
- package/prebuilt-themes/default/form-field-frame.css.map +1 -1
- package/prebuilt-themes/default/form-field.css +148 -151
- package/prebuilt-themes/default/form-field.css.map +1 -1
- package/prebuilt-themes/default/inputs/autocomplete-input.css +183 -183
- package/prebuilt-themes/default/inputs/autocomplete-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/color-input.css +99 -98
- package/prebuilt-themes/default/inputs/color-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/date-input.css +134 -135
- package/prebuilt-themes/default/inputs/date-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/digit-input.css +120 -122
- package/prebuilt-themes/default/inputs/digit-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/file-input.css +385 -387
- package/prebuilt-themes/default/inputs/file-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/hex-input.css +150 -149
- package/prebuilt-themes/default/inputs/hex-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/input.css +137 -136
- package/prebuilt-themes/default/inputs/input.css.map +1 -1
- package/prebuilt-themes/default/inputs/number-input.css +213 -214
- package/prebuilt-themes/default/inputs/number-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/password-input.css +120 -120
- package/prebuilt-themes/default/inputs/password-input.css.map +1 -1
- package/prebuilt-themes/default/kbd-shortcut.css +14 -13
- package/prebuilt-themes/default/kbd-shortcut.css.map +1 -1
- package/prebuilt-themes/default/kbd.css +26 -25
- package/prebuilt-themes/default/kbd.css.map +1 -1
- package/prebuilt-themes/default/modal.css +96 -95
- package/prebuilt-themes/default/modal.css.map +1 -1
- package/prebuilt-themes/default/progress-bar.css +250 -235
- package/prebuilt-themes/default/progress-bar.css.map +1 -1
- package/prebuilt-themes/default/progress-circle.css +178 -177
- package/prebuilt-themes/default/progress-circle.css.map +1 -1
- package/prebuilt-themes/default/radio.css +246 -248
- package/prebuilt-themes/default/radio.css.map +1 -1
- package/prebuilt-themes/default/segment.css +432 -431
- package/prebuilt-themes/default/segment.css.map +1 -1
- package/prebuilt-themes/default/select.css +302 -304
- package/prebuilt-themes/default/select.css.map +1 -1
- package/prebuilt-themes/default/slide-toggle.css +319 -319
- package/prebuilt-themes/default/slide-toggle.css.map +1 -1
- package/prebuilt-themes/default/slider.css +399 -399
- package/prebuilt-themes/default/slider.css.map +1 -1
- package/prebuilt-themes/default/snackbar.css +185 -185
- package/prebuilt-themes/default/snackbar.css.map +1 -1
- package/prebuilt-themes/default/spinner.css +161 -161
- package/prebuilt-themes/default/spinner.css.map +1 -1
- package/prebuilt-themes/default/stars.css +271 -275
- package/prebuilt-themes/default/stars.css.map +1 -1
- package/prebuilt-themes/default/tabber.css +250 -250
- package/prebuilt-themes/default/tabber.css.map +1 -1
- package/prebuilt-themes/default/table-pagination.css +57 -57
- package/prebuilt-themes/default/table-pagination.css.map +1 -1
- package/prebuilt-themes/default/table.css +464 -463
- package/prebuilt-themes/default/table.css.map +1 -1
- package/themes/default/badge.scss +112 -110
- package/themes/default/buttons/button.scss +91 -89
- package/themes/default/buttons/fab.scss +80 -76
- package/themes/default/buttons/icon-button.scss +73 -71
- package/themes/default/calendar.scss +246 -242
- package/themes/default/card.scss +161 -159
- package/themes/default/checkbox-list.scss +85 -83
- package/themes/default/checkbox.scss +68 -66
- package/themes/default/chips.scss +202 -195
- package/themes/default/color-display.scss +40 -38
- package/themes/default/color-picker.scss +95 -93
- package/themes/default/core.scss +124 -121
- package/themes/default/dialog.scss +21 -19
- package/themes/default/divider.scss +92 -90
- package/themes/default/dropdown-panel.scss +49 -47
- package/themes/default/file-drop-area.scss +197 -195
- package/themes/default/form-field-frame.scss +69 -67
- package/themes/default/form-field.scss +135 -133
- package/themes/default/inputs/autocomplete-input.scss +99 -97
- package/themes/default/inputs/color-input.scss +34 -32
- package/themes/default/inputs/date-input.scss +88 -86
- package/themes/default/inputs/digit-input.scss +103 -101
- package/themes/default/inputs/file-input.scss +158 -156
- package/themes/default/inputs/hex-input.scss +66 -64
- package/themes/default/inputs/input.scss +52 -50
- package/themes/default/inputs/number-input.scss +162 -160
- package/themes/default/inputs/password-input.scss +99 -97
- package/themes/default/kbd-shortcut.scss +15 -13
- package/themes/default/kbd.scss +34 -32
- package/themes/default/modal.scss +106 -104
- package/themes/default/progress-bar.scss +126 -102
- package/themes/default/progress-circle.scss +50 -48
- package/themes/default/radio.scss +110 -108
- package/themes/default/segment.scss +282 -277
- package/themes/default/select.scss +255 -253
- package/themes/default/slide-toggle.scss +173 -171
- package/themes/default/slider.scss +223 -217
- package/themes/default/snackbar.scss +49 -47
- package/themes/default/spinner.scss +23 -21
- package/themes/default/stars.scss +95 -93
- package/themes/default/tabber.scss +105 -103
- package/themes/default/table-pagination.scss +60 -59
- package/themes/default/table.scss +375 -373
|
@@ -2,305 +2,307 @@
|
|
|
2
2
|
@use './mixins' as defaultMixins;
|
|
3
3
|
@use '../variables' as ARD;
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
5
|
+
@layer ard-theme {
|
|
6
|
+
// the variables are commented out intentionally
|
|
7
|
+
// read more in docs/dev/css-variables.md
|
|
8
|
+
:root {
|
|
9
|
+
// --ard-select-height: ;
|
|
10
|
+
// --ard-select-height-compact: ;
|
|
11
|
+
--ard-select-gap: 0.625rem;
|
|
12
|
+
--ard-select-gap-compact: 0.5rem;
|
|
13
|
+
--ard-select-controls-gap: 0.625rem;
|
|
14
|
+
--ard-select-controls-gap-compact: 0.5rem;
|
|
15
|
+
--ard-select-padding: 0 1em 0 0.375em;
|
|
16
|
+
--ard-select-padding-compact: 0 0.625em 0 0.375em;
|
|
17
|
+
|
|
18
|
+
// --ard-select-font-size: ;
|
|
19
|
+
// --ard-select-font-size-compact: ;
|
|
20
|
+
// --ard-select-text-color: ;
|
|
21
|
+
// --ard-select-placeholder-color: ;
|
|
22
|
+
--ard-select-search-min-width: 10ch;
|
|
23
|
+
// --ard-select-dropdown-arrow-color: ;
|
|
24
|
+
--ard-select-dropdown-arrow-active-transform: rotate(180deg);
|
|
25
|
+
--ard-select-dropdown-arrow-transition: 0.2s ease-in-out;
|
|
26
|
+
|
|
27
|
+
--ard-select-multiselect-padding: 0.25em 0;
|
|
28
|
+
--ard-select-multiselect-chip-gap: 0.375rem;
|
|
29
|
+
|
|
30
|
+
--ard-select-dropdown-width: max-content;
|
|
31
|
+
--ard-select-dropdown-max-width: max(25em, 100%);
|
|
32
|
+
--ard-select-dropdown-min-width: 100%;
|
|
33
|
+
--ard-select-dropdown-max-height: 15em;
|
|
34
|
+
// --ard-select-dropdown-font-size: ;
|
|
35
|
+
// --ard-select-dropdown-font-size-compact: ;
|
|
36
|
+
--ard-select-dropdown-padding: 0.375em 0.625em;
|
|
37
|
+
--ard-select-dropdown-gap: 0;
|
|
38
|
+
|
|
39
|
+
--ard-select-dropdown-optgroup-label-font-size: 0.875em;
|
|
40
|
+
--ard-select-dropdown-optgroup-label-font-weight: 600;
|
|
41
|
+
--ard-select-dropdown-optgroup-label-letter-spacing: 0.25px;
|
|
42
|
+
--ard-select-dropdown-optgroup-label-padding: 0.375em 0.625em 0.0625em 0.625em;
|
|
43
|
+
|
|
44
|
+
--ard-select-dropdown-option-padding: 0.375em 0.625em;
|
|
45
|
+
// --ard-select-dropdown-option-text-color: ;
|
|
46
|
+
// --ard-select-dropdown-option-highlighted-bg: ;
|
|
47
|
+
--ard-select-dropdown-option-selected-font-weight: 500;
|
|
48
|
+
// --ard-select-dropdown-option-selected-bg: ;
|
|
49
|
+
// --ard-select-dropdown-option-selected-highlighted-bg: ;
|
|
50
|
+
--ard-select-dropdown-option-disabled-opacity: 50%;
|
|
51
|
+
|
|
52
|
+
--ard-select-dropdown-add-custom-gap: 0.375rem;
|
|
53
|
+
--ard-select-dropdown-add-custom-label-font-size: 85%;
|
|
54
|
+
}
|
|
54
55
|
|
|
55
|
-
.ard-select {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
align-items: center;
|
|
61
|
-
grid-template-columns: 1fr max-content;
|
|
62
|
-
gap: var(--ard-select-gap, 0.625rem);
|
|
63
|
-
padding: var(--ard-select-padding, 0 1em 0 0.375em);
|
|
64
|
-
font-family: var(--ard-font-family);
|
|
65
|
-
font-size: var(--ard-select-font-size, var(--ard-form-field-font-size, 1rem));
|
|
66
|
-
color: var(--ard-select-text-color, var(--ard-text, rgba(0, 0, 0, 100%)));
|
|
67
|
-
|
|
68
|
-
@include CB.clearButton();
|
|
69
|
-
|
|
70
|
-
//! value container
|
|
71
|
-
.ard-select-value-container {
|
|
72
|
-
position: relative;
|
|
73
|
-
height: 2em;
|
|
74
|
-
display: flex;
|
|
56
|
+
.ard-select {
|
|
57
|
+
box-sizing: border-box;
|
|
58
|
+
width: 100%;
|
|
59
|
+
min-height: var(--ard-select-height, var(--ard-form-field-height, 2.3125rem));
|
|
60
|
+
display: grid;
|
|
75
61
|
align-items: center;
|
|
62
|
+
grid-template-columns: 1fr max-content;
|
|
63
|
+
gap: var(--ard-select-gap, 0.625rem);
|
|
64
|
+
padding: var(--ard-select-padding, 0 1em 0 0.375em);
|
|
65
|
+
font-family: var(--ard-font-family);
|
|
76
66
|
font-size: var(--ard-select-font-size, var(--ard-form-field-font-size, 1rem));
|
|
77
|
-
text-
|
|
78
|
-
flex-grow: 1;
|
|
79
|
-
overflow: hidden;
|
|
67
|
+
color: var(--ard-select-text-color, var(--ard-text, rgba(0, 0, 0, 100%)));
|
|
80
68
|
|
|
81
|
-
.
|
|
82
|
-
font: inherit;
|
|
83
|
-
position: absolute;
|
|
84
|
-
color: var(--ard-select-placeholder-color, var(--ard-text3, rgba(0, 0, 0, 75%)));
|
|
85
|
-
white-space: nowrap;
|
|
86
|
-
overflow: hidden;
|
|
87
|
-
text-overflow: ellipsis;
|
|
88
|
-
width: max-content;
|
|
89
|
-
max-width: 100%;
|
|
90
|
-
pointer-events: none;
|
|
91
|
-
}
|
|
69
|
+
@include CB.clearButton();
|
|
92
70
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
71
|
+
//! value container
|
|
72
|
+
.ard-select-value-container {
|
|
73
|
+
position: relative;
|
|
74
|
+
height: 2em;
|
|
75
|
+
display: flex;
|
|
76
|
+
align-items: center;
|
|
77
|
+
font-size: var(--ard-select-font-size, var(--ard-form-field-font-size, 1rem));
|
|
78
|
+
text-size-adjust: 100%;
|
|
79
|
+
flex-grow: 1;
|
|
80
|
+
overflow: hidden;
|
|
96
81
|
|
|
97
|
-
|
|
98
|
-
border: none;
|
|
99
|
-
background: transparent;
|
|
100
|
-
outline: none;
|
|
82
|
+
.ard-placeholder {
|
|
101
83
|
font: inherit;
|
|
102
|
-
|
|
103
|
-
|
|
84
|
+
position: absolute;
|
|
85
|
+
color: var(--ard-select-placeholder-color, var(--ard-text3, rgba(0, 0, 0, 75%)));
|
|
86
|
+
white-space: nowrap;
|
|
87
|
+
overflow: hidden;
|
|
88
|
+
text-overflow: ellipsis;
|
|
89
|
+
width: max-content;
|
|
90
|
+
max-width: 100%;
|
|
91
|
+
pointer-events: none;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.ard-search-input {
|
|
104
95
|
width: 100%;
|
|
105
96
|
max-width: 100%;
|
|
97
|
+
|
|
98
|
+
input {
|
|
99
|
+
border: none;
|
|
100
|
+
background: transparent;
|
|
101
|
+
outline: none;
|
|
102
|
+
font: inherit;
|
|
103
|
+
padding-left: 1px;
|
|
104
|
+
display: block;
|
|
105
|
+
width: 100%;
|
|
106
|
+
max-width: 100%;
|
|
107
|
+
}
|
|
106
108
|
}
|
|
107
109
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
gap: var(--ard-select-controls-gap, 0.625rem);
|
|
113
|
-
width: max-content;
|
|
114
|
-
}
|
|
115
|
-
//! single/multiselect
|
|
116
|
-
&.ard-singleselect {
|
|
117
|
-
.ard-value {
|
|
110
|
+
.ard-select-controls {
|
|
111
|
+
display: flex;
|
|
112
|
+
align-items: center;
|
|
113
|
+
gap: var(--ard-select-controls-gap, 0.625rem);
|
|
118
114
|
width: max-content;
|
|
119
|
-
white-space: nowrap;
|
|
120
115
|
}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
.ard-search-input {
|
|
125
|
-
position: absolute;
|
|
126
|
-
top: 50%;
|
|
127
|
-
left: 0;
|
|
128
|
-
transform: translateY(-50%) translateX(-1px);
|
|
129
|
-
width: max-content;
|
|
130
|
-
|
|
131
|
-
input {
|
|
116
|
+
//! single/multiselect
|
|
117
|
+
&.ard-singleselect {
|
|
118
|
+
.ard-value {
|
|
132
119
|
width: max-content;
|
|
120
|
+
white-space: nowrap;
|
|
133
121
|
}
|
|
134
122
|
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
123
|
+
&:not(.ard-searchable),
|
|
124
|
+
&.ard-singleselect {
|
|
125
|
+
.ard-search-input {
|
|
126
|
+
position: absolute;
|
|
127
|
+
top: 50%;
|
|
128
|
+
left: 0;
|
|
129
|
+
transform: translateY(-50%) translateX(-1px);
|
|
130
|
+
width: max-content;
|
|
141
131
|
|
|
142
|
-
|
|
132
|
+
input {
|
|
133
|
+
width: max-content;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
&:not(.ard-searchable) .ard-search-input {
|
|
138
|
+
pointer-events: none;
|
|
139
|
+
}
|
|
140
|
+
&.ard-multiselect {
|
|
143
141
|
height: max-content;
|
|
144
|
-
min-height: 1.5625em;
|
|
145
|
-
padding: var(--ard-select-multiselect-padding, 0.25em 0);
|
|
146
|
-
box-sizing: border-box;
|
|
147
|
-
flex-wrap: wrap;
|
|
148
|
-
gap: var(--ard-select-multiselect-chip-gap, 0.375rem);
|
|
149
|
-
justify-content: stretch;
|
|
150
142
|
|
|
143
|
+
.ard-select-value-container {
|
|
144
|
+
height: max-content;
|
|
145
|
+
min-height: 1.5625em;
|
|
146
|
+
padding: var(--ard-select-multiselect-padding, 0.25em 0);
|
|
147
|
+
box-sizing: border-box;
|
|
148
|
+
flex-wrap: wrap;
|
|
149
|
+
gap: var(--ard-select-multiselect-chip-gap, 0.375rem);
|
|
150
|
+
justify-content: stretch;
|
|
151
|
+
|
|
152
|
+
.ard-chip-wrapper {
|
|
153
|
+
margin: 0;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
.ard-search-input {
|
|
157
|
+
flex-grow: 1;
|
|
158
|
+
width: unset !important;
|
|
159
|
+
min-width: var(--ard-select-search-min-width, 10ch);
|
|
160
|
+
|
|
161
|
+
input {
|
|
162
|
+
width: var(--ard-select-search-min-width, 10ch) !important;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
151
165
|
.ard-chip-wrapper {
|
|
152
166
|
margin: 0;
|
|
153
167
|
}
|
|
154
168
|
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
169
|
+
//! dropdown arrow
|
|
170
|
+
.ard-dropdown-arrow-wrapper {
|
|
171
|
+
display: flex;
|
|
172
|
+
align-items: center;
|
|
173
|
+
height: max-content;
|
|
174
|
+
width: max-content;
|
|
175
|
+
background-color: transparent;
|
|
176
|
+
border: none;
|
|
177
|
+
cursor: pointer;
|
|
178
|
+
transition: transform var(--ard-select-dropdown-arrow-transition, 0.2s ease-in-out);
|
|
179
|
+
|
|
180
|
+
.ard-dropdown-arrow {
|
|
181
|
+
border: calc(ARD.$dropdown-button-size / 2) solid transparent;
|
|
182
|
+
position: relative;
|
|
183
|
+
border-bottom-color: var(--ard-select-dropdown-arrow-color, ARD.$detail);
|
|
184
|
+
border-right-color: var(--ard-select-dropdown-arrow-color, ARD.$detail);
|
|
185
|
+
transform: rotate(45deg) translate(-17.67771%, -17.67771%);
|
|
162
186
|
}
|
|
163
187
|
}
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
//! dropdown arrow
|
|
169
|
-
.ard-dropdown-arrow-wrapper {
|
|
170
|
-
display: flex;
|
|
171
|
-
align-items: center;
|
|
172
|
-
height: max-content;
|
|
173
|
-
width: max-content;
|
|
174
|
-
background-color: transparent;
|
|
175
|
-
border: none;
|
|
176
|
-
cursor: pointer;
|
|
177
|
-
transition: transform var(--ard-select-dropdown-arrow-transition, 0.2s ease-in-out);
|
|
178
|
-
|
|
179
|
-
.ard-dropdown-arrow {
|
|
180
|
-
border: calc(ARD.$dropdown-button-size / 2) solid transparent;
|
|
181
|
-
position: relative;
|
|
182
|
-
border-bottom-color: var(--ard-select-dropdown-arrow-color, ARD.$detail);
|
|
183
|
-
border-right-color: var(--ard-select-dropdown-arrow-color, ARD.$detail);
|
|
184
|
-
transform: rotate(45deg) translate(-17.67771%, -17.67771%);
|
|
188
|
+
&.ard-dropdown-open {
|
|
189
|
+
.ard-dropdown-arrow-wrapper {
|
|
190
|
+
transform: var(--ard-select-dropdown-arrow-active-transform, rotate(180deg));
|
|
191
|
+
}
|
|
185
192
|
}
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
193
|
+
|
|
194
|
+
//! compact
|
|
195
|
+
&.ard-compact {
|
|
196
|
+
font-size: var(--ard-select-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem));
|
|
197
|
+
min-height: var(--ard-select-height-compact, var(--ard-form-field-height-compact, 1.6875rem));
|
|
198
|
+
padding: var(--ard-select-padding-compact, 0 0.625em 0 0.375em);
|
|
199
|
+
|
|
200
|
+
.ard-select-controls {
|
|
201
|
+
gap: var(--ard-select-controls-gap-compact, 0.5rem);
|
|
202
|
+
}
|
|
203
|
+
.ard-dropdown-arrow-wrapper .ard-dropdown-arrow {
|
|
204
|
+
border-width: calc(ARD.$dropdown-button-size / 2.4);
|
|
205
|
+
}
|
|
190
206
|
}
|
|
191
207
|
}
|
|
192
208
|
|
|
193
|
-
//!
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
209
|
+
//! optgroups & options, divider
|
|
210
|
+
.ard-select-dropdown-panel {
|
|
211
|
+
right: 0;
|
|
212
|
+
width: var(--ard-select-dropdown-width, max-content);
|
|
213
|
+
max-width: var(--ard-select-dropdown-max-width, max(25em, 100%));
|
|
214
|
+
min-width: var(--ard-select-dropdown-min-width, 100%);
|
|
215
|
+
font-size: var(--ard-select-dropdown-font-size, var(--ard-form-field-font-size, 1rem));
|
|
216
|
+
|
|
217
|
+
.ard-dropdown-panel-content {
|
|
218
|
+
padding: var(--ard-select-dropdown-padding, 0.375em 0.625em);
|
|
219
|
+
max-height: var(--ard-select-dropdown-max-height, 15em);
|
|
220
|
+
overflow: hidden auto;
|
|
201
221
|
}
|
|
202
|
-
.ard-
|
|
203
|
-
|
|
222
|
+
.ard-optgroup {
|
|
223
|
+
display: flex;
|
|
224
|
+
flex-direction: column;
|
|
225
|
+
cursor: pointer;
|
|
226
|
+
}
|
|
227
|
+
.ard-optgroup-children {
|
|
228
|
+
cursor: default;
|
|
204
229
|
}
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
230
|
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
font-size: var(--ard-select-dropdown-font-size, var(--ard-form-field-font-size, 1rem));
|
|
215
|
-
|
|
216
|
-
.ard-dropdown-panel-content {
|
|
217
|
-
padding: var(--ard-select-dropdown-padding, 0.375em 0.625em);
|
|
218
|
-
max-height: var(--ard-select-dropdown-max-height, 15em);
|
|
219
|
-
overflow: hidden auto;
|
|
220
|
-
}
|
|
221
|
-
.ard-optgroup {
|
|
222
|
-
display: flex;
|
|
223
|
-
flex-direction: column;
|
|
224
|
-
cursor: pointer;
|
|
225
|
-
}
|
|
226
|
-
.ard-optgroup-children {
|
|
227
|
-
cursor: default;
|
|
228
|
-
}
|
|
231
|
+
.ard-optgroup-label {
|
|
232
|
+
font-size: var(--ard-select-dropdown-optgroup-label-font-size, 0.875em);
|
|
233
|
+
font-weight: var(--ard-select-dropdown-optgroup-label-font-weight, 600);
|
|
234
|
+
letter-spacing: 0.25px;
|
|
235
|
+
padding: var(--ard-select-dropdown-optgroup-label-padding, 0.375em 0.625em 0.0625em 0.625em);
|
|
236
|
+
}
|
|
229
237
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
padding: var(--ard-select-dropdown-optgroup-label-padding, 0.375em 0.625em 0.0625em 0.625em);
|
|
235
|
-
}
|
|
238
|
+
.ard-option {
|
|
239
|
+
padding: var(--ard-select-dropdown-option-padding, 0.375em 0.625em);
|
|
240
|
+
color: var(--ard-select-dropdown-option-text-color, var(--ard-text2, rgba(0, 0, 0, 87%)));
|
|
241
|
+
cursor: pointer;
|
|
236
242
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
cursor: pointer;
|
|
243
|
+
&.ard-option-highlighted {
|
|
244
|
+
background: var(--ard-select-dropdown-option-highlighted-bg, ARD.$darken-overlay-light);
|
|
245
|
+
}
|
|
241
246
|
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
247
|
+
&.ard-option-selected {
|
|
248
|
+
font-weight: var(--ard-select-dropdown-option-selected-font-weight, 500);
|
|
249
|
+
background: var(--ard-select-dropdown-option-selected-bg, ARD.$darken-overlay-medium);
|
|
245
250
|
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
251
|
+
&.ard-option-highlighted {
|
|
252
|
+
background: var(--ard-select-dropdown-option-selected-highlighted-bg, ARD.$darken-overlay-medium-strong);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
249
255
|
|
|
250
|
-
&.ard-option-
|
|
251
|
-
|
|
256
|
+
&.ard-option-disabled {
|
|
257
|
+
pointer-events: none;
|
|
258
|
+
opacity: var(--ard-select-dropdown-option-disabled-opacity, 50%);
|
|
252
259
|
}
|
|
253
260
|
}
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
261
|
+
//divider
|
|
262
|
+
hr.ard-divider {
|
|
263
|
+
width: calc(100% - 1.25em);
|
|
264
|
+
margin: 0.375em 0.625em;
|
|
265
|
+
border: none;
|
|
266
|
+
border-bottom: 1px solid ARD.$darken-overlay-strong;
|
|
258
267
|
}
|
|
259
|
-
}
|
|
260
|
-
//divider
|
|
261
|
-
hr.ard-divider {
|
|
262
|
-
width: calc(100% - 1.25em);
|
|
263
|
-
margin: 0.375em 0.625em;
|
|
264
|
-
border: none;
|
|
265
|
-
border-bottom: 1px solid ARD.$darken-overlay-strong;
|
|
266
|
-
}
|
|
267
268
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
269
|
+
.ard-optgroup:first-child > hr.ard-divider {
|
|
270
|
+
display: none;
|
|
271
|
+
}
|
|
272
|
+
//! custom option
|
|
273
|
+
.ard-add-custom {
|
|
274
|
+
display: flex;
|
|
275
|
+
align-items: flex-end;
|
|
276
|
+
gap: var(--ard-select-dropdown-add-custom-gap, 0.375rem);
|
|
277
|
+
|
|
278
|
+
.ard-add-custom-label {
|
|
279
|
+
font-size: var(--ard-select-dropdown-add-custom-label-font-size, 85%);
|
|
280
|
+
}
|
|
279
281
|
}
|
|
280
|
-
}
|
|
281
282
|
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
283
|
+
//! compact
|
|
284
|
+
> .ard-compact {
|
|
285
|
+
font-size: var(--ard-select-dropdown-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem));
|
|
286
|
+
}
|
|
285
287
|
}
|
|
286
|
-
}
|
|
287
288
|
|
|
288
|
-
//! spinner
|
|
289
|
-
.ard-simple-spinner {
|
|
290
|
-
border-radius: 999px;
|
|
291
|
-
border: 0.5em solid var(--ard-spinner-color);
|
|
292
|
-
border-top-color: transparent;
|
|
293
|
-
animation: spinner-anim 1s linear infinite;
|
|
294
|
-
position: relative;
|
|
295
|
-
|
|
296
|
-
&::after {
|
|
297
|
-
content: '';
|
|
298
|
-
position: absolute;
|
|
299
|
-
top: 50%;
|
|
300
|
-
left: 50%;
|
|
301
|
-
transform: translate(-50%, -50%);
|
|
289
|
+
//! spinner
|
|
290
|
+
.ard-simple-spinner {
|
|
302
291
|
border-radius: 999px;
|
|
303
|
-
border: 0.
|
|
292
|
+
border: 0.5em solid var(--ard-spinner-color);
|
|
293
|
+
border-top-color: transparent;
|
|
294
|
+
animation: spinner-anim 1s linear infinite;
|
|
295
|
+
position: relative;
|
|
296
|
+
|
|
297
|
+
&::after {
|
|
298
|
+
content: '';
|
|
299
|
+
position: absolute;
|
|
300
|
+
top: 50%;
|
|
301
|
+
left: 50%;
|
|
302
|
+
transform: translate(-50%, -50%);
|
|
303
|
+
border-radius: 999px;
|
|
304
|
+
border: 0.35em solid var(--ard-bg);
|
|
305
|
+
}
|
|
304
306
|
}
|
|
305
307
|
}
|
|
306
308
|
|