@ardium-ui/ui 5.0.0-alpha.10 → 5.0.0-alpha.100

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