@ardium-ui/ui 5.0.0-alpha.1 → 5.0.0-alpha.11

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.
Files changed (87) hide show
  1. package/fesm2022/ardium-ui-ui.mjs +212 -78
  2. package/fesm2022/ardium-ui-ui.mjs.map +1 -1
  3. package/lib/_internal/disablable-component.d.ts +2 -1
  4. package/lib/_internal/focusable-component.d.ts +2 -1
  5. package/lib/_internal/form-field-component.d.ts +2 -1
  6. package/lib/_internal/selectable-list-component.d.ts +4 -3
  7. package/lib/badge/badge.directive.d.ts +3 -2
  8. package/lib/buttons/_button-base.d.ts +4 -3
  9. package/lib/buttons/button/button.component.d.ts +2 -1
  10. package/lib/buttons/icon-button/icon-button.component.d.ts +4 -3
  11. package/lib/calendar/calendar.component.d.ts +5 -4
  12. package/lib/calendar/calendar.defaults.d.ts +1 -0
  13. package/lib/calendar/views/years-view/years-view.component.d.ts +1 -2
  14. package/lib/checkbox-list/checkbox-list.component.d.ts +4 -3
  15. package/lib/chip/chip.component.d.ts +2 -1
  16. package/lib/chip/deletable-chip/deletable-chip.component.d.ts +2 -1
  17. package/lib/chip/selectable-chip/selectable-chip.component.d.ts +3 -2
  18. package/lib/dialog/dialog.component.d.ts +8 -7
  19. package/lib/divider/divider.component.d.ts +2 -1
  20. package/lib/dropdown-panel/dropdown-panel.component.d.ts +2 -1
  21. package/lib/file-inputs/file-input/file-input.component.d.ts +2 -1
  22. package/lib/file-inputs/file-input-base.d.ts +4 -4
  23. package/lib/form-field/error/error.directive.d.ts +5 -1
  24. package/lib/form-field/form-field-base.d.ts +9 -3
  25. package/lib/form-field/form-field-native-inputs.d.ts +3 -2
  26. package/lib/form-field/form-field.component.d.ts +1 -1
  27. package/lib/form-field/form-field.module.d.ts +5 -4
  28. package/lib/form-field/hint/hint.directive.d.ts +3 -2
  29. package/lib/form-field/hint-error/hint-error.component.d.ts +6 -0
  30. package/lib/form-field/hint-error/hint-error.directive.d.ts +9 -0
  31. package/lib/form-field/horizontal-form-field.component.d.ts +1 -1
  32. package/lib/form-field/index.d.ts +4 -0
  33. package/lib/form-field/label/label.component.d.ts +3 -2
  34. package/lib/form-field-frame/form-field-frame.component.d.ts +4 -3
  35. package/lib/icon/icon.component.d.ts +2 -1
  36. package/lib/inputs/_simple-input-base.d.ts +4 -2
  37. package/lib/inputs/autocomplete-input/autocomplete-input.component.d.ts +3 -2
  38. package/lib/inputs/date-input/date-input.component.d.ts +11 -9
  39. package/lib/inputs/date-input/date-input.defaults.d.ts +3 -0
  40. package/lib/inputs/digit-input/digit-input.component.d.ts +4 -3
  41. package/lib/inputs/hex-input/hex-input.component.d.ts +5 -3
  42. package/lib/inputs/number-input/number-input.component.d.ts +8 -7
  43. package/lib/inputs/password-input/password-input.component.d.ts +4 -3
  44. package/lib/kbd/kbd.component.d.ts +2 -1
  45. package/lib/kbd-shortcut/kbd-shortcut.component.d.ts +2 -1
  46. package/lib/modal/modal.component.d.ts +6 -5
  47. package/lib/option/option.component.d.ts +2 -1
  48. package/lib/progress-bar/progress-bar.component.d.ts +4 -3
  49. package/lib/progress-circle/progress-circle.component.d.ts +5 -4
  50. package/lib/segment/segment.component.d.ts +6 -5
  51. package/lib/select/select.component.d.ts +27 -19
  52. package/lib/select/select.defaults.d.ts +7 -0
  53. package/lib/select/select.utils.d.ts +2 -0
  54. package/lib/slider/abstract-slider.d.ts +8 -7
  55. package/lib/star/rating-display/rating-display.component.d.ts +2 -1
  56. package/lib/star/rating-input/rating-input.component.d.ts +2 -1
  57. package/lib/tabber/tab/tab.component.d.ts +2 -1
  58. package/lib/tabber/tabber.component.d.ts +3 -2
  59. package/lib/table/table.component.d.ts +16 -15
  60. package/lib/table-pagination/table-pagination.component.d.ts +4 -3
  61. package/lib/text-list/text-list.component.d.ts +2 -1
  62. package/package.json +1 -1
  63. package/prebuilt-themes/default/checkbox-list.css +6 -3
  64. package/prebuilt-themes/default/checkbox-list.css.map +1 -1
  65. package/prebuilt-themes/default/core.css +2 -0
  66. package/prebuilt-themes/default/core.css.map +1 -1
  67. package/prebuilt-themes/default/form-field-frame.css +6 -2
  68. package/prebuilt-themes/default/form-field-frame.css.map +1 -1
  69. package/prebuilt-themes/default/form-field.css +35 -13
  70. package/prebuilt-themes/default/form-field.css.map +1 -1
  71. package/prebuilt-themes/default/inputs/digit-input.css.map +1 -1
  72. package/prebuilt-themes/default/inputs/file-input.css.map +1 -1
  73. package/prebuilt-themes/default/inputs/number-input.css +5 -0
  74. package/prebuilt-themes/default/inputs/number-input.css.map +1 -1
  75. package/prebuilt-themes/default/modal.css +2 -1
  76. package/prebuilt-themes/default/modal.css.map +1 -1
  77. package/prebuilt-themes/default/radio.css +5 -3
  78. package/prebuilt-themes/default/radio.css.map +1 -1
  79. package/prebuilt-themes/default/stars.css.map +1 -1
  80. package/themes/_variables.scss +2 -0
  81. package/themes/default/checkbox-list.scss +6 -3
  82. package/themes/default/core.scss +2 -0
  83. package/themes/default/form-field-frame.scss +10 -5
  84. package/themes/default/form-field.scss +27 -12
  85. package/themes/default/inputs/number-input.scss +6 -0
  86. package/themes/default/modal.scss +2 -1
  87. 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.25rem;
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.1;
54
- display: block;
55
- height: 1.1em;
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
- height: 2.3125rem;
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: 1.5625rem;
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
- height: 0;
126
+ grid-template-rows: 0fr;
112
127
  }
113
128
  to {
114
- height: 1.1em;
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
 
@@ -15,8 +15,9 @@
15
15
  .ard-modal-panel {
16
16
  padding: 1.25rem;
17
17
  padding-top: 1rem;
18
- background: ARD.$bg;
19
18
  max-width: calc(100vw - 4rem);
19
+ max-height: calc(100vh - 4rem);
20
+ background: ARD.$bg;
20
21
  position: relative;
21
22
  display: flex;
22
23
  flex-direction: column;
@@ -19,14 +19,16 @@ ard-radio {
19
19
  outline: none;
20
20
  font-size: 1em;
21
21
  display: flex;
22
- gap: 0.375em;
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
- height: 1.25em;
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: 2px solid ARD.$detail;
39
+ border: 0.125em solid ARD.$detail;
38
40
  border-radius: 9999px;
39
41
  transition: border-color 0.2s ARD.$timing-fn;
40
42
  }