@ardium-ui/ui 5.0.0-alpha.4 → 5.0.0-alpha.40

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 (216) hide show
  1. package/fesm2022/ardium-ui-ui.mjs +4120 -2316
  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/item-storages/dropdown-item-storage.d.ts +16 -18
  7. package/lib/_internal/item-storages/simple-item-storage.d.ts +15 -12
  8. package/lib/_internal/item-storages/simplest-item-storage.d.ts +1 -1
  9. package/lib/_internal/ngmodel-component.d.ts +1 -0
  10. package/lib/_internal/selectable-list-component.d.ts +6 -6
  11. package/lib/_internal/utils/date.utils.d.ts +16 -0
  12. package/lib/badge/badge.directive.d.ts +3 -2
  13. package/lib/buttons/_button-base.d.ts +12 -8
  14. package/lib/buttons/_button-base.defaults.d.ts +3 -2
  15. package/lib/buttons/button/button.component.d.ts +5 -5
  16. package/lib/buttons/button/button.defaults.d.ts +0 -2
  17. package/lib/buttons/button/button.directive.d.ts +17 -0
  18. package/lib/buttons/button/button.module.d.ts +3 -2
  19. package/lib/buttons/button/index.d.ts +1 -0
  20. package/lib/buttons/fab/fab.component.d.ts +3 -1
  21. package/lib/buttons/icon-button/icon-button.component.d.ts +6 -4
  22. package/lib/buttons/icon-button/icon-button.defaults.d.ts +2 -1
  23. package/lib/calendar/abstract-calendar.d.ts +127 -0
  24. package/lib/calendar/calendar.component.d.ts +8 -96
  25. package/lib/calendar/calendar.defaults.d.ts +12 -1
  26. package/lib/calendar/calendar.internal-directives.d.ts +24 -8
  27. package/lib/calendar/calendar.internal-types.d.ts +1 -0
  28. package/lib/calendar/calendar.module.d.ts +4 -9
  29. package/lib/calendar/calendar.types.d.ts +19 -5
  30. package/lib/calendar/index.d.ts +3 -0
  31. package/lib/calendar/range-calendar.component.d.ts +16 -0
  32. package/lib/calendar/range-calendar.directives.d.ts +51 -0
  33. package/lib/calendar/range-calendar.module.d.ts +10 -0
  34. package/lib/calendar/views/calendar-views.module.d.ts +13 -0
  35. package/lib/calendar/views/days-view/days-view.component.d.ts +20 -2
  36. package/lib/calendar/views/days-view/days-view.helpers.d.ts +2 -2
  37. package/lib/calendar/views/months-view/months-view.component.d.ts +15 -3
  38. package/lib/calendar/views/years-view/years-view.component.d.ts +15 -3
  39. package/lib/checkbox-list/checkbox-list.component.d.ts +9 -7
  40. package/lib/checkbox-list/checkbox-list.directives.d.ts +7 -0
  41. package/lib/checkbox-list/checkbox-list.module.d.ts +1 -1
  42. package/lib/chip/chip.component.d.ts +2 -1
  43. package/lib/chip/deletable-chip/deletable-chip.component.d.ts +2 -1
  44. package/lib/chip/selectable-chip/selectable-chip.component.d.ts +3 -2
  45. package/lib/dialog/dialog.component.d.ts +8 -7
  46. package/lib/divider/divider.component.d.ts +2 -1
  47. package/lib/dropdown-panel/dropdown-panel.component.d.ts +2 -1
  48. package/lib/file-inputs/file-input/file-input.component.d.ts +2 -1
  49. package/lib/file-inputs/file-input-base.d.ts +4 -5
  50. package/lib/form-field/error/error.directive.d.ts +3 -2
  51. package/lib/form-field/form-field-base.d.ts +6 -2
  52. package/lib/form-field/form-field-native-inputs.d.ts +3 -2
  53. package/lib/form-field/form-field.component.d.ts +1 -1
  54. package/lib/form-field/form-field.module.d.ts +5 -4
  55. package/lib/form-field/hint/hint.directive.d.ts +3 -2
  56. package/lib/form-field/hint-error/hint-error.component.d.ts +6 -0
  57. package/lib/form-field/hint-error/hint-error.directive.d.ts +9 -0
  58. package/lib/form-field/horizontal-form-field.component.d.ts +1 -1
  59. package/lib/form-field/index.d.ts +4 -0
  60. package/lib/form-field/label/label.component.d.ts +3 -2
  61. package/lib/form-field-frame/form-field-frame.component.d.ts +4 -3
  62. package/lib/icon/icon.component.d.ts +2 -1
  63. package/lib/inputs/_simple-input-base.d.ts +4 -2
  64. package/lib/inputs/autocomplete-input/autocomplete-input.component.d.ts +5 -4
  65. package/lib/inputs/date-input/abstract-date-input.d.ts +112 -0
  66. package/lib/inputs/date-input/date-input.component.d.ts +19 -81
  67. package/lib/inputs/date-input/date-input.defaults.d.ts +21 -3
  68. package/lib/inputs/date-input/{date-input.directive.d.ts → date-input.directives.d.ts} +2 -2
  69. package/lib/inputs/date-input/date-input.module.d.ts +5 -4
  70. package/lib/inputs/date-input/date-input.serializers.d.ts +4 -2
  71. package/lib/inputs/date-input/date-input.types.d.ts +5 -4
  72. package/lib/inputs/date-input/date-range-input.component.d.ts +29 -0
  73. package/lib/inputs/date-input/date-range-input.directives.d.ts +82 -0
  74. package/lib/inputs/date-input/date-range-input.module.d.ts +17 -0
  75. package/lib/inputs/date-input/index.d.ts +7 -1
  76. package/lib/inputs/date-input/multipage-date-range-input.component.d.ts +44 -0
  77. package/lib/inputs/date-input/multipage-date-range-input.directives.d.ts +82 -0
  78. package/lib/inputs/date-input/multipage-date-range-input.module.d.ts +17 -0
  79. package/lib/inputs/digit-input/digit-input.component.d.ts +4 -3
  80. package/lib/inputs/hex-input/hex-input.component.d.ts +5 -3
  81. package/lib/inputs/number-input/number-input.component.d.ts +11 -10
  82. package/lib/inputs/number-input/number-input.defaults.d.ts +1 -0
  83. package/lib/inputs/password-input/password-input.component.d.ts +4 -3
  84. package/lib/kbd/kbd.component.d.ts +2 -1
  85. package/lib/kbd-shortcut/kbd-shortcut.component.d.ts +2 -1
  86. package/lib/modal/modal.component.d.ts +6 -5
  87. package/lib/option/option.component.d.ts +2 -1
  88. package/lib/progress-bar/progress-bar.component.d.ts +4 -3
  89. package/lib/progress-circle/progress-circle.component.d.ts +5 -4
  90. package/lib/segment/segment.component.d.ts +6 -5
  91. package/lib/select/select.component.d.ts +33 -26
  92. package/lib/select/select.defaults.d.ts +7 -0
  93. package/lib/select/select.directive.d.ts +6 -0
  94. package/lib/select/select.module.d.ts +1 -1
  95. package/lib/select/select.types.d.ts +4 -2
  96. package/lib/select/select.utils.d.ts +2 -0
  97. package/lib/slider/abstract-slider.d.ts +35 -29
  98. package/lib/slider/index.d.ts +1 -0
  99. package/lib/slider/range-slider/range-slider.component.d.ts +12 -9
  100. package/lib/slider/range-slider/range-slider.types.d.ts +6 -0
  101. package/lib/slider/slider.component.d.ts +5 -4
  102. package/lib/slider/slider.types.d.ts +3 -3
  103. package/lib/star/rating-display/rating-display.component.d.ts +2 -1
  104. package/lib/star/rating-input/rating-input.component.d.ts +2 -1
  105. package/lib/tabber/index.d.ts +2 -1
  106. package/lib/tabber/tab/tab.component.d.ts +14 -8
  107. package/lib/tabber/tabber.component.d.ts +25 -9
  108. package/lib/tabber/tabber.defaults.d.ts +1 -0
  109. package/lib/tabber/tabber.directives.d.ts +9 -0
  110. package/lib/tabber/tabber.module.d.ts +3 -2
  111. package/lib/tabber/tabber.types.d.ts +5 -0
  112. package/lib/table/table.component.d.ts +16 -15
  113. package/lib/table-pagination/table-pagination.component.d.ts +4 -3
  114. package/lib/text-list/text-list.component.d.ts +2 -1
  115. package/lib/types/item-storage.types.d.ts +15 -17
  116. package/package.json +1 -1
  117. package/prebuilt-themes/default/buttons/button.css +72 -57
  118. package/prebuilt-themes/default/buttons/button.css.map +1 -1
  119. package/prebuilt-themes/default/buttons/fab.css +65 -51
  120. package/prebuilt-themes/default/buttons/fab.css.map +1 -1
  121. package/prebuilt-themes/default/buttons/icon-button.css +56 -44
  122. package/prebuilt-themes/default/buttons/icon-button.css.map +1 -1
  123. package/prebuilt-themes/default/calendar.css +134 -54
  124. package/prebuilt-themes/default/calendar.css.map +1 -1
  125. package/prebuilt-themes/default/card.css.map +1 -1
  126. package/prebuilt-themes/default/checkbox-list.css +48 -22
  127. package/prebuilt-themes/default/checkbox-list.css.map +1 -1
  128. package/prebuilt-themes/default/checkbox.css +4 -4
  129. package/prebuilt-themes/default/chips.css +18 -13
  130. package/prebuilt-themes/default/chips.css.map +1 -1
  131. package/prebuilt-themes/default/color-display.css +1 -1
  132. package/prebuilt-themes/default/core.css +9 -1
  133. package/prebuilt-themes/default/core.css.map +1 -1
  134. package/prebuilt-themes/default/dropdown-panel.css.map +1 -1
  135. package/prebuilt-themes/default/form-field-frame.css +6 -2
  136. package/prebuilt-themes/default/form-field-frame.css.map +1 -1
  137. package/prebuilt-themes/default/form-field.css +31 -11
  138. package/prebuilt-themes/default/form-field.css.map +1 -1
  139. package/prebuilt-themes/default/inputs/autocomplete-input.css +72 -25
  140. package/prebuilt-themes/default/inputs/autocomplete-input.css.map +1 -1
  141. package/prebuilt-themes/default/inputs/color-input.css +5 -44
  142. package/prebuilt-themes/default/inputs/color-input.css.map +1 -1
  143. package/prebuilt-themes/default/inputs/date-input.css +79 -21
  144. package/prebuilt-themes/default/inputs/date-input.css.map +1 -1
  145. package/prebuilt-themes/default/inputs/digit-input.css +1 -1
  146. package/prebuilt-themes/default/inputs/digit-input.css.map +1 -1
  147. package/prebuilt-themes/default/inputs/file-input.css +112 -62
  148. package/prebuilt-themes/default/inputs/file-input.css.map +1 -1
  149. package/prebuilt-themes/default/inputs/hex-input.css +47 -20
  150. package/prebuilt-themes/default/inputs/hex-input.css.map +1 -1
  151. package/prebuilt-themes/default/inputs/input.css +39 -15
  152. package/prebuilt-themes/default/inputs/input.css.map +1 -1
  153. package/prebuilt-themes/default/inputs/number-input.css +52 -22
  154. package/prebuilt-themes/default/inputs/number-input.css.map +1 -1
  155. package/prebuilt-themes/default/inputs/password-input.css +67 -22
  156. package/prebuilt-themes/default/inputs/password-input.css.map +1 -1
  157. package/prebuilt-themes/default/inputs/search-bar.css +41 -16
  158. package/prebuilt-themes/default/inputs/search-bar.css.map +1 -1
  159. package/prebuilt-themes/default/kbd-shortcut.css +1 -1
  160. package/prebuilt-themes/default/kbd.css +1 -1
  161. package/prebuilt-themes/default/modal.css +2 -1
  162. package/prebuilt-themes/default/modal.css.map +1 -1
  163. package/prebuilt-themes/default/progress-circle.css.map +1 -1
  164. package/prebuilt-themes/default/radio.css +9 -7
  165. package/prebuilt-themes/default/radio.css.map +1 -1
  166. package/prebuilt-themes/default/segment.css +74 -61
  167. package/prebuilt-themes/default/segment.css.map +1 -1
  168. package/prebuilt-themes/default/select.css +91 -44
  169. package/prebuilt-themes/default/select.css.map +1 -1
  170. package/prebuilt-themes/default/slide-toggle.css +4 -4
  171. package/prebuilt-themes/default/slide-toggle.css.map +1 -1
  172. package/prebuilt-themes/default/slider.css +100 -52
  173. package/prebuilt-themes/default/slider.css.map +1 -1
  174. package/prebuilt-themes/default/stars.css +4 -4
  175. package/prebuilt-themes/default/stars.css.map +1 -1
  176. package/prebuilt-themes/default/statebox.css +5 -5
  177. package/prebuilt-themes/default/tabber.css +40 -16
  178. package/prebuilt-themes/default/tabber.css.map +1 -1
  179. package/prebuilt-themes/default/table.css.map +1 -1
  180. package/themes/_variables.scss +2 -1
  181. package/themes/default/_mixins.scss +4 -4
  182. package/themes/default/buttons/_button-mixins.scss +43 -33
  183. package/themes/default/buttons/button.scss +49 -28
  184. package/themes/default/buttons/fab.scss +48 -26
  185. package/themes/default/buttons/icon-button.scss +38 -17
  186. package/themes/default/calendar.scss +146 -55
  187. package/themes/default/checkbox-list.scss +47 -21
  188. package/themes/default/chips.scss +12 -12
  189. package/themes/default/color-display.scss +1 -1
  190. package/themes/default/core.scss +11 -1
  191. package/themes/default/form-field-frame.scss +9 -4
  192. package/themes/default/form-field.scss +23 -9
  193. package/themes/default/inputs/_shared.scss +30 -9
  194. package/themes/default/inputs/autocomplete-input.scss +68 -14
  195. package/themes/default/inputs/color-input.scss +2 -2
  196. package/themes/default/inputs/date-input.scss +54 -5
  197. package/themes/default/inputs/digit-input.scss +1 -1
  198. package/themes/default/inputs/file-input.scss +83 -23
  199. package/themes/default/inputs/hex-input.scss +44 -9
  200. package/themes/default/inputs/input.scss +37 -4
  201. package/themes/default/inputs/number-input.scss +54 -15
  202. package/themes/default/inputs/password-input.scss +70 -15
  203. package/themes/default/inputs/search-bar.scss +39 -5
  204. package/themes/default/kbd-shortcut.scss +1 -1
  205. package/themes/default/kbd.scss +1 -1
  206. package/themes/default/modal.scss +2 -1
  207. package/themes/default/radio.scss +5 -3
  208. package/themes/default/segment.scss +75 -67
  209. package/themes/default/select.scss +96 -42
  210. package/themes/default/slider.scss +100 -65
  211. package/themes/default/statebox.scss +1 -1
  212. package/themes/default/tabber.scss +36 -13
  213. package/lib/tabber/tab/tab.defaults.d.ts +0 -6
  214. package/prebuilt-themes/default/calendar-OLD.css +0 -294
  215. package/prebuilt-themes/default/calendar-OLD.css.map +0 -1
  216. package/themes/default/calendar-OLD.scss +0 -183
@@ -3,17 +3,35 @@
3
3
  /**
4
4
  * Should be applied to the first element in the component's template.
5
5
  */
6
- @mixin genericInput() {
6
+ @mixin genericInput(
7
+ $height,
8
+ $height-compact,
9
+ $gap,
10
+ $font-size,
11
+ $font-size-compact,
12
+ $line-height,
13
+ $line-height-compact,
14
+ $font-weight,
15
+ $padding,
16
+ $padding-compact,
17
+ $color,
18
+ $placeholder-color,
19
+ $placeholder-opacity
20
+ ) {
21
+ height: $height;
7
22
  position: relative;
8
- font-family: 'Roboto', sans-serif;
23
+ font-family: var(--ard-font-family);
9
24
  display: flex;
10
25
  align-items: center;
11
26
  justify-content: stretch;
12
- gap: 0.625em;
27
+ gap: $gap;
13
28
  cursor: text;
14
29
  box-sizing: border-box;
15
- font-size: 1rem;
16
- line-height: 1.25em;
30
+ font-size: $font-size;
31
+ line-height: $line-height;
32
+ font-weight: $font-weight;
33
+ padding: $padding;
34
+ color: $color;
17
35
 
18
36
  .ard-input-container {
19
37
  flex-grow: 1;
@@ -23,7 +41,8 @@
23
41
 
24
42
  .ard-placeholder {
25
43
  font: inherit;
26
- opacity: 60%;
44
+ opacity: $placeholder-opacity;
45
+ color: $placeholder-color;
27
46
  white-space: nowrap;
28
47
  overflow: hidden;
29
48
  text-overflow: ellipsis;
@@ -37,14 +56,16 @@
37
56
  outline: none;
38
57
  font: inherit;
39
58
  padding: 0;
59
+ color: inherit;
40
60
  display: block;
41
61
  width: 100%;
42
62
  }
43
63
  }
44
64
  //! compact
45
65
  &.ard-compact {
46
- height: 1.5625em;
47
- font-size: 0.85em;
48
- line-height: 1;
66
+ height: $height-compact;
67
+ font-size: $font-size-compact;
68
+ line-height: $line-height-compact;
69
+ padding: $padding-compact;
49
70
  }
50
71
  }
@@ -3,44 +3,98 @@
3
3
  @use '../clear-button' as CB;
4
4
  @use '../../variables' as ARD;
5
5
 
6
+ :root {
7
+ --ard-autocomplete-input-height: var(--ard-form-field-height, 2.3125rem);
8
+ --ard-autocomplete-input-height-compact: var(--ard-form-field-height-compact, 1.6875rem);
9
+ --ard-autocomplete-input-gap: 0.625rem;
10
+ --ard-autocomplete-input-font-size: var(--ard-form-field-font-size, 1rem);
11
+ --ard-autocomplete-input-font-size-compact: var(--ard-form-field-font-size-compact, 0.875rem);
12
+ --ard-autocomplete-input-line-height: 1.25;
13
+ --ard-autocomplete-input-line-height-compact: 1;
14
+ --ard-autocomplete-input-font-weight: 400;
15
+ --ard-autocomplete-input-padding: var(--ard-form-field-padding, 0 0.375rem);
16
+ --ard-autocomplete-input-padding-compact: var(--ard-form-field-padding-compact, 0 0.375rem);
17
+ --ard-autocomplete-input-color: #{ARD.$text};
18
+ --ard-autocomplete-input-placeholder-color: #{ARD.$text};
19
+ --ard-autocomplete-input-placeholder-opacity: 60%;
20
+
21
+ --ard-autocomplete-input-min-width: 10rem;
22
+ --ard-autocomplete-input-max-width: 100%;
23
+ --ard-autocomplete-input-autocomplete-opacity: 37.5%;
24
+ --ard-autocomplete-input-dropdown-padding: 0;
25
+ --ard-autocomplete-input-dropdown-max-height: 15rem;
26
+ --ard-autocomplete-input-dropdown-gap: 0;
27
+ --ard-autocomplete-input-option-padding: 0.375rem 0.625rem;
28
+ --ard-autocomplete-input-option-padding-compact: 0.25rem 0.5rem;
29
+ --ard-autocomplete-input-font-size: 1rem;
30
+ --ard-autocomplete-input-font-size-compact: 0.875rem;
31
+ --ard-autocomplete-input-color: #{ARD.$text2};
32
+ --ard-autocomplete-input-highlighted-background: #{ARD.$darken-overlay-light};
33
+ --ard-autocomplete-input-highlighted-font-weight: 400;
34
+ --ard-autocomplete-input-selected-background: #{ARD.$darken-overlay-medium};
35
+ --ard-autocomplete-input-selected-font-weight: 500;
36
+ --ard-autocomplete-input-disabled-opacity: 50%;
37
+ }
38
+
6
39
  .ard-autocomplete-input {
7
- @include inputMixin.genericInput();
8
- padding: 0 0.375rem;
9
- min-width: 10rem;
10
- max-width: 100%;
40
+ @include inputMixin.genericInput(
41
+ var(--ard-autocomplete-input-height, var(--ard-form-field-height, 2.3125rem)),
42
+ var(--ard-autocomplete-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
43
+ var(--ard-autocomplete-input-gap, 0.625rem),
44
+ var(--ard-autocomplete-input-font-size, var(--ard-form-field-font-size, 1rem)),
45
+ var(--ard-autocomplete-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
46
+ var(--ard-autocomplete-input-line-height, 1.25),
47
+ var(--ard-autocomplete-input-line-height-compact, 1),
48
+ var(--ard-autocomplete-input-font-weight, 400),
49
+ var(--ard-autocomplete-input-padding, var(--ard-form-field-padding, 0 0.375rem)),
50
+ var(--ard-autocomplete-input-padding-compact, var(--ard-form-field-padding-compact, 0 0.375rem)),
51
+ var(--ard-autocomplete-input-color, #{ARD.$text}),
52
+ var(--ard-autocomplete-input-placeholder-color, #{ARD.$text}),
53
+ var(--ard-autocomplete-input-placeholder-opacity, 60%)
54
+ );
55
+ min-width: var(--ard-autocomplete-input-min-width, 10rem);
56
+ max-width: var(--ard-autocomplete-input-max-width, 100%);
11
57
 
12
58
  @include CB.clearButton();
13
59
 
14
60
  .ard-autocomplete {
15
- opacity: 37.5%;
61
+ opacity: var(--ard-autocomplete-input-autocomplete-opacity, 37.5%);
16
62
  }
17
63
  }
18
64
  //! suggestions
19
65
  .ard-input-suggestions-panel {
66
+ padding: var(--ard-autocomplete-input-dropdown-padding, 0);
67
+ display: flex;
68
+ flex-direction: column;
69
+ gap: var(--ard-autocomplete-input-dropdown-gap, 0);
70
+ max-height: var(--ard-autocomplete-input-dropdown-max-height, 15rem);
71
+ overflow-y: auto;
72
+
20
73
  .ard-option {
21
- padding: 0.375rem 0.625rem;
22
- font-size: 1rem;
23
- color: ARD.$text2;
74
+ padding: var(--ard-autocomplete-input-option-padding, 0.375rem 0.625rem);
75
+ font-size: var(--ard-autocomplete-input-font-size, 1rem);
76
+ color: var(--ard-autocomplete-input-color, #{ARD.$text2});
24
77
  cursor: pointer;
25
78
 
26
79
  &.ard-option-highlighted {
27
- background: ARD.$darken-overlay-light;
80
+ background: var(--ard-autocomplete-input-highlighted-background, #{ARD.$darken-overlay-light});
81
+ font-weight: var(--ard-autocomplete-input-highlighted-font-weight, 400);
28
82
  }
29
83
 
30
84
  &.ard-option-selected {
31
- font-weight: 500;
32
- background: ARD.$darken-overlay-medium;
85
+ background: var(--ard-autocomplete-input-selected-background, #{ARD.$darken-overlay-medium});
86
+ font-weight: var(--ard-autocomplete-input-selected-font-weight, 500);
33
87
  }
34
88
 
35
89
  &.ard-option-disabled {
36
90
  pointer-events: none;
37
- opacity: 50%;
91
+ opacity: var(--ard-autocomplete-input-disabled-opacity, 50%);
38
92
  }
39
93
  }
40
94
  .ard-compact {
41
95
  .ard-option {
42
- padding: 0.25rem 0.5rem;
43
- font-size: 0.9rem;
96
+ padding: var(--ard-autocomplete-input-option-padding-compact, 0.25rem 0.5rem);
97
+ font-size: var(--ard-autocomplete-input-font-size-compact, 0.875rem);
44
98
  }
45
99
  }
46
100
  }
@@ -3,7 +3,7 @@
3
3
  @use '../clear-button' as CB;
4
4
 
5
5
  .ard-color-input {
6
- @include inputMixin.genericInput();
6
+ // @include inputMixin.genericInput();
7
7
  padding: 0 0.375rem;
8
8
  min-width: 10rem;
9
9
  max-width: 100%;
@@ -15,7 +15,7 @@
15
15
  pointer-events: none;
16
16
 
17
17
  input {
18
- font-family: monospace;
18
+ font-family: var(--ard-font-family-mono);
19
19
  user-select: none;
20
20
  }
21
21
  }
@@ -1,12 +1,49 @@
1
1
  @use './shared' as S;
2
2
  @use '../../variables' as ARD;
3
3
 
4
- ard-date-input .ard-date-input {
5
- @include S.genericInput();
6
- padding-left: 0.375rem;
4
+ :root {
5
+ --ard-date-input-height: var(--ard-form-field-height, 2.3125rem);
6
+ --ard-date-input-height-compact: var(--ard-form-field-height-compact, 1.6875rem);
7
+ --ard-date-input-gap: 0.625rem;
8
+ --ard-date-input-font-size: var(--ard-form-field-font-size, 1rem);
9
+ --ard-date-input-font-size-compact: var(--ard-form-field-font-size-compact, 0.875rem);
10
+ --ard-date-input-line-height: 1.25;
11
+ --ard-date-input-line-height-compact: 1;
12
+ --ard-date-input-font-weight: 400;
13
+ --ard-date-input-padding: var(--ard-form-field-padding, 0 0.375rem);
14
+ --ard-date-input-padding-compact: var(--ard-form-field-padding-compact, 0 0.375rem);
15
+ --ard-date-input-color: #{ARD.$text};
16
+ --ard-date-input-placeholder-color: #{ARD.$text};
17
+ --ard-date-input-placeholder-opacity: 60%;
18
+
19
+ --ard-date-input-padding: 0 0 0 0.375rem;
20
+ --ard-date-input-input-padding: 0 2.625rem 0 0.375rem;
21
+ --ard-date-input-multipage-gap: 0;
22
+ }
23
+
24
+ ard-date-input .ard-date-input,
25
+ ard-date-range-input .ard-date-range-input,
26
+ ard-multipage-date-range-input .ard-multipage-date-range-input {
27
+ @include S.genericInput(
28
+ var(--ard-date-input-height, var(--ard-form-field-height, 2.3125rem)),
29
+ var(--ard-date-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
30
+ var(--ard-date-input-gap, 0.625rem),
31
+ var(--ard-date-input-font-size, var(--ard-form-field-font-size, 1rem)),
32
+ var(--ard-date-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
33
+ var(--ard-date-input-line-height, 1.25),
34
+ var(--ard-date-input-line-height-compact, 1),
35
+ var(--ard-date-input-font-weight, 400),
36
+ var(--ard-date-input-padding, var(--ard-form-field-padding, 0 0.375rem)),
37
+ var(--ard-date-input-padding-compact, var(--ard-form-field-padding-compact, 0 0.375rem)),
38
+ var(--ard-date-input-color, #{ARD.$text}),
39
+ var(--ard-date-input-placeholder-color, #{ARD.$text}),
40
+ var(--ard-date-input-placeholder-opacity, 60%)
41
+ );
42
+ padding-left: var(--ard-date-input-padding, 0 0 0 0.375rem);
43
+ display: grid;
44
+ grid-template-columns: 1fr max-content;
7
45
 
8
46
  .ard-date-input__value-container {
9
- flex-grow: 1;
10
47
  position: unset;
11
48
  }
12
49
  .ard-date-input__placeholder {
@@ -26,7 +63,19 @@ ard-date-input .ard-date-input {
26
63
  box-sizing: border-box;
27
64
  width: 100%;
28
65
  height: 100%;
29
- padding: 0 2.625rem 0 0.375rem;
66
+ padding: var(--ard-date-input-input-padding, 0 2.625rem 0 0.375rem);
30
67
  }
31
68
  }
32
69
  }
70
+
71
+ ard-days-view {
72
+ .ard-calendar__header-button {
73
+ font-size: var(--ard-button-font-size, 0.875rem);
74
+ font-weight: var(--ard-button-font-weight, 500);
75
+ }
76
+ }
77
+ .ard-date-input__multipage-wrapper {
78
+ display: flex;
79
+ flex-direction: row;
80
+ gap: var(--ard-date-input-multipage-gap, 0);
81
+ }
@@ -3,7 +3,7 @@
3
3
  @use '../mixins' as defaultMixins;
4
4
 
5
5
  ard-digit-input {
6
- font-family: 'Roboto', sans-serif;
6
+ font-family: var(--ard-font-family);
7
7
  font-weight: 500;
8
8
  color: ARD.$text;
9
9
  }
@@ -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
- @include inputMixin.genericInput();
15
- padding: 0 0.375rem;
16
- min-width: 10rem;
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 solid var(--ard-cmpcl--content-light);
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
- margin: 0.125rem;
41
- aspect-ratio: 1;
42
- border: none;
43
- background: none;
44
- padding: 0;
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
- font-weight: 500;
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,25 +3,60 @@
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
- padding: 0 0.375rem;
9
- min-width: 10rem;
10
- max-width: 100%;
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
 
14
49
  .ard-input-container {
15
50
  input {
16
- font-family: monospace;
51
+ font-family: var(--ard-font-family-mono);
17
52
  }
18
53
  }
19
54
 
20
55
  .ard-hash-container {
21
- margin-right: -0.5rem;
22
- color: ARD.$text3;
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
- font-family: monospace;
60
+ font-family: var(--ard-font-family-mono);
26
61
  }
27
62
  }
@@ -1,12 +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
- padding: 0 0.375rem;
8
- min-width: 10rem;
9
- max-width: 100%;
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%);
10
43
 
11
44
  @include CB.clearButton();
12
45
  }