@ardium-ui/ui 5.0.0-alpha.2 → 5.0.0-alpha.21
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 +387 -133
- package/fesm2022/ardium-ui-ui.mjs.map +1 -1
- package/lib/_internal/disablable-component.d.ts +2 -1
- package/lib/_internal/focusable-component.d.ts +2 -1
- package/lib/_internal/form-field-component.d.ts +2 -1
- package/lib/_internal/selectable-list-component.d.ts +4 -3
- package/lib/badge/badge.directive.d.ts +3 -2
- package/lib/buttons/_button-base.d.ts +4 -3
- package/lib/buttons/button/button.component.d.ts +2 -1
- package/lib/buttons/icon-button/icon-button.component.d.ts +4 -3
- package/lib/calendar/calendar.component.d.ts +5 -4
- package/lib/calendar/views/years-view/years-view.component.d.ts +1 -2
- package/lib/checkbox-list/checkbox-list.component.d.ts +9 -6
- package/lib/checkbox-list/checkbox-list.directives.d.ts +7 -0
- package/lib/checkbox-list/checkbox-list.module.d.ts +1 -1
- package/lib/chip/chip.component.d.ts +2 -1
- package/lib/chip/deletable-chip/deletable-chip.component.d.ts +2 -1
- package/lib/chip/selectable-chip/selectable-chip.component.d.ts +3 -2
- package/lib/dialog/dialog.component.d.ts +8 -7
- package/lib/divider/divider.component.d.ts +2 -1
- package/lib/dropdown-panel/dropdown-panel.component.d.ts +2 -1
- package/lib/file-inputs/file-input/file-input.component.d.ts +2 -1
- package/lib/file-inputs/file-input-base.d.ts +4 -4
- package/lib/form-field/error/error.directive.d.ts +5 -1
- package/lib/form-field/form-field-base.d.ts +9 -3
- package/lib/form-field/form-field-native-inputs.d.ts +3 -2
- package/lib/form-field/form-field.component.d.ts +1 -1
- package/lib/form-field/form-field.module.d.ts +5 -4
- package/lib/form-field/hint/hint.directive.d.ts +3 -2
- package/lib/form-field/hint-error/hint-error.component.d.ts +6 -0
- package/lib/form-field/hint-error/hint-error.directive.d.ts +9 -0
- package/lib/form-field/horizontal-form-field.component.d.ts +1 -1
- package/lib/form-field/index.d.ts +4 -0
- package/lib/form-field/label/label.component.d.ts +3 -2
- package/lib/form-field-frame/form-field-frame.component.d.ts +4 -3
- package/lib/icon/icon.component.d.ts +2 -1
- package/lib/inputs/_simple-input-base.d.ts +4 -2
- package/lib/inputs/autocomplete-input/autocomplete-input.component.d.ts +3 -2
- package/lib/inputs/date-input/date-input.component.d.ts +11 -9
- package/lib/inputs/date-input/date-input.defaults.d.ts +2 -0
- package/lib/inputs/digit-input/digit-input.component.d.ts +4 -3
- package/lib/inputs/hex-input/hex-input.component.d.ts +5 -3
- package/lib/inputs/number-input/number-input.component.d.ts +8 -7
- package/lib/inputs/number-input/number-input.defaults.d.ts +1 -0
- package/lib/inputs/password-input/password-input.component.d.ts +4 -3
- package/lib/kbd/kbd.component.d.ts +2 -1
- package/lib/kbd-shortcut/kbd-shortcut.component.d.ts +2 -1
- package/lib/modal/modal.component.d.ts +6 -5
- package/lib/option/option.component.d.ts +2 -1
- package/lib/progress-bar/progress-bar.component.d.ts +4 -3
- package/lib/progress-circle/progress-circle.component.d.ts +5 -4
- package/lib/segment/segment.component.d.ts +6 -5
- package/lib/select/select.component.d.ts +27 -19
- package/lib/select/select.defaults.d.ts +7 -0
- package/lib/select/select.utils.d.ts +2 -0
- package/lib/slider/abstract-slider.d.ts +8 -7
- package/lib/star/rating-display/rating-display.component.d.ts +2 -1
- package/lib/star/rating-input/rating-input.component.d.ts +2 -1
- package/lib/tabber/index.d.ts +2 -0
- package/lib/tabber/tab/tab.component.d.ts +13 -7
- package/lib/tabber/tabber.component.d.ts +26 -9
- package/lib/tabber/tabber.directives.d.ts +9 -0
- package/lib/tabber/tabber.module.d.ts +3 -2
- package/lib/tabber/tabber.types.d.ts +5 -0
- package/lib/table/table.component.d.ts +16 -15
- package/lib/table-pagination/table-pagination.component.d.ts +4 -3
- package/lib/text-list/text-list.component.d.ts +2 -1
- package/package.json +1 -1
- package/prebuilt-themes/default/checkbox-list.css +44 -18
- package/prebuilt-themes/default/checkbox-list.css.map +1 -1
- package/prebuilt-themes/default/chips.css +9 -4
- package/prebuilt-themes/default/chips.css.map +1 -1
- package/prebuilt-themes/default/core.css +6 -0
- package/prebuilt-themes/default/core.css.map +1 -1
- package/prebuilt-themes/default/form-field-frame.css +6 -2
- package/prebuilt-themes/default/form-field-frame.css.map +1 -1
- package/prebuilt-themes/default/form-field.css +35 -13
- package/prebuilt-themes/default/form-field.css.map +1 -1
- package/prebuilt-themes/default/inputs/digit-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/file-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/input.css +0 -1
- package/prebuilt-themes/default/inputs/input.css.map +1 -1
- package/prebuilt-themes/default/inputs/number-input.css +36 -13
- package/prebuilt-themes/default/inputs/number-input.css.map +1 -1
- package/prebuilt-themes/default/modal.css +2 -1
- package/prebuilt-themes/default/modal.css.map +1 -1
- package/prebuilt-themes/default/radio.css +5 -3
- package/prebuilt-themes/default/radio.css.map +1 -1
- package/prebuilt-themes/default/stars.css.map +1 -1
- package/themes/_variables.scss +2 -0
- package/themes/default/checkbox-list.scss +47 -21
- package/themes/default/chips.scss +11 -11
- package/themes/default/core.scss +6 -0
- package/themes/default/form-field-frame.scss +10 -5
- package/themes/default/form-field.scss +27 -12
- package/themes/default/inputs/input.scss +0 -1
- package/themes/default/inputs/number-input.scss +37 -14
- package/themes/default/modal.scss +2 -1
- package/themes/default/radio.scss +5 -3
|
@@ -2,33 +2,46 @@
|
|
|
2
2
|
@use '../mixins' as defaultMixins;
|
|
3
3
|
@use '../../variables' as ARD;
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
width: 9.5rem;
|
|
5
|
+
:root {
|
|
6
|
+
--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
|
+
--ard-number-input-rounded-border-radius: 8px;
|
|
14
|
+
}
|
|
7
15
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
16
|
+
ard-number-input {
|
|
17
|
+
width: var(--ard-number-input-width, 9.5rem);
|
|
11
18
|
}
|
|
12
19
|
|
|
13
20
|
.ard-number-input {
|
|
14
21
|
@include inputMixin.genericInput();
|
|
15
22
|
@include defaultMixins.formAppearances();
|
|
16
|
-
min-height: 2.
|
|
17
|
-
height: 2.
|
|
23
|
+
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));
|
|
18
25
|
gap: 0;
|
|
19
26
|
width: 100%;
|
|
27
|
+
font-size: var(--ard-number-input-font-size, var(--ard-form-field-font-size, 1rem));
|
|
20
28
|
|
|
21
29
|
.ard-input-container {
|
|
22
30
|
height: 100%;
|
|
23
31
|
max-width: 100%;
|
|
32
|
+
padding: var(--ard-number-input-padding, var(--ard-form-field-padding, 0 0.375rem));
|
|
24
33
|
|
|
25
34
|
& > input {
|
|
26
35
|
width: 100%;
|
|
27
36
|
}
|
|
28
37
|
}
|
|
38
|
+
.ard-placeholder {
|
|
39
|
+
padding: var(--ard-number-input-padding, var(--ard-form-field-padding, 0 0.375rem));
|
|
40
|
+
}
|
|
29
41
|
|
|
30
42
|
.ard-quick-change-button {
|
|
31
43
|
position: relative;
|
|
44
|
+
min-width: var(--ard-number-input-height, var(--ard-form-field-height, 2.3125rem));
|
|
32
45
|
|
|
33
46
|
.ard-button {
|
|
34
47
|
height: 100%;
|
|
@@ -63,11 +76,11 @@ ard-number-input {
|
|
|
63
76
|
|
|
64
77
|
//! variants
|
|
65
78
|
&.ard-variant-rounded {
|
|
66
|
-
border-radius: 8px;
|
|
79
|
+
border-radius: var(--ard-number-input-rounded-border-radius, 8px);
|
|
67
80
|
|
|
68
81
|
&.ard-quick-change-false {
|
|
69
82
|
.ard-input-container {
|
|
70
|
-
border-radius: 8px;
|
|
83
|
+
border-radius: var(--ard-number-input-rounded-border-radius, 8px);
|
|
71
84
|
}
|
|
72
85
|
}
|
|
73
86
|
}
|
|
@@ -79,8 +92,8 @@ ard-number-input {
|
|
|
79
92
|
|
|
80
93
|
.ard-button {
|
|
81
94
|
border-radius: 9999px !important;
|
|
82
|
-
|
|
83
|
-
|
|
95
|
+
width: var(--ard-number-input-height, var(--ard-form-field-height, 2.3125rem));
|
|
96
|
+
height: var(--ard-number-input-height, var(--ard-form-field-height, 2.3125rem));
|
|
84
97
|
margin: 0 2px;
|
|
85
98
|
}
|
|
86
99
|
|
|
@@ -111,9 +124,19 @@ ard-number-input {
|
|
|
111
124
|
|
|
112
125
|
//! compact
|
|
113
126
|
&.ard-compact {
|
|
114
|
-
min-height: 1.6875rem;
|
|
115
|
-
height: 1.6875rem;
|
|
116
|
-
font-size: 0.
|
|
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
|
+
.ard-input-container {
|
|
132
|
+
padding: var(--ard-number-input-padding-compact, var(--ard-form-field-padding-compact, 0 0.375rem));
|
|
133
|
+
}
|
|
134
|
+
.ard-placeholder {
|
|
135
|
+
padding: var(--ard-number-input-padding-compact, var(--ard-form-field-padding-compact, 0 0.375rem));
|
|
136
|
+
}
|
|
137
|
+
.ard-quick-change-button {
|
|
138
|
+
min-width: var(--ard-form-field-height-compact, var(--ard-number-input-height-compact, 1.6875rem));
|
|
139
|
+
}
|
|
117
140
|
}
|
|
118
141
|
}
|
|
119
142
|
|
|
@@ -19,14 +19,16 @@ ard-radio {
|
|
|
19
19
|
outline: none;
|
|
20
20
|
font-size: 1em;
|
|
21
21
|
display: flex;
|
|
22
|
-
|
|
22
|
+
align-items: center;
|
|
23
|
+
gap: 0.75rem;
|
|
23
24
|
padding: 0;
|
|
24
25
|
width: 100%;
|
|
25
26
|
|
|
26
27
|
> .ard-radio-circles {
|
|
27
28
|
position: relative;
|
|
28
29
|
width: 1.25em;
|
|
29
|
-
|
|
30
|
+
min-width: 1.25em;
|
|
31
|
+
aspect-ratio: 1;
|
|
30
32
|
|
|
31
33
|
> .ard-radio-outer-circle {
|
|
32
34
|
position: absolute;
|
|
@@ -34,7 +36,7 @@ ard-radio {
|
|
|
34
36
|
right: 0;
|
|
35
37
|
top: 0;
|
|
36
38
|
bottom: 0;
|
|
37
|
-
border:
|
|
39
|
+
border: 0.125em solid ARD.$detail;
|
|
38
40
|
border-radius: 9999px;
|
|
39
41
|
transition: border-color 0.2s ARD.$timing-fn;
|
|
40
42
|
}
|