@salutejs/plasma-new-hope 0.109.0-canary.1310.10007111729.0 → 0.109.1-canary.1301.10056166255.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (624) hide show
  1. package/cjs/components/Accordion/Accordion.js +1 -1
  2. package/cjs/components/Accordion/Accordion.js.map +1 -1
  3. package/cjs/components/Accordion/Accordion.tokens.js +4 -1
  4. package/cjs/components/Accordion/Accordion.tokens.js.map +1 -1
  5. package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.js +16 -9
  6. package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.js.map +1 -1
  7. package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +4 -4
  8. package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles.js.map +1 -1
  9. package/cjs/components/Accordion/utils/index.js +4 -3
  10. package/cjs/components/Accordion/utils/index.js.map +1 -1
  11. package/cjs/components/Calendar/Calendar.tokens.js +32 -6
  12. package/cjs/components/Calendar/Calendar.tokens.js.map +1 -1
  13. package/cjs/components/Calendar/Calendar.types.js.map +1 -1
  14. package/cjs/components/Calendar/CalendarBase/CalendarBase.css +20 -21
  15. package/cjs/components/Calendar/CalendarBase/CalendarBase.js +88 -140
  16. package/cjs/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
  17. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.css +23 -21
  18. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +269 -104
  19. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
  20. package/cjs/components/Calendar/hoc/withRange.js +17 -9
  21. package/cjs/components/Calendar/hoc/withRange.js.map +1 -1
  22. package/cjs/components/Calendar/hooks/useCalendarDateChange.js +92 -0
  23. package/cjs/components/Calendar/hooks/useCalendarDateChange.js.map +1 -0
  24. package/cjs/components/Calendar/hooks/useCalendarNavigation.js +98 -0
  25. package/cjs/components/Calendar/hooks/useCalendarNavigation.js.map +1 -0
  26. package/cjs/components/Calendar/hooks/useDays.js +34 -148
  27. package/cjs/components/Calendar/hooks/useDays.js.map +1 -1
  28. package/cjs/components/Calendar/hooks/useKeyNavigation.js +27 -16
  29. package/cjs/components/Calendar/hooks/useKeyNavigation.js.map +1 -1
  30. package/cjs/components/Calendar/hooks/useMonths.js +37 -8
  31. package/cjs/components/Calendar/hooks/useMonths.js.map +1 -1
  32. package/cjs/components/Calendar/hooks/useQuarters.js +57 -0
  33. package/cjs/components/Calendar/hooks/useQuarters.js.map +1 -0
  34. package/cjs/components/Calendar/hooks/useYears.js +39 -8
  35. package/cjs/components/Calendar/hooks/useYears.js.map +1 -1
  36. package/cjs/components/Calendar/store/reducer.js +34 -12
  37. package/cjs/components/Calendar/store/reducer.js.map +1 -1
  38. package/cjs/components/Calendar/store/types.js +1 -0
  39. package/cjs/components/Calendar/store/types.js.map +1 -1
  40. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.css +4 -4
  41. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +36 -26
  42. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js.map +1 -1
  43. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.css +8 -8
  44. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +16 -10
  45. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  46. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +2 -2
  47. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  48. package/{es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_gnorek.css → cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1jfelqf.css} +2 -2
  49. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.css +7 -4
  50. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +96 -27
  51. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
  52. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +1 -13
  53. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js.map +1 -1
  54. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_1v3msg.css +2 -0
  55. package/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.css +7 -0
  56. package/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +149 -0
  57. package/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js.map +1 -0
  58. package/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.styles.js +21 -0
  59. package/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.styles.js.map +1 -0
  60. package/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.styles_14gqhct.css +2 -0
  61. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.css +7 -4
  62. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +99 -25
  63. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
  64. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +1 -13
  65. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles.js.map +1 -1
  66. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles_1d4ov6t.css +2 -0
  67. package/cjs/components/Calendar/ui/DateStructureItem/DateStructureItem.css +4 -0
  68. package/cjs/components/Calendar/ui/{CalendarDayItem/CalendarDayItem.js → DateStructureItem/DateStructureItem.js} +23 -21
  69. package/cjs/components/Calendar/ui/DateStructureItem/DateStructureItem.js.map +1 -0
  70. package/cjs/components/Calendar/ui/{CalendarDayItem/CalendarDayItem.styles.js → DateStructureItem/DateStructureItem.styles.js} +19 -27
  71. package/cjs/components/Calendar/ui/DateStructureItem/DateStructureItem.styles.js.map +1 -0
  72. package/cjs/components/Calendar/ui/DateStructureItem/DateStructureItem.styles_1nxxafr.css +4 -0
  73. package/cjs/components/Calendar/utils/calendarGridHelper.js +173 -0
  74. package/cjs/components/Calendar/utils/calendarGridHelper.js.map +1 -0
  75. package/cjs/components/Calendar/utils/calendarRangeHelper.js +122 -0
  76. package/cjs/components/Calendar/utils/calendarRangeHelper.js.map +1 -0
  77. package/cjs/components/Calendar/utils/constants.js +60 -0
  78. package/cjs/components/Calendar/utils/constants.js.map +1 -0
  79. package/cjs/components/Calendar/utils/getDateWithModification.js +188 -0
  80. package/cjs/components/Calendar/utils/getDateWithModification.js.map +1 -0
  81. package/cjs/components/DatePicker/DatePicker.tokens.js +11 -0
  82. package/cjs/components/DatePicker/DatePicker.tokens.js.map +1 -1
  83. package/cjs/components/DatePicker/DatePickerBase.styles.js +1 -1
  84. package/cjs/components/DatePicker/DatePickerBase.styles.js.map +1 -1
  85. package/cjs/components/DatePicker/{DatePickerBase.styles_1thp2xv.css → DatePickerBase.styles_192va2p.css} +1 -1
  86. package/cjs/components/DatePicker/RangeDate/RangeDate.css +22 -23
  87. package/cjs/components/DatePicker/RangeDate/RangeDate.js +18 -6
  88. package/cjs/components/DatePicker/RangeDate/RangeDate.js.map +1 -1
  89. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +22 -23
  90. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +18 -0
  91. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -1
  92. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +1 -1
  93. package/{es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_wp3vfj.css → cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_1gljtdv.css} +2 -2
  94. package/cjs/components/DatePicker/SingleDate/SingleDate.css +21 -22
  95. package/cjs/components/DatePicker/SingleDate/SingleDate.js +15 -3
  96. package/cjs/components/DatePicker/SingleDate/SingleDate.js.map +1 -1
  97. package/cjs/components/DatePicker/hooks/useDatePicker.js +7 -3
  98. package/cjs/components/DatePicker/hooks/useDatePicker.js.map +1 -1
  99. package/cjs/components/TextArea/TextArea.js +5 -5
  100. package/cjs/components/TextArea/TextArea.js.map +1 -1
  101. package/cjs/index.css +23 -24
  102. package/cjs/utils/datejs.js +4 -0
  103. package/cjs/utils/datejs.js.map +1 -1
  104. package/emotion/cjs/components/Accordion/Accordion.js +1 -1
  105. package/emotion/cjs/components/Accordion/Accordion.tokens.js +4 -1
  106. package/emotion/cjs/components/Accordion/ui/AccordionItem/AccordionItem.js +19 -7
  107. package/emotion/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +4 -4
  108. package/emotion/cjs/components/Accordion/utils/index.js +4 -3
  109. package/emotion/cjs/components/Calendar/Calendar.template-doc.mdx +236 -150
  110. package/emotion/cjs/components/Calendar/Calendar.tokens.js +32 -7
  111. package/emotion/cjs/components/Calendar/CalendarBase/CalendarBase.js +84 -139
  112. package/emotion/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +261 -101
  113. package/emotion/cjs/components/Calendar/hoc/withRange.js +14 -6
  114. package/emotion/cjs/components/Calendar/hooks/index.js +22 -1
  115. package/emotion/cjs/components/Calendar/hooks/useCalendarDateChange.js +90 -0
  116. package/emotion/cjs/components/Calendar/hooks/useCalendarNavigation.js +96 -0
  117. package/emotion/cjs/components/Calendar/hooks/useDays.js +21 -137
  118. package/emotion/cjs/components/Calendar/hooks/useKeyNavigation.js +26 -15
  119. package/emotion/cjs/components/Calendar/hooks/useMonths.js +32 -6
  120. package/emotion/cjs/components/Calendar/hooks/useQuarters.js +52 -0
  121. package/emotion/cjs/components/Calendar/hooks/useYears.js +34 -6
  122. package/emotion/cjs/components/Calendar/mixins/selected.js +2 -9
  123. package/emotion/cjs/components/Calendar/store/reducer.js +27 -6
  124. package/emotion/cjs/components/Calendar/store/types.js +1 -0
  125. package/emotion/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +28 -17
  126. package/emotion/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +13 -8
  127. package/emotion/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +14 -9
  128. package/emotion/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +97 -27
  129. package/emotion/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +6 -35
  130. package/emotion/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +156 -0
  131. package/emotion/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.styles.js +18 -0
  132. package/emotion/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +100 -25
  133. package/emotion/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +6 -35
  134. package/{styled-components/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.js → emotion/cjs/components/Calendar/ui/DateStructureItem/DateStructureItem.js} +22 -20
  135. package/emotion/cjs/components/Calendar/ui/DateStructureItem/DateStructureItem.styles.js +85 -0
  136. package/emotion/cjs/components/Calendar/ui/index.js +7 -0
  137. package/emotion/cjs/components/Calendar/utils/calendarGridHelper.js +164 -0
  138. package/emotion/cjs/components/Calendar/utils/calendarRangeHelper.js +117 -0
  139. package/emotion/cjs/components/Calendar/utils/constants.js +48 -0
  140. package/emotion/cjs/components/Calendar/utils/getDateWithModification.js +186 -0
  141. package/emotion/cjs/components/Calendar/utils/index.js +39 -243
  142. package/emotion/cjs/components/DatePicker/DatePicker.template-doc.mdx +10 -1
  143. package/emotion/cjs/components/DatePicker/DatePicker.tokens.js +11 -0
  144. package/emotion/cjs/components/DatePicker/DatePickerBase.styles.js +2 -2
  145. package/emotion/cjs/components/DatePicker/RangeDate/RangeDate.js +18 -6
  146. package/emotion/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +18 -0
  147. package/emotion/cjs/components/DatePicker/SingleDate/SingleDate.js +15 -3
  148. package/emotion/cjs/components/DatePicker/hooks/useDatePicker.js +7 -3
  149. package/emotion/cjs/components/TextArea/TextArea.js +6 -6
  150. package/emotion/cjs/examples/plasma_b2c/components/Accordion/Accordion.config.js +6 -6
  151. package/emotion/cjs/examples/plasma_b2c/components/Accordion/Accordion.stories.tsx +5 -3
  152. package/emotion/cjs/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +162 -267
  153. package/emotion/cjs/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +5 -5
  154. package/emotion/cjs/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +5 -5
  155. package/emotion/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.config.js +7 -7
  156. package/emotion/cjs/examples/plasma_web/components/Accordion/Accordion.config.js +8 -8
  157. package/emotion/cjs/examples/plasma_web/components/Accordion/Accordion.stories.tsx +6 -4
  158. package/emotion/cjs/examples/plasma_web/components/Calendar/Calendar.stories.tsx +162 -267
  159. package/emotion/cjs/examples/plasma_web/components/Calendar/CalendarBase.config.js +5 -5
  160. package/emotion/cjs/examples/plasma_web/components/Calendar/CalendarDouble.config.js +5 -5
  161. package/emotion/cjs/examples/plasma_web/components/DatePicker/DatePicker.config.js +7 -7
  162. package/emotion/cjs/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +162 -267
  163. package/emotion/cjs/examples/sds_engineer/components/Calendar/CalendarBase.config.js +5 -5
  164. package/emotion/cjs/examples/sds_engineer/components/Calendar/CalendarDouble.config.js +5 -5
  165. package/emotion/cjs/utils/datejs.js +4 -0
  166. package/emotion/es/components/Accordion/Accordion.js +1 -1
  167. package/emotion/es/components/Accordion/Accordion.tokens.js +4 -1
  168. package/emotion/es/components/Accordion/ui/AccordionItem/AccordionItem.js +20 -7
  169. package/emotion/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +4 -4
  170. package/emotion/es/components/Accordion/utils/index.js +4 -3
  171. package/emotion/es/components/Calendar/Calendar.template-doc.mdx +236 -150
  172. package/emotion/es/components/Calendar/Calendar.tokens.js +31 -6
  173. package/emotion/es/components/Calendar/CalendarBase/CalendarBase.js +88 -143
  174. package/emotion/es/components/Calendar/CalendarDouble/CalendarDouble.js +265 -105
  175. package/emotion/es/components/Calendar/hoc/withRange.js +14 -6
  176. package/emotion/es/components/Calendar/hooks/index.js +4 -1
  177. package/emotion/es/components/Calendar/hooks/useCalendarDateChange.js +84 -0
  178. package/emotion/es/components/Calendar/hooks/useCalendarNavigation.js +90 -0
  179. package/emotion/es/components/Calendar/hooks/useDays.js +22 -138
  180. package/emotion/es/components/Calendar/hooks/useKeyNavigation.js +27 -17
  181. package/emotion/es/components/Calendar/hooks/useMonths.js +33 -8
  182. package/emotion/es/components/Calendar/hooks/useQuarters.js +46 -0
  183. package/emotion/es/components/Calendar/hooks/useYears.js +35 -7
  184. package/emotion/es/components/Calendar/mixins/selected.js +2 -9
  185. package/emotion/es/components/Calendar/store/reducer.js +26 -5
  186. package/emotion/es/components/Calendar/store/types.js +1 -0
  187. package/emotion/es/components/Calendar/ui/CalendarDays/CalendarDays.js +29 -17
  188. package/emotion/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +13 -8
  189. package/emotion/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +14 -9
  190. package/emotion/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +100 -29
  191. package/emotion/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +6 -35
  192. package/emotion/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +149 -0
  193. package/emotion/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.styles.js +11 -0
  194. package/emotion/es/components/Calendar/ui/CalendarYears/CalendarYears.js +103 -27
  195. package/emotion/es/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +6 -35
  196. package/{styled-components/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.js → emotion/es/components/Calendar/ui/DateStructureItem/DateStructureItem.js} +20 -18
  197. package/emotion/es/components/Calendar/ui/DateStructureItem/DateStructureItem.styles.js +78 -0
  198. package/emotion/es/components/Calendar/ui/index.js +1 -0
  199. package/emotion/es/components/Calendar/utils/calendarGridHelper.js +158 -0
  200. package/emotion/es/components/Calendar/utils/calendarRangeHelper.js +111 -0
  201. package/emotion/es/components/Calendar/utils/constants.js +42 -0
  202. package/emotion/es/components/Calendar/utils/getDateWithModification.js +180 -0
  203. package/emotion/es/components/Calendar/utils/index.js +4 -247
  204. package/emotion/es/components/DatePicker/DatePicker.template-doc.mdx +10 -1
  205. package/emotion/es/components/DatePicker/DatePicker.tokens.js +11 -0
  206. package/emotion/es/components/DatePicker/DatePickerBase.styles.js +2 -2
  207. package/emotion/es/components/DatePicker/RangeDate/RangeDate.js +18 -6
  208. package/emotion/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +18 -0
  209. package/emotion/es/components/DatePicker/SingleDate/SingleDate.js +15 -3
  210. package/emotion/es/components/DatePicker/hooks/useDatePicker.js +7 -3
  211. package/emotion/es/components/TextArea/TextArea.js +6 -6
  212. package/emotion/es/examples/plasma_b2c/components/Accordion/Accordion.config.js +6 -6
  213. package/emotion/es/examples/plasma_b2c/components/Accordion/Accordion.stories.tsx +5 -3
  214. package/emotion/es/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +162 -267
  215. package/emotion/es/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +5 -5
  216. package/emotion/es/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +5 -5
  217. package/emotion/es/examples/plasma_b2c/components/DatePicker/DatePicker.config.js +7 -7
  218. package/emotion/es/examples/plasma_web/components/Accordion/Accordion.config.js +8 -8
  219. package/emotion/es/examples/plasma_web/components/Accordion/Accordion.stories.tsx +6 -4
  220. package/emotion/es/examples/plasma_web/components/Calendar/Calendar.stories.tsx +162 -267
  221. package/emotion/es/examples/plasma_web/components/Calendar/CalendarBase.config.js +5 -5
  222. package/emotion/es/examples/plasma_web/components/Calendar/CalendarDouble.config.js +5 -5
  223. package/emotion/es/examples/plasma_web/components/DatePicker/DatePicker.config.js +7 -7
  224. package/emotion/es/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +162 -267
  225. package/emotion/es/examples/sds_engineer/components/Calendar/CalendarBase.config.js +5 -5
  226. package/emotion/es/examples/sds_engineer/components/Calendar/CalendarDouble.config.js +5 -5
  227. package/emotion/es/utils/datejs.js +4 -0
  228. package/es/components/Accordion/Accordion.js +1 -1
  229. package/es/components/Accordion/Accordion.js.map +1 -1
  230. package/es/components/Accordion/Accordion.tokens.js +4 -1
  231. package/es/components/Accordion/Accordion.tokens.js.map +1 -1
  232. package/es/components/Accordion/ui/AccordionItem/AccordionItem.js +15 -8
  233. package/es/components/Accordion/ui/AccordionItem/AccordionItem.js.map +1 -1
  234. package/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +4 -4
  235. package/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js.map +1 -1
  236. package/es/components/Accordion/utils/index.js +4 -3
  237. package/es/components/Accordion/utils/index.js.map +1 -1
  238. package/es/components/Calendar/Calendar.tokens.js +32 -7
  239. package/es/components/Calendar/Calendar.tokens.js.map +1 -1
  240. package/es/components/Calendar/Calendar.types.js.map +1 -1
  241. package/es/components/Calendar/CalendarBase/CalendarBase.css +20 -21
  242. package/es/components/Calendar/CalendarBase/CalendarBase.js +90 -142
  243. package/es/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
  244. package/es/components/Calendar/CalendarDouble/CalendarDouble.css +23 -21
  245. package/es/components/Calendar/CalendarDouble/CalendarDouble.js +270 -105
  246. package/es/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
  247. package/es/components/Calendar/hoc/withRange.js +15 -7
  248. package/es/components/Calendar/hoc/withRange.js.map +1 -1
  249. package/es/components/Calendar/hooks/useCalendarDateChange.js +88 -0
  250. package/es/components/Calendar/hooks/useCalendarDateChange.js.map +1 -0
  251. package/es/components/Calendar/hooks/useCalendarNavigation.js +94 -0
  252. package/es/components/Calendar/hooks/useCalendarNavigation.js.map +1 -0
  253. package/es/components/Calendar/hooks/useDays.js +24 -138
  254. package/es/components/Calendar/hooks/useDays.js.map +1 -1
  255. package/es/components/Calendar/hooks/useKeyNavigation.js +27 -16
  256. package/es/components/Calendar/hooks/useKeyNavigation.js.map +1 -1
  257. package/es/components/Calendar/hooks/useMonths.js +36 -7
  258. package/es/components/Calendar/hooks/useMonths.js.map +1 -1
  259. package/es/components/Calendar/hooks/useQuarters.js +53 -0
  260. package/es/components/Calendar/hooks/useQuarters.js.map +1 -0
  261. package/es/components/Calendar/hooks/useYears.js +38 -7
  262. package/es/components/Calendar/hooks/useYears.js.map +1 -1
  263. package/es/components/Calendar/store/reducer.js +28 -7
  264. package/es/components/Calendar/store/reducer.js.map +1 -1
  265. package/es/components/Calendar/store/types.js +1 -0
  266. package/es/components/Calendar/store/types.js.map +1 -1
  267. package/es/components/Calendar/ui/CalendarDays/CalendarDays.css +4 -4
  268. package/es/components/Calendar/ui/CalendarDays/CalendarDays.js +29 -19
  269. package/es/components/Calendar/ui/CalendarDays/CalendarDays.js.map +1 -1
  270. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.css +8 -8
  271. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +15 -9
  272. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  273. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +2 -2
  274. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  275. package/{cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_gnorek.css → es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1jfelqf.css} +2 -2
  276. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.css +7 -4
  277. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +99 -30
  278. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
  279. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +2 -12
  280. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js.map +1 -1
  281. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_1v3msg.css +2 -0
  282. package/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.css +7 -0
  283. package/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +145 -0
  284. package/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js.map +1 -0
  285. package/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.styles.js +16 -0
  286. package/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.styles.js.map +1 -0
  287. package/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.styles_14gqhct.css +2 -0
  288. package/es/components/Calendar/ui/CalendarYears/CalendarYears.css +7 -4
  289. package/es/components/Calendar/ui/CalendarYears/CalendarYears.js +102 -28
  290. package/es/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
  291. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +2 -12
  292. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles.js.map +1 -1
  293. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles_1d4ov6t.css +2 -0
  294. package/es/components/Calendar/ui/DateStructureItem/DateStructureItem.css +4 -0
  295. package/es/components/Calendar/ui/{CalendarDayItem/CalendarDayItem.js → DateStructureItem/DateStructureItem.js} +22 -20
  296. package/es/components/Calendar/ui/DateStructureItem/DateStructureItem.js.map +1 -0
  297. package/es/components/Calendar/ui/DateStructureItem/DateStructureItem.styles.js +55 -0
  298. package/es/components/Calendar/ui/DateStructureItem/DateStructureItem.styles.js.map +1 -0
  299. package/es/components/Calendar/ui/DateStructureItem/DateStructureItem.styles_1nxxafr.css +4 -0
  300. package/es/components/Calendar/utils/calendarGridHelper.js +153 -0
  301. package/es/components/Calendar/utils/calendarGridHelper.js.map +1 -0
  302. package/es/components/Calendar/utils/calendarRangeHelper.js +110 -0
  303. package/es/components/Calendar/utils/calendarRangeHelper.js.map +1 -0
  304. package/es/components/Calendar/utils/constants.js +45 -0
  305. package/es/components/Calendar/utils/constants.js.map +1 -0
  306. package/es/components/Calendar/utils/getDateWithModification.js +184 -0
  307. package/es/components/Calendar/utils/getDateWithModification.js.map +1 -0
  308. package/es/components/DatePicker/DatePicker.tokens.js +11 -0
  309. package/es/components/DatePicker/DatePicker.tokens.js.map +1 -1
  310. package/es/components/DatePicker/DatePickerBase.styles.js +1 -1
  311. package/es/components/DatePicker/DatePickerBase.styles.js.map +1 -1
  312. package/es/components/DatePicker/{DatePickerBase.styles_1thp2xv.css → DatePickerBase.styles_192va2p.css} +1 -1
  313. package/es/components/DatePicker/RangeDate/RangeDate.css +22 -23
  314. package/es/components/DatePicker/RangeDate/RangeDate.js +18 -6
  315. package/es/components/DatePicker/RangeDate/RangeDate.js.map +1 -1
  316. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +22 -23
  317. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +18 -0
  318. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -1
  319. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +1 -1
  320. package/{cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_wp3vfj.css → es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_1gljtdv.css} +2 -2
  321. package/es/components/DatePicker/SingleDate/SingleDate.css +21 -22
  322. package/es/components/DatePicker/SingleDate/SingleDate.js +15 -3
  323. package/es/components/DatePicker/SingleDate/SingleDate.js.map +1 -1
  324. package/es/components/DatePicker/hooks/useDatePicker.js +7 -3
  325. package/es/components/DatePicker/hooks/useDatePicker.js.map +1 -1
  326. package/es/components/TextArea/TextArea.js +5 -5
  327. package/es/components/TextArea/TextArea.js.map +1 -1
  328. package/es/index.css +23 -24
  329. package/es/utils/datejs.js +4 -0
  330. package/es/utils/datejs.js.map +1 -1
  331. package/package.json +2 -2
  332. package/styled-components/cjs/components/Accordion/Accordion.js +1 -1
  333. package/styled-components/cjs/components/Accordion/Accordion.tokens.js +4 -1
  334. package/styled-components/cjs/components/Accordion/ui/AccordionItem/AccordionItem.js +19 -7
  335. package/styled-components/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +4 -4
  336. package/styled-components/cjs/components/Accordion/utils/index.js +4 -3
  337. package/styled-components/cjs/components/Calendar/Calendar.template-doc.mdx +236 -150
  338. package/styled-components/cjs/components/Calendar/Calendar.tokens.js +32 -7
  339. package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.js +84 -139
  340. package/styled-components/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +261 -101
  341. package/styled-components/cjs/components/Calendar/hoc/withRange.js +14 -6
  342. package/styled-components/cjs/components/Calendar/hooks/index.js +22 -1
  343. package/styled-components/cjs/components/Calendar/hooks/useCalendarDateChange.js +90 -0
  344. package/styled-components/cjs/components/Calendar/hooks/useCalendarNavigation.js +96 -0
  345. package/styled-components/cjs/components/Calendar/hooks/useDays.js +21 -137
  346. package/styled-components/cjs/components/Calendar/hooks/useKeyNavigation.js +26 -15
  347. package/styled-components/cjs/components/Calendar/hooks/useMonths.js +32 -6
  348. package/styled-components/cjs/components/Calendar/hooks/useQuarters.js +52 -0
  349. package/styled-components/cjs/components/Calendar/hooks/useYears.js +34 -6
  350. package/styled-components/cjs/components/Calendar/mixins/selected.js +2 -9
  351. package/styled-components/cjs/components/Calendar/store/reducer.js +27 -6
  352. package/styled-components/cjs/components/Calendar/store/types.js +1 -0
  353. package/styled-components/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +28 -17
  354. package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +13 -8
  355. package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +8 -3
  356. package/styled-components/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +97 -27
  357. package/styled-components/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +3 -30
  358. package/styled-components/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +156 -0
  359. package/styled-components/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.styles.js +16 -0
  360. package/styled-components/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.types.js +5 -0
  361. package/styled-components/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +100 -25
  362. package/styled-components/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +3 -30
  363. package/{emotion/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.js → styled-components/cjs/components/Calendar/ui/DateStructureItem/DateStructureItem.js} +22 -20
  364. package/styled-components/cjs/components/Calendar/ui/{CalendarDayItem/CalendarDayItem.styles.js → DateStructureItem/DateStructureItem.styles.js} +26 -26
  365. package/styled-components/cjs/components/Calendar/ui/DateStructureItem/DateStructureItem.types.js +5 -0
  366. package/styled-components/cjs/components/Calendar/ui/index.js +7 -0
  367. package/styled-components/cjs/components/Calendar/utils/calendarGridHelper.js +164 -0
  368. package/styled-components/cjs/components/Calendar/utils/calendarRangeHelper.js +117 -0
  369. package/styled-components/cjs/components/Calendar/utils/constants.js +48 -0
  370. package/styled-components/cjs/components/Calendar/utils/getDateWithModification.js +186 -0
  371. package/styled-components/cjs/components/Calendar/utils/index.js +39 -243
  372. package/styled-components/cjs/components/DatePicker/DatePicker.template-doc.mdx +10 -1
  373. package/styled-components/cjs/components/DatePicker/DatePicker.tokens.js +11 -0
  374. package/styled-components/cjs/components/DatePicker/DatePickerBase.styles.js +1 -1
  375. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDate.js +18 -6
  376. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +18 -0
  377. package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.js +15 -3
  378. package/styled-components/cjs/components/DatePicker/hooks/useDatePicker.js +7 -3
  379. package/styled-components/cjs/components/TextArea/TextArea.js +5 -5
  380. package/styled-components/cjs/examples/plasma_b2c/components/Accordion/Accordion.config.js +2 -2
  381. package/styled-components/cjs/examples/plasma_b2c/components/Accordion/Accordion.stories.tsx +5 -3
  382. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +162 -267
  383. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +4 -4
  384. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +4 -4
  385. package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.config.js +4 -4
  386. package/styled-components/cjs/examples/plasma_web/components/Accordion/Accordion.config.js +2 -2
  387. package/styled-components/cjs/examples/plasma_web/components/Accordion/Accordion.stories.tsx +6 -4
  388. package/styled-components/cjs/examples/plasma_web/components/Calendar/Calendar.stories.tsx +162 -267
  389. package/styled-components/cjs/examples/plasma_web/components/Calendar/CalendarBase.config.js +4 -4
  390. package/styled-components/cjs/examples/plasma_web/components/Calendar/CalendarDouble.config.js +4 -4
  391. package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.config.js +4 -4
  392. package/styled-components/cjs/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +162 -267
  393. package/styled-components/cjs/examples/sds_engineer/components/Calendar/CalendarBase.config.js +5 -5
  394. package/styled-components/cjs/examples/sds_engineer/components/Calendar/CalendarDouble.config.js +5 -5
  395. package/styled-components/cjs/utils/datejs.js +4 -0
  396. package/styled-components/es/components/Accordion/Accordion.js +1 -1
  397. package/styled-components/es/components/Accordion/Accordion.tokens.js +4 -1
  398. package/styled-components/es/components/Accordion/ui/AccordionItem/AccordionItem.js +20 -7
  399. package/styled-components/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +4 -4
  400. package/styled-components/es/components/Accordion/utils/index.js +4 -3
  401. package/styled-components/es/components/Calendar/Calendar.template-doc.mdx +236 -150
  402. package/styled-components/es/components/Calendar/Calendar.tokens.js +31 -6
  403. package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.js +88 -143
  404. package/styled-components/es/components/Calendar/CalendarDouble/CalendarDouble.js +265 -105
  405. package/styled-components/es/components/Calendar/hoc/withRange.js +14 -6
  406. package/styled-components/es/components/Calendar/hooks/index.js +4 -1
  407. package/styled-components/es/components/Calendar/hooks/useCalendarDateChange.js +84 -0
  408. package/styled-components/es/components/Calendar/hooks/useCalendarNavigation.js +90 -0
  409. package/styled-components/es/components/Calendar/hooks/useDays.js +22 -138
  410. package/styled-components/es/components/Calendar/hooks/useKeyNavigation.js +27 -17
  411. package/styled-components/es/components/Calendar/hooks/useMonths.js +33 -8
  412. package/styled-components/es/components/Calendar/hooks/useQuarters.js +46 -0
  413. package/styled-components/es/components/Calendar/hooks/useYears.js +35 -7
  414. package/styled-components/es/components/Calendar/mixins/selected.js +2 -9
  415. package/styled-components/es/components/Calendar/store/reducer.js +26 -5
  416. package/styled-components/es/components/Calendar/store/types.js +1 -0
  417. package/styled-components/es/components/Calendar/ui/CalendarDays/CalendarDays.js +29 -17
  418. package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +13 -8
  419. package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +8 -3
  420. package/styled-components/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +100 -29
  421. package/styled-components/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +3 -30
  422. package/styled-components/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +149 -0
  423. package/styled-components/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.styles.js +9 -0
  424. package/styled-components/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.types.js +1 -0
  425. package/styled-components/es/components/Calendar/ui/CalendarYears/CalendarYears.js +103 -27
  426. package/styled-components/es/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +3 -30
  427. package/{emotion/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.js → styled-components/es/components/Calendar/ui/DateStructureItem/DateStructureItem.js} +20 -18
  428. package/styled-components/es/components/Calendar/ui/DateStructureItem/DateStructureItem.styles.js +65 -0
  429. package/styled-components/es/components/Calendar/ui/DateStructureItem/DateStructureItem.types.js +1 -0
  430. package/styled-components/es/components/Calendar/ui/index.js +1 -0
  431. package/styled-components/es/components/Calendar/utils/calendarGridHelper.js +158 -0
  432. package/styled-components/es/components/Calendar/utils/calendarRangeHelper.js +111 -0
  433. package/styled-components/es/components/Calendar/utils/constants.js +42 -0
  434. package/styled-components/es/components/Calendar/utils/getDateWithModification.js +180 -0
  435. package/styled-components/es/components/Calendar/utils/index.js +4 -247
  436. package/styled-components/es/components/DatePicker/DatePicker.template-doc.mdx +10 -1
  437. package/styled-components/es/components/DatePicker/DatePicker.tokens.js +11 -0
  438. package/styled-components/es/components/DatePicker/DatePickerBase.styles.js +1 -1
  439. package/styled-components/es/components/DatePicker/RangeDate/RangeDate.js +18 -6
  440. package/styled-components/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +18 -0
  441. package/styled-components/es/components/DatePicker/SingleDate/SingleDate.js +15 -3
  442. package/styled-components/es/components/DatePicker/hooks/useDatePicker.js +7 -3
  443. package/styled-components/es/components/TextArea/TextArea.js +5 -5
  444. package/styled-components/es/examples/plasma_b2c/components/Accordion/Accordion.config.js +2 -2
  445. package/styled-components/es/examples/plasma_b2c/components/Accordion/Accordion.stories.tsx +5 -3
  446. package/styled-components/es/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +162 -267
  447. package/styled-components/es/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +4 -4
  448. package/styled-components/es/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +4 -4
  449. package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.config.js +4 -4
  450. package/styled-components/es/examples/plasma_web/components/Accordion/Accordion.config.js +2 -2
  451. package/styled-components/es/examples/plasma_web/components/Accordion/Accordion.stories.tsx +6 -4
  452. package/styled-components/es/examples/plasma_web/components/Calendar/Calendar.stories.tsx +162 -267
  453. package/styled-components/es/examples/plasma_web/components/Calendar/CalendarBase.config.js +4 -4
  454. package/styled-components/es/examples/plasma_web/components/Calendar/CalendarDouble.config.js +4 -4
  455. package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.config.js +4 -4
  456. package/styled-components/es/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +162 -267
  457. package/styled-components/es/examples/sds_engineer/components/Calendar/CalendarBase.config.js +5 -5
  458. package/styled-components/es/examples/sds_engineer/components/Calendar/CalendarDouble.config.js +5 -5
  459. package/styled-components/es/utils/datejs.js +4 -0
  460. package/types/components/Accordion/Accordion.tokens.d.ts +3 -0
  461. package/types/components/Accordion/Accordion.tokens.d.ts.map +1 -1
  462. package/types/components/Accordion/ui/AccordionItem/AccordionItem.d.ts.map +1 -1
  463. package/types/components/Accordion/ui/AccordionItem/AccordionItem.styles.d.ts.map +1 -1
  464. package/types/components/Accordion/ui/AccordionItem/AccordionItem.types.d.ts +5 -0
  465. package/types/components/Accordion/ui/AccordionItem/AccordionItem.types.d.ts.map +1 -1
  466. package/types/components/Accordion/utils/index.d.ts +4 -2
  467. package/types/components/Accordion/utils/index.d.ts.map +1 -1
  468. package/types/components/Calendar/Calendar.tokens.d.ts +30 -6
  469. package/types/components/Calendar/Calendar.tokens.d.ts.map +1 -1
  470. package/types/components/Calendar/Calendar.types.d.ts +86 -32
  471. package/types/components/Calendar/Calendar.types.d.ts.map +1 -1
  472. package/types/components/Calendar/CalendarBase/CalendarBase.d.ts +4 -44
  473. package/types/components/Calendar/CalendarBase/CalendarBase.d.ts.map +1 -1
  474. package/types/components/Calendar/CalendarDouble/CalendarDouble.d.ts +4 -31
  475. package/types/components/Calendar/CalendarDouble/CalendarDouble.d.ts.map +1 -1
  476. package/types/components/Calendar/hoc/withRange.d.ts +3 -2
  477. package/types/components/Calendar/hoc/withRange.d.ts.map +1 -1
  478. package/types/components/Calendar/hooks/index.d.ts +3 -0
  479. package/types/components/Calendar/hooks/index.d.ts.map +1 -1
  480. package/types/components/Calendar/hooks/types.d.ts +38 -0
  481. package/types/components/Calendar/hooks/types.d.ts.map +1 -0
  482. package/types/components/Calendar/hooks/useCalendarDateChange.d.ts +11 -0
  483. package/types/components/Calendar/hooks/useCalendarDateChange.d.ts.map +1 -0
  484. package/types/components/Calendar/hooks/useCalendarNavigation.d.ts +6 -0
  485. package/types/components/Calendar/hooks/useCalendarNavigation.d.ts.map +1 -0
  486. package/types/components/Calendar/hooks/useDays.d.ts +3 -2
  487. package/types/components/Calendar/hooks/useDays.d.ts.map +1 -1
  488. package/types/components/Calendar/hooks/useKeyNavigation.d.ts +2 -2
  489. package/types/components/Calendar/hooks/useKeyNavigation.d.ts.map +1 -1
  490. package/types/components/Calendar/hooks/useMonths.d.ts +3 -2
  491. package/types/components/Calendar/hooks/useMonths.d.ts.map +1 -1
  492. package/types/components/Calendar/hooks/useQuarters.d.ts +7 -0
  493. package/types/components/Calendar/hooks/useQuarters.d.ts.map +1 -0
  494. package/types/components/Calendar/hooks/useYears.d.ts +3 -2
  495. package/types/components/Calendar/hooks/useYears.d.ts.map +1 -1
  496. package/types/components/Calendar/mixins/selected.d.ts.map +1 -1
  497. package/types/components/Calendar/store/reducer.d.ts +3 -2
  498. package/types/components/Calendar/store/reducer.d.ts.map +1 -1
  499. package/types/components/Calendar/store/types.d.ts +9 -1
  500. package/types/components/Calendar/store/types.d.ts.map +1 -1
  501. package/types/components/Calendar/ui/CalendarDays/CalendarDays.d.ts.map +1 -1
  502. package/types/components/Calendar/ui/CalendarDays/CalendarDays.types.d.ts +3 -3
  503. package/types/components/Calendar/ui/CalendarDays/CalendarDays.types.d.ts.map +1 -1
  504. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.d.ts.map +1 -1
  505. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts +1 -1
  506. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts.map +1 -1
  507. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.types.d.ts +2 -2
  508. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.types.d.ts.map +1 -1
  509. package/types/components/Calendar/ui/CalendarMonths/CalendarMonths.d.ts.map +1 -1
  510. package/types/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.d.ts +0 -2
  511. package/types/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.d.ts.map +1 -1
  512. package/types/components/Calendar/ui/CalendarMonths/CalendarMonths.types.d.ts +14 -4
  513. package/types/components/Calendar/ui/CalendarMonths/CalendarMonths.types.d.ts.map +1 -1
  514. package/types/components/Calendar/ui/CalendarQuarters/CalendarQuarters.d.ts +7 -0
  515. package/types/components/Calendar/ui/CalendarQuarters/CalendarQuarters.d.ts.map +1 -0
  516. package/types/components/Calendar/ui/CalendarQuarters/CalendarQuarters.styles.d.ts +4 -0
  517. package/types/components/Calendar/ui/CalendarQuarters/CalendarQuarters.styles.d.ts.map +1 -0
  518. package/types/components/Calendar/ui/CalendarQuarters/CalendarQuarters.types.d.ts +21 -0
  519. package/types/components/Calendar/ui/CalendarQuarters/CalendarQuarters.types.d.ts.map +1 -0
  520. package/types/components/Calendar/ui/CalendarYears/CalendarYears.d.ts.map +1 -1
  521. package/types/components/Calendar/ui/CalendarYears/CalendarYears.styles.d.ts +0 -2
  522. package/types/components/Calendar/ui/CalendarYears/CalendarYears.styles.d.ts.map +1 -1
  523. package/types/components/Calendar/ui/CalendarYears/CalendarYears.types.d.ts +12 -3
  524. package/types/components/Calendar/ui/CalendarYears/CalendarYears.types.d.ts.map +1 -1
  525. package/types/components/Calendar/ui/DateStructureItem/DateStructureItem.d.ts +7 -0
  526. package/types/components/Calendar/ui/DateStructureItem/DateStructureItem.d.ts.map +1 -0
  527. package/types/components/Calendar/ui/{CalendarDayItem/CalendarDayItem.styles.d.ts → DateStructureItem/DateStructureItem.styles.d.ts} +4 -4
  528. package/types/components/Calendar/ui/DateStructureItem/DateStructureItem.styles.d.ts.map +1 -0
  529. package/types/components/Calendar/ui/DateStructureItem/DateStructureItem.types.d.ts +13 -0
  530. package/types/components/Calendar/ui/DateStructureItem/DateStructureItem.types.d.ts.map +1 -0
  531. package/types/components/Calendar/ui/index.d.ts +1 -0
  532. package/types/components/Calendar/ui/index.d.ts.map +1 -1
  533. package/types/components/Calendar/utils/calendarGridHelper.d.ts +29 -0
  534. package/types/components/Calendar/utils/calendarGridHelper.d.ts.map +1 -0
  535. package/types/components/Calendar/utils/calendarRangeHelper.d.ts +26 -0
  536. package/types/components/Calendar/utils/calendarRangeHelper.d.ts.map +1 -0
  537. package/types/components/Calendar/utils/constants.d.ts +19 -0
  538. package/types/components/Calendar/utils/constants.d.ts.map +1 -0
  539. package/types/components/Calendar/utils/getDateWithModification.d.ts +17 -0
  540. package/types/components/Calendar/utils/getDateWithModification.d.ts.map +1 -0
  541. package/types/components/Calendar/utils/index.d.ts +4 -54
  542. package/types/components/Calendar/utils/index.d.ts.map +1 -1
  543. package/types/components/DatePicker/DatePicker.tokens.d.ts +11 -0
  544. package/types/components/DatePicker/DatePicker.tokens.d.ts.map +1 -1
  545. package/types/components/DatePicker/DatePickerBase.styles.d.ts +1 -5
  546. package/types/components/DatePicker/DatePickerBase.styles.d.ts.map +1 -1
  547. package/types/components/DatePicker/DatePickerBase.types.d.ts +62 -1
  548. package/types/components/DatePicker/DatePickerBase.types.d.ts.map +1 -1
  549. package/types/components/DatePicker/RangeDate/RangeDate.d.ts +6 -6
  550. package/types/components/DatePicker/RangeDate/RangeDate.d.ts.map +1 -1
  551. package/types/components/DatePicker/RangeDate/RangeDate.types.d.ts +5 -41
  552. package/types/components/DatePicker/RangeDate/RangeDate.types.d.ts.map +1 -1
  553. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.d.ts +1 -1
  554. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.d.ts.map +1 -1
  555. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.d.ts +2 -2
  556. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.d.ts.map +1 -1
  557. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.d.ts +5 -3
  558. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.d.ts.map +1 -1
  559. package/types/components/DatePicker/SingleDate/SingleDate.d.ts +2 -2
  560. package/types/components/DatePicker/SingleDate/SingleDate.d.ts.map +1 -1
  561. package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts +3 -39
  562. package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts.map +1 -1
  563. package/types/components/DatePicker/hooks/useDatePicker.d.ts +2 -1
  564. package/types/components/DatePicker/hooks/useDatePicker.d.ts.map +1 -1
  565. package/types/examples/plasma_b2c/components/Accordion/Accordion.config.d.ts.map +1 -1
  566. package/types/examples/plasma_b2c/components/Calendar/Calendar.d.ts +4 -11
  567. package/types/examples/plasma_b2c/components/Calendar/Calendar.d.ts.map +1 -1
  568. package/types/examples/plasma_b2c/components/Calendar/CalendarBase.config.d.ts.map +1 -1
  569. package/types/examples/plasma_b2c/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
  570. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.config.d.ts.map +1 -1
  571. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts +4 -4
  572. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts.map +1 -1
  573. package/types/examples/plasma_web/components/Accordion/Accordion.config.d.ts.map +1 -1
  574. package/types/examples/plasma_web/components/Calendar/Calendar.d.ts +4 -11
  575. package/types/examples/plasma_web/components/Calendar/Calendar.d.ts.map +1 -1
  576. package/types/examples/plasma_web/components/Calendar/CalendarBase.config.d.ts.map +1 -1
  577. package/types/examples/plasma_web/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
  578. package/types/examples/plasma_web/components/DatePicker/DatePicker.config.d.ts.map +1 -1
  579. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts +4 -4
  580. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts.map +1 -1
  581. package/types/examples/sds_engineer/components/Calendar/Calendar.d.ts +4 -11
  582. package/types/examples/sds_engineer/components/Calendar/Calendar.d.ts.map +1 -1
  583. package/types/examples/sds_engineer/components/Calendar/CalendarBase.config.d.ts.map +1 -1
  584. package/types/examples/sds_engineer/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
  585. package/types/utils/datejs.d.ts.map +1 -1
  586. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.css +0 -4
  587. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.js.map +0 -1
  588. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js.map +0 -1
  589. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_107vqka.css +0 -4
  590. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_7jeg2n.css +0 -4
  591. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles_4z2ki7.css +0 -4
  592. package/cjs/components/Calendar/utils/index.js +0 -276
  593. package/cjs/components/Calendar/utils/index.js.map +0 -1
  594. package/emotion/cjs/components/Breadcrumbs/README.md +0 -78
  595. package/emotion/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +0 -85
  596. package/emotion/es/components/Breadcrumbs/README.md +0 -78
  597. package/emotion/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +0 -78
  598. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.css +0 -4
  599. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.js.map +0 -1
  600. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +0 -63
  601. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js.map +0 -1
  602. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_107vqka.css +0 -4
  603. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_7jeg2n.css +0 -4
  604. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles_4z2ki7.css +0 -4
  605. package/es/components/Calendar/utils/index.js +0 -242
  606. package/es/components/Calendar/utils/index.js.map +0 -1
  607. package/styled-components/cjs/components/Breadcrumbs/README.md +0 -78
  608. package/styled-components/es/components/Breadcrumbs/README.md +0 -78
  609. package/styled-components/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +0 -65
  610. package/types/components/Breadcrumbs/Breadcrumbs.types.d.ts +0 -16
  611. package/types/components/Breadcrumbs/Breadcrumbs.types.d.ts.map +0 -1
  612. package/types/components/Calendar/ui/CalendarDayItem/CalendarDayItem.d.ts +0 -7
  613. package/types/components/Calendar/ui/CalendarDayItem/CalendarDayItem.d.ts.map +0 -1
  614. package/types/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.d.ts.map +0 -1
  615. package/types/components/Calendar/ui/CalendarDayItem/CalendarDayItem.types.d.ts +0 -13
  616. package/types/components/Calendar/ui/CalendarDayItem/CalendarDayItem.types.d.ts.map +0 -1
  617. /package/emotion/cjs/components/{Breadcrumbs/Breadcrumbs.types.js → Calendar/hooks/types.js} +0 -0
  618. /package/emotion/cjs/components/Calendar/ui/{CalendarDayItem/CalendarDayItem.types.js → CalendarQuarters/CalendarQuarters.types.js} +0 -0
  619. /package/{styled-components/cjs/components/Breadcrumbs/Breadcrumbs.types.js → emotion/cjs/components/Calendar/ui/DateStructureItem/DateStructureItem.types.js} +0 -0
  620. /package/emotion/es/components/{Breadcrumbs/Breadcrumbs.types.js → Calendar/hooks/types.js} +0 -0
  621. /package/emotion/es/components/Calendar/ui/{CalendarDayItem/CalendarDayItem.types.js → CalendarQuarters/CalendarQuarters.types.js} +0 -0
  622. /package/{styled-components/es/components/Breadcrumbs/Breadcrumbs.types.js → emotion/es/components/Calendar/ui/DateStructureItem/DateStructureItem.types.js} +0 -0
  623. /package/styled-components/cjs/components/Calendar/{ui/CalendarDayItem/CalendarDayItem.types.js → hooks/types.js} +0 -0
  624. /package/styled-components/es/components/Calendar/{ui/CalendarDayItem/CalendarDayItem.types.js → hooks/types.js} +0 -0
@@ -0,0 +1,53 @@
1
+ import { useMemo } from 'react';
2
+ import { getDatesWithModifications } from '../utils/getDateWithModification.js';
3
+ import { QUARTER_NAMES, quarterDates } from '../utils/constants.js';
4
+ import { isCurrentMonth, isSelectedMonth, getMatrix } from '../utils/calendarGridHelper.js';
5
+ import { isDateInRange } from '../utils/calendarRangeHelper.js';
6
+ import { CalendarState } from '../store/types.js';
7
+
8
+ /**
9
+ * Хук для получения списка месяцев.
10
+ */
11
+ var useQuarters = function useQuarters(_ref) {
12
+ var date = _ref.date,
13
+ value = _ref.value,
14
+ eventList = _ref.eventList,
15
+ disabledList = _ref.disabledList,
16
+ min = _ref.min,
17
+ max = _ref.max;
18
+ return useMemo(function () {
19
+ var quarters = QUARTER_NAMES.map(function (quarterName) {
20
+ var _quarterDates$quarter = quarterDates[quarterName],
21
+ monthIndex = _quarterDates$quarter.monthIndex,
22
+ day = _quarterDates$quarter.day;
23
+ return {
24
+ quarterName: quarterName,
25
+ isCurrent: isCurrentMonth(date, monthIndex),
26
+ isSelected: Array.isArray(value) ? Boolean(value.find(function (v) {
27
+ return isSelectedMonth(date, monthIndex, v);
28
+ })) : isSelectedMonth(date, monthIndex, value),
29
+ inRange: Array.isArray(value) ? isDateInRange(date.year, monthIndex, day, value) : false,
30
+ date: {
31
+ year: date.year,
32
+ monthIndex: monthIndex,
33
+ day: 1
34
+ }
35
+ };
36
+ });
37
+ if (eventList !== null && eventList !== void 0 && eventList.length || disabledList !== null && disabledList !== void 0 && disabledList.length || max || min) {
38
+ var modifiedQuarters = getDatesWithModifications({
39
+ dates: quarters,
40
+ type: CalendarState.Quarters,
41
+ min: min,
42
+ max: max,
43
+ eventList: eventList,
44
+ disabledList: disabledList
45
+ });
46
+ return getMatrix(modifiedQuarters, 2);
47
+ }
48
+ return getMatrix(quarters, 2);
49
+ }, [date, value, eventList, disabledList, max, min]);
50
+ };
51
+
52
+ export { useQuarters };
53
+ //# sourceMappingURL=useQuarters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useQuarters.js","sources":["../../../../src/components/Calendar/hooks/useQuarters.ts"],"sourcesContent":["import { useMemo } from 'react';\n\nimport type { DateItem } from '../Calendar.types';\nimport {\n QUARTER_NAMES,\n getMatrix,\n isDateInRange,\n getDatesWithModifications,\n quarterDates,\n isSelectedMonth as isSelectedQuarter,\n isCurrentMonth as isCurrentQuarter,\n} from '../utils';\nimport { CalendarState } from '../store/types';\n\nimport type { UseQuartersArgs } from './types';\n\n/**\n * Хук для получения списка месяцев.\n */\nexport const useQuarters = ({ date, value, eventList, disabledList, min, max }: UseQuartersArgs) =>\n useMemo(() => {\n const quarters = QUARTER_NAMES.map((quarterName: string) => {\n const { monthIndex, day } = quarterDates[quarterName];\n\n return {\n quarterName,\n isCurrent: isCurrentQuarter(date, monthIndex),\n isSelected: Array.isArray(value)\n ? Boolean(value.find((v) => isSelectedQuarter(date, monthIndex, v)))\n : isSelectedQuarter(date, monthIndex, value),\n inRange: Array.isArray(value) ? isDateInRange(date.year, monthIndex, day, value) : false,\n date: { year: date.year, monthIndex, day: 1 },\n };\n });\n\n if (eventList?.length || disabledList?.length || max || min) {\n const modifiedQuarters = getDatesWithModifications({\n dates: quarters,\n type: CalendarState.Quarters,\n min,\n max,\n eventList,\n disabledList,\n });\n\n return getMatrix<DateItem>(modifiedQuarters, 2);\n }\n\n return getMatrix<DateItem>(quarters, 2);\n }, [date, value, eventList, disabledList, max, min]);\n"],"names":["useQuarters","_ref","date","value","eventList","disabledList","min","max","useMemo","quarters","QUARTER_NAMES","map","quarterName","_quarterDates$quarter","quarterDates","monthIndex","day","isCurrent","isCurrentQuarter","isSelected","Array","isArray","Boolean","find","v","isSelectedQuarter","inRange","isDateInRange","year","length","modifiedQuarters","getDatesWithModifications","dates","type","CalendarState","Quarters","getMatrix"],"mappings":";;;;;;;AAgBA;AACA;AACA;IACaA,WAAW,GAAG,SAAdA,WAAWA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IAAEC,KAAK,GAAAF,IAAA,CAALE,KAAK;IAAEC,SAAS,GAAAH,IAAA,CAATG,SAAS;IAAEC,YAAY,GAA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ZA,YAAY,CAAEwB,MAAM,IAAItB,GAAG,IAAID,GAAG,EAAE;MACzD,IAAMwB,gBAAgB,GAAGC,yBAAyB,CAAC;AAC/CC,QAAAA,KAAK,EAAEvB,QAAQ;QACfwB,IAAI,EAAEC,aAAa,CAACC,QAAQ;AAC5B7B,QAAAA,GAAG,EAAHA,GAAG;AACHC,QAAAA,GAAG,EAAHA,GAAG;AACHH,QAAAA,SAAS,EAATA,SAAS;AACTC,QAAAA,YAAY,EAAZA,YAAAA;AACJ,OAAC,CAAC,CAAA;AAEF,MAAA,OAAO+B,SAAS,CAAWN,gBAAgB,EAAE,CAAC,CAAC,CAAA;AACnD,KAAA;AAEA,IAAA,OAAOM,SAAS,CAAW3B,QAAQ,EAAE,CAAC,CAAC,CAAA;AAC3C,GAAC,EAAE,CAACP,IAAI,EAAEC,KAAK,EAAEC,SAAS,EAAEC,YAAY,EAAEE,GAAG,EAAED,GAAG,CAAC,CAAC,CAAA;AAAA;;;;"}
@@ -1,21 +1,52 @@
1
1
  import { useMemo } from 'react';
2
- import { YEAR_RENDER_COUNT, isCurrentYear, isSelectedYear, getMatrix } from '../utils/index.js';
2
+ import { getDatesWithModifications } from '../utils/getDateWithModification.js';
3
+ import { YEAR_RENDER_COUNT } from '../utils/constants.js';
4
+ import { isCurrentYear, isSelectedYear, getMatrix } from '../utils/calendarGridHelper.js';
5
+ import { isDateInRange } from '../utils/calendarRangeHelper.js';
6
+ import { CalendarState } from '../store/types.js';
3
7
 
4
8
  /**
5
9
  * Хук для получения списка годов.
6
10
  */
7
- var useYears = function useYears(date, startYear) {
11
+ var useYears = function useYears(_ref) {
12
+ var date = _ref.date,
13
+ value = _ref.value,
14
+ startYear = _ref.startYear,
15
+ eventList = _ref.eventList,
16
+ disabledList = _ref.disabledList,
17
+ min = _ref.min,
18
+ max = _ref.max;
8
19
  return useMemo(function () {
9
20
  // type-coverage:ignore-next-line
10
- var result = Array.from(Array(YEAR_RENDER_COUNT), function (_, i) {
21
+ var years = Array.from(Array(YEAR_RENDER_COUNT), function (_, i) {
22
+ var yearValue = startYear + i;
11
23
  return {
12
24
  isCurrent: isCurrentYear(startYear + i),
13
- isSelected: isSelectedYear(date, startYear + i),
14
- yearValue: startYear + i
25
+ isSelected: Array.isArray(value) ? Boolean(value.find(function (v) {
26
+ return isSelectedYear(yearValue, v);
27
+ })) : isSelectedYear(yearValue, value),
28
+ inRange: Array.isArray(value) ? isDateInRange(yearValue, 0, 1, value) : false,
29
+ date: {
30
+ year: yearValue,
31
+ monthIndex: 0,
32
+ day: 1
33
+ },
34
+ yearValue: yearValue
15
35
  };
16
36
  });
17
- return getMatrix(result, 3);
18
- }, [date, startYear]);
37
+ if (eventList !== null && eventList !== void 0 && eventList.length || disabledList !== null && disabledList !== void 0 && disabledList.length || max || min) {
38
+ var modifiedMonths = getDatesWithModifications({
39
+ dates: years,
40
+ type: CalendarState.Years,
41
+ min: min,
42
+ max: max,
43
+ eventList: eventList,
44
+ disabledList: disabledList
45
+ });
46
+ return getMatrix(modifiedMonths, 3);
47
+ }
48
+ return getMatrix(years, 3);
49
+ }, [date, startYear, value, eventList, disabledList, max, min]);
19
50
  };
20
51
 
21
52
  export { useYears };
@@ -1 +1 @@
1
- {"version":3,"file":"useYears.js","sources":["../../../../src/components/Calendar/hooks/useYears.ts"],"sourcesContent":["import { useMemo } from 'react';\n\nimport { YEAR_RENDER_COUNT, isCurrentYear, isSelectedYear, getMatrix } from '../utils';\nimport type { DateObject, YearsItem } from '../Calendar.types';\n\n/**\n * Хук для получения списка годов.\n */\nexport const useYears = (date: DateObject, startYear: number) =>\n useMemo(() => {\n // type-coverage:ignore-next-line\n const result = Array.from(Array(YEAR_RENDER_COUNT), (_, i) => ({\n isCurrent: isCurrentYear(startYear + i),\n isSelected: isSelectedYear(date, startYear + i),\n yearValue: startYear + i,\n }));\n\n return getMatrix<YearsItem>(result, 3);\n }, [date, startYear]);\n"],"names":["useYears","date","startYear","useMemo","result","Array","from","YEAR_RENDER_COUNT","_","i","isCurrent","isCurrentYear","isSelected","isSelectedYear","yearValue","getMatrix"],"mappings":";;;AAKA;AACA;AACA;AACO,IAAMA,QAAQ,GAAG,SAAXA,QAAQA,CAAIC,IAAgB,EAAEC,SAAiB,EAAA;EAAA,OACxDC,OAAO,CAAC,YAAM;AACV;AACA,IAAA,IAAMC,MAAM,GAAGC,KAAK,CAACC,IAAI,CAACD,KAAK,CAACE,iBAAiB,CAAC,EAAE,UAACC,CAAC,EAAEC,CAAC,EAAA;MAAA,OAAM;AAC3DC,QAAAA,SAAS,EAAEC,aAAa,CAACT,SAAS,GAAGO,CAAC,CAAC;QACvCG,UAAU,EAAEC,cAAc,CAACZ,IAAI,EAAEC,SAAS,GAAGO,CAAC,CAAC;QAC/CK,SAAS,EAAEZ,SAAS,GAAGO,CAAAA;OAC1B,CAAA;AAAA,KAAC,CAAC,CAAA;AAEH,IAAA,OAAOM,SAAS,CAAYX,MAAM,EAAE,CAAC,CAAC,CAAA;AAC1C,GAAC,EAAE,CAACH,IAAI,EAAEC,SAAS,CAAC,CAAC,CAAA;AAAA;;;;"}
1
+ {"version":3,"file":"useYears.js","sources":["../../../../src/components/Calendar/hooks/useYears.ts"],"sourcesContent":["import { useMemo } from 'react';\n\nimport {\n YEAR_RENDER_COUNT,\n isCurrentYear,\n isSelectedYear,\n getMatrix,\n isDateInRange,\n getDatesWithModifications,\n} from '../utils';\nimport type { DateItem } from '../Calendar.types';\nimport { CalendarState } from '../store/types';\n\nimport type { UseYearsArgs } from './types';\n\n/**\n * Хук для получения списка годов.\n */\nexport const useYears = ({ date, value, startYear, eventList, disabledList, min, max }: UseYearsArgs) =>\n useMemo(() => {\n // type-coverage:ignore-next-line\n const years = Array.from(Array(YEAR_RENDER_COUNT), (_, i) => {\n const yearValue = startYear + i;\n\n return {\n isCurrent: isCurrentYear(startYear + i),\n isSelected: Array.isArray(value)\n ? Boolean(value.find((v) => isSelectedYear(yearValue, v)))\n : isSelectedYear(yearValue, value),\n inRange: Array.isArray(value) ? isDateInRange(yearValue, 0, 1, value) : false,\n date: { year: yearValue, monthIndex: 0, day: 1 },\n yearValue,\n };\n });\n\n if (eventList?.length || disabledList?.length || max || min) {\n const modifiedMonths = getDatesWithModifications({\n dates: years,\n type: CalendarState.Years,\n min,\n max,\n eventList,\n disabledList,\n });\n return getMatrix<DateItem>(modifiedMonths, 3);\n }\n\n return getMatrix<DateItem>(years, 3);\n }, [date, startYear, value, eventList, disabledList, max, min]);\n"],"names":["useYears","_ref","date","value","startYear","eventList","disabledList","min","max","useMemo","years","Array","from","YEAR_RENDER_COUNT","_","i","yearValue","isCurrent","isCurrentYear","isSelected","isArray","Boolean","find","v","isSelectedYear","inRange","isDateInRange","year","monthIndex","day","length","modifiedMonths","getDatesWithModifications","dates","type","CalendarState","Years","getMatrix"],"mappings":";;;;;;;AAeA;AACA;AACA;IACaA,QAAQ,GAAG,SAAXA,QAAQA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IAAEC,KAAK,GAAAF,IAAA,CAALE,KAAK;IAAEC,SAAS,GAAAH,IAAA,CAATG,SAAS;IAAEC,SAAS,GAAAJ,IAAA,CAATI,SAAS;IAAEC,YAAY,GAAAL,IAAA,CAAZK,YAAY;IAAEC,GAAG,GAAAN,IAAA,CAAHM,GAAG;IAAEC,GAAG,GAAAP,IAAA,CAAHO,GAAG,CAAA;EAAA,OAChFC,OAAO,CAAC,YAAM;AACV;AACA,IAAA,IAAMC,KAAK,GAAGC,KAAK,CAACC,IAAI,CAACD,KAAK,CAACE,iBAAiB,CAAC,EAAE,UAACC,CAAC,EAAEC,CAAC,EAAK;AACzD,MAAA,IAAMC,SAAS,GAAGZ,SAAS,GAAGW,CAAC,CAAA;MAE/B,OAAO;AACHE,QAAAA,SAAS,EAAEC,aAAa,CAACd,SAAS,GAAGW,CAAC,CAAC;AACvCI,QAAAA,UAAU,EAAER,KAAK,CAACS,OAAO,CAACjB,KAAK,CAAC,GAC1BkB,O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AAG,CAAC,CAAC,CAAA;AAAA;;;;"}
@@ -1,17 +1,36 @@
1
1
  import { objectSpread2 as _objectSpread2, slicedToArray as _slicedToArray } from '../../../_virtual/_rollupPluginBabelHelpers.js';
2
- import { getDateFromValue, getStartYear, getNextDate, getPrevDate } from '../utils/index.js';
3
2
  import { ActionType } from './types.js';
3
+ import { getDateFromValue, getStartYear, getNextDate, getPrevDate } from '../utils/calendarGridHelper.js';
4
4
 
5
- var getInitialState = function getInitialState(value, size, calendarState) {
5
+ var sizeMap = {
6
+ Days: {
7
+ single: [5, 6],
8
+ "double": [11, 6]
9
+ },
10
+ Months: {
11
+ single: [3, 2],
12
+ "double": [7, 2]
13
+ },
14
+ Years: {
15
+ single: [3, 2],
16
+ "double": [7, 2]
17
+ },
18
+ Quarters: {
19
+ single: [1, 1],
20
+ "double": [3, 1]
21
+ }
22
+ };
23
+ var getInitialState = function getInitialState(value, calendarState, isDouble) {
6
24
  var initDate = value || new Date();
7
25
  var date = getDateFromValue(initDate);
26
+ var resSize = isDouble ? sizeMap[calendarState]["double"] : sizeMap[calendarState].single;
8
27
  return {
9
28
  date: _objectSpread2(_objectSpread2({}, date), {}, {
10
29
  day: value !== undefined ? date.day : 0
11
30
  }),
12
31
  startYear: getStartYear(date.year),
13
32
  calendarState: calendarState,
14
- size: size
33
+ size: resSize
15
34
  };
16
35
  };
17
36
  var reducer = function reducer(state, action) {
@@ -118,8 +137,10 @@ var reducer = function reducer(state, action) {
118
137
  {
119
138
  var _action$payload4 = action.payload,
120
139
  _calendarState = _action$payload4.calendarState,
121
- _year2 = _action$payload4.year;
140
+ _year2 = _action$payload4.year,
141
+ _size = _action$payload4.size;
122
142
  return _objectSpread2(_objectSpread2({}, state), {}, {
143
+ size: _size,
123
144
  calendarState: _calendarState,
124
145
  date: {
125
146
  day: state.date.day,
@@ -132,10 +153,10 @@ var reducer = function reducer(state, action) {
132
153
  {
133
154
  var _action$payload5 = action.payload,
134
155
  _calendarState2 = _action$payload5.calendarState,
135
- _size = _action$payload5.size;
156
+ _size2 = _action$payload5.size;
136
157
  return _objectSpread2(_objectSpread2({}, state), {}, {
137
158
  calendarState: _calendarState2,
138
- size: _size || state.size
159
+ size: _size2 || state.size
139
160
  });
140
161
  }
141
162
  default:
@@ -143,5 +164,5 @@ var reducer = function reducer(state, action) {
143
164
  }
144
165
  };
145
166
 
146
- export { getInitialState, reducer };
167
+ export { getInitialState, reducer, sizeMap };
147
168
  //# sourceMappingURL=reducer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"reducer.js","sources":["../../../../src/components/Calendar/store/reducer.ts"],"sourcesContent":["import { getDateFromValue, getNextDate, getPrevDate, getStartYear } from '../utils';\n\nimport { CalendarStateType, Action, ActionType, InitialState } from './types';\n\nexport const getInitialState = (\n value: Date | undefined,\n size: [number, number],\n calendarState: CalendarStateType,\n): InitialState => {\n const initDate = value || new Date();\n const date = getDateFromValue(initDate);\n\n return {\n date: { ...date, day: value !== undefined ? date.day : 0 },\n startYear: getStartYear(date.year),\n calendarState,\n size,\n };\n};\n\nexport const reducer = (state: InitialState, action: Action): InitialState => {\n switch (action.type) {\n case ActionType.PREVIOUS_MONTH: {\n const { year, monthIndex } = action.payload;\n const [prevYear, prevMonthIndex] = getPrevDate(year, monthIndex);\n\n return {\n ...state,\n date: {\n day: state.date.day,\n monthIndex: prevMonthIndex,\n year: prevYear,\n },\n };\n }\n case ActionType.NEXT_MONTH: {\n const { monthIndex, year } = action.payload;\n const [nextYear, nextMonthIndex] = getNextDate(year, monthIndex);\n\n return {\n ...state,\n date: {\n day: state.date.day,\n monthIndex: nextMonthIndex,\n year: nextYear,\n },\n };\n }\n case ActionType.PREVIOUS_YEAR: {\n const { step } = action.payload;\n\n return {\n ...state,\n startYear: state.startYear - step,\n date: {\n day: state.date.day,\n monthIndex: state.date.monthIndex,\n year: state.date.year - step,\n },\n };\n }\n case ActionType.NEXT_YEAR: {\n const { step } = action.payload;\n\n return {\n ...state,\n startYear: state.startYear + step,\n date: {\n day: state.date.day,\n monthIndex: state.date.monthIndex,\n year: state.date.year + step,\n },\n };\n }\n case ActionType.PREVIOUS_START_YEAR: {\n const { yearsCount } = action.payload;\n\n return {\n ...state,\n startYear: state.startYear - yearsCount,\n };\n }\n case ActionType.NEXT_START_YEAR: {\n const { yearsCount } = action.payload;\n\n return {\n ...state,\n startYear: state.startYear + yearsCount,\n };\n }\n case ActionType.UPDATE_DATE: {\n const { value } = action.payload;\n const date = getDateFromValue(value);\n const startYear = getStartYear(value.getFullYear());\n\n return {\n ...state,\n date,\n startYear,\n };\n }\n case ActionType.UPDATE_MONTH: {\n const { calendarState, monthIndex, size } = action.payload;\n\n return {\n ...state,\n size,\n calendarState,\n date: {\n day: state.date.day,\n monthIndex,\n year: state.date.year,\n },\n };\n }\n case ActionType.UPDATE_YEAR: {\n const { calendarState, year } = action.payload;\n\n return {\n ...state,\n calendarState,\n date: {\n day: state.date.day,\n monthIndex: state.date.monthIndex,\n year,\n },\n };\n }\n case ActionType.UPDATE_CALENDAR_STATE: {\n const { calendarState, size } = action.payload;\n\n return {\n ...state,\n calendarState,\n size: size || state.size,\n };\n }\n default:\n return state;\n }\n};\n"],"names":["getInitialState","value","size","calendarState","initDate","Date","date","getDateFromValue","_objectSpread","day","undefined","startYear","getStartYear","year","reducer","state","action","type","ActionType","PREVIOUS_MONTH","_action$payload","payload","monthIndex","_getPrevDate","getPrevDate","_getPrevDate2","_slicedToArray","prevYear","prevMonthIndex","NEXT_MONTH","_action$payload2","_getNextDate","getNextDate","_getNextDate2","nextYear","nextMonthIndex","PREVIOUS_YEAR","step","NEXT_YEAR","PREVIOUS_START_YEAR","yearsCount","NEXT_START_YEAR","UPDATE_DATE","getFullYear","UPDATE_MONTH","_action$payload3","UPDATE_YEAR","_action$payload4","UPDATE_CALENDAR_STATE","_action$payload5"],"mappings":";;;;AAIO,IAAMA,eAAe,GAAG,SAAlBA,eAAeA,CACxBC,KAAuB,EACvBC,IAAsB,EACtBC,aAAgC,EACjB;AACf,EAA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AAI,CAAA;AAE3B,QAAA,OAAAL,cAAA,CAAAA,cAAA,CAAA,EAAA,EACOO,KAAK,CAAA,EAAA,EAAA,EAAA;AACRZ,UAAAA,aAAa,EAAbA,cAAa;AACbG,UAAAA,IAAI,EAAE;AACFG,YAAAA,GAAG,EAAEM,KAAK,CAACT,IAAI,CAACG,GAAG;AACnBa,YAAAA,UAAU,EAAEP,KAAK,CAACT,IAAI,CAACgB,UAAU;AACjCT,YAAAA,IAAI,EAAJA,MAAAA;AACJ,WAAA;AAAC,SAAA,CAAA,CAAA;AAET,OAAA;IACA,KAAKK,UAAU,CAAC8B,qBAAqB;AAAE,MAAA;AACnC,QAAA,IAAAC,gBAAA,GAAgCjC,MAAM,CAACK,OAAO;UAAtClB,eAAa,GAAA8C,gBAAA,CAAb9C,aAAa;UAAED,KAAI,GAAA+C,gBAAA,CAAJ/C,IAAI,CAAA;AAE3B,QAAA,OAAAM,cAAA,CAAAA,cAAA,CAAA,EAAA,EACOO,KAAK,CAAA,EAAA,EAAA,EAAA;AACRZ,UAAAA,aAAa,EAAbA,eAAa;AACbD,UAAAA,IAAI,EAAEA,KAAI,IAAIa,KAAK,CAACb,IAAAA;AAAI,SAAA,CAAA,CAAA;AAEhC,OAAA;AACA,IAAA;AACI,MAAA,OAAOa,KAAK,CAAA;AACpB,GAAA;AACJ;;;;"}
1
+ {"version":3,"file":"reducer.js","sources":["../../../../src/components/Calendar/store/reducer.ts"],"sourcesContent":["import { getDateFromValue, getNextDate, getPrevDate, getStartYear } from '../utils';\n\nimport { CalendarStateType, Action, ActionType, InitialState, SizeMap } from './types';\n\nexport const sizeMap: SizeMap = {\n Days: {\n single: [5, 6],\n double: [11, 6],\n },\n Months: {\n single: [3, 2],\n double: [7, 2],\n },\n Years: {\n single: [3, 2],\n double: [7, 2],\n },\n Quarters: {\n single: [1, 1],\n double: [3, 1],\n },\n};\n\nexport const getInitialState = (\n value: Date | undefined,\n calendarState: CalendarStateType,\n isDouble?: boolean,\n): InitialState => {\n const initDate = value || new Date();\n const date = getDateFromValue(initDate);\n\n const resSize: [number, number] = isDouble ? sizeMap[calendarState].double : sizeMap[calendarState].single;\n\n return {\n date: { ...date, day: value !== undefined ? date.day : 0 },\n startYear: getStartYear(date.year),\n calendarState,\n size: resSize,\n };\n};\n\nexport const reducer = (state: InitialState, action: Action): InitialState => {\n switch (action.type) {\n case ActionType.PREVIOUS_MONTH: {\n const { year, monthIndex } = action.payload;\n const [prevYear, prevMonthIndex] = getPrevDate(year, monthIndex);\n\n return {\n ...state,\n date: {\n day: state.date.day,\n monthIndex: prevMonthIndex,\n year: prevYear,\n },\n };\n }\n case ActionType.NEXT_MONTH: {\n const { monthIndex, year } = action.payload;\n const [nextYear, nextMonthIndex] = getNextDate(year, monthIndex);\n\n return {\n ...state,\n date: {\n day: state.date.day,\n monthIndex: nextMonthIndex,\n year: nextYear,\n },\n };\n }\n case ActionType.PREVIOUS_YEAR: {\n const { step } = action.payload;\n\n return {\n ...state,\n startYear: state.startYear - step,\n date: {\n day: state.date.day,\n monthIndex: state.date.monthIndex,\n year: state.date.year - step,\n },\n };\n }\n case ActionType.NEXT_YEAR: {\n const { step } = action.payload;\n\n return {\n ...state,\n startYear: state.startYear + step,\n date: {\n day: state.date.day,\n monthIndex: state.date.monthIndex,\n year: state.date.year + step,\n },\n };\n }\n case ActionType.PREVIOUS_START_YEAR: {\n const { yearsCount } = action.payload;\n\n return {\n ...state,\n startYear: state.startYear - yearsCount,\n };\n }\n case ActionType.NEXT_START_YEAR: {\n const { yearsCount } = action.payload;\n\n return {\n ...state,\n startYear: state.startYear + yearsCount,\n };\n }\n case ActionType.UPDATE_DATE: {\n const { value } = action.payload;\n const date = getDateFromValue(value);\n const startYear = getStartYear(value.getFullYear());\n\n return {\n ...state,\n date,\n startYear,\n };\n }\n case ActionType.UPDATE_MONTH: {\n const { calendarState, monthIndex, size } = action.payload;\n\n return {\n ...state,\n size,\n calendarState,\n date: {\n day: state.date.day,\n monthIndex,\n year: state.date.year,\n },\n };\n }\n case ActionType.UPDATE_YEAR: {\n const { calendarState, year, size } = action.payload;\n\n return {\n ...state,\n size,\n calendarState,\n date: {\n day: state.date.day,\n monthIndex: state.date.monthIndex,\n year,\n },\n };\n }\n case ActionType.UPDATE_CALENDAR_STATE: {\n const { calendarState, size } = action.payload;\n\n return {\n ...state,\n calendarState,\n size: size || state.size,\n };\n }\n default:\n return state;\n }\n};\n"],"names":["sizeMap","Days","single","Months","Years","Quarters","getInitialState","value","calendarState","isDouble","initDate","Date","date","getDateFromValue","resSize","_objectSpread","day","undefined","startYear","getStartYear","year","size","reducer","state","action","type","ActionType","PREVIOUS_MONTH","_action$payload","payload","monthIndex","_getPrevDate","getPrevDate","_getPrevDate2","_slicedToArray","prevYear","prevMonthIndex","NEXT_MONTH","_action$payload2","_getNextDate","getNextDate","_getNextDate2","nextYear","nextMonthIndex","PREVIOUS_YEAR","step","NEXT_YEAR","PREVIOUS_START_YEAR","yearsCount","NEXT_START_YEAR","UPDATE_DATE","getFullYear","UPDATE_MONTH","_action$payload3","UPDATE_YEAR","_action$payload4","UPDATE_CALENDAR_STATE","_action$payload5"],"mappings":";;;;AAIO,IAAMA,OAAgB,GAAG;AAC5BC,EAAAA,IAAI,EAAE;AACFC,IAAAA,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IACd,QAAQ,EAAA,CAAC,EAAE,EAAE,CAAC,CAAA;GACjB;AACDC,EAAAA,MAAM,EAAE;AACJD,IAAAA,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IACd,QAAQ,EAAA,CAAC,CAAC,EAAE,CAAC,CAAA;GAChB;AACDE,EAAAA,KAAK,EAAE;AACHF,IAAAA,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IACd,QAAQ,EAAA,CAAC,CAAC,EAAE,CAAC,CAAA;GAChB;AACDG,EAAAA,QAAQ,EAAE;AACNH,IAAAA,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IACd,QA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-2,6 +2,7 @@ var CalendarState = /*#__PURE__*/function (CalendarState) {
2
2
  CalendarState["Days"] = "Days";
3
3
  CalendarState["Months"] = "Months";
4
4
  CalendarState["Years"] = "Years";
5
+ CalendarState["Quarters"] = "Quarters";
5
6
  return CalendarState;
6
7
  }({});
7
8
  var ActionType = /*#__PURE__*/function (ActionType) {
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sources":["../../../../src/components/Calendar/store/types.ts"],"sourcesContent":["import type { DateObject } from '../Calendar.types';\n\nexport enum CalendarState {\n Days = 'Days',\n Months = 'Months',\n Years = 'Years',\n}\n\nexport const enum ActionType {\n NEXT_MONTH = 'next_month',\n PREVIOUS_MONTH = 'previous_month',\n NEXT_YEAR = 'next_year',\n PREVIOUS_YEAR = 'previous_year',\n PREVIOUS_START_YEAR = 'previous_start_year',\n NEXT_START_YEAR = 'next_start_year',\n UPDATE_DATE = 'update_date',\n UPDATE_MONTH = 'update_month',\n UPDATE_YEAR = 'update_year',\n UPDATE_CALENDAR_STATE = 'update_calendar_state',\n}\n\nexport type CalendarStateType = keyof typeof CalendarState;\n\nexport interface InitialState {\n date: DateObject;\n calendarState: CalendarStateType;\n startYear: number;\n size: [number, number];\n}\n\nexport type PreviousMonthAction = { type: ActionType.PREVIOUS_MONTH; payload: { monthIndex: number; year: number } };\n\nexport type NextMonthAction = { type: ActionType.NEXT_MONTH; payload: { monthIndex: number; year: number } };\n\nexport type PreviousYearAction = { type: ActionType.PREVIOUS_YEAR; payload: { step: number } };\n\nexport type NextYearAction = { type: ActionType.NEXT_YEAR; payload: { step: number } };\n\nexport type PreviousStartYearAction = { type: ActionType.PREVIOUS_START_YEAR; payload: { yearsCount: number } };\n\nexport type NextStartYearAction = { type: ActionType.NEXT_START_YEAR; payload: { yearsCount: number } };\n\nexport type UpdateDateAction = { type: ActionType.UPDATE_DATE; payload: { value: Date } };\n\nexport type UpdateMonthAction = {\n type: ActionType.UPDATE_MONTH;\n payload: { calendarState: CalendarStateType; monthIndex: number; size: [number, number] };\n};\n\nexport type UpdateYearAction = {\n type: ActionType.UPDATE_YEAR;\n payload: { calendarState: CalendarStateType; year: number };\n};\n\nexport type UpdateCalendarStateAction = {\n type: ActionType.UPDATE_CALENDAR_STATE;\n payload: { calendarState: CalendarStateType; size?: [number, number] };\n};\n\nexport type Action =\n | NextMonthAction\n | PreviousMonthAction\n | NextYearAction\n | PreviousYearAction\n | PreviousStartYearAction\n | NextStartYearAction\n | UpdateDateAction\n | UpdateMonthAction\n | UpdateYearAction\n | UpdateCalendarStateAction;\n"],"names":["CalendarState","ActionType"],"mappings":"AAEYA,IAAAA,aAAa,0BAAbA,aAAa,EAAA;EAAbA,aAAa,CAAA,MAAA,CAAA,GAAA,MAAA,CAAA;EAAbA,aAAa,CAAA,QAAA,CAAA,GAAA,QAAA,CAAA;EAAbA,aAAa,CAAA,OAAA,CAAA,GAAA,OAAA,CAAA;AAAA,EAAA,OAAbA,aAAa,CAAA;AAAA,CAAA,CAAA,EAAA,EAAA;AAMPC,IAAAA,UAAU,0BAAVA,UAAU,EAAA;EAAVA,UAAU,CAAA,YAAA,CAAA,GAAA,YAAA,CAAA;EAAVA,UAAU,CAAA,gBAAA,CAAA,GAAA,gBAAA,CAAA;EAAVA,UAAU,CAAA,WAAA,CAAA,GAAA,WAAA,CAAA;EAAVA,UAAU,CAAA,eAAA,CAAA,GAAA,eAAA,CAAA;EAAVA,UAAU,CAAA,qBAAA,CAAA,GAAA,qBAAA,CAAA;EAAVA,UAAU,CAAA,iBAAA,CAAA,GAAA,iBAAA,CAAA;EAAVA,UAAU,CAAA,aAAA,CAAA,GAAA,aAAA,CAAA;EAAVA,UAAU,CAAA,cAAA,CAAA,GAAA,cAAA,CAAA;EAAVA,UAAU,CAAA,aAAA,CAAA,GAAA,aAAA,CAAA;EAAVA,UAAU,CAAA,uBAAA,CAAA,GAAA,uBAAA,CAAA;AAAA,EAAA,OAAVA,UAAU,CAAA;AAAA,CAAA,CAAA,EAAA;;;;"}
1
+ {"version":3,"file":"types.js","sources":["../../../../src/components/Calendar/store/types.ts"],"sourcesContent":["import type { DateObject } from '../Calendar.types';\n\nexport enum CalendarState {\n Days = 'Days',\n Months = 'Months',\n Years = 'Years',\n Quarters = 'Quarters',\n}\n\nexport const enum ActionType {\n NEXT_MONTH = 'next_month',\n PREVIOUS_MONTH = 'previous_month',\n NEXT_YEAR = 'next_year',\n PREVIOUS_YEAR = 'previous_year',\n PREVIOUS_START_YEAR = 'previous_start_year',\n NEXT_START_YEAR = 'next_start_year',\n UPDATE_DATE = 'update_date',\n UPDATE_MONTH = 'update_month',\n UPDATE_YEAR = 'update_year',\n UPDATE_CALENDAR_STATE = 'update_calendar_state',\n}\n\nexport type SizeMap = {\n [key in CalendarState]: {\n single: [number, number];\n double: [number, number];\n };\n};\n\nexport type CalendarStateType = keyof typeof CalendarState;\n\nexport interface InitialState {\n date: DateObject;\n calendarState: CalendarStateType;\n startYear: number;\n size: [number, number];\n}\n\nexport type PreviousMonthAction = { type: ActionType.PREVIOUS_MONTH; payload: { monthIndex: number; year: number } };\n\nexport type NextMonthAction = { type: ActionType.NEXT_MONTH; payload: { monthIndex: number; year: number } };\n\nexport type PreviousYearAction = { type: ActionType.PREVIOUS_YEAR; payload: { step: number } };\n\nexport type NextYearAction = { type: ActionType.NEXT_YEAR; payload: { step: number } };\n\nexport type PreviousStartYearAction = { type: ActionType.PREVIOUS_START_YEAR; payload: { yearsCount: number } };\n\nexport type NextStartYearAction = { type: ActionType.NEXT_START_YEAR; payload: { yearsCount: number } };\n\nexport type UpdateDateAction = { type: ActionType.UPDATE_DATE; payload: { value: Date } };\n\nexport type UpdateMonthAction = {\n type: ActionType.UPDATE_MONTH;\n payload: { calendarState: CalendarStateType; monthIndex: number; size: [number, number] };\n};\n\nexport type UpdateYearAction = {\n type: ActionType.UPDATE_YEAR;\n payload: { calendarState: CalendarStateType; year: number; size: [number, number] };\n};\n\nexport type UpdateCalendarStateAction = {\n type: ActionType.UPDATE_CALENDAR_STATE;\n payload: { calendarState: CalendarStateType; size?: [number, number] };\n};\n\nexport type Action =\n | NextMonthAction\n | PreviousMonthAction\n | NextYearAction\n | PreviousYearAction\n | PreviousStartYearAction\n | NextStartYearAction\n | UpdateDateAction\n | UpdateMonthAction\n | UpdateYearAction\n | UpdateCalendarStateAction;\n"],"names":["CalendarState","ActionType"],"mappings":"AAEYA,IAAAA,aAAa,0BAAbA,aAAa,EAAA;EAAbA,aAAa,CAAA,MAAA,CAAA,GAAA,MAAA,CAAA;EAAbA,aAAa,CAAA,QAAA,CAAA,GAAA,QAAA,CAAA;EAAbA,aAAa,CAAA,OAAA,CAAA,GAAA,OAAA,CAAA;EAAbA,aAAa,CAAA,UAAA,CAAA,GAAA,UAAA,CAAA;AAAA,EAAA,OAAbA,aAAa,CAAA;AAAA,CAAA,CAAA,EAAA,EAAA;AAOPC,IAAAA,UAAU,0BAAVA,UAAU,EAAA;EAAVA,UAAU,CAAA,YAAA,CAAA,GAAA,YAAA,CAAA;EAAVA,UAAU,CAAA,gBAAA,CAAA,GAAA,gBAAA,CAAA;EAAVA,UAAU,CAAA,WAAA,CAAA,GAAA,WAAA,CAAA;EAAVA,UAAU,CAAA,eAAA,CAAA,GAAA,eAAA,CAAA;EAAVA,UAAU,CAAA,qBAAA,CAAA,GAAA,qBAAA,CAAA;EAAVA,UAAU,CAAA,iBAAA,CAAA,GAAA,iBAAA,CAAA;EAAVA,UAAU,CAAA,aAAA,CAAA,GAAA,aAAA,CAAA;EAAVA,UAAU,CAAA,cAAA,CAAA,GAAA,cAAA,CAAA;EAAVA,UAAU,CAAA,aAAA,CAAA,GAAA,aAAA,CAAA;EAAVA,UAAU,CAAA,uBAAA,CAAA,GAAA,uBAAA,CAAA;AAAA,EAAA,OAAVA,UAAU,CAAA;AAAA,CAAA,CAAA,EAAA;;;;"}
@@ -1,7 +1,7 @@
1
- .CalendarDayItem_styles_107vqka_sotsbos__e3c541ae{border-radius:calc(var(--plasma-calendar-day-item-border-radius) - 0.125rem);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.CalendarDayItem_styles_107vqka_sotsbos__e3c541ae.CalendarDayItem_styles_107vqka_dayInRange__e3c541ae:before{content:'';z-index:-1;position:absolute;width:100%;height:calc(100% - 0.125rem);background:var(--plasma-calendar-range-background);}.CalendarDayItem_styles_107vqka_sotsbos__e3c541ae.CalendarDayItem_styles_107vqka_daySideInRange__e3c541ae:before{content:'';z-index:-1;position:absolute;width:0.75rem;height:calc(100% - 0.125rem);background:var(--plasma-calendar-range-background);}.CalendarDayItem_styles_107vqka_sotsbos__e3c541ae.CalendarDayItem_styles_107vqka_daySideLeft__e3c541ae:before{left:var(--sotsbos-0);}.CalendarDayItem_styles_107vqka_sotsbos__e3c541ae.CalendarDayItem_styles_107vqka_daySideRight__e3c541ae:before{right:var(--sotsbos-0);}
2
- .CalendarDayItem_styles_107vqka_smv00b5__e3c541ae{font-family:var(--plasma-calendar-day-font-family);font-size:var(--plasma-calendar-day-font-size);font-style:var(--plasma-calendar-day-font-style);font-weight:var(--plasma-calendar-day-font-weight);-webkit-letter-spacing:var(--plasma-calendar-day-font-letter-spacing);-moz-letter-spacing:var(--plasma-calendar-day-font-letter-spacing);-ms-letter-spacing:var(--plasma-calendar-day-font-letter-spacing);letter-spacing:var(--plasma-calendar-day-font-letter-spacing);line-height:var(--plasma-calendar-day-line-height);position:relative;box-sizing:border-box;min-width:var(--plasma-calendar-day-item-width);min-height:var(--plasma-calendar-day-item-height);border-radius:var(--plasma-calendar-day-item-border-radius);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--smv00b5-0);visibility:var(--smv00b5-1);}.CalendarDayItem_styles_107vqka_smv00b5__e3c541ae.CalendarDayItem_styles_107vqka_itemSelectable__e3c541ae{outline:none;cursor:pointer;position:relative;}.CalendarDayItem_styles_107vqka_smv00b5__e3c541ae.CalendarDayItem_styles_107vqka_itemSelectable__e3c541ae:hover{background-color:var(--plasma-calendar-selectable-item-bg-hover);}.CalendarDayItem_styles_107vqka_smv00b5__e3c541ae.CalendarDayItem_styles_107vqka_itemSelectable__e3c541ae.CalendarDayItem_styles_107vqka_itemHovered__e3c541ae,.CalendarDayItem_styles_107vqka_smv00b5__e3c541ae.CalendarDayItem_styles_107vqka_itemSelectable__e3c541ae.CalendarDayItem_styles_107vqka_itemHovered__e3c541ae:hover{background-color:var(--plasma-calendar-selected-item-background);color:var(--plasma-calendar-selected-item-color);cursor:pointer;font-weight:var(--plasma-calendar-day-selected-font-weight);}.CalendarDayItem_styles_107vqka_smv00b5__e3c541ae.CalendarDayItem_styles_107vqka_itemSelectable__e3c541ae.CalendarDayItem_styles_107vqka_itemSelected__e3c541ae:not(.CalendarDayItem_styles_107vqka_itemCurrent__e3c541ae){border:0;background-color:var(--plasma-calendar-selected-item-background);color:var(--plasma-calendar-selected-item-color);cursor:default;font-weight:var(--plasma-calendar-day-selected-font-weight);}.CalendarDayItem_styles_107vqka_smv00b5__e3c541ae.CalendarDayItem_styles_107vqka_itemSelectable__e3c541ae:active{background-color:var(--plasma-calendar-active-item-bg);color:var(--plasma-calendar-active-item-color);font-weight:var(--plasma-calendar-day-selected-font-weight);}.CalendarDayItem_styles_107vqka_smv00b5__e3c541ae.CalendarDayItem_styles_107vqka_itemSelectable__e3c541ae.CalendarDayItem_styles_107vqka_itemCurrent__e3c541ae{border:0.063rem solid var(--plasma-calendar-current-item-border-color);}.CalendarDayItem_styles_107vqka_smv00b5__e3c541ae.CalendarDayItem_styles_107vqka_itemSelectable__e3c541ae.CalendarDayItem_styles_107vqka_itemCurrent__e3c541ae.CalendarDayItem_styles_107vqka_itemSelected__e3c541ae{background-color:initial;color:var(--plasma-calendar-selected-item-color);font-weight:var(--plasma-calendar-day-selected-font-weight);}.CalendarDayItem_styles_107vqka_smv00b5__e3c541ae.CalendarDayItem_styles_107vqka_itemSelectable__e3c541ae.CalendarDayItem_styles_107vqka_itemCurrent__e3c541ae.CalendarDayItem_styles_107vqka_itemSelected__e3c541ae > div:first-of-type{background-color:var(--plasma-calendar-selected-item-background);min-width:calc(var(--plasma-calendar-day-item-width) - 0.25rem);min-height:calc(var(--plasma-calendar-day-item-height) - 0.25rem);}.CalendarDayItem_styles_107vqka_smv00b5__e3c541ae.CalendarDayItem_styles_107vqka_itemSelectable__e3c541ae::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:calc(var(--plasma-calendar-day-item-border-radius) + 0.125rem);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.CalendarDayItem_styles_107vqka_smv00b5__e3c541ae.CalendarDayItem_styles_107vqka_itemSelectable__e3c541ae.CalendarDayItem_styles_107vqka_focusVisible__e3c541ae:focus::before,.CalendarDayItem_styles_107vqka_smv00b5__e3c541ae.CalendarDayItem_styles_107vqka_itemSelectable__e3c541ae[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.063rem var(--plasma-calendar-outline-focus-color);}.CalendarDayItem_styles_107vqka_smv00b5__e3c541ae.CalendarDayItem_styles_107vqka_itemSelectable__e3c541ae.CalendarDayItem_styles_107vqka_itemCurrent__e3c541ae{position:relative;}.CalendarDayItem_styles_107vqka_smv00b5__e3c541ae.CalendarDayItem_styles_107vqka_itemSelectable__e3c541ae.CalendarDayItem_styles_107vqka_itemCurrent__e3c541ae::before{content:'';position:absolute;top:-0.1875rem;left:-0.1875rem;right:-0.1875rem;bottom:-0.1875rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:calc(var(--plasma-calendar-day-item-border-radius) + 0.125rem);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.CalendarDayItem_styles_107vqka_smv00b5__e3c541ae.CalendarDayItem_styles_107vqka_itemSelectable__e3c541ae.CalendarDayItem_styles_107vqka_itemCurrent__e3c541ae.CalendarDayItem_styles_107vqka_focusVisible__e3c541ae:focus::before,.CalendarDayItem_styles_107vqka_smv00b5__e3c541ae.CalendarDayItem_styles_107vqka_itemSelectable__e3c541ae.CalendarDayItem_styles_107vqka_itemCurrent__e3c541ae[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.063rem var(--plasma-calendar-outline-focus-color);}.CalendarDayItem_styles_107vqka_smv00b5__e3c541ae.CalendarDayItem_styles_107vqka_dayOfWeek__e3c541ae{color:var(--plasma-calendar-day-of-the-week-color);}.CalendarDayItem_styles_107vqka_smv00b5__e3c541ae.CalendarDayItem_styles_107vqka_dayDisabled__e3c541ae{cursor:not-allowed;opacity:0.4;}.CalendarDayItem_styles_107vqka_smv00b5__e3c541ae.CalendarDayItem_styles_107vqka_dayDisabledCurrent__e3c541ae{cursor:not-allowed;opacity:0.4;}.CalendarDayItem_styles_107vqka_smv00b5__e3c541ae.CalendarDayItem_styles_107vqka_itemCurrent__e3c541ae > .CalendarDayItem_styles_107vqka_dayInRange__e3c541ae:before{width:calc(100% + 2px);height:100%;}.CalendarDayItem_styles_107vqka_smv00b5__e3c541ae.CalendarDayItem_styles_107vqka_itemCurrent__e3c541ae > .CalendarDayItem_styles_107vqka_daySideRight__e3c541ae:before{width:100%;right:-1px;left:unset;}.CalendarDayItem_styles_107vqka_smv00b5__e3c541ae.CalendarDayItem_styles_107vqka_itemCurrent__e3c541ae > .CalendarDayItem_styles_107vqka_daySideLeft__e3c541ae:before{width:100%;left:-1px;right:unset;}
3
- .CalendarDayItem_styles_107vqka_s58etsc__e3c541ae{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;position:absolute;bottom:0.25rem;}
4
- .CalendarDayItem_styles_107vqka_say0ota__e3c541ae{margin:0 0.063rem;width:0.188rem;height:0.188rem;border-radius:50%;background-color:var(--say0ota-0);}
1
+ .DateStructureItem_styles_1nxxafr_s140bov1__5d7ee105{border-radius:calc(var(--plasma-calendar-date-structure-border-radius) - 0.125rem);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.DateStructureItem_styles_1nxxafr_s140bov1__5d7ee105.DateStructureItem_styles_1nxxafr_itemInRange__5d7ee105:before{content:'';z-index:-1;position:absolute;width:100%;height:calc(100% - 0.125rem);background:var(--plasma-calendar-range-background);}.DateStructureItem_styles_1nxxafr_s140bov1__5d7ee105.DateStructureItem_styles_1nxxafr_itemSideInRange__5d7ee105:before{content:'';z-index:-1;position:absolute;width:0.75rem;height:calc(100% - 0.125rem);background:var(--plasma-calendar-range-background);}.DateStructureItem_styles_1nxxafr_s140bov1__5d7ee105.DateStructureItem_styles_1nxxafr_itemSideLeft__5d7ee105:before{left:var(--s140bov1-0);}.DateStructureItem_styles_1nxxafr_s140bov1__5d7ee105.DateStructureItem_styles_1nxxafr_itemSideRight__5d7ee105:before{right:var(--s140bov1-0);}
2
+ .DateStructureItem_styles_1nxxafr_s1k1xcqq__5d7ee105{font-family:var(--plasma-calendar-date-structure-font-family);font-size:var(--plasma-calendar-date-structure-font-size);font-style:var(--plasma-calendar-date-structure-font-style);font-weight:var(--plasma-calendar-date-structure-font-weight);-webkit-letter-spacing:var(--plasma-calendar-date-structure-font-letter-spacing);-moz-letter-spacing:var(--plasma-calendar-date-structure-font-letter-spacing);-ms-letter-spacing:var(--plasma-calendar-date-structure-font-letter-spacing);letter-spacing:var(--plasma-calendar-date-structure-font-letter-spacing);line-height:var(--plasma-calendar-date-structure-line-height);position:relative;box-sizing:border-box;min-width:var(--plasma-calendar-date-structure-width);min-height:var(--plasma-calendar-date-structure-height);border-radius:var(--plasma-calendar-date-structure-border-radius);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--s1k1xcqq-0);}.DateStructureItem_styles_1nxxafr_s1k1xcqq__5d7ee105.DateStructureItem_styles_1nxxafr_itemSelectable__5d7ee105{outline:none;cursor:pointer;position:relative;}.DateStructureItem_styles_1nxxafr_s1k1xcqq__5d7ee105.DateStructureItem_styles_1nxxafr_itemSelectable__5d7ee105:hover{background-color:var(--plasma-calendar-selectable-item-bg-hover);}.DateStructureItem_styles_1nxxafr_s1k1xcqq__5d7ee105.DateStructureItem_styles_1nxxafr_itemSelectable__5d7ee105.DateStructureItem_styles_1nxxafr_itemHovered__5d7ee105,.DateStructureItem_styles_1nxxafr_s1k1xcqq__5d7ee105.DateStructureItem_styles_1nxxafr_itemSelectable__5d7ee105.DateStructureItem_styles_1nxxafr_itemHovered__5d7ee105:hover{background-color:var(--plasma-calendar-selected-item-background);color:var(--plasma-calendar-selected-item-color);cursor:pointer;font-weight:var(--plasma-calendar-date-structure-selected-font-weight);}.DateStructureItem_styles_1nxxafr_s1k1xcqq__5d7ee105.DateStructureItem_styles_1nxxafr_itemSelectable__5d7ee105.DateStructureItem_styles_1nxxafr_itemSelected__5d7ee105:not(.DateStructureItem_styles_1nxxafr_itemCurrent__5d7ee105){border:0;background-color:var(--plasma-calendar-selected-item-background);color:var(--plasma-calendar-selected-item-color);cursor:default;font-weight:var(--plasma-calendar-date-structure-selected-font-weight);}.DateStructureItem_styles_1nxxafr_s1k1xcqq__5d7ee105.DateStructureItem_styles_1nxxafr_itemSelectable__5d7ee105.DateStructureItem_styles_1nxxafr_itemCurrent__5d7ee105{border:0.063rem solid var(--plasma-calendar-current-item-border-color);}.DateStructureItem_styles_1nxxafr_s1k1xcqq__5d7ee105.DateStructureItem_styles_1nxxafr_itemSelectable__5d7ee105.DateStructureItem_styles_1nxxafr_itemCurrent__5d7ee105.DateStructureItem_styles_1nxxafr_itemSelected__5d7ee105{background-color:initial;color:var(--plasma-calendar-selected-item-color);font-weight:var(--plasma-calendar-date-structure-selected-font-weight);}.DateStructureItem_styles_1nxxafr_s1k1xcqq__5d7ee105.DateStructureItem_styles_1nxxafr_itemSelectable__5d7ee105.DateStructureItem_styles_1nxxafr_itemCurrent__5d7ee105.DateStructureItem_styles_1nxxafr_itemSelected__5d7ee105 > div:first-of-type{background-color:var(--plasma-calendar-selected-item-background);min-width:calc(var(--plasma-calendar-date-structure-width) - 0.25rem);min-height:calc(var(--plasma-calendar-date-structure-height) - 0.25rem);}.DateStructureItem_styles_1nxxafr_s1k1xcqq__5d7ee105.DateStructureItem_styles_1nxxafr_itemSelectable__5d7ee105::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:calc(var(--plasma-calendar-date-structure-border-radius) + 0.125rem);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.DateStructureItem_styles_1nxxafr_s1k1xcqq__5d7ee105.DateStructureItem_styles_1nxxafr_itemSelectable__5d7ee105.DateStructureItem_styles_1nxxafr_focusVisible__5d7ee105:focus::before,.DateStructureItem_styles_1nxxafr_s1k1xcqq__5d7ee105.DateStructureItem_styles_1nxxafr_itemSelectable__5d7ee105[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.063rem var(--plasma-calendar-outline-focus-color);}.DateStructureItem_styles_1nxxafr_s1k1xcqq__5d7ee105.DateStructureItem_styles_1nxxafr_itemSelectable__5d7ee105.DateStructureItem_styles_1nxxafr_itemCurrent__5d7ee105{position:relative;}.DateStructureItem_styles_1nxxafr_s1k1xcqq__5d7ee105.DateStructureItem_styles_1nxxafr_itemSelectable__5d7ee105.DateStructureItem_styles_1nxxafr_itemCurrent__5d7ee105::before{content:'';position:absolute;top:-0.1875rem;left:-0.1875rem;right:-0.1875rem;bottom:-0.1875rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:calc(var(--plasma-calendar-date-structure-border-radius) + 0.125rem);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.DateStructureItem_styles_1nxxafr_s1k1xcqq__5d7ee105.DateStructureItem_styles_1nxxafr_itemSelectable__5d7ee105.DateStructureItem_styles_1nxxafr_itemCurrent__5d7ee105.DateStructureItem_styles_1nxxafr_focusVisible__5d7ee105:focus::before,.DateStructureItem_styles_1nxxafr_s1k1xcqq__5d7ee105.DateStructureItem_styles_1nxxafr_itemSelectable__5d7ee105.DateStructureItem_styles_1nxxafr_itemCurrent__5d7ee105[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.063rem var(--plasma-calendar-outline-focus-color);}.DateStructureItem_styles_1nxxafr_s1k1xcqq__5d7ee105.DateStructureItem_styles_1nxxafr_dayInCurrentMonth__5d7ee105:not(.DateStructureItem_styles_1nxxafr_itemDisabled__5d7ee105):active{background-color:var(--plasma-calendar-active-item-bg);color:var(--plasma-calendar-active-item-color);font-weight:var(--plasma-calendar-date-structure-selected-font-weight);}.DateStructureItem_styles_1nxxafr_s1k1xcqq__5d7ee105.DateStructureItem_styles_1nxxafr_dayOfWeek__5d7ee105{color:var(--plasma-calendar-day-of-the-week-color);}.DateStructureItem_styles_1nxxafr_s1k1xcqq__5d7ee105.DateStructureItem_styles_1nxxafr_itemDisabled__5d7ee105{cursor:not-allowed;opacity:0.4;}.DateStructureItem_styles_1nxxafr_s1k1xcqq__5d7ee105.DateStructureItem_styles_1nxxafr_itemDisabledCurrent__5d7ee105{cursor:not-allowed;opacity:0.4;}.DateStructureItem_styles_1nxxafr_s1k1xcqq__5d7ee105.DateStructureItem_styles_1nxxafr_itemCurrent__5d7ee105 > .DateStructureItem_styles_1nxxafr_itemInRange__5d7ee105:before{width:calc(100% + 2px);height:100%;}.DateStructureItem_styles_1nxxafr_s1k1xcqq__5d7ee105.DateStructureItem_styles_1nxxafr_itemCurrent__5d7ee105 > .DateStructureItem_styles_1nxxafr_itemSideRight__5d7ee105:before{width:100%;right:-1px;left:unset;}.DateStructureItem_styles_1nxxafr_s1k1xcqq__5d7ee105.DateStructureItem_styles_1nxxafr_itemCurrent__5d7ee105 > .DateStructureItem_styles_1nxxafr_itemSideLeft__5d7ee105:before{width:100%;left:-1px;right:unset;}
3
+ .DateStructureItem_styles_1nxxafr_s1wqrord__5d7ee105{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;position:absolute;bottom:0.25rem;}
4
+ .DateStructureItem_styles_1nxxafr_s1cvvf5__5d7ee105{margin:0 0.063rem;width:0.188rem;height:0.188rem;border-radius:50%;background-color:var(--s1cvvf5-0);}
5
5
 
6
6
  .CalendarDays_styles_1oq8sud_s1jnjaxw__be296257{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
7
7
  .CalendarDays_styles_1oq8sud_s1rv3pd5__be296257{outline:none;padding:var(--plasma-calendar-days-padding);box-sizing:border-box;}
@@ -1,8 +1,11 @@
1
- import { slicedToArray as _slicedToArray } from '../../../../_virtual/_rollupPluginBabelHelpers.js';
1
+ import { slicedToArray as _slicedToArray, defineProperty as _defineProperty } from '../../../../_virtual/_rollupPluginBabelHelpers.js';
2
2
  import React, { useRef, useCallback, useEffect } from 'react';
3
3
  import { useDays } from '../../hooks/useDays.js';
4
- import { canSelectDate, isSelectProcess, SHORT_DAY_NAMES, FULL_DAY_NAMES, isSameDay, getInRange, getSideInRange, ROW_STEP } from '../../utils/index.js';
5
- import { CalendarDayItem } from '../CalendarDayItem/CalendarDayItem.js';
4
+ import { SHORT_DAY_NAMES, FULL_DAY_NAMES, ROW_STEP } from '../../utils/constants.js';
5
+ import { canSelectDate } from '../../utils/calendarGridHelper.js';
6
+ import { isSelectProcess, isSameDay, getInRange, getSideInRange } from '../../utils/calendarRangeHelper.js';
7
+ import { DateStructureItem } from '../DateStructureItem/DateStructureItem.js';
8
+ import { tokens, innerTokens } from '../../Calendar.tokens.js';
6
9
  import { StyledCalendarDays, StyledCalendarDaysHint, StyledFlex } from './CalendarDays.styles.js';
7
10
 
8
11
  var _StyledCalendarDaysHi;
@@ -26,13 +29,22 @@ var CalendarDays = function CalendarDays(_ref) {
26
29
  onHoverDay = _ref.onHoverDay,
27
30
  onSetSelected = _ref.onSetSelected,
28
31
  onKeyDown = _ref.onKeyDown;
29
- var _useDays = useDays(currentDate, value, eventList, disabledList, min, max, includeEdgeDates),
32
+ var _useDays = useDays({
33
+ date: currentDate,
34
+ value: value,
35
+ eventList: eventList,
36
+ disabledList: disabledList,
37
+ min: min,
38
+ max: max,
39
+ includeEdgeDates: includeEdgeDates
40
+ }),
30
41
  _useDays2 = _slicedToArray(_useDays, 2),
31
42
  days = _useDays2[0],
32
43
  selected = _useDays2[1];
33
44
  var selectedRef = useRef(selected);
34
45
  var onSetSelectedRef = useRef(onSetSelected);
35
46
  var offset = isSecond ? ROW_STEP : 0;
47
+ var dayItemTokens = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(innerTokens.dateStructureFontFamily), "var(".concat(tokens.calendarDayFontFamily, ")")), "".concat(innerTokens.dateStructureFontSize), "var(".concat(tokens.calendarDayFontSize, ")")), "".concat(innerTokens.dateStructureFontWeight), "var(".concat(tokens.calendarDayFontWeight, ")")), "".concat(innerTokens.dateStructureFontLineHeight), "var(".concat(tokens.calendarDayFontLineHeight, ")")), "".concat(innerTokens.dateStructureFontLetterSpacing), "var(".concat(tokens.calendarDayFontLetterSpacing, ")")), "".concat(innerTokens.dateStructureFontStyle), "var(".concat(tokens.calendarDayFontStyle, ")")), "".concat(innerTokens.dateStructureSelectedFontWeight), "var(".concat(tokens.calendarDaySelectedFontWeight, ")")), "".concat(innerTokens.dateStructureWidth), "var(".concat(tokens.calendarDayItemWidth, ")")), "".concat(innerTokens.dateStructureHeight), "var(".concat(tokens.calendarDayItemHeight, ")")), "".concat(innerTokens.dateStructureBorderRadius), "var(".concat(tokens.calendarDayItemBorderRadius, ")"));
36
48
  var getSelectedDate = useCallback(function (event) {
37
49
  var _event$currentTarget$ = event.currentTarget.dataset,
38
50
  day = _event$currentTarget$.day,
@@ -68,14 +80,11 @@ var CalendarDays = function CalendarDays(_ref) {
68
80
  }
69
81
  onHoverDay === null || onHoverDay === void 0 || onHoverDay(selectedDate);
70
82
  }, [getSelectedDate, onHoverDay, value]);
71
- var handleOnFocusDay = useCallback(function () {
72
- // заглушка будет убрана при реализации доступности
73
- }, []);
74
- var getRefs = useCallback(function (element, isDayInCurrentMonth, i, j) {
83
+ var getRefs = function getRefs(element, isDayInCurrentMonth, i, j) {
75
84
  if (isDayInCurrentMonth) {
76
85
  outerRefs.current[i + offset][j] = element;
77
86
  }
78
- }, [offset, outerRefs]);
87
+ };
79
88
  useEffect(function () {
80
89
  if (selectedRef.current) {
81
90
  var _onSetSelectedRef$cur;
@@ -91,13 +100,14 @@ var CalendarDays = function CalendarDays(_ref) {
91
100
  }, "\u0414\u043B\u044F \u043D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438 \u0442\u043E\u043B\u044C\u043A\u043E \u043F\u043E \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u043C \u0434\u0430\u0442\u0430\u043C \u0443\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Shift.")), /*#__PURE__*/React.createElement(StyledFlex, {
92
101
  role: "row"
93
102
  }, SHORT_DAY_NAMES.map(function (name) {
94
- return /*#__PURE__*/React.createElement(CalendarDayItem, {
103
+ return /*#__PURE__*/React.createElement(DateStructureItem, {
95
104
  role: "columnheader",
96
105
  "aria-label": FULL_DAY_NAMES[name],
97
106
  key: name,
98
107
  dayOfWeek: true,
99
- day: name
100
- });
108
+ day: name,
109
+ style: dayItemTokens
110
+ }, name);
101
111
  })), days.map(function (day, i) {
102
112
  return /*#__PURE__*/React.createElement(StyledFlex, {
103
113
  role: "row",
@@ -113,11 +123,12 @@ var CalendarDays = function CalendarDays(_ref) {
113
123
  _ref2$isOutOfMinMaxRa = _ref2.isOutOfMinMaxRange,
114
124
  isOutOfMinMaxRange = _ref2$isOutOfMinMaxRa === void 0 ? false : _ref2$isOutOfMinMaxRa,
115
125
  disabledArrowKey = _ref2.disabledArrowKey,
116
- disabledMonths = _ref2.disabledMonths;
117
- return /*#__PURE__*/React.createElement(CalendarDayItem, {
126
+ disabledDates = _ref2.disabledDates;
127
+ return /*#__PURE__*/React.createElement(DateStructureItem, {
118
128
  ref: function ref(element) {
119
- return getRefs(element, isDayInCurrentMonth, i, j);
129
+ return getRefs(element, Boolean(isDayInCurrentMonth), i, j);
120
130
  },
131
+ style: dayItemTokens,
121
132
  eventList: events,
122
133
  disabled: disabled,
123
134
  day: date.day,
@@ -133,12 +144,11 @@ var CalendarDays = function CalendarDays(_ref) {
133
144
  sideInRange: getSideInRange(value, date, hoveredDay, isSelected),
134
145
  onClick: disabled ? undefined : handleOnChangeDay(i, j),
135
146
  onMouseOver: disabled ? undefined : handleOnHoverDay,
136
- onFocus: handleOnFocusDay,
137
- key: "StyledDay-".concat(j),
147
+ key: "StyledDay-".concat(i, "-").concat(j),
138
148
  role: "gridcell",
139
149
  disabledArrowKey: disabledArrowKey,
140
- disabledMonths: disabledMonths
141
- });
150
+ disabledMonths: disabledDates
151
+ }, date.day);
142
152
  }));
143
153
  }));
144
154
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarDays.js","sources":["../../../../../src/components/Calendar/ui/CalendarDays/CalendarDays.tsx"],"sourcesContent":["import React, { useCallback, useEffect, useRef } from 'react';\n\nimport { useDays } from '../../hooks';\nimport {\n canSelectDate,\n FULL_DAY_NAMES,\n getInRange,\n getSideInRange,\n isSameDay,\n isSelectProcess,\n ROW_STEP,\n SHORT_DAY_NAMES,\n} from '../../utils';\nimport { CalendarDayItem } from '../CalendarDayItem/CalendarDayItem';\nimport { DateItem } from '../../Calendar.types';\n\nimport { StyledCalendarDays, StyledCalendarDaysHint, StyledFlex } from './CalendarDays.styles';\nimport type { CalendarDaysProps } from './CalendarDays.types';\n\n/**\n * Компонент дней в календаре.\n */\nexport const CalendarDays: React.FC<CalendarDaysProps> = ({\n date: currentDate,\n value,\n eventList,\n disabledList,\n min,\n max,\n includeEdgeDates,\n hoveredDay,\n selectIndexes,\n isDouble,\n isSecond,\n outerRefs,\n onChangeDay,\n onHoverDay,\n onSetSelected,\n onKeyDown,\n}) => {\n const [days, selected] = useDays(currentDate, value, eventList, disabledList, min, max, includeEdgeDates);\n const selectedRef = useRef(selected);\n const onSetSelectedRef = useRef(onSetSelected);\n\n const offset = isSecond ? ROW_STEP : 0;\n\n const getSelectedDate = useCallback(\n (event: React.MouseEvent<HTMLDivElement>) => {\n const { day, monthIndex, year } = event.currentTarget.dataset;\n\n const selectedDate = {\n day: Number(day),\n monthIndex: Number(monthIndex),\n year: Number(year),\n };\n\n if (!canSelectDate(selectedDate, value, disabledList)) {\n return;\n }\n\n return selectedDate;\n },\n [disabledList, value],\n );\n\n const handleOnChangeDay = useCallback(\n (i: number, j: number) => (event: React.MouseEvent<HTMLDivElement>) => {\n const selectedDate = getSelectedDate(event);\n\n if (!selectedDate) {\n return;\n }\n\n onChangeDay(selectedDate, [i + offset, j]);\n\n if (isSelectProcess(value)) {\n onHoverDay?.(undefined);\n }\n },\n [getSelectedDate, onChangeDay, offset, value, onHoverDay],\n );\n\n const handleOnHoverDay = useCallback(\n (event: React.MouseEvent<HTMLDivElement>) => {\n const selectedDate = getSelectedDate(event);\n const isSelectedDone = Array.isArray(value) && value[0] && value[1];\n\n if (!selectedDate || !Array.isArray(value) || isSelectedDone) {\n return;\n }\n\n onHoverDay?.(selectedDate);\n },\n [getSelectedDate, onHoverDay, value],\n );\n\n const handleOnFocusDay = useCallback(() => {\n // заглушка будет убрана при реализации доступности\n }, []);\n\n const getRefs = useCallback(\n (element: HTMLDivElement, isDayInCurrentMonth: boolean, i: number, j: number) => {\n if (isDayInCurrentMonth) {\n outerRefs.current[i + offset][j] = element;\n }\n },\n [offset, outerRefs],\n );\n\n useEffect(() => {\n if (selectedRef.current) {\n onSetSelectedRef.current?.(selectedRef.current);\n }\n }, []);\n\n return (\n <StyledCalendarDays role=\"grid\" aria-labelledby=\"id-grid-label\" onKeyDown={onKeyDown}>\n <StyledCalendarDaysHint id=\"withShift\">\n Для навигации только по доступным датам удерживайте клавишу Shift.\n </StyledCalendarDaysHint>\n <StyledFlex role=\"row\">\n {SHORT_DAY_NAMES.map((name) => (\n <CalendarDayItem\n role=\"columnheader\"\n aria-label={FULL_DAY_NAMES[name]}\n key={name}\n dayOfWeek\n day={name}\n />\n ))}\n </StyledFlex>\n {days.map((day: DateItem[], i) => (\n <StyledFlex role=\"row\" key={i}>\n {day.map(\n (\n {\n date,\n events,\n disabled,\n isSelected,\n isCurrent,\n isDayInCurrentMonth,\n inRange,\n isOutOfMinMaxRange = false,\n disabledArrowKey,\n disabledMonths,\n },\n j,\n ) => (\n <CalendarDayItem\n ref={(element: HTMLDivElement) => getRefs(element, isDayInCurrentMonth, i, j)}\n eventList={events}\n disabled={disabled}\n day={date.day}\n year={date.year}\n monthIndex={date.monthIndex}\n isFocused={\n i + offset === selectIndexes?.[0] && j === selectIndexes?.[1] && !isOutOfMinMaxRange\n }\n isSelected={isSelected}\n isCurrent={isCurrent}\n isDayInCurrentMonth={isDayInCurrentMonth}\n isDouble={isDouble}\n isHovered={isSameDay(date, hoveredDay)}\n inRange={getInRange(value, date, hoveredDay, inRange)}\n sideInRange={getSideInRange(value, date, hoveredDay, isSelected)}\n onClick={disabled ? undefined : handleOnChangeDay(i, j)}\n onMouseOver={disabled ? undefined : handleOnHoverDay}\n onFocus={handleOnFocusDay}\n key={`StyledDay-${j}`}\n role=\"gridcell\"\n disabledArrowKey={disabledArrowKey}\n disabledMonths={disabledMonths}\n />\n ),\n )}\n </StyledFlex>\n ))}\n </StyledCalendarDays>\n );\n};\n"],"names":["CalendarDays","_ref","currentDate","date","value","eventList","disabledList","min","max","includeEdgeDates","hoveredDay","selectIndexes","isDouble","isSecond","outerRefs","onChangeDay","onHoverDay","onSetSelected","onKeyDown","_useDays","useDays","_useDays2","_slicedToArray","days","selected","selectedRef","useRef","onSetSelectedRef","offset","ROW_STEP","getSelectedDate","useCallback","event","_event$currentTarget$","currentTarget","dataset","day","monthIndex","year","selectedDate","Number","canSelectDate","handleOnChangeDay","i","j","isSelectProcess","undefined","handleOnHoverDay","isSelectedDone","Array","isArray","handleOnFocusDay","getRefs","element","isDayInCurrentMonth","current","useEffect","_onSetSelectedRef$cur","call","React","createElement","StyledCalendarDays","role","_StyledCalendarDaysHi","StyledCalendarDaysHint","id","StyledFlex","SHORT_DAY_NAMES","map","name","CalendarDayItem","FULL_DAY_NAMES","key","dayOfWeek","_ref2","events","disabled","isSelected","isCurrent","inRange","_ref2$isOutOfMinMaxRa","isOutOfMinMaxRange","disabledArrowKey","disabledMonths","ref","isFocused","isHovered","isSameDay","getInRange","sideInRange","getSideInRange","onClick","onMouseOver","onFocus","concat"],"mappings":";;;;;;;;AAmBA;AACA;AACA;IACaA,YAAyC,GAAG,SAA5CA,YAAyCA,CAAAC,IAAA,EAiBhD;AAAA,EAAA,IAhBIC,WAAW,GAAAD,IAAA,CAAjBE,IAAI;IACJC,KAAK,GAAAH,IAAA,CAALG,KAAK;IACLC,SAAS,GAAAJ,IAAA,CAATI,SAAS;IACTC,YAAY,GAAAL,IAAA,CAAZK,YAAY;IACZC,GAAG,GAAAN,IAAA,CAAHM,GAAG;IACHC,GAAG,GAAAP,IAAA,CAAHO,GAAG;IACHC,gBAAgB,GAAAR,IAAA,CAAhBQ,gBAAgB;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8C,QAAAA,OAAO,EAAE1C,gBAAiB;AAC1BqB,QAAAA,GAAG,EAAAsB,YAAAA,CAAAA,MAAA,CAAelD,CAAC,CAAG;AACtBkB,QAAAA,IAAI,EAAC,UAAU;AACfoB,QAAAA,gBAAgB,EAAEA,gBAAiB;AACnCC,QAAAA,cAAc,EAAEA,cAAAA;AAAe,OAClC,CAAC,CAAA;AAAA,KAEV,CACQ,CAAC,CAAA;AAAA,GAChB,CACe,CAAC,CAAA;AAE7B;;;;"}
1
+ {"version":3,"file":"CalendarDays.js","sources":["../../../../../src/components/Calendar/ui/CalendarDays/CalendarDays.tsx"],"sourcesContent":["import React, { useCallback, useEffect, useRef } from 'react';\n\nimport { useDays } from '../../hooks';\nimport {\n canSelectDate,\n FULL_DAY_NAMES,\n getInRange,\n getSideInRange,\n isSameDay,\n isSelectProcess,\n ROW_STEP,\n SHORT_DAY_NAMES,\n} from '../../utils';\nimport { DateStructureItem } from '../DateStructureItem/DateStructureItem';\nimport { DateItem } from '../../Calendar.types';\nimport { innerTokens, tokens } from '../../Calendar.tokens';\n\nimport { StyledCalendarDays, StyledCalendarDaysHint, StyledFlex } from './CalendarDays.styles';\nimport type { CalendarDaysProps } from './CalendarDays.types';\n\n/**\n * Компонент дней в календаре.\n */\nexport const CalendarDays: React.FC<CalendarDaysProps> = ({\n date: currentDate,\n value,\n eventList,\n disabledList,\n min,\n max,\n includeEdgeDates,\n hoveredDay,\n selectIndexes,\n isDouble,\n isSecond,\n outerRefs,\n onChangeDay,\n onHoverDay,\n onSetSelected,\n onKeyDown,\n}) => {\n const [days, selected] = useDays({ date: currentDate, value, eventList, disabledList, min, max, includeEdgeDates });\n const selectedRef = useRef(selected);\n const onSetSelectedRef = useRef(onSetSelected);\n\n const offset = isSecond ? ROW_STEP : 0;\n\n const dayItemTokens = {\n [`${innerTokens.dateStructureFontFamily}`]: `var(${tokens.calendarDayFontFamily})`,\n [`${innerTokens.dateStructureFontSize}`]: `var(${tokens.calendarDayFontSize})`,\n [`${innerTokens.dateStructureFontWeight}`]: `var(${tokens.calendarDayFontWeight})`,\n [`${innerTokens.dateStructureFontLineHeight}`]: `var(${tokens.calendarDayFontLineHeight})`,\n [`${innerTokens.dateStructureFontLetterSpacing}`]: `var(${tokens.calendarDayFontLetterSpacing})`,\n [`${innerTokens.dateStructureFontStyle}`]: `var(${tokens.calendarDayFontStyle})`,\n [`${innerTokens.dateStructureSelectedFontWeight}`]: `var(${tokens.calendarDaySelectedFontWeight})`,\n [`${innerTokens.dateStructureWidth}`]: `var(${tokens.calendarDayItemWidth})`,\n [`${innerTokens.dateStructureHeight}`]: `var(${tokens.calendarDayItemHeight})`,\n [`${innerTokens.dateStructureBorderRadius}`]: `var(${tokens.calendarDayItemBorderRadius})`,\n };\n\n const getSelectedDate = useCallback(\n (event: React.MouseEvent<HTMLDivElement>) => {\n const { day, monthIndex, year } = event.currentTarget.dataset;\n\n const selectedDate = {\n day: Number(day),\n monthIndex: Number(monthIndex),\n year: Number(year),\n };\n\n if (!canSelectDate(selectedDate, value, disabledList)) {\n return;\n }\n\n return selectedDate;\n },\n [disabledList, value],\n );\n\n const handleOnChangeDay = useCallback(\n (i: number, j: number) => (event: React.MouseEvent<HTMLDivElement>) => {\n const selectedDate = getSelectedDate(event);\n\n if (!selectedDate) {\n return;\n }\n\n onChangeDay(selectedDate, [i + offset, j]);\n\n if (isSelectProcess(value)) {\n onHoverDay?.(undefined);\n }\n },\n [getSelectedDate, onChangeDay, offset, value, onHoverDay],\n );\n\n const handleOnHoverDay = useCallback(\n (event: React.MouseEvent<HTMLDivElement>) => {\n const selectedDate = getSelectedDate(event);\n const isSelectedDone = Array.isArray(value) && value[0] && value[1];\n\n if (!selectedDate || !Array.isArray(value) || isSelectedDone) {\n return;\n }\n\n onHoverDay?.(selectedDate);\n },\n [getSelectedDate, onHoverDay, value],\n );\n\n const getRefs = (element: HTMLDivElement, isDayInCurrentMonth: boolean, i: number, j: number) => {\n if (isDayInCurrentMonth) {\n outerRefs.current[i + offset][j] = element;\n }\n };\n\n useEffect(() => {\n if (selectedRef.current) {\n onSetSelectedRef.current?.(selectedRef.current);\n }\n }, []);\n\n return (\n <StyledCalendarDays role=\"grid\" aria-labelledby=\"id-grid-label\" onKeyDown={onKeyDown}>\n <StyledCalendarDaysHint id=\"withShift\">\n Для навигации только по доступным датам удерживайте клавишу Shift.\n </StyledCalendarDaysHint>\n <StyledFlex role=\"row\">\n {SHORT_DAY_NAMES.map((name) => (\n <DateStructureItem\n role=\"columnheader\"\n aria-label={FULL_DAY_NAMES[name]}\n key={name}\n dayOfWeek\n day={name}\n style={dayItemTokens}\n >\n {name}\n </DateStructureItem>\n ))}\n </StyledFlex>\n {days.map((day: DateItem[], i) => (\n <StyledFlex role=\"row\" key={i}>\n {day.map(\n (\n {\n date,\n events,\n disabled,\n isSelected,\n isCurrent,\n isDayInCurrentMonth,\n inRange,\n isOutOfMinMaxRange = false,\n disabledArrowKey,\n disabledDates,\n },\n j,\n ) => (\n <DateStructureItem\n ref={(element: HTMLDivElement) => getRefs(element, Boolean(isDayInCurrentMonth), i, j)}\n style={dayItemTokens}\n eventList={events}\n disabled={disabled}\n day={date.day}\n year={date.year}\n monthIndex={date.monthIndex}\n isFocused={\n i + offset === selectIndexes?.[0] && j === selectIndexes?.[1] && !isOutOfMinMaxRange\n }\n isSelected={isSelected}\n isCurrent={isCurrent}\n isDayInCurrentMonth={isDayInCurrentMonth}\n isDouble={isDouble}\n isHovered={isSameDay(date, hoveredDay)}\n inRange={getInRange(value, date, hoveredDay, inRange)}\n sideInRange={getSideInRange(value, date, hoveredDay, isSelected)}\n onClick={disabled ? undefined : handleOnChangeDay(i, j)}\n onMouseOver={disabled ? undefined : handleOnHoverDay}\n key={`StyledDay-${i}-${j}`}\n role=\"gridcell\"\n disabledArrowKey={disabledArrowKey}\n disabledMonths={disabledDates}\n >\n {date.day}\n </DateStructureItem>\n ),\n )}\n </StyledFlex>\n ))}\n </StyledCalendarDays>\n );\n};\n"],"names":["CalendarDays","_ref","currentDate","date","value","eventList","disabledList","min","max","includeEdgeDates","hoveredDay","selectIndexes","isDouble","isSecond","outerRefs","onChangeDay","onHoverDay","onSetSelected","onKeyDown","_useDays","useDays","_useDays2","_slicedToArray","days","selected","selectedRef","useRef","onSetSelectedRef","offset","ROW_STEP","dayItemTokens","_defineProperty","concat","innerTokens","dateStructureFontFamily","tokens","calendarDayFontFamily","dateStructureFontSize","calendarDayFontSize","dateStructureFontWeight","calendarDayFontWeight","dateStructureFontLineHeight","calendarDayFontLineHeight","dateStructureFontLetterSpacing","calendarDayFontLetterSpacing","dateStructureFontStyle","calendarDayFontStyle","dateStructureSelectedFontWeight","calendarDaySelectedFontWeight","dateStructureWidth","calendarDayItemWidth","dateStructureHeight","calendarDayItemHeight","dateStructureBorderRadius","calendarDayItemBorderRadius","getSelectedDate","useCallback","event","_event$currentTarget$","currentTarget","dataset","day","monthIndex","year","selectedDate","Number","canSelectDate","handleOnChangeDay","i","j","isSelectProcess","undefined","handleOnHoverDay","isSelectedDone","Array","isArray","getRefs","element","isDayInCurrentMonth","current","useEffect","_onSetSelectedRef$cur","call","React","createElement","StyledCalendarDays","role","_StyledCalendarDaysHi","StyledCalendarDaysHint","id","StyledFlex","SHORT_DAY_NAMES","map","name","DateStructureItem","FULL_DAY_NAMES","key","dayOfWeek","style","_ref2","events","disabled","isSelected","isCurrent","inRange","_ref2$isOutOfMinMaxRa","isOutOfMinMaxRange","disabledArrowKey","disabledDates","ref","Boolean","isFocused","isHovered","isSameDay","getInRange","sideInRange","getSideInRange","onClick","onMouseOver","disabledMonths"],"mappings":";;;;;;;;;;;AAoBA;AACA;AACA;IACaA,YAAyC,GAAG,SAA5CA,YAAyCA,CAAAC,IAAA,EAiBhD;AAAA,EAAA,IAhBIC,WAAW,GAAAD,IAAA,CAAjBE,IAAI;IACJC,KAAK,GAAAH,IAAA,CAALG,KAAK;IACLC,SAAS,GAAAJ,IAAA,CAATI,SAAS;IACTC,YAAY,GAAAL,IAAA,CAAZK,Y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bA,aAAa,CAAG,CAAC,CAAC,CAAI,IAAA,CAAC+F,kBACrE;AACDJ,QAAAA,UAAU,EAAEA,UAAW;AACvBC,QAAAA,SAAS,EAAEA,SAAU;AACrBzB,QAAAA,mBAAmB,EAAEA,mBAAoB;AACzClE,QAAAA,QAAQ,EAAEA,QAAS;AACnBoG,QAAAA,SAAS,EAAEC,SAAS,CAAC9G,IAAI,EAAEO,UAAU,CAAE;QACvC8F,OAAO,EAAEU,UAAU,CAAC9G,KAAK,EAAED,IAAI,EAAEO,UAAU,EAAE8F,OAAO,CAAE;QACtDW,WAAW,EAAEC,cAAc,CAAChH,KAAK,EAAED,IAAI,EAAEO,UAAU,EAAE4F,UAAU,CAAE;QACjEe,OAAO,EAAEhB,QAAQ,GAAG9B,SAAS,GAAGJ,iBAAiB,CAACC,CAAC,EAAEC,CAAC,CAAE;AACxDiD,QAAAA,WAAW,EAAEjB,QAAQ,GAAG9B,SAAS,GAAGC,gBAAiB;QACrDwB,GAAG,EAAA,YAAA,CAAAhE,MAAA,CAAeoC,CAAC,OAAApC,MAAA,CAAIqC,CAAC,CAAG;AAC3BiB,QAAAA,IAAI,EAAC,UAAU;AACfqB,QAAAA,gBAAgB,EAAEA,gBAAiB;AACnCY,QAAAA,cAAc,EAAEX,aAAAA;OAEfzG,EAAAA,IAAI,CAAC0D,GACS,CAAC,CAAA;AAAA,KAE5B,CACQ,CAAC,CAAA;AAAA,GAChB,CACe,CAAC,CAAA;AAE7B;;;;"}
@@ -28,11 +28,11 @@
28
28
 
29
29
  .IconButton_styles_7v8g0e_b1ua728l__3b30d792{position:relative;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;box-sizing:border-box;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);--plasma_private-btn-br:var(--plasma_computed-btn-br);border-radius:var(--plasma_private-btn-br);color:var(--plasma-button-color);background-color:var(--plasma-button-background-color);height:var(--plasma-button-height);width:var(--plasma-button-width);padding:0 var(--plasma-button-padding,calc(var(--plasma-button-height) * 1.618 / 4));font-family:var(--plasma-button-font-family);font-size:var(--plasma-button-font-size);font-style:var(--plasma-button-font-style);font-weight:var(--plasma-button-font-weight);-webkit-letter-spacing:var(--plasma-button-letter-spacing);-moz-letter-spacing:var(--plasma-button-letter-spacing);-ms-letter-spacing:var(--plasma-button-letter-spacing);letter-spacing:var(--plasma-button-letter-spacing);line-height:var(--plasma-button-line-height);--plasma_private-btn-outline-size:var(--plasma-button-outline-size,0.0625rem);position:relative;--plasma-button-padding:0;--plasma-button-color:var(--plasma-icon-button-color);--plasma-button-background-color:var(--plasma-icon-button-background-color);--plasma-button-color-hover:var(--plasma-icon-button-color-hover);--plasma-button-background-color-hover:var(--plasma-icon-button-background-color-hover);--plasma-button-color-active:var(--plasma-icon-button-color-active);--plasma-button-background-color-active:var(--plasma-icon-button-background-color-active);--plasma-button-font-family:var(--plasma-icon-button-font-family);--plasma-button-font-size:var(--plasma-icon-button-font-size);--plasma-button-font-style:var(--plasma-icon-button-font-style);--plasma-button-font-weight:var(--plasma-icon-button-font-weight);--plasma-button-letter-spacing:var(--plasma-icon-button-letter-spacing);--plasma-button-line-height:var(--plasma-icon-button-line-height);--plasma-button-width:var(--plasma-icon-button-width);--plasma-button-height:var(--plasma-icon-button-height);--plasma-button-radius:var(--plasma-icon-button-radius);--plasma-button-disabled-opacity:var(--plasma-icon-button-disabled-opacity);--plasma-button-focus-color:var(--plasma-icon-button-focus-color);--plasma-button-spinner-size:var(--plasma-icon-button-spinner-size);--plasma-button-spinner-color:var(--plasma-icon-button-spinner-color);}a.IconButton_styles_7v8g0e_b1ua728l__3b30d792{-webkit-text-decoration:none;text-decoration:none;}.IconButton_styles_7v8g0e_b1ua728l__3b30d792.IconButton_styles_7v8g0e_b1ua728l__3b30d792.IconButton_styles_7v8g0e_buttonSquare__3b30d792{width:var(--plasma-button-height);padding:0;}.IconButton_styles_7v8g0e_b1ua728l__3b30d792:hover{color:var(--plasma-button-color-hover,var(--plasma-button-color));background-color:var(--plasma-button-background-color-hover,var(--plasma-button-background-color));scale:var(--plasma-button-scale-hover);}.IconButton_styles_7v8g0e_b1ua728l__3b30d792:active{color:var(--plasma-button-color-active,var(--plasma-button-color));background-color:var(--plasma-button-background-color-active,var(--plasma-button-background-color));scale:var(---plasma-button-scale-active);}.IconButton_styles_7v8g0e_b1ua728l__3b30d792:focus{outline:none;}.IconButton_styles_7v8g0e_b1ua728l__3b30d792::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:var(--plasma_private-btn-outline-size) solid transparent;border-radius:calc(0.125rem + var(--plasma_private-btn-br));-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.IconButton_styles_7v8g0e_b1ua728l__3b30d792.IconButton_styles_7v8g0e_focusVisible__3b30d792:focus::before,.IconButton_styles_7v8g0e_b1ua728l__3b30d792[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 var(--plasma_private-btn-outline-size) var(--plasma-button-focus-color);}.IconButton_styles_7v8g0e_b1ua728l__3b30d792[disabled]{opacity:var(--plasma-button-disabled-opacity);cursor:not-allowed;}.IconButton_styles_7v8g0e_b1ua728l__3b30d792[disabled]:hover,.IconButton_styles_7v8g0e_b1ua728l__3b30d792[disabled]:active{scale:none;color:var(--plasma-button-color);background-color:var(--plasma-button-background-color);}.IconButton_styles_7v8g0e_b1ua728l__3b30d792.IconButton_styles_7v8g0e_buttonStretchingFixed__3b30d792{width:var(--plasma-button-width);}.IconButton_styles_7v8g0e_b1ua728l__3b30d792.IconButton_styles_7v8g0e_buttonStretchingFilled__3b30d792{width:100%;}.IconButton_styles_7v8g0e_b1ua728l__3b30d792.IconButton_styles_7v8g0e_buttonStretchingAuto__3b30d792{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;}
30
30
 
31
- .CalendarHeader_styles_gnorek_sjaqipy__eb2e05d8{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:var(--plasma-calendar-header-wrapper-padding);}
32
- .CalendarHeader_styles_gnorek_s1k7jebr__eb2e05d8{border:none;background-color:transparent;padding:0;outline:none;font-family:var(--plasma-calendar-header-font-family);font-size:var(--plasma-calendar-header-font-size);font-style:var(--plasma-calendar-header-font-style);font-weight:var(--plasma-calendar-header-font-weight-bold);-webkit-letter-spacing:var(--plasma-calendar-header-font-letter-spacing);-moz-letter-spacing:var(--plasma-calendar-header-font-letter-spacing);-ms-letter-spacing:var(--plasma-calendar-header-font-letter-spacing);letter-spacing:var(--plasma-calendar-header-font-letter-spacing);line-height:var(--plasma-calendar-header-line-height);padding:var(--plasma-calendar-header-padding);color:var(--plasma-calendar-content-primary-color);cursor:pointer;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:var(--plasma-calendar-header-date-gap);-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;}.CalendarHeader_styles_gnorek_s1k7jebr__eb2e05d8:hover,.CalendarHeader_styles_gnorek_s1k7jebr__eb2e05d8:active{color:var(--plasma-calendar-content-secondary-color);}.CalendarHeader_styles_gnorek_s1k7jebr__eb2e05d8::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:0.563rem;-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.CalendarHeader_styles_gnorek_s1k7jebr__eb2e05d8.CalendarHeader_styles_gnorek_focusVisible__eb2e05d8:focus::before,.CalendarHeader_styles_gnorek_s1k7jebr__eb2e05d8[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.063rem var(--plasma-calendar-outline-focus-color);}
33
- .CalendarHeader_styles_gnorek_s1b07tlr__eb2e05d8{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;pointer-events:none;}
34
- .CalendarHeader_styles_gnorek_s13yvda3__eb2e05d8{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:var(--plasma-calendar-arrow-container-gap);padding:var(--plasma-calendar-arrow-container-padding);}
35
- .CalendarHeader_styles_gnorek_s1i8jkj2__eb2e05d8{--plasma-icon-button-color:var(--plasma-calendar-icon-button-color);--plasma-icon-button-background-color:var(--plasma-calendar-icon-button-background);--plasma-icon-button-color-hover:var(--plasma-calendar-icon-button-color-hover);--plasma-icon-button-background-color-hover:var(--plasma-calendar-icon-button-background-hover);--plasma-icon-button-color-active:var(--plasma-calendar-icon-button-color-active);--plasma-icon-button-background-color-active:var(--plasma-calendar-icon-button-background-active);--plasma-icon-button-height:var(--plasma-calendar-icon-button-height);--plasma-icon-button-width:var(--plasma-calendar-icon-button-width);--plasma-icon-button-padding:var(--plasma-calendar-icon-button-padding);--plasma-icon-button-radius:var(--plasma-calendar-icon-button-radius);--plasma-icon-button-focus-color:var(--plasma-calendar-icon-button-focus-color);}
36
- .CalendarHeader_styles_gnorek_sw3by8z__eb2e05d8{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
37
- .CalendarHeader_styles_gnorek_sdke0q6__eb2e05d8{width:100%;display:grid;grid-template-columns:var(--plasma-calendar-icon-button-width) 1fr var(--plasma-calendar-icon-button-width);grid-template-areas:'a b c';}.CalendarHeader_styles_gnorek_sdke0q6__eb2e05d8 .CalendarHeader_styles_gnorek_s1i8jkj2__eb2e05d8{grid-area:a;}.CalendarHeader_styles_gnorek_sdke0q6__eb2e05d8.CalendarHeader_styles_gnorek_doubleHeader_LastDateWrapper__eb2e05d8 .CalendarHeader_styles_gnorek_s1i8jkj2__eb2e05d8{grid-area:c;}
38
- .CalendarHeader_styles_gnorek_sdtpxcv__eb2e05d8{font-family:var(--plasma-calendar-header-font-family);font-size:var(--plasma-calendar-header-font-size);font-style:var(--plasma-calendar-header-font-style);font-weight:var(--plasma-calendar-header-font-weight-bold);-webkit-letter-spacing:var(--plasma-calendar-header-font-letter-spacing);-moz-letter-spacing:var(--plasma-calendar-header-font-letter-spacing);-ms-letter-spacing:var(--plasma-calendar-header-font-letter-spacing);letter-spacing:var(--plasma-calendar-header-font-letter-spacing);line-height:var(--plasma-calendar-header-line-height);grid-area:b;justify-self:center;cursor:pointer;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:var(--plasma-calendar-header-date-gap);-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
31
+ .CalendarHeader_styles_1jfelqf_sjaqipy__a85b865d{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:var(--plasma-calendar-header-wrapper-padding);}
32
+ .CalendarHeader_styles_1jfelqf_s1k7jebr__a85b865d{border:none;background-color:transparent;padding:0;outline:none;font-family:var(--plasma-calendar-header-font-family);font-size:var(--plasma-calendar-header-font-size);font-style:var(--plasma-calendar-header-font-style);font-weight:var(--plasma-calendar-header-font-weight-bold);-webkit-letter-spacing:var(--plasma-calendar-header-font-letter-spacing);-moz-letter-spacing:var(--plasma-calendar-header-font-letter-spacing);-ms-letter-spacing:var(--plasma-calendar-header-font-letter-spacing);letter-spacing:var(--plasma-calendar-header-font-letter-spacing);line-height:var(--plasma-calendar-header-line-height);padding:var(--plasma-calendar-header-padding);color:var(--plasma-calendar-content-primary-color);cursor:pointer;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:var(--plasma-calendar-header-date-gap);-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;}.CalendarHeader_styles_1jfelqf_s1k7jebr__a85b865d:hover,.CalendarHeader_styles_1jfelqf_s1k7jebr__a85b865d:active{color:var(--plasma-calendar-content-secondary-color);}.CalendarHeader_styles_1jfelqf_s1k7jebr__a85b865d::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:0.563rem;-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.CalendarHeader_styles_1jfelqf_s1k7jebr__a85b865d.CalendarHeader_styles_1jfelqf_focusVisible__a85b865d:focus::before,.CalendarHeader_styles_1jfelqf_s1k7jebr__a85b865d[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.063rem var(--plasma-calendar-outline-focus-color);}
33
+ .CalendarHeader_styles_1jfelqf_s1b07tlr__a85b865d{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;pointer-events:none;}
34
+ .CalendarHeader_styles_1jfelqf_s13yvda3__a85b865d{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:var(--plasma-calendar-arrow-container-gap);padding:var(--plasma-calendar-arrow-container-padding);}
35
+ .CalendarHeader_styles_1jfelqf_s1i8jkj2__a85b865d{--plasma-icon-button-color:var(--plasma-calendar-icon-button-color);--plasma-icon-button-background-color:var(--plasma-calendar-icon-button-background);--plasma-icon-button-color-hover:var(--plasma-calendar-icon-button-color-hover);--plasma-icon-button-background-color-hover:var(--plasma-calendar-icon-button-background-hover);--plasma-icon-button-color-active:var(--plasma-calendar-icon-button-color-active);--plasma-icon-button-background-color-active:var(--plasma-calendar-icon-button-background-active);--plasma-icon-button-height:var(--plasma-calendar-icon-button-height);--plasma-icon-button-width:var(--plasma-calendar-icon-button-width);--plasma-icon-button-padding:var(--plasma-calendar-icon-button-padding);--plasma-icon-button-radius:var(--plasma-calendar-icon-button-radius);--plasma-icon-button-focus-color:var(--plasma-calendar-icon-button-focus-color);}
36
+ .CalendarHeader_styles_1jfelqf_sw3by8z__a85b865d{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
37
+ .CalendarHeader_styles_1jfelqf_sdke0q6__a85b865d{width:100%;display:grid;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;grid-template-columns:var(--plasma-calendar-icon-button-width) 1fr var(--plasma-calendar-icon-button-width);grid-template-areas:'a b c';}.CalendarHeader_styles_1jfelqf_sdke0q6__a85b865d .CalendarHeader_styles_1jfelqf_s1i8jkj2__a85b865d{grid-area:a;}.CalendarHeader_styles_1jfelqf_sdke0q6__a85b865d.CalendarHeader_styles_1jfelqf_doubleHeader_LastDateWrapper__a85b865d .CalendarHeader_styles_1jfelqf_s1i8jkj2__a85b865d{grid-area:c;}
38
+ .CalendarHeader_styles_1jfelqf_sdtpxcv__a85b865d{border:none;background-color:transparent;padding:0;outline:none;font-family:var(--plasma-calendar-header-font-family);font-size:var(--plasma-calendar-header-font-size);font-style:var(--plasma-calendar-header-font-style);font-weight:var(--plasma-calendar-header-font-weight-bold);-webkit-letter-spacing:var(--plasma-calendar-header-font-letter-spacing);-moz-letter-spacing:var(--plasma-calendar-header-font-letter-spacing);-ms-letter-spacing:var(--plasma-calendar-header-font-letter-spacing);letter-spacing:var(--plasma-calendar-header-font-letter-spacing);line-height:var(--plasma-calendar-header-line-height);color:var(--plasma-calendar-content-primary-color);grid-area:b;justify-self:center;cursor:pointer;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:var(--plasma-calendar-header-date-gap);-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:0;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;}.CalendarHeader_styles_1jfelqf_sdtpxcv__a85b865d::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:0.563rem;-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.CalendarHeader_styles_1jfelqf_sdtpxcv__a85b865d.CalendarHeader_styles_1jfelqf_focusVisible__a85b865d:focus::before,.CalendarHeader_styles_1jfelqf_sdtpxcv__a85b865d[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.063rem var(--plasma-calendar-outline-focus-color);}