@ardium-ui/ui 5.0.0-alpha.1 → 5.0.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/fesm2022/ardium-ui-ui.mjs +210 -78
- 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/calendar.defaults.d.ts +1 -0
- package/lib/calendar/views/years-view/years-view.component.d.ts +1 -2
- package/lib/checkbox-list/checkbox-list.component.d.ts +4 -3
- 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 +3 -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/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 +26 -19
- package/lib/select/select.defaults.d.ts +6 -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/tab/tab.component.d.ts +2 -1
- package/lib/tabber/tabber.component.d.ts +3 -2
- 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 +6 -3
- package/prebuilt-themes/default/checkbox-list.css.map +1 -1
- package/prebuilt-themes/default/core.css +2 -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/number-input.css +5 -0
- 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 +6 -3
- package/themes/default/core.scss +2 -0
- package/themes/default/form-field-frame.scss +10 -5
- package/themes/default/form-field.scss +27 -12
- package/themes/default/inputs/number-input.scss +6 -0
- package/themes/default/modal.scss +2 -1
- package/themes/default/radio.scss +5 -3
|
@@ -42,34 +42,44 @@ ard-horizontal-form-field {
|
|
|
42
42
|
min-height: 1.1em;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
.ard-form-field__hints-right
|
|
45
|
+
.ard-form-field__hints-right,
|
|
46
|
+
.ard-form-field__errors-right {
|
|
46
47
|
> * {
|
|
47
|
-
padding-left: 0.
|
|
48
|
+
padding-left: 0.5rem;
|
|
48
49
|
}
|
|
49
50
|
}
|
|
50
51
|
.ard-hint,
|
|
51
52
|
.ard-error {
|
|
52
53
|
font-size: 1em;
|
|
53
|
-
line-height: 1.
|
|
54
|
-
display:
|
|
55
|
-
height: 1.
|
|
54
|
+
line-height: 1.2;
|
|
55
|
+
display: inline-grid;
|
|
56
|
+
min-height: 1.2em;
|
|
56
57
|
}
|
|
57
58
|
.ard-hint {
|
|
58
59
|
color: ARD.$text2;
|
|
59
60
|
}
|
|
60
|
-
.ard-error
|
|
61
|
+
.ard-error:not(.ard-hint-error),
|
|
62
|
+
.ard-form-field__errors .ard-hint-error {
|
|
61
63
|
color: ARD.$danger700;
|
|
62
64
|
overflow: hidden;
|
|
65
|
+
}
|
|
66
|
+
.ard-error:not(.ard-hint-error) {
|
|
63
67
|
animation: errorAppear 0.25s ARD.$timing-fn forwards;
|
|
64
68
|
}
|
|
69
|
+
.ard-form-field__default-hint,
|
|
70
|
+
.ard-form-field__default-error {
|
|
71
|
+
gap: 0.375em;
|
|
72
|
+
}
|
|
65
73
|
|
|
66
74
|
&.ard-form-field__with-error {
|
|
67
|
-
.ard-label
|
|
75
|
+
.ard-label,
|
|
76
|
+
ard-label {
|
|
68
77
|
color: ARD.$danger700;
|
|
69
78
|
}
|
|
70
79
|
}
|
|
71
80
|
&.ard-form-field__is-success {
|
|
72
|
-
.ard-label
|
|
81
|
+
.ard-label,
|
|
82
|
+
ard-label {
|
|
73
83
|
color: ARD.$success700;
|
|
74
84
|
}
|
|
75
85
|
}
|
|
@@ -90,7 +100,8 @@ ard-horizontal-form-field {
|
|
|
90
100
|
|
|
91
101
|
.ard-form-field__label-container {
|
|
92
102
|
width: var(--ard-horizontal-form-field-label-width, 12rem);
|
|
93
|
-
|
|
103
|
+
min-width: var(--ard-horizontal-form-field-label-width, 12rem);
|
|
104
|
+
height: ARD.$form-field-height;
|
|
94
105
|
display: flex;
|
|
95
106
|
align-items: center;
|
|
96
107
|
justify-content: var(--ard-horizontal-form-field-label-align, flex-start);
|
|
@@ -101,16 +112,20 @@ ard-horizontal-form-field {
|
|
|
101
112
|
|
|
102
113
|
&:has(.ard-form-field__input .ard-compact) {
|
|
103
114
|
.ard-form-field__label-container {
|
|
104
|
-
height:
|
|
115
|
+
height: ARD.$form-field-compact-height;
|
|
105
116
|
}
|
|
106
117
|
}
|
|
107
118
|
}
|
|
108
119
|
|
|
120
|
+
ard-label {
|
|
121
|
+
display: flex;
|
|
122
|
+
}
|
|
123
|
+
|
|
109
124
|
@keyframes errorAppear {
|
|
110
125
|
from {
|
|
111
|
-
|
|
126
|
+
grid-template-rows: 0fr;
|
|
112
127
|
}
|
|
113
128
|
to {
|
|
114
|
-
|
|
129
|
+
grid-template-rows: 1fr;
|
|
115
130
|
}
|
|
116
131
|
}
|
|
@@ -24,11 +24,13 @@ ard-number-input {
|
|
|
24
24
|
|
|
25
25
|
& > input {
|
|
26
26
|
width: 100%;
|
|
27
|
+
padding: 0 0.5rem;
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
.ard-quick-change-button {
|
|
31
32
|
position: relative;
|
|
33
|
+
min-width: 2.1875rem;
|
|
32
34
|
|
|
33
35
|
.ard-button {
|
|
34
36
|
height: 100%;
|
|
@@ -114,6 +116,10 @@ ard-number-input {
|
|
|
114
116
|
min-height: 1.6875rem;
|
|
115
117
|
height: 1.6875rem;
|
|
116
118
|
font-size: 0.925rem;
|
|
119
|
+
|
|
120
|
+
.ard-quick-change-button {
|
|
121
|
+
min-width: 1.6875rem;
|
|
122
|
+
}
|
|
117
123
|
}
|
|
118
124
|
}
|
|
119
125
|
|
|
@@ -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
|
}
|