@ardium-ui/ui 5.0.0-alpha.6 → 5.0.0-alpha.61

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 (245) hide show
  1. package/fesm2022/ardium-ui-ui.mjs +4809 -2358
  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 +3 -2
  6. package/lib/_internal/item-storages/dropdown-item-storage.d.ts +20 -19
  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 +5 -8
  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/breakpoints/breakpoint.service.d.ts +12 -0
  14. package/lib/breakpoints/breakpoint.utils.d.ts +7 -0
  15. package/lib/breakpoints/breakpoints.d.ts +13 -0
  16. package/lib/breakpoints/index.d.ts +2 -0
  17. package/lib/buttons/_button-base.d.ts +12 -8
  18. package/lib/buttons/_button-base.defaults.d.ts +3 -2
  19. package/lib/buttons/button/button.component.d.ts +5 -5
  20. package/lib/buttons/button/button.defaults.d.ts +0 -2
  21. package/lib/buttons/button/button.directive.d.ts +17 -0
  22. package/lib/buttons/button/button.module.d.ts +3 -2
  23. package/lib/buttons/button/index.d.ts +1 -0
  24. package/lib/buttons/fab/fab.component.d.ts +3 -1
  25. package/lib/buttons/icon-button/icon-button.component.d.ts +6 -4
  26. package/lib/buttons/icon-button/icon-button.defaults.d.ts +2 -1
  27. package/lib/calendar/abstract-calendar.d.ts +128 -0
  28. package/lib/calendar/calendar.component.d.ts +8 -96
  29. package/lib/calendar/calendar.defaults.d.ts +16 -1
  30. package/lib/calendar/calendar.internal-directives.d.ts +24 -8
  31. package/lib/calendar/calendar.internal-types.d.ts +1 -0
  32. package/lib/calendar/calendar.module.d.ts +4 -9
  33. package/lib/calendar/calendar.types.d.ts +21 -5
  34. package/lib/calendar/index.d.ts +3 -0
  35. package/lib/calendar/range-calendar.component.d.ts +16 -0
  36. package/lib/calendar/range-calendar.directives.d.ts +51 -0
  37. package/lib/calendar/range-calendar.module.d.ts +10 -0
  38. package/lib/calendar/views/calendar-views.module.d.ts +13 -0
  39. package/lib/calendar/views/days-view/days-view.component.d.ts +20 -2
  40. package/lib/calendar/views/days-view/days-view.helpers.d.ts +2 -2
  41. package/lib/calendar/views/months-view/months-view.component.d.ts +15 -3
  42. package/lib/calendar/views/years-view/years-view.component.d.ts +16 -3
  43. package/lib/checkbox-list/checkbox-list.component.d.ts +9 -7
  44. package/lib/checkbox-list/checkbox-list.directives.d.ts +7 -0
  45. package/lib/checkbox-list/checkbox-list.module.d.ts +1 -1
  46. package/lib/chip/chip.component.d.ts +2 -1
  47. package/lib/chip/deletable-chip/deletable-chip.component.d.ts +2 -1
  48. package/lib/chip/selectable-chip/selectable-chip.component.d.ts +3 -2
  49. package/lib/dialog/dialog.component.d.ts +13 -8
  50. package/lib/dialog/dialog.types.d.ts +1 -0
  51. package/lib/divider/divider.component.d.ts +2 -1
  52. package/lib/dropdown-panel/dropdown-panel.component.d.ts +2 -1
  53. package/lib/file-inputs/file-input/file-input.component.d.ts +2 -1
  54. package/lib/file-inputs/file-input-base.d.ts +4 -5
  55. package/lib/form-field/auto-error/auto-error.component.d.ts +19 -0
  56. package/lib/form-field/auto-error/auto-error.provider.d.ts +7 -0
  57. package/lib/form-field/error/error.directive.d.ts +3 -2
  58. package/lib/form-field/form-field-base.d.ts +5 -2
  59. package/lib/form-field/form-field-child.token.d.ts +5 -5
  60. package/lib/form-field/form-field-native-inputs.d.ts +6 -11
  61. package/lib/form-field/form-field.component.d.ts +1 -1
  62. package/lib/form-field/form-field.defaults.d.ts +1 -0
  63. package/lib/form-field/form-field.module.d.ts +5 -4
  64. package/lib/form-field/hint/hint.directive.d.ts +3 -2
  65. package/lib/form-field/hint-error/hint-error.directive.d.ts +3 -2
  66. package/lib/form-field/horizontal-form-field.component.d.ts +1 -1
  67. package/lib/form-field/index.d.ts +4 -0
  68. package/lib/form-field/label/label.component.d.ts +3 -2
  69. package/lib/form-field-frame/form-field-frame.component.d.ts +4 -3
  70. package/lib/grid/grid.component.d.ts +51 -0
  71. package/lib/grid/grid.defaults.d.ts +16 -0
  72. package/lib/grid/grid.module.d.ts +7 -0
  73. package/lib/grid/grid.types.d.ts +38 -0
  74. package/lib/grid/grid.utils.d.ts +11 -0
  75. package/lib/grid/index.d.ts +4 -0
  76. package/lib/icon/icon.component.d.ts +2 -1
  77. package/lib/inputs/_simple-input-base.d.ts +7 -3
  78. package/lib/inputs/autocomplete-input/autocomplete-input.component.d.ts +5 -4
  79. package/lib/inputs/date-input/abstract-date-input.d.ts +112 -0
  80. package/lib/inputs/date-input/date-input.component.d.ts +19 -81
  81. package/lib/inputs/date-input/date-input.defaults.d.ts +21 -3
  82. package/lib/inputs/date-input/{date-input.directive.d.ts → date-input.directives.d.ts} +2 -2
  83. package/lib/inputs/date-input/date-input.module.d.ts +5 -4
  84. package/lib/inputs/date-input/date-input.serializers.d.ts +4 -2
  85. package/lib/inputs/date-input/date-input.types.d.ts +5 -4
  86. package/lib/inputs/date-input/date-range-input.component.d.ts +29 -0
  87. package/lib/inputs/date-input/date-range-input.directives.d.ts +82 -0
  88. package/lib/inputs/date-input/date-range-input.module.d.ts +17 -0
  89. package/lib/inputs/date-input/index.d.ts +7 -1
  90. package/lib/inputs/date-input/multipage-date-range-input.component.d.ts +44 -0
  91. package/lib/inputs/date-input/multipage-date-range-input.directives.d.ts +82 -0
  92. package/lib/inputs/date-input/multipage-date-range-input.module.d.ts +17 -0
  93. package/lib/inputs/digit-input/digit-input.component.d.ts +4 -3
  94. package/lib/inputs/hex-input/hex-input.component.d.ts +5 -3
  95. package/lib/inputs/input-utils.d.ts +6 -0
  96. package/lib/inputs/number-input/number-input.component.d.ts +18 -12
  97. package/lib/inputs/number-input/number-input.defaults.d.ts +4 -0
  98. package/lib/inputs/number-input/number-input.directives.d.ts +12 -0
  99. package/lib/inputs/number-input/number-input.module.d.ts +1 -1
  100. package/lib/inputs/password-input/password-input.component.d.ts +4 -3
  101. package/lib/kbd/kbd.component.d.ts +2 -1
  102. package/lib/kbd-shortcut/kbd-shortcut.component.d.ts +2 -1
  103. package/lib/modal/modal.component.d.ts +9 -6
  104. package/lib/modal/modal.defaults.d.ts +2 -0
  105. package/lib/option/option.component.d.ts +2 -1
  106. package/lib/progress-bar/progress-bar.component.d.ts +4 -3
  107. package/lib/progress-circle/progress-circle.component.d.ts +5 -4
  108. package/lib/search-functions.d.ts +1 -1
  109. package/lib/segment/segment.component.d.ts +6 -5
  110. package/lib/select/select.component.d.ts +38 -30
  111. package/lib/select/select.defaults.d.ts +9 -2
  112. package/lib/select/select.directive.d.ts +6 -0
  113. package/lib/select/select.module.d.ts +1 -1
  114. package/lib/select/select.types.d.ts +6 -2
  115. package/lib/select/select.utils.d.ts +2 -0
  116. package/lib/slider/abstract-slider.d.ts +35 -29
  117. package/lib/slider/index.d.ts +1 -0
  118. package/lib/slider/range-slider/range-slider.component.d.ts +12 -9
  119. package/lib/slider/range-slider/range-slider.types.d.ts +6 -0
  120. package/lib/slider/slider.component.d.ts +5 -4
  121. package/lib/slider/slider.types.d.ts +3 -3
  122. package/lib/star/rating-display/rating-display.component.d.ts +2 -1
  123. package/lib/star/rating-input/rating-input.component.d.ts +5 -3
  124. package/lib/star/rating-input/rating-input.defaults.d.ts +2 -2
  125. package/lib/tabber/index.d.ts +2 -1
  126. package/lib/tabber/tab/tab.component.d.ts +14 -8
  127. package/lib/tabber/tabber.component.d.ts +25 -9
  128. package/lib/tabber/tabber.defaults.d.ts +1 -0
  129. package/lib/tabber/tabber.directives.d.ts +9 -0
  130. package/lib/tabber/tabber.module.d.ts +3 -2
  131. package/lib/tabber/tabber.types.d.ts +5 -0
  132. package/lib/table/table.component.d.ts +16 -15
  133. package/lib/table-pagination/table-pagination.component.d.ts +4 -3
  134. package/lib/text-list/text-list.component.d.ts +2 -1
  135. package/lib/types/item-storage.types.d.ts +17 -18
  136. package/package.json +2 -1
  137. package/prebuilt-themes/default/buttons/button.css +74 -58
  138. package/prebuilt-themes/default/buttons/button.css.map +1 -1
  139. package/prebuilt-themes/default/buttons/fab.css +64 -51
  140. package/prebuilt-themes/default/buttons/fab.css.map +1 -1
  141. package/prebuilt-themes/default/buttons/icon-button.css +50 -44
  142. package/prebuilt-themes/default/buttons/icon-button.css.map +1 -1
  143. package/prebuilt-themes/default/calendar.css +131 -55
  144. package/prebuilt-themes/default/calendar.css.map +1 -1
  145. package/prebuilt-themes/default/card.css.map +1 -1
  146. package/prebuilt-themes/default/checkbox-list.css +48 -22
  147. package/prebuilt-themes/default/checkbox-list.css.map +1 -1
  148. package/prebuilt-themes/default/checkbox.css +4 -4
  149. package/prebuilt-themes/default/chips.css +74 -42
  150. package/prebuilt-themes/default/chips.css.map +1 -1
  151. package/prebuilt-themes/default/color-display.css +1 -1
  152. package/prebuilt-themes/default/core.css +10 -1
  153. package/prebuilt-themes/default/core.css.map +1 -1
  154. package/prebuilt-themes/default/dialog.css +7 -2
  155. package/prebuilt-themes/default/dialog.css.map +1 -1
  156. package/prebuilt-themes/default/dropdown-panel.css.map +1 -1
  157. package/prebuilt-themes/default/form-field-frame.css +6 -2
  158. package/prebuilt-themes/default/form-field-frame.css.map +1 -1
  159. package/prebuilt-themes/default/form-field.css +62 -29
  160. package/prebuilt-themes/default/form-field.css.map +1 -1
  161. package/prebuilt-themes/default/inputs/autocomplete-input.css +61 -25
  162. package/prebuilt-themes/default/inputs/autocomplete-input.css.map +1 -1
  163. package/prebuilt-themes/default/inputs/color-input.css +5 -44
  164. package/prebuilt-themes/default/inputs/color-input.css.map +1 -1
  165. package/prebuilt-themes/default/inputs/date-input.css +69 -21
  166. package/prebuilt-themes/default/inputs/date-input.css.map +1 -1
  167. package/prebuilt-themes/default/inputs/digit-input.css +1 -1
  168. package/prebuilt-themes/default/inputs/digit-input.css.map +1 -1
  169. package/prebuilt-themes/default/inputs/file-input.css +102 -62
  170. package/prebuilt-themes/default/inputs/file-input.css.map +1 -1
  171. package/prebuilt-themes/default/inputs/hex-input.css +38 -20
  172. package/prebuilt-themes/default/inputs/hex-input.css.map +1 -1
  173. package/prebuilt-themes/default/inputs/input.css +31 -15
  174. package/prebuilt-themes/default/inputs/input.css.map +1 -1
  175. package/prebuilt-themes/default/inputs/number-input.css +42 -22
  176. package/prebuilt-themes/default/inputs/number-input.css.map +1 -1
  177. package/prebuilt-themes/default/inputs/password-input.css +58 -22
  178. package/prebuilt-themes/default/inputs/password-input.css.map +1 -1
  179. package/prebuilt-themes/default/inputs/search-bar.css +33 -16
  180. package/prebuilt-themes/default/inputs/search-bar.css.map +1 -1
  181. package/prebuilt-themes/default/kbd-shortcut.css +8 -4
  182. package/prebuilt-themes/default/kbd-shortcut.css.map +1 -1
  183. package/prebuilt-themes/default/kbd.css +19 -9
  184. package/prebuilt-themes/default/kbd.css.map +1 -1
  185. package/prebuilt-themes/default/modal.css +46 -22
  186. package/prebuilt-themes/default/modal.css.map +1 -1
  187. package/prebuilt-themes/default/progress-circle.css.map +1 -1
  188. package/prebuilt-themes/default/radio.css +46 -28
  189. package/prebuilt-themes/default/radio.css.map +1 -1
  190. package/prebuilt-themes/default/segment.css +71 -61
  191. package/prebuilt-themes/default/segment.css.map +1 -1
  192. package/prebuilt-themes/default/select.css +78 -44
  193. package/prebuilt-themes/default/select.css.map +1 -1
  194. package/prebuilt-themes/default/slide-toggle.css +88 -37
  195. package/prebuilt-themes/default/slide-toggle.css.map +1 -1
  196. package/prebuilt-themes/default/slider.css +93 -52
  197. package/prebuilt-themes/default/slider.css.map +1 -1
  198. package/prebuilt-themes/default/stars.css +4 -4
  199. package/prebuilt-themes/default/stars.css.map +1 -1
  200. package/prebuilt-themes/default/statebox.css +5 -5
  201. package/prebuilt-themes/default/tabber.css +47 -16
  202. package/prebuilt-themes/default/tabber.css.map +1 -1
  203. package/prebuilt-themes/default/table.css +0 -8
  204. package/prebuilt-themes/default/table.css.map +1 -1
  205. package/public-api.d.ts +2 -0
  206. package/themes/_variables.scss +2 -1
  207. package/themes/default/_mixins.scss +5 -5
  208. package/themes/default/buttons/_button-mixins.scss +43 -33
  209. package/themes/default/buttons/button.scss +54 -29
  210. package/themes/default/buttons/fab.scss +47 -26
  211. package/themes/default/buttons/icon-button.scss +40 -17
  212. package/themes/default/calendar.scss +148 -58
  213. package/themes/default/checkbox-list.scss +47 -21
  214. package/themes/default/chips.scss +70 -39
  215. package/themes/default/color-display.scss +1 -1
  216. package/themes/default/core.scss +13 -1
  217. package/themes/default/dialog.scss +9 -2
  218. package/themes/default/form-field-frame.scss +9 -4
  219. package/themes/default/form-field.scss +64 -28
  220. package/themes/default/inputs/_shared.scss +30 -9
  221. package/themes/default/inputs/autocomplete-input.scss +69 -14
  222. package/themes/default/inputs/color-input.scss +2 -2
  223. package/themes/default/inputs/date-input.scss +54 -5
  224. package/themes/default/inputs/digit-input.scss +1 -1
  225. package/themes/default/inputs/file-input.scss +86 -23
  226. package/themes/default/inputs/hex-input.scss +46 -9
  227. package/themes/default/inputs/input.scss +39 -4
  228. package/themes/default/inputs/number-input.scss +55 -15
  229. package/themes/default/inputs/password-input.scss +72 -15
  230. package/themes/default/inputs/search-bar.scss +41 -5
  231. package/themes/default/kbd-shortcut.scss +10 -4
  232. package/themes/default/kbd.scss +26 -9
  233. package/themes/default/modal.scss +56 -22
  234. package/themes/default/radio.scss +47 -26
  235. package/themes/default/segment.scss +77 -67
  236. package/themes/default/select.scss +98 -42
  237. package/themes/default/slide-toggle.scss +134 -59
  238. package/themes/default/slider.scss +102 -65
  239. package/themes/default/statebox.scss +1 -1
  240. package/themes/default/tabber.scss +48 -13
  241. package/themes/default/table.scss +8 -8
  242. package/lib/tabber/tab/tab.defaults.d.ts +0 -6
  243. package/prebuilt-themes/default/calendar-OLD.css +0 -294
  244. package/prebuilt-themes/default/calendar-OLD.css.map +0 -1
  245. package/themes/default/calendar-OLD.scss +0 -183
@@ -14,7 +14,7 @@
14
14
  }
15
15
 
16
16
  .ard-color-display-label {
17
- font-family: monospace;
17
+ font-family: var(--ard-font-family-mono);
18
18
  font-size: 1.15em;
19
19
  }
20
20
 
@@ -30,16 +30,28 @@
30
30
  --ard-lighten-overlay-light: rgba(255, 255, 255, 5%);
31
31
  --ard-darken-overlay: rgba(0, 0, 0, 12.5%);
32
32
  --ard-darken-overlay-strong: rgba(0, 0, 0, 20%);
33
+ --ard-darken-overlay-medium-strong: rgba(0, 0, 0, 13%);
33
34
  --ard-darken-overlay-medium: rgba(0, 0, 0, 10%);
34
35
  --ard-darken-overlay-light: rgba(0, 0, 0, 5%);
35
36
  --ard-darken-overlay-ultralight: rgba(0, 0, 0, 3%);
36
37
 
38
+ --ard-font-family: 'Roboto', sans-serif;
39
+ --ard-font-family-mono: monospace;
40
+
37
41
  --ard-gold: #ffc107;
38
42
 
39
43
  --ard-clear-button-size: 0.9rem;
40
44
  --ard-dropdown-button-size: 0.4rem;
41
45
  --ard-form-field-height: 2.3125rem;
42
- --ard-form-field-compact-height: 1.6875rem;
46
+ --ard-form-field-height-compact: 1.6875rem;
47
+ --ard-form-field-font-size: 1rem;
48
+ --ard-form-field-font-size-compact: 1rem;
49
+ --ard-form-field-padding: 0 0.375rem;
50
+ --ard-form-field-padding-compact: 0 0.375rem;
51
+
52
+ --ard-rounded-corner-radius: 0.375rem;
53
+
54
+ --ard-grid-spacing-unit: 0.25rem;
43
55
 
44
56
  --ard-primary-50: 234, 235, 243;
45
57
  --ard-primary-100: 159, 167, 228;
@@ -1,7 +1,14 @@
1
+ // the variables are commented out intentionally
2
+ // read more in docs/dev/css-variables.md
3
+ :root {
4
+ --ard-dialog-content-actions-gap: 1rem;
5
+ --ard-dialog-buttons-gap: 1rem;
6
+ }
7
+
1
8
  .ard-dialog-container {
2
9
  display: flex;
3
10
  flex-direction: column;
4
- gap: 1rem;
11
+ gap: var(--ard-dialog-content-actions-gap, 1rem);
5
12
  }
6
13
 
7
14
  .ard-dialog-buttons {
@@ -11,6 +18,6 @@
11
18
 
12
19
  .ard-dialog-buttons-container {
13
20
  display: flex;
14
- gap: 1rem;
21
+ gap: var(--ard-dialog-buttons-gap, 1rem);
15
22
  align-items: center;
16
23
  }
@@ -12,7 +12,7 @@
12
12
  position: relative;
13
13
  font-size: 1rem;
14
14
  line-height: 1.25em;
15
- font-family: 'Roboto', sans-serif;
15
+ font-family: var(--ard-font-family);
16
16
 
17
17
  .ard-form-field-content-container {
18
18
  flex-grow: 1;
@@ -53,9 +53,7 @@
53
53
  .ard-form-field-overlay {
54
54
  background: ARD.$overlay;
55
55
  opacity: 0;
56
- transition:
57
- opacity 0.15s ARD.$timing-fn,
58
- background-color 0.15s ARD.$timing-fn;
56
+ transition: opacity 0.15s ARD.$timing-fn, background-color 0.15s ARD.$timing-fn;
59
57
  }
60
58
 
61
59
  &:hover {
@@ -79,3 +77,10 @@
79
77
  }
80
78
  }
81
79
  }
80
+ .ard-readonly .ard-form-field-frame {
81
+ &:hover {
82
+ .ard-form-field-overlay {
83
+ opacity: 0;
84
+ }
85
+ }
86
+ }
@@ -1,5 +1,32 @@
1
1
  @use '../variables' as ARD;
2
2
 
3
+ // the variables are commented out intentionally
4
+ // read more in docs/dev/css-variables.md
5
+ :root {
6
+ --ard-form-field-label-padding: 0.25rem 0 0.125rem 0.125rem;
7
+ --ard-form-field-label-font-size: 0.9375rem;
8
+ --ard-form-field-label-font-weight: 500;
9
+ --ard-form-field-label-required-font-weight: 500;
10
+ --ard-form-field-label-required-font-size: 112.5%;
11
+ --ard-form-field-label-required-color: orangered;
12
+ --ard-form-field-label-optional-font-weight: 400;
13
+ --ard-form-field-label-optional-font-size: 0.8125rem;
14
+ // --ard-form-field-label-optional-color: ;
15
+ --ard-form-field-label-optional-font-style: italic;
16
+ // --ard-form-field-error-color: ;
17
+ // --ard-form-field-success-color: ;
18
+ --ard-form-field-hint-padding: 0.125rem 0 0.25rem 0.125rem;
19
+ --ard-form-field-hint-font-size: 0.8125rem;
20
+ --ard-form-field-hint-line-height: 1.2;
21
+ --ard-form-field-hint-right-padding-left: 0.5rem;
22
+ --ard-form-field-hint-error-line-height: 1.2;
23
+ --ard-form-field-hint-error-gap: 0.375em;
24
+ --ard-form-field-label-disabled-opacity: 40%;
25
+ --ard-form-field-hint-disabled-opacity: 50%;
26
+ --ard-form-field-error-animation-duration: 0.25s;
27
+ --ard-horizontal-form-field-gap: 0.5rem;
28
+ }
29
+
3
30
  ard-form-field,
4
31
  ard-horizontal-form-field {
5
32
  display: block;
@@ -12,80 +39,84 @@ ard-horizontal-form-field {
12
39
  flex-direction: column;
13
40
 
14
41
  .ard-label {
15
- padding: 0.25rem 0 0.125rem 0.125rem;
16
- font-size: 0.9375rem;
17
- font-weight: 500;
42
+ padding: var(--ard-form-field-label-padding, 0.25rem 0 0.125rem 0.125rem);
43
+ font-size: var(--ard-form-field-label-font-size, 0.9375rem);
44
+ font-weight: var(--ard-form-field-label-font-weight, 500);
18
45
 
19
46
  .ard-label__required {
20
47
  .ard-label__required-optional-text {
21
- font-weight: 500;
22
- color: orangered;
23
- font-size: 112.5%;
48
+ font-weight: var(--ard-form-field-label-required-font-weight, 500);
49
+ font-size: var(--ard-form-field-label-required-font-size, 112.5%);
50
+ color: var(--ard-form-field-label-required-color, orangered);
24
51
  line-height: 1;
25
52
  }
26
53
  }
27
54
  .ard-label__optional {
28
55
  .ard-label__required-optional-text {
29
- font-weight: 400;
30
- font-size: 0.8125rem;
31
- font-style: italic;
56
+ font-weight: var(--ard-form-field-label-optional-font-weight, 400);
57
+ font-size: var(--ard-form-field-label-optional-font-size, 0.8125rem);
58
+ color: var(--ard-form-field-label-optional-color, #{ARD.$text2});
59
+ font-style: var(--ard-form-field-label-optional-font-style, italic);
32
60
  }
33
61
  }
34
62
  }
35
63
  .ard-form-field__hints {
36
- padding: 0.125rem 0 0.25rem 0.125rem;
37
- font-size: 0.8125rem;
38
- line-height: 1.1;
64
+ padding: var(--ard-form-field-hint-padding, 0.125rem 0 0.25rem 0.125rem);
65
+ font-size: var(--ard-form-field-hint-font-size, 0.8125rem);
66
+ line-height: var(--ard-form-field-hint-line-height, 1.1);
39
67
 
40
68
  &.ard-form-field__reserve-hint-line {
41
69
  box-sizing: content-box;
42
- min-height: 1.1em;
70
+ min-height: calc(var(--ard-form-field-hint-line-height, 1.1) * 1em);
43
71
  }
44
72
  }
45
73
  .ard-form-field__hints-right,
46
74
  .ard-form-field__errors-right {
47
75
  > * {
48
- padding-left: 0.5rem;
76
+ padding-left: var(--ard-form-field-hint-right-padding-left, 0.5rem);
49
77
  }
50
78
  }
51
79
  .ard-hint,
52
80
  .ard-error {
53
81
  font-size: 1em;
54
- line-height: 1.1;
82
+ line-height: var(--ard-form-field-hint-error-line-height, 1.2);
55
83
  display: inline-grid;
56
- min-height: 1.1em;
84
+ min-height: calc(var(--ard-form-field-hint-error-line-height, 1.2) * 1em);
57
85
  }
58
86
  .ard-hint {
59
- color: ARD.$text2;
87
+ color: var(--ard-form-field-hint-color, #{ARD.$text2});
60
88
  }
61
89
  .ard-error:not(.ard-hint-error),
62
90
  .ard-form-field__errors .ard-hint-error {
63
- color: ARD.$danger700;
91
+ color: var(--ard-form-field-error-color, #{ARD.$danger700});
64
92
  overflow: hidden;
65
93
  }
66
94
  .ard-error:not(.ard-hint-error) {
67
- animation: errorAppear 0.25s ARD.$timing-fn forwards;
95
+ animation: errorAppear var(--ard-form-field-error-animation-duration, 0.25s) ARD.$timing-fn forwards;
68
96
  }
69
- .ard-form-field__default-hint, .ard-form-field__default-error {
70
- gap: 0.375em;
97
+ .ard-form-field__default-hint,
98
+ .ard-form-field__default-error {
99
+ gap: var(--ard-form-field-hint-error-gap, 0.375em);
71
100
  }
72
101
 
73
102
  &.ard-form-field__with-error {
74
- .ard-label {
75
- color: ARD.$danger700;
103
+ .ard-label,
104
+ ard-label {
105
+ color: var(--ard-form-field-error-color, #{ARD.$danger700});
76
106
  }
77
107
  }
78
108
  &.ard-form-field__is-success {
79
- .ard-label {
80
- color: ARD.$success700;
109
+ .ard-label,
110
+ ard-label {
111
+ color: var(--ard-form-field-success-color, #{ARD.$success700});
81
112
  }
82
113
  }
83
114
  &.ard-form-field__control-disabled {
84
115
  .ard-label {
85
- opacity: 40%;
116
+ opacity: var(--ard-form-field-label-disabled-opacity, 40%);
86
117
  }
87
118
  .ard-form-field__hints {
88
- opacity: 50%;
119
+ opacity: var(--ard-form-field-hint-disabled-opacity, 50%);
89
120
  }
90
121
  }
91
122
  }
@@ -93,10 +124,11 @@ ard-horizontal-form-field {
93
124
  align-items: flex-start;
94
125
  justify-content: stretch;
95
126
  flex-direction: row;
96
- gap: 0.5rem;
127
+ gap: var(--ard-horizontal-form-field-gap, 0.5rem);
97
128
 
98
129
  .ard-form-field__label-container {
99
130
  width: var(--ard-horizontal-form-field-label-width, 12rem);
131
+ min-width: var(--ard-horizontal-form-field-label-width, 12rem);
100
132
  height: ARD.$form-field-height;
101
133
  display: flex;
102
134
  align-items: center;
@@ -113,6 +145,10 @@ ard-horizontal-form-field {
113
145
  }
114
146
  }
115
147
 
148
+ ard-label {
149
+ display: flex;
150
+ }
151
+
116
152
  @keyframes errorAppear {
117
153
  from {
118
154
  grid-template-rows: 0fr;
@@ -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,99 @@
3
3
  @use '../clear-button' as CB;
4
4
  @use '../../variables' as ARD;
5
5
 
6
+ // the variables are commented out intentionally
7
+ // read more in docs/dev/css-variables.md
8
+ :root {
9
+ // --ard-autocomplete-input-height: ;
10
+ // --ard-autocomplete-input-height-compact: ;
11
+ --ard-autocomplete-input-gap: 0.625rem;
12
+ // --ard-autocomplete-input-font-size: ;
13
+ // --ard-autocomplete-input-font-size-compact: ;
14
+ --ard-autocomplete-input-line-height: 1.25;
15
+ --ard-autocomplete-input-line-height-compact: 1;
16
+ --ard-autocomplete-input-font-weight: 400;
17
+ // --ard-autocomplete-input-padding: ;
18
+ // --ard-autocomplete-input-padding-compact: ;
19
+ // --ard-autocomplete-input-color: ;
20
+ // --ard-autocomplete-input-placeholder-color: ;
21
+ --ard-autocomplete-input-placeholder-opacity: 60%;
22
+
23
+ --ard-autocomplete-input-min-width: 10rem;
24
+ --ard-autocomplete-input-max-width: 100%;
25
+ --ard-autocomplete-input-autocomplete-opacity: 37.5%;
26
+ --ard-autocomplete-input-dropdown-padding: 0;
27
+ --ard-autocomplete-input-dropdown-max-height: 15rem;
28
+ --ard-autocomplete-input-dropdown-gap: 0;
29
+ --ard-autocomplete-input-option-padding: 0.375rem 0.625rem;
30
+ --ard-autocomplete-input-option-padding-compact: 0.25rem 0.5rem;
31
+ --ard-autocomplete-input-font-size: 1rem;
32
+ --ard-autocomplete-input-font-size-compact: 0.875rem;
33
+ // --ard-autocomplete-input-highlighted-background: ;
34
+ --ard-autocomplete-input-highlighted-font-weight: 400;
35
+ // --ard-autocomplete-input-selected-background: ;
36
+ --ard-autocomplete-input-selected-font-weight: 500;
37
+ --ard-autocomplete-input-disabled-opacity: 50%;
38
+ }
39
+
6
40
  .ard-autocomplete-input {
7
- @include inputMixin.genericInput();
8
- padding: 0 0.375rem;
9
- min-width: 10rem;
10
- max-width: 100%;
41
+ @include inputMixin.genericInput(
42
+ var(--ard-autocomplete-input-height, var(--ard-form-field-height, 2.3125rem)),
43
+ var(--ard-autocomplete-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
44
+ var(--ard-autocomplete-input-gap, 0.625rem),
45
+ var(--ard-autocomplete-input-font-size, var(--ard-form-field-font-size, 1rem)),
46
+ var(--ard-autocomplete-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
47
+ var(--ard-autocomplete-input-line-height, 1.25),
48
+ var(--ard-autocomplete-input-line-height-compact, 1),
49
+ var(--ard-autocomplete-input-font-weight, 400),
50
+ var(--ard-autocomplete-input-padding, var(--ard-form-field-padding, 0 0.375rem)),
51
+ var(--ard-autocomplete-input-padding-compact, var(--ard-form-field-padding-compact, 0 0.375rem)),
52
+ var(--ard-autocomplete-input-color, #{ARD.$text}),
53
+ var(--ard-autocomplete-input-placeholder-color, #{ARD.$text}),
54
+ var(--ard-autocomplete-input-placeholder-opacity, 60%)
55
+ );
56
+ min-width: var(--ard-autocomplete-input-min-width, 10rem);
57
+ max-width: var(--ard-autocomplete-input-max-width, 100%);
11
58
 
12
59
  @include CB.clearButton();
13
60
 
14
61
  .ard-autocomplete {
15
- opacity: 37.5%;
62
+ opacity: var(--ard-autocomplete-input-autocomplete-opacity, 37.5%);
16
63
  }
17
64
  }
18
65
  //! suggestions
19
66
  .ard-input-suggestions-panel {
67
+ padding: var(--ard-autocomplete-input-dropdown-padding, 0);
68
+ display: flex;
69
+ flex-direction: column;
70
+ gap: var(--ard-autocomplete-input-dropdown-gap, 0);
71
+ max-height: var(--ard-autocomplete-input-dropdown-max-height, 15rem);
72
+ overflow-y: auto;
73
+
20
74
  .ard-option {
21
- padding: 0.375rem 0.625rem;
22
- font-size: 1rem;
23
- color: ARD.$text2;
75
+ padding: var(--ard-autocomplete-input-option-padding, 0.375rem 0.625rem);
76
+ font-size: var(--ard-autocomplete-input-font-size, 1rem);
77
+ color: var(--ard-autocomplete-input-color, #{ARD.$text2});
24
78
  cursor: pointer;
25
79
 
26
80
  &.ard-option-highlighted {
27
- background: ARD.$darken-overlay-light;
81
+ background: var(--ard-autocomplete-input-highlighted-background, #{ARD.$darken-overlay-light});
82
+ font-weight: var(--ard-autocomplete-input-highlighted-font-weight, 400);
28
83
  }
29
84
 
30
85
  &.ard-option-selected {
31
- font-weight: 500;
32
- background: ARD.$darken-overlay-medium;
86
+ background: var(--ard-autocomplete-input-selected-background, #{ARD.$darken-overlay-medium});
87
+ font-weight: var(--ard-autocomplete-input-selected-font-weight, 500);
33
88
  }
34
89
 
35
90
  &.ard-option-disabled {
36
91
  pointer-events: none;
37
- opacity: 50%;
92
+ opacity: var(--ard-autocomplete-input-disabled-opacity, 50%);
38
93
  }
39
94
  }
40
95
  .ard-compact {
41
96
  .ard-option {
42
- padding: 0.25rem 0.5rem;
43
- font-size: 0.9rem;
97
+ padding: var(--ard-autocomplete-input-option-padding-compact, 0.25rem 0.5rem);
98
+ font-size: var(--ard-autocomplete-input-font-size-compact, 0.875rem);
44
99
  }
45
100
  }
46
101
  }
@@ -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
+ // the variables are commented out intentionally
5
+ // read more in docs/dev/css-variables.md
6
+ :root {
7
+ // --ard-date-input-height: ;
8
+ // --ard-date-input-height-compact: ;
9
+ --ard-date-input-gap: 0.625rem;
10
+ // --ard-date-input-font-size: ;
11
+ // --ard-date-input-font-size-compact: ;
12
+ --ard-date-input-line-height: 1.25;
13
+ --ard-date-input-line-height-compact: 1;
14
+ --ard-date-input-font-weight: 400;
15
+ // --ard-date-input-padding-compact: ;
16
+ // --ard-date-input-color: ;
17
+ // --ard-date-input-placeholder-color: ;
18
+ --ard-date-input-placeholder-opacity: 60%;
19
+ // --ard-date-input-padding: ;
20
+
21
+ --ard-date-input-input-padding: 0 2.625rem 0 0.375rem;
22
+ --ard-date-input-multipage-gap: 0;
23
+ }
24
+
25
+ ard-date-input .ard-date-input,
26
+ ard-date-range-input .ard-date-range-input,
27
+ ard-multipage-date-range-input .ard-multipage-date-range-input {
28
+ @include S.genericInput(
29
+ var(--ard-date-input-height, var(--ard-form-field-height, 2.3125rem)),
30
+ var(--ard-date-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
31
+ var(--ard-date-input-gap, 0.625rem),
32
+ var(--ard-date-input-font-size, var(--ard-form-field-font-size, 1rem)),
33
+ var(--ard-date-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
34
+ var(--ard-date-input-line-height, 1.25),
35
+ var(--ard-date-input-line-height-compact, 1),
36
+ var(--ard-date-input-font-weight, 400),
37
+ var(--ard-date-input-padding, var(--ard-form-field-padding, 0 0.375rem)),
38
+ var(--ard-date-input-padding-compact, var(--ard-form-field-padding-compact, 0 0.375rem)),
39
+ var(--ard-date-input-color, #{ARD.$text}),
40
+ var(--ard-date-input-placeholder-color, #{ARD.$text}),
41
+ var(--ard-date-input-placeholder-opacity, 60%)
42
+ );
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
  }