@ardium-ui/ui 3.6.0 → 4.1.0

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 (221) hide show
  1. package/esm2022/lib/_internal/boolean-component.mjs +1 -1
  2. package/esm2022/lib/_internal/disablable-component.mjs +1 -1
  3. package/esm2022/lib/_internal/focusable-component.mjs +1 -1
  4. package/esm2022/lib/_internal/item-storages/dropdown-item-storage.mjs +1 -1
  5. package/esm2022/lib/_internal/item-storages/simple-item-storage.mjs +1 -1
  6. package/esm2022/lib/_internal/ngmodel-component.mjs +2 -2
  7. package/esm2022/lib/_internal/public-api.mjs +1 -1
  8. package/esm2022/lib/_internal/selectable-list-component.mjs +1 -1
  9. package/esm2022/lib/buttons/_button-base.mjs +4 -2
  10. package/esm2022/lib/buttons/icon-button/icon-button.module.mjs +1 -1
  11. package/esm2022/lib/calendar/calendar.component.mjs +3 -3
  12. package/esm2022/lib/calendar/calendar.defaults.mjs +1 -1
  13. package/esm2022/lib/calendar/calendar.internal-types.mjs +1 -1
  14. package/esm2022/lib/calendar/calendar.module.mjs +1 -1
  15. package/esm2022/lib/calendar/calendar.types.mjs +1 -1
  16. package/esm2022/lib/calendar/index.mjs +1 -1
  17. package/esm2022/lib/calendar/views/days-view/days-view.component.mjs +3 -3
  18. package/esm2022/lib/calendar/views/days-view/days-view.helpers.mjs +1 -1
  19. package/esm2022/lib/calendar/views/months-view/months-view.component.mjs +3 -3
  20. package/esm2022/lib/calendar/views/months-view/months-view.helpers.mjs +1 -1
  21. package/esm2022/lib/calendar/views/years-view/years-view.component.mjs +3 -3
  22. package/esm2022/lib/calendar/views/years-view/years-view.helpers.mjs +1 -1
  23. package/esm2022/lib/checkbox/checkbox.component.mjs +3 -3
  24. package/esm2022/lib/checkbox/checkbox.module.mjs +1 -1
  25. package/esm2022/lib/checkbox/checkbox.types.mjs +1 -1
  26. package/esm2022/lib/checkbox-list/checkbox-list.component.mjs +3 -3
  27. package/esm2022/lib/checkbox-list/checkbox-list.module.mjs +1 -1
  28. package/esm2022/lib/dialog/dialog.component.mjs +18 -7
  29. package/esm2022/lib/dialog/dialog.directives.mjs +12 -1
  30. package/esm2022/lib/dialog/dialog.module.mjs +7 -7
  31. package/esm2022/lib/dialog/dialog.types.mjs +1 -1
  32. package/esm2022/lib/file-inputs/file-drop-area/file-drop-area.component.mjs +3 -3
  33. package/esm2022/lib/file-inputs/file-input/file-input.component.mjs +3 -3
  34. package/esm2022/lib/file-inputs/file-input-base.mjs +1 -1
  35. package/esm2022/lib/form-field/error/error.component.mjs +1 -1
  36. package/esm2022/lib/form-field/error/error.directive.mjs +1 -1
  37. package/esm2022/lib/form-field/form-field.component.mjs +4 -4
  38. package/esm2022/lib/form-field/form-field.module.mjs +1 -1
  39. package/esm2022/lib/form-field/hint/hint.component.mjs +1 -1
  40. package/esm2022/lib/form-field/hint/hint.directive.mjs +1 -1
  41. package/esm2022/lib/form-field/horizontal-form-field.component.mjs +3 -3
  42. package/esm2022/lib/form-field/index.mjs +1 -1
  43. package/esm2022/lib/form-field-frame/form-field-frame.component.mjs +1 -1
  44. package/esm2022/lib/inputs/_simple-input-base.mjs +2 -2
  45. package/esm2022/lib/inputs/date-input/date-input.component.mjs +3 -3
  46. package/esm2022/lib/inputs/date-input/date-input.defaults.mjs +1 -1
  47. package/esm2022/lib/inputs/date-input/date-input.directive.mjs +1 -1
  48. package/esm2022/lib/inputs/date-input/date-input.module.mjs +1 -1
  49. package/esm2022/lib/inputs/date-input/date-input.serializers.mjs +1 -1
  50. package/esm2022/lib/inputs/date-input/date-input.types.mjs +1 -1
  51. package/esm2022/lib/inputs/date-input/index.mjs +1 -1
  52. package/esm2022/lib/inputs/digit-input/digit-input.component.mjs +3 -3
  53. package/esm2022/lib/inputs/digit-input/digit-input.defaults.mjs +1 -1
  54. package/esm2022/lib/inputs/digit-input/digit-input.model.mjs +1 -1
  55. package/esm2022/lib/inputs/digit-input/digit-input.module.mjs +1 -1
  56. package/esm2022/lib/inputs/digit-input/digit-input.types.mjs +1 -1
  57. package/esm2022/lib/inputs/digit-input/digit-input.utils.mjs +1 -1
  58. package/esm2022/lib/inputs/hex-input/hex-input.component.mjs +3 -3
  59. package/esm2022/lib/inputs/hex-input/hex-input.defaults.mjs +1 -1
  60. package/esm2022/lib/inputs/input/input.component.mjs +3 -3
  61. package/esm2022/lib/inputs/input/input.module.mjs +1 -1
  62. package/esm2022/lib/inputs/input-utils.mjs +8 -3
  63. package/esm2022/lib/inputs/number-input/number-input.component.mjs +13 -4
  64. package/esm2022/lib/inputs/number-input/number-input.defaults.mjs +1 -1
  65. package/esm2022/lib/inputs/password-input/password-input.component.mjs +3 -3
  66. package/esm2022/lib/inputs/password-input/password-input.defaults.mjs +1 -1
  67. package/esm2022/lib/inputs/simple-input/simple-input.component.mjs +5 -5
  68. package/esm2022/lib/inputs/simple-input/simple-input.defaults.mjs +1 -1
  69. package/esm2022/lib/modal/index.mjs +2 -1
  70. package/esm2022/lib/modal/modal.component.mjs +18 -5
  71. package/esm2022/lib/modal/modal.defaults.mjs +1 -1
  72. package/esm2022/lib/modal/modal.directives.mjs +14 -0
  73. package/esm2022/lib/modal/modal.module.mjs +8 -7
  74. package/esm2022/lib/radio/radio/radio.component.mjs +1 -1
  75. package/esm2022/lib/radio/radio/radio.defaults.mjs +1 -1
  76. package/esm2022/lib/radio/radio-group.component.mjs +1 -1
  77. package/esm2022/lib/segment/segment.component.mjs +3 -3
  78. package/esm2022/lib/select/select.component.mjs +3 -3
  79. package/esm2022/lib/select/select.defaults.mjs +1 -1
  80. package/esm2022/lib/slide-toggle/slide-toggle.component.mjs +1 -1
  81. package/esm2022/lib/slider/range-slider/range-slider.component.mjs +1 -1
  82. package/esm2022/lib/slider/slider.component.mjs +3 -3
  83. package/esm2022/lib/star/index.mjs +2 -1
  84. package/esm2022/lib/star/rating-display/index.mjs +6 -0
  85. package/esm2022/lib/star/rating-display/rating-display.component.mjs +71 -0
  86. package/esm2022/lib/star/rating-display/rating-display.defaults.mjs +16 -0
  87. package/esm2022/lib/star/rating-display/rating-display.directives.mjs +16 -0
  88. package/esm2022/lib/star/rating-display/rating-display.module.mjs +20 -0
  89. package/esm2022/lib/star/rating-display/rating-display.types.mjs +2 -0
  90. package/esm2022/lib/star/rating-input/index.mjs +6 -0
  91. package/esm2022/lib/star/rating-input/rating-input.component.mjs +191 -0
  92. package/esm2022/lib/star/rating-input/rating-input.defaults.mjs +17 -0
  93. package/esm2022/lib/star/rating-input/rating-input.directives.mjs +16 -0
  94. package/esm2022/lib/star/rating-input/rating-input.module.mjs +20 -0
  95. package/esm2022/lib/star/rating-input/rating-input.types.mjs +2 -0
  96. package/esm2022/lib/star/star-button/index.mjs +3 -1
  97. package/esm2022/lib/star/star-button/star-button.component.mjs +13 -5
  98. package/esm2022/lib/star/star-button/star-button.defaults.mjs +2 -2
  99. package/esm2022/lib/star/star-button/star-button.directives.mjs +16 -0
  100. package/esm2022/lib/star/star-button/star-button.module.mjs +7 -6
  101. package/esm2022/lib/star/star-button/star-button.types.mjs +2 -0
  102. package/esm2022/lib/star/star.component.mjs +14 -5
  103. package/esm2022/lib/star/star.defaults.mjs +2 -2
  104. package/esm2022/lib/star/star.directives.mjs +16 -0
  105. package/esm2022/lib/star/star.module.mjs +9 -7
  106. package/esm2022/lib/star/star.types.mjs +3 -3
  107. package/esm2022/lib/text-list/index.mjs +1 -1
  108. package/esm2022/lib/text-list/text-list.component.mjs +3 -3
  109. package/esm2022/lib/text-list/text-list.module.mjs +1 -1
  110. package/esm2022/lib/text-list/text-list.pipe.mjs +1 -1
  111. package/esm2022/public-api.mjs +3 -3
  112. package/fesm2022/ardium-ui-ui.mjs +321 -179
  113. package/fesm2022/ardium-ui-ui.mjs.map +1 -1
  114. package/lib/dialog/dialog.component.d.ts +6 -2
  115. package/lib/dialog/dialog.directives.d.ts +6 -0
  116. package/lib/dialog/dialog.module.d.ts +1 -1
  117. package/lib/dialog/dialog.types.d.ts +2 -1
  118. package/lib/inputs/date-input/date-input.types.d.ts +1 -1
  119. package/lib/inputs/number-input/number-input.component.d.ts +3 -1
  120. package/lib/modal/index.d.ts +1 -0
  121. package/lib/modal/modal.component.d.ts +7 -1
  122. package/lib/modal/modal.directives.d.ts +8 -0
  123. package/lib/modal/modal.module.d.ts +6 -5
  124. package/lib/star/index.d.ts +1 -0
  125. package/lib/star/rating-display/index.d.ts +5 -0
  126. package/lib/star/rating-display/rating-display.component.d.ts +17 -0
  127. package/lib/star/rating-display/rating-display.defaults.d.ts +9 -0
  128. package/lib/star/rating-display/rating-display.directives.d.ts +9 -0
  129. package/lib/star/rating-display/rating-display.module.d.ts +10 -0
  130. package/lib/star/rating-display/rating-display.types.d.ts +8 -0
  131. package/lib/star/rating-input/index.d.ts +5 -0
  132. package/lib/star/rating-input/rating-input.component.d.ts +46 -0
  133. package/lib/star/rating-input/rating-input.defaults.d.ts +9 -0
  134. package/lib/star/rating-input/rating-input.directives.d.ts +9 -0
  135. package/lib/star/rating-input/rating-input.module.d.ts +10 -0
  136. package/lib/star/rating-input/rating-input.types.d.ts +12 -0
  137. package/lib/star/star-button/index.d.ts +2 -0
  138. package/lib/star/star-button/star-button.component.d.ts +5 -1
  139. package/lib/star/star-button/star-button.directives.d.ts +9 -0
  140. package/lib/star/star-button/star-button.module.d.ts +4 -3
  141. package/lib/star/star-button/star-button.types.d.ts +6 -0
  142. package/lib/star/star.component.d.ts +6 -3
  143. package/lib/star/star.directives.d.ts +9 -0
  144. package/lib/star/star.module.d.ts +4 -2
  145. package/lib/star/star.types.d.ts +5 -2
  146. package/package.json +1 -1
  147. package/prebuilt-themes/default/buttons/button.css +2 -2
  148. package/prebuilt-themes/default/buttons/button.css.map +1 -1
  149. package/prebuilt-themes/default/buttons/fab.css +2 -2
  150. package/prebuilt-themes/default/buttons/fab.css.map +1 -1
  151. package/prebuilt-themes/default/buttons/icon-button.css +2 -2
  152. package/prebuilt-themes/default/buttons/icon-button.css.map +1 -1
  153. package/prebuilt-themes/default/calendar-OLD.css.map +1 -1
  154. package/prebuilt-themes/default/calendar.css.map +1 -1
  155. package/prebuilt-themes/default/card.css +5 -0
  156. package/prebuilt-themes/default/card.css.map +1 -1
  157. package/prebuilt-themes/default/checkbox-list.css.map +1 -1
  158. package/prebuilt-themes/default/checkbox.css.map +1 -1
  159. package/prebuilt-themes/default/chips.css.map +1 -1
  160. package/prebuilt-themes/default/core.css +1 -1
  161. package/prebuilt-themes/default/form-field-frame.css.map +1 -1
  162. package/prebuilt-themes/default/inputs/color-input.css.map +1 -1
  163. package/prebuilt-themes/default/inputs/date-input.css.map +1 -1
  164. package/prebuilt-themes/default/inputs/digit-input.css.map +1 -1
  165. package/prebuilt-themes/default/inputs/file-input.css.map +1 -1
  166. package/prebuilt-themes/default/inputs/hex-input.css.map +1 -1
  167. package/prebuilt-themes/default/inputs/input.css.map +1 -1
  168. package/prebuilt-themes/default/inputs/number-input.css.map +1 -1
  169. package/prebuilt-themes/default/inputs/search-bar.css.map +1 -1
  170. package/prebuilt-themes/default/inputs/simple-input.css.map +1 -1
  171. package/prebuilt-themes/default/kbd.css +1 -0
  172. package/prebuilt-themes/default/kbd.css.map +1 -1
  173. package/prebuilt-themes/default/modal.css +3 -2
  174. package/prebuilt-themes/default/modal.css.map +1 -1
  175. package/prebuilt-themes/default/radio.css.map +1 -1
  176. package/prebuilt-themes/default/segment.css.map +1 -1
  177. package/prebuilt-themes/default/select.css.map +1 -1
  178. package/prebuilt-themes/default/slide-toggle.css.map +1 -1
  179. package/prebuilt-themes/default/slider.css.map +1 -1
  180. package/prebuilt-themes/default/spinner.css +1 -1
  181. package/prebuilt-themes/default/stars.css +31 -73
  182. package/prebuilt-themes/default/stars.css.map +1 -1
  183. package/prebuilt-themes/default/statebox.css.map +1 -1
  184. package/prebuilt-themes/default/tabber.css.map +1 -1
  185. package/public-api.d.ts +2 -2
  186. package/themes/_variables.scss +1 -1
  187. package/themes/default/_mixins.scss +8 -2
  188. package/themes/default/buttons/_button-mixins.scss +139 -138
  189. package/themes/default/calendar-OLD.scss +183 -183
  190. package/themes/default/calendar.scss +4 -2
  191. package/themes/default/card.scss +6 -0
  192. package/themes/default/core.scss +102 -102
  193. package/themes/default/form-field-frame.scss +3 -1
  194. package/themes/default/form-field.scss +2 -2
  195. package/themes/default/inputs/_shared.scss +50 -50
  196. package/themes/default/inputs/date-input.scss +4 -5
  197. package/themes/default/inputs/digit-input.scss +3 -1
  198. package/themes/default/inputs/file-input.scss +79 -79
  199. package/themes/default/inputs/input.scss +1 -1
  200. package/themes/default/inputs/number-input.scss +131 -131
  201. package/themes/default/inputs/simple-input.scss +1 -1
  202. package/themes/default/kbd.scss +1 -0
  203. package/themes/default/modal.scss +3 -2
  204. package/themes/default/spinner.scss +1 -1
  205. package/themes/default/stars.scss +11 -48
  206. package/esm2022/lib/star/star-display/index.mjs +0 -4
  207. package/esm2022/lib/star/star-display/star-display.component.mjs +0 -61
  208. package/esm2022/lib/star/star-display/star-display.defaults.mjs +0 -16
  209. package/esm2022/lib/star/star-display/star-display.module.mjs +0 -19
  210. package/esm2022/lib/star/star-input/index.mjs +0 -4
  211. package/esm2022/lib/star/star-input/star-input.component.mjs +0 -188
  212. package/esm2022/lib/star/star-input/star-input.defaults.mjs +0 -17
  213. package/esm2022/lib/star/star-input/star-input.module.mjs +0 -19
  214. package/lib/star/star-display/index.d.ts +0 -3
  215. package/lib/star/star-display/star-display.component.d.ts +0 -13
  216. package/lib/star/star-display/star-display.defaults.d.ts +0 -9
  217. package/lib/star/star-display/star-display.module.d.ts +0 -9
  218. package/lib/star/star-input/index.d.ts +0 -3
  219. package/lib/star/star-input/star-input.component.d.ts +0 -48
  220. package/lib/star/star-input/star-input.defaults.d.ts +0 -9
  221. package/lib/star/star-input/star-input.module.d.ts +0 -9
@@ -1,138 +1,139 @@
1
- @use '../mixins' as defaultMixins;
2
- @use '../coloring' as coloringMixins;
3
- @use '../../variables' as ARD;
4
-
5
- @mixin button {
6
- @include coloringMixins.typeColors();
7
- font-family: 'Roboto', sans-serif;
8
- margin: 2px;
9
- border: 1px solid transparent;
10
- font-weight: 500;
11
- display: inline-flex;
12
- align-items: center;
13
- position: relative;
14
- cursor: pointer;
15
- outline: none;
16
-
17
- //! button icon
18
- .ard-button-icon {
19
- @include defaultMixins.icon(1);
20
- }
21
- //! button focus inficator
22
- .ard-focus-overlay {
23
- @include defaultMixins.focus-overlay;
24
- background-color: var(--ard-cmpcl--overlay);
25
- }
26
- &:hover,
27
- &:focus {
28
- .ard-focus-overlay {
29
- opacity: 4%;
30
- }
31
- }
32
- &.ard-active,
33
- &:active {
34
- .ard-focus-overlay {
35
- opacity: 12%;
36
- }
37
- }
38
- &:focus-visible {
39
- .ard-focus-overlay {
40
- opacity: 18%;
41
- }
42
- }
43
- //! button appearances
44
- &.ard-appearance-transparent,
45
- &.ard-appearance-raised {
46
- background: transparent;
47
- color: var(--ard-cmpcl--content);
48
- border: none;
49
-
50
- .ard-focus-overlay {
51
- background: var(--ard-cmpcl--overlay-colored);
52
- }
53
- }
54
- &.ard-appearance-raised,
55
- &.ard-appearance-raised-strong {
56
- background: ARD.$bg;
57
- transition: box-shadow 0.28s ARD.$timing-fn;
58
- box-shadow: ARD.$simple-shadow;
59
-
60
- &:hover,
61
- &:focus {
62
- box-shadow: ARD.$simple-shadow2;
63
- }
64
- &:active {
65
- box-shadow: ARD.$simple-shadow3;
66
- }
67
- }
68
- &.ard-appearance-outlined {
69
- background: ARD.$bg;
70
- color: var(--ard-cmpcl--content);
71
- border: 1px solid ARD.$border-light;
72
-
73
- .ard-focus-overlay {
74
- background: var(--ard-cmpcl--overlay-colored);
75
- }
76
- }
77
- &.ard-appearance-outlined-strong {
78
- background: ARD.$bg;
79
- color: var(--ard-cmpcl--content);
80
- border: 1px solid ARD.$border-light;
81
-
82
- .ard-focus-overlay {
83
- display: none;
84
- }
85
-
86
- transition: background-color 0.2s ease, color 0.2s ease;
87
- &:hover,
88
- &:focus,
89
- &:focus-visible {
90
- background: var(--ard-cmpcl--bg-colored);
91
- color: var(--ard-cmpcl--on-bg-colored);
92
- }
93
- }
94
- &.ard-appearance-flat,
95
- &.ard-appearance-raised-strong {
96
- background: var(--ard-cmpcl--bg);
97
- color: var(--ard-cmpcl--on-bg);
98
- border: none;
99
-
100
- .ard-focus-overlay {
101
- background: var(--ard-cmpcl--on-bg);
102
- }
103
- &:focus-visible {
104
- outline: solid black;
105
- }
106
- }
107
- //! light coloring
108
- &.ard-appearance-transparent.ard-light-coloring {
109
- color: var(--ard-cmpcl--content-light);
110
-
111
- .ard-focus-overlay {
112
- background: var(--ard-cmpcl--overlay-colored-light);
113
- }
114
- }
115
- }
116
-
117
- //! disabled state
118
- @mixin button-disabled {
119
- pointer-events: none;
120
- opacity: 60%;
121
- cursor: not-allowed;
122
-
123
- .ard-focus-overlay {
124
- opacity: 20%;
125
- transform: scale(1);
126
- }
127
-
128
- //edge case for no coloring
129
- &.ard-color-none {
130
- .ard-button-icon,
131
- .ard-button-content {
132
- opacity: 60%;
133
- }
134
- .ard-focus-overlay {
135
- background: var(--ard-cmpcl--overlay);
136
- }
137
- }
138
- }
1
+ @use '../mixins' as defaultMixins;
2
+ @use '../coloring' as coloringMixins;
3
+ @use '../../variables' as ARD;
4
+
5
+ @mixin button {
6
+ @include coloringMixins.typeColors();
7
+ font-family: 'Roboto', sans-serif;
8
+ margin: 2px;
9
+ border: 1px solid transparent;
10
+ font-weight: 500;
11
+ display: inline-flex;
12
+ align-items: center;
13
+ position: relative;
14
+ cursor: pointer;
15
+ outline: none;
16
+
17
+ //! button icon
18
+ .ard-button-icon {
19
+ @include defaultMixins.icon(1);
20
+ }
21
+ //! button focus inficator
22
+ .ard-focus-overlay {
23
+ @include defaultMixins.focus-overlay;
24
+ background-color: var(--ard-cmpcl--overlay);
25
+ }
26
+ &:hover,
27
+ &:focus {
28
+ .ard-focus-overlay {
29
+ opacity: 4%;
30
+ }
31
+ }
32
+ &.ard-active,
33
+ &:active {
34
+ .ard-focus-overlay {
35
+ opacity: 12%;
36
+ }
37
+ }
38
+ &:focus-visible {
39
+ .ard-focus-overlay {
40
+ opacity: 18%;
41
+ }
42
+ }
43
+ //! button appearances
44
+ &.ard-appearance-transparent,
45
+ &.ard-appearance-raised {
46
+ background: transparent;
47
+ color: var(--ard-cmpcl--content);
48
+ border: none;
49
+
50
+ .ard-focus-overlay {
51
+ background: var(--ard-cmpcl--overlay-colored);
52
+ }
53
+ }
54
+ &.ard-appearance-raised,
55
+ &.ard-appearance-raised-strong {
56
+ background: ARD.$bg;
57
+ transition: box-shadow 0.28s ARD.$timing-fn;
58
+ box-shadow: ARD.$simple-shadow;
59
+
60
+ &:hover,
61
+ &:focus-visible {
62
+ box-shadow: ARD.$simple-shadow2;
63
+ }
64
+ &:active {
65
+ box-shadow: ARD.$simple-shadow3;
66
+ }
67
+ }
68
+ &.ard-appearance-outlined {
69
+ background: ARD.$bg;
70
+ color: var(--ard-cmpcl--content);
71
+ border: 1px solid ARD.$border-light;
72
+
73
+ .ard-focus-overlay {
74
+ background: var(--ard-cmpcl--overlay-colored);
75
+ }
76
+ }
77
+ &.ard-appearance-outlined-strong {
78
+ background: ARD.$bg;
79
+ color: var(--ard-cmpcl--content);
80
+ border: 1px solid ARD.$border-light;
81
+
82
+ .ard-focus-overlay {
83
+ display: none;
84
+ }
85
+
86
+ transition:
87
+ background-color 0.2s ease,
88
+ color 0.2s ease;
89
+ &:hover,
90
+ &:focus-visible {
91
+ background: var(--ard-cmpcl--bg-colored);
92
+ color: var(--ard-cmpcl--on-bg-colored);
93
+ }
94
+ }
95
+ &.ard-appearance-flat,
96
+ &.ard-appearance-raised-strong {
97
+ background: var(--ard-cmpcl--bg);
98
+ color: var(--ard-cmpcl--on-bg);
99
+ border: none;
100
+
101
+ .ard-focus-overlay {
102
+ background: var(--ard-cmpcl--on-bg);
103
+ }
104
+ &:focus-visible {
105
+ outline: solid black;
106
+ }
107
+ }
108
+ //! light coloring
109
+ &.ard-appearance-transparent.ard-light-coloring {
110
+ color: var(--ard-cmpcl--content-light);
111
+
112
+ .ard-focus-overlay {
113
+ background: var(--ard-cmpcl--overlay-colored-light);
114
+ }
115
+ }
116
+ }
117
+
118
+ //! disabled state
119
+ @mixin button-disabled {
120
+ pointer-events: none;
121
+ opacity: 60%;
122
+ cursor: not-allowed;
123
+
124
+ .ard-focus-overlay {
125
+ opacity: 20%;
126
+ transform: scale(1);
127
+ }
128
+
129
+ //edge case for no coloring
130
+ &.ard-color-none {
131
+ .ard-button-icon,
132
+ .ard-button-content {
133
+ opacity: 60%;
134
+ }
135
+ .ard-focus-overlay {
136
+ background: var(--ard-cmpcl--overlay);
137
+ }
138
+ }
139
+ }
@@ -1,183 +1,183 @@
1
- @use './dropdown-arrow.scss' as DA;
2
- @use './mixins.scss' as DM;
3
- @use './coloring.scss' as CM;
4
- @use '../variables' as ARD;
5
-
6
- .ard-calendar {
7
- @include CM.typeColors();
8
- width: 18.5rem;
9
- background: ARD.$bg;
10
- user-select: none;
11
-
12
- .ard-calendar-header-container {
13
- display: flex;
14
- align-items: center;
15
- justify-content: stretch;
16
-
17
- .ard-calendar-days-view-header {
18
- width: 100%;
19
- display: flex;
20
- justify-content: space-between;
21
-
22
- .ard-calendar-header-button .ard-button-content {
23
- display: flex;
24
- gap: 0.375rem;
25
- align-items: center;
26
-
27
- .ard-dropdown-arrow {
28
- @include DA.dropdown-arrow();
29
- }
30
- }
31
- .ard-calendar-arrows {
32
- display: flex;
33
- gap: 0.375rem;
34
-
35
- > ard-fab {
36
- margin: 0;
37
- }
38
- }
39
- }
40
- }
41
- //! main container
42
- .ard-calendar-main-container {
43
- padding: 0.375rem;
44
- padding-top: 0;
45
- }
46
- //! calendar entries
47
- .ard-calendar-entry {
48
- z-index: 1;
49
- cursor: pointer;
50
- outline: none;
51
-
52
- .ard-calendar-entry-button {
53
- $_margin: 0.125rem;
54
- background: transparent;
55
- border: 1px solid transparent;
56
- width: calc(100% - #{$_margin * 2});
57
- height: calc(100% - #{$_margin * 2});
58
- padding: 0;
59
- position: relative;
60
- border-radius: 9999px;
61
- cursor: pointer;
62
- margin: $_margin;
63
-
64
- .ard-focus-overlay {
65
- @include DM.focus-overlay();
66
- z-index: -1;
67
- background: var(--ard-cmpcl--bg-colored);
68
- border: 2px solid transparent;
69
- transition:
70
- border-color 0.2s ease,
71
- opacity 0.2s ease;
72
- }
73
- }
74
- &.ard-calendar-entry-empty {
75
- cursor: default;
76
- pointer-events: none;
77
- }
78
- &.ard-calendar-today {
79
- .ard-calendar-entry-button {
80
- border-color: ARD.$detail;
81
- }
82
- }
83
- &.ard-calendar-entry-highlighted {
84
- .ard-focus-overlay {
85
- opacity: 20%;
86
- }
87
- }
88
- &.ard-calendar-entry-selected {
89
- .ard-calendar-entry-button {
90
- color: var(--ard-cmpcl--on-bg-colored);
91
- }
92
- .ard-focus-overlay {
93
- opacity: 100%;
94
- }
95
-
96
- &.ard-calendar-today {
97
- .ard-focus-overlay {
98
- border-color: ARD.$bg;
99
- }
100
- }
101
- }
102
- }
103
- //! days view
104
- .ard-calendar-grid {
105
- display: grid;
106
- grid-template-columns: repeat(7, 1fr);
107
-
108
- > * {
109
- max-width: 100%;
110
- box-sizing: border-box;
111
- aspect-ratio: 1;
112
- }
113
- }
114
- .ard-calendar-day-labels {
115
- font-size: 0.8125rem;
116
- color: ARD.$text3;
117
- height: 1.25rem;
118
- position: relative;
119
-
120
- > * {
121
- display: flex;
122
- align-items: center;
123
- justify-content: center;
124
- aspect-ratio: unset;
125
- }
126
- &::after {
127
- content: '';
128
- position: absolute;
129
- width: 100%;
130
- height: 1px;
131
- background: ARD.$detail-ultralight;
132
- bottom: 0;
133
- }
134
- }
135
- .ard-calendar-main-grid {
136
- position: relative;
137
-
138
- &.ard-reserve-top-row {
139
- padding-top: 100% / 7;
140
- }
141
- .ard-calendar-floating-month {
142
- position: absolute;
143
- top: 0;
144
- left: 0;
145
- width: 100%;
146
- box-sizing: border-box;
147
- aspect-ratio: 7;
148
- padding-left: 0.5rem;
149
- display: flex;
150
- align-items: center;
151
- font-size: 0.875rem;
152
- font-weight: 500;
153
- color: ARD.$text3;
154
- letter-spacing: 0.5px;
155
- }
156
- }
157
- //! years & months view
158
- .ard-calendar-simple-grid {
159
- border-top: 1px solid ARD.$detail-ultralight;
160
- margin-top: 0.25rem;
161
- display: grid;
162
- grid-template-columns: repeat(4, 1fr);
163
- grid-template-rows: repeat(6, 1fr);
164
-
165
- > * {
166
- max-width: 100%;
167
- box-sizing: border-box;
168
- aspect-ratio: 7/4; //it has to be the same height as in the days view
169
- //before it was 7/7 (1) because there are 7 entries in a single row
170
- //now there are 4 entries, and thus 7/4
171
- }
172
- }
173
- //! interactions
174
- &.ard-calendar-nointeract {
175
- .ard-calendar-main-container {
176
- pointer-events: none;
177
- }
178
- }
179
- //! static height
180
- &.ard-calendar-static-height {
181
- height: 19.5rem;
182
- }
183
- }
1
+ @use './dropdown-arrow.scss' as DA;
2
+ @use './mixins.scss' as DM;
3
+ @use './coloring.scss' as CM;
4
+ @use '../variables' as ARD;
5
+
6
+ .ard-calendar {
7
+ @include CM.typeColors();
8
+ width: 18.5rem;
9
+ background: ARD.$bg;
10
+ user-select: none;
11
+
12
+ .ard-calendar-header-container {
13
+ display: flex;
14
+ align-items: center;
15
+ justify-content: stretch;
16
+
17
+ .ard-calendar-days-view-header {
18
+ width: 100%;
19
+ display: flex;
20
+ justify-content: space-between;
21
+
22
+ .ard-calendar-header-button .ard-button-content {
23
+ display: flex;
24
+ gap: 0.375rem;
25
+ align-items: center;
26
+
27
+ .ard-dropdown-arrow {
28
+ @include DA.dropdown-arrow();
29
+ }
30
+ }
31
+ .ard-calendar-arrows {
32
+ display: flex;
33
+ gap: 0.375rem;
34
+
35
+ > ard-fab {
36
+ margin: 0;
37
+ }
38
+ }
39
+ }
40
+ }
41
+ //! main container
42
+ .ard-calendar-main-container {
43
+ padding: 0.375rem;
44
+ padding-top: 0;
45
+ }
46
+ //! calendar entries
47
+ .ard-calendar-entry {
48
+ z-index: 1;
49
+ cursor: pointer;
50
+ outline: none;
51
+
52
+ .ard-calendar-entry-button {
53
+ $_margin: 0.125rem;
54
+ background: transparent;
55
+ border: 1px solid transparent;
56
+ width: calc(100% - #{$_margin * 2});
57
+ height: calc(100% - #{$_margin * 2});
58
+ padding: 0;
59
+ position: relative;
60
+ border-radius: 9999px;
61
+ cursor: pointer;
62
+ margin: $_margin;
63
+
64
+ .ard-focus-overlay {
65
+ @include DM.focus-overlay();
66
+ z-index: -1;
67
+ background: var(--ard-cmpcl--bg-colored);
68
+ border: 2px solid transparent;
69
+ transition:
70
+ border-color 0.2s ease,
71
+ opacity 0.2s ease;
72
+ }
73
+ }
74
+ &.ard-calendar-entry-empty {
75
+ cursor: default;
76
+ pointer-events: none;
77
+ }
78
+ &.ard-calendar-today {
79
+ .ard-calendar-entry-button {
80
+ border-color: ARD.$detail;
81
+ }
82
+ }
83
+ &.ard-calendar-entry-highlighted {
84
+ .ard-focus-overlay {
85
+ opacity: 20%;
86
+ }
87
+ }
88
+ &.ard-calendar-entry-selected {
89
+ .ard-calendar-entry-button {
90
+ color: var(--ard-cmpcl--on-bg-colored);
91
+ }
92
+ .ard-focus-overlay {
93
+ opacity: 100%;
94
+ }
95
+
96
+ &.ard-calendar-today {
97
+ .ard-focus-overlay {
98
+ border-color: ARD.$bg;
99
+ }
100
+ }
101
+ }
102
+ }
103
+ //! days view
104
+ .ard-calendar-grid {
105
+ display: grid;
106
+ grid-template-columns: repeat(7, 1fr);
107
+
108
+ > * {
109
+ max-width: 100%;
110
+ box-sizing: border-box;
111
+ aspect-ratio: 1;
112
+ }
113
+ }
114
+ .ard-calendar-day-labels {
115
+ font-size: 0.8125rem;
116
+ color: ARD.$text3;
117
+ height: 1.25rem;
118
+ position: relative;
119
+
120
+ > * {
121
+ display: flex;
122
+ align-items: center;
123
+ justify-content: center;
124
+ aspect-ratio: unset;
125
+ }
126
+ &::after {
127
+ content: '';
128
+ position: absolute;
129
+ width: 100%;
130
+ height: 1px;
131
+ background: ARD.$detail-ultralight;
132
+ bottom: 0;
133
+ }
134
+ }
135
+ .ard-calendar-main-grid {
136
+ position: relative;
137
+
138
+ &.ard-reserve-top-row {
139
+ padding-top: 100% / 7;
140
+ }
141
+ .ard-calendar-floating-month {
142
+ position: absolute;
143
+ top: 0;
144
+ left: 0;
145
+ width: 100%;
146
+ box-sizing: border-box;
147
+ aspect-ratio: 7;
148
+ padding-left: 0.5rem;
149
+ display: flex;
150
+ align-items: center;
151
+ font-size: 0.875rem;
152
+ font-weight: 500;
153
+ color: ARD.$text3;
154
+ letter-spacing: 0.5px;
155
+ }
156
+ }
157
+ //! years & months view
158
+ .ard-calendar-simple-grid {
159
+ border-top: 1px solid ARD.$detail-ultralight;
160
+ margin-top: 0.25rem;
161
+ display: grid;
162
+ grid-template-columns: repeat(4, 1fr);
163
+ grid-template-rows: repeat(6, 1fr);
164
+
165
+ > * {
166
+ max-width: 100%;
167
+ box-sizing: border-box;
168
+ aspect-ratio: 7/4; //it has to be the same height as in the days view
169
+ //before it was 7/7 (1) because there are 7 entries in a single row
170
+ //now there are 4 entries, and thus 7/4
171
+ }
172
+ }
173
+ //! interactions
174
+ &.ard-calendar-nointeract {
175
+ .ard-calendar-main-container {
176
+ pointer-events: none;
177
+ }
178
+ }
179
+ //! static height
180
+ &.ard-calendar-static-height {
181
+ height: 19.5rem;
182
+ }
183
+ }
@@ -110,7 +110,7 @@ $grid-size: 2.5rem;
110
110
  display: flex;
111
111
  align-items: center;
112
112
  justify-content: center;
113
- font-size: 0.875rem;;
113
+ font-size: 0.875rem;
114
114
  background: transparent;
115
115
  border: 1px solid transparent;
116
116
  border-radius: 9999px;
@@ -122,7 +122,9 @@ $grid-size: 2.5rem;
122
122
  z-index: -1;
123
123
  background: var(--ard-cmpcl--bg-colored);
124
124
  border: 2px solid transparent;
125
- transition: border-color 0.1s ease, opacity 0.1s ease;
125
+ transition:
126
+ border-color 0.1s ease,
127
+ opacity 0.1s ease;
126
128
  }
127
129
  }
128
130
  &.ard-calendar__entry-empty {
@@ -90,6 +90,12 @@ ard-card-header {
90
90
  border-bottom-right-radius: inherit;
91
91
  }
92
92
  }
93
+ ard-card,
94
+ .ard-card {
95
+ .ard-appearance-outlined .ard-image {
96
+ border-bottom: 1px solid ARD.$border-light;
97
+ }
98
+ }
93
99
  //! content
94
100
  .ard-card-content {
95
101
  padding: 0 1em;