@ardium-ui/ui 5.0.0-alpha.74 → 5.0.0-alpha.76
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/lib/slider/range-slider/range-slider.component.d.ts +1 -1
- package/package.json +1 -1
- package/prebuilt-themes/default/badge.css +222 -221
- package/prebuilt-themes/default/badge.css.map +1 -1
- package/prebuilt-themes/default/buttons/button.css +305 -304
- package/prebuilt-themes/default/buttons/button.css.map +1 -1
- package/prebuilt-themes/default/buttons/fab.css +302 -303
- package/prebuilt-themes/default/buttons/fab.css.map +1 -1
- package/prebuilt-themes/default/buttons/icon-button.css +290 -290
- package/prebuilt-themes/default/buttons/icon-button.css.map +1 -1
- package/prebuilt-themes/default/calendar.css +364 -364
- package/prebuilt-themes/default/calendar.css.map +1 -1
- package/prebuilt-themes/default/card.css +130 -137
- package/prebuilt-themes/default/card.css.map +1 -1
- package/prebuilt-themes/default/checkbox-list.css +74 -72
- package/prebuilt-themes/default/checkbox-list.css.map +1 -1
- package/prebuilt-themes/default/checkbox.css +339 -338
- package/prebuilt-themes/default/checkbox.css.map +1 -1
- package/prebuilt-themes/default/chips.css +384 -383
- package/prebuilt-themes/default/chips.css.map +1 -1
- package/prebuilt-themes/default/color-display.css +28 -26
- 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 +13 -9
- package/prebuilt-themes/default/core.css.map +1 -1
- package/prebuilt-themes/default/dialog.css +15 -15
- package/prebuilt-themes/default/dialog.css.map +1 -1
- package/prebuilt-themes/default/divider.css +73 -72
- package/prebuilt-themes/default/divider.css.map +1 -1
- package/prebuilt-themes/default/dropdown-panel.css +35 -34
- package/prebuilt-themes/default/dropdown-panel.css.map +1 -1
- package/prebuilt-themes/default/file-drop-area.css +286 -285
- 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 +127 -129
- package/prebuilt-themes/default/form-field.css.map +1 -1
- package/prebuilt-themes/default/inputs/autocomplete-input.css +163 -162
- 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 +125 -125
- package/prebuilt-themes/default/inputs/date-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/digit-input.css +110 -111
- package/prebuilt-themes/default/inputs/digit-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/file-input.css +358 -359
- package/prebuilt-themes/default/inputs/file-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/hex-input.css +140 -138
- package/prebuilt-themes/default/inputs/hex-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/input.css +128 -126
- package/prebuilt-themes/default/inputs/input.css.map +1 -1
- package/prebuilt-themes/default/inputs/number-input.css +204 -204
- package/prebuilt-themes/default/inputs/number-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/password-input.css +98 -97
- package/prebuilt-themes/default/inputs/password-input.css.map +1 -1
- package/prebuilt-themes/default/kbd-shortcut.css +10 -8
- package/prebuilt-themes/default/kbd-shortcut.css.map +1 -1
- package/prebuilt-themes/default/kbd.css +17 -15
- package/prebuilt-themes/default/kbd.css.map +1 -1
- package/prebuilt-themes/default/modal.css +79 -77
- package/prebuilt-themes/default/modal.css.map +1 -1
- package/prebuilt-themes/default/progress-bar.css +250 -234
- package/prebuilt-themes/default/progress-bar.css.map +1 -1
- package/prebuilt-themes/default/progress-circle.css +172 -170
- package/prebuilt-themes/default/progress-circle.css.map +1 -1
- package/prebuilt-themes/default/radio.css +231 -232
- package/prebuilt-themes/default/radio.css.map +1 -1
- package/prebuilt-themes/default/segment.css +414 -412
- package/prebuilt-themes/default/segment.css.map +1 -1
- package/prebuilt-themes/default/select.css +274 -275
- package/prebuilt-themes/default/select.css.map +1 -1
- package/prebuilt-themes/default/slide-toggle.css +294 -293
- package/prebuilt-themes/default/slide-toggle.css.map +1 -1
- package/prebuilt-themes/default/slider.css +370 -369
- package/prebuilt-themes/default/slider.css.map +1 -1
- package/prebuilt-themes/default/snackbar.css +173 -172
- package/prebuilt-themes/default/snackbar.css.map +1 -1
- package/prebuilt-themes/default/spinner.css +156 -155
- package/prebuilt-themes/default/spinner.css.map +1 -1
- package/prebuilt-themes/default/stars.css +259 -262
- package/prebuilt-themes/default/stars.css.map +1 -1
- package/prebuilt-themes/default/tabber.css +234 -233
- package/prebuilt-themes/default/tabber.css.map +1 -1
- package/prebuilt-themes/default/table-pagination.css +46 -45
- package/prebuilt-themes/default/table-pagination.css.map +1 -1
- package/prebuilt-themes/default/table.css +441 -439
- package/prebuilt-themes/default/table.css.map +1 -1
- package/themes/default/badge.scss +92 -90
- package/themes/default/buttons/button.scss +70 -68
- package/themes/default/buttons/fab.scss +63 -61
- package/themes/default/buttons/icon-button.scss +56 -54
- package/themes/default/calendar.scss +215 -211
- package/themes/default/card.scss +133 -131
- package/themes/default/checkbox-list.scss +70 -68
- package/themes/default/checkbox.scss +55 -53
- package/themes/default/chips.scss +166 -159
- package/themes/default/color-display.scss +31 -29
- package/themes/default/color-picker.scss +95 -93
- package/themes/default/core.scss +14 -9
- package/themes/default/dialog.scss +15 -13
- package/themes/default/divider.scss +79 -77
- package/themes/default/dropdown-panel.scss +37 -35
- package/themes/default/file-drop-area.scss +152 -150
- package/themes/default/form-field-frame.scss +69 -67
- package/themes/default/form-field.scss +109 -107
- package/themes/default/inputs/autocomplete-input.scss +61 -59
- package/themes/default/inputs/color-input.scss +34 -32
- package/themes/default/inputs/date-input.scss +63 -61
- package/themes/default/inputs/digit-input.scss +83 -81
- package/themes/default/inputs/file-input.scss +113 -111
- package/themes/default/inputs/hex-input.scss +39 -37
- package/themes/default/inputs/input.scss +27 -25
- package/themes/default/inputs/number-input.scss +137 -135
- package/themes/default/inputs/password-input.scss +60 -58
- package/themes/default/kbd-shortcut.scss +9 -7
- package/themes/default/kbd.scss +19 -17
- package/themes/default/modal.scss +79 -77
- package/themes/default/progress-bar.scss +127 -103
- package/themes/default/progress-circle.scss +41 -39
- package/themes/default/radio.scss +92 -90
- package/themes/default/segment.scss +260 -255
- package/themes/default/select.scss +206 -204
- package/themes/default/slide-toggle.scss +146 -144
- package/themes/default/slider.scss +185 -179
- package/themes/default/snackbar.scss +32 -30
- package/themes/default/spinner.scss +16 -14
- package/themes/default/stars.scss +81 -79
- package/themes/default/tabber.scss +86 -84
- package/themes/default/table-pagination.scss +47 -46
- package/themes/default/table.scss +342 -340
|
@@ -28,73 +28,75 @@
|
|
|
28
28
|
--ard-date-input-multipage-gap: 0;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
ard-
|
|
32
|
-
ard-date-
|
|
33
|
-
ard-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
31
|
+
@layer ard-theme {
|
|
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;
|
|
57
58
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
position: absolute;
|
|
63
|
-
padding: 0;
|
|
64
|
-
}
|
|
65
|
-
.ard-date-input__input-container {
|
|
66
|
-
position: absolute;
|
|
67
|
-
inset: 0;
|
|
68
|
-
padding: 0;
|
|
69
|
-
|
|
70
|
-
&.ard-date-input__input-container-hidden {
|
|
59
|
+
.ard-date-input__value-container {
|
|
60
|
+
position: relative;
|
|
61
|
+
}
|
|
62
|
+
.ard-date-input__placeholder {
|
|
71
63
|
position: absolute;
|
|
72
|
-
|
|
73
|
-
appearance: none;
|
|
64
|
+
padding: 0;
|
|
74
65
|
}
|
|
66
|
+
.ard-date-input__input-container {
|
|
67
|
+
position: absolute;
|
|
68
|
+
inset: 0;
|
|
69
|
+
padding: 0;
|
|
70
|
+
|
|
71
|
+
&.ard-date-input__input-container-hidden {
|
|
72
|
+
position: absolute;
|
|
73
|
+
opacity: 0;
|
|
74
|
+
appearance: none;
|
|
75
|
+
}
|
|
75
76
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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
|
+
}
|
|
83
|
+
}
|
|
84
|
+
.ard-date-input__value {
|
|
85
|
+
display: flex;
|
|
86
|
+
align-items: center;
|
|
87
|
+
padding: 0;
|
|
81
88
|
}
|
|
82
89
|
}
|
|
83
|
-
.ard-date-input__value {
|
|
84
|
-
display: flex;
|
|
85
|
-
align-items: center;
|
|
86
|
-
padding: 0;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
90
|
|
|
90
|
-
ard-days-view {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
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);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
.ard-date-input__multipage-wrapper {
|
|
98
|
+
display: flex;
|
|
99
|
+
flex-direction: row;
|
|
100
|
+
gap: var(--ard-date-input-multipage-gap, 0);
|
|
94
101
|
}
|
|
95
|
-
}
|
|
96
|
-
.ard-date-input__multipage-wrapper {
|
|
97
|
-
display: flex;
|
|
98
|
-
flex-direction: row;
|
|
99
|
-
gap: var(--ard-date-input-multipage-gap, 0);
|
|
100
102
|
}
|
|
@@ -23,104 +23,106 @@
|
|
|
23
23
|
--ard-digit-input-disabled-opacity: 50%;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
ard-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.ard-digit-input,
|
|
33
|
-
.ard-digit-input__item,
|
|
34
|
-
.ard-digit-input__input,
|
|
35
|
-
.ard-digit-input__static {
|
|
36
|
-
font: inherit;
|
|
37
|
-
color: inherit;
|
|
38
|
-
}
|
|
39
|
-
.ard-digit-input {
|
|
40
|
-
@include defaultMixins.formAppearances();
|
|
41
|
-
display: flex;
|
|
42
|
-
gap: var(--ard-digit-input-gap, 0.375em);
|
|
26
|
+
@layer ard-theme {
|
|
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;
|
|
67
|
+
|
|
68
|
+
&::placeholder {
|
|
69
|
+
color: var(--ard-digit-input-placeholder-color, #{ARD.$text3});
|
|
70
|
+
opacity: var(--ard-digit-input-placeholder-opacity, 60%);
|
|
71
|
+
}
|
|
71
72
|
|
|
72
|
-
|
|
73
|
-
|
|
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
|
}
|
|
@@ -52,134 +52,136 @@
|
|
|
52
52
|
--ard-file-input-file-ext-font-weight: 500;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
.ard-form-field-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
.ard-file-input {
|
|
61
|
-
@include inputMixin.genericInput(
|
|
62
|
-
var(--ard-file-input-height, var(--ard-form-field-height, 2.3125rem)),
|
|
63
|
-
var(--ard-file-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
|
|
64
|
-
var(--ard-file-input-gap, 0.625rem),
|
|
65
|
-
var(--ard-file-input-font-size, var(--ard-form-field-font-size, 1rem)),
|
|
66
|
-
var(--ard-file-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
|
|
67
|
-
var(--ard-file-input-line-height, 1.25),
|
|
68
|
-
var(--ard-file-input-line-height-compact, 1),
|
|
69
|
-
var(--ard-file-input-font-weight, 400),
|
|
70
|
-
var(--ard-file-input-padding-top, var(--ard-form-field-padding-top, 0)),
|
|
71
|
-
var(--ard-file-input-padding-right, var(--ard-form-field-padding-right, 0.375rem)),
|
|
72
|
-
var(--ard-file-input-padding-bottom, var(--ard-form-field-padding-bottom, 0)),
|
|
73
|
-
var(--ard-file-input-padding-left, var(--ard-form-field-padding-left, 0.375rem)),
|
|
74
|
-
var(--ard-file-input-padding-top-compact, var(--ard-form-field-padding-top-compact, 0)),
|
|
75
|
-
var(--ard-file-input-padding-right-compact, var(--ard-form-field-padding-right-compact, 0.375rem)),
|
|
76
|
-
var(--ard-file-input-padding-bottom-compact, var(--ard-form-field-padding-bottom-compact, 0)),
|
|
77
|
-
var(--ard-file-input-padding-left-compact, var(--ard-form-field-padding-left-compact, 0.375rem)),
|
|
78
|
-
var(--ard-file-input-color, #{ARD.$text}),
|
|
79
|
-
var(--ard-file-input-placeholder-color, #{ARD.$text}),
|
|
80
|
-
var(--ard-file-input-placeholder-opacity, 60%)
|
|
81
|
-
);
|
|
82
|
-
@include CM.typeColors();
|
|
83
|
-
min-width: var(--ard-file-input-min-width, 10rem);
|
|
84
|
-
max-width: var(--ard-file-input-max-width, 100%);
|
|
85
|
-
gap: var(--ard-file-input-gap, 0.375rem);
|
|
86
|
-
cursor: default;
|
|
87
|
-
border-radius: var(--ard-variant-border-radius);
|
|
88
|
-
|
|
89
|
-
*:not(button):not(ard-clear-button) {
|
|
90
|
-
pointer-events: none;
|
|
91
|
-
user-select: none;
|
|
55
|
+
@layer ard-theme {
|
|
56
|
+
.ard-file-input-form-field-frame {
|
|
57
|
+
.ard-form-field-overlay {
|
|
58
|
+
display: none;
|
|
59
|
+
}
|
|
92
60
|
}
|
|
61
|
+
.ard-file-input {
|
|
62
|
+
@include inputMixin.genericInput(
|
|
63
|
+
var(--ard-file-input-height, var(--ard-form-field-height, 2.3125rem)),
|
|
64
|
+
var(--ard-file-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
|
|
65
|
+
var(--ard-file-input-gap, 0.625rem),
|
|
66
|
+
var(--ard-file-input-font-size, var(--ard-form-field-font-size, 1rem)),
|
|
67
|
+
var(--ard-file-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
|
|
68
|
+
var(--ard-file-input-line-height, 1.25),
|
|
69
|
+
var(--ard-file-input-line-height-compact, 1),
|
|
70
|
+
var(--ard-file-input-font-weight, 400),
|
|
71
|
+
var(--ard-file-input-padding-top, var(--ard-form-field-padding-top, 0)),
|
|
72
|
+
var(--ard-file-input-padding-right, var(--ard-form-field-padding-right, 0.375rem)),
|
|
73
|
+
var(--ard-file-input-padding-bottom, var(--ard-form-field-padding-bottom, 0)),
|
|
74
|
+
var(--ard-file-input-padding-left, var(--ard-form-field-padding-left, 0.375rem)),
|
|
75
|
+
var(--ard-file-input-padding-top-compact, var(--ard-form-field-padding-top-compact, 0)),
|
|
76
|
+
var(--ard-file-input-padding-right-compact, var(--ard-form-field-padding-right-compact, 0.375rem)),
|
|
77
|
+
var(--ard-file-input-padding-bottom-compact, var(--ard-form-field-padding-bottom-compact, 0)),
|
|
78
|
+
var(--ard-file-input-padding-left-compact, var(--ard-form-field-padding-left-compact, 0.375rem)),
|
|
79
|
+
var(--ard-file-input-color, #{ARD.$text}),
|
|
80
|
+
var(--ard-file-input-placeholder-color, #{ARD.$text}),
|
|
81
|
+
var(--ard-file-input-placeholder-opacity, 60%)
|
|
82
|
+
);
|
|
83
|
+
@include CM.typeColors();
|
|
84
|
+
min-width: var(--ard-file-input-min-width, 10rem);
|
|
85
|
+
max-width: var(--ard-file-input-max-width, 100%);
|
|
86
|
+
gap: var(--ard-file-input-gap, 0.375rem);
|
|
87
|
+
cursor: default;
|
|
88
|
+
border-radius: var(--ard-variant-border-radius);
|
|
93
89
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
90
|
+
*:not(button):not(ard-clear-button) {
|
|
91
|
+
pointer-events: none;
|
|
92
|
+
user-select: none;
|
|
93
|
+
}
|
|
98
94
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
align-items: center;
|
|
104
|
-
}
|
|
105
|
-
.ard-browse-button {
|
|
106
|
-
cursor: pointer;
|
|
107
|
-
height: var(--ard-file-input-browse-button-height, calc(100% - 0.25rem));
|
|
108
|
-
width: var(--ard-file-input-browse-button-width, unset);
|
|
109
|
-
margin: var(--ard-file-input-browse-button-margin, 0.125rem);
|
|
110
|
-
aspect-ratio: var(--ard-file-input-browse-button-aspect-ratio, 1);
|
|
111
|
-
border: var(--ard-file-input-browse-button-border, none);
|
|
112
|
-
border-radius: var(--ard-file-input-browse-button-border-radius, 9999px);
|
|
113
|
-
background: var(--ard-file-input-browse-button-background, none);
|
|
114
|
-
padding: var(--ard-file-input-browse-button-padding, 0);
|
|
115
|
-
color: var(--ard-file-input-browse-button-color, #{ARD.$text});
|
|
116
|
-
position: relative;
|
|
117
|
-
display: flex;
|
|
118
|
-
justify-content: center;
|
|
119
|
-
align-items: center;
|
|
120
|
-
outline: none;
|
|
95
|
+
&.ard-state-dragover {
|
|
96
|
+
outline: var(--ard-file-input-dragover-outline-width, 2px) var(--ard-file-input-dragover-outline-style, solid)
|
|
97
|
+
var(--ard-cmpcl--content-light);
|
|
98
|
+
}
|
|
121
99
|
|
|
122
|
-
.ard-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
100
|
+
.ard-file-input__value {
|
|
101
|
+
overflow: hidden;
|
|
102
|
+
text-overflow: ellipsis;
|
|
103
|
+
display: flex;
|
|
104
|
+
align-items: center;
|
|
126
105
|
}
|
|
127
|
-
|
|
106
|
+
.ard-browse-button {
|
|
107
|
+
cursor: pointer;
|
|
108
|
+
height: var(--ard-file-input-browse-button-height, calc(100% - 0.25rem));
|
|
109
|
+
width: var(--ard-file-input-browse-button-width, unset);
|
|
110
|
+
margin: var(--ard-file-input-browse-button-margin, 0.125rem);
|
|
111
|
+
aspect-ratio: var(--ard-file-input-browse-button-aspect-ratio, 1);
|
|
112
|
+
border: var(--ard-file-input-browse-button-border, none);
|
|
113
|
+
border-radius: var(--ard-file-input-browse-button-border-radius, 9999px);
|
|
114
|
+
background: var(--ard-file-input-browse-button-background, none);
|
|
115
|
+
padding: var(--ard-file-input-browse-button-padding, 0);
|
|
116
|
+
color: var(--ard-file-input-browse-button-color, #{ARD.$text});
|
|
117
|
+
position: relative;
|
|
118
|
+
display: flex;
|
|
119
|
+
justify-content: center;
|
|
120
|
+
align-items: center;
|
|
121
|
+
outline: none;
|
|
122
|
+
|
|
128
123
|
.ard-focus-overlay {
|
|
129
|
-
|
|
124
|
+
@include defaultMixins.focus-overlay(var(--ard-file-input-browse-button-overlay-offset, 0.25rem));
|
|
125
|
+
background: var(--ard-file-input-browse-button-overlay-color, #{ARD.$overlay});
|
|
126
|
+
border-radius: var(--ard-file-input-browse-button-border-radius, 9999px);
|
|
130
127
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
128
|
+
&:hover {
|
|
129
|
+
.ard-focus-overlay {
|
|
130
|
+
opacity: var(--ard-file-input-browse-button-overlay-hover-opacity, 4%);
|
|
131
|
+
}
|
|
135
132
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
133
|
+
&:focus {
|
|
134
|
+
.ard-focus-overlay {
|
|
135
|
+
opacity: var(--ard-file-input-browse-button-overlay-focus-opacity, 8%);
|
|
136
|
+
}
|
|
140
137
|
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
138
|
+
&:active {
|
|
139
|
+
.ard-focus-overlay {
|
|
140
|
+
opacity: var(--ard-file-input-browse-button-overlay-active-opacity, 12%);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
&:focus-visible {
|
|
144
|
+
.ard-focus-overlay {
|
|
145
|
+
opacity: var(--ard-file-input-browse-button-overlay-focus-visible-opacity, 16%);
|
|
146
|
+
}
|
|
145
147
|
}
|
|
146
148
|
}
|
|
147
|
-
}
|
|
148
149
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
.ard-input-container {
|
|
152
|
-
white-space: nowrap;
|
|
153
|
-
}
|
|
154
|
-
.ard-input-container,
|
|
155
|
-
.ard-file-input__value,
|
|
156
|
-
.ard-file-input__uploaded,
|
|
157
|
-
.ard-file-input__full-file-name,
|
|
158
|
-
.ard-file-input__file-name {
|
|
159
|
-
overflow: hidden;
|
|
160
|
-
text-overflow: ellipsis;
|
|
161
|
-
max-width: 100%;
|
|
162
|
-
}
|
|
163
|
-
.ard-file-input__full-file-name {
|
|
164
|
-
display: grid;
|
|
165
|
-
grid-template-columns: 1fr max-content;
|
|
150
|
+
@include CB.clearButton();
|
|
166
151
|
|
|
152
|
+
.ard-input-container {
|
|
153
|
+
white-space: nowrap;
|
|
154
|
+
}
|
|
155
|
+
.ard-input-container,
|
|
156
|
+
.ard-file-input__value,
|
|
157
|
+
.ard-file-input__uploaded,
|
|
158
|
+
.ard-file-input__full-file-name,
|
|
167
159
|
.ard-file-input__file-name {
|
|
168
|
-
|
|
160
|
+
overflow: hidden;
|
|
161
|
+
text-overflow: ellipsis;
|
|
162
|
+
max-width: 100%;
|
|
169
163
|
}
|
|
170
|
-
.ard-file-
|
|
171
|
-
|
|
164
|
+
.ard-file-input__full-file-name {
|
|
165
|
+
display: grid;
|
|
166
|
+
grid-template-columns: 1fr max-content;
|
|
167
|
+
|
|
168
|
+
.ard-file-input__file-name {
|
|
169
|
+
font-weight: var(--ard-file-input-file-name-font-weight, 500);
|
|
170
|
+
}
|
|
171
|
+
.ard-file-input__file-ext {
|
|
172
|
+
font-weight: var(--ard-file-input-file-ext-font-weight, 500);
|
|
173
|
+
}
|
|
172
174
|
}
|
|
173
175
|
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
ard-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
176
|
+
ard-file-input .ard-form-field-content-container {
|
|
177
|
+
max-width: 100%;
|
|
178
|
+
}
|
|
179
|
+
ard-file-input .ard-form-field-frame {
|
|
180
|
+
&.ard-has-error .ard-file-input {
|
|
181
|
+
.ard-file-input__value,
|
|
182
|
+
.ard-browse-button {
|
|
183
|
+
color: var(--ard-file-input-browse-button-color-error, #{ARD.$danger700});
|
|
184
|
+
}
|
|
183
185
|
}
|
|
184
186
|
}
|
|
185
187
|
}
|
|
@@ -32,46 +32,48 @@
|
|
|
32
32
|
--ard-hex-input-hash-opacity: 70%;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
35
|
+
@layer ard-theme {
|
|
36
|
+
.ard-hex-input {
|
|
37
|
+
@include inputMixin.genericInput(
|
|
38
|
+
var(--ard-hex-input-height, var(--ard-form-field-height, 2.3125rem)),
|
|
39
|
+
var(--ard-hex-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
|
|
40
|
+
var(--ard-hex-input-gap, 0.625rem),
|
|
41
|
+
var(--ard-hex-input-font-size, var(--ard-form-field-font-size, 1rem)),
|
|
42
|
+
var(--ard-hex-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
|
|
43
|
+
var(--ard-hex-input-line-height, 1.25),
|
|
44
|
+
var(--ard-hex-input-line-height-compact, 1),
|
|
45
|
+
var(--ard-hex-input-font-weight, 400),
|
|
46
|
+
var(--ard-hex-input-padding-top, var(--ard-form-field-padding-top, 0)),
|
|
47
|
+
var(--ard-hex-input-padding-right, var(--ard-form-field-padding-right, 0.375rem)),
|
|
48
|
+
var(--ard-hex-input-padding-bottom, var(--ard-form-field-padding-bottom, 0)),
|
|
49
|
+
var(--ard-hex-input-padding-left, var(--ard-form-field-padding-left, 0.375rem)),
|
|
50
|
+
var(--ard-hex-input-padding-top-compact, var(--ard-form-field-padding-top-compact, 0)),
|
|
51
|
+
var(--ard-hex-input-padding-right-compact, var(--ard-form-field-padding-right-compact, 0.375rem)),
|
|
52
|
+
var(--ard-hex-input-padding-bottom-compact, var(--ard-form-field-padding-bottom-compact, 0)),
|
|
53
|
+
var(--ard-hex-input-padding-left-compact, var(--ard-form-field-padding-left-compact, 0.375rem)),
|
|
54
|
+
var(--ard-hex-input-color, #{ARD.$text}),
|
|
55
|
+
var(--ard-hex-input-placeholder-color, #{ARD.$text}),
|
|
56
|
+
var(--ard-hex-input-placeholder-opacity, 60%)
|
|
57
|
+
);
|
|
58
|
+
min-width: var(--ard-hex-input-min-width, 10rem);
|
|
59
|
+
max-width: var(--ard-hex-input-max-width, 100%);
|
|
59
60
|
|
|
60
|
-
|
|
61
|
+
@include CB.clearButton();
|
|
61
62
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
.ard-input-container {
|
|
64
|
+
input {
|
|
65
|
+
font-family: var(--ard-font-family-mono);
|
|
66
|
+
}
|
|
65
67
|
}
|
|
66
|
-
}
|
|
67
68
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
69
|
+
.ard-hash-container {
|
|
70
|
+
color: var(--ard-hex-input-hash-color, #{ARD.$text});
|
|
71
|
+
opacity: var(--ard-hex-input-hash-opacity, 70%);
|
|
72
|
+
user-select: none;
|
|
73
|
+
font-family: var(--ard-font-family-mono);
|
|
74
|
+
display: flex;
|
|
75
|
+
align-items: center;
|
|
76
|
+
height: 100%;
|
|
77
|
+
}
|
|
76
78
|
}
|
|
77
79
|
}
|