@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,200 +2,202 @@
|
|
|
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
|
-
ard-number-input {
|
|
33
|
-
width: var(--ard-number-input-width, unset);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.ard-number-input {
|
|
37
|
-
@include inputMixin.genericInput(
|
|
38
|
-
var(--ard-number-input-height, var(--ard-form-field-height, 2.3125rem)),
|
|
39
|
-
var(--ard-number-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
|
|
40
|
-
var(--ard-number-input-gap, 0.625rem),
|
|
41
|
-
var(--ard-number-input-font-size, var(--ard-form-field-font-size, 1rem)),
|
|
42
|
-
var(--ard-number-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
|
|
43
|
-
var(--ard-number-input-line-height, 1.25),
|
|
44
|
-
var(--ard-number-input-line-height-compact, 1),
|
|
45
|
-
var(--ard-number-input-font-weight, 400),
|
|
46
|
-
var(--ard-number-input-padding-top, var(--ard-form-field-padding-top, 0)),
|
|
47
|
-
var(--ard-number-input-padding-right, var(--ard-form-field-padding-right, 0.375rem)),
|
|
48
|
-
var(--ard-number-input-padding-bottom, var(--ard-form-field-padding-bottom, 0)),
|
|
49
|
-
var(--ard-number-input-padding-left, var(--ard-form-field-padding-left, 0.375rem)),
|
|
50
|
-
var(--ard-number-input-padding-top-compact, var(--ard-form-field-padding-top-compact, 0)),
|
|
51
|
-
var(--ard-number-input-padding-right-compact, var(--ard-form-field-padding-right-compact, 0.375rem)),
|
|
52
|
-
var(--ard-number-input-padding-bottom-compact, var(--ard-form-field-padding-bottom-compact, 0)),
|
|
53
|
-
var(--ard-number-input-padding-left-compact, var(--ard-form-field-padding-left-compact, 0.375rem)),
|
|
54
|
-
var(--ard-number-input-color, #{ARD.$text}),
|
|
55
|
-
var(--ard-number-input-placeholder-color, #{ARD.$text}),
|
|
56
|
-
var(--ard-number-input-placeholder-opacity, 60%)
|
|
57
|
-
);
|
|
58
|
-
@include defaultMixins.formAppearances();
|
|
59
|
-
gap: 0;
|
|
60
|
-
width: 100%;
|
|
61
|
-
|
|
62
|
-
.ard-number-input-wrapper {
|
|
63
|
-
flex-grow: 1;
|
|
64
|
-
text-size-adjust: 100%;
|
|
65
|
-
display: flex;
|
|
66
|
-
align-items: center;
|
|
67
|
-
height: 100%;
|
|
68
|
-
}
|
|
69
|
-
.ard-input-container {
|
|
70
|
-
position: relative;
|
|
71
|
-
padding-left: var(--ard-number-input-padding-left, var(--ard-form-field-padding-left, 0.375rem));
|
|
72
|
-
padding-right: var(--ard-number-input-padding-right, var(--ard-form-field-padding-right, 0.375rem));
|
|
73
|
-
padding-top: var(--ard-number-input-padding-top, var(--ard-form-field-padding-top, 0));
|
|
74
|
-
padding-bottom: var(--ard-number-input-padding-bottom, var(--ard-form-field-padding-bottom, 0));
|
|
5
|
+
@layer ard-theme {
|
|
6
|
+
// the variables are commented out intentionally
|
|
7
|
+
// read more in docs/dev/css-variables.md
|
|
8
|
+
:root {
|
|
9
|
+
// --ard-number-input-height: ;
|
|
10
|
+
// --ard-number-input-height-compact: ;
|
|
11
|
+
--ard-number-input-gap: 0.625rem;
|
|
12
|
+
// --ard-number-input-font-size: ;
|
|
13
|
+
// --ard-number-input-font-size-compact: ;
|
|
14
|
+
--ard-number-input-line-height: 1.25;
|
|
15
|
+
--ard-number-input-line-height-compact: 1;
|
|
16
|
+
--ard-number-input-font-weight: 400;
|
|
17
|
+
// --ard-number-input-padding-top: ;
|
|
18
|
+
// --ard-number-input-padding-right: ;
|
|
19
|
+
// --ard-number-input-padding-bottom: ;
|
|
20
|
+
// --ard-number-input-padding-left: ;
|
|
21
|
+
// --ard-number-input-padding-top-compact: ;
|
|
22
|
+
// --ard-number-input-padding-right-compact: ;
|
|
23
|
+
// --ard-number-input-padding-bottom-compact: ;
|
|
24
|
+
// --ard-number-input-padding-left-compact: ;
|
|
25
|
+
// --ard-number-input-color: ;
|
|
26
|
+
// --ard-number-input-placeholder-color: ;
|
|
27
|
+
--ard-number-input-placeholder-opacity: 60%;
|
|
28
|
+
--ard-number-input-disabled-opacity: 50%;
|
|
29
|
+
// --ard-number-input-width: ;
|
|
30
|
+
--ard-number-input-rounded-border-radius: 8px;
|
|
75
31
|
}
|
|
76
32
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
.ard-number-input-suffix-container {
|
|
80
|
-
height: max-content;
|
|
81
|
-
max-height: 100%;
|
|
82
|
-
display: flex;
|
|
83
|
-
align-items: center;
|
|
84
|
-
}
|
|
85
|
-
.ard-number-input-prefix-container {
|
|
86
|
-
padding-left: var(--ard-number-input-padding-left, 0.375rem);
|
|
87
|
-
}
|
|
88
|
-
.ard-number-input-suffix-container {
|
|
89
|
-
padding-right: var(--ard-number-input-padding-right, 0.375rem);
|
|
33
|
+
ard-number-input {
|
|
34
|
+
width: var(--ard-number-input-width, unset);
|
|
90
35
|
}
|
|
91
36
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
37
|
+
.ard-number-input {
|
|
38
|
+
@include inputMixin.genericInput(
|
|
39
|
+
var(--ard-number-input-height, var(--ard-form-field-height, 2.3125rem)),
|
|
40
|
+
var(--ard-number-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
|
|
41
|
+
var(--ard-number-input-gap, 0.625rem),
|
|
42
|
+
var(--ard-number-input-font-size, var(--ard-form-field-font-size, 1rem)),
|
|
43
|
+
var(--ard-number-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
|
|
44
|
+
var(--ard-number-input-line-height, 1.25),
|
|
45
|
+
var(--ard-number-input-line-height-compact, 1),
|
|
46
|
+
var(--ard-number-input-font-weight, 400),
|
|
47
|
+
var(--ard-number-input-padding-top, var(--ard-form-field-padding-top, 0)),
|
|
48
|
+
var(--ard-number-input-padding-right, var(--ard-form-field-padding-right, 0.375rem)),
|
|
49
|
+
var(--ard-number-input-padding-bottom, var(--ard-form-field-padding-bottom, 0)),
|
|
50
|
+
var(--ard-number-input-padding-left, var(--ard-form-field-padding-left, 0.375rem)),
|
|
51
|
+
var(--ard-number-input-padding-top-compact, var(--ard-form-field-padding-top-compact, 0)),
|
|
52
|
+
var(--ard-number-input-padding-right-compact, var(--ard-form-field-padding-right-compact, 0.375rem)),
|
|
53
|
+
var(--ard-number-input-padding-bottom-compact, var(--ard-form-field-padding-bottom-compact, 0)),
|
|
54
|
+
var(--ard-number-input-padding-left-compact, var(--ard-form-field-padding-left-compact, 0.375rem)),
|
|
55
|
+
var(--ard-number-input-color, #{ARD.$text}),
|
|
56
|
+
var(--ard-number-input-placeholder-color, #{ARD.$text}),
|
|
57
|
+
var(--ard-number-input-placeholder-opacity, 60%)
|
|
58
|
+
);
|
|
59
|
+
@include defaultMixins.formAppearances();
|
|
60
|
+
gap: 0;
|
|
61
|
+
width: 100%;
|
|
96
62
|
|
|
97
|
-
.ard-
|
|
63
|
+
.ard-number-input-wrapper {
|
|
64
|
+
flex-grow: 1;
|
|
65
|
+
text-size-adjust: 100%;
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
98
68
|
height: 100%;
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
69
|
+
}
|
|
70
|
+
.ard-input-container {
|
|
71
|
+
position: relative;
|
|
72
|
+
padding-left: var(--ard-number-input-padding-left, var(--ard-form-field-padding-left, 0.375rem));
|
|
73
|
+
padding-right: var(--ard-number-input-padding-right, var(--ard-form-field-padding-right, 0.375rem));
|
|
74
|
+
padding-top: var(--ard-number-input-padding-top, var(--ard-form-field-padding-top, 0));
|
|
75
|
+
padding-bottom: var(--ard-number-input-padding-bottom, var(--ard-form-field-padding-bottom, 0));
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
//! prefix & suffix
|
|
79
|
+
.ard-number-input-prefix-container,
|
|
80
|
+
.ard-number-input-suffix-container {
|
|
81
|
+
height: max-content;
|
|
82
|
+
max-height: 100%;
|
|
102
83
|
display: flex;
|
|
103
|
-
|
|
104
|
-
margin: 0;
|
|
84
|
+
align-items: center;
|
|
105
85
|
}
|
|
106
|
-
|
|
107
|
-
|
|
86
|
+
.ard-number-input-prefix-container {
|
|
87
|
+
padding-left: var(--ard-number-input-padding-left, 0.375rem);
|
|
88
|
+
}
|
|
89
|
+
.ard-number-input-suffix-container {
|
|
90
|
+
padding-right: var(--ard-number-input-padding-right, 0.375rem);
|
|
108
91
|
}
|
|
109
92
|
|
|
110
|
-
|
|
111
|
-
|
|
93
|
+
//! buttons
|
|
94
|
+
.ard-quick-change-button {
|
|
95
|
+
position: relative;
|
|
96
|
+
min-width: var(--ard-number-input-height, var(--ard-form-field-height, 2.3125rem));
|
|
112
97
|
|
|
113
98
|
.ard-button {
|
|
114
|
-
|
|
115
|
-
|
|
99
|
+
height: 100%;
|
|
100
|
+
aspect-ratio: 1;
|
|
101
|
+
padding: 0;
|
|
102
|
+
border-color: var(--ard-appearance-border-color);
|
|
103
|
+
display: flex;
|
|
104
|
+
justify-content: center;
|
|
105
|
+
margin: 0;
|
|
106
|
+
}
|
|
107
|
+
&.ard-disabled .ard-focus-overlay {
|
|
108
|
+
opacity: 0;
|
|
116
109
|
}
|
|
117
|
-
}
|
|
118
|
-
&.increment {
|
|
119
|
-
right: 1px;
|
|
120
110
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
111
|
+
&.decrement {
|
|
112
|
+
left: 1px;
|
|
113
|
+
|
|
114
|
+
.ard-button {
|
|
115
|
+
border-top-right-radius: 0;
|
|
116
|
+
border-bottom-right-radius: 0;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
&.increment {
|
|
120
|
+
right: 1px;
|
|
121
|
+
|
|
122
|
+
.ard-button {
|
|
123
|
+
border-top-left-radius: 0;
|
|
124
|
+
border-bottom-left-radius: 0;
|
|
125
|
+
}
|
|
124
126
|
}
|
|
125
127
|
}
|
|
126
|
-
}
|
|
127
128
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
//! variants
|
|
130
|
+
&.ard-variant-rounded {
|
|
131
|
+
border-radius: var(--ard-number-input-rounded-border-radius, 8px);
|
|
131
132
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
133
|
+
&.ard-quick-change-false {
|
|
134
|
+
.ard-number-input-wrapper {
|
|
135
|
+
border-radius: var(--ard-number-input-rounded-border-radius, 8px);
|
|
136
|
+
}
|
|
135
137
|
}
|
|
136
138
|
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
border-radius: 0;
|
|
140
|
-
}
|
|
141
|
-
&.ard-variant-pill {
|
|
142
|
-
border-radius: 9999px;
|
|
143
|
-
|
|
144
|
-
.ard-button {
|
|
145
|
-
border-radius: 9999px !important;
|
|
146
|
-
width: var(--ard-number-input-height, var(--ard-form-field-height, 2.3125rem));
|
|
147
|
-
height: var(--ard-number-input-height, var(--ard-form-field-height, 2.3125rem));
|
|
148
|
-
margin: 0 2px;
|
|
139
|
+
&.ard-variant-sharp {
|
|
140
|
+
border-radius: 0;
|
|
149
141
|
}
|
|
142
|
+
&.ard-variant-pill {
|
|
143
|
+
border-radius: 9999px;
|
|
150
144
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
145
|
+
.ard-button {
|
|
146
|
+
border-radius: 9999px !important;
|
|
147
|
+
width: var(--ard-number-input-height, var(--ard-form-field-height, 2.3125rem));
|
|
148
|
+
height: var(--ard-number-input-height, var(--ard-form-field-height, 2.3125rem));
|
|
149
|
+
margin: 0 2px;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
&.ard-quick-change-false {
|
|
153
|
+
.ard-number-input-wrapper {
|
|
154
|
+
border-radius: 9999px;
|
|
155
|
+
}
|
|
154
156
|
}
|
|
155
157
|
}
|
|
156
|
-
}
|
|
157
158
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
159
|
+
//! variant-specific appearances
|
|
160
|
+
&.ard-variant-rounded,
|
|
161
|
+
&.ard-variant-sharp {
|
|
162
|
+
&:not(.ard-appearance-filled) .ard-number-input-wrapper {
|
|
163
|
+
box-sizing: border-box;
|
|
164
|
+
background: var(--ard-appearance-background);
|
|
165
|
+
border: var(--ard-appearance-border);
|
|
166
|
+
}
|
|
167
|
+
&.ard-appearance-filled {
|
|
168
|
+
background: var(--ard-appearance-background);
|
|
169
|
+
border: var(--ard-appearance-border);
|
|
170
|
+
}
|
|
165
171
|
}
|
|
166
|
-
&.ard-
|
|
172
|
+
&.ard-variant-pill {
|
|
167
173
|
background: var(--ard-appearance-background);
|
|
168
174
|
border: var(--ard-appearance-border);
|
|
169
175
|
}
|
|
170
|
-
}
|
|
171
|
-
&.ard-variant-pill {
|
|
172
|
-
background: var(--ard-appearance-background);
|
|
173
|
-
border: var(--ard-appearance-border);
|
|
174
|
-
}
|
|
175
176
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
177
|
+
//! compact
|
|
178
|
+
&.ard-compact {
|
|
179
|
+
.ard-number-input-wrapper {
|
|
180
|
+
padding-left: var(--ard-number-input-padding-left-compact, var(--ard-form-field-padding-left-compact, 0.375rem));
|
|
181
|
+
padding-right: var(--ard-number-input-padding-right-compact, var(--ard-form-field-padding-right-compact, 0.375rem));
|
|
182
|
+
padding-top: var(--ard-number-input-padding-top-compact, var(--ard-form-field-padding-top-compact, 0));
|
|
183
|
+
padding-bottom: var(--ard-number-input-padding-bottom-compact, var(--ard-form-field-padding-bottom-compact, 0));
|
|
184
|
+
}
|
|
185
|
+
.ard-quick-change-button {
|
|
186
|
+
min-width: var(--ard-number-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem));
|
|
187
|
+
}
|
|
186
188
|
}
|
|
187
189
|
}
|
|
188
|
-
}
|
|
189
190
|
|
|
190
|
-
.ard-disabled {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
191
|
+
.ard-disabled {
|
|
192
|
+
> .ard-number-input {
|
|
193
|
+
pointer-events: none;
|
|
194
|
+
opacity: var(--ard-number-input-disabled-opacity, 50%);
|
|
194
195
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
196
|
+
.ard-button .ard-focus-overlay {
|
|
197
|
+
opacity: 0;
|
|
198
|
+
}
|
|
198
199
|
|
|
199
|
-
|
|
200
|
+
background: ARD.$bg-f;
|
|
201
|
+
}
|
|
200
202
|
}
|
|
201
203
|
}
|
|
@@ -3,110 +3,112 @@
|
|
|
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-password-input-height: ;
|
|
11
|
+
// --ard-password-input-height-compact: ;
|
|
12
|
+
--ard-password-input-gap: 0.625rem;
|
|
13
|
+
// --ard-password-input-font-size: ;
|
|
14
|
+
// --ard-password-input-font-size-compact: ;
|
|
15
|
+
--ard-password-input-line-height: 1.25;
|
|
16
|
+
--ard-password-input-line-height-compact: 1;
|
|
17
|
+
--ard-password-input-font-weight: 400;
|
|
18
|
+
// --ard-password-input-padding-top: ;
|
|
19
|
+
// --ard-password-input-padding-right: ;
|
|
20
|
+
// --ard-password-input-padding-bottom: ;
|
|
21
|
+
// --ard-password-input-padding-left: ;
|
|
22
|
+
// --ard-password-input-padding-top-compact: ;
|
|
23
|
+
// --ard-password-input-padding-right-compact: ;
|
|
24
|
+
// --ard-password-input-padding-bottom-compact: ;
|
|
25
|
+
// --ard-password-input-padding-left-compact: ;
|
|
26
|
+
// --ard-password-input-color: ;
|
|
27
|
+
// --ard-password-input-placeholder-color: ;
|
|
28
|
+
--ard-password-input-placeholder-opacity: 60%;
|
|
28
29
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
30
|
+
--ard-password-input-min-width: 10rem;
|
|
31
|
+
--ard-password-input-max-width: 100%;
|
|
32
|
+
--ard-password-input-disabled-opacity: 50%;
|
|
33
|
+
--ard-password-input-reveal-button-margin: 0.125rem;
|
|
34
|
+
--ard-password-input-reveal-button-font-size: 0.8rem;
|
|
35
|
+
--ard-password-input-reveal-button-height: calc(100% - 0.25rem);
|
|
36
|
+
--ard-password-input-reveal-button-width: unset;
|
|
37
|
+
--ard-password-input-reveal-button-aspect-ratio: 1;
|
|
38
|
+
--ard-password-input-reveal-button-padding: 0;
|
|
39
|
+
// --ard-password-input-reveal-button-color: ;
|
|
40
|
+
--ard-password-input-reveal-button-border-radius: 9999px;
|
|
41
|
+
--ard-password-input-reveal-button-border: none;
|
|
42
|
+
--ard-password-input-reveal-button-background: transparent;
|
|
43
|
+
--ard-password-input-reveal-button-hover-background: rgba(0, 0, 0, 4%);
|
|
44
|
+
--ard-password-input-reveal-button-focus-background: rgba(0, 0, 0, 12%);
|
|
45
|
+
--ard-password-input-reveal-button-active-background: rgba(0, 0, 0, 20%);
|
|
46
|
+
}
|
|
46
47
|
|
|
47
|
-
.ard-password-input {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
48
|
+
.ard-password-input {
|
|
49
|
+
@include inputMixin.genericInput(
|
|
50
|
+
var(--ard-password-input-height, var(--ard-form-field-height, 2.3125rem)),
|
|
51
|
+
var(--ard-password-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
|
|
52
|
+
var(--ard-password-input-gap, 0.625rem),
|
|
53
|
+
var(--ard-password-input-font-size, var(--ard-form-field-font-size, 1rem)),
|
|
54
|
+
var(--ard-password-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
|
|
55
|
+
var(--ard-password-input-line-height, 1.25),
|
|
56
|
+
var(--ard-password-input-line-height-compact, 1),
|
|
57
|
+
var(--ard-password-input-font-weight, 400),
|
|
58
|
+
var(--ard-password-input-padding-top, var(--ard-form-field-padding-top, 0)),
|
|
59
|
+
var(--ard-password-input-padding-right, var(--ard-form-field-padding-right, 0.375rem)),
|
|
60
|
+
var(--ard-password-input-padding-bottom, var(--ard-form-field-padding-bottom, 0)),
|
|
61
|
+
var(--ard-password-input-padding-left, var(--ard-form-field-padding-left, 0.375rem)),
|
|
62
|
+
var(--ard-password-input-padding-top-compact, var(--ard-form-field-padding-top-compact, 0)),
|
|
63
|
+
var(--ard-password-input-padding-right-compact, var(--ard-form-field-padding-right-compact, 0.375rem)),
|
|
64
|
+
var(--ard-password-input-padding-bottom-compact, var(--ard-form-field-padding-bottom-compact, 0)),
|
|
65
|
+
var(--ard-password-input-padding-left-compact, var(--ard-form-field-padding-left-compact, 0.375rem)),
|
|
66
|
+
var(--ard-password-input-color, #{ARD.$text}),
|
|
67
|
+
var(--ard-password-input-placeholder-color, #{ARD.$text}),
|
|
68
|
+
var(--ard-password-input-placeholder-opacity, 60%)
|
|
69
|
+
);
|
|
70
|
+
min-width: var(--ard-password-input-min-width, 10rem);
|
|
71
|
+
max-width: var(--ard-password-input-max-width, 100%);
|
|
71
72
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
&.ard-revealable {
|
|
74
|
+
padding-right: 0;
|
|
75
|
+
}
|
|
75
76
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
77
|
+
.ard-reveal-button {
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
justify-content: center;
|
|
81
|
+
padding: var(--ard-password-input-reveal-button-padding, 0);
|
|
82
|
+
color: var(--ard-password-input-reveal-button-color, #{ARD.$text});
|
|
83
|
+
margin: var(--ard-password-input-reveal-button-margin, 0.125rem);
|
|
84
|
+
height: var(--ard-password-input-reveal-button-height, calc(100% - 0.25rem));
|
|
85
|
+
width: var(--ard-password-input-reveal-button-width, unset);
|
|
86
|
+
aspect-ratio: var(--ard-password-input-reveal-button-aspect-ratio, 1);
|
|
87
|
+
font-size: var(--ard-password-input-reveal-button-font-size, 0.8rem);
|
|
88
|
+
border-radius: var(--ard-password-input-reveal-button-border-radius, 9999px);
|
|
89
|
+
border: var(--ard-password-input-reveal-button-border, none);
|
|
90
|
+
background: var(--ard-password-input-reveal-button-background, transparent);
|
|
91
|
+
outline: none;
|
|
92
|
+
cursor: pointer;
|
|
92
93
|
|
|
93
|
-
|
|
94
|
+
transition: background-color 0.2s ARD.$timing-fn;
|
|
94
95
|
|
|
95
|
-
|
|
96
|
-
|
|
96
|
+
&:hover {
|
|
97
|
+
background: var(--ard-password-input-reveal-button-hover-background, rgba(0, 0, 0, 4%));
|
|
98
|
+
}
|
|
99
|
+
&:focus {
|
|
100
|
+
background: var(--ard-password-input-reveal-button-focus-background, rgba(0, 0, 0, 12%));
|
|
101
|
+
}
|
|
102
|
+
&:active {
|
|
103
|
+
background: var(--ard-password-input-reveal-button-active-background, rgba(0, 0, 0, 20%));
|
|
104
|
+
}
|
|
97
105
|
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
106
|
+
}
|
|
107
|
+
//! disabled state
|
|
108
|
+
.ard-disabled {
|
|
109
|
+
.ard-password-input {
|
|
110
|
+
pointer-events: none;
|
|
111
|
+
opacity: var(--ard-password-input-disabled-opacity, 50%);
|
|
103
112
|
}
|
|
104
113
|
}
|
|
105
114
|
}
|
|
106
|
-
//! disabled state
|
|
107
|
-
.ard-disabled {
|
|
108
|
-
.ard-password-input {
|
|
109
|
-
pointer-events: none;
|
|
110
|
-
opacity: var(--ard-password-input-disabled-opacity, 50%);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
@use '../variables' as ARD;
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
//
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
@layer ard-theme {
|
|
4
|
+
// the variables are commented out intentionally
|
|
5
|
+
// read more in docs/dev/css-variables.md
|
|
6
|
+
:root {
|
|
7
|
+
--ard-kbd-shortcut-font-size: 0.875em;
|
|
8
|
+
--ard-kbd-shortcut-transparent-font-size: 0.75em;
|
|
9
|
+
}
|
|
9
10
|
|
|
10
|
-
.ard-kbd-shortcut {
|
|
11
|
-
|
|
11
|
+
.ard-kbd-shortcut {
|
|
12
|
+
font-family: var(--ard-font-family-mono);
|
|
12
13
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
> span {
|
|
15
|
+
font-size: var(--ard-kbd-shortcut-font-size, 0.875em);
|
|
16
|
+
}
|
|
17
|
+
&.ard-appearance-transparent > span {
|
|
18
|
+
font-size: var(--ard-kbd-shortcut-transparent-font-size, 0.75em);
|
|
19
|
+
}
|
|
18
20
|
}
|
|
19
21
|
}
|