@ardium-ui/ui 5.0.0-alpha.37 → 5.0.0-alpha.38
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 +3033 -1625
- package/fesm2022/ardium-ui-ui.mjs.map +1 -1
- package/lib/_internal/utils/date.utils.d.ts +16 -0
- package/lib/calendar/abstract-calendar.d.ts +127 -0
- package/lib/calendar/calendar.component.d.ts +8 -97
- package/lib/calendar/calendar.defaults.d.ts +12 -1
- package/lib/calendar/calendar.internal-directives.d.ts +24 -8
- package/lib/calendar/calendar.internal-types.d.ts +1 -0
- package/lib/calendar/calendar.module.d.ts +4 -9
- package/lib/calendar/calendar.types.d.ts +19 -5
- package/lib/calendar/index.d.ts +3 -0
- package/lib/calendar/range-calendar.component.d.ts +16 -0
- package/lib/calendar/range-calendar.directives.d.ts +51 -0
- package/lib/calendar/range-calendar.module.d.ts +10 -0
- package/lib/calendar/views/calendar-views.module.d.ts +13 -0
- package/lib/calendar/views/days-view/days-view.component.d.ts +20 -2
- package/lib/calendar/views/days-view/days-view.helpers.d.ts +2 -2
- package/lib/calendar/views/months-view/months-view.component.d.ts +15 -3
- package/lib/calendar/views/years-view/years-view.component.d.ts +15 -3
- package/lib/inputs/date-input/abstract-date-input.d.ts +112 -0
- package/lib/inputs/date-input/date-input.component.d.ts +19 -82
- package/lib/inputs/date-input/date-input.defaults.d.ts +21 -3
- package/lib/inputs/date-input/{date-input.directive.d.ts → date-input.directives.d.ts} +2 -2
- package/lib/inputs/date-input/date-input.module.d.ts +5 -4
- package/lib/inputs/date-input/date-input.serializers.d.ts +4 -2
- package/lib/inputs/date-input/date-input.types.d.ts +5 -4
- package/lib/inputs/date-input/date-range-input.component.d.ts +29 -0
- package/lib/inputs/date-input/date-range-input.directives.d.ts +82 -0
- package/lib/inputs/date-input/date-range-input.module.d.ts +17 -0
- package/lib/inputs/date-input/index.d.ts +7 -1
- package/lib/inputs/date-input/multipage-date-range-input.component.d.ts +44 -0
- package/lib/inputs/date-input/multipage-date-range-input.directives.d.ts +82 -0
- package/lib/inputs/date-input/multipage-date-range-input.module.d.ts +17 -0
- package/package.json +1 -1
- package/prebuilt-themes/default/buttons/button.css +4 -4
- package/prebuilt-themes/default/buttons/fab.css +4 -4
- package/prebuilt-themes/default/buttons/icon-button.css +4 -4
- package/prebuilt-themes/default/calendar.css +134 -54
- package/prebuilt-themes/default/calendar.css.map +1 -1
- package/prebuilt-themes/default/checkbox-list.css +4 -4
- package/prebuilt-themes/default/checkbox.css +4 -4
- package/prebuilt-themes/default/chips.css +8 -8
- package/prebuilt-themes/default/inputs/autocomplete-input.css +69 -24
- package/prebuilt-themes/default/inputs/autocomplete-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/color-input.css +4 -43
- package/prebuilt-themes/default/inputs/color-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/date-input.css +76 -20
- package/prebuilt-themes/default/inputs/date-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/file-input.css +109 -61
- package/prebuilt-themes/default/inputs/file-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/hex-input.css +42 -17
- package/prebuilt-themes/default/inputs/hex-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/input.css +36 -13
- package/prebuilt-themes/default/inputs/input.css.map +1 -1
- package/prebuilt-themes/default/inputs/number-input.css +26 -21
- package/prebuilt-themes/default/inputs/number-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/password-input.css +64 -21
- package/prebuilt-themes/default/inputs/password-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/search-bar.css +38 -15
- package/prebuilt-themes/default/inputs/search-bar.css.map +1 -1
- package/prebuilt-themes/default/radio.css +4 -4
- package/prebuilt-themes/default/segment.css +4 -4
- package/prebuilt-themes/default/select.css +4 -4
- package/prebuilt-themes/default/slide-toggle.css +4 -4
- package/prebuilt-themes/default/slider.css +4 -4
- package/prebuilt-themes/default/stars.css +4 -4
- package/prebuilt-themes/default/statebox.css +4 -4
- package/prebuilt-themes/default/tabber.css +4 -4
- package/themes/default/_mixins.scss +4 -4
- package/themes/default/calendar.scss +146 -55
- package/themes/default/inputs/_shared.scss +27 -8
- package/themes/default/inputs/autocomplete-input.scss +68 -14
- package/themes/default/inputs/color-input.scss +1 -1
- package/themes/default/inputs/date-input.scss +54 -5
- package/themes/default/inputs/file-input.scss +83 -23
- package/themes/default/inputs/hex-input.scss +42 -7
- package/themes/default/inputs/input.scss +37 -3
- package/themes/default/inputs/number-input.scss +30 -14
- package/themes/default/inputs/password-input.scss +70 -15
- package/themes/default/inputs/search-bar.scss +39 -5
|
@@ -4,18 +4,71 @@
|
|
|
4
4
|
@use '../coloring' as CM;
|
|
5
5
|
@use '../../variables' as ARD;
|
|
6
6
|
|
|
7
|
+
:root {
|
|
8
|
+
--ard-file-input-height: var(--ard-form-field-height, 2.3125rem);
|
|
9
|
+
--ard-file-input-height-compact: var(--ard-form-field-height-compact, 1.6875rem);
|
|
10
|
+
--ard-file-input-gap: 0.625rem;
|
|
11
|
+
--ard-file-input-font-size: var(--ard-form-field-font-size, 1rem);
|
|
12
|
+
--ard-file-input-font-size-compact: var(--ard-form-field-font-size-compact, 0.875rem);
|
|
13
|
+
--ard-file-input-line-height: 1.25;
|
|
14
|
+
--ard-file-input-line-height-compact: 1;
|
|
15
|
+
--ard-file-input-font-weight: 400;
|
|
16
|
+
--ard-file-input-padding: var(--ard-form-field-padding, 0 0.375rem);
|
|
17
|
+
--ard-file-input-padding-compact: var(--ard-form-field-padding-compact, 0 0.375rem);
|
|
18
|
+
--ard-file-input-color: #{ARD.$text};
|
|
19
|
+
--ard-file-input-placeholder-color: #{ARD.$text};
|
|
20
|
+
--ard-file-input-placeholder-opacity: 60%;
|
|
21
|
+
|
|
22
|
+
--ard-file-input-min-width: 10rem;
|
|
23
|
+
--ard-file-input-max-width: 100%;
|
|
24
|
+
--ard-file-input-gap: 0.375rem;
|
|
25
|
+
--ard-file-input-dragover-outline-width: 2px;
|
|
26
|
+
--ard-file-input-dragover-outline-style: solid;
|
|
27
|
+
--ard-file-input-browse-button-height: calc(100% - 0.25rem);
|
|
28
|
+
--ard-file-input-browse-button-width: unset;
|
|
29
|
+
--ard-file-input-browse-button-margin: 0.125rem;
|
|
30
|
+
--ard-file-input-browse-button-aspect-ratio: 1;
|
|
31
|
+
--ard-file-input-browse-button-border: none;
|
|
32
|
+
--ard-file-input-browse-button-border-radius: 9999px;
|
|
33
|
+
--ard-file-input-browse-button-background: none;
|
|
34
|
+
--ard-file-input-browse-button-padding: 0;
|
|
35
|
+
--ard-file-input-browse-button-color: #{ARD.$text2};
|
|
36
|
+
--ard-file-input-browse-button-color-error: #{ARD.$danger700};
|
|
37
|
+
--ard-file-input-browse-button-overlay-offset: 0rem;
|
|
38
|
+
--ard-file-input-browse-button-overlay-color: #{ARD.$overlay};
|
|
39
|
+
--ard-file-input-browse-button-overlay-hover-opacity: 4%;
|
|
40
|
+
--ard-file-input-browse-button-overlay-focus-opacity: 0;
|
|
41
|
+
--ard-file-input-browse-button-overlay-active-opacity: 12%;
|
|
42
|
+
--ard-file-input-browse-button-overlay-focus-visible-opacity: 16%;
|
|
43
|
+
--ard-file-input-file-name-font-weight: 500;
|
|
44
|
+
--ard-file-input-file-ext-font-weight: 500;
|
|
45
|
+
}
|
|
46
|
+
|
|
7
47
|
.ard-file-input-form-field-frame {
|
|
8
48
|
.ard-form-field-overlay {
|
|
9
49
|
display: none;
|
|
10
50
|
}
|
|
11
51
|
}
|
|
12
52
|
.ard-file-input {
|
|
53
|
+
@include inputMixin.genericInput(
|
|
54
|
+
var(--ard-file-input-height, var(--ard-form-field-height, 2.3125rem)),
|
|
55
|
+
var(--ard-file-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
|
|
56
|
+
var(--ard-file-input-gap, 0.625rem),
|
|
57
|
+
var(--ard-file-input-font-size, var(--ard-form-field-font-size, 1rem)),
|
|
58
|
+
var(--ard-file-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
|
|
59
|
+
var(--ard-file-input-line-height, 1.25),
|
|
60
|
+
var(--ard-file-input-line-height-compact, 1),
|
|
61
|
+
var(--ard-file-input-font-weight, 400),
|
|
62
|
+
var(--ard-file-input-padding, var(--ard-form-field-padding, 0 0.375rem)),
|
|
63
|
+
var(--ard-file-input-padding-compact, var(--ard-form-field-padding-compact, 0 0.375rem)),
|
|
64
|
+
var(--ard-file-input-color, #{ARD.$text}),
|
|
65
|
+
var(--ard-file-input-placeholder-color, #{ARD.$text}),
|
|
66
|
+
var(--ard-file-input-placeholder-opacity, 60%)
|
|
67
|
+
);
|
|
13
68
|
@include CM.typeColors();
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
max-width: 100%;
|
|
18
|
-
gap: 0.375rem;
|
|
69
|
+
min-width: var(--ard-file-input-min-width, 10rem);
|
|
70
|
+
max-width: var(--ard-file-input-max-width, 100%);
|
|
71
|
+
gap: var(--ard-file-input-gap, 0.375rem);
|
|
19
72
|
cursor: default;
|
|
20
73
|
border-radius: var(--ard-variant-border-radius);
|
|
21
74
|
|
|
@@ -25,23 +78,24 @@
|
|
|
25
78
|
}
|
|
26
79
|
|
|
27
80
|
&.ard-state-dragover {
|
|
28
|
-
outline: 2px
|
|
81
|
+
outline: var(--ard-file-input-dragover-outline-width, 2px) var(--ard-file-input-dragover-outline-style, solid)
|
|
82
|
+
var(--ard-cmpcl--content-light);
|
|
29
83
|
}
|
|
30
84
|
|
|
31
85
|
.ard-file-input__value {
|
|
32
|
-
font-size: 92%;
|
|
33
86
|
overflow: hidden;
|
|
34
87
|
text-overflow: ellipsis;
|
|
35
|
-
max-height: 1.25rem;
|
|
36
88
|
}
|
|
37
89
|
.ard-browse-button {
|
|
38
90
|
cursor: pointer;
|
|
39
|
-
height: calc(100% - 0.25rem);
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
91
|
+
height: var(--ard-file-input-browse-button-height, calc(100% - 0.25rem));
|
|
92
|
+
width: var(--ard-file-input-browse-button-width, unset);
|
|
93
|
+
margin: var(--ard-file-input-browse-button-margin, 0.125rem);
|
|
94
|
+
aspect-ratio: var(--ard-file-input-browse-button-aspect-ratio, 1);
|
|
95
|
+
border: var(--ard-file-input-browse-button-border, none);
|
|
96
|
+
border-radius: var(--ard-file-input-browse-button-border-radius, 9999px);
|
|
97
|
+
background: var(--ard-file-input-browse-button-background, none);
|
|
98
|
+
padding: var(--ard-file-input-browse-button-padding, 0);
|
|
45
99
|
position: relative;
|
|
46
100
|
display: flex;
|
|
47
101
|
justify-content: center;
|
|
@@ -49,28 +103,28 @@
|
|
|
49
103
|
outline: none;
|
|
50
104
|
|
|
51
105
|
.ard-focus-overlay {
|
|
52
|
-
@include defaultMixins.focus-overlay(0.25rem);
|
|
53
|
-
background: ARD.$overlay;
|
|
54
|
-
border-radius: 9999px;
|
|
106
|
+
@include defaultMixins.focus-overlay(var(--ard-file-input-browse-button-overlay-offset, 0.25rem));
|
|
107
|
+
background: var(--ard-file-input-browse-button-overlay-color, #{ARD.$overlay});
|
|
108
|
+
border-radius: var(--ard-file-input-browse-button-border-radius, 9999px);
|
|
55
109
|
}
|
|
56
110
|
&:hover {
|
|
57
111
|
.ard-focus-overlay {
|
|
58
|
-
opacity: 4
|
|
112
|
+
opacity: var(--ard-file-input-browse-button-overlay-hover-opacity, 4%);
|
|
59
113
|
}
|
|
60
114
|
}
|
|
61
115
|
&:focus {
|
|
62
116
|
.ard-focus-overlay {
|
|
63
|
-
opacity: 8
|
|
117
|
+
opacity: var(--ard-file-input-browse-button-overlay-focus-opacity, 8%);
|
|
64
118
|
}
|
|
65
119
|
}
|
|
66
120
|
&:active {
|
|
67
121
|
.ard-focus-overlay {
|
|
68
|
-
opacity: 12
|
|
122
|
+
opacity: var(--ard-file-input-browse-button-overlay-active-opacity, 12%);
|
|
69
123
|
}
|
|
70
124
|
}
|
|
71
125
|
&:focus-visible {
|
|
72
126
|
.ard-focus-overlay {
|
|
73
|
-
opacity: 16
|
|
127
|
+
opacity: var(--ard-file-input-browse-button-overlay-focus-visible-opacity, 16%);
|
|
74
128
|
}
|
|
75
129
|
}
|
|
76
130
|
}
|
|
@@ -92,7 +146,13 @@
|
|
|
92
146
|
.ard-file-input__full-file-name {
|
|
93
147
|
display: grid;
|
|
94
148
|
grid-template-columns: 1fr max-content;
|
|
95
|
-
|
|
149
|
+
|
|
150
|
+
.ard-file-input__file-name {
|
|
151
|
+
font-weight: var(--ard-file-input-file-name-font-weight, 500);
|
|
152
|
+
}
|
|
153
|
+
.ard-file-input__file-ext {
|
|
154
|
+
font-weight: var(--ard-file-input-file-ext-font-weight, 500);
|
|
155
|
+
}
|
|
96
156
|
}
|
|
97
157
|
}
|
|
98
158
|
ard-file-input .ard-form-field-content-container {
|
|
@@ -102,7 +162,7 @@ ard-file-input .ard-form-field-frame {
|
|
|
102
162
|
&.ard-has-error .ard-file-input {
|
|
103
163
|
.ard-file-input__value,
|
|
104
164
|
.ard-browse-button {
|
|
105
|
-
color: ARD.$danger700;
|
|
165
|
+
color: var(--ard-file-input-browse-button-color-error, #{ARD.$danger700});
|
|
106
166
|
}
|
|
107
167
|
}
|
|
108
168
|
}
|
|
@@ -3,11 +3,46 @@
|
|
|
3
3
|
@use '../clear-button' as CB;
|
|
4
4
|
@use '../../variables' as ARD;
|
|
5
5
|
|
|
6
|
+
:root {
|
|
7
|
+
--ard-hex-input-height: var(--ard-form-field-height, 2.3125rem);
|
|
8
|
+
--ard-hex-input-height-compact: var(--ard-form-field-height-compact, 1.6875rem);
|
|
9
|
+
--ard-hex-input-gap: 0.625rem;
|
|
10
|
+
--ard-hex-input-font-size: var(--ard-form-field-font-size, 1rem);
|
|
11
|
+
--ard-hex-input-font-size-compact: var(--ard-form-field-font-size-compact, 0.875rem);
|
|
12
|
+
--ard-hex-input-line-height: 1.25;
|
|
13
|
+
--ard-hex-input-line-height-compact: 1;
|
|
14
|
+
--ard-hex-input-font-weight: 400;
|
|
15
|
+
--ard-hex-input-padding: var(--ard-form-field-padding, 0 0.375rem);
|
|
16
|
+
--ard-hex-input-padding-compact: var(--ard-form-field-padding-compact, 0 0.375rem);
|
|
17
|
+
--ard-hex-input-color: #{ARD.$text};
|
|
18
|
+
--ard-hex-input-placeholder-color: #{ARD.$text};
|
|
19
|
+
--ard-hex-input-placeholder-opacity: 60%;
|
|
20
|
+
|
|
21
|
+
--ard-hex-input-min-width: 10rem;
|
|
22
|
+
--ard-hex-input-max-width: 100%;
|
|
23
|
+
--ard-hex-input-hash-margin: 0 0 -0.5rem 0;
|
|
24
|
+
--ard-hex-input-hash-color: #{ARD.$text};
|
|
25
|
+
--ard-hex-input-hash-opacity: 70%;
|
|
26
|
+
}
|
|
27
|
+
|
|
6
28
|
.ard-hex-input {
|
|
7
|
-
@include inputMixin.genericInput(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
29
|
+
@include inputMixin.genericInput(
|
|
30
|
+
var(--ard-autocomplete-input-height, var(--ard-form-field-height, 2.3125rem)),
|
|
31
|
+
var(--ard-autocomplete-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
|
|
32
|
+
var(--ard-autocomplete-input-gap, 0.625rem),
|
|
33
|
+
var(--ard-autocomplete-input-font-size, var(--ard-form-field-font-size, 1rem)),
|
|
34
|
+
var(--ard-autocomplete-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
|
|
35
|
+
var(--ard-autocomplete-input-line-height, 1.25),
|
|
36
|
+
var(--ard-autocomplete-input-line-height-compact, 1),
|
|
37
|
+
var(--ard-autocomplete-input-font-weight, 400),
|
|
38
|
+
var(--ard-autocomplete-input-padding, var(--ard-form-field-padding, 0 0.375rem)),
|
|
39
|
+
var(--ard-autocomplete-input-padding-compact, var(--ard-form-field-padding-compact, 0 0.375rem)),
|
|
40
|
+
var(--ard-autocomplete-input-color, #{ARD.$text}),
|
|
41
|
+
var(--ard-autocomplete-input-placeholder-color, #{ARD.$text}),
|
|
42
|
+
var(--ard-autocomplete-input-placeholder-opacity, 60%)
|
|
43
|
+
);
|
|
44
|
+
min-width: var(--ard-hex-input-min-width, 10rem);
|
|
45
|
+
max-width: var(--ard-hex-input-max-width, 100%);
|
|
11
46
|
|
|
12
47
|
@include CB.clearButton();
|
|
13
48
|
|
|
@@ -18,9 +53,9 @@
|
|
|
18
53
|
}
|
|
19
54
|
|
|
20
55
|
.ard-hash-container {
|
|
21
|
-
margin
|
|
22
|
-
color: ARD.$
|
|
23
|
-
opacity: 70
|
|
56
|
+
margin: var(--ard-hex-input-hash-margin, 0 0 -0.5rem 0);
|
|
57
|
+
color: var(--ard-hex-input-hash-color, #{ARD.$text});
|
|
58
|
+
opacity: var(--ard-hex-input-hash-opacity, 70%);
|
|
24
59
|
user-select: none;
|
|
25
60
|
font-family: var(--ard-font-family-mono);
|
|
26
61
|
}
|
|
@@ -1,11 +1,45 @@
|
|
|
1
1
|
@use './shared' as inputMixin;
|
|
2
2
|
@use '../mixins' as defaultMixins;
|
|
3
3
|
@use '../clear-button' as CB;
|
|
4
|
+
@use '../../variables' as ARD;
|
|
5
|
+
|
|
6
|
+
:root {
|
|
7
|
+
--ard-input-height: var(--ard-form-field-height, 2.3125rem);
|
|
8
|
+
--ard-input-height-compact: var(--ard-form-field-height-compact, 1.6875rem);
|
|
9
|
+
--ard-input-gap: 0.625rem;
|
|
10
|
+
--ard-input-font-size: var(--ard-form-field-font-size, 1rem);
|
|
11
|
+
--ard-input-font-size-compact: var(--ard-form-field-font-size-compact, 0.875rem);
|
|
12
|
+
--ard-input-line-height: 1.25;
|
|
13
|
+
--ard-input-line-height-compact: 1;
|
|
14
|
+
--ard-input-font-weight: 400;
|
|
15
|
+
--ard-input-padding: var(--ard-form-field-padding, 0 0.375rem);
|
|
16
|
+
--ard-input-padding-compact: var(--ard-form-field-padding-compact, 0 0.375rem);
|
|
17
|
+
--ard-input-color: #{ARD.$text};
|
|
18
|
+
--ard-input-placeholder-color: #{ARD.$text};
|
|
19
|
+
--ard-input-placeholder-opacity: 60%;
|
|
20
|
+
|
|
21
|
+
--ard-input-min-width: 10rem;
|
|
22
|
+
--ard-input-max-width: 100%;
|
|
23
|
+
}
|
|
4
24
|
|
|
5
25
|
.ard-input {
|
|
6
|
-
@include inputMixin.genericInput(
|
|
7
|
-
|
|
8
|
-
|
|
26
|
+
@include inputMixin.genericInput(
|
|
27
|
+
var(--ard-input-height, var(--ard-form-field-height, 2.3125rem)),
|
|
28
|
+
var(--ard-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
|
|
29
|
+
var(--ard-input-gap, 0.625rem),
|
|
30
|
+
var(--ard-input-font-size, var(--ard-form-field-font-size, 1rem)),
|
|
31
|
+
var(--ard-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
|
|
32
|
+
var(--ard-input-line-height, 1.25),
|
|
33
|
+
var(--ard-input-line-height-compact, 1),
|
|
34
|
+
var(--ard-input-font-weight, 400),
|
|
35
|
+
var(--ard-input-padding, var(--ard-form-field-padding, 0 0.375rem)),
|
|
36
|
+
var(--ard-input-padding-compact, var(--ard-form-field-padding-compact, 0 0.375rem)),
|
|
37
|
+
var(--ard-input-color, #{ARD.$text}),
|
|
38
|
+
var(--ard-input-placeholder-color, #{ARD.$text}),
|
|
39
|
+
var(--ard-input-placeholder-opacity, 60%)
|
|
40
|
+
);
|
|
41
|
+
min-width: var(--ard-input-min-width, 10rem);
|
|
42
|
+
max-width: var(--ard-input-max-width, 100%);
|
|
9
43
|
|
|
10
44
|
@include CB.clearButton();
|
|
11
45
|
}
|
|
@@ -3,13 +3,21 @@
|
|
|
3
3
|
@use '../../variables' as ARD;
|
|
4
4
|
|
|
5
5
|
:root {
|
|
6
|
+
--ard-number-input-height: var(--ard-form-field-height, 2.3125rem);
|
|
7
|
+
--ard-number-input-height-compact: var(--ard-form-field-height-compact, 1.6875rem);
|
|
8
|
+
--ard-number-input-gap: 0.625rem;
|
|
9
|
+
--ard-number-input-font-size: var(--ard-form-field-font-size, 1rem);
|
|
10
|
+
--ard-number-input-font-size-compact: var(--ard-form-field-font-size-compact, 0.875rem);
|
|
11
|
+
--ard-number-input-line-height: 1.25;
|
|
12
|
+
--ard-number-input-line-height-compact: 1;
|
|
13
|
+
--ard-number-input-font-weight: 400;
|
|
14
|
+
--ard-number-input-padding: var(--ard-form-field-padding, 0 0.375rem);
|
|
15
|
+
--ard-number-input-padding-compact: var(--ard-form-field-padding-compact, 0 0.375rem);
|
|
16
|
+
--ard-number-input-color: #{ARD.$text};
|
|
17
|
+
--ard-number-input-placeholder-color: #{ARD.$text};
|
|
18
|
+
--ard-number-input-placeholder-opacity: 60%;
|
|
19
|
+
|
|
6
20
|
--ard-number-input-width: 9.5rem;
|
|
7
|
-
--ard-number-input-height: var(--ard-form-field-height);
|
|
8
|
-
--ard-number-input-height-compact: var(--ard-form-field-height-compact);
|
|
9
|
-
--ard-number-input-font-size: var(--ard-form-field-font-size);
|
|
10
|
-
--ard-number-input-font-size-compact: var(--ard-form-field-font-size-compact);
|
|
11
|
-
--ard-number-input-padding: var(--ard-form-field-padding);
|
|
12
|
-
--ard-number-input-padding-compact: var(--ard-form-field-padding-compact);
|
|
13
21
|
--ard-number-input-rounded-border-radius: 8px;
|
|
14
22
|
}
|
|
15
23
|
|
|
@@ -18,13 +26,25 @@ ard-number-input {
|
|
|
18
26
|
}
|
|
19
27
|
|
|
20
28
|
.ard-number-input {
|
|
21
|
-
@include inputMixin.genericInput(
|
|
29
|
+
@include inputMixin.genericInput(
|
|
30
|
+
var(--ard-number-input-height, var(--ard-form-field-height, 2.3125rem)),
|
|
31
|
+
var(--ard-number-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
|
|
32
|
+
var(--ard-number-input-gap, 0.625rem),
|
|
33
|
+
var(--ard-number-input-font-size, var(--ard-form-field-font-size, 1rem)),
|
|
34
|
+
var(--ard-number-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
|
|
35
|
+
var(--ard-number-input-line-height, 1.25),
|
|
36
|
+
var(--ard-number-input-line-height-compact, 1),
|
|
37
|
+
var(--ard-number-input-font-weight, 400),
|
|
38
|
+
var(--ard-number-input-padding, var(--ard-form-field-padding, 0 0.375rem)),
|
|
39
|
+
var(--ard-number-input-padding-compact, var(--ard-form-field-padding-compact, 0 0.375rem)),
|
|
40
|
+
var(--ard-number-input-color, #{ARD.$text}),
|
|
41
|
+
var(--ard-number-input-placeholder-color, #{ARD.$text}),
|
|
42
|
+
var(--ard-number-input-placeholder-opacity, 60%)
|
|
43
|
+
);
|
|
22
44
|
@include defaultMixins.formAppearances();
|
|
23
45
|
min-height: var(--ard-form-field-height, var(--ard-number-input-height, 2.3125rem));
|
|
24
|
-
height: var(--ard-form-field-height, var(--ard-number-input-height, 2.3125rem));
|
|
25
46
|
gap: 0;
|
|
26
47
|
width: 100%;
|
|
27
|
-
font-size: var(--ard-number-input-font-size, var(--ard-form-field-font-size, 1rem));
|
|
28
48
|
|
|
29
49
|
.ard-input-container {
|
|
30
50
|
height: 100%;
|
|
@@ -124,10 +144,6 @@ ard-number-input {
|
|
|
124
144
|
|
|
125
145
|
//! compact
|
|
126
146
|
&.ard-compact {
|
|
127
|
-
min-height: var(--ard-form-field-height-compact, var(--ard-number-input-height-compact, 1.6875rem));
|
|
128
|
-
height: var(--ard-form-field-height-compact, var(--ard-number-input-height-compact, 1.6875rem));
|
|
129
|
-
font-size: var(--ard-number-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.9375rem));
|
|
130
|
-
|
|
131
147
|
.ard-input-container {
|
|
132
148
|
padding: var(--ard-number-input-padding-compact, var(--ard-form-field-padding-compact, 0 0.375rem));
|
|
133
149
|
}
|
|
@@ -135,7 +151,7 @@ ard-number-input {
|
|
|
135
151
|
padding: var(--ard-number-input-padding-compact, var(--ard-form-field-padding-compact, 0 0.375rem));
|
|
136
152
|
}
|
|
137
153
|
.ard-quick-change-button {
|
|
138
|
-
min-width: var(--ard-
|
|
154
|
+
min-width: var(--ard-number-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem));
|
|
139
155
|
}
|
|
140
156
|
}
|
|
141
157
|
}
|
|
@@ -3,11 +3,57 @@
|
|
|
3
3
|
@use '../clear-button' as CB;
|
|
4
4
|
@use '../../variables' as ARD;
|
|
5
5
|
|
|
6
|
+
:root {
|
|
7
|
+
--ard-password-input-height: var(--ard-form-field-height, 2.3125rem);
|
|
8
|
+
--ard-password-input-height-compact: var(--ard-form-field-height-compact, 1.6875rem);
|
|
9
|
+
--ard-password-input-gap: 0.625rem;
|
|
10
|
+
--ard-password-input-font-size: var(--ard-form-field-font-size, 1rem);
|
|
11
|
+
--ard-password-input-font-size-compact: var(--ard-form-field-font-size-compact, 0.875rem);
|
|
12
|
+
--ard-password-input-line-height: 1.25;
|
|
13
|
+
--ard-password-input-line-height-compact: 1;
|
|
14
|
+
--ard-password-input-font-weight: 400;
|
|
15
|
+
--ard-password-input-padding: var(--ard-form-field-padding, 0 0.375rem);
|
|
16
|
+
--ard-password-input-padding-compact: var(--ard-form-field-padding-compact, 0 0.375rem);
|
|
17
|
+
--ard-password-input-color: #{ARD.$text};
|
|
18
|
+
--ard-password-input-placeholder-color: #{ARD.$text};
|
|
19
|
+
--ard-password-input-placeholder-opacity: 60%;
|
|
20
|
+
|
|
21
|
+
--ard-password-input-min-width: 10rem;
|
|
22
|
+
--ard-password-input-max-width: 100%;
|
|
23
|
+
--ard-password-input-disabled-opacity: 50%;
|
|
24
|
+
--ard-password-input-reveal-button-margin: 0.125rem;
|
|
25
|
+
--ard-password-input-reveal-button-font-size: 0.8rem;
|
|
26
|
+
--ard-password-input-reveal-button-height: calc(100% - 0.25rem);
|
|
27
|
+
--ard-password-input-reveal-button-width: unset;
|
|
28
|
+
--ard-password-input-reveal-button-aspect-ratio: 1;
|
|
29
|
+
--ard-password-input-reveal-button-padding: 0;
|
|
30
|
+
--ard-password-input-reveal-button-color: #{ARD.$text};
|
|
31
|
+
--ard-password-input-reveal-button-border-radius: 9999px;
|
|
32
|
+
--ard-password-input-reveal-button-border: none;
|
|
33
|
+
--ard-password-input-reveal-button-background: transparent;
|
|
34
|
+
--ard-password-input-reveal-button-hover-background: rgba(0, 0, 0, 4%);
|
|
35
|
+
--ard-password-input-reveal-button-focus-background: rgba(0, 0, 0, 12%);
|
|
36
|
+
--ard-password-input-reveal-button-active-background: rgba(0, 0, 0, 20%);
|
|
37
|
+
}
|
|
38
|
+
|
|
6
39
|
.ard-password-input {
|
|
7
|
-
@include inputMixin.genericInput(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
40
|
+
@include inputMixin.genericInput(
|
|
41
|
+
var(--ard-password-input-height, var(--ard-form-field-height, 2.3125rem)),
|
|
42
|
+
var(--ard-password-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
|
|
43
|
+
var(--ard-password-input-gap, 0.625rem),
|
|
44
|
+
var(--ard-password-input-font-size, var(--ard-form-field-font-size, 1rem)),
|
|
45
|
+
var(--ard-password-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
|
|
46
|
+
var(--ard-password-input-line-height, 1.25),
|
|
47
|
+
var(--ard-password-input-line-height-compact, 1),
|
|
48
|
+
var(--ard-password-input-font-weight, 400),
|
|
49
|
+
var(--ard-password-input-padding, var(--ard-form-field-padding, 0 0.375rem)),
|
|
50
|
+
var(--ard-password-input-padding-compact, var(--ard-form-field-padding-compact, 0 0.375rem)),
|
|
51
|
+
var(--ard-password-input-color, #{ARD.$text}),
|
|
52
|
+
var(--ard-password-input-placeholder-color, #{ARD.$text}),
|
|
53
|
+
var(--ard-password-input-placeholder-opacity, 60%)
|
|
54
|
+
);
|
|
55
|
+
min-width: var(--ard-password-input-min-width, 10rem);
|
|
56
|
+
max-width: var(--ard-password-input-max-width, 100%);
|
|
11
57
|
|
|
12
58
|
&.ard-revealable {
|
|
13
59
|
padding-right: 0;
|
|
@@ -17,27 +63,36 @@
|
|
|
17
63
|
display: flex;
|
|
18
64
|
align-items: center;
|
|
19
65
|
justify-content: center;
|
|
20
|
-
padding: 0;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
66
|
+
padding: var(--ard-password-input-reveal-button-padding, 0);
|
|
67
|
+
color: var(--ard-password-input-reveal-button-color, #{ARD.$text});
|
|
68
|
+
margin: var(--ard-password-input-reveal-button-margin, 0.125rem);
|
|
69
|
+
height: var(--ard-password-input-reveal-button-height, calc(100% - 0.25rem));
|
|
70
|
+
width: var(--ard-password-input-reveal-button-width, unset);
|
|
71
|
+
aspect-ratio: var(--ard-password-input-reveal-button-aspect-ratio, 1);
|
|
72
|
+
font-size: var(--ard-password-input-reveal-button-font-size, 0.8rem);
|
|
73
|
+
border-radius: var(--ard-password-input-reveal-button-border-radius, 9999px);
|
|
74
|
+
border: var(--ard-password-input-reveal-button-border, none);
|
|
75
|
+
background: var(--ard-password-input-reveal-button-background, transparent);
|
|
28
76
|
outline: none;
|
|
29
77
|
cursor: pointer;
|
|
30
78
|
|
|
31
79
|
transition: background-color 0.2s ARD.$timing-fn;
|
|
32
80
|
|
|
33
81
|
&:hover {
|
|
34
|
-
background: rgba(0, 0, 0, 4%);
|
|
82
|
+
background: var(--ard-password-input-reveal-button-hover-background, rgba(0, 0, 0, 4%));
|
|
35
83
|
}
|
|
36
84
|
&:focus {
|
|
37
|
-
background: rgba(0, 0, 0, 12%);
|
|
85
|
+
background: var(--ard-password-input-reveal-button-focus-background, rgba(0, 0, 0, 12%));
|
|
38
86
|
}
|
|
39
87
|
&:active {
|
|
40
|
-
background: rgba(0, 0, 0, 20%);
|
|
88
|
+
background: var(--ard-password-input-reveal-button-active-background, rgba(0, 0, 0, 20%));
|
|
41
89
|
}
|
|
42
90
|
}
|
|
43
91
|
}
|
|
92
|
+
//! disabled state
|
|
93
|
+
.ard-disabled {
|
|
94
|
+
.ard-password-input {
|
|
95
|
+
pointer-events: none;
|
|
96
|
+
opacity: var(--ard-password-input-disabled-opacity, 50%);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -1,12 +1,46 @@
|
|
|
1
1
|
@use './shared' as inputMixin;
|
|
2
2
|
@use '../mixins' as defaultMixins;
|
|
3
3
|
@use '../clear-button' as CB;
|
|
4
|
+
@use '../../variables' as ARD;
|
|
5
|
+
|
|
6
|
+
:root {
|
|
7
|
+
--ard-search-bar-height: var(--ard-form-field-height, 2.3125rem);
|
|
8
|
+
--ard-search-bar-height-compact: var(--ard-form-field-height-compact, 1.6875rem);
|
|
9
|
+
--ard-search-bar-gap: 0.625rem;
|
|
10
|
+
--ard-search-bar-font-size: var(--ard-form-field-font-size, 1rem);
|
|
11
|
+
--ard-search-bar-font-size-compact: var(--ard-form-field-font-size-compact, 0.875rem);
|
|
12
|
+
--ard-search-bar-line-height: 1.25;
|
|
13
|
+
--ard-search-bar-line-height-compact: 1;
|
|
14
|
+
--ard-search-bar-font-weight: 400;
|
|
15
|
+
--ard-search-bar-padding: var(--ard-form-field-padding, 0 0.375rem);
|
|
16
|
+
--ard-search-bar-padding-compact: var(--ard-form-field-padding-compact, 0 0.375rem);
|
|
17
|
+
--ard-search-bar-color: #{ARD.$text};
|
|
18
|
+
--ard-search-bar-placeholder-color: #{ARD.$text};
|
|
19
|
+
--ard-search-bar-placeholder-opacity: 60%;
|
|
20
|
+
|
|
21
|
+
--ard-search-bar-min-width: 10rem;
|
|
22
|
+
--ard-search-bar-max-width: 100%;
|
|
23
|
+
--ard-search-bar-disabled-opacity: 50%;
|
|
24
|
+
}
|
|
4
25
|
|
|
5
26
|
.ard-search-bar {
|
|
6
|
-
@include inputMixin.genericInput(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
27
|
+
@include inputMixin.genericInput(
|
|
28
|
+
var(--ard-search-bar-height, var(--ard-form-field-height, 2.3125rem)),
|
|
29
|
+
var(--ard-search-bar-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
|
|
30
|
+
var(--ard-search-bar-gap, 0.625rem),
|
|
31
|
+
var(--ard-search-bar-font-size, var(--ard-form-field-font-size, 1rem)),
|
|
32
|
+
var(--ard-search-bar-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
|
|
33
|
+
var(--ard-search-bar-line-height, 1.25),
|
|
34
|
+
var(--ard-search-bar-line-height-compact, 1),
|
|
35
|
+
var(--ard-search-bar-font-weight, 400),
|
|
36
|
+
var(--ard-search-bar-padding, var(--ard-form-field-padding, 0 0.375rem)),
|
|
37
|
+
var(--ard-search-bar-padding-compact, var(--ard-form-field-padding-compact, 0 0.375rem)),
|
|
38
|
+
var(--ard-search-bar-color, #{ARD.$text}),
|
|
39
|
+
var(--ard-search-bar-placeholder-color, #{ARD.$text}),
|
|
40
|
+
var(--ard-search-bar-placeholder-opacity, 60%)
|
|
41
|
+
);
|
|
42
|
+
min-width: var(--ard-search-bar-min-width, 10rem);
|
|
43
|
+
max-width: var(--ard-search-bar-max-width, 100%);
|
|
10
44
|
|
|
11
45
|
@include CB.clearButton();
|
|
12
46
|
}
|
|
@@ -14,6 +48,6 @@
|
|
|
14
48
|
.ard-disabled {
|
|
15
49
|
.ard-search-bar {
|
|
16
50
|
pointer-events: none;
|
|
17
|
-
opacity: 50
|
|
51
|
+
opacity: var(--ard-search-bar-disabled-opacity, 50%);
|
|
18
52
|
}
|
|
19
53
|
}
|