@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,100 +1,102 @@
|
|
|
1
1
|
@use './shared' as S;
|
|
2
2
|
@use '../../variables' as ARD;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
//
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
4
|
+
@layer ard-theme {
|
|
5
|
+
// the variables are commented out intentionally
|
|
6
|
+
// read more in docs/dev/css-variables.md
|
|
7
|
+
:root {
|
|
8
|
+
// --ard-date-input-height: ;
|
|
9
|
+
// --ard-date-input-height-compact: ;
|
|
10
|
+
--ard-date-input-gap: 0.625rem;
|
|
11
|
+
// --ard-date-input-font-size: ;
|
|
12
|
+
// --ard-date-input-font-size-compact: ;
|
|
13
|
+
--ard-date-input-line-height: 1.25;
|
|
14
|
+
--ard-date-input-line-height-compact: 1;
|
|
15
|
+
--ard-date-input-font-weight: 400;
|
|
16
|
+
// --ard-date-input-padding-top: ;
|
|
17
|
+
// --ard-date-input-padding-right: ;
|
|
18
|
+
// --ard-date-input-padding-bottom: ;
|
|
19
|
+
// --ard-date-input-padding-left: ;
|
|
20
|
+
// --ard-date-input-padding-top-compact: ;
|
|
21
|
+
// --ard-date-input-padding-right-compact: ;
|
|
22
|
+
// --ard-date-input-padding-bottom-compact: ;
|
|
23
|
+
// --ard-date-input-padding-left-compact: ;
|
|
24
|
+
// --ard-date-input-color: ;
|
|
25
|
+
// --ard-date-input-placeholder-color: ;
|
|
26
|
+
--ard-date-input-placeholder-opacity: 60%;
|
|
26
27
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
ard-date-input .ard-date-input,
|
|
32
|
-
ard-date-range-input .ard-date-range-input,
|
|
33
|
-
ard-multipage-date-range-input .ard-multipage-date-range-input {
|
|
34
|
-
@include S.genericInput(
|
|
35
|
-
var(--ard-date-input-height, var(--ard-form-field-height, 2.3125rem)),
|
|
36
|
-
var(--ard-date-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
|
|
37
|
-
var(--ard-date-input-gap, 0.625rem),
|
|
38
|
-
var(--ard-date-input-font-size, var(--ard-form-field-font-size, 1rem)),
|
|
39
|
-
var(--ard-date-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
|
|
40
|
-
var(--ard-date-input-line-height, 1.25),
|
|
41
|
-
var(--ard-date-input-line-height-compact, 1),
|
|
42
|
-
var(--ard-date-input-font-weight, 400),
|
|
43
|
-
var(--ard-date-input-padding-top, var(--ard-form-field-padding-top, 0)),
|
|
44
|
-
var(--ard-date-input-padding-right, var(--ard-form-field-padding-right, 0.375rem)),
|
|
45
|
-
var(--ard-date-input-padding-bottom, var(--ard-form-field-padding-bottom, 0)),
|
|
46
|
-
var(--ard-date-input-padding-left, var(--ard-form-field-padding-left, 0.375rem)),
|
|
47
|
-
var(--ard-date-input-padding-top-compact, var(--ard-form-field-padding-top-compact, 0)),
|
|
48
|
-
var(--ard-date-input-padding-right-compact, var(--ard-form-field-padding-right-compact, 0.375rem)),
|
|
49
|
-
var(--ard-date-input-padding-bottom-compact, var(--ard-form-field-padding-bottom-compact, 0)),
|
|
50
|
-
var(--ard-date-input-padding-left-compact, var(--ard-form-field-padding-left-compact, 0.375rem)),
|
|
51
|
-
var(--ard-date-input-color, #{ARD.$text}),
|
|
52
|
-
var(--ard-date-input-placeholder-color, #{ARD.$text}),
|
|
53
|
-
var(--ard-date-input-placeholder-opacity, 60%)
|
|
54
|
-
);
|
|
55
|
-
display: grid;
|
|
56
|
-
grid-template-columns: 1fr max-content;
|
|
57
|
-
|
|
58
|
-
.ard-date-input__value-container {
|
|
59
|
-
position: relative;
|
|
60
|
-
}
|
|
61
|
-
.ard-date-input__placeholder {
|
|
62
|
-
position: absolute;
|
|
63
|
-
padding: 0;
|
|
28
|
+
--ard-date-input-input-padding: 0 2.625rem 0 0.375rem;
|
|
29
|
+
--ard-date-input-multipage-gap: 0;
|
|
64
30
|
}
|
|
65
|
-
.ard-date-input__input-container {
|
|
66
|
-
position: absolute;
|
|
67
|
-
inset: 0;
|
|
68
|
-
padding: 0;
|
|
69
31
|
|
|
70
|
-
|
|
32
|
+
ard-date-input .ard-date-input,
|
|
33
|
+
ard-date-range-input .ard-date-range-input,
|
|
34
|
+
ard-multipage-date-range-input .ard-multipage-date-range-input {
|
|
35
|
+
@include S.genericInput(
|
|
36
|
+
var(--ard-date-input-height, var(--ard-form-field-height, 2.3125rem)),
|
|
37
|
+
var(--ard-date-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
|
|
38
|
+
var(--ard-date-input-gap, 0.625rem),
|
|
39
|
+
var(--ard-date-input-font-size, var(--ard-form-field-font-size, 1rem)),
|
|
40
|
+
var(--ard-date-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
|
|
41
|
+
var(--ard-date-input-line-height, 1.25),
|
|
42
|
+
var(--ard-date-input-line-height-compact, 1),
|
|
43
|
+
var(--ard-date-input-font-weight, 400),
|
|
44
|
+
var(--ard-date-input-padding-top, var(--ard-form-field-padding-top, 0)),
|
|
45
|
+
var(--ard-date-input-padding-right, var(--ard-form-field-padding-right, 0.375rem)),
|
|
46
|
+
var(--ard-date-input-padding-bottom, var(--ard-form-field-padding-bottom, 0)),
|
|
47
|
+
var(--ard-date-input-padding-left, var(--ard-form-field-padding-left, 0.375rem)),
|
|
48
|
+
var(--ard-date-input-padding-top-compact, var(--ard-form-field-padding-top-compact, 0)),
|
|
49
|
+
var(--ard-date-input-padding-right-compact, var(--ard-form-field-padding-right-compact, 0.375rem)),
|
|
50
|
+
var(--ard-date-input-padding-bottom-compact, var(--ard-form-field-padding-bottom-compact, 0)),
|
|
51
|
+
var(--ard-date-input-padding-left-compact, var(--ard-form-field-padding-left-compact, 0.375rem)),
|
|
52
|
+
var(--ard-date-input-color, #{ARD.$text}),
|
|
53
|
+
var(--ard-date-input-placeholder-color, #{ARD.$text}),
|
|
54
|
+
var(--ard-date-input-placeholder-opacity, 60%)
|
|
55
|
+
);
|
|
56
|
+
display: grid;
|
|
57
|
+
grid-template-columns: 1fr max-content;
|
|
58
|
+
|
|
59
|
+
.ard-date-input__value-container {
|
|
60
|
+
position: relative;
|
|
61
|
+
}
|
|
62
|
+
.ard-date-input__placeholder {
|
|
63
|
+
position: absolute;
|
|
64
|
+
padding: 0;
|
|
65
|
+
}
|
|
66
|
+
.ard-date-input__input-container {
|
|
71
67
|
position: absolute;
|
|
72
|
-
|
|
73
|
-
|
|
68
|
+
inset: 0;
|
|
69
|
+
padding: 0;
|
|
70
|
+
|
|
71
|
+
&.ard-date-input__input-container-hidden {
|
|
72
|
+
position: absolute;
|
|
73
|
+
opacity: 0;
|
|
74
|
+
appearance: none;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
input {
|
|
78
|
+
box-sizing: border-box;
|
|
79
|
+
width: 100%;
|
|
80
|
+
height: 100%;
|
|
81
|
+
padding: var(--ard-date-input-input-padding, 0 2.625rem 0 0.375rem);
|
|
82
|
+
}
|
|
74
83
|
}
|
|
84
|
+
.ard-date-input__value {
|
|
85
|
+
display: flex;
|
|
86
|
+
align-items: center;
|
|
87
|
+
padding: 0;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
75
90
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
padding: var(--ard-date-input-input-padding, 0 2.625rem 0 0.375rem);
|
|
91
|
+
ard-days-view {
|
|
92
|
+
.ard-calendar__header-button {
|
|
93
|
+
font-size: var(--ard-button-font-size, 0.875rem);
|
|
94
|
+
font-weight: var(--ard-button-font-weight, 500);
|
|
81
95
|
}
|
|
82
96
|
}
|
|
83
|
-
.ard-date-
|
|
97
|
+
.ard-date-input__multipage-wrapper {
|
|
84
98
|
display: flex;
|
|
85
|
-
|
|
86
|
-
|
|
99
|
+
flex-direction: row;
|
|
100
|
+
gap: var(--ard-date-input-multipage-gap, 0);
|
|
87
101
|
}
|
|
88
102
|
}
|
|
89
|
-
|
|
90
|
-
ard-days-view {
|
|
91
|
-
.ard-calendar__header-button {
|
|
92
|
-
font-size: var(--ard-button-font-size, 0.875rem);
|
|
93
|
-
font-weight: var(--ard-button-font-weight, 500);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
.ard-date-input__multipage-wrapper {
|
|
97
|
-
display: flex;
|
|
98
|
-
flex-direction: row;
|
|
99
|
-
gap: var(--ard-date-input-multipage-gap, 0);
|
|
100
|
-
}
|
|
@@ -2,125 +2,127 @@
|
|
|
2
2
|
@use '../../variables' as ARD;
|
|
3
3
|
@use '../mixins' as defaultMixins;
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
ard-digit-input {
|
|
27
|
-
font-family: var(--ard-digit-input-font-family, var(--ard-font-family));
|
|
28
|
-
font-weight: var(--ard-digit-input-font-weight, 500);
|
|
29
|
-
color: var(--ard-digit-input-color, #{ARD.$text});
|
|
30
|
-
}
|
|
5
|
+
@layer ard-theme {
|
|
6
|
+
// the variables are commented out intentionally
|
|
7
|
+
// read more in docs/dev/css-variables.md
|
|
8
|
+
:root {
|
|
9
|
+
// --ard-digit-input-font-family: ;
|
|
10
|
+
--ard-digit-input-font-weight: 500;
|
|
11
|
+
// --ard-digit-input-color: ;
|
|
12
|
+
--ard-digit-input-gap: 0.375em;
|
|
13
|
+
--ard-digit-input-size: 2.0625em;
|
|
14
|
+
// --ard-digit-input-caret-color: ;
|
|
15
|
+
// --ard-digit-input-placeholder-color: ;
|
|
16
|
+
--ard-digit-input-placeholder-opacity: 60%;
|
|
17
|
+
--ard-digit-input-transition-duration: 150ms;
|
|
18
|
+
// --ard-digit-input-rectangle-height: ;
|
|
19
|
+
--ard-digit-input-rectangle-font-size: 1.25em;
|
|
20
|
+
--ard-digit-input-success-background-color: transparent;
|
|
21
|
+
// --ard-digit-input-success-border-color: ;
|
|
22
|
+
// --ard-digit-input-error-background-color: ;
|
|
23
|
+
// --ard-digit-input-error-border-color: ;
|
|
24
|
+
--ard-digit-input-disabled-opacity: 50%;
|
|
25
|
+
}
|
|
31
26
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
color: inherit;
|
|
38
|
-
}
|
|
39
|
-
.ard-digit-input {
|
|
40
|
-
@include defaultMixins.formAppearances();
|
|
41
|
-
display: flex;
|
|
42
|
-
gap: var(--ard-digit-input-gap, 0.375em);
|
|
27
|
+
ard-digit-input {
|
|
28
|
+
font-family: var(--ard-digit-input-font-family, var(--ard-font-family));
|
|
29
|
+
font-weight: var(--ard-digit-input-font-weight, 500);
|
|
30
|
+
color: var(--ard-digit-input-color, #{ARD.$text});
|
|
31
|
+
}
|
|
43
32
|
|
|
44
|
-
.ard-digit-
|
|
45
|
-
|
|
33
|
+
.ard-digit-input,
|
|
34
|
+
.ard-digit-input__item,
|
|
35
|
+
.ard-digit-input__input,
|
|
36
|
+
.ard-digit-input__static {
|
|
37
|
+
font: inherit;
|
|
38
|
+
color: inherit;
|
|
39
|
+
}
|
|
40
|
+
.ard-digit-input {
|
|
41
|
+
@include defaultMixins.formAppearances();
|
|
46
42
|
display: flex;
|
|
47
|
-
|
|
48
|
-
box-sizing: border-box;
|
|
43
|
+
gap: var(--ard-digit-input-gap, 0.375em);
|
|
49
44
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
width: 100%;
|
|
55
|
-
height: 100%;
|
|
45
|
+
.ard-digit-input__item {
|
|
46
|
+
height: max-content;
|
|
47
|
+
display: flex;
|
|
48
|
+
height: var(--ard-digit-input-size, 2.0625em);
|
|
56
49
|
box-sizing: border-box;
|
|
57
|
-
text-align: center;
|
|
58
|
-
color: inherit;
|
|
59
|
-
caret-color: var(--ard-digit-input-caret-color, #{ARD.$text3});
|
|
60
|
-
background: var(--ard-appearance-background);
|
|
61
|
-
border: var(--ard-appearance-border);
|
|
62
|
-
border-radius: var(--ard-variant-border-radius);
|
|
63
|
-
transition:
|
|
64
|
-
border-color var(--ard-digit-input-transition-duration, 0.15s) ARD.$timing-fn,
|
|
65
|
-
background-color var(--ard-digit-input-transition-duration, 0.15s) ARD.$timing-fn;
|
|
66
50
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
opacity: var(--ard-digit-input-placeholder-opacity, 60%);
|
|
51
|
+
&.ard-digit-input__item-with-input {
|
|
52
|
+
width: var(--ard-digit-input-size, 2.0625em);
|
|
70
53
|
}
|
|
54
|
+
.ard-digit-input__input {
|
|
55
|
+
width: 100%;
|
|
56
|
+
height: 100%;
|
|
57
|
+
box-sizing: border-box;
|
|
58
|
+
text-align: center;
|
|
59
|
+
color: inherit;
|
|
60
|
+
caret-color: var(--ard-digit-input-caret-color, #{ARD.$text3});
|
|
61
|
+
background: var(--ard-appearance-background);
|
|
62
|
+
border: var(--ard-appearance-border);
|
|
63
|
+
border-radius: var(--ard-variant-border-radius);
|
|
64
|
+
transition:
|
|
65
|
+
border-color var(--ard-digit-input-transition-duration, 0.15s) ARD.$timing-fn,
|
|
66
|
+
background-color var(--ard-digit-input-transition-duration, 0.15s) ARD.$timing-fn;
|
|
71
67
|
|
|
72
|
-
|
|
73
|
-
|
|
68
|
+
&::placeholder {
|
|
69
|
+
color: var(--ard-digit-input-placeholder-color, #{ARD.$text3});
|
|
70
|
+
opacity: var(--ard-digit-input-placeholder-opacity, 60%);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&:not(.ard-digit-input__input-empty) {
|
|
74
|
+
caret-color: transparent;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
.ard-digit-input__static {
|
|
78
|
+
width: max-content;
|
|
79
|
+
white-space: nowrap;
|
|
80
|
+
display: flex;
|
|
81
|
+
align-items: center;
|
|
74
82
|
}
|
|
75
83
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
align-items: center;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
&.ard-shape-square {
|
|
84
|
-
.ard-digit-input__item {
|
|
85
|
-
height: var(--ard-digit-input-size, 2.0625em);
|
|
84
|
+
&.ard-shape-square {
|
|
85
|
+
.ard-digit-input__item {
|
|
86
|
+
height: var(--ard-digit-input-size, 2.0625em);
|
|
87
|
+
}
|
|
86
88
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
height: var(--ard-digit-input-rectangle-height, calc(var(--ard-digit-input-size, 2.0625em) * 1.3));
|
|
89
|
+
&.ard-shape-rectangle {
|
|
90
|
+
.ard-digit-input__item {
|
|
91
|
+
height: var(--ard-digit-input-rectangle-height, calc(var(--ard-digit-input-size, 2.0625em) * 1.3));
|
|
91
92
|
|
|
92
|
-
|
|
93
|
-
|
|
93
|
+
.ard-digit-input__input {
|
|
94
|
+
font-size: var(--ard-digit-input-rectangle-font-size, 1.25em);
|
|
95
|
+
}
|
|
94
96
|
}
|
|
95
97
|
}
|
|
96
|
-
}
|
|
97
98
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
&.ard-is-success {
|
|
100
|
+
.ard-digit-input__item .ard-digit-input__input {
|
|
101
|
+
background-color: var(--ard-digit-input-success-background-color, transparent);
|
|
102
|
+
border-color: var(--ard-digit-input-success-border-color, #{ARD.$success500});
|
|
103
|
+
}
|
|
102
104
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
&.ard-has-error {
|
|
106
|
+
.ard-digit-input__item .ard-digit-input__input {
|
|
107
|
+
background-color: var(--ard-digit-input-error-background-color, #{ARD.$danger50});
|
|
108
|
+
border-color: var(--ard-digit-input-error-border-color, #{ARD.$danger500});
|
|
109
|
+
}
|
|
108
110
|
}
|
|
109
|
-
}
|
|
110
111
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
112
|
+
&.ard-variant-rounded {
|
|
113
|
+
--ard-variant-border-radius: var(--ard-digit-input-border-radius, var(--ard-rounded-corner-radius, 0.375rem));
|
|
114
|
+
}
|
|
115
|
+
&.ard-variant-pill {
|
|
116
|
+
--ard-variant-border-radius: 9999px;
|
|
117
|
+
}
|
|
118
|
+
&.ard-variant-sharp {
|
|
119
|
+
--ard-variant-border-radius: 0;
|
|
120
|
+
}
|
|
119
121
|
}
|
|
120
|
-
|
|
121
|
-
.ard-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
122
|
+
.ard-disabled {
|
|
123
|
+
> .ard-digit-input {
|
|
124
|
+
opacity: var(--ard-digit-input-disabled-opacity, 50%);
|
|
125
|
+
pointer-events: none;
|
|
126
|
+
}
|
|
125
127
|
}
|
|
126
128
|
}
|