@ardium-ui/ui 3.2.7 → 3.3.0-alpha.10
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/esm2022/lib/_internal/boolean-component.mjs +1 -1
- package/esm2022/lib/_internal/focusable-component.mjs +6 -6
- package/esm2022/lib/_internal/form-field-component.mjs +33 -0
- package/esm2022/lib/_internal/item-storages/dropdown-item-storage.mjs +4 -1
- package/esm2022/lib/_internal/item-storages/simple-item-storage.mjs +5 -2
- package/esm2022/lib/_internal/ngmodel-component.mjs +61 -6
- package/esm2022/lib/_internal/public-api.mjs +2 -0
- package/esm2022/lib/_internal/selectable-list-component.mjs +10 -12
- package/esm2022/lib/checkbox/checkbox.component.mjs +2 -3
- package/esm2022/lib/checkbox-list/checkbox-list.component.mjs +2 -4
- package/esm2022/lib/file-inputs/file-input/file-input.component.mjs +3 -3
- package/esm2022/lib/file-inputs/file-input-base.mjs +3 -4
- package/esm2022/lib/form-field/error/error.component.mjs +17 -0
- package/esm2022/lib/form-field/error/error.directive.mjs +17 -0
- package/esm2022/lib/form-field/form-field.component.mjs +33 -0
- package/esm2022/lib/form-field/form-field.defaults.mjs +15 -0
- package/esm2022/lib/form-field/form-field.module.mjs +44 -0
- package/esm2022/lib/form-field/hint/hint.component.mjs +17 -0
- package/esm2022/lib/form-field/hint/hint.directive.mjs +30 -0
- package/esm2022/lib/form-field/horizontal-form-field.component.mjs +33 -0
- package/esm2022/lib/form-field/index.mjs +9 -0
- package/esm2022/lib/form-field/label/label.component.mjs +21 -0
- package/esm2022/lib/form-field-frame/form-field-frame.component.mjs +14 -7
- package/esm2022/lib/inputs/_simple-input-base.mjs +4 -4
- package/esm2022/lib/inputs/digit-input/digit-input.component.mjs +34 -10
- package/esm2022/lib/inputs/digit-input/digit-input.defaults.mjs +3 -3
- package/esm2022/lib/inputs/digit-input/digit-input.model.mjs +27 -13
- package/esm2022/lib/inputs/digit-input/digit-input.types.mjs +1 -1
- package/esm2022/lib/inputs/digit-input/digit-input.utils.mjs +1 -1
- package/esm2022/lib/inputs/hex-input/hex-input.component.mjs +13 -5
- package/esm2022/lib/inputs/hex-input/hex-input.defaults.mjs +3 -3
- package/esm2022/lib/inputs/input/input.component.mjs +12 -3
- package/esm2022/lib/inputs/number-input/number-input.component.mjs +15 -7
- package/esm2022/lib/inputs/number-input/number-input.defaults.mjs +3 -3
- package/esm2022/lib/inputs/password-input/password-input.component.mjs +15 -5
- package/esm2022/lib/inputs/password-input/password-input.defaults.mjs +3 -3
- package/esm2022/lib/inputs/simple-input/simple-input.component.mjs +12 -3
- package/esm2022/lib/inputs/simple-input/simple-input.defaults.mjs +3 -3
- package/esm2022/lib/radio/radio/radio.component.mjs +77 -6
- package/esm2022/lib/radio/radio/radio.defaults.mjs +3 -3
- package/esm2022/lib/radio/radio-group.component.mjs +3 -3
- package/esm2022/lib/segment/segment.component.mjs +26 -4
- package/esm2022/lib/select/select.component.mjs +16 -8
- package/esm2022/lib/select/select.defaults.mjs +3 -3
- package/esm2022/lib/slide-toggle/slide-toggle.component.mjs +1 -1
- package/esm2022/lib/slider/range-slider/range-slider.component.mjs +2 -1
- package/esm2022/lib/table/table.component.mjs +1 -1
- package/esm2022/lib/table-pagination/table-pagination.component.mjs +1 -1
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/ardium-ui-ui.mjs +545 -95
- package/fesm2022/ardium-ui-ui.mjs.map +1 -1
- package/lib/_internal/focusable-component.d.ts +3 -3
- package/lib/_internal/form-field-component.d.ts +20 -0
- package/lib/_internal/item-storages/simple-item-storage.d.ts +1 -0
- package/lib/_internal/ngmodel-component.d.ts +17 -3
- package/lib/_internal/public-api.d.ts +3 -0
- package/lib/_internal/selectable-list-component.d.ts +3 -4
- package/lib/checkbox/checkbox.component.d.ts +1 -2
- package/lib/checkbox-list/checkbox-list.component.d.ts +1 -2
- package/lib/file-inputs/file-input-base.d.ts +1 -2
- package/lib/form-field/error/error.component.d.ts +6 -0
- package/lib/form-field/error/error.directive.d.ts +5 -0
- package/lib/form-field/form-field.component.d.ts +19 -0
- package/lib/form-field/form-field.defaults.d.ts +8 -0
- package/lib/form-field/form-field.module.d.ts +14 -0
- package/lib/form-field/hint/hint.component.d.ts +6 -0
- package/lib/form-field/hint/hint.directive.d.ts +8 -0
- package/lib/form-field/horizontal-form-field.component.d.ts +19 -0
- package/lib/form-field/index.d.ts +8 -0
- package/lib/form-field/label/label.component.d.ts +8 -0
- package/lib/form-field-frame/form-field-frame.component.d.ts +4 -2
- package/lib/inputs/_simple-input-base.d.ts +3 -3
- package/lib/inputs/digit-input/digit-input.component.d.ts +9 -4
- package/lib/inputs/digit-input/digit-input.defaults.d.ts +2 -2
- package/lib/inputs/digit-input/digit-input.model.d.ts +4 -1
- package/lib/inputs/digit-input/digit-input.types.d.ts +1 -0
- package/lib/inputs/digit-input/digit-input.utils.d.ts +2 -0
- package/lib/inputs/hex-input/hex-input.component.d.ts +2 -2
- package/lib/inputs/hex-input/hex-input.defaults.d.ts +2 -2
- package/lib/inputs/number-input/number-input.component.d.ts +2 -2
- package/lib/inputs/number-input/number-input.defaults.d.ts +2 -2
- package/lib/inputs/password-input/password-input.component.d.ts +2 -2
- package/lib/inputs/password-input/password-input.defaults.d.ts +2 -2
- package/lib/radio/radio/radio.component.d.ts +41 -3
- package/lib/radio/radio/radio.defaults.d.ts +2 -2
- package/lib/radio/radio-group.component.d.ts +1 -2
- package/lib/select/select.component.d.ts +3 -4
- package/lib/select/select.defaults.d.ts +2 -2
- package/package.json +1 -1
- package/prebuilt-themes/default/chips.css.map +1 -1
- package/prebuilt-themes/default/core.css +3 -1
- package/prebuilt-themes/default/core.css.map +1 -1
- package/prebuilt-themes/default/form-field-frame.css +23 -6
- package/prebuilt-themes/default/form-field-frame.css.map +1 -1
- package/prebuilt-themes/default/form-field.css +98 -0
- package/prebuilt-themes/default/form-field.css.map +1 -0
- package/prebuilt-themes/default/inputs/color-input.css +0 -1
- package/prebuilt-themes/default/inputs/color-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/digit-input.css +72 -5
- package/prebuilt-themes/default/inputs/digit-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/file-input.css +0 -6
- package/prebuilt-themes/default/inputs/file-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/hex-input.css +0 -1
- package/prebuilt-themes/default/inputs/hex-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/input.css +0 -6
- package/prebuilt-themes/default/inputs/input.css.map +1 -1
- package/prebuilt-themes/default/inputs/number-input.css +33 -18
- package/prebuilt-themes/default/inputs/number-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/password-input.css +0 -1
- package/prebuilt-themes/default/inputs/password-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/search-bar.css +0 -1
- package/prebuilt-themes/default/inputs/search-bar.css.map +1 -1
- package/prebuilt-themes/default/inputs/simple-input.css +0 -6
- package/prebuilt-themes/default/inputs/simple-input.css.map +1 -1
- package/prebuilt-themes/default/segment.css +18 -1
- package/prebuilt-themes/default/segment.css.map +1 -1
- package/public-api.d.ts +2 -0
- package/themes/default/_mixins.scss +83 -64
- package/themes/default/core.scss +102 -99
- package/themes/default/form-field-frame.scss +79 -78
- package/themes/default/form-field.scss +100 -0
- package/themes/default/inputs/_shared.scss +50 -51
- package/themes/default/inputs/digit-input.scss +101 -56
- package/themes/default/inputs/file-input.scss +0 -6
- package/themes/default/inputs/input.scss +1 -7
- package/themes/default/inputs/number-input.scss +131 -121
- package/themes/default/inputs/simple-input.scss +1 -8
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
@use '../variables' as ARD;
|
|
2
|
+
|
|
3
|
+
ard-form-field,
|
|
4
|
+
ard-horizontal-form-field {
|
|
5
|
+
display: block;
|
|
6
|
+
width: 100%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.ard-form-field,
|
|
10
|
+
.ard-horizontal-form-field {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
|
|
14
|
+
.ard-label {
|
|
15
|
+
padding: 0.25rem 0 0.125rem 0.125rem;
|
|
16
|
+
font-size: 0.9375rem;
|
|
17
|
+
font-weight: 500;
|
|
18
|
+
}
|
|
19
|
+
.ard-form-field__hints {
|
|
20
|
+
padding: 0.125rem 0 0.25rem 0.125rem;
|
|
21
|
+
font-size: 0.8125rem;
|
|
22
|
+
line-height: 1.1;
|
|
23
|
+
|
|
24
|
+
&.ard-form-field__reserve-hint-line {
|
|
25
|
+
box-sizing: content-box;
|
|
26
|
+
min-height: 1.1em;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
.ard-form-field__hints-right {
|
|
30
|
+
> * {
|
|
31
|
+
padding-left: 0.25rem;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
.ard-hint,
|
|
35
|
+
.ard-error {
|
|
36
|
+
font-size: 1em;
|
|
37
|
+
line-height: 1.1;
|
|
38
|
+
display: block;
|
|
39
|
+
height: 1.1em;
|
|
40
|
+
}
|
|
41
|
+
.ard-hint {
|
|
42
|
+
color: ARD.$text2;
|
|
43
|
+
}
|
|
44
|
+
.ard-error {
|
|
45
|
+
color: ARD.$danger700;
|
|
46
|
+
overflow: hidden;
|
|
47
|
+
animation: errorAppear 0.25s ARD.$timing-fn forwards;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&.ard-form-field__with-error {
|
|
51
|
+
.ard-label {
|
|
52
|
+
color: ARD.$danger700;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
&.ard-form-field__is-success {
|
|
56
|
+
.ard-label {
|
|
57
|
+
color: ARD.$success700;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
&.ard-form-field__control-disabled {
|
|
61
|
+
.ard-label {
|
|
62
|
+
opacity: 40%;
|
|
63
|
+
}
|
|
64
|
+
.ard-form-field__hints {
|
|
65
|
+
opacity: 50%;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
.ard-horizontal-form-field {
|
|
70
|
+
align-items: flex-start;
|
|
71
|
+
justify-content: stretch;
|
|
72
|
+
flex-direction: row;
|
|
73
|
+
gap: 0.5rem;
|
|
74
|
+
|
|
75
|
+
.ard-form-field__label-container {
|
|
76
|
+
width: var(--ard-horizontal-form-field-label-width, 12rem);
|
|
77
|
+
height: 2.3125rem;
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
justify-content: var(--ard-horizontal-form-field-label-align, flex-start);
|
|
81
|
+
}
|
|
82
|
+
.ard-form-field__non-label {
|
|
83
|
+
flex-grow: 1;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&:has(.ard-form-field__input .ard-compact) {
|
|
87
|
+
.ard-form-field__label-container {
|
|
88
|
+
height: 1.5625rem;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@keyframes errorAppear {
|
|
94
|
+
from {
|
|
95
|
+
height: 0;
|
|
96
|
+
}
|
|
97
|
+
to {
|
|
98
|
+
height: 1.1em;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -1,51 +1,50 @@
|
|
|
1
|
-
@use '../../variables' as ARD;
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Should be applied to the first element in the component's template.
|
|
5
|
-
*/
|
|
6
|
-
@mixin genericInput() {
|
|
7
|
-
position: relative;
|
|
8
|
-
font-family: 'Roboto', sans-serif;
|
|
9
|
-
display: flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
justify-content: stretch;
|
|
12
|
-
gap: 0.625em;
|
|
13
|
-
cursor: text;
|
|
14
|
-
box-sizing: border-box;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
overflow:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
1
|
+
@use '../../variables' as ARD;
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Should be applied to the first element in the component's template.
|
|
5
|
+
*/
|
|
6
|
+
@mixin genericInput() {
|
|
7
|
+
position: relative;
|
|
8
|
+
font-family: 'Roboto', sans-serif;
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: stretch;
|
|
12
|
+
gap: 0.625em;
|
|
13
|
+
cursor: text;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
font-size: 1rem;
|
|
16
|
+
line-height: 1.25em;
|
|
17
|
+
|
|
18
|
+
.ard-input-container {
|
|
19
|
+
flex-grow: 1;
|
|
20
|
+
text-size-adjust: 100%;
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
|
|
24
|
+
.ard-placeholder {
|
|
25
|
+
font: inherit;
|
|
26
|
+
opacity: 60%;
|
|
27
|
+
white-space: nowrap;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
text-overflow: ellipsis;
|
|
30
|
+
max-width: 100%;
|
|
31
|
+
pointer-events: none;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
input {
|
|
35
|
+
border: none;
|
|
36
|
+
background: transparent;
|
|
37
|
+
outline: none;
|
|
38
|
+
font: inherit;
|
|
39
|
+
padding: 0;
|
|
40
|
+
display: block;
|
|
41
|
+
width: 100%;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
//! compact
|
|
45
|
+
&.ard-compact {
|
|
46
|
+
height: 1.5625em;
|
|
47
|
+
font-size: 0.85em;
|
|
48
|
+
line-height: 1;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -1,56 +1,101 @@
|
|
|
1
|
-
@use '../coloring' as CM;
|
|
2
|
-
@use '../../variables' as ARD;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
font-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
.ard-digit-
|
|
12
|
-
.ard-digit-
|
|
13
|
-
.ard-digit-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
1
|
+
@use '../coloring' as CM;
|
|
2
|
+
@use '../../variables' as ARD;
|
|
3
|
+
@use '../mixins' as defaultMixins;
|
|
4
|
+
|
|
5
|
+
ard-digit-input {
|
|
6
|
+
font-family: 'Roboto', sans-serif;
|
|
7
|
+
font-weight: 500;
|
|
8
|
+
color: ARD.$text;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.ard-digit-input,
|
|
12
|
+
.ard-digit-input__item,
|
|
13
|
+
.ard-digit-input__input,
|
|
14
|
+
.ard-digit-input__static {
|
|
15
|
+
font: inherit;
|
|
16
|
+
color: inherit;
|
|
17
|
+
}
|
|
18
|
+
.ard-digit-input {
|
|
19
|
+
@include defaultMixins.formAppearances();
|
|
20
|
+
display: flex;
|
|
21
|
+
gap: 0.375em;
|
|
22
|
+
|
|
23
|
+
.ard-digit-input__item {
|
|
24
|
+
height: max-content;
|
|
25
|
+
display: flex;
|
|
26
|
+
height: 2.0625em;
|
|
27
|
+
box-sizing: border-box;
|
|
28
|
+
|
|
29
|
+
&.ard-digit-input__item-with-input {
|
|
30
|
+
width: 2.0625em;
|
|
31
|
+
}
|
|
32
|
+
.ard-digit-input__input {
|
|
33
|
+
width: 100%;
|
|
34
|
+
height: 100%;
|
|
35
|
+
box-sizing: border-box;
|
|
36
|
+
text-align: center;
|
|
37
|
+
caret-color: ARD.$text3;
|
|
38
|
+
background: var(--ard-appearance-background);
|
|
39
|
+
border: var(--ard-appearance-border);
|
|
40
|
+
border-radius: var(--ard-variant-border-radius);
|
|
41
|
+
transition: border-color 0.15s ARD.$timing-fn, background-color 0.15s ARD.$timing-fn;
|
|
42
|
+
|
|
43
|
+
&::placeholder {
|
|
44
|
+
color: ARD.$text3;
|
|
45
|
+
opacity: 60%;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:not(.ard-digit-input__input-empty) {
|
|
49
|
+
caret-color: transparent;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
.ard-digit-input__static {
|
|
53
|
+
width: max-content;
|
|
54
|
+
white-space: nowrap;
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
&.ard-shape-square {
|
|
60
|
+
.ard-digit-input__item {
|
|
61
|
+
height: 2.0625em;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
&.ard-shape-rectangle {
|
|
65
|
+
.ard-digit-input__item {
|
|
66
|
+
height: 2.0625em * 1.3;
|
|
67
|
+
|
|
68
|
+
.ard-digit-input__input {
|
|
69
|
+
font-size: 1.2em;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&.ard-is-success {
|
|
75
|
+
.ard-digit-input__item .ard-digit-input__input {
|
|
76
|
+
border-color: ARD.$success500;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
&.ard-has-error {
|
|
80
|
+
.ard-digit-input__item .ard-digit-input__input {
|
|
81
|
+
background-color: ARD.$danger50;
|
|
82
|
+
border-color: ARD.$danger500;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&.ard-variant-rounded {
|
|
87
|
+
--ard-variant-border-radius: 0.25em;
|
|
88
|
+
}
|
|
89
|
+
&.ard-variant-pill {
|
|
90
|
+
--ard-variant-border-radius: 9999px;
|
|
91
|
+
}
|
|
92
|
+
&.ard-variant-sharp {
|
|
93
|
+
--ard-variant-border-radius: 0;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
.ard-disabled {
|
|
97
|
+
> .ard-digit-input {
|
|
98
|
+
opacity: 50%;
|
|
99
|
+
pointer-events: none;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -1,121 +1,131 @@
|
|
|
1
|
-
@use './shared' as inputMixin;
|
|
2
|
-
@use '../mixins' as defaultMixins;
|
|
3
|
-
@use '../../variables' as ARD;
|
|
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
|
-
|
|
33
|
-
|
|
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
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
1
|
+
@use './shared' as inputMixin;
|
|
2
|
+
@use '../mixins' as defaultMixins;
|
|
3
|
+
@use '../../variables' as ARD;
|
|
4
|
+
|
|
5
|
+
ard-number-input {
|
|
6
|
+
width: 9.5rem;
|
|
7
|
+
|
|
8
|
+
&:not(:has(.ard-quick-change-button)) {
|
|
9
|
+
width: 6rem;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.ard-number-input {
|
|
14
|
+
@include inputMixin.genericInput();
|
|
15
|
+
@include defaultMixins.formAppearances();
|
|
16
|
+
min-height: 2.1875rem;
|
|
17
|
+
height: 2.1875rem;
|
|
18
|
+
gap: 0;
|
|
19
|
+
width: 100%;
|
|
20
|
+
|
|
21
|
+
.ard-input-container {
|
|
22
|
+
height: 100%;
|
|
23
|
+
max-width: 100%;
|
|
24
|
+
|
|
25
|
+
& > input {
|
|
26
|
+
width: 100%;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.ard-quick-change-button {
|
|
31
|
+
position: relative;
|
|
32
|
+
|
|
33
|
+
.ard-button {
|
|
34
|
+
height: 100%;
|
|
35
|
+
aspect-ratio: 1;
|
|
36
|
+
padding: 0;
|
|
37
|
+
border-color: var(--ard-appearance-border-color);
|
|
38
|
+
display: flex;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
margin: 0;
|
|
41
|
+
}
|
|
42
|
+
&.ard-disabled .ard-focus-overlay {
|
|
43
|
+
opacity: 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&.decrement {
|
|
47
|
+
left: 1px;
|
|
48
|
+
|
|
49
|
+
.ard-button {
|
|
50
|
+
border-top-right-radius: 0;
|
|
51
|
+
border-bottom-right-radius: 0;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
&.increment {
|
|
55
|
+
right: 1px;
|
|
56
|
+
|
|
57
|
+
.ard-button {
|
|
58
|
+
border-top-left-radius: 0;
|
|
59
|
+
border-bottom-left-radius: 0;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
//! variants
|
|
65
|
+
&.ard-variant-rounded {
|
|
66
|
+
border-radius: 8px;
|
|
67
|
+
|
|
68
|
+
&.ard-quick-change-false {
|
|
69
|
+
.ard-input-container {
|
|
70
|
+
border-radius: 8px;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
&.ard-variant-sharp {
|
|
75
|
+
border-radius: 0;
|
|
76
|
+
}
|
|
77
|
+
&.ard-variant-pill {
|
|
78
|
+
border-radius: 9999px;
|
|
79
|
+
|
|
80
|
+
.ard-button {
|
|
81
|
+
border-radius: 9999px !important;
|
|
82
|
+
height: 30px;
|
|
83
|
+
width: 30px;
|
|
84
|
+
margin: 0 2px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&.ard-quick-change-false {
|
|
88
|
+
.ard-input-container {
|
|
89
|
+
border-radius: 9999px;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
//! variant-specific appearances
|
|
95
|
+
&.ard-variant-rounded,
|
|
96
|
+
&.ard-variant-sharp {
|
|
97
|
+
&:not(.ard-appearance-filled) .ard-input-container {
|
|
98
|
+
box-sizing: border-box;
|
|
99
|
+
background: var(--ard-appearance-background);
|
|
100
|
+
border: var(--ard-appearance-border);
|
|
101
|
+
}
|
|
102
|
+
&.ard-appearance-filled {
|
|
103
|
+
background: var(--ard-appearance-background);
|
|
104
|
+
border: var(--ard-appearance-border);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
&.ard-variant-pill {
|
|
108
|
+
background: var(--ard-appearance-background);
|
|
109
|
+
border: var(--ard-appearance-border);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
//! compact
|
|
113
|
+
&.ard-compact {
|
|
114
|
+
min-height: 1.6875rem;
|
|
115
|
+
height: 1.6875rem;
|
|
116
|
+
font-size: 0.925rem;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.ard-disabled {
|
|
121
|
+
> .ard-number-input {
|
|
122
|
+
pointer-events: none;
|
|
123
|
+
opacity: 50%;
|
|
124
|
+
|
|
125
|
+
.ard-button .ard-focus-overlay {
|
|
126
|
+
opacity: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
background: ARD.$bg-f;
|
|
130
|
+
}
|
|
131
|
+
}
|