@ardium-ui/ui 5.0.0-alpha.9 → 5.0.0-alpha.90

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 (306) hide show
  1. package/fesm2022/ardium-ui-ui.mjs +5072 -2571
  2. package/fesm2022/ardium-ui-ui.mjs.map +1 -1
  3. package/lib/_internal/boolean-component.d.ts +13 -1
  4. package/lib/_internal/disablable-component.d.ts +2 -1
  5. package/lib/_internal/focusable-component.d.ts +2 -1
  6. package/lib/_internal/form-field-component.d.ts +3 -2
  7. package/lib/_internal/item-storages/dropdown-item-storage.d.ts +21 -21
  8. package/lib/_internal/item-storages/simple-item-storage.d.ts +15 -12
  9. package/lib/_internal/item-storages/simplest-item-storage.d.ts +1 -1
  10. package/lib/_internal/ngmodel-component.d.ts +8 -9
  11. package/lib/_internal/selectable-list-component.d.ts +6 -6
  12. package/lib/_internal/utils/date.utils.d.ts +16 -0
  13. package/lib/badge/badge.directive.d.ts +3 -2
  14. package/lib/breakpoints/breakpoint.service.d.ts +12 -0
  15. package/lib/breakpoints/breakpoint.utils.d.ts +7 -0
  16. package/lib/breakpoints/breakpoints.d.ts +13 -0
  17. package/lib/breakpoints/index.d.ts +2 -0
  18. package/lib/buttons/_button-base.d.ts +12 -8
  19. package/lib/buttons/_button-base.defaults.d.ts +3 -2
  20. package/lib/buttons/button/button.component.d.ts +5 -5
  21. package/lib/buttons/button/button.defaults.d.ts +0 -2
  22. package/lib/buttons/button/button.directive.d.ts +17 -0
  23. package/lib/buttons/button/button.module.d.ts +3 -2
  24. package/lib/buttons/button/index.d.ts +1 -0
  25. package/lib/buttons/fab/fab.component.d.ts +3 -1
  26. package/lib/buttons/icon-button/icon-button.component.d.ts +6 -4
  27. package/lib/buttons/icon-button/icon-button.defaults.d.ts +2 -1
  28. package/lib/calendar/abstract-calendar.d.ts +128 -0
  29. package/lib/calendar/calendar.component.d.ts +8 -96
  30. package/lib/calendar/calendar.defaults.d.ts +16 -1
  31. package/lib/calendar/calendar.internal-directives.d.ts +24 -8
  32. package/lib/calendar/calendar.internal-types.d.ts +1 -0
  33. package/lib/calendar/calendar.module.d.ts +4 -9
  34. package/lib/calendar/calendar.types.d.ts +21 -5
  35. package/lib/calendar/index.d.ts +3 -0
  36. package/lib/calendar/range-calendar.component.d.ts +16 -0
  37. package/lib/calendar/range-calendar.directives.d.ts +51 -0
  38. package/lib/calendar/range-calendar.module.d.ts +10 -0
  39. package/lib/calendar/views/calendar-views.module.d.ts +13 -0
  40. package/lib/calendar/views/days-view/days-view.component.d.ts +20 -2
  41. package/lib/calendar/views/days-view/days-view.helpers.d.ts +2 -2
  42. package/lib/calendar/views/months-view/months-view.component.d.ts +15 -3
  43. package/lib/calendar/views/years-view/years-view.component.d.ts +16 -3
  44. package/lib/checkbox/checkbox.component.d.ts +5 -2
  45. package/lib/checkbox/checkbox.types.d.ts +2 -0
  46. package/lib/checkbox-list/checkbox-list.component.d.ts +9 -7
  47. package/lib/checkbox-list/checkbox-list.directives.d.ts +7 -0
  48. package/lib/checkbox-list/checkbox-list.module.d.ts +1 -1
  49. package/lib/chip/chip.component.d.ts +2 -1
  50. package/lib/chip/deletable-chip/deletable-chip.component.d.ts +2 -1
  51. package/lib/chip/selectable-chip/selectable-chip.component.d.ts +5 -2
  52. package/lib/dialog/dialog.component.d.ts +13 -8
  53. package/lib/dialog/dialog.types.d.ts +1 -0
  54. package/lib/divider/divider.component.d.ts +2 -3
  55. package/lib/divider/divider.defaults.d.ts +5 -0
  56. package/lib/divider/divider.directive.d.ts +18 -0
  57. package/lib/divider/divider.module.d.ts +3 -2
  58. package/lib/divider/divider.types.d.ts +5 -0
  59. package/lib/divider/index.d.ts +2 -0
  60. package/lib/dropdown-panel/dropdown-panel.component.d.ts +2 -1
  61. package/lib/dropdown-panel/dropdown-panel.types.d.ts +1 -1
  62. package/lib/file-inputs/file-input/file-input.component.d.ts +2 -1
  63. package/lib/file-inputs/file-input-base.d.ts +4 -5
  64. package/lib/form-field/auto-error/auto-error.component.d.ts +19 -0
  65. package/lib/form-field/auto-error/auto-error.provider.d.ts +7 -0
  66. package/lib/form-field/error/error.directive.d.ts +3 -2
  67. package/lib/form-field/form-field-base.d.ts +5 -2
  68. package/lib/form-field/form-field-child.token.d.ts +5 -5
  69. package/lib/form-field/form-field-native-inputs.d.ts +6 -11
  70. package/lib/form-field/form-field.component.d.ts +1 -1
  71. package/lib/form-field/form-field.defaults.d.ts +1 -0
  72. package/lib/form-field/form-field.module.d.ts +5 -4
  73. package/lib/form-field/hint/hint.directive.d.ts +3 -2
  74. package/lib/form-field/hint-error/hint-error.directive.d.ts +3 -2
  75. package/lib/form-field/horizontal-form-field.component.d.ts +1 -1
  76. package/lib/form-field/index.d.ts +2 -0
  77. package/lib/form-field/label/label.component.d.ts +3 -2
  78. package/lib/form-field-frame/form-field-frame.component.d.ts +5 -3
  79. package/lib/grid/grid.component.d.ts +51 -0
  80. package/lib/grid/grid.defaults.d.ts +16 -0
  81. package/lib/grid/grid.module.d.ts +7 -0
  82. package/lib/grid/grid.types.d.ts +38 -0
  83. package/lib/grid/grid.utils.d.ts +11 -0
  84. package/lib/grid/index.d.ts +4 -0
  85. package/lib/icon/icon.component.d.ts +2 -1
  86. package/lib/inputs/_simple-input-base.d.ts +9 -4
  87. package/lib/inputs/autocomplete-input/autocomplete-input.component.d.ts +5 -4
  88. package/lib/inputs/date-input/abstract-date-input.d.ts +112 -0
  89. package/lib/inputs/date-input/date-input.component.d.ts +19 -81
  90. package/lib/inputs/date-input/date-input.defaults.d.ts +21 -3
  91. package/lib/inputs/date-input/{date-input.directive.d.ts → date-input.directives.d.ts} +2 -2
  92. package/lib/inputs/date-input/date-input.module.d.ts +5 -4
  93. package/lib/inputs/date-input/date-input.serializers.d.ts +4 -2
  94. package/lib/inputs/date-input/date-input.types.d.ts +5 -4
  95. package/lib/inputs/date-input/date-range-input.component.d.ts +30 -0
  96. package/lib/inputs/date-input/date-range-input.directives.d.ts +82 -0
  97. package/lib/inputs/date-input/date-range-input.module.d.ts +17 -0
  98. package/lib/inputs/date-input/index.d.ts +7 -1
  99. package/lib/inputs/date-input/multipage-date-range-input.component.d.ts +45 -0
  100. package/lib/inputs/date-input/multipage-date-range-input.directives.d.ts +82 -0
  101. package/lib/inputs/date-input/multipage-date-range-input.module.d.ts +17 -0
  102. package/lib/inputs/digit-input/digit-input.component.d.ts +4 -3
  103. package/lib/inputs/hex-input/hex-input.component.d.ts +5 -5
  104. package/lib/inputs/input-types.d.ts +9 -0
  105. package/lib/inputs/input-utils.d.ts +13 -2
  106. package/lib/inputs/number-input/number-input.component.d.ts +20 -13
  107. package/lib/inputs/number-input/number-input.defaults.d.ts +6 -0
  108. package/lib/inputs/number-input/number-input.directives.d.ts +12 -0
  109. package/lib/inputs/number-input/number-input.module.d.ts +1 -1
  110. package/lib/inputs/number-input/number-input.types.d.ts +6 -0
  111. package/lib/inputs/password-input/password-input.component.d.ts +6 -5
  112. package/lib/kbd/kbd.component.d.ts +2 -1
  113. package/lib/kbd-shortcut/kbd-shortcut.component.d.ts +2 -1
  114. package/lib/modal/modal.component.d.ts +9 -6
  115. package/lib/modal/modal.defaults.d.ts +2 -0
  116. package/lib/option/option.component.d.ts +2 -1
  117. package/lib/progress-bar/progress-bar.component.d.ts +4 -3
  118. package/lib/progress-circle/progress-circle.component.d.ts +5 -4
  119. package/lib/radio/radio/radio.component.d.ts +8 -3
  120. package/lib/radio/radio-group.component.d.ts +2 -2
  121. package/lib/search-functions.d.ts +1 -1
  122. package/lib/segment/segment.component.d.ts +6 -5
  123. package/lib/select/select.component.d.ts +45 -39
  124. package/lib/select/select.defaults.d.ts +4 -2
  125. package/lib/select/select.directive.d.ts +6 -0
  126. package/lib/select/select.module.d.ts +1 -1
  127. package/lib/select/select.types.d.ts +6 -2
  128. package/lib/slide-toggle/slide-toggle.component.d.ts +2 -0
  129. package/lib/slider/abstract-slider.d.ts +37 -29
  130. package/lib/slider/index.d.ts +1 -0
  131. package/lib/slider/range-slider/range-slider.component.d.ts +12 -9
  132. package/lib/slider/range-slider/range-slider.types.d.ts +6 -0
  133. package/lib/slider/slider.component.d.ts +5 -4
  134. package/lib/slider/slider.types.d.ts +3 -3
  135. package/lib/snackbar/snackbar-ref.d.ts +37 -4
  136. package/lib/snackbar/snackbar.service.d.ts +27 -0
  137. package/lib/snackbar/snackbar.types.d.ts +36 -0
  138. package/lib/star/rating-display/rating-display.component.d.ts +2 -1
  139. package/lib/star/rating-input/rating-input.component.d.ts +5 -3
  140. package/lib/star/rating-input/rating-input.defaults.d.ts +2 -2
  141. package/lib/star/star-button/star-button.component.d.ts +4 -1
  142. package/lib/star/star-button/star-button.types.d.ts +1 -0
  143. package/lib/tabber/index.d.ts +2 -1
  144. package/lib/tabber/tab/tab.component.d.ts +16 -8
  145. package/lib/tabber/tabber.component.d.ts +25 -9
  146. package/lib/tabber/tabber.defaults.d.ts +2 -0
  147. package/lib/tabber/tabber.directives.d.ts +9 -0
  148. package/lib/tabber/tabber.module.d.ts +3 -2
  149. package/lib/tabber/tabber.types.d.ts +5 -0
  150. package/lib/table/table.component.d.ts +16 -15
  151. package/lib/table-pagination/table-pagination.component.d.ts +4 -3
  152. package/lib/text-list/text-list.component.d.ts +2 -1
  153. package/lib/types/alignment.types.d.ts +7 -1
  154. package/lib/types/item-storage.types.d.ts +29 -18
  155. package/lib/types/theming.types.d.ts +1 -0
  156. package/package.json +3 -2
  157. package/prebuilt-themes/default/badge.css +234 -205
  158. package/prebuilt-themes/default/badge.css.map +1 -1
  159. package/prebuilt-themes/default/buttons/button.css +324 -301
  160. package/prebuilt-themes/default/buttons/button.css.map +1 -1
  161. package/prebuilt-themes/default/buttons/fab.css +317 -299
  162. package/prebuilt-themes/default/buttons/fab.css.map +1 -1
  163. package/prebuilt-themes/default/buttons/icon-button.css +299 -287
  164. package/prebuilt-themes/default/buttons/icon-button.css.map +1 -1
  165. package/prebuilt-themes/default/calendar.css +390 -308
  166. package/prebuilt-themes/default/calendar.css.map +1 -1
  167. package/prebuilt-themes/default/card.css +151 -127
  168. package/prebuilt-themes/default/card.css.map +1 -1
  169. package/prebuilt-themes/default/checkbox-list.css +89 -62
  170. package/prebuilt-themes/default/checkbox-list.css.map +1 -1
  171. package/prebuilt-themes/default/checkbox.css +349 -362
  172. package/prebuilt-themes/default/checkbox.css.map +1 -1
  173. package/prebuilt-themes/default/chips.css +412 -359
  174. package/prebuilt-themes/default/chips.css.map +1 -1
  175. package/prebuilt-themes/default/color-display.css +34 -26
  176. package/prebuilt-themes/default/color-display.css.map +1 -1
  177. package/prebuilt-themes/default/color-picker.css +105 -103
  178. package/prebuilt-themes/default/color-picker.css.map +1 -1
  179. package/prebuilt-themes/default/core.css +108 -86
  180. package/prebuilt-themes/default/core.css.map +1 -1
  181. package/prebuilt-themes/default/dialog.css +19 -15
  182. package/prebuilt-themes/default/dialog.css.map +1 -1
  183. package/prebuilt-themes/default/divider.css +84 -8
  184. package/prebuilt-themes/default/divider.css.map +1 -1
  185. package/prebuilt-themes/default/dropdown-panel.css +42 -34
  186. package/prebuilt-themes/default/dropdown-panel.css.map +1 -1
  187. package/prebuilt-themes/default/file-drop-area.css +329 -276
  188. package/prebuilt-themes/default/file-drop-area.css.map +1 -1
  189. package/prebuilt-themes/default/form-field-frame.css +102 -98
  190. package/prebuilt-themes/default/form-field-frame.css.map +1 -1
  191. package/prebuilt-themes/default/form-field.css +148 -118
  192. package/prebuilt-themes/default/form-field.css.map +1 -1
  193. package/prebuilt-themes/default/inputs/autocomplete-input.css +183 -132
  194. package/prebuilt-themes/default/inputs/autocomplete-input.css.map +1 -1
  195. package/prebuilt-themes/default/inputs/color-input.css +99 -137
  196. package/prebuilt-themes/default/inputs/color-input.css.map +1 -1
  197. package/prebuilt-themes/default/inputs/date-input.css +134 -63
  198. package/prebuilt-themes/default/inputs/date-input.css.map +1 -1
  199. package/prebuilt-themes/default/inputs/digit-input.css +120 -110
  200. package/prebuilt-themes/default/inputs/digit-input.css.map +1 -1
  201. package/prebuilt-themes/default/inputs/file-input.css +385 -325
  202. package/prebuilt-themes/default/inputs/file-input.css.map +1 -1
  203. package/prebuilt-themes/default/inputs/hex-input.css +150 -117
  204. package/prebuilt-themes/default/inputs/hex-input.css.map +1 -1
  205. package/prebuilt-themes/default/inputs/input.css +137 -107
  206. package/prebuilt-themes/default/inputs/input.css.map +1 -1
  207. package/prebuilt-themes/default/inputs/number-input.css +213 -164
  208. package/prebuilt-themes/default/inputs/number-input.css.map +1 -1
  209. package/prebuilt-themes/default/inputs/password-input.css +120 -71
  210. package/prebuilt-themes/default/inputs/password-input.css.map +1 -1
  211. package/prebuilt-themes/default/kbd-shortcut.css +14 -9
  212. package/prebuilt-themes/default/kbd-shortcut.css.map +1 -1
  213. package/prebuilt-themes/default/kbd.css +26 -15
  214. package/prebuilt-themes/default/kbd.css.map +1 -1
  215. package/prebuilt-themes/default/modal.css +96 -71
  216. package/prebuilt-themes/default/modal.css.map +1 -1
  217. package/prebuilt-themes/default/progress-bar.css +250 -228
  218. package/prebuilt-themes/default/progress-bar.css.map +1 -1
  219. package/prebuilt-themes/default/progress-circle.css +178 -164
  220. package/prebuilt-themes/default/progress-circle.css.map +1 -1
  221. package/prebuilt-themes/default/radio.css +246 -223
  222. package/prebuilt-themes/default/radio.css.map +1 -1
  223. package/prebuilt-themes/default/segment.css +432 -414
  224. package/prebuilt-themes/default/segment.css.map +1 -1
  225. package/prebuilt-themes/default/select.css +302 -270
  226. package/prebuilt-themes/default/select.css.map +1 -1
  227. package/prebuilt-themes/default/slide-toggle.css +319 -261
  228. package/prebuilt-themes/default/slide-toggle.css.map +1 -1
  229. package/prebuilt-themes/default/slider.css +399 -351
  230. package/prebuilt-themes/default/slider.css.map +1 -1
  231. package/prebuilt-themes/default/snackbar.css +189 -169
  232. package/prebuilt-themes/default/snackbar.css.map +1 -1
  233. package/prebuilt-themes/default/spinner.css +161 -148
  234. package/prebuilt-themes/default/spinner.css.map +1 -1
  235. package/prebuilt-themes/default/stars.css +271 -246
  236. package/prebuilt-themes/default/stars.css.map +1 -1
  237. package/prebuilt-themes/default/tabber.css +250 -207
  238. package/prebuilt-themes/default/tabber.css.map +1 -1
  239. package/prebuilt-themes/default/table-pagination.css +57 -45
  240. package/prebuilt-themes/default/table-pagination.css.map +1 -1
  241. package/prebuilt-themes/default/table.css +464 -432
  242. package/prebuilt-themes/default/table.css.map +1 -1
  243. package/public-api.d.ts +2 -1
  244. package/themes/_variables.scss +2 -1
  245. package/themes/default/_coloring.scss +7 -0
  246. package/themes/default/_mixins.scss +5 -5
  247. package/themes/default/badge.scss +115 -80
  248. package/themes/default/buttons/_button-mixins.scss +43 -33
  249. package/themes/default/buttons/button.scss +90 -63
  250. package/themes/default/buttons/fab.scss +74 -49
  251. package/themes/default/buttons/icon-button.scss +70 -45
  252. package/themes/default/calendar.scss +257 -163
  253. package/themes/default/card.scss +167 -121
  254. package/themes/default/checkbox-list.scss +90 -62
  255. package/themes/default/checkbox.scss +64 -91
  256. package/themes/default/chips.scss +203 -143
  257. package/themes/default/color-display.scss +40 -28
  258. package/themes/default/color-picker.scss +95 -93
  259. package/themes/default/core.scss +123 -97
  260. package/themes/default/dialog.scss +22 -13
  261. package/themes/default/divider.scss +109 -7
  262. package/themes/default/dropdown-panel.scss +49 -34
  263. package/themes/default/file-drop-area.scss +197 -138
  264. package/themes/default/form-field-frame.scss +73 -63
  265. package/themes/default/form-field.scss +136 -98
  266. package/themes/default/inputs/_shared.scss +52 -12
  267. package/themes/default/inputs/autocomplete-input.scss +102 -31
  268. package/themes/default/inputs/color-input.scss +34 -32
  269. package/themes/default/inputs/date-input.scss +90 -20
  270. package/themes/default/inputs/digit-input.scss +103 -79
  271. package/themes/default/inputs/file-input.scss +160 -81
  272. package/themes/default/inputs/hex-input.scss +68 -16
  273. package/themes/default/inputs/input.scss +55 -6
  274. package/themes/default/inputs/number-input.scss +164 -92
  275. package/themes/default/inputs/password-input.scss +100 -29
  276. package/themes/default/kbd-shortcut.scss +16 -8
  277. package/themes/default/kbd.scss +35 -16
  278. package/themes/default/modal.scss +109 -73
  279. package/themes/default/progress-bar.scss +126 -102
  280. package/themes/default/progress-circle.scss +49 -41
  281. package/themes/default/radio.scss +110 -87
  282. package/themes/default/segment.scss +282 -267
  283. package/themes/default/select.scss +255 -197
  284. package/themes/default/slide-toggle.scss +193 -116
  285. package/themes/default/slider.scss +230 -187
  286. package/themes/default/snackbar.scss +52 -32
  287. package/themes/default/spinner.scss +24 -14
  288. package/themes/default/stars.scss +99 -68
  289. package/themes/default/tabber.scss +109 -67
  290. package/themes/default/table-pagination.scss +60 -44
  291. package/themes/default/table.scss +379 -343
  292. package/lib/statebox/index.d.ts +0 -4
  293. package/lib/statebox/statebox.component.d.ts +0 -26
  294. package/lib/statebox/statebox.defaults.d.ts +0 -10
  295. package/lib/statebox/statebox.module.d.ts +0 -8
  296. package/lib/statebox/statebox.types.d.ts +0 -26
  297. package/lib/tabber/tab/tab.defaults.d.ts +0 -6
  298. package/prebuilt-themes/default/calendar-OLD.css +0 -294
  299. package/prebuilt-themes/default/calendar-OLD.css.map +0 -1
  300. package/prebuilt-themes/default/inputs/search-bar.css +0 -118
  301. package/prebuilt-themes/default/inputs/search-bar.css.map +0 -1
  302. package/prebuilt-themes/default/statebox.css +0 -235
  303. package/prebuilt-themes/default/statebox.css.map +0 -1
  304. package/themes/default/calendar-OLD.scss +0 -183
  305. package/themes/default/inputs/search-bar.scss +0 -19
  306. package/themes/default/statebox.scss +0 -109
@@ -1,32 +1,102 @@
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
+ @layer ard-ui {
5
+ // the variables are commented out intentionally
6
+ // read more in docs/dev/css-variables.md
7
+ :root {
8
+ // --ard-date-input-height: ;
9
+ // --ard-date-input-height-compact: ;
10
+ --ard-date-input-gap: 0.625rem;
11
+ // --ard-date-input-font-size: ;
12
+ // --ard-date-input-font-size-compact: ;
13
+ --ard-date-input-line-height: 1.25;
14
+ --ard-date-input-line-height-compact: 1;
15
+ --ard-date-input-font-weight: 400;
16
+ // --ard-date-input-padding-top: ;
17
+ // --ard-date-input-padding-right: ;
18
+ // --ard-date-input-padding-bottom: ;
19
+ // --ard-date-input-padding-left: ;
20
+ // --ard-date-input-padding-top-compact: ;
21
+ // --ard-date-input-padding-right-compact: ;
22
+ // --ard-date-input-padding-bottom-compact: ;
23
+ // --ard-date-input-padding-left-compact: ;
24
+ // --ard-date-input-color: ;
25
+ // --ard-date-input-placeholder-color: ;
26
+ --ard-date-input-placeholder-opacity: 60%;
7
27
 
8
- .ard-date-input__value-container {
9
- flex-grow: 1;
10
- position: unset;
28
+ --ard-date-input-input-padding: 0 2.625rem 0 0.375rem;
29
+ --ard-date-input-multipage-gap: 0;
11
30
  }
12
- .ard-date-input__placeholder {
13
- position: absolute;
14
- }
15
- .ard-date-input__input-container {
16
- position: absolute;
17
- inset: 0;
18
31
 
19
- &.ard-date-input__input-container-hidden {
32
+ ard-date-input .ard-date-input,
33
+ ard-date-range-input .ard-date-range-input,
34
+ ard-multipage-date-range-input .ard-multipage-date-range-input {
35
+ @include S.genericInput(
36
+ var(--ard-date-input-height, var(--ard-form-field-height, 2.3125rem)),
37
+ var(--ard-date-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
38
+ var(--ard-date-input-gap, 0.625rem),
39
+ var(--ard-date-input-font-size, var(--ard-form-field-font-size, 1rem)),
40
+ var(--ard-date-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
41
+ var(--ard-date-input-line-height, 1.25),
42
+ var(--ard-date-input-line-height-compact, 1),
43
+ var(--ard-date-input-font-weight, 400),
44
+ var(--ard-date-input-padding-top, var(--ard-form-field-padding-top, 0)),
45
+ var(--ard-date-input-padding-right, var(--ard-form-field-padding-right, 0.375rem)),
46
+ var(--ard-date-input-padding-bottom, var(--ard-form-field-padding-bottom, 0)),
47
+ var(--ard-date-input-padding-left, var(--ard-form-field-padding-left, 0.375rem)),
48
+ var(--ard-date-input-padding-top-compact, var(--ard-form-field-padding-top-compact, 0)),
49
+ var(--ard-date-input-padding-right-compact, var(--ard-form-field-padding-right-compact, 0.375rem)),
50
+ var(--ard-date-input-padding-bottom-compact, var(--ard-form-field-padding-bottom-compact, 0)),
51
+ var(--ard-date-input-padding-left-compact, var(--ard-form-field-padding-left-compact, 0.375rem)),
52
+ var(--ard-date-input-color, #{ARD.$text}),
53
+ var(--ard-date-input-placeholder-color, #{ARD.$text}),
54
+ var(--ard-date-input-placeholder-opacity, 60%)
55
+ );
56
+ display: grid;
57
+ grid-template-columns: 1fr max-content;
58
+
59
+ .ard-date-input__value-container {
60
+ position: relative;
61
+ }
62
+ .ard-date-input__placeholder {
63
+ position: absolute;
64
+ padding: 0;
65
+ }
66
+ .ard-date-input__input-container {
20
67
  position: absolute;
21
- opacity: 0;
22
- appearance: none;
68
+ inset: 0;
69
+ padding: 0;
70
+
71
+ &.ard-date-input__input-container-hidden {
72
+ position: absolute;
73
+ opacity: 0;
74
+ appearance: none;
75
+ }
76
+
77
+ input {
78
+ box-sizing: border-box;
79
+ width: 100%;
80
+ height: 100%;
81
+ padding: var(--ard-date-input-input-padding, 0 2.625rem 0 0.375rem);
82
+ }
83
+ }
84
+ .ard-date-input__value {
85
+ display: flex;
86
+ align-items: center;
87
+ padding: 0;
23
88
  }
89
+ }
24
90
 
25
- input {
26
- box-sizing: border-box;
27
- width: 100%;
28
- height: 100%;
29
- padding: 0 2.625rem 0 0.375rem;
91
+ ard-days-view {
92
+ .ard-calendar__header-button {
93
+ font-size: var(--ard-button-font-size, 0.875rem);
94
+ font-weight: var(--ard-button-font-weight, 500);
30
95
  }
31
96
  }
97
+ .ard-date-input__multipage-wrapper {
98
+ display: flex;
99
+ flex-direction: row;
100
+ gap: var(--ard-date-input-multipage-gap, 0);
101
+ }
32
102
  }
@@ -2,103 +2,127 @@
2
2
  @use '../../variables' as ARD;
3
3
  @use '../mixins' as defaultMixins;
4
4
 
5
- ard-digit-input {
6
- font-family: 'Roboto', sans-serif;
7
- font-weight: 500;
8
- color: ARD.$text;
9
- }
5
+ @layer ard-ui {
6
+ // the variables are commented out intentionally
7
+ // read more in docs/dev/css-variables.md
8
+ :root {
9
+ // --ard-digit-input-font-family: ;
10
+ --ard-digit-input-font-weight: 500;
11
+ // --ard-digit-input-color: ;
12
+ --ard-digit-input-gap: 0.375em;
13
+ --ard-digit-input-size: 2.0625em;
14
+ // --ard-digit-input-caret-color: ;
15
+ // --ard-digit-input-placeholder-color: ;
16
+ --ard-digit-input-placeholder-opacity: 60%;
17
+ --ard-digit-input-transition-duration: 150ms;
18
+ // --ard-digit-input-rectangle-height: ;
19
+ --ard-digit-input-rectangle-font-size: 1.25em;
20
+ --ard-digit-input-success-background-color: transparent;
21
+ // --ard-digit-input-success-border-color: ;
22
+ // --ard-digit-input-error-background-color: ;
23
+ // --ard-digit-input-error-border-color: ;
24
+ --ard-digit-input-disabled-opacity: 50%;
25
+ }
10
26
 
11
- .ard-digit-input,
12
- .ard-digit-input__item,
13
- .ard-digit-input__input,
14
- .ard-digit-input__static {
15
- font: inherit;
16
- color: inherit;
17
- }
18
- .ard-digit-input {
19
- @include defaultMixins.formAppearances();
20
- display: flex;
21
- gap: 0.375em;
27
+ ard-digit-input {
28
+ font-family: var(--ard-digit-input-font-family, var(--ard-font-family));
29
+ font-weight: var(--ard-digit-input-font-weight, 500);
30
+ color: var(--ard-digit-input-color, #{ARD.$text});
31
+ }
22
32
 
23
- .ard-digit-input__item {
24
- height: max-content;
33
+ .ard-digit-input,
34
+ .ard-digit-input__item,
35
+ .ard-digit-input__input,
36
+ .ard-digit-input__static {
37
+ font: inherit;
38
+ color: inherit;
39
+ }
40
+ .ard-digit-input {
41
+ @include defaultMixins.formAppearances();
25
42
  display: flex;
26
- height: 2.0625em;
27
- box-sizing: border-box;
43
+ gap: var(--ard-digit-input-gap, 0.375em);
28
44
 
29
- &.ard-digit-input__item-with-input {
30
- width: 2.0625em;
31
- }
32
- .ard-digit-input__input {
33
- width: 100%;
34
- height: 100%;
45
+ .ard-digit-input__item {
46
+ height: max-content;
47
+ display: flex;
48
+ height: var(--ard-digit-input-size, 2.0625em);
35
49
  box-sizing: border-box;
36
- text-align: center;
37
- color: ARD.$text;
38
- caret-color: ARD.$text3;
39
- background: var(--ard-appearance-background);
40
- border: var(--ard-appearance-border);
41
- border-radius: var(--ard-variant-border-radius);
42
- transition:
43
- border-color 0.15s ARD.$timing-fn,
44
- background-color 0.15s ARD.$timing-fn;
45
50
 
46
- &::placeholder {
47
- color: ARD.$text3;
48
- opacity: 60%;
51
+ &.ard-digit-input__item-with-input {
52
+ width: var(--ard-digit-input-size, 2.0625em);
49
53
  }
54
+ .ard-digit-input__input {
55
+ width: 100%;
56
+ height: 100%;
57
+ box-sizing: border-box;
58
+ text-align: center;
59
+ color: inherit;
60
+ caret-color: var(--ard-digit-input-caret-color, #{ARD.$text3});
61
+ background: var(--ard-appearance-background);
62
+ border: var(--ard-appearance-border);
63
+ border-radius: var(--ard-variant-border-radius);
64
+ transition:
65
+ border-color var(--ard-digit-input-transition-duration, 0.15s) ARD.$timing-fn,
66
+ background-color var(--ard-digit-input-transition-duration, 0.15s) ARD.$timing-fn;
67
+
68
+ &::placeholder {
69
+ color: var(--ard-digit-input-placeholder-color, #{ARD.$text3});
70
+ opacity: var(--ard-digit-input-placeholder-opacity, 60%);
71
+ }
50
72
 
51
- &:not(.ard-digit-input__input-empty) {
52
- caret-color: transparent;
73
+ &:not(.ard-digit-input__input-empty) {
74
+ caret-color: transparent;
75
+ }
76
+ }
77
+ .ard-digit-input__static {
78
+ width: max-content;
79
+ white-space: nowrap;
80
+ display: flex;
81
+ align-items: center;
53
82
  }
54
83
  }
55
- .ard-digit-input__static {
56
- width: max-content;
57
- white-space: nowrap;
58
- display: flex;
59
- align-items: center;
60
- }
61
- }
62
- &.ard-shape-square {
63
- .ard-digit-input__item {
64
- height: 2.0625em;
84
+ &.ard-shape-square {
85
+ .ard-digit-input__item {
86
+ height: var(--ard-digit-input-size, 2.0625em);
87
+ }
65
88
  }
66
- }
67
- &.ard-shape-rectangle {
68
- .ard-digit-input__item {
69
- height: 2.0625em * 1.3;
89
+ &.ard-shape-rectangle {
90
+ .ard-digit-input__item {
91
+ height: var(--ard-digit-input-rectangle-height, calc(var(--ard-digit-input-size, 2.0625em) * 1.3));
70
92
 
71
- .ard-digit-input__input {
72
- font-size: 1.2em;
93
+ .ard-digit-input__input {
94
+ font-size: var(--ard-digit-input-rectangle-font-size, 1.25em);
95
+ }
73
96
  }
74
97
  }
75
- }
76
98
 
77
- &.ard-is-success {
78
- .ard-digit-input__item .ard-digit-input__input {
79
- border-color: ARD.$success500;
99
+ &.ard-is-success {
100
+ .ard-digit-input__item .ard-digit-input__input {
101
+ background-color: var(--ard-digit-input-success-background-color, transparent);
102
+ border-color: var(--ard-digit-input-success-border-color, #{ARD.$success500});
103
+ }
80
104
  }
81
- }
82
- &.ard-has-error {
83
- .ard-digit-input__item .ard-digit-input__input {
84
- background-color: ARD.$danger50;
85
- border-color: ARD.$danger500;
105
+ &.ard-has-error {
106
+ .ard-digit-input__item .ard-digit-input__input {
107
+ background-color: var(--ard-digit-input-error-background-color, #{ARD.$danger50});
108
+ border-color: var(--ard-digit-input-error-border-color, #{ARD.$danger500});
109
+ }
86
110
  }
87
- }
88
111
 
89
- &.ard-variant-rounded {
90
- --ard-variant-border-radius: 0.25em;
91
- }
92
- &.ard-variant-pill {
93
- --ard-variant-border-radius: 9999px;
94
- }
95
- &.ard-variant-sharp {
96
- --ard-variant-border-radius: 0;
112
+ &.ard-variant-rounded {
113
+ --ard-variant-border-radius: var(--ard-digit-input-border-radius, var(--ard-rounded-corner-radius, 0.375rem));
114
+ }
115
+ &.ard-variant-pill {
116
+ --ard-variant-border-radius: 9999px;
117
+ }
118
+ &.ard-variant-sharp {
119
+ --ard-variant-border-radius: 0;
120
+ }
97
121
  }
98
- }
99
- .ard-disabled {
100
- > .ard-digit-input {
101
- opacity: 50%;
102
- pointer-events: none;
122
+ .ard-disabled {
123
+ > .ard-digit-input {
124
+ opacity: var(--ard-digit-input-disabled-opacity, 50%);
125
+ pointer-events: none;
126
+ }
103
127
  }
104
128
  }
@@ -4,105 +4,184 @@
4
4
  @use '../coloring' as CM;
5
5
  @use '../../variables' as ARD;
6
6
 
7
- .ard-file-input-form-field-frame {
8
- .ard-form-field-overlay {
9
- display: none;
10
- }
11
- }
12
- .ard-file-input {
13
- @include CM.typeColors();
14
- @include inputMixin.genericInput();
15
- padding: 0 0.375rem;
16
- min-width: 10rem;
17
- max-width: 100%;
18
- gap: 0.375rem;
19
- cursor: default;
20
- border-radius: var(--ard-variant-border-radius);
7
+ @layer ard-ui {
8
+ // the variables are commented out intentionally
9
+ // read more in docs/dev/css-variables.md
10
+ :root {
11
+ // --ard-file-input-height: ;
12
+ // --ard-file-input-height-compact: ;
13
+ --ard-file-input-gap: 0.625rem;
14
+ // --ard-file-input-font-size: ;
15
+ // --ard-file-input-font-size-compact: ;
16
+ --ard-file-input-line-height: 1.25;
17
+ --ard-file-input-line-height-compact: 1;
18
+ --ard-file-input-font-weight: 400;
19
+ // --ard-file-input-padding-top: ;
20
+ // --ard-file-input-padding-right: ;
21
+ // --ard-file-input-padding-bottom: ;
22
+ // --ard-file-input-padding-left: ;
23
+ // --ard-file-input-padding-top-compact: ;
24
+ // --ard-file-input-padding-right-compact: ;
25
+ // --ard-file-input-padding-bottom-compact: ;
26
+ // --ard-file-input-padding-left-compact: ;
27
+ // --ard-file-input-color: ;
28
+ // --ard-file-input-placeholder-color: ;
29
+ --ard-file-input-placeholder-opacity: 60%;
21
30
 
22
- *:not(button):not(ard-clear-button) {
23
- pointer-events: none;
24
- user-select: none;
31
+ --ard-file-input-min-width: 10rem;
32
+ --ard-file-input-max-width: 100%;
33
+ --ard-file-input-gap: 0.375rem;
34
+ --ard-file-input-dragover-outline-width: 2px;
35
+ --ard-file-input-dragover-outline-style: solid;
36
+ --ard-file-input-browse-button-height: calc(100% - 0.25rem);
37
+ --ard-file-input-browse-button-width: unset;
38
+ --ard-file-input-browse-button-margin: 0.125rem;
39
+ --ard-file-input-browse-button-aspect-ratio: 1;
40
+ --ard-file-input-browse-button-border: none;
41
+ --ard-file-input-browse-button-border-radius: 9999px;
42
+ --ard-file-input-browse-button-background: none;
43
+ --ard-file-input-browse-button-padding: 0;
44
+ // --ard-file-input-browse-button-color: ;
45
+ // --ard-file-input-browse-button-color-error: ;
46
+ --ard-file-input-browse-button-overlay-offset: 0rem;
47
+ // --ard-file-input-browse-button-overlay-color: ;
48
+ --ard-file-input-browse-button-overlay-hover-opacity: 4%;
49
+ --ard-file-input-browse-button-overlay-focus-opacity: 0;
50
+ --ard-file-input-browse-button-overlay-active-opacity: 12%;
51
+ --ard-file-input-browse-button-overlay-focus-visible-opacity: 16%;
52
+ --ard-file-input-file-name-font-weight: 500;
53
+ --ard-file-input-file-ext-font-weight: 500;
25
54
  }
26
55
 
27
- &.ard-state-dragover {
28
- outline: 2px solid var(--ard-cmpcl--content-light);
56
+ .ard-file-input-form-field-frame {
57
+ .ard-form-field-overlay {
58
+ display: none;
59
+ }
29
60
  }
61
+ .ard-file-input {
62
+ @include inputMixin.genericInput(
63
+ var(--ard-file-input-height, var(--ard-form-field-height, 2.3125rem)),
64
+ var(--ard-file-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
65
+ var(--ard-file-input-gap, 0.625rem),
66
+ var(--ard-file-input-font-size, var(--ard-form-field-font-size, 1rem)),
67
+ var(--ard-file-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
68
+ var(--ard-file-input-line-height, 1.25),
69
+ var(--ard-file-input-line-height-compact, 1),
70
+ var(--ard-file-input-font-weight, 400),
71
+ var(--ard-file-input-padding-top, var(--ard-form-field-padding-top, 0)),
72
+ var(--ard-file-input-padding-right, var(--ard-form-field-padding-right, 0.375rem)),
73
+ var(--ard-file-input-padding-bottom, var(--ard-form-field-padding-bottom, 0)),
74
+ var(--ard-file-input-padding-left, var(--ard-form-field-padding-left, 0.375rem)),
75
+ var(--ard-file-input-padding-top-compact, var(--ard-form-field-padding-top-compact, 0)),
76
+ var(--ard-file-input-padding-right-compact, var(--ard-form-field-padding-right-compact, 0.375rem)),
77
+ var(--ard-file-input-padding-bottom-compact, var(--ard-form-field-padding-bottom-compact, 0)),
78
+ var(--ard-file-input-padding-left-compact, var(--ard-form-field-padding-left-compact, 0.375rem)),
79
+ var(--ard-file-input-color, #{ARD.$text}),
80
+ var(--ard-file-input-placeholder-color, #{ARD.$text}),
81
+ var(--ard-file-input-placeholder-opacity, 60%)
82
+ );
83
+ @include CM.typeColors();
84
+ min-width: var(--ard-file-input-min-width, 10rem);
85
+ max-width: var(--ard-file-input-max-width, 100%);
86
+ gap: var(--ard-file-input-gap, 0.375rem);
87
+ cursor: default;
88
+ border-radius: var(--ard-variant-border-radius);
30
89
 
31
- .ard-file-input__value {
32
- font-size: 92%;
33
- overflow: hidden;
34
- text-overflow: ellipsis;
35
- max-height: 1.25rem;
36
- }
37
- .ard-browse-button {
38
- 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;
45
- position: relative;
46
- display: flex;
47
- justify-content: center;
48
- align-items: center;
49
- outline: none;
90
+ *:not(button):not(ard-clear-button) {
91
+ pointer-events: none;
92
+ user-select: none;
93
+ }
50
94
 
51
- .ard-focus-overlay {
52
- @include defaultMixins.focus-overlay(0.25rem);
53
- background: ARD.$overlay;
54
- border-radius: 9999px;
95
+ &.ard-state-dragover {
96
+ outline: var(--ard-file-input-dragover-outline-width, 2px) var(--ard-file-input-dragover-outline-style, solid)
97
+ var(--ard-cmpcl--content-light);
55
98
  }
56
- &:hover {
57
- .ard-focus-overlay {
58
- opacity: 4%;
59
- }
99
+
100
+ .ard-file-input__value {
101
+ overflow: hidden;
102
+ text-overflow: ellipsis;
103
+ display: flex;
104
+ align-items: center;
60
105
  }
61
- &:focus {
106
+ .ard-browse-button {
107
+ cursor: pointer;
108
+ height: var(--ard-file-input-browse-button-height, calc(100% - 0.25rem));
109
+ width: var(--ard-file-input-browse-button-width, unset);
110
+ margin: var(--ard-file-input-browse-button-margin, 0.125rem);
111
+ aspect-ratio: var(--ard-file-input-browse-button-aspect-ratio, 1);
112
+ border: var(--ard-file-input-browse-button-border, none);
113
+ border-radius: var(--ard-file-input-browse-button-border-radius, 9999px);
114
+ background: var(--ard-file-input-browse-button-background, none);
115
+ padding: var(--ard-file-input-browse-button-padding, 0);
116
+ color: var(--ard-file-input-browse-button-color, #{ARD.$text});
117
+ position: relative;
118
+ display: flex;
119
+ justify-content: center;
120
+ align-items: center;
121
+ outline: none;
122
+
62
123
  .ard-focus-overlay {
63
- opacity: 8%;
124
+ @include defaultMixins.focus-overlay(var(--ard-file-input-browse-button-overlay-offset, 0.25rem));
125
+ background: var(--ard-file-input-browse-button-overlay-color, #{ARD.$overlay});
126
+ border-radius: var(--ard-file-input-browse-button-border-radius, 9999px);
64
127
  }
65
- }
66
- &:active {
67
- .ard-focus-overlay {
68
- opacity: 12%;
128
+ &:hover {
129
+ .ard-focus-overlay {
130
+ opacity: var(--ard-file-input-browse-button-overlay-hover-opacity, 4%);
131
+ }
69
132
  }
70
- }
71
- &:focus-visible {
72
- .ard-focus-overlay {
73
- opacity: 16%;
133
+ &:focus {
134
+ .ard-focus-overlay {
135
+ opacity: var(--ard-file-input-browse-button-overlay-focus-opacity, 8%);
136
+ }
137
+ }
138
+ &:active {
139
+ .ard-focus-overlay {
140
+ opacity: var(--ard-file-input-browse-button-overlay-active-opacity, 12%);
141
+ }
142
+ }
143
+ &:focus-visible {
144
+ .ard-focus-overlay {
145
+ opacity: var(--ard-file-input-browse-button-overlay-focus-visible-opacity, 16%);
146
+ }
74
147
  }
75
148
  }
76
- }
77
149
 
78
- @include CB.clearButton();
150
+ @include CB.clearButton();
151
+
152
+ .ard-input-container {
153
+ white-space: nowrap;
154
+ }
155
+ .ard-input-container,
156
+ .ard-file-input__value,
157
+ .ard-file-input__uploaded,
158
+ .ard-file-input__full-file-name,
159
+ .ard-file-input__file-name {
160
+ overflow: hidden;
161
+ text-overflow: ellipsis;
162
+ max-width: 100%;
163
+ }
164
+ .ard-file-input__full-file-name {
165
+ display: grid;
166
+ grid-template-columns: 1fr max-content;
79
167
 
80
- .ard-input-container {
81
- white-space: nowrap;
168
+ .ard-file-input__file-name {
169
+ font-weight: var(--ard-file-input-file-name-font-weight, 500);
170
+ }
171
+ .ard-file-input__file-ext {
172
+ font-weight: var(--ard-file-input-file-ext-font-weight, 500);
173
+ }
174
+ }
82
175
  }
83
- .ard-input-container,
84
- .ard-file-input__value,
85
- .ard-file-input__uploaded,
86
- .ard-file-input__full-file-name,
87
- .ard-file-input__file-name {
88
- overflow: hidden;
89
- text-overflow: ellipsis;
176
+ ard-file-input .ard-form-field-content-container {
90
177
  max-width: 100%;
91
178
  }
92
- .ard-file-input__full-file-name {
93
- display: grid;
94
- grid-template-columns: 1fr max-content;
95
- font-weight: 500;
96
- }
97
- }
98
- ard-file-input .ard-form-field-content-container {
99
- max-width: 100%;
100
- }
101
- ard-file-input .ard-form-field-frame {
102
- &.ard-has-error .ard-file-input {
103
- .ard-file-input__value,
104
- .ard-browse-button {
105
- color: ARD.$danger700;
179
+ ard-file-input .ard-form-field-frame {
180
+ &.ard-has-error .ard-file-input {
181
+ .ard-file-input__value,
182
+ .ard-browse-button {
183
+ color: var(--ard-file-input-browse-button-color-error, #{ARD.$danger700});
184
+ }
106
185
  }
107
186
  }
108
187
  }