@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
@@ -3,21 +3,54 @@
3
3
  @use './coloring.scss' as CM;
4
4
  @use '../variables' as ARD;
5
5
 
6
- $grid-size: 2.5rem;
6
+ // the variables are commented out intentionally
7
+ // read more in docs/dev/css-variables.md
8
+ :root {
9
+ --ard-calendar-grid-size: 2.25rem;
10
+ --ard-calendar-grid-gap: 0.25rem;
11
+ --ard-calendar-padding: 0.375rem;
12
+ --ard-calendar-header-padding: 0.375rem 0 0.75rem 0;
13
+ --ard-calendar-weekday-padding: 0 0 0.5rem 0;
14
+ --ard-calendar-weekday-font-size: 0.875rem;
15
+ --ard-calendar-weekday-font-weight: 500;
16
+ // --ard-calendar-weekday-color: ;
17
+ --ard-calendar-floating-month-transform: none;
18
+ --ard-calendar-floating-month-padding: 0 0 0 1rem;
19
+ --ard-calendar-floating-month-font-size: 0.875rem;
20
+ --ard-calendar-floating-month-font-weight: 500;
21
+ // --ard-calendar-floating-month-color: ;
22
+ --ard-calendar-entry-padding: 0;
23
+ --ard-calendar-entry-font-size: 0.875rem;
24
+ --ard-calendar-entry-font-weight: 400;
25
+ --ard-calendar-entry-border-radius: 9999px;
26
+ --ard-calendar-entry-range-overlay-border-width: 1px;
27
+ --ard-calendar-entry-range-overlay-border-style: dashed;
28
+ // --ard-calendar-entry-today-border-color: ;
29
+ --ard-calendar-entry-today-selected-border: 2px solid #{ARD.$bg};
30
+ --ard-calendar-entry-highlighted-overlay-opacity: 20%;
31
+ --ard-calendar-entry-selected-overlay-opacity: 100%;
32
+ --ard-calendar-entry-selected-range-overlay-opacity: 12%;
33
+ --ard-calendar-entry-disabled-overlay-opacity: 50%;
34
+ --ard-calendar-entry-disabled-highlighted-overlay-opacity: 15%;
35
+ --ard-calendar-entry-disabled-opacity: 50%;
36
+ }
7
37
 
8
38
  .ard-calendar {
9
39
  @include CM.typeColors();
10
- width: 18.5rem;
40
+ min-width: calc(var(--ard-calendar-grid-size) * 7 + var(--ard-calendar-grid-gap) * 6);
11
41
  user-select: none;
42
+ padding: var(--ard-calendar-padding, 0 0.375rem 0.375rem 0.375rem);
43
+ box-sizing: content-box;
12
44
 
13
45
  //! top toolbar
14
46
  .ard-calendar__top-toolbar {
15
47
  .ard-calendar__calendar-header {
16
- display: flex;
17
- justify-content: space-between;
48
+ display: grid;
49
+ grid-template-columns: 1fr 5fr 1fr;
18
50
  align-items: center;
51
+ justify-items: center;
19
52
  width: 100%;
20
- padding: 0.75rem 0;
53
+ padding: var(--ard-calendar-header-padding, 0.75rem 0);
21
54
 
22
55
  .ard-dropdown-arrow {
23
56
  @include DA.dropdown-arrow();
@@ -32,66 +65,68 @@ $grid-size: 2.5rem;
32
65
  //! weekdays
33
66
  .ard-calendar__weekdays {
34
67
  display: grid;
35
- grid-template-columns: repeat(7, $grid-size);
68
+ grid-template-columns: repeat(7, var(--ard-calendar-grid-size, 2.25rem));
69
+ gap: var(--ard-calendar-grid-gap, 0.25rem);
36
70
  align-items: center;
37
- padding: 0 0.375rem 0.5rem 0.375rem;
71
+ padding: var(--ard-calendar-weekday-padding, 0 0 0.5rem 0);
38
72
 
39
73
  .ard-calendar__weekday {
40
74
  text-align: center;
41
- font-size: 0.875rem;
42
- font-weight: 500;
43
- color: ARD.$text;
75
+ font-size: var(--ard-calendar-weekday-font-size, 0.875rem);
76
+ font-weight: var(--ard-calendar-weekday-font-weight, 500);
77
+ color: var(--ard-calendar-weekday-color, #{ARD.$text});
44
78
  }
45
79
  }
46
80
  //! days grid
47
81
  .ard-calendar__days-grid {
48
- padding: 0.375rem;
49
- padding-top: 0;
82
+ padding: 0;
50
83
  display: grid;
51
- grid-template-columns: repeat(7, $grid-size);
84
+ grid-template-columns: repeat(7, var(--ard-calendar-grid-size));
52
85
  position: relative;
53
86
  outline: none;
87
+ gap: var(--ard-calendar-grid-gap, 0.25rem);
54
88
 
55
89
  > * {
56
- max-width: 100%;
90
+ width: var(--ard-calendar-grid-size);
91
+ max-width: var(--ard-calendar-grid-size);
92
+ height: var(--ard-calendar-grid-size);
93
+ max-height: var(--ard-calendar-grid-size);
57
94
  box-sizing: border-box;
58
- aspect-ratio: 1;
59
95
  }
60
96
  &.ard-reserve-top-row {
61
- padding-top: $grid-size;
97
+ padding-top: calc(var(--ard-calendar-grid-size) + var(--ard-calendar-grid-gap));
62
98
  }
63
99
  .ard-calendar__floating-month {
64
100
  position: absolute;
65
101
  top: 0;
66
102
  left: 0;
103
+ transform: var(--ard-calendar-floating-month-transform, none);
67
104
  width: 100%;
68
105
  box-sizing: border-box;
69
106
  aspect-ratio: 7;
70
- padding-left: 1rem;
107
+ padding: var(--ard-calendar-floating-month-padding, 0 0 0 1rem);
71
108
  display: flex;
72
109
  align-items: center;
73
- font-size: 0.875rem;
74
- font-weight: 500;
75
- color: ARD.$text3;
110
+ font-size: var(--ard-calendar-floating-month-font-size, 0.875rem);
111
+ font-weight: var(--ard-calendar-floating-month-font-weight, 500);
112
+ color: var(--ard-calendar-floating-month-color, #{ARD.$text3});
76
113
  letter-spacing: 0.5px;
77
114
  }
78
115
  }
79
116
  //! years grid
80
117
  .ard-calendar__simple-grid {
81
118
  border-top: 1px solid ARD.$detail-ultralight;
82
- margin-top: 0.25rem;
83
119
  display: grid;
84
120
  grid-template-columns: repeat(4, 1fr);
85
- grid-template-rows: repeat(6, $grid-size);
121
+ grid-template-rows: repeat(6, var(--ard-calendar-grid-size));
86
122
  position: relative;
87
123
  outline: none;
124
+ padding: 0;
125
+ gap: var(--ard-calendar-grid-gap, 0.25rem);
88
126
 
89
127
  > * {
90
128
  max-width: 100%;
91
129
  box-sizing: border-box;
92
- aspect-ratio: 7/4; //it has to be the same height as in the days view
93
- //before it was 7/7 (1) because there are 7 entries in a single row
94
- //now there are 4 entries, and thus 7/4
95
130
  }
96
131
  }
97
132
  //! common in both grids
@@ -99,7 +134,8 @@ $grid-size: 2.5rem;
99
134
  z-index: 1;
100
135
  cursor: pointer;
101
136
  outline: none;
102
- padding: 0.125rem;
137
+ padding: var(--ard-calendar-entry-padding, 0);
138
+ box-sizing: border-box;
103
139
 
104
140
  .ard-calendar__entry-button {
105
141
  width: 100%;
@@ -108,21 +144,33 @@ $grid-size: 2.5rem;
108
144
  display: flex;
109
145
  align-items: center;
110
146
  justify-content: center;
111
- font-size: 0.875rem;
147
+ font-size: var(--ard-calendar-entry-font-size, 0.875rem);
148
+ font-weight: var(--ard-calendar-entry-font-weight, 400);
112
149
  background: transparent;
113
150
  border: 1px solid transparent;
114
- border-radius: 9999px;
151
+ border-radius: var(--ard-calendar-entry-border-radius, 9999px);
115
152
  position: relative;
116
153
  cursor: pointer;
154
+ outline: none;
155
+ box-sizing: border-box;
117
156
 
118
157
  .ard-focus-overlay {
119
158
  @include DM.focus-overlay();
120
159
  z-index: -1;
121
- background: var(--ard-cmpcl--bg-colored);
122
- border: 2px solid transparent;
123
- transition:
124
- border-color 0.1s ease,
125
- opacity 0.1s ease;
160
+ background: var(--ard-cmpcl--overlay);
161
+ transition: border-color 0.1s ease, opacity 0.1s ease;
162
+ }
163
+ .ard-range-overlay {
164
+ @include DM.focus-overlay();
165
+ z-index: -1;
166
+ opacity: 1;
167
+ left: calc(var(--ard-calendar-grid-gap, 0.25rem) / -2 - 1px);
168
+ right: calc(var(--ard-calendar-grid-gap, 0.25rem) / -2 - 1px);
169
+ border: var(--ard-calendar-entry-range-overlay-border-width, 1px)
170
+ var(--ard-calendar-entry-range-overlay-border-style, dashed) transparent;
171
+ background: transparent;
172
+ transition: none;
173
+ border-radius: 0;
126
174
  }
127
175
  }
128
176
  &.ard-calendar__entry-empty {
@@ -130,12 +178,51 @@ $grid-size: 2.5rem;
130
178
  }
131
179
  &.ard-calendar-today {
132
180
  .ard-calendar__entry-button {
133
- border-color: ARD.$detail;
181
+ border-color: var(--ard-calendar-entry-today-border-color, #{ARD.$detail});
182
+ }
183
+ }
184
+ &.ard-calendar__entry-highlighted-in-range {
185
+ .ard-range-overlay {
186
+ opacity: 1;
187
+ border-top-color: var(--ard-cmpcl--bg-colored);
188
+ border-bottom-color: var(--ard-cmpcl--bg-colored);
189
+ }
190
+ &.ard-calendar__entry-selected-start {
191
+ .ard-range-overlay {
192
+ border-left-color: var(--ard-cmpcl--bg-colored);
193
+ }
194
+ }
195
+ &.ard-calendar__entry-selected-end,
196
+ &.ard-calendar__entry-highlighted {
197
+ .ard-range-overlay {
198
+ border-right-color: var(--ard-cmpcl--bg-colored);
199
+ }
134
200
  }
135
201
  }
136
202
  &.ard-calendar__entry-highlighted {
137
203
  .ard-focus-overlay {
138
- opacity: 20%;
204
+ opacity: var(--ard-calendar-entry-highlighted-overlay-opacity, 20%);
205
+ }
206
+ }
207
+ &.ard-calendar__entry-selected-start {
208
+ .ard-range-overlay {
209
+ left: 0;
210
+ border-top-left-radius: var(--ard-calendar-entry-border-radius);
211
+ border-bottom-left-radius: var(--ard-calendar-entry-border-radius);
212
+ }
213
+ }
214
+ &.ard-calendar__entry-selected-end,
215
+ &.ard-calendar__entry-highlighted:not(.ard-calendar__entry-selected-in-range) {
216
+ .ard-range-overlay {
217
+ right: 0;
218
+ border-top-right-radius: var(--ard-calendar-entry-border-radius);
219
+ border-bottom-right-radius: var(--ard-calendar-entry-border-radius);
220
+ }
221
+ }
222
+ &.ard-calendar__entry-selected-in-range {
223
+ .ard-range-overlay {
224
+ opacity: var(--ard-calendar-entry-selected-range-overlay-opacity, 12%);
225
+ background-color: var(--ard-cmpcl--bg-colored);
139
226
  }
140
227
  }
141
228
  &.ard-calendar__entry-selected {
@@ -143,18 +230,19 @@ $grid-size: 2.5rem;
143
230
  color: var(--ard-cmpcl--on-bg-colored);
144
231
  }
145
232
  .ard-focus-overlay {
146
- opacity: 100%;
233
+ opacity: var(--ard-calendar-entry-selected-overlay-opacity, 100%);
234
+ background: var(--ard-cmpcl--bg-colored);
147
235
  }
148
236
 
149
237
  &.ard-calendar-today {
150
238
  .ard-focus-overlay {
151
- border-color: ARD.$bg;
239
+ border: var(--ard-calendar-entry-today-selected-border, 2px solid #{ARD.$bg});
152
240
  }
153
241
  }
154
242
  }
155
243
  &.ard-calendar__entry-disabled {
156
244
  pointer-events: none;
157
- opacity: 50%;
245
+ opacity: var(--ard-calendar-entry-disabled-overlay-opacity, 50%);
158
246
 
159
247
  .ard-calendar__entry-button {
160
248
  cursor: default;
@@ -164,30 +252,32 @@ $grid-size: 2.5rem;
164
252
  }
165
253
  &.ard-calendar__entry-highlighted {
166
254
  .ard-focus-overlay {
167
- opacity: 15%;
255
+ opacity: var(--ard-calendar-entry-disabled-highlighted-overlay-opacity, 15%);
168
256
  }
169
257
  }
170
258
  }
171
259
  }
172
- .ard-calendar__day-labels {
173
- font-size: 0.8125rem;
174
- color: ARD.$text3;
175
- height: 1.25rem;
176
- position: relative;
260
+ .ard-years-view,
261
+ .ard-months-view {
262
+ .ard-calendar__entry {
263
+ .ard-calendar__entry-button {
264
+ .ard-range-overlay {
265
+ left: calc(-var(--ard-calendar-grid-gap) / 2 - 1px);
266
+ right: calc(-var(--ard-calendar-grid-gap) / 2 - 1px);
267
+ border: none;
268
+ }
269
+ }
177
270
 
178
- > * {
179
- display: flex;
180
- align-items: center;
181
- justify-content: center;
182
- aspect-ratio: unset;
183
- }
184
- &::after {
185
- content: '';
186
- position: absolute;
187
- width: 100%;
188
- height: 1px;
189
- background: ARD.$detail-ultralight;
190
- bottom: 0;
271
+ &.ard-calendar__entry-selected-start {
272
+ .ard-range-overlay {
273
+ left: 0;
274
+ }
275
+ }
276
+ &.ard-calendar__entry-selected-end {
277
+ .ard-range-overlay {
278
+ right: 0;
279
+ }
280
+ }
191
281
  }
192
282
  }
193
283
  }
@@ -199,6 +289,6 @@ $grid-size: 2.5rem;
199
289
  }
200
290
  .ard-disabled {
201
291
  .ard-calendar {
202
- opacity: 50%;
292
+ opacity: var(--ard-calendar-entry-disabled-opacity, 50%);
203
293
  }
204
294
  }
@@ -1,22 +1,47 @@
1
1
  @use './mixins' as CM;
2
2
  @use '../variables' as ARD;
3
3
 
4
+ :root {
5
+ --ard-checkbox-list-padding: 0.375rem 0;
6
+ --ard-checkbox-list-item-hover-opacity: 5%;
7
+ --ard-checkbox-list-item-active-opacity: 15%;
8
+ --ard-checkbox-list-item-height: 3rem;
9
+ --ard-checkbox-list-item-height-compact: 2rem;
10
+ --ard-checkbox-list-checkbox-min-width: 1.25rem;
11
+ --ard-checkbox-list-checkbox-padding: 0.625rem;
12
+ --ard-checkbox-list-item-padding: 0 0.5rem 0 0;
13
+ --ard-checkbox-list-gap: 0;
14
+ --ard-checkbox-list-gap-compact: 0;
15
+ --ard-checkbox-list-item-gap: 0.5rem;
16
+ --ard-checkbox-list-item-gap-compact: 0.325rem;
17
+ --ard-checkbox-list-disabled-opacity: 50%;
18
+ }
19
+
4
20
  .ard-checkbox-list {
5
21
  display: flex;
6
22
  flex-direction: column;
23
+ padding: var(--ard-checkbox-list-padding, 0.375rem 0);
24
+ gap: var(--ard-checkbox-list-gap, 0);
7
25
 
8
26
  .ard-checkbox-list__item {
9
27
  display: flex;
10
28
  align-items: center;
11
- gap: 0.5rem;
12
- padding: 0 1rem;
29
+ justify-content: stretch;
30
+ gap: var(--ard-checkbox-list-item-gap, 0.5rem);
31
+ padding: var(--ard-checkbox-list-item-padding, 0 0.5rem 0 0);
13
32
  position: relative;
14
33
  cursor: pointer;
15
- height: 3rem;
34
+ height: max-content;
35
+ min-height: var(--ard-checkbox-list-item-height, 3rem);
16
36
 
17
37
  > label {
18
38
  pointer-events: none;
19
39
  user-select: none;
40
+ flex-grow: 1;
41
+ padding: 0;
42
+ min-height: var(--ard-checkbox-list-item-height, 3rem);
43
+ display: flex;
44
+ align-items: center;
20
45
  }
21
46
  > .ard-focus-overlay {
22
47
  @include CM.focus-overlay();
@@ -24,16 +49,17 @@
24
49
  }
25
50
  &.ard-item-highlighted {
26
51
  > .ard-focus-overlay {
27
- opacity: 5%;
52
+ opacity: var(--ard-checkbox-list-item-hover-opacity, 5%);
28
53
  }
29
54
  }
30
55
  &:active {
31
56
  > .ard-focus-overlay {
32
- opacity: 15%;
57
+ opacity: var(--ard-checkbox-list-item-active-opacity, 15%);
33
58
  }
34
59
  }
35
60
  ard-checkbox {
36
- padding: 0.625rem;
61
+ padding: var(--ard-checkbox-list-checkbox-padding, 0.625rem);
62
+ min-width: var(--ard-checkbox-list-checkbox-min-width, 1.25rem);
37
63
 
38
64
  .ard-checkbox {
39
65
  .ard-focus-overlay {
@@ -45,39 +71,39 @@
45
71
  pointer-events: none;
46
72
 
47
73
  > label {
48
- opacity: 50%;
74
+ opacity: var(--ard-checkbox-list-disabled-opacity, 50%);
49
75
  }
50
76
  }
51
77
  }
52
78
  &.ard-compact {
79
+ gap: var(--ard-checkbox-list-gap-compact, 0);
80
+
53
81
  .ard-checkbox-list__item {
54
- gap: 0.325rem;
55
- height: 2rem;
82
+ gap: var(--ard-checkbox-list-item-gap-compact, 0.325rem);
83
+ height: var(--ard-checkbox-list-item-height-compact, 2rem);
56
84
  }
57
85
  }
58
86
  //! ALIGN TYPES
59
87
  &.ard-align-left-clumped,
60
- &.ard-align-left-split {
61
- .ard-checkbox-list__item {
62
- flex-direction: row;
63
- }
64
- }
65
- &.ard-align-right-clumped,
66
88
  &.ard-align-right-split {
67
89
  .ard-checkbox-list__item {
68
- flex-direction: row-reverse;
90
+ label {
91
+ justify-content: flex-start;
92
+ }
69
93
  }
70
94
  }
71
- &.ard-align-left-clumped,
95
+ &.ard-align-left-split,
72
96
  &.ard-align-right-clumped {
73
97
  .ard-checkbox-list__item {
74
- justify-content: flex-start;
98
+ label {
99
+ justify-content: flex-end;
100
+ }
75
101
  }
76
102
  }
77
- &.ard-align-left-split,
78
- &.ard-align-right-split {
103
+ &.ard-align-right-split,
104
+ &.ard-align-right-clumped {
79
105
  .ard-checkbox-list__item {
80
- justify-content: space-between;
106
+ flex-direction: row-reverse;
81
107
  }
82
108
  }
83
109
  }
@@ -3,30 +3,61 @@
3
3
  @use './clear-button' as clearButton;
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-chip-font-size: ;
10
+ // --ard-chip-font-size-compact: ;
11
+ --ard-chip-margin: 0;
12
+ --ard-chip-height: 2rem;
13
+ --ard-chip-height-compact: 1.4375rem;
14
+ --ard-chip-padding: 0 0.75rem;
15
+ --ard-chip-padding-compact: 0 0.5625rem;
16
+ --ard-chip-padding-align-left: 0.125rem;
17
+ --ard-chip-padding-align-left-deletable: 0.25rem;
18
+ --ard-chip-padding-align-right: 0.125rem;
19
+ --ard-chip-padding-align-right-deletable: 0.25rem;
20
+ --ard-chip-selection-icon-padding: 0.5rem;
21
+ --ard-chip-selection-icon-margin: -0.125rem;
22
+ --ard-chip-selection-icon-padding-compact: 0.25rem;
23
+ --ard-chip-selection-icon-margin-compact: -0.25rem;
24
+ --ard-chip-content-wrapper-padding: 0.5rem;
25
+ --ard-chip-selectable-hover-overlay-opacity: 7.5%;
26
+ --ard-chip-selectable-active-overlay-opacity: 20%;
27
+ --ard-chip-outlined-hover-overlay-opacity: 4%;
28
+ --ard-chip-outlined-active-overlay-opacity: 10%;
29
+ --ard-chip-outlined-selected-overlay-opacity: 12%;
30
+ --ard-chip-outlined-selected-hover-overlay-opacity: 17%;
31
+ --ard-chip-outlined-selected-active-overlay-opacity: 22%;
32
+ --ard-chip-transition: 0.15s ease;
33
+ --ard-chip-disabled-opacity: 60%;
34
+ --ard-chip-disabled-selected-opacity: 40%;
35
+ }
36
+
6
37
  //! general css
7
38
  .ard-chip-wrapper {
8
39
  @include coloringMixins.typeColors();
9
40
  @include clearButton.clearButton();
10
41
  @include defaultMixins.formVariants();
11
42
 
12
- font-family: 'Roboto', sans-serif;
43
+ font-family: var(--ard-font-family);
13
44
  color: ARD.$text2;
14
45
  background: ARD.$bg;
15
46
  border-radius: var(--ard-variant-border-radius);
16
47
  padding: 0;
17
- margin: 6px;
48
+ margin: var(--ard-chip-margin, 0);
18
49
  vertical-align: middle;
19
50
  display: flex;
20
51
  align-items: center;
21
- font-size: 14px;
52
+ font-size: var(--ard-chip-font-size, 0.875rem);
22
53
  position: relative;
23
54
  outline: none;
24
55
  user-select: none;
25
56
  overflow: hidden;
26
- height: 32px;
57
+ height: var(--ard-chip-height, 2rem);
27
58
 
28
59
  > .ard-chip-content-wrapper {
29
- padding: 0 12px;
60
+ padding: var(--ard-chip-padding, 0 0.75rem);
30
61
  }
31
62
  > .ard-focus-overlay {
32
63
  @include defaultMixins.focus-overlay;
@@ -42,12 +73,12 @@
42
73
  &:hover,
43
74
  &:focus {
44
75
  > .ard-focus-overlay {
45
- opacity: 7.5%;
76
+ opacity: var(--ard-chip-selectable-hover-overlay-opacity, 7.5%);
46
77
  }
47
78
  }
48
79
  &:active {
49
80
  > .ard-focus-overlay {
50
- opacity: 20%;
81
+ opacity: var(--ard-chip-selectable-active-overlay-opacity, 20%);
51
82
  }
52
83
  }
53
84
 
@@ -68,10 +99,7 @@
68
99
  &.ard-chip-selectable {
69
100
  background-color: ARD.$bg-f;
70
101
  color: ARD.$text2;
71
- transition:
72
- color 0.15s ease,
73
- border-color 0.15s ease,
74
- background-color 0.15s ease;
102
+ transition: color var(--ard-chip-transition, 0.15s ease), border-color var(--ard-chip-transition, 0.15s ease), background-color var(--ard-chip-transition, 0.15s ease);
75
103
 
76
104
  &.ard-chip-selected {
77
105
  color: var(--ard-cmpcl--on-bg-colored);
@@ -88,9 +116,7 @@
88
116
  font-weight: 600;
89
117
 
90
118
  &.ard-chip-selectable {
91
- transition:
92
- color 0.15s ease,
93
- border-color 0.15s ease;
119
+ transition: color var(--ard-chip-transition, 0.15s ease), border-color var(--ard-chip-transition, 0.15s ease);
94
120
 
95
121
  > .ard-focus-overlay {
96
122
  opacity: 0;
@@ -99,30 +125,31 @@
99
125
  &:hover,
100
126
  &:focus {
101
127
  > .ard-focus-overlay {
102
- opacity: 4%;
128
+ opacity: var(--ard-chip-outlined-hover-overlay-opacity, 4%);
103
129
  }
104
130
  }
105
131
  &:active {
106
132
  > .ard-focus-overlay {
107
- opacity: 10%;
133
+ opacity: var(--ard-chip-outlined-active-overlay-opacity, 10%);
108
134
  }
109
135
  }
110
136
 
111
137
  &.ard-chip-selected {
112
138
  color: var(--ard-cmpcl--content);
139
+ border-color: var(--ard-cmpcl--content);
113
140
 
114
141
  > .ard-focus-overlay {
115
- opacity: 7.5%;
142
+ opacity: var(--ard-chip-outlined-selected-overlay-opacity, 12%);
116
143
  }
117
144
  &:hover,
118
145
  &:focus {
119
146
  > .ard-focus-overlay {
120
- opacity: 15%;
147
+ opacity: var(--ard-chip-outlined-selected-hover-overlay-opacity, 17%);
121
148
  }
122
149
  }
123
150
  &:active {
124
151
  > .ard-focus-overlay {
125
- opacity: 20%;
152
+ opacity: var(--ard-chip-outlined-selected-active-overlay-opacity, 22%);
126
153
  }
127
154
  }
128
155
  }
@@ -130,60 +157,64 @@
130
157
  }
131
158
  &.ard-appearance-outlined-strong {
132
159
  > .ard-focus-overlay {
133
- opacity: 7.5%;
160
+ opacity: var(--ard-chip-outlined-selected-overlay-opacity, 12%);
134
161
  background: var(--ard-cmpcl--bg-colored);
135
162
  }
163
+ &.ard-chip-selectable {
164
+ color: var(--ard-text2);
165
+ border: 1px solid var(--ard-detail-light);
166
+ }
136
167
  }
137
168
 
138
169
  //! alignments
139
170
  &.ard-chip-align-left {
140
171
  flex-direction: row;
141
- padding-left: 2px;
172
+ padding-left: var(--ard-chip-padding-align-left, 0.125rem);
142
173
 
143
174
  .ard-chip-selection-icon {
144
- padding-left: 8px;
145
- margin-right: -2px;
175
+ padding-left: var(--ard-chip-selection-icon-padding, 0.5rem);
176
+ margin-right: var(--ard-chip-selection-icon-margin, -0.125rem);
146
177
  }
147
178
  &.ard-chip-deletable {
148
- padding-left: 4px;
179
+ padding-left: var(--ard-chip-padding-align-left-deletable, 0.25rem);
149
180
 
150
181
  .ard-chip-content-wrapper {
151
- padding-left: 8px;
182
+ padding-left: var(--ard-chip-content-wrapper-padding, 0.5rem);
152
183
  }
153
184
  }
154
185
  }
155
186
  &.ard-chip-align-right {
156
187
  flex-direction: row-reverse;
157
- padding-right: 2px;
188
+ padding-right: var(--ard-chip-padding-align-right, 0.125rem);
158
189
 
159
190
  .ard-chip-selection-icon {
160
- padding-right: 8px;
161
- margin-left: -2px;
191
+ padding-right: var(--ard-chip-selection-icon-padding, 0.5rem);
192
+ margin-left: var(--ard-chip-selection-icon-margin, -0.125rem);
162
193
  }
163
194
  &.ard-chip-deletable {
164
- padding-right: 4px;
195
+ padding-right: var(--ard-chip-padding-align-right-deletable, 0.25rem);
165
196
 
166
197
  .ard-chip-content-wrapper {
167
- padding-right: 8px;
198
+ padding-right: var(--ard-chip-content-wrapper-padding, 0.5rem);
168
199
  }
169
200
  }
170
201
  }
171
202
  //! compact
172
203
  &.ard-compact {
173
- height: 23px;
174
- font-size: 13px;
204
+ height: var(--ard-chip-height-compact, 1.4375rem);
205
+ font-size: var(--ard-chip-font-size-compact, 0.8125rem);
175
206
 
176
207
  > .ard-chip-content-wrapper {
177
- padding: 0 9px;
208
+ padding: var(--ard-chip-padding-compact, 0 0.5625rem);
178
209
  }
179
210
 
180
211
  &.ard-chip-align-left .ard-chip-selection-icon {
181
- padding-left: 4px;
182
- margin-right: -4px;
212
+ padding-left: var(--ard-chip-selection-icon-padding-compact, 0.25rem);
213
+ margin-right: var(--ard-chip-selection-icon-margin-compact, -0.25rem);
183
214
  }
184
215
  &.ard-chip-align-right .ard-chip-selection-icon {
185
- padding-right: 4px;
186
- margin-left: -4px;
216
+ padding-right: var(--ard-chip-selection-icon-padding-compact, 0.25rem);
217
+ margin-left: var(--ard-chip-selection-icon-margin-compact, -0.25rem);
187
218
  }
188
219
  }
189
220
  }
@@ -191,10 +222,10 @@
191
222
  .ard-disabled {
192
223
  .ard-chip-wrapper {
193
224
  pointer-events: none;
194
- opacity: 60%;
225
+ opacity: var(--ard-chip-disabled-opacity, 60%);
195
226
 
196
227
  &.ard-chip-selected {
197
- opacity: 40%;
228
+ opacity: var(--ard-chip-disabled-selected-opacity, 40%);
198
229
  }
199
230
  }
200
231
  }