@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
|
@@ -1,159 +1,161 @@
|
|
|
1
1
|
@use '../variables' as ARD;
|
|
2
2
|
|
|
3
|
-
|
|
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
|
-
|
|
3
|
+
@layer ard-theme {
|
|
4
|
+
// the variables are commented out intentionally
|
|
5
|
+
// read more in docs/dev/css-variables.md
|
|
6
|
+
:root {
|
|
7
|
+
--ard-form-field-label-padding: 0.25rem 0 0.125rem 0.125rem;
|
|
8
|
+
--ard-form-field-label-font-size: 0.9375rem;
|
|
9
|
+
--ard-form-field-label-font-weight: 500;
|
|
10
|
+
--ard-form-field-label-required-font-weight: 500;
|
|
11
|
+
--ard-form-field-label-required-font-size: 112.5%;
|
|
12
|
+
--ard-form-field-label-required-color: orangered;
|
|
13
|
+
--ard-form-field-label-optional-font-weight: 400;
|
|
14
|
+
--ard-form-field-label-optional-font-size: 0.8125rem;
|
|
15
|
+
// --ard-form-field-label-optional-color: ;
|
|
16
|
+
--ard-form-field-label-optional-font-style: italic;
|
|
17
|
+
// --ard-form-field-error-color: ;
|
|
18
|
+
// --ard-form-field-success-color: ;
|
|
19
|
+
--ard-form-field-hint-padding: 0.125rem 0 0.25rem 0.125rem;
|
|
20
|
+
--ard-form-field-hint-font-size: 0.8125rem;
|
|
21
|
+
--ard-form-field-hint-line-height: 1.2;
|
|
22
|
+
--ard-form-field-hint-right-padding-left: 0.5rem;
|
|
23
|
+
--ard-form-field-hint-error-line-height: 1.2;
|
|
24
|
+
--ard-form-field-hint-error-gap: 0.375em;
|
|
25
|
+
--ard-form-field-label-disabled-opacity: 40%;
|
|
26
|
+
--ard-form-field-hint-disabled-opacity: 50%;
|
|
27
|
+
--ard-form-field-error-animation-duration: 0.25s;
|
|
28
|
+
--ard-horizontal-form-field-gap: 0.5rem;
|
|
29
|
+
}
|
|
29
30
|
|
|
30
|
-
ard-form-field,
|
|
31
|
-
ard-horizontal-form-field {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
31
|
+
ard-form-field,
|
|
32
|
+
ard-horizontal-form-field {
|
|
33
|
+
display: block;
|
|
34
|
+
width: 100%;
|
|
35
|
+
}
|
|
35
36
|
|
|
36
|
-
.ard-form-field,
|
|
37
|
-
.ard-horizontal-form-field {
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
.ard-form-field,
|
|
38
|
+
.ard-horizontal-form-field {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
40
41
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
.ard-label {
|
|
43
|
+
padding: var(--ard-form-field-label-padding, 0.25rem 0 0.125rem 0.125rem);
|
|
44
|
+
font-size: var(--ard-form-field-label-font-size, 0.9375rem);
|
|
45
|
+
font-weight: var(--ard-form-field-label-font-weight, 500);
|
|
45
46
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
.ard-label__required {
|
|
48
|
+
.ard-label__required-optional-text {
|
|
49
|
+
font-weight: var(--ard-form-field-label-required-font-weight, 500);
|
|
50
|
+
font-size: var(--ard-form-field-label-required-font-size, 112.5%);
|
|
51
|
+
color: var(--ard-form-field-label-required-color, orangered);
|
|
52
|
+
line-height: 1;
|
|
53
|
+
}
|
|
52
54
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
55
|
+
.ard-label__optional {
|
|
56
|
+
.ard-label__required-optional-text {
|
|
57
|
+
font-weight: var(--ard-form-field-label-optional-font-weight, 400);
|
|
58
|
+
font-size: var(--ard-form-field-label-optional-font-size, 0.8125rem);
|
|
59
|
+
color: var(--ard-form-field-label-optional-color, #{ARD.$text2});
|
|
60
|
+
font-style: var(--ard-form-field-label-optional-font-style, italic);
|
|
61
|
+
}
|
|
60
62
|
}
|
|
61
63
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
line-height: var(--ard-form-field-hint-line-height, 1.1);
|
|
64
|
+
.ard-form-field__hints {
|
|
65
|
+
padding: var(--ard-form-field-hint-padding, 0.125rem 0 0.25rem 0.125rem);
|
|
66
|
+
font-size: var(--ard-form-field-hint-font-size, 0.8125rem);
|
|
67
|
+
line-height: var(--ard-form-field-hint-line-height, 1.1);
|
|
67
68
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
&.ard-form-field__reserve-hint-line {
|
|
70
|
+
box-sizing: content-box;
|
|
71
|
+
min-height: calc(var(--ard-form-field-hint-line-height, 1.1) * 1em);
|
|
72
|
+
}
|
|
71
73
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
.ard-form-field__hints-right,
|
|
75
|
+
.ard-form-field__errors-right {
|
|
76
|
+
> * {
|
|
77
|
+
padding-left: var(--ard-form-field-hint-right-padding-left, 0.5rem);
|
|
78
|
+
}
|
|
77
79
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
min-height: calc(var(--ard-form-field-hint-error-line-height, 1.2) * 1em);
|
|
85
|
-
}
|
|
86
|
-
.ard-hint {
|
|
87
|
-
color: var(--ard-form-field-hint-color, #{ARD.$text2});
|
|
88
|
-
}
|
|
89
|
-
.ard-error:not(.ard-hint-error),
|
|
90
|
-
.ard-form-field__errors .ard-hint-error {
|
|
91
|
-
color: var(--ard-form-field-error-color, #{ARD.$danger700});
|
|
92
|
-
overflow: hidden;
|
|
93
|
-
}
|
|
94
|
-
.ard-error:not(.ard-hint-error) {
|
|
95
|
-
animation: errorAppear var(--ard-form-field-error-animation-duration, 0.25s) ARD.$timing-fn forwards;
|
|
96
|
-
}
|
|
97
|
-
.ard-form-field__default-hint,
|
|
98
|
-
.ard-form-field__default-error {
|
|
99
|
-
gap: var(--ard-form-field-hint-error-gap, 0.375em);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
&.ard-form-field__with-error {
|
|
103
|
-
.ard-label,
|
|
104
|
-
ard-label {
|
|
105
|
-
color: var(--ard-form-field-error-color, #{ARD.$danger700});
|
|
80
|
+
.ard-hint,
|
|
81
|
+
.ard-error {
|
|
82
|
+
font-size: 1em;
|
|
83
|
+
line-height: var(--ard-form-field-hint-error-line-height, 1.2);
|
|
84
|
+
display: inline-grid;
|
|
85
|
+
min-height: calc(var(--ard-form-field-hint-error-line-height, 1.2) * 1em);
|
|
106
86
|
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
.ard-label,
|
|
110
|
-
ard-label {
|
|
111
|
-
color: var(--ard-form-field-success-color, #{ARD.$success700});
|
|
87
|
+
.ard-hint {
|
|
88
|
+
color: var(--ard-form-field-hint-color, #{ARD.$text2});
|
|
112
89
|
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
90
|
+
.ard-error:not(.ard-hint-error),
|
|
91
|
+
.ard-form-field__errors .ard-hint-error {
|
|
92
|
+
color: var(--ard-form-field-error-color, #{ARD.$danger700});
|
|
93
|
+
overflow: hidden;
|
|
117
94
|
}
|
|
118
|
-
.ard-
|
|
119
|
-
|
|
95
|
+
.ard-error:not(.ard-hint-error) {
|
|
96
|
+
animation: errorAppear var(--ard-form-field-error-animation-duration, 0.25s) ARD.$timing-fn forwards;
|
|
97
|
+
}
|
|
98
|
+
.ard-form-field__default-hint,
|
|
99
|
+
.ard-form-field__default-error {
|
|
100
|
+
gap: var(--ard-form-field-hint-error-gap, 0.375em);
|
|
120
101
|
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
.ard-horizontal-form-field {
|
|
124
|
-
align-items: flex-start;
|
|
125
|
-
justify-content: stretch;
|
|
126
|
-
flex-direction: row;
|
|
127
|
-
gap: var(--ard-horizontal-form-field-gap, 0.5rem);
|
|
128
102
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
103
|
+
&.ard-form-field__with-error {
|
|
104
|
+
.ard-label,
|
|
105
|
+
ard-label {
|
|
106
|
+
color: var(--ard-form-field-error-color, #{ARD.$danger700});
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
&.ard-form-field__is-success {
|
|
110
|
+
.ard-label,
|
|
111
|
+
ard-label {
|
|
112
|
+
color: var(--ard-form-field-success-color, #{ARD.$success700});
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
&.ard-form-field__control-disabled {
|
|
116
|
+
.ard-label {
|
|
117
|
+
opacity: var(--ard-form-field-label-disabled-opacity, 40%);
|
|
118
|
+
}
|
|
119
|
+
.ard-form-field__hints {
|
|
120
|
+
opacity: var(--ard-form-field-hint-disabled-opacity, 50%);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
139
123
|
}
|
|
124
|
+
.ard-horizontal-form-field {
|
|
125
|
+
align-items: flex-start;
|
|
126
|
+
justify-content: stretch;
|
|
127
|
+
flex-direction: row;
|
|
128
|
+
gap: var(--ard-horizontal-form-field-gap, 0.5rem);
|
|
140
129
|
|
|
141
|
-
&:has(.ard-form-field__input .ard-compact) {
|
|
142
130
|
.ard-form-field__label-container {
|
|
143
|
-
|
|
131
|
+
width: var(--ard-horizontal-form-field-label-width, 12rem);
|
|
132
|
+
min-width: var(--ard-horizontal-form-field-label-width, 12rem);
|
|
133
|
+
height: ARD.$form-field-height;
|
|
134
|
+
display: flex;
|
|
135
|
+
align-items: center;
|
|
136
|
+
justify-content: var(--ard-horizontal-form-field-label-align, flex-start);
|
|
137
|
+
}
|
|
138
|
+
.ard-form-field__non-label {
|
|
139
|
+
flex-grow: 1;
|
|
144
140
|
}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
141
|
|
|
148
|
-
ard-
|
|
149
|
-
|
|
150
|
-
|
|
142
|
+
&:has(.ard-form-field__input .ard-compact) {
|
|
143
|
+
.ard-form-field__label-container {
|
|
144
|
+
height: ARD.$form-field-compact-height;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
151
148
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
grid-template-rows: 0fr;
|
|
149
|
+
ard-label {
|
|
150
|
+
display: flex;
|
|
155
151
|
}
|
|
156
|
-
|
|
157
|
-
|
|
152
|
+
|
|
153
|
+
@keyframes errorAppear {
|
|
154
|
+
from {
|
|
155
|
+
grid-template-rows: 0fr;
|
|
156
|
+
}
|
|
157
|
+
to {
|
|
158
|
+
grid-template-rows: 1fr;
|
|
159
|
+
}
|
|
158
160
|
}
|
|
159
161
|
}
|
|
@@ -3,113 +3,115 @@
|
|
|
3
3
|
@use '../clear-button' as CB;
|
|
4
4
|
@use '../../variables' as ARD;
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
6
|
+
@layer ard-theme {
|
|
7
|
+
// the variables are commented out intentionally
|
|
8
|
+
// read more in docs/dev/css-variables.md
|
|
9
|
+
:root {
|
|
10
|
+
// --ard-autocomplete-input-height: ;
|
|
11
|
+
// --ard-autocomplete-input-height-compact: ;
|
|
12
|
+
--ard-autocomplete-input-gap: 0.625rem;
|
|
13
|
+
// --ard-autocomplete-input-font-size: ;
|
|
14
|
+
// --ard-autocomplete-input-font-size-compact: ;
|
|
15
|
+
--ard-autocomplete-input-line-height: 1.25;
|
|
16
|
+
--ard-autocomplete-input-line-height-compact: 1;
|
|
17
|
+
--ard-autocomplete-input-font-weight: 400;
|
|
18
|
+
// --ard-autocomplete-input-padding-top: ;
|
|
19
|
+
// --ard-autocomplete-input-padding-right: ;
|
|
20
|
+
// --ard-autocomplete-input-padding-bottom: ;
|
|
21
|
+
// --ard-autocomplete-input-padding-left: ;
|
|
22
|
+
// --ard-autocomplete-input-padding-top-compact: ;
|
|
23
|
+
// --ard-autocomplete-input-padding-right-compact: ;
|
|
24
|
+
// --ard-autocomplete-input-padding-bottom-compact: ;
|
|
25
|
+
// --ard-autocomplete-input-padding-left-compact: ;
|
|
26
|
+
// --ard-autocomplete-input-color: ;
|
|
27
|
+
// --ard-autocomplete-input-placeholder-color: ;
|
|
28
|
+
--ard-autocomplete-input-placeholder-opacity: 60%;
|
|
28
29
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
30
|
+
--ard-autocomplete-input-min-width: 10rem;
|
|
31
|
+
--ard-autocomplete-input-max-width: 100%;
|
|
32
|
+
--ard-autocomplete-input-autocomplete-opacity: 37.5%;
|
|
33
|
+
--ard-autocomplete-input-dropdown-padding: 0;
|
|
34
|
+
--ard-autocomplete-input-dropdown-max-height: 15rem;
|
|
35
|
+
--ard-autocomplete-input-dropdown-gap: 0;
|
|
36
|
+
--ard-autocomplete-input-option-padding: 0.375rem 0.625rem;
|
|
37
|
+
--ard-autocomplete-input-option-padding-compact: 0.25rem 0.5rem;
|
|
38
|
+
--ard-autocomplete-input-font-size: 1rem;
|
|
39
|
+
--ard-autocomplete-input-font-size-compact: 0.875rem;
|
|
40
|
+
// --ard-autocomplete-input-highlighted-background: ;
|
|
41
|
+
--ard-autocomplete-input-highlighted-font-weight: 400;
|
|
42
|
+
// --ard-autocomplete-input-selected-background: ;
|
|
43
|
+
--ard-autocomplete-input-selected-font-weight: 500;
|
|
44
|
+
--ard-autocomplete-input-disabled-opacity: 50%;
|
|
45
|
+
}
|
|
45
46
|
|
|
46
|
-
.ard-autocomplete-input {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
47
|
+
.ard-autocomplete-input {
|
|
48
|
+
@include inputMixin.genericInput(
|
|
49
|
+
var(--ard-autocomplete-input-height, var(--ard-form-field-height, 2.3125rem)),
|
|
50
|
+
var(--ard-autocomplete-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
|
|
51
|
+
var(--ard-autocomplete-input-gap, 0.625rem),
|
|
52
|
+
var(--ard-autocomplete-input-font-size, var(--ard-form-field-font-size, 1rem)),
|
|
53
|
+
var(--ard-autocomplete-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
|
|
54
|
+
var(--ard-autocomplete-input-line-height, 1.25),
|
|
55
|
+
var(--ard-autocomplete-input-line-height-compact, 1),
|
|
56
|
+
var(--ard-autocomplete-input-font-weight, 400),
|
|
57
|
+
var(--ard-autocomplete-input-padding-top, var(--ard-form-field-padding-top, 0)),
|
|
58
|
+
var(--ard-autocomplete-input-padding-right, var(--ard-form-field-padding-right, 0.375rem)),
|
|
59
|
+
var(--ard-autocomplete-input-padding-bottom, var(--ard-form-field-padding-bottom, 0)),
|
|
60
|
+
var(--ard-autocomplete-input-padding-left, var(--ard-form-field-padding-left, 0.375rem)),
|
|
61
|
+
var(--ard-autocomplete-input-padding-top-compact, var(--ard-form-field-padding-top-compact, 0)),
|
|
62
|
+
var(--ard-autocomplete-input-padding-right-compact, var(--ard-form-field-padding-right-compact, 0.375rem)),
|
|
63
|
+
var(--ard-autocomplete-input-padding-bottom-compact, var(--ard-form-field-padding-bottom-compact, 0)),
|
|
64
|
+
var(--ard-autocomplete-input-padding-left-compact, var(--ard-form-field-padding-left-compact, 0.375rem)),
|
|
65
|
+
var(--ard-autocomplete-input-color, #{ARD.$text}),
|
|
66
|
+
var(--ard-autocomplete-input-placeholder-color, #{ARD.$text}),
|
|
67
|
+
var(--ard-autocomplete-input-placeholder-opacity, 60%)
|
|
68
|
+
);
|
|
69
|
+
min-width: var(--ard-autocomplete-input-min-width, 10rem);
|
|
70
|
+
max-width: var(--ard-autocomplete-input-max-width, 100%);
|
|
70
71
|
|
|
71
|
-
|
|
72
|
+
@include CB.clearButton();
|
|
72
73
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
.ard-autocomplete {
|
|
75
|
+
display: flex;
|
|
76
|
+
align-items: center;
|
|
77
|
+
opacity: var(--ard-autocomplete-input-autocomplete-opacity, 37.5%);
|
|
78
|
+
}
|
|
77
79
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
overflow-y: auto;
|
|
80
|
+
//! suggestions
|
|
81
|
+
.ard-input-suggestions-panel {
|
|
82
|
+
padding: var(--ard-autocomplete-input-dropdown-padding, 0);
|
|
83
|
+
display: flex;
|
|
84
|
+
flex-direction: column;
|
|
85
|
+
gap: var(--ard-autocomplete-input-dropdown-gap, 0);
|
|
86
|
+
max-height: var(--ard-autocomplete-input-dropdown-max-height, 15rem);
|
|
87
|
+
overflow-y: auto;
|
|
87
88
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
89
|
+
.ard-option {
|
|
90
|
+
padding: var(--ard-autocomplete-input-option-padding, 0.375rem 0.625rem);
|
|
91
|
+
font-size: var(--ard-autocomplete-input-font-size, 1rem);
|
|
92
|
+
color: var(--ard-autocomplete-input-color, #{ARD.$text2});
|
|
93
|
+
cursor: pointer;
|
|
93
94
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
95
|
+
&.ard-option-highlighted {
|
|
96
|
+
background: var(--ard-autocomplete-input-highlighted-background, #{ARD.$darken-overlay-light});
|
|
97
|
+
font-weight: var(--ard-autocomplete-input-highlighted-font-weight, 400);
|
|
98
|
+
}
|
|
98
99
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
&.ard-option-selected {
|
|
101
|
+
background: var(--ard-autocomplete-input-selected-background, #{ARD.$darken-overlay-medium});
|
|
102
|
+
font-weight: var(--ard-autocomplete-input-selected-font-weight, 500);
|
|
103
|
+
}
|
|
103
104
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
&.ard-option-disabled {
|
|
106
|
+
pointer-events: none;
|
|
107
|
+
opacity: var(--ard-autocomplete-input-disabled-opacity, 50%);
|
|
108
|
+
}
|
|
107
109
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
.ard-compact {
|
|
111
|
+
.ard-option {
|
|
112
|
+
padding: var(--ard-autocomplete-input-option-padding-compact, 0.25rem 0.5rem);
|
|
113
|
+
font-size: var(--ard-autocomplete-input-font-size-compact, 0.875rem);
|
|
114
|
+
}
|
|
113
115
|
}
|
|
114
116
|
}
|
|
115
117
|
}
|
|
@@ -2,45 +2,47 @@
|
|
|
2
2
|
@use '../mixins' as defaultMixins;
|
|
3
3
|
@use '../clear-button' as CB;
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
@layer ard-theme {
|
|
6
|
+
.ard-color-input {
|
|
7
|
+
// @include inputMixin.genericInput();
|
|
8
|
+
padding: 0 0.375rem;
|
|
9
|
+
min-width: 10rem;
|
|
10
|
+
max-width: 100%;
|
|
11
|
+
cursor: pointer;
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
@include CB.clearButton();
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
.ard-input-container {
|
|
16
|
+
pointer-events: none;
|
|
16
17
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
input {
|
|
19
|
+
font-family: var(--ard-font-family-mono);
|
|
20
|
+
user-select: none;
|
|
21
|
+
}
|
|
20
22
|
}
|
|
21
|
-
}
|
|
22
23
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
24
|
+
.ard-color-display-button {
|
|
25
|
+
padding: 0;
|
|
26
|
+
margin: 0;
|
|
27
|
+
border: none;
|
|
28
|
+
background: transparent;
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
width: 3em;
|
|
33
|
+
outline: none;
|
|
33
34
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
* {
|
|
36
|
+
width: 100% !important;
|
|
37
|
+
}
|
|
37
38
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
ard-color-display {
|
|
40
|
+
pointer-events: none;
|
|
41
|
+
font-size: 1.1rem;
|
|
42
|
+
}
|
|
41
43
|
}
|
|
42
44
|
}
|
|
43
|
-
|
|
44
|
-
.
|
|
45
|
-
|
|
45
|
+
.ard-color-input-overlay-card {
|
|
46
|
+
margin: 0.4rem;
|
|
47
|
+
}
|
|
46
48
|
}
|