@salutejs/plasma-new-hope 0.93.0-canary.1224.9666441939.0 → 0.93.0-canary.1233.9692693420.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1423) hide show
  1. package/cjs/components/Button/Button.styles.js.map +1 -1
  2. package/cjs/components/Calendar/Calendar.tokens.js +28 -67
  3. package/cjs/components/Calendar/Calendar.tokens.js.map +1 -1
  4. package/cjs/components/Calendar/Calendar.types.js.map +1 -1
  5. package/cjs/components/Calendar/CalendarBase/CalendarBase.css +29 -57
  6. package/cjs/components/Calendar/CalendarBase/CalendarBase.js +0 -6
  7. package/cjs/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
  8. package/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
  9. package/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js.map +1 -1
  10. package/cjs/components/Calendar/CalendarBase/CalendarBase.styles_rv9ax9.css +2 -0
  11. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.css +30 -58
  12. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +0 -6
  13. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
  14. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.styles.js +1 -1
  15. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.styles.js.map +1 -1
  16. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.styles_1rc2ejs.css +3 -0
  17. package/cjs/components/Calendar/hoc/withRange.js.map +1 -1
  18. package/cjs/components/Calendar/hooks/useDays.js +1 -1
  19. package/cjs/components/Calendar/hooks/useDays.js.map +1 -1
  20. package/cjs/components/Calendar/mixins/index.js +18 -0
  21. package/cjs/components/Calendar/mixins/index.js.map +1 -0
  22. package/cjs/components/Calendar/mixins/index_o3bz9l.css +1 -0
  23. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.css +4 -4
  24. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +9 -9
  25. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js.map +1 -1
  26. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_xf9c5e.css +4 -0
  27. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.css +7 -7
  28. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.styles.js +1 -1
  29. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.styles.js.map +1 -1
  30. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.styles_bnrjbd.css +3 -0
  31. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.css +8 -36
  32. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +17 -31
  33. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  34. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +12 -27
  35. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  36. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1c4p417.css +6 -0
  37. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.css +4 -4
  38. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
  39. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
  40. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +1 -1
  41. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js.map +1 -1
  42. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_1jnzviu.css +4 -0
  43. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.css +4 -4
  44. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
  45. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
  46. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +1 -1
  47. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles.js.map +1 -1
  48. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles_1lubnwe.css +4 -0
  49. package/cjs/components/Calendar/utils/index.js.map +1 -1
  50. package/cjs/components/Chip/Chip.tokens.js +2 -0
  51. package/cjs/components/Chip/Chip.tokens.js.map +1 -1
  52. package/cjs/components/Combobox/Combobox.js +4 -4
  53. package/cjs/components/Combobox/Combobox.js.map +1 -1
  54. package/cjs/components/Combobox/hooks/useKeyNavigation.js.map +1 -0
  55. package/cjs/components/Combobox/ui/ComboboxTarget/ComboboxTarget.js +1 -1
  56. package/cjs/components/Combobox/ui/ComboboxTarget/ComboboxTarget.js.map +1 -1
  57. package/cjs/components/Combobox/utils/index.js +103 -0
  58. package/cjs/components/Combobox/utils/index.js.map +1 -1
  59. package/cjs/components/Dropdown/Dropdown.js +2 -4
  60. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  61. package/cjs/components/Dropdown/Dropdown.tokens.js +32 -18
  62. package/cjs/components/Dropdown/Dropdown.tokens.js.map +1 -1
  63. package/cjs/components/Dropdown/hooks/useKeyboardNavigation.js +63 -24
  64. package/cjs/components/Dropdown/hooks/useKeyboardNavigation.js.map +1 -1
  65. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +4 -8
  66. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  67. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +5 -6
  68. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  69. package/cjs/components/Dropdown/utils/index.js +17 -0
  70. package/cjs/components/Dropdown/utils/index.js.map +1 -1
  71. package/cjs/components/Pagination/Pagination.css +58 -49
  72. package/cjs/components/Pagination/Pagination.js +12 -5
  73. package/cjs/components/Pagination/Pagination.js.map +1 -1
  74. package/cjs/components/Pagination/Pagination.styles.js.map +1 -1
  75. package/cjs/components/Pagination/Pagination.tokens.js +9 -11
  76. package/cjs/components/Pagination/Pagination.tokens.js.map +1 -1
  77. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +59 -50
  78. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +20 -26
  79. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js.map +1 -1
  80. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +5 -20
  81. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  82. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_187mk6b.css +3 -0
  83. package/cjs/components/Range/Range.css +6 -6
  84. package/cjs/components/Range/Range.js +2 -17
  85. package/cjs/components/Range/Range.js.map +1 -1
  86. package/cjs/components/Range/Range.styles.js +1 -1
  87. package/cjs/components/Range/Range.styles.js.map +1 -1
  88. package/cjs/components/Range/Range.styles_mc4w65.css +8 -0
  89. package/cjs/components/Select/Select.css +65 -60
  90. package/cjs/components/Select/Select.js +253 -199
  91. package/cjs/components/Select/Select.js.map +1 -1
  92. package/cjs/components/Select/Select.styles.js +51 -36
  93. package/cjs/components/Select/Select.styles.js.map +1 -1
  94. package/cjs/components/Select/Select.styles_zx0ztg.css +5 -0
  95. package/cjs/components/Select/Select.tokens.js +58 -166
  96. package/cjs/components/Select/Select.tokens.js.map +1 -1
  97. package/cjs/components/Select/elements/Inner/Inner.css +106 -0
  98. package/cjs/components/Select/elements/Inner/Inner.js +82 -0
  99. package/cjs/components/Select/elements/Inner/Inner.js.map +1 -0
  100. package/cjs/components/Select/elements/Inner/elements/Item/Item.css +106 -0
  101. package/cjs/components/Select/elements/Inner/elements/Item/Item.js +98 -0
  102. package/cjs/components/Select/elements/Inner/elements/Item/Item.js.map +1 -0
  103. package/cjs/components/Select/elements/Inner/elements/Item/Item.styles.js +104 -0
  104. package/cjs/components/Select/elements/Inner/elements/Item/Item.styles.js.map +1 -0
  105. package/cjs/components/Select/elements/Inner/elements/Item/Item.styles_545sy7.css +8 -0
  106. package/cjs/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.css +30 -0
  107. package/cjs/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.js +20 -0
  108. package/cjs/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.js.map +1 -0
  109. package/cjs/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.styles.js +41 -0
  110. package/cjs/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.styles.js.map +1 -0
  111. package/cjs/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.styles_r1sne.css +4 -0
  112. package/cjs/components/Select/elements/Target/Target.css +66 -0
  113. package/cjs/components/Select/elements/Target/Target.js +63 -0
  114. package/cjs/components/Select/elements/Target/Target.js.map +1 -0
  115. package/cjs/components/Select/elements/Target/elements/Button/Button.css +33 -0
  116. package/cjs/components/Select/elements/Target/elements/Button/Button.js +59 -0
  117. package/cjs/components/Select/elements/Target/elements/Button/Button.js.map +1 -0
  118. package/cjs/components/Select/elements/Target/elements/Button/Button.styles.js +52 -0
  119. package/cjs/components/Select/elements/Target/elements/Button/Button.styles.js.map +1 -0
  120. package/cjs/components/Select/elements/Target/elements/Button/Button.styles_1r519o1.css +5 -0
  121. package/cjs/components/Select/elements/Target/elements/Textfield/Textfield.css +60 -0
  122. package/cjs/components/Select/elements/Target/elements/Textfield/Textfield.js +113 -0
  123. package/cjs/components/Select/elements/Target/elements/Textfield/Textfield.js.map +1 -0
  124. package/cjs/components/Select/elements/Target/elements/Textfield/Textfield.styles.js +113 -0
  125. package/cjs/components/Select/elements/Target/elements/Textfield/Textfield.styles.js.map +1 -0
  126. package/cjs/components/Select/elements/Target/elements/Textfield/Textfield.styles_hp8mkt.css +12 -0
  127. package/cjs/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.css +21 -0
  128. package/cjs/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.js +36 -0
  129. package/cjs/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.js.map +1 -0
  130. package/cjs/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.styles.js +23 -0
  131. package/cjs/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.styles.js.map +1 -0
  132. package/cjs/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.styles_k6znfr.css +1 -0
  133. package/cjs/components/Select/hooks/useKeyboardNavigation.js +353 -0
  134. package/cjs/components/Select/hooks/useKeyboardNavigation.js.map +1 -0
  135. package/cjs/components/Select/hooks/usePathMaps.js +37 -0
  136. package/cjs/components/Select/hooks/usePathMaps.js.map +1 -0
  137. package/cjs/components/Select/reducers/focusedChipIndexReducer.js +39 -0
  138. package/cjs/components/Select/reducers/focusedChipIndexReducer.js.map +1 -0
  139. package/cjs/components/Select/reducers/focusedPathReducer.js +37 -0
  140. package/cjs/components/Select/reducers/focusedPathReducer.js.map +1 -0
  141. package/cjs/components/Select/reducers/pathReducer.js +41 -0
  142. package/cjs/components/Select/reducers/pathReducer.js.map +1 -0
  143. package/cjs/components/Select/utils/getButtonLabel.js +47 -0
  144. package/cjs/components/Select/utils/getButtonLabel.js.map +1 -0
  145. package/cjs/components/Select/utils/getCorrectHeight.js +13 -0
  146. package/cjs/components/Select/utils/getCorrectHeight.js.map +1 -0
  147. package/cjs/components/Select/utils/getView.js +27 -0
  148. package/cjs/components/Select/utils/getView.js.map +1 -0
  149. package/cjs/components/Select/utils/initialItemsTransform.js +19 -0
  150. package/cjs/components/Select/utils/initialItemsTransform.js.map +1 -0
  151. package/cjs/components/Select/utils/sizeToIconSize.js +11 -0
  152. package/cjs/components/Select/utils/sizeToIconSize.js.map +1 -0
  153. package/cjs/components/Select/utils/updateAncestors.js +32 -0
  154. package/cjs/components/Select/utils/updateAncestors.js.map +1 -0
  155. package/cjs/components/Select/utils/updateDescendants.js +16 -0
  156. package/cjs/components/Select/utils/updateDescendants.js.map +1 -0
  157. package/cjs/components/Select/utils/updateSingleAncestors.js +13 -0
  158. package/cjs/components/Select/utils/updateSingleAncestors.js.map +1 -0
  159. package/cjs/components/Slider/Slider.css +3 -3
  160. package/cjs/components/Slider/components/Double/Double.css +3 -3
  161. package/cjs/components/TextField/TextField.tokens.js +1 -1
  162. package/cjs/components/TextField/TextField.tokens.js.map +1 -1
  163. package/cjs/components/TextField/variations/_read-only/base.js +1 -1
  164. package/cjs/components/TextField/variations/_read-only/base_134hshp.css +1 -0
  165. package/cjs/components/TextField/variations/_size/base.js +1 -1
  166. package/cjs/components/TextField/variations/_size/base.js.map +1 -1
  167. package/cjs/components/TextField/variations/_size/base_ntoddv.css +1 -0
  168. package/cjs/components/TextField/variations/_view/base.js +1 -1
  169. package/cjs/components/TextField/variations/_view/base_19gxyva.css +1 -0
  170. package/cjs/components/_Icon/Icon.assets/DisclosureDownCentered.js +33 -0
  171. package/cjs/components/_Icon/Icon.assets/DisclosureDownCentered.js.map +1 -0
  172. package/cjs/components/_Icon/Icon.assets/DisclosureLeft.js +1 -1
  173. package/cjs/components/_Icon/Icon.assets/DisclosureLeft.js.map +1 -1
  174. package/cjs/components/_Icon/Icon.assets/DisclosureRight.js +15 -5
  175. package/cjs/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
  176. package/cjs/components/_Icon/Icon.assets/DisclosureRightCentered.js +31 -0
  177. package/cjs/components/_Icon/Icon.assets/DisclosureRightCentered.js.map +1 -0
  178. package/cjs/components/_Icon/Icons/IconDisclosureDownCentered.js +23 -0
  179. package/cjs/components/_Icon/Icons/IconDisclosureDownCentered.js.map +1 -0
  180. package/cjs/components/_Icon/Icons/IconDisclosureRightCentered.js +23 -0
  181. package/cjs/components/_Icon/Icons/IconDisclosureRightCentered.js.map +1 -0
  182. package/cjs/engines/common.js.map +1 -1
  183. package/cjs/hooks/useOutsideClick.js +26 -0
  184. package/cjs/hooks/useOutsideClick.js.map +1 -0
  185. package/cjs/index.css +81 -98
  186. package/cjs/index.js +6 -30
  187. package/cjs/index.js.map +1 -1
  188. package/cjs/utils/index.js.map +1 -1
  189. package/cjs/utils/isEmpty.js +49 -0
  190. package/cjs/utils/isEmpty.js.map +1 -0
  191. package/es/components/Button/Button.styles.js.map +1 -1
  192. package/es/components/Calendar/Calendar.tokens.js +28 -67
  193. package/es/components/Calendar/Calendar.tokens.js.map +1 -1
  194. package/es/components/Calendar/Calendar.types.js.map +1 -1
  195. package/es/components/Calendar/CalendarBase/CalendarBase.css +29 -57
  196. package/es/components/Calendar/CalendarBase/CalendarBase.js +1 -7
  197. package/es/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
  198. package/es/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
  199. package/es/components/Calendar/CalendarBase/CalendarBase.styles.js.map +1 -1
  200. package/es/components/Calendar/CalendarBase/CalendarBase.styles_rv9ax9.css +2 -0
  201. package/es/components/Calendar/CalendarDouble/CalendarDouble.css +30 -58
  202. package/es/components/Calendar/CalendarDouble/CalendarDouble.js +1 -7
  203. package/es/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
  204. package/es/components/Calendar/CalendarDouble/CalendarDouble.styles.js +1 -1
  205. package/es/components/Calendar/CalendarDouble/CalendarDouble.styles.js.map +1 -1
  206. package/es/components/Calendar/CalendarDouble/CalendarDouble.styles_1rc2ejs.css +3 -0
  207. package/es/components/Calendar/hoc/withRange.js.map +1 -1
  208. package/es/components/Calendar/hooks/useDays.js +1 -1
  209. package/es/components/Calendar/hooks/useDays.js.map +1 -1
  210. package/es/components/Calendar/mixins/index.js +14 -0
  211. package/es/components/Calendar/mixins/index.js.map +1 -0
  212. package/es/components/Calendar/mixins/index_o3bz9l.css +1 -0
  213. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.css +4 -4
  214. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +9 -9
  215. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js.map +1 -1
  216. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_xf9c5e.css +4 -0
  217. package/es/components/Calendar/ui/CalendarDays/CalendarDays.css +7 -7
  218. package/es/components/Calendar/ui/CalendarDays/CalendarDays.styles.js +1 -1
  219. package/es/components/Calendar/ui/CalendarDays/CalendarDays.styles.js.map +1 -1
  220. package/es/components/Calendar/ui/CalendarDays/CalendarDays.styles_bnrjbd.css +3 -0
  221. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.css +8 -36
  222. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +18 -32
  223. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  224. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +13 -26
  225. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  226. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1c4p417.css +6 -0
  227. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.css +4 -4
  228. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
  229. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
  230. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +1 -1
  231. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js.map +1 -1
  232. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_1jnzviu.css +4 -0
  233. package/es/components/Calendar/ui/CalendarYears/CalendarYears.css +4 -4
  234. package/es/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
  235. package/es/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
  236. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +1 -1
  237. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles.js.map +1 -1
  238. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles_1lubnwe.css +4 -0
  239. package/es/components/Calendar/utils/index.js.map +1 -1
  240. package/es/components/Chip/Chip.tokens.js +2 -0
  241. package/es/components/Chip/Chip.tokens.js.map +1 -1
  242. package/es/components/Combobox/Combobox.js +3 -3
  243. package/es/components/Combobox/Combobox.js.map +1 -1
  244. package/es/components/Combobox/hooks/useKeyNavigation.js.map +1 -0
  245. package/es/components/Combobox/ui/ComboboxTarget/ComboboxTarget.js +1 -1
  246. package/es/components/Combobox/ui/ComboboxTarget/ComboboxTarget.js.map +1 -1
  247. package/es/components/Combobox/utils/index.js +102 -3
  248. package/es/components/Combobox/utils/index.js.map +1 -1
  249. package/es/components/Dropdown/Dropdown.js +2 -4
  250. package/es/components/Dropdown/Dropdown.js.map +1 -1
  251. package/es/components/Dropdown/Dropdown.tokens.js +32 -18
  252. package/es/components/Dropdown/Dropdown.tokens.js.map +1 -1
  253. package/es/components/Dropdown/hooks/useKeyboardNavigation.js +63 -24
  254. package/es/components/Dropdown/hooks/useKeyboardNavigation.js.map +1 -1
  255. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +4 -8
  256. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  257. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +5 -6
  258. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  259. package/es/components/Dropdown/utils/index.js +16 -1
  260. package/es/components/Dropdown/utils/index.js.map +1 -1
  261. package/es/components/Pagination/Pagination.css +58 -49
  262. package/es/components/Pagination/Pagination.js +12 -5
  263. package/es/components/Pagination/Pagination.js.map +1 -1
  264. package/es/components/Pagination/Pagination.styles.js.map +1 -1
  265. package/es/components/Pagination/Pagination.tokens.js +9 -11
  266. package/es/components/Pagination/Pagination.tokens.js.map +1 -1
  267. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +59 -50
  268. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +23 -29
  269. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js.map +1 -1
  270. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +6 -19
  271. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  272. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_187mk6b.css +3 -0
  273. package/es/components/Range/Range.css +6 -6
  274. package/es/components/Range/Range.js +3 -18
  275. package/es/components/Range/Range.js.map +1 -1
  276. package/es/components/Range/Range.styles.js +1 -1
  277. package/es/components/Range/Range.styles.js.map +1 -1
  278. package/es/components/Range/Range.styles_mc4w65.css +8 -0
  279. package/es/components/Select/Select.css +65 -60
  280. package/es/components/Select/Select.js +250 -197
  281. package/es/components/Select/Select.js.map +1 -1
  282. package/es/components/Select/Select.styles.js +48 -34
  283. package/es/components/Select/Select.styles.js.map +1 -1
  284. package/es/components/Select/Select.styles_zx0ztg.css +5 -0
  285. package/es/components/Select/Select.tokens.js +58 -166
  286. package/es/components/Select/Select.tokens.js.map +1 -1
  287. package/es/components/Select/elements/Inner/Inner.css +106 -0
  288. package/es/components/Select/elements/Inner/Inner.js +78 -0
  289. package/es/components/Select/elements/Inner/Inner.js.map +1 -0
  290. package/es/components/Select/elements/Inner/elements/Item/Item.css +106 -0
  291. package/es/components/Select/elements/Inner/elements/Item/Item.js +94 -0
  292. package/es/components/Select/elements/Inner/elements/Item/Item.js.map +1 -0
  293. package/es/components/Select/elements/Inner/elements/Item/Item.styles.js +93 -0
  294. package/es/components/Select/elements/Inner/elements/Item/Item.styles.js.map +1 -0
  295. package/es/components/Select/elements/Inner/elements/Item/Item.styles_545sy7.css +8 -0
  296. package/es/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.css +30 -0
  297. package/es/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.js +16 -0
  298. package/es/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.js.map +1 -0
  299. package/es/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.styles.js +34 -0
  300. package/es/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.styles.js.map +1 -0
  301. package/es/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.styles_r1sne.css +4 -0
  302. package/es/components/Select/elements/Target/Target.css +66 -0
  303. package/es/components/Select/elements/Target/Target.js +59 -0
  304. package/es/components/Select/elements/Target/Target.js.map +1 -0
  305. package/es/components/Select/elements/Target/elements/Button/Button.css +33 -0
  306. package/es/components/Select/elements/Target/elements/Button/Button.js +55 -0
  307. package/es/components/Select/elements/Target/elements/Button/Button.js.map +1 -0
  308. package/es/components/Select/elements/Target/elements/Button/Button.styles.js +44 -0
  309. package/es/components/Select/elements/Target/elements/Button/Button.styles.js.map +1 -0
  310. package/es/components/Select/elements/Target/elements/Button/Button.styles_1r519o1.css +5 -0
  311. package/es/components/Select/elements/Target/elements/Textfield/Textfield.css +60 -0
  312. package/es/components/Select/elements/Target/elements/Textfield/Textfield.js +109 -0
  313. package/es/components/Select/elements/Target/elements/Textfield/Textfield.js.map +1 -0
  314. package/es/components/Select/elements/Target/elements/Textfield/Textfield.styles.js +98 -0
  315. package/es/components/Select/elements/Target/elements/Textfield/Textfield.styles.js.map +1 -0
  316. package/es/components/Select/elements/Target/elements/Textfield/Textfield.styles_hp8mkt.css +12 -0
  317. package/es/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.css +21 -0
  318. package/es/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.js +32 -0
  319. package/es/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.js.map +1 -0
  320. package/es/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.styles.js +19 -0
  321. package/es/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.styles.js.map +1 -0
  322. package/es/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.styles_k6znfr.css +1 -0
  323. package/es/components/Select/hooks/useKeyboardNavigation.js +348 -0
  324. package/es/components/Select/hooks/useKeyboardNavigation.js.map +1 -0
  325. package/es/components/Select/hooks/usePathMaps.js +33 -0
  326. package/es/components/Select/hooks/usePathMaps.js.map +1 -0
  327. package/es/components/Select/reducers/focusedChipIndexReducer.js +35 -0
  328. package/es/components/Select/reducers/focusedChipIndexReducer.js.map +1 -0
  329. package/es/components/Select/reducers/focusedPathReducer.js +33 -0
  330. package/es/components/Select/reducers/focusedPathReducer.js.map +1 -0
  331. package/es/components/Select/reducers/pathReducer.js +37 -0
  332. package/es/components/Select/reducers/pathReducer.js.map +1 -0
  333. package/es/components/Select/utils/getButtonLabel.js +43 -0
  334. package/es/components/Select/utils/getButtonLabel.js.map +1 -0
  335. package/es/components/Select/utils/getCorrectHeight.js +9 -0
  336. package/es/components/Select/utils/getCorrectHeight.js.map +1 -0
  337. package/es/components/Select/utils/getView.js +23 -0
  338. package/es/components/Select/utils/getView.js.map +1 -0
  339. package/es/components/Select/utils/initialItemsTransform.js +15 -0
  340. package/es/components/Select/utils/initialItemsTransform.js.map +1 -0
  341. package/es/components/Select/utils/sizeToIconSize.js +7 -0
  342. package/es/components/Select/utils/sizeToIconSize.js.map +1 -0
  343. package/es/components/Select/utils/updateAncestors.js +28 -0
  344. package/es/components/Select/utils/updateAncestors.js.map +1 -0
  345. package/es/components/Select/utils/updateDescendants.js +12 -0
  346. package/es/components/Select/utils/updateDescendants.js.map +1 -0
  347. package/es/components/Select/utils/updateSingleAncestors.js +9 -0
  348. package/es/components/Select/utils/updateSingleAncestors.js.map +1 -0
  349. package/es/components/Slider/Slider.css +3 -3
  350. package/es/components/Slider/components/Double/Double.css +3 -3
  351. package/es/components/TextField/TextField.tokens.js +1 -1
  352. package/es/components/TextField/TextField.tokens.js.map +1 -1
  353. package/es/components/TextField/variations/_read-only/base.js +1 -1
  354. package/es/components/TextField/variations/_read-only/base_134hshp.css +1 -0
  355. package/es/components/TextField/variations/_size/base.js +1 -1
  356. package/es/components/TextField/variations/_size/base.js.map +1 -1
  357. package/es/components/TextField/variations/_size/base_ntoddv.css +1 -0
  358. package/es/components/TextField/variations/_view/base.js +1 -1
  359. package/es/components/TextField/variations/_view/base_19gxyva.css +1 -0
  360. package/es/components/_Icon/Icon.assets/DisclosureDownCentered.js +29 -0
  361. package/es/components/_Icon/Icon.assets/DisclosureDownCentered.js.map +1 -0
  362. package/es/components/_Icon/Icon.assets/DisclosureLeft.js +1 -1
  363. package/es/components/_Icon/Icon.assets/DisclosureLeft.js.map +1 -1
  364. package/es/components/_Icon/Icon.assets/DisclosureRight.js +15 -5
  365. package/es/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
  366. package/es/components/_Icon/Icon.assets/DisclosureRightCentered.js +27 -0
  367. package/es/components/_Icon/Icon.assets/DisclosureRightCentered.js.map +1 -0
  368. package/es/components/_Icon/Icons/IconDisclosureDownCentered.js +19 -0
  369. package/es/components/_Icon/Icons/IconDisclosureDownCentered.js.map +1 -0
  370. package/es/components/_Icon/Icons/IconDisclosureRightCentered.js +19 -0
  371. package/es/components/_Icon/Icons/IconDisclosureRightCentered.js.map +1 -0
  372. package/es/engines/common.js.map +1 -1
  373. package/es/hooks/useOutsideClick.js +22 -0
  374. package/es/hooks/useOutsideClick.js.map +1 -0
  375. package/es/index.css +81 -98
  376. package/es/index.js +4 -11
  377. package/es/index.js.map +1 -1
  378. package/es/utils/index.js.map +1 -1
  379. package/es/utils/isEmpty.js +45 -0
  380. package/es/utils/isEmpty.js.map +1 -0
  381. package/package.json +4 -5
  382. package/styled-components/cjs/components/Button/Button.styles.js +2 -2
  383. package/styled-components/cjs/components/Calendar/Calendar.tokens.js +28 -67
  384. package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.js +0 -6
  385. package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -2
  386. package/styled-components/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +0 -6
  387. package/styled-components/cjs/components/Calendar/CalendarDouble/CalendarDouble.styles.js +2 -2
  388. package/styled-components/cjs/components/Calendar/hooks/useDays.js +1 -1
  389. package/styled-components/cjs/components/Calendar/mixins/index.js +29 -30
  390. package/styled-components/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +20 -27
  391. package/styled-components/cjs/components/Calendar/ui/CalendarDays/CalendarDays.styles.js +1 -2
  392. package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +16 -30
  393. package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +11 -29
  394. package/styled-components/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
  395. package/styled-components/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +12 -26
  396. package/styled-components/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
  397. package/styled-components/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +14 -26
  398. package/styled-components/cjs/components/Chip/Chip.tokens.js +2 -0
  399. package/styled-components/cjs/components/Combobox/Combobox.js +12 -11
  400. package/styled-components/cjs/components/Combobox/hooks/index.js +14 -1
  401. package/styled-components/cjs/components/Combobox/ui/ComboboxTarget/ComboboxTarget.js +4 -5
  402. package/styled-components/cjs/components/Combobox/utils/index.js +105 -1
  403. package/styled-components/cjs/components/Dropdown/Dropdown.js +2 -3
  404. package/styled-components/cjs/components/Dropdown/Dropdown.tokens.js +32 -18
  405. package/styled-components/cjs/components/Dropdown/hooks/useKeyboardNavigation.js +63 -24
  406. package/styled-components/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +4 -8
  407. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +5 -6
  408. package/styled-components/cjs/components/Dropdown/utils/index.js +16 -1
  409. package/styled-components/cjs/components/Pagination/Pagination.js +12 -5
  410. package/styled-components/cjs/components/Pagination/Pagination.styles.js +2 -2
  411. package/styled-components/cjs/components/Pagination/Pagination.tokens.js +9 -11
  412. package/styled-components/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +22 -35
  413. package/styled-components/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +3 -8
  414. package/styled-components/cjs/components/Range/Range.js +2 -17
  415. package/styled-components/cjs/components/Range/Range.styles.js +2 -3
  416. package/styled-components/cjs/components/Select/Select.js +249 -191
  417. package/styled-components/cjs/components/Select/Select.styles.js +28 -23
  418. package/styled-components/cjs/components/Select/Select.tokens.js +73 -167
  419. package/styled-components/cjs/components/Select/elements/InfiniteLoader/InfiniteLoader.js +18 -0
  420. package/styled-components/cjs/components/Select/elements/InfiniteLoader/InfiniteLoader.styles.js +24 -0
  421. package/styled-components/cjs/components/Select/elements/Inner/Inner.js +80 -0
  422. package/styled-components/cjs/components/Select/elements/Inner/elements/Item/Item.js +96 -0
  423. package/styled-components/cjs/components/Select/elements/Inner/elements/Item/Item.styles.js +63 -0
  424. package/styled-components/cjs/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.js +19 -0
  425. package/styled-components/cjs/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.styles.js +25 -0
  426. package/styled-components/cjs/components/Select/elements/Target/Target.js +62 -0
  427. package/styled-components/cjs/components/Select/elements/Target/elements/Button/Button.js +58 -0
  428. package/styled-components/cjs/components/Select/elements/Target/elements/Button/Button.styles.js +30 -0
  429. package/styled-components/cjs/components/Select/elements/Target/elements/Textfield/Textfield.js +111 -0
  430. package/styled-components/cjs/components/Select/elements/Target/elements/Textfield/Textfield.styles.js +63 -0
  431. package/styled-components/cjs/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.js +37 -0
  432. package/styled-components/cjs/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.styles.js +21 -0
  433. package/styled-components/cjs/components/Select/hooks/useKeyboardNavigation.js +355 -0
  434. package/styled-components/cjs/components/Select/hooks/usePathMaps.js +33 -0
  435. package/styled-components/cjs/components/Select/index.js +3 -20
  436. package/styled-components/cjs/components/Select/reducers/focusedChipIndexReducer.js +38 -0
  437. package/styled-components/cjs/components/Select/reducers/focusedPathReducer.js +40 -0
  438. package/styled-components/cjs/components/Select/reducers/index.js +38 -0
  439. package/styled-components/cjs/components/Select/reducers/pathReducer.js +44 -0
  440. package/styled-components/cjs/components/Select/utils/getButtonLabel.js +43 -0
  441. package/styled-components/cjs/components/Select/utils/getCorrectHeight.js +12 -0
  442. package/styled-components/cjs/components/Select/utils/getView.js +26 -0
  443. package/styled-components/cjs/components/Select/utils/index.js +51 -102
  444. package/styled-components/cjs/components/Select/utils/initialItemsTransform.js +18 -0
  445. package/styled-components/cjs/components/Select/utils/sizeToIconSize.js +10 -0
  446. package/styled-components/cjs/components/Select/utils/updateAncestors.js +31 -0
  447. package/styled-components/cjs/components/Select/utils/updateDescendants.js +15 -0
  448. package/styled-components/cjs/components/Select/utils/updateSingleAncestors.js +12 -0
  449. package/styled-components/cjs/components/TextArea/TextArea.template-doc.mdx +0 -1
  450. package/styled-components/cjs/components/TextField/TextField.tokens.js +1 -1
  451. package/styled-components/cjs/components/TextField/variations/_size/base.js +1 -1
  452. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureDownCentered.js +32 -0
  453. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureLeft.js +1 -1
  454. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureRight.js +15 -5
  455. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureRightCentered.js +30 -0
  456. package/styled-components/cjs/components/_Icon/Icons/IconDisclosureDownCentered.js +22 -0
  457. package/styled-components/cjs/components/_Icon/Icons/IconDisclosureRightCentered.js +22 -0
  458. package/styled-components/cjs/components/_Icon/index.js +10 -3
  459. package/styled-components/cjs/examples/_helpers.js +1 -1
  460. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +6 -24
  461. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +2 -5
  462. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +2 -5
  463. package/styled-components/cjs/examples/plasma_b2c/components/Pagination/Pagination.config.js +7 -7
  464. package/styled-components/cjs/examples/plasma_b2c/components/Pagination/Pagination.stories.tsx +1 -0
  465. package/styled-components/cjs/examples/plasma_b2c/components/Range/Range.config.js +4 -4
  466. package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.config.js +20 -10
  467. package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.js +9 -13
  468. package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +768 -202
  469. package/styled-components/cjs/examples/plasma_b2c/components/Select/style.css +38 -0
  470. package/styled-components/cjs/examples/plasma_web/components/Calendar/Calendar.stories.tsx +6 -24
  471. package/styled-components/cjs/examples/plasma_web/components/Calendar/CalendarBase.config.js +2 -5
  472. package/styled-components/cjs/examples/plasma_web/components/Calendar/CalendarDouble.config.js +2 -5
  473. package/styled-components/cjs/examples/plasma_web/components/Pagination/Pagination.config.js +7 -7
  474. package/styled-components/cjs/examples/plasma_web/components/Range/Range.config.js +4 -4
  475. package/styled-components/cjs/examples/plasma_web/components/Select/Select.config.js +20 -10
  476. package/styled-components/cjs/examples/plasma_web/components/Select/Select.js +9 -13
  477. package/styled-components/cjs/examples/plasma_web/components/Select/Select.stories.tsx +768 -198
  478. package/styled-components/cjs/examples/plasma_web/components/Select/style.css +38 -0
  479. package/styled-components/cjs/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +6 -24
  480. package/styled-components/cjs/examples/sds_engineer/components/Calendar/CalendarBase.config.js +2 -5
  481. package/styled-components/cjs/examples/sds_engineer/components/Calendar/CalendarDouble.config.js +2 -5
  482. package/styled-components/cjs/hooks/index.js +7 -0
  483. package/styled-components/cjs/hooks/useOutsideClick.js +24 -0
  484. package/styled-components/cjs/index.js +0 -11
  485. package/styled-components/cjs/utils/index.js +7 -22
  486. package/styled-components/cjs/utils/isEmpty.js +47 -0
  487. package/styled-components/es/components/Button/Button.styles.js +2 -2
  488. package/styled-components/es/components/Calendar/Calendar.tokens.js +28 -67
  489. package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.js +1 -7
  490. package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -2
  491. package/styled-components/es/components/Calendar/CalendarDouble/CalendarDouble.js +1 -7
  492. package/styled-components/es/components/Calendar/CalendarDouble/CalendarDouble.styles.js +2 -2
  493. package/styled-components/es/components/Calendar/hooks/useDays.js +1 -1
  494. package/styled-components/es/components/Calendar/mixins/index.js +27 -3
  495. package/styled-components/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +19 -26
  496. package/styled-components/es/components/Calendar/ui/CalendarDays/CalendarDays.styles.js +1 -2
  497. package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +18 -32
  498. package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +11 -29
  499. package/styled-components/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
  500. package/styled-components/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +11 -25
  501. package/styled-components/es/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
  502. package/styled-components/es/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +13 -25
  503. package/styled-components/es/components/Chip/Chip.tokens.js +2 -0
  504. package/styled-components/es/components/Combobox/Combobox.js +4 -3
  505. package/styled-components/es/components/Combobox/hooks/index.js +2 -1
  506. package/styled-components/es/components/Combobox/ui/ComboboxTarget/ComboboxTarget.js +1 -2
  507. package/styled-components/es/components/Combobox/utils/index.js +105 -1
  508. package/styled-components/es/components/Dropdown/Dropdown.js +3 -4
  509. package/styled-components/es/components/Dropdown/Dropdown.tokens.js +32 -18
  510. package/styled-components/es/components/Dropdown/hooks/useKeyboardNavigation.js +63 -24
  511. package/styled-components/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +4 -8
  512. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +5 -6
  513. package/styled-components/es/components/Dropdown/utils/index.js +15 -0
  514. package/styled-components/es/components/Pagination/Pagination.js +12 -5
  515. package/styled-components/es/components/Pagination/Pagination.styles.js +2 -2
  516. package/styled-components/es/components/Pagination/Pagination.tokens.js +9 -11
  517. package/styled-components/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +22 -33
  518. package/styled-components/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +3 -8
  519. package/styled-components/es/components/Range/Range.js +3 -18
  520. package/styled-components/es/components/Range/Range.styles.js +2 -3
  521. package/styled-components/es/components/Select/Select.js +245 -188
  522. package/styled-components/es/components/Select/Select.styles.js +25 -21
  523. package/styled-components/es/components/Select/Select.tokens.js +72 -166
  524. package/styled-components/es/components/Select/elements/InfiniteLoader/InfiniteLoader.js +11 -0
  525. package/styled-components/es/components/Select/elements/InfiniteLoader/InfiniteLoader.styles.js +17 -0
  526. package/styled-components/es/components/Select/elements/Inner/Inner.js +73 -0
  527. package/styled-components/es/components/Select/elements/Inner/elements/Item/Item.js +87 -0
  528. package/styled-components/es/components/Select/elements/Inner/elements/Item/Item.styles.js +56 -0
  529. package/styled-components/es/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.js +12 -0
  530. package/styled-components/es/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.styles.js +18 -0
  531. package/styled-components/es/components/Select/elements/Target/Target.js +55 -0
  532. package/styled-components/es/components/Select/elements/Target/elements/Button/Button.js +51 -0
  533. package/styled-components/es/components/Select/elements/Target/elements/Button/Button.styles.js +23 -0
  534. package/styled-components/es/components/Select/elements/Target/elements/Textfield/Textfield.js +104 -0
  535. package/styled-components/es/components/Select/elements/Target/elements/Textfield/Textfield.styles.js +56 -0
  536. package/styled-components/es/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.js +28 -0
  537. package/styled-components/es/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.styles.js +14 -0
  538. package/styled-components/es/components/Select/hooks/useKeyboardNavigation.js +349 -0
  539. package/styled-components/es/components/Select/hooks/usePathMaps.js +27 -0
  540. package/styled-components/es/components/Select/index.js +2 -2
  541. package/styled-components/es/components/Select/reducers/focusedChipIndexReducer.js +32 -0
  542. package/styled-components/es/components/Select/reducers/focusedPathReducer.js +34 -0
  543. package/styled-components/es/components/Select/reducers/index.js +3 -0
  544. package/styled-components/es/components/Select/reducers/pathReducer.js +38 -0
  545. package/styled-components/es/components/Select/utils/getButtonLabel.js +37 -0
  546. package/styled-components/es/components/Select/utils/getCorrectHeight.js +6 -0
  547. package/styled-components/es/components/Select/utils/getView.js +20 -0
  548. package/styled-components/es/components/Select/utils/index.js +8 -106
  549. package/styled-components/es/components/Select/utils/initialItemsTransform.js +12 -0
  550. package/styled-components/es/components/Select/utils/sizeToIconSize.js +4 -0
  551. package/styled-components/es/components/Select/utils/updateAncestors.js +25 -0
  552. package/styled-components/es/components/Select/utils/updateDescendants.js +9 -0
  553. package/styled-components/es/components/Select/utils/updateSingleAncestors.js +6 -0
  554. package/styled-components/es/components/TextArea/TextArea.template-doc.mdx +0 -1
  555. package/styled-components/es/components/TextField/TextField.tokens.js +1 -1
  556. package/styled-components/es/components/TextField/variations/_size/base.js +1 -1
  557. package/styled-components/es/components/_Icon/Icon.assets/DisclosureDownCentered.js +25 -0
  558. package/styled-components/es/components/_Icon/Icon.assets/DisclosureLeft.js +1 -1
  559. package/styled-components/es/components/_Icon/Icon.assets/DisclosureRight.js +15 -5
  560. package/styled-components/es/components/_Icon/Icon.assets/DisclosureRightCentered.js +23 -0
  561. package/styled-components/es/components/_Icon/Icons/IconDisclosureDownCentered.js +15 -0
  562. package/styled-components/es/components/_Icon/Icons/IconDisclosureRightCentered.js +15 -0
  563. package/styled-components/es/components/_Icon/index.js +2 -1
  564. package/styled-components/es/examples/_helpers.js +1 -1
  565. package/styled-components/es/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +6 -24
  566. package/styled-components/es/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +2 -5
  567. package/styled-components/es/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +2 -5
  568. package/styled-components/es/examples/plasma_b2c/components/Pagination/Pagination.config.js +7 -7
  569. package/styled-components/es/examples/plasma_b2c/components/Pagination/Pagination.stories.tsx +1 -0
  570. package/styled-components/es/examples/plasma_b2c/components/Range/Range.config.js +4 -4
  571. package/styled-components/es/examples/plasma_b2c/components/Select/Select.config.js +20 -10
  572. package/styled-components/es/examples/plasma_b2c/components/Select/Select.js +3 -12
  573. package/styled-components/es/examples/plasma_b2c/components/Select/Select.stories.tsx +768 -202
  574. package/styled-components/es/examples/plasma_b2c/components/Select/style.css +38 -0
  575. package/styled-components/es/examples/plasma_web/components/Calendar/Calendar.stories.tsx +6 -24
  576. package/styled-components/es/examples/plasma_web/components/Calendar/CalendarBase.config.js +2 -5
  577. package/styled-components/es/examples/plasma_web/components/Calendar/CalendarDouble.config.js +2 -5
  578. package/styled-components/es/examples/plasma_web/components/Pagination/Pagination.config.js +7 -7
  579. package/styled-components/es/examples/plasma_web/components/Range/Range.config.js +4 -4
  580. package/styled-components/es/examples/plasma_web/components/Select/Select.config.js +20 -10
  581. package/styled-components/es/examples/plasma_web/components/Select/Select.js +3 -12
  582. package/styled-components/es/examples/plasma_web/components/Select/Select.stories.tsx +768 -198
  583. package/styled-components/es/examples/plasma_web/components/Select/style.css +38 -0
  584. package/styled-components/es/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +6 -24
  585. package/styled-components/es/examples/sds_engineer/components/Calendar/CalendarBase.config.js +2 -5
  586. package/styled-components/es/examples/sds_engineer/components/Calendar/CalendarDouble.config.js +2 -5
  587. package/styled-components/es/hooks/index.js +1 -0
  588. package/styled-components/es/hooks/useOutsideClick.js +18 -0
  589. package/styled-components/es/index.js +1 -2
  590. package/styled-components/es/utils/index.js +1 -1
  591. package/styled-components/es/utils/isEmpty.js +42 -0
  592. package/types/components/Accordion/utils/index.d.ts +1 -1
  593. package/types/components/Calendar/Calendar.tokens.d.ts +26 -60
  594. package/types/components/Calendar/Calendar.tokens.d.ts.map +1 -1
  595. package/types/components/Calendar/Calendar.types.d.ts +1 -1
  596. package/types/components/Calendar/Calendar.types.d.ts.map +1 -1
  597. package/types/components/Calendar/CalendarBase/CalendarBase.d.ts +3 -27
  598. package/types/components/Calendar/CalendarBase/CalendarBase.d.ts.map +1 -1
  599. package/types/components/Calendar/CalendarBase/CalendarBase.styles.d.ts.map +1 -1
  600. package/types/components/Calendar/CalendarDouble/CalendarDouble.d.ts +3 -30
  601. package/types/components/Calendar/CalendarDouble/CalendarDouble.d.ts.map +1 -1
  602. package/types/components/Calendar/hooks/useDays.d.ts.map +1 -1
  603. package/types/components/Calendar/mixins/index.d.ts +8 -3
  604. package/types/components/Calendar/mixins/index.d.ts.map +1 -1
  605. package/types/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.d.ts.map +1 -1
  606. package/types/components/Calendar/ui/CalendarDays/CalendarDays.styles.d.ts.map +1 -1
  607. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.d.ts.map +1 -1
  608. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts +7 -47
  609. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts.map +1 -1
  610. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.types.d.ts +0 -1
  611. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.types.d.ts.map +1 -1
  612. package/types/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.d.ts.map +1 -1
  613. package/types/components/Calendar/ui/CalendarYears/CalendarYears.styles.d.ts.map +1 -1
  614. package/types/components/Calendar/utils/index.d.ts +1 -1
  615. package/types/components/Calendar/utils/index.d.ts.map +1 -1
  616. package/types/components/Chip/Chip.tokens.d.ts +2 -0
  617. package/types/components/Chip/Chip.tokens.d.ts.map +1 -1
  618. package/types/components/Combobox/Combobox.d.ts.map +1 -1
  619. package/types/components/Combobox/Select.types.d.ts +99 -0
  620. package/types/components/Combobox/Select.types.d.ts.map +1 -0
  621. package/types/components/Combobox/hooks/index.d.ts +1 -0
  622. package/types/components/Combobox/hooks/index.d.ts.map +1 -1
  623. package/types/components/Combobox/hooks/useKeyNavigation.d.ts.map +1 -0
  624. package/types/components/Combobox/ui/ComboboxTarget/ComboboxTarget.d.ts.map +1 -1
  625. package/types/components/Combobox/utils/index.d.ts +13 -1
  626. package/types/components/Combobox/utils/index.d.ts.map +1 -1
  627. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  628. package/types/components/Dropdown/Dropdown.tokens.d.ts +17 -17
  629. package/types/components/Dropdown/Dropdown.tokens.d.ts.map +1 -1
  630. package/types/components/Dropdown/Dropdown.types.d.ts +5 -9
  631. package/types/components/Dropdown/Dropdown.types.d.ts.map +1 -1
  632. package/types/components/Dropdown/hooks/useKeyboardNavigation.d.ts.map +1 -1
  633. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.d.ts.map +1 -1
  634. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts +0 -1
  635. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts.map +1 -1
  636. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.d.ts.map +1 -1
  637. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts +0 -1
  638. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts.map +1 -1
  639. package/types/components/Dropdown/utils/index.d.ts +3 -1
  640. package/types/components/Dropdown/utils/index.d.ts.map +1 -1
  641. package/types/components/Pagination/Pagination.d.ts.map +1 -1
  642. package/types/components/Pagination/Pagination.tokens.d.ts +9 -11
  643. package/types/components/Pagination/Pagination.tokens.d.ts.map +1 -1
  644. package/types/components/Pagination/Pagination.types.d.ts +6 -1
  645. package/types/components/Pagination/Pagination.types.d.ts.map +1 -1
  646. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.d.ts.map +1 -1
  647. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts +53 -43
  648. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts.map +1 -1
  649. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.types.d.ts +5 -2
  650. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.types.d.ts.map +1 -1
  651. package/types/components/Range/Range.d.ts +3 -3
  652. package/types/components/Range/Range.d.ts.map +1 -1
  653. package/types/components/Range/Range.styles.d.ts.map +1 -1
  654. package/types/components/Range/Range.types.d.ts +3 -8
  655. package/types/components/Range/Range.types.d.ts.map +1 -1
  656. package/types/components/Range/index.d.ts +1 -1
  657. package/types/components/Range/index.d.ts.map +1 -1
  658. package/types/components/Select/Select.d.ts +7 -8
  659. package/types/components/Select/Select.d.ts.map +1 -1
  660. package/types/components/Select/Select.styles.d.ts +11 -6
  661. package/types/components/Select/Select.styles.d.ts.map +1 -1
  662. package/types/components/Select/Select.tokens.d.ts +71 -165
  663. package/types/components/Select/Select.tokens.d.ts.map +1 -1
  664. package/types/components/Select/Select.types.d.ts +128 -65
  665. package/types/components/Select/Select.types.d.ts.map +1 -1
  666. package/types/components/Select/elements/InfiniteLoader/InfiniteLoader.d.ts +6 -0
  667. package/types/components/Select/elements/InfiniteLoader/InfiniteLoader.d.ts.map +1 -0
  668. package/types/components/Select/elements/InfiniteLoader/InfiniteLoader.styles.d.ts +29 -0
  669. package/types/components/Select/elements/InfiniteLoader/InfiniteLoader.styles.d.ts.map +1 -0
  670. package/types/components/Select/elements/Inner/Inner.d.ts +4 -0
  671. package/types/components/Select/elements/Inner/Inner.d.ts.map +1 -0
  672. package/types/components/Select/elements/Inner/Inner.type.d.ts +13 -0
  673. package/types/components/Select/elements/Inner/Inner.type.d.ts.map +1 -0
  674. package/types/components/Select/elements/Inner/elements/Item/Item.d.ts +4 -0
  675. package/types/components/Select/elements/Inner/elements/Item/Item.d.ts.map +1 -0
  676. package/types/components/Select/elements/Inner/elements/Item/Item.styles.d.ts +18 -0
  677. package/types/components/Select/elements/Inner/elements/Item/Item.styles.d.ts.map +1 -0
  678. package/types/components/Select/elements/Inner/elements/Item/Item.types.d.ts +57 -0
  679. package/types/components/Select/elements/Inner/elements/Item/Item.types.d.ts.map +1 -0
  680. package/types/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.d.ts +4 -0
  681. package/types/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.d.ts.map +1 -0
  682. package/types/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.styles.d.ts +48 -0
  683. package/types/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.styles.d.ts.map +1 -0
  684. package/types/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.types.d.ts +8 -0
  685. package/types/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.types.d.ts.map +1 -0
  686. package/types/components/Select/elements/Target/Target.d.ts +4 -0
  687. package/types/components/Select/elements/Target/Target.d.ts.map +1 -0
  688. package/types/components/Select/elements/Target/Target.types.d.ts +14 -0
  689. package/types/components/Select/elements/Target/Target.types.d.ts.map +1 -0
  690. package/types/components/Select/elements/Target/elements/Button/Button.d.ts +4 -0
  691. package/types/components/Select/elements/Target/elements/Button/Button.d.ts.map +1 -0
  692. package/types/components/Select/elements/Target/elements/Button/Button.styles.d.ts +49 -0
  693. package/types/components/Select/elements/Target/elements/Button/Button.styles.d.ts.map +1 -0
  694. package/types/components/Select/elements/Target/elements/Button/Button.types.d.ts +4 -0
  695. package/types/components/Select/elements/Target/elements/Button/Button.types.d.ts.map +1 -0
  696. package/types/components/Select/elements/Target/elements/Textfield/Textfield.d.ts +4 -0
  697. package/types/components/Select/elements/Target/elements/Textfield/Textfield.d.ts.map +1 -0
  698. package/types/components/Select/elements/Target/elements/Textfield/Textfield.styles.d.ts +60 -0
  699. package/types/components/Select/elements/Target/elements/Textfield/Textfield.styles.d.ts.map +1 -0
  700. package/types/components/Select/elements/Target/elements/Textfield/Textfield.types.d.ts +4 -0
  701. package/types/components/Select/elements/Target/elements/Textfield/Textfield.types.d.ts.map +1 -0
  702. package/types/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.d.ts +9 -0
  703. package/types/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.d.ts.map +1 -0
  704. package/types/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.styles.d.ts +3 -0
  705. package/types/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.styles.d.ts.map +1 -0
  706. package/types/components/Select/hooks/useKeyboardNavigation.d.ts +43 -0
  707. package/types/components/Select/hooks/useKeyboardNavigation.d.ts.map +1 -0
  708. package/types/components/Select/hooks/usePathMaps.d.ts +8 -0
  709. package/types/components/Select/hooks/usePathMaps.d.ts.map +1 -0
  710. package/types/components/Select/index.d.ts +3 -3
  711. package/types/components/Select/index.d.ts.map +1 -1
  712. package/types/components/Select/reducers/focusedChipIndexReducer.d.ts +11 -0
  713. package/types/components/Select/reducers/focusedChipIndexReducer.d.ts.map +1 -0
  714. package/types/components/Select/reducers/focusedPathReducer.d.ts +16 -0
  715. package/types/components/Select/reducers/focusedPathReducer.d.ts.map +1 -0
  716. package/types/components/Select/reducers/index.d.ts +4 -0
  717. package/types/components/Select/reducers/index.d.ts.map +1 -0
  718. package/types/components/Select/reducers/pathReducer.d.ts +20 -0
  719. package/types/components/Select/reducers/pathReducer.d.ts.map +1 -0
  720. package/types/components/Select/utils/getButtonLabel.d.ts +3 -0
  721. package/types/components/Select/utils/getButtonLabel.d.ts.map +1 -0
  722. package/types/components/Select/utils/getCorrectHeight.d.ts +3 -0
  723. package/types/components/Select/utils/getCorrectHeight.d.ts.map +1 -0
  724. package/types/components/Select/utils/getView.d.ts +3 -0
  725. package/types/components/Select/utils/getView.d.ts.map +1 -0
  726. package/types/components/Select/utils/index.d.ts +8 -13
  727. package/types/components/Select/utils/index.d.ts.map +1 -1
  728. package/types/components/Select/utils/initialItemsTransform.d.ts +3 -0
  729. package/types/components/Select/utils/initialItemsTransform.d.ts.map +1 -0
  730. package/types/components/Select/utils/sizeToIconSize.d.ts +3 -0
  731. package/types/components/Select/utils/sizeToIconSize.d.ts.map +1 -0
  732. package/types/components/Select/utils/updateAncestors.d.ts +4 -0
  733. package/types/components/Select/utils/updateAncestors.d.ts.map +1 -0
  734. package/types/components/Select/utils/updateDescendants.d.ts +4 -0
  735. package/types/components/Select/utils/updateDescendants.d.ts.map +1 -0
  736. package/types/components/Select/utils/updateSingleAncestors.d.ts +4 -0
  737. package/types/components/Select/utils/updateSingleAncestors.d.ts.map +1 -0
  738. package/types/components/TextField/variations/_size/base.d.ts.map +1 -1
  739. package/types/components/_Icon/Icon.assets/DisclosureDownCentered.d.ts +4 -0
  740. package/types/components/_Icon/Icon.assets/DisclosureDownCentered.d.ts.map +1 -0
  741. package/types/components/_Icon/Icon.assets/DisclosureRight.d.ts.map +1 -1
  742. package/types/components/_Icon/Icon.assets/DisclosureRightCentered.d.ts +4 -0
  743. package/types/components/_Icon/Icon.assets/DisclosureRightCentered.d.ts.map +1 -0
  744. package/types/components/_Icon/Icons/IconDisclosureDownCentered.d.ts +4 -0
  745. package/types/components/_Icon/Icons/IconDisclosureDownCentered.d.ts.map +1 -0
  746. package/types/components/_Icon/Icons/IconDisclosureRightCentered.d.ts +4 -0
  747. package/types/components/_Icon/Icons/IconDisclosureRightCentered.d.ts.map +1 -0
  748. package/types/components/_Icon/index.d.ts +2 -1
  749. package/types/components/_Icon/index.d.ts.map +1 -1
  750. package/types/engines/common.d.ts +1 -1
  751. package/types/engines/common.d.ts.map +1 -1
  752. package/types/engines/types.d.ts +1 -1
  753. package/types/engines/types.d.ts.map +1 -1
  754. package/types/examples/plasma_b2c/components/Calendar/Calendar.d.ts +4 -15
  755. package/types/examples/plasma_b2c/components/Calendar/Calendar.d.ts.map +1 -1
  756. package/types/examples/plasma_b2c/components/Calendar/CalendarBase.config.d.ts +0 -3
  757. package/types/examples/plasma_b2c/components/Calendar/CalendarBase.config.d.ts.map +1 -1
  758. package/types/examples/plasma_b2c/components/Calendar/CalendarDouble.config.d.ts +0 -3
  759. package/types/examples/plasma_b2c/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
  760. package/types/examples/plasma_b2c/components/Pagination/Pagination.config.d.ts +1 -1
  761. package/types/examples/plasma_b2c/components/Pagination/Pagination.config.d.ts.map +1 -1
  762. package/types/examples/plasma_b2c/components/Pagination/Pagination.d.ts +1 -1
  763. package/types/examples/plasma_b2c/components/Range/Range.d.ts +3 -3
  764. package/types/examples/plasma_b2c/components/Range/Range.d.ts.map +1 -1
  765. package/types/examples/plasma_b2c/components/Select/Select.config.d.ts +15 -5
  766. package/types/examples/plasma_b2c/components/Select/Select.config.d.ts.map +1 -1
  767. package/types/examples/plasma_b2c/components/Select/Select.d.ts +70 -55
  768. package/types/examples/plasma_b2c/components/Select/Select.d.ts.map +1 -1
  769. package/types/examples/plasma_web/components/Calendar/Calendar.d.ts +4 -15
  770. package/types/examples/plasma_web/components/Calendar/Calendar.d.ts.map +1 -1
  771. package/types/examples/plasma_web/components/Calendar/CalendarBase.config.d.ts +0 -3
  772. package/types/examples/plasma_web/components/Calendar/CalendarBase.config.d.ts.map +1 -1
  773. package/types/examples/plasma_web/components/Calendar/CalendarDouble.config.d.ts +0 -3
  774. package/types/examples/plasma_web/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
  775. package/types/examples/plasma_web/components/Pagination/Pagination.config.d.ts +1 -1
  776. package/types/examples/plasma_web/components/Pagination/Pagination.config.d.ts.map +1 -1
  777. package/types/examples/plasma_web/components/Pagination/Pagination.d.ts +1 -1
  778. package/types/examples/plasma_web/components/Range/Range.d.ts +3 -3
  779. package/types/examples/plasma_web/components/Range/Range.d.ts.map +1 -1
  780. package/types/examples/plasma_web/components/Select/Select.config.d.ts +15 -5
  781. package/types/examples/plasma_web/components/Select/Select.config.d.ts.map +1 -1
  782. package/types/examples/plasma_web/components/Select/Select.d.ts +70 -55
  783. package/types/examples/plasma_web/components/Select/Select.d.ts.map +1 -1
  784. package/types/examples/sds_engineer/components/Calendar/Calendar.d.ts +4 -15
  785. package/types/examples/sds_engineer/components/Calendar/Calendar.d.ts.map +1 -1
  786. package/types/examples/sds_engineer/components/Calendar/CalendarBase.config.d.ts +0 -3
  787. package/types/examples/sds_engineer/components/Calendar/CalendarBase.config.d.ts.map +1 -1
  788. package/types/examples/sds_engineer/components/Calendar/CalendarDouble.config.d.ts +0 -3
  789. package/types/examples/sds_engineer/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
  790. package/types/hooks/index.d.ts +1 -0
  791. package/types/hooks/index.d.ts.map +1 -1
  792. package/types/hooks/useOutsideClick.d.ts +3 -0
  793. package/types/hooks/useOutsideClick.d.ts.map +1 -0
  794. package/types/index.d.ts +0 -1
  795. package/types/index.d.ts.map +1 -1
  796. package/types/utils/index.d.ts +1 -1
  797. package/types/utils/index.d.ts.map +1 -1
  798. package/types/utils/isEmpty.d.ts +3 -0
  799. package/types/utils/isEmpty.d.ts.map +1 -0
  800. package/cjs/components/Calendar/CalendarBase/CalendarBase.styles_1m6uih1.css +0 -2
  801. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.styles_e9ada0.css +0 -3
  802. package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_fznpy7.css +0 -4
  803. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.styles_1oq8sud.css +0 -3
  804. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_gnorek.css +0 -8
  805. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_wmlwil.css +0 -4
  806. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles_f2aje6.css +0 -4
  807. package/cjs/components/DatePicker/DatePicker.tokens.js +0 -189
  808. package/cjs/components/DatePicker/DatePicker.tokens.js.map +0 -1
  809. package/cjs/components/DatePicker/DatePickerBase.styles.js +0 -30
  810. package/cjs/components/DatePicker/DatePickerBase.styles.js.map +0 -1
  811. package/cjs/components/DatePicker/DatePickerBase.styles_1thp2xv.css +0 -1
  812. package/cjs/components/DatePicker/RangeDate/RangeDate.css +0 -152
  813. package/cjs/components/DatePicker/RangeDate/RangeDate.js +0 -285
  814. package/cjs/components/DatePicker/RangeDate/RangeDate.js.map +0 -1
  815. package/cjs/components/DatePicker/RangeDate/RangeDate.styles.js +0 -51
  816. package/cjs/components/DatePicker/RangeDate/RangeDate.styles.js.map +0 -1
  817. package/cjs/components/DatePicker/RangeDate/RangeDate.styles_ww61h9.css +0 -5
  818. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +0 -144
  819. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +0 -83
  820. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +0 -1
  821. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +0 -42
  822. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js.map +0 -1
  823. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_wp3vfj.css +0 -2
  824. package/cjs/components/DatePicker/RangeDate/variations/_disabled/base.js +0 -9
  825. package/cjs/components/DatePicker/RangeDate/variations/_disabled/base.js.map +0 -1
  826. package/cjs/components/DatePicker/RangeDate/variations/_disabled/base_tl4jc7.css +0 -1
  827. package/cjs/components/DatePicker/RangeDate/variations/_readonly/base.js +0 -9
  828. package/cjs/components/DatePicker/RangeDate/variations/_readonly/base.js.map +0 -1
  829. package/cjs/components/DatePicker/RangeDate/variations/_readonly/base_f58pkk.css +0 -1
  830. package/cjs/components/DatePicker/RangeDate/variations/_size/base.js +0 -9
  831. package/cjs/components/DatePicker/RangeDate/variations/_size/base.js.map +0 -1
  832. package/cjs/components/DatePicker/RangeDate/variations/_size/base_1911nyw.css +0 -1
  833. package/cjs/components/DatePicker/RangeDate/variations/_view/base.js +0 -9
  834. package/cjs/components/DatePicker/RangeDate/variations/_view/base.js.map +0 -1
  835. package/cjs/components/DatePicker/RangeDate/variations/_view/base_11yn9y8.css +0 -1
  836. package/cjs/components/DatePicker/SingleDate/SingleDate.css +0 -134
  837. package/cjs/components/DatePicker/SingleDate/SingleDate.js +0 -183
  838. package/cjs/components/DatePicker/SingleDate/SingleDate.js.map +0 -1
  839. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +0 -51
  840. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js.map +0 -1
  841. package/cjs/components/DatePicker/SingleDate/SingleDate.styles_18b5qkz.css +0 -5
  842. package/cjs/components/DatePicker/SingleDate/variations/_disabled/base.js +0 -9
  843. package/cjs/components/DatePicker/SingleDate/variations/_disabled/base.js.map +0 -1
  844. package/cjs/components/DatePicker/SingleDate/variations/_disabled/base_1rfgfsz.css +0 -1
  845. package/cjs/components/DatePicker/SingleDate/variations/_readonly/base.js +0 -9
  846. package/cjs/components/DatePicker/SingleDate/variations/_readonly/base.js.map +0 -1
  847. package/cjs/components/DatePicker/SingleDate/variations/_readonly/base_1jucwp.css +0 -1
  848. package/cjs/components/DatePicker/SingleDate/variations/_size/base.js +0 -9
  849. package/cjs/components/DatePicker/SingleDate/variations/_size/base.js.map +0 -1
  850. package/cjs/components/DatePicker/SingleDate/variations/_size/base_lf7y25.css +0 -1
  851. package/cjs/components/DatePicker/SingleDate/variations/_view/base.js +0 -9
  852. package/cjs/components/DatePicker/SingleDate/variations/_view/base.js.map +0 -1
  853. package/cjs/components/DatePicker/SingleDate/variations/_view/base_15vaheb.css +0 -1
  854. package/cjs/components/DatePicker/hooks/useDatePicker.js +0 -79
  855. package/cjs/components/DatePicker/hooks/useDatePicker.js.map +0 -1
  856. package/cjs/components/DatePicker/utils/dateHelper.js +0 -84
  857. package/cjs/components/DatePicker/utils/dateHelper.js.map +0 -1
  858. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_rtehle.css +0 -4
  859. package/cjs/components/Range/Range.styles_9rort8.css +0 -8
  860. package/cjs/components/Select/Select.styles_1q3i6gw.css +0 -4
  861. package/cjs/components/Select/hooks/useKeyNavigation.js.map +0 -1
  862. package/cjs/components/Select/ui/SelectChip/SelectChip.css +0 -21
  863. package/cjs/components/Select/ui/SelectChip/SelectChip.js +0 -39
  864. package/cjs/components/Select/ui/SelectChip/SelectChip.js.map +0 -1
  865. package/cjs/components/Select/ui/SelectChip/SelectChip.styles.js +0 -26
  866. package/cjs/components/Select/ui/SelectChip/SelectChip.styles.js.map +0 -1
  867. package/cjs/components/Select/ui/SelectChip/SelectChip.styles_1u4uw04.css +0 -1
  868. package/cjs/components/Select/ui/SelectDivider/SelectDivider.css +0 -35
  869. package/cjs/components/Select/ui/SelectDivider/SelectDivider.js +0 -41
  870. package/cjs/components/Select/ui/SelectDivider/SelectDivider.js.map +0 -1
  871. package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles.js +0 -12
  872. package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles.js.map +0 -1
  873. package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles_673hj6.css +0 -1
  874. package/cjs/components/Select/ui/SelectDivider/variations/_size/base.js +0 -9
  875. package/cjs/components/Select/ui/SelectDivider/variations/_size/base.js.map +0 -1
  876. package/cjs/components/Select/ui/SelectDivider/variations/_size/base_x642ct.css +0 -1
  877. package/cjs/components/Select/ui/SelectDivider/variations/_view/base.js +0 -9
  878. package/cjs/components/Select/ui/SelectDivider/variations/_view/base.js.map +0 -1
  879. package/cjs/components/Select/ui/SelectDivider/variations/_view/base_x642ct.css +0 -1
  880. package/cjs/components/Select/ui/SelectFooter/SelectFooter.css +0 -35
  881. package/cjs/components/Select/ui/SelectFooter/SelectFooter.js +0 -41
  882. package/cjs/components/Select/ui/SelectFooter/SelectFooter.js.map +0 -1
  883. package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles.js +0 -12
  884. package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles.js.map +0 -1
  885. package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles_11hk6tt.css +0 -1
  886. package/cjs/components/Select/ui/SelectFooter/variations/_size/base.js +0 -9
  887. package/cjs/components/Select/ui/SelectFooter/variations/_size/base.js.map +0 -1
  888. package/cjs/components/Select/ui/SelectFooter/variations/_size/base_x642ct.css +0 -1
  889. package/cjs/components/Select/ui/SelectFooter/variations/_view/base.js +0 -9
  890. package/cjs/components/Select/ui/SelectFooter/variations/_view/base.js.map +0 -1
  891. package/cjs/components/Select/ui/SelectFooter/variations/_view/base_x642ct.css +0 -1
  892. package/cjs/components/Select/ui/SelectGroup/SelectGroup.css +0 -35
  893. package/cjs/components/Select/ui/SelectGroup/SelectGroup.js +0 -41
  894. package/cjs/components/Select/ui/SelectGroup/SelectGroup.js.map +0 -1
  895. package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles.js +0 -12
  896. package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles.js.map +0 -1
  897. package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles_mktu7e.css +0 -1
  898. package/cjs/components/Select/ui/SelectGroup/variations/_size/base.js +0 -9
  899. package/cjs/components/Select/ui/SelectGroup/variations/_size/base.js.map +0 -1
  900. package/cjs/components/Select/ui/SelectGroup/variations/_size/base_x642ct.css +0 -1
  901. package/cjs/components/Select/ui/SelectGroup/variations/_view/base.js +0 -9
  902. package/cjs/components/Select/ui/SelectGroup/variations/_view/base.js.map +0 -1
  903. package/cjs/components/Select/ui/SelectGroup/variations/_view/base_x642ct.css +0 -1
  904. package/cjs/components/Select/ui/SelectHeader/SelectHeader.css +0 -35
  905. package/cjs/components/Select/ui/SelectHeader/SelectHeader.js +0 -41
  906. package/cjs/components/Select/ui/SelectHeader/SelectHeader.js.map +0 -1
  907. package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles.js +0 -12
  908. package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles.js.map +0 -1
  909. package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles_24gqog.css +0 -1
  910. package/cjs/components/Select/ui/SelectHeader/variations/_size/base.js +0 -9
  911. package/cjs/components/Select/ui/SelectHeader/variations/_size/base.js.map +0 -1
  912. package/cjs/components/Select/ui/SelectHeader/variations/_size/base_x642ct.css +0 -1
  913. package/cjs/components/Select/ui/SelectHeader/variations/_view/base.js +0 -9
  914. package/cjs/components/Select/ui/SelectHeader/variations/_view/base.js.map +0 -1
  915. package/cjs/components/Select/ui/SelectHeader/variations/_view/base_x642ct.css +0 -1
  916. package/cjs/components/Select/ui/SelectItem/SelectItem.css +0 -35
  917. package/cjs/components/Select/ui/SelectItem/SelectItem.js +0 -40
  918. package/cjs/components/Select/ui/SelectItem/SelectItem.js.map +0 -1
  919. package/cjs/components/Select/ui/SelectItem/SelectItem.styles.js +0 -19
  920. package/cjs/components/Select/ui/SelectItem/SelectItem.styles.js.map +0 -1
  921. package/cjs/components/Select/ui/SelectItem/SelectItem.styles_vk39mp.css +0 -1
  922. package/cjs/components/Select/ui/SelectItem/variations/_size/base.js +0 -9
  923. package/cjs/components/Select/ui/SelectItem/variations/_size/base.js.map +0 -1
  924. package/cjs/components/Select/ui/SelectItem/variations/_size/base_x642ct.css +0 -1
  925. package/cjs/components/Select/ui/SelectItem/variations/_view/base.js +0 -9
  926. package/cjs/components/Select/ui/SelectItem/variations/_view/base.js.map +0 -1
  927. package/cjs/components/Select/ui/SelectItem/variations/_view/base_x642ct.css +0 -1
  928. package/cjs/components/Select/ui/SelectTarget/SelectTarget.css +0 -54
  929. package/cjs/components/Select/ui/SelectTarget/SelectTarget.js +0 -148
  930. package/cjs/components/Select/ui/SelectTarget/SelectTarget.js.map +0 -1
  931. package/cjs/components/Select/ui/SelectTarget/SelectTarget.styles.js +0 -112
  932. package/cjs/components/Select/ui/SelectTarget/SelectTarget.styles.js.map +0 -1
  933. package/cjs/components/Select/ui/SelectTarget/SelectTarget.styles_hb1tns.css +0 -6
  934. package/cjs/components/Select/utils/index.js +0 -112
  935. package/cjs/components/Select/utils/index.js.map +0 -1
  936. package/cjs/components/Select/variations/_target/base.js +0 -9
  937. package/cjs/components/Select/variations/_target/base.js.map +0 -1
  938. package/cjs/components/Select/variations/_target/base_x642ct.css +0 -1
  939. package/cjs/components/TextField/variations/_read-only/base_1vu13zn.css +0 -1
  940. package/cjs/components/TextField/variations/_size/base_orwx1f.css +0 -1
  941. package/cjs/components/TextField/variations/_view/base_18ea6z7.css +0 -1
  942. package/cjs/components/_Icon/Icon.assets/DisclosureDownFill.js +0 -23
  943. package/cjs/components/_Icon/Icon.assets/DisclosureDownFill.js.map +0 -1
  944. package/cjs/components/_Icon/Icons/IconDisclosureDownFill.js +0 -23
  945. package/cjs/components/_Icon/Icons/IconDisclosureDownFill.js.map +0 -1
  946. package/cjs/utils/datejs.js +0 -12
  947. package/cjs/utils/datejs.js.map +0 -1
  948. package/cjs/utils/getPopoverPlacement.js +0 -23
  949. package/cjs/utils/getPopoverPlacement.js.map +0 -1
  950. package/es/components/Calendar/CalendarBase/CalendarBase.styles_1m6uih1.css +0 -2
  951. package/es/components/Calendar/CalendarDouble/CalendarDouble.styles_e9ada0.css +0 -3
  952. package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_fznpy7.css +0 -4
  953. package/es/components/Calendar/ui/CalendarDays/CalendarDays.styles_1oq8sud.css +0 -3
  954. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_gnorek.css +0 -8
  955. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_wmlwil.css +0 -4
  956. package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles_f2aje6.css +0 -4
  957. package/es/components/DatePicker/DatePicker.tokens.js +0 -184
  958. package/es/components/DatePicker/DatePicker.tokens.js.map +0 -1
  959. package/es/components/DatePicker/DatePickerBase.styles.js +0 -26
  960. package/es/components/DatePicker/DatePickerBase.styles.js.map +0 -1
  961. package/es/components/DatePicker/DatePickerBase.styles_1thp2xv.css +0 -1
  962. package/es/components/DatePicker/RangeDate/RangeDate.css +0 -152
  963. package/es/components/DatePicker/RangeDate/RangeDate.js +0 -280
  964. package/es/components/DatePicker/RangeDate/RangeDate.js.map +0 -1
  965. package/es/components/DatePicker/RangeDate/RangeDate.styles.js +0 -43
  966. package/es/components/DatePicker/RangeDate/RangeDate.styles.js.map +0 -1
  967. package/es/components/DatePicker/RangeDate/RangeDate.styles_ww61h9.css +0 -5
  968. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +0 -144
  969. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +0 -79
  970. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +0 -1
  971. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +0 -37
  972. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js.map +0 -1
  973. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_wp3vfj.css +0 -2
  974. package/es/components/DatePicker/RangeDate/variations/_disabled/base.js +0 -5
  975. package/es/components/DatePicker/RangeDate/variations/_disabled/base.js.map +0 -1
  976. package/es/components/DatePicker/RangeDate/variations/_disabled/base_tl4jc7.css +0 -1
  977. package/es/components/DatePicker/RangeDate/variations/_readonly/base.js +0 -5
  978. package/es/components/DatePicker/RangeDate/variations/_readonly/base.js.map +0 -1
  979. package/es/components/DatePicker/RangeDate/variations/_readonly/base_f58pkk.css +0 -1
  980. package/es/components/DatePicker/RangeDate/variations/_size/base.js +0 -5
  981. package/es/components/DatePicker/RangeDate/variations/_size/base.js.map +0 -1
  982. package/es/components/DatePicker/RangeDate/variations/_size/base_1911nyw.css +0 -1
  983. package/es/components/DatePicker/RangeDate/variations/_view/base.js +0 -5
  984. package/es/components/DatePicker/RangeDate/variations/_view/base.js.map +0 -1
  985. package/es/components/DatePicker/RangeDate/variations/_view/base_11yn9y8.css +0 -1
  986. package/es/components/DatePicker/SingleDate/SingleDate.css +0 -134
  987. package/es/components/DatePicker/SingleDate/SingleDate.js +0 -178
  988. package/es/components/DatePicker/SingleDate/SingleDate.js.map +0 -1
  989. package/es/components/DatePicker/SingleDate/SingleDate.styles.js +0 -43
  990. package/es/components/DatePicker/SingleDate/SingleDate.styles.js.map +0 -1
  991. package/es/components/DatePicker/SingleDate/SingleDate.styles_18b5qkz.css +0 -5
  992. package/es/components/DatePicker/SingleDate/variations/_disabled/base.js +0 -5
  993. package/es/components/DatePicker/SingleDate/variations/_disabled/base.js.map +0 -1
  994. package/es/components/DatePicker/SingleDate/variations/_disabled/base_1rfgfsz.css +0 -1
  995. package/es/components/DatePicker/SingleDate/variations/_readonly/base.js +0 -5
  996. package/es/components/DatePicker/SingleDate/variations/_readonly/base.js.map +0 -1
  997. package/es/components/DatePicker/SingleDate/variations/_readonly/base_1jucwp.css +0 -1
  998. package/es/components/DatePicker/SingleDate/variations/_size/base.js +0 -5
  999. package/es/components/DatePicker/SingleDate/variations/_size/base.js.map +0 -1
  1000. package/es/components/DatePicker/SingleDate/variations/_size/base_lf7y25.css +0 -1
  1001. package/es/components/DatePicker/SingleDate/variations/_view/base.js +0 -5
  1002. package/es/components/DatePicker/SingleDate/variations/_view/base.js.map +0 -1
  1003. package/es/components/DatePicker/SingleDate/variations/_view/base_15vaheb.css +0 -1
  1004. package/es/components/DatePicker/hooks/useDatePicker.js +0 -75
  1005. package/es/components/DatePicker/hooks/useDatePicker.js.map +0 -1
  1006. package/es/components/DatePicker/utils/dateHelper.js +0 -76
  1007. package/es/components/DatePicker/utils/dateHelper.js.map +0 -1
  1008. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_rtehle.css +0 -4
  1009. package/es/components/Range/Range.styles_9rort8.css +0 -8
  1010. package/es/components/Select/Select.styles_1q3i6gw.css +0 -4
  1011. package/es/components/Select/hooks/useKeyNavigation.js.map +0 -1
  1012. package/es/components/Select/ui/SelectChip/SelectChip.css +0 -21
  1013. package/es/components/Select/ui/SelectChip/SelectChip.js +0 -35
  1014. package/es/components/Select/ui/SelectChip/SelectChip.js.map +0 -1
  1015. package/es/components/Select/ui/SelectChip/SelectChip.styles.js +0 -22
  1016. package/es/components/Select/ui/SelectChip/SelectChip.styles.js.map +0 -1
  1017. package/es/components/Select/ui/SelectChip/SelectChip.styles_1u4uw04.css +0 -1
  1018. package/es/components/Select/ui/SelectDivider/SelectDivider.css +0 -35
  1019. package/es/components/Select/ui/SelectDivider/SelectDivider.js +0 -36
  1020. package/es/components/Select/ui/SelectDivider/SelectDivider.js.map +0 -1
  1021. package/es/components/Select/ui/SelectDivider/SelectDivider.styles.js +0 -7
  1022. package/es/components/Select/ui/SelectDivider/SelectDivider.styles.js.map +0 -1
  1023. package/es/components/Select/ui/SelectDivider/SelectDivider.styles_673hj6.css +0 -1
  1024. package/es/components/Select/ui/SelectDivider/variations/_size/base.js +0 -5
  1025. package/es/components/Select/ui/SelectDivider/variations/_size/base.js.map +0 -1
  1026. package/es/components/Select/ui/SelectDivider/variations/_size/base_x642ct.css +0 -1
  1027. package/es/components/Select/ui/SelectDivider/variations/_view/base.js +0 -5
  1028. package/es/components/Select/ui/SelectDivider/variations/_view/base.js.map +0 -1
  1029. package/es/components/Select/ui/SelectDivider/variations/_view/base_x642ct.css +0 -1
  1030. package/es/components/Select/ui/SelectFooter/SelectFooter.css +0 -35
  1031. package/es/components/Select/ui/SelectFooter/SelectFooter.js +0 -36
  1032. package/es/components/Select/ui/SelectFooter/SelectFooter.js.map +0 -1
  1033. package/es/components/Select/ui/SelectFooter/SelectFooter.styles.js +0 -7
  1034. package/es/components/Select/ui/SelectFooter/SelectFooter.styles.js.map +0 -1
  1035. package/es/components/Select/ui/SelectFooter/SelectFooter.styles_11hk6tt.css +0 -1
  1036. package/es/components/Select/ui/SelectFooter/variations/_size/base.js +0 -5
  1037. package/es/components/Select/ui/SelectFooter/variations/_size/base.js.map +0 -1
  1038. package/es/components/Select/ui/SelectFooter/variations/_size/base_x642ct.css +0 -1
  1039. package/es/components/Select/ui/SelectFooter/variations/_view/base.js +0 -5
  1040. package/es/components/Select/ui/SelectFooter/variations/_view/base.js.map +0 -1
  1041. package/es/components/Select/ui/SelectFooter/variations/_view/base_x642ct.css +0 -1
  1042. package/es/components/Select/ui/SelectGroup/SelectGroup.css +0 -35
  1043. package/es/components/Select/ui/SelectGroup/SelectGroup.js +0 -36
  1044. package/es/components/Select/ui/SelectGroup/SelectGroup.js.map +0 -1
  1045. package/es/components/Select/ui/SelectGroup/SelectGroup.styles.js +0 -7
  1046. package/es/components/Select/ui/SelectGroup/SelectGroup.styles.js.map +0 -1
  1047. package/es/components/Select/ui/SelectGroup/SelectGroup.styles_mktu7e.css +0 -1
  1048. package/es/components/Select/ui/SelectGroup/variations/_size/base.js +0 -5
  1049. package/es/components/Select/ui/SelectGroup/variations/_size/base.js.map +0 -1
  1050. package/es/components/Select/ui/SelectGroup/variations/_size/base_x642ct.css +0 -1
  1051. package/es/components/Select/ui/SelectGroup/variations/_view/base.js +0 -5
  1052. package/es/components/Select/ui/SelectGroup/variations/_view/base.js.map +0 -1
  1053. package/es/components/Select/ui/SelectGroup/variations/_view/base_x642ct.css +0 -1
  1054. package/es/components/Select/ui/SelectHeader/SelectHeader.css +0 -35
  1055. package/es/components/Select/ui/SelectHeader/SelectHeader.js +0 -36
  1056. package/es/components/Select/ui/SelectHeader/SelectHeader.js.map +0 -1
  1057. package/es/components/Select/ui/SelectHeader/SelectHeader.styles.js +0 -7
  1058. package/es/components/Select/ui/SelectHeader/SelectHeader.styles.js.map +0 -1
  1059. package/es/components/Select/ui/SelectHeader/SelectHeader.styles_24gqog.css +0 -1
  1060. package/es/components/Select/ui/SelectHeader/variations/_size/base.js +0 -5
  1061. package/es/components/Select/ui/SelectHeader/variations/_size/base.js.map +0 -1
  1062. package/es/components/Select/ui/SelectHeader/variations/_size/base_x642ct.css +0 -1
  1063. package/es/components/Select/ui/SelectHeader/variations/_view/base.js +0 -5
  1064. package/es/components/Select/ui/SelectHeader/variations/_view/base.js.map +0 -1
  1065. package/es/components/Select/ui/SelectHeader/variations/_view/base_x642ct.css +0 -1
  1066. package/es/components/Select/ui/SelectItem/SelectItem.css +0 -35
  1067. package/es/components/Select/ui/SelectItem/SelectItem.js +0 -35
  1068. package/es/components/Select/ui/SelectItem/SelectItem.js.map +0 -1
  1069. package/es/components/Select/ui/SelectItem/SelectItem.styles.js +0 -15
  1070. package/es/components/Select/ui/SelectItem/SelectItem.styles.js.map +0 -1
  1071. package/es/components/Select/ui/SelectItem/SelectItem.styles_vk39mp.css +0 -1
  1072. package/es/components/Select/ui/SelectItem/variations/_size/base.js +0 -5
  1073. package/es/components/Select/ui/SelectItem/variations/_size/base.js.map +0 -1
  1074. package/es/components/Select/ui/SelectItem/variations/_size/base_x642ct.css +0 -1
  1075. package/es/components/Select/ui/SelectItem/variations/_view/base.js +0 -5
  1076. package/es/components/Select/ui/SelectItem/variations/_view/base.js.map +0 -1
  1077. package/es/components/Select/ui/SelectItem/variations/_view/base_x642ct.css +0 -1
  1078. package/es/components/Select/ui/SelectTarget/SelectTarget.css +0 -54
  1079. package/es/components/Select/ui/SelectTarget/SelectTarget.js +0 -144
  1080. package/es/components/Select/ui/SelectTarget/SelectTarget.js.map +0 -1
  1081. package/es/components/Select/ui/SelectTarget/SelectTarget.styles.js +0 -103
  1082. package/es/components/Select/ui/SelectTarget/SelectTarget.styles.js.map +0 -1
  1083. package/es/components/Select/ui/SelectTarget/SelectTarget.styles_hb1tns.css +0 -6
  1084. package/es/components/Select/utils/index.js +0 -105
  1085. package/es/components/Select/utils/index.js.map +0 -1
  1086. package/es/components/Select/variations/_target/base.js +0 -5
  1087. package/es/components/Select/variations/_target/base.js.map +0 -1
  1088. package/es/components/Select/variations/_target/base_x642ct.css +0 -1
  1089. package/es/components/TextField/variations/_read-only/base_1vu13zn.css +0 -1
  1090. package/es/components/TextField/variations/_size/base_orwx1f.css +0 -1
  1091. package/es/components/TextField/variations/_view/base_18ea6z7.css +0 -1
  1092. package/es/components/_Icon/Icon.assets/DisclosureDownFill.js +0 -19
  1093. package/es/components/_Icon/Icon.assets/DisclosureDownFill.js.map +0 -1
  1094. package/es/components/_Icon/Icons/IconDisclosureDownFill.js +0 -19
  1095. package/es/components/_Icon/Icons/IconDisclosureDownFill.js.map +0 -1
  1096. package/es/utils/datejs.js +0 -8
  1097. package/es/utils/datejs.js.map +0 -1
  1098. package/es/utils/getPopoverPlacement.js +0 -18
  1099. package/es/utils/getPopoverPlacement.js.map +0 -1
  1100. package/styled-components/cjs/components/Calendar/mixins/active.js +0 -12
  1101. package/styled-components/cjs/components/Calendar/mixins/flex.js +0 -8
  1102. package/styled-components/cjs/components/Calendar/mixins/selected.js +0 -24
  1103. package/styled-components/cjs/components/DatePicker/DatePicker.template-doc.mdx +0 -150
  1104. package/styled-components/cjs/components/DatePicker/DatePicker.tokens.js +0 -187
  1105. package/styled-components/cjs/components/DatePicker/DatePickerBase.styles.js +0 -19
  1106. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDate.js +0 -293
  1107. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDate.styles.js +0 -33
  1108. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +0 -81
  1109. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +0 -26
  1110. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_disabled/base.js +0 -9
  1111. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_disabled/tokens.json +0 -0
  1112. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_readonly/base.js +0 -10
  1113. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_readonly/tokens.json +0 -4
  1114. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_size/base.js +0 -10
  1115. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_size/tokens.json +0 -0
  1116. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_view/base.js +0 -10
  1117. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_view/tokens.json +0 -0
  1118. package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.js +0 -190
  1119. package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +0 -33
  1120. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_disabled/base.js +0 -9
  1121. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_disabled/tokens.json +0 -4
  1122. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_readonly/base.js +0 -10
  1123. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_readonly/tokens.json +0 -4
  1124. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_size/base.js +0 -10
  1125. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_size/tokens.json +0 -16
  1126. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_view/base.js +0 -10
  1127. package/styled-components/cjs/components/DatePicker/SingleDate/variations/_view/tokens.json +0 -1
  1128. package/styled-components/cjs/components/DatePicker/hooks/useDatePicker.js +0 -77
  1129. package/styled-components/cjs/components/DatePicker/index.js +0 -44
  1130. package/styled-components/cjs/components/DatePicker/utils/dateHelper.js +0 -78
  1131. package/styled-components/cjs/components/Select/Select.template-doc.mdx +0 -115
  1132. package/styled-components/cjs/components/Select/hooks/index.js +0 -12
  1133. package/styled-components/cjs/components/Select/ui/SelectChip/SelectChip.js +0 -40
  1134. package/styled-components/cjs/components/Select/ui/SelectChip/SelectChip.styles.js +0 -25
  1135. package/styled-components/cjs/components/Select/ui/SelectDivider/SelectDivider.js +0 -29
  1136. package/styled-components/cjs/components/Select/ui/SelectDivider/SelectDivider.styles.js +0 -12
  1137. package/styled-components/cjs/components/Select/ui/SelectDivider/variations/_size/base.js +0 -8
  1138. package/styled-components/cjs/components/Select/ui/SelectDivider/variations/_size/tokens.json +0 -8
  1139. package/styled-components/cjs/components/Select/ui/SelectDivider/variations/_view/base.js +0 -8
  1140. package/styled-components/cjs/components/Select/ui/SelectDivider/variations/_view/tokens.json +0 -1
  1141. package/styled-components/cjs/components/Select/ui/SelectFooter/SelectFooter.js +0 -29
  1142. package/styled-components/cjs/components/Select/ui/SelectFooter/SelectFooter.styles.js +0 -12
  1143. package/styled-components/cjs/components/Select/ui/SelectFooter/variations/_size/base.js +0 -8
  1144. package/styled-components/cjs/components/Select/ui/SelectFooter/variations/_size/tokens.json +0 -12
  1145. package/styled-components/cjs/components/Select/ui/SelectFooter/variations/_view/base.js +0 -8
  1146. package/styled-components/cjs/components/Select/ui/SelectFooter/variations/_view/tokens.json +0 -9
  1147. package/styled-components/cjs/components/Select/ui/SelectGroup/SelectGroup.js +0 -29
  1148. package/styled-components/cjs/components/Select/ui/SelectGroup/SelectGroup.styles.js +0 -12
  1149. package/styled-components/cjs/components/Select/ui/SelectGroup/SelectGroup.type.js +0 -5
  1150. package/styled-components/cjs/components/Select/ui/SelectGroup/variations/_size/base.js +0 -8
  1151. package/styled-components/cjs/components/Select/ui/SelectGroup/variations/_size/tokens.json +0 -20
  1152. package/styled-components/cjs/components/Select/ui/SelectGroup/variations/_view/base.js +0 -8
  1153. package/styled-components/cjs/components/Select/ui/SelectGroup/variations/_view/tokens.json +0 -10
  1154. package/styled-components/cjs/components/Select/ui/SelectHeader/SelectHeader.js +0 -29
  1155. package/styled-components/cjs/components/Select/ui/SelectHeader/SelectHeader.styles.js +0 -12
  1156. package/styled-components/cjs/components/Select/ui/SelectHeader/SelectHeader.type.js +0 -5
  1157. package/styled-components/cjs/components/Select/ui/SelectHeader/variations/_size/base.js +0 -8
  1158. package/styled-components/cjs/components/Select/ui/SelectHeader/variations/_size/tokens.json +0 -12
  1159. package/styled-components/cjs/components/Select/ui/SelectHeader/variations/_view/base.js +0 -8
  1160. package/styled-components/cjs/components/Select/ui/SelectHeader/variations/_view/tokens.json +0 -9
  1161. package/styled-components/cjs/components/Select/ui/SelectItem/SelectItem.js +0 -29
  1162. package/styled-components/cjs/components/Select/ui/SelectItem/SelectItem.styles.js +0 -13
  1163. package/styled-components/cjs/components/Select/ui/SelectItem/SelectItem.type.js +0 -5
  1164. package/styled-components/cjs/components/Select/ui/SelectItem/variations/_size/base.js +0 -8
  1165. package/styled-components/cjs/components/Select/ui/SelectItem/variations/_size/tokens.json +0 -19
  1166. package/styled-components/cjs/components/Select/ui/SelectItem/variations/_view/base.js +0 -8
  1167. package/styled-components/cjs/components/Select/ui/SelectItem/variations/_view/tokens.json +0 -9
  1168. package/styled-components/cjs/components/Select/ui/SelectTarget/SelectTarget.js +0 -157
  1169. package/styled-components/cjs/components/Select/ui/SelectTarget/SelectTarget.styles.js +0 -69
  1170. package/styled-components/cjs/components/Select/ui/SelectTarget/SelectTarget.types.js +0 -5
  1171. package/styled-components/cjs/components/Select/ui/index.js +0 -77
  1172. package/styled-components/cjs/components/Select/variations/_target/base.js +0 -8
  1173. package/styled-components/cjs/components/Select/variations/_target/tokens.json +0 -1
  1174. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureDownFill.js +0 -22
  1175. package/styled-components/cjs/components/_Icon/Icons/IconDisclosureDownFill.js +0 -22
  1176. package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.config.js +0 -31
  1177. package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.js +0 -13
  1178. package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +0 -257
  1179. package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.config.js +0 -31
  1180. package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.js +0 -13
  1181. package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +0 -257
  1182. package/styled-components/cjs/utils/datejs.js +0 -11
  1183. package/styled-components/cjs/utils/getPopoverPlacement.js +0 -21
  1184. package/styled-components/es/components/Calendar/mixins/active.js +0 -6
  1185. package/styled-components/es/components/Calendar/mixins/flex.js +0 -2
  1186. package/styled-components/es/components/Calendar/mixins/selected.js +0 -18
  1187. package/styled-components/es/components/DatePicker/DatePicker.template-doc.mdx +0 -150
  1188. package/styled-components/es/components/DatePicker/DatePicker.tokens.js +0 -181
  1189. package/styled-components/es/components/DatePicker/DatePickerBase.styles.js +0 -12
  1190. package/styled-components/es/components/DatePicker/RangeDate/RangeDate.js +0 -284
  1191. package/styled-components/es/components/DatePicker/RangeDate/RangeDate.styles.js +0 -25
  1192. package/styled-components/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +0 -74
  1193. package/styled-components/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +0 -19
  1194. package/styled-components/es/components/DatePicker/RangeDate/variations/_disabled/base.js +0 -3
  1195. package/styled-components/es/components/DatePicker/RangeDate/variations/_disabled/tokens.json +0 -0
  1196. package/styled-components/es/components/DatePicker/RangeDate/variations/_readonly/base.js +0 -4
  1197. package/styled-components/es/components/DatePicker/RangeDate/variations/_readonly/tokens.json +0 -4
  1198. package/styled-components/es/components/DatePicker/RangeDate/variations/_size/base.js +0 -4
  1199. package/styled-components/es/components/DatePicker/RangeDate/variations/_size/tokens.json +0 -0
  1200. package/styled-components/es/components/DatePicker/RangeDate/variations/_view/base.js +0 -4
  1201. package/styled-components/es/components/DatePicker/RangeDate/variations/_view/tokens.json +0 -0
  1202. package/styled-components/es/components/DatePicker/SingleDate/SingleDate.js +0 -181
  1203. package/styled-components/es/components/DatePicker/SingleDate/SingleDate.styles.js +0 -25
  1204. package/styled-components/es/components/DatePicker/SingleDate/variations/_disabled/base.js +0 -3
  1205. package/styled-components/es/components/DatePicker/SingleDate/variations/_disabled/tokens.json +0 -4
  1206. package/styled-components/es/components/DatePicker/SingleDate/variations/_readonly/base.js +0 -4
  1207. package/styled-components/es/components/DatePicker/SingleDate/variations/_readonly/tokens.json +0 -4
  1208. package/styled-components/es/components/DatePicker/SingleDate/variations/_size/base.js +0 -4
  1209. package/styled-components/es/components/DatePicker/SingleDate/variations/_size/tokens.json +0 -16
  1210. package/styled-components/es/components/DatePicker/SingleDate/variations/_view/base.js +0 -4
  1211. package/styled-components/es/components/DatePicker/SingleDate/variations/_view/tokens.json +0 -1
  1212. package/styled-components/es/components/DatePicker/hooks/useDatePicker.js +0 -71
  1213. package/styled-components/es/components/DatePicker/index.js +0 -3
  1214. package/styled-components/es/components/DatePicker/utils/dateHelper.js +0 -72
  1215. package/styled-components/es/components/Select/Select.template-doc.mdx +0 -115
  1216. package/styled-components/es/components/Select/hooks/index.js +0 -1
  1217. package/styled-components/es/components/Select/ui/SelectChip/SelectChip.js +0 -31
  1218. package/styled-components/es/components/Select/ui/SelectChip/SelectChip.styles.js +0 -19
  1219. package/styled-components/es/components/Select/ui/SelectDivider/SelectDivider.js +0 -23
  1220. package/styled-components/es/components/Select/ui/SelectDivider/SelectDivider.styles.js +0 -7
  1221. package/styled-components/es/components/Select/ui/SelectDivider/variations/_size/base.js +0 -2
  1222. package/styled-components/es/components/Select/ui/SelectDivider/variations/_size/tokens.json +0 -8
  1223. package/styled-components/es/components/Select/ui/SelectDivider/variations/_view/base.js +0 -2
  1224. package/styled-components/es/components/Select/ui/SelectDivider/variations/_view/tokens.json +0 -1
  1225. package/styled-components/es/components/Select/ui/SelectFooter/SelectFooter.js +0 -23
  1226. package/styled-components/es/components/Select/ui/SelectFooter/SelectFooter.styles.js +0 -7
  1227. package/styled-components/es/components/Select/ui/SelectFooter/variations/_size/base.js +0 -2
  1228. package/styled-components/es/components/Select/ui/SelectFooter/variations/_size/tokens.json +0 -12
  1229. package/styled-components/es/components/Select/ui/SelectFooter/variations/_view/base.js +0 -2
  1230. package/styled-components/es/components/Select/ui/SelectFooter/variations/_view/tokens.json +0 -9
  1231. package/styled-components/es/components/Select/ui/SelectGroup/SelectGroup.js +0 -23
  1232. package/styled-components/es/components/Select/ui/SelectGroup/SelectGroup.styles.js +0 -7
  1233. package/styled-components/es/components/Select/ui/SelectGroup/SelectGroup.type.js +0 -1
  1234. package/styled-components/es/components/Select/ui/SelectGroup/variations/_size/base.js +0 -2
  1235. package/styled-components/es/components/Select/ui/SelectGroup/variations/_size/tokens.json +0 -20
  1236. package/styled-components/es/components/Select/ui/SelectGroup/variations/_view/base.js +0 -2
  1237. package/styled-components/es/components/Select/ui/SelectGroup/variations/_view/tokens.json +0 -10
  1238. package/styled-components/es/components/Select/ui/SelectHeader/SelectHeader.js +0 -23
  1239. package/styled-components/es/components/Select/ui/SelectHeader/SelectHeader.styles.js +0 -7
  1240. package/styled-components/es/components/Select/ui/SelectHeader/SelectHeader.type.js +0 -1
  1241. package/styled-components/es/components/Select/ui/SelectHeader/variations/_size/base.js +0 -2
  1242. package/styled-components/es/components/Select/ui/SelectHeader/variations/_size/tokens.json +0 -12
  1243. package/styled-components/es/components/Select/ui/SelectHeader/variations/_view/base.js +0 -2
  1244. package/styled-components/es/components/Select/ui/SelectHeader/variations/_view/tokens.json +0 -9
  1245. package/styled-components/es/components/Select/ui/SelectItem/SelectItem.js +0 -23
  1246. package/styled-components/es/components/Select/ui/SelectItem/SelectItem.styles.js +0 -8
  1247. package/styled-components/es/components/Select/ui/SelectItem/SelectItem.type.js +0 -1
  1248. package/styled-components/es/components/Select/ui/SelectItem/variations/_size/base.js +0 -2
  1249. package/styled-components/es/components/Select/ui/SelectItem/variations/_size/tokens.json +0 -19
  1250. package/styled-components/es/components/Select/ui/SelectItem/variations/_view/base.js +0 -2
  1251. package/styled-components/es/components/Select/ui/SelectItem/variations/_view/tokens.json +0 -9
  1252. package/styled-components/es/components/Select/ui/SelectTarget/SelectTarget.js +0 -148
  1253. package/styled-components/es/components/Select/ui/SelectTarget/SelectTarget.styles.js +0 -62
  1254. package/styled-components/es/components/Select/ui/SelectTarget/SelectTarget.types.js +0 -1
  1255. package/styled-components/es/components/Select/ui/index.js +0 -6
  1256. package/styled-components/es/components/Select/variations/_target/base.js +0 -2
  1257. package/styled-components/es/components/Select/variations/_target/tokens.json +0 -1
  1258. package/styled-components/es/components/_Icon/Icon.assets/DisclosureDownFill.js +0 -15
  1259. package/styled-components/es/components/_Icon/Icons/IconDisclosureDownFill.js +0 -15
  1260. package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.config.js +0 -25
  1261. package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.js +0 -7
  1262. package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +0 -257
  1263. package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.config.js +0 -25
  1264. package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.js +0 -7
  1265. package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +0 -257
  1266. package/styled-components/es/utils/datejs.js +0 -4
  1267. package/styled-components/es/utils/getPopoverPlacement.js +0 -15
  1268. package/types/components/Calendar/mixins/active.d.ts +0 -17
  1269. package/types/components/Calendar/mixins/active.d.ts.map +0 -1
  1270. package/types/components/Calendar/mixins/flex.d.ts +0 -3
  1271. package/types/components/Calendar/mixins/flex.d.ts.map +0 -1
  1272. package/types/components/Calendar/mixins/selected.d.ts +0 -40
  1273. package/types/components/Calendar/mixins/selected.d.ts.map +0 -1
  1274. package/types/components/DatePicker/DatePicker.tokens.d.ts +0 -182
  1275. package/types/components/DatePicker/DatePicker.tokens.d.ts.map +0 -1
  1276. package/types/components/DatePicker/DatePickerBase.styles.d.ts +0 -8
  1277. package/types/components/DatePicker/DatePickerBase.styles.d.ts.map +0 -1
  1278. package/types/components/DatePicker/DatePickerBase.types.d.ts +0 -37
  1279. package/types/components/DatePicker/DatePickerBase.types.d.ts.map +0 -1
  1280. package/types/components/DatePicker/RangeDate/RangeDate.d.ts +0 -110
  1281. package/types/components/DatePicker/RangeDate/RangeDate.d.ts.map +0 -1
  1282. package/types/components/DatePicker/RangeDate/RangeDate.styles.d.ts +0 -115
  1283. package/types/components/DatePicker/RangeDate/RangeDate.styles.d.ts.map +0 -1
  1284. package/types/components/DatePicker/RangeDate/RangeDate.types.d.ts +0 -76
  1285. package/types/components/DatePicker/RangeDate/RangeDate.types.d.ts.map +0 -1
  1286. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.d.ts +0 -4
  1287. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.d.ts.map +0 -1
  1288. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.d.ts +0 -5
  1289. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.d.ts.map +0 -1
  1290. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.d.ts +0 -29
  1291. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.d.ts.map +0 -1
  1292. package/types/components/DatePicker/RangeDate/variations/_disabled/base.d.ts +0 -2
  1293. package/types/components/DatePicker/RangeDate/variations/_disabled/base.d.ts.map +0 -1
  1294. package/types/components/DatePicker/RangeDate/variations/_readonly/base.d.ts +0 -2
  1295. package/types/components/DatePicker/RangeDate/variations/_readonly/base.d.ts.map +0 -1
  1296. package/types/components/DatePicker/RangeDate/variations/_size/base.d.ts +0 -2
  1297. package/types/components/DatePicker/RangeDate/variations/_size/base.d.ts.map +0 -1
  1298. package/types/components/DatePicker/RangeDate/variations/_view/base.d.ts +0 -2
  1299. package/types/components/DatePicker/RangeDate/variations/_view/base.d.ts.map +0 -1
  1300. package/types/components/DatePicker/SingleDate/SingleDate.d.ts +0 -31
  1301. package/types/components/DatePicker/SingleDate/SingleDate.d.ts.map +0 -1
  1302. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts +0 -45
  1303. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +0 -1
  1304. package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts +0 -120
  1305. package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts.map +0 -1
  1306. package/types/components/DatePicker/SingleDate/variations/_disabled/base.d.ts +0 -2
  1307. package/types/components/DatePicker/SingleDate/variations/_disabled/base.d.ts.map +0 -1
  1308. package/types/components/DatePicker/SingleDate/variations/_readonly/base.d.ts +0 -2
  1309. package/types/components/DatePicker/SingleDate/variations/_readonly/base.d.ts.map +0 -1
  1310. package/types/components/DatePicker/SingleDate/variations/_size/base.d.ts +0 -2
  1311. package/types/components/DatePicker/SingleDate/variations/_size/base.d.ts.map +0 -1
  1312. package/types/components/DatePicker/SingleDate/variations/_view/base.d.ts +0 -2
  1313. package/types/components/DatePicker/SingleDate/variations/_view/base.d.ts.map +0 -1
  1314. package/types/components/DatePicker/hooks/useDatePicker.d.ts +0 -10
  1315. package/types/components/DatePicker/hooks/useDatePicker.d.ts.map +0 -1
  1316. package/types/components/DatePicker/index.d.ts +0 -6
  1317. package/types/components/DatePicker/index.d.ts.map +0 -1
  1318. package/types/components/DatePicker/utils/dateHelper.d.ts +0 -10
  1319. package/types/components/DatePicker/utils/dateHelper.d.ts.map +0 -1
  1320. package/types/components/Select/hooks/index.d.ts +0 -2
  1321. package/types/components/Select/hooks/index.d.ts.map +0 -1
  1322. package/types/components/Select/hooks/useKeyNavigation.d.ts.map +0 -1
  1323. package/types/components/Select/ui/SelectChip/SelectChip.d.ts +0 -7
  1324. package/types/components/Select/ui/SelectChip/SelectChip.d.ts.map +0 -1
  1325. package/types/components/Select/ui/SelectChip/SelectChip.styles.d.ts +0 -3
  1326. package/types/components/Select/ui/SelectChip/SelectChip.styles.d.ts.map +0 -1
  1327. package/types/components/Select/ui/SelectChip/SelectChip.types.d.ts +0 -37
  1328. package/types/components/Select/ui/SelectChip/SelectChip.types.d.ts.map +0 -1
  1329. package/types/components/Select/ui/SelectDivider/SelectDivider.d.ts +0 -29
  1330. package/types/components/Select/ui/SelectDivider/SelectDivider.d.ts.map +0 -1
  1331. package/types/components/Select/ui/SelectDivider/SelectDivider.styles.d.ts +0 -3
  1332. package/types/components/Select/ui/SelectDivider/SelectDivider.styles.d.ts.map +0 -1
  1333. package/types/components/Select/ui/SelectDivider/SelectDivider.types.d.ts +0 -3
  1334. package/types/components/Select/ui/SelectDivider/SelectDivider.types.d.ts.map +0 -1
  1335. package/types/components/Select/ui/SelectDivider/variations/_size/base.d.ts +0 -2
  1336. package/types/components/Select/ui/SelectDivider/variations/_size/base.d.ts.map +0 -1
  1337. package/types/components/Select/ui/SelectDivider/variations/_view/base.d.ts +0 -2
  1338. package/types/components/Select/ui/SelectDivider/variations/_view/base.d.ts.map +0 -1
  1339. package/types/components/Select/ui/SelectFooter/SelectFooter.d.ts +0 -29
  1340. package/types/components/Select/ui/SelectFooter/SelectFooter.d.ts.map +0 -1
  1341. package/types/components/Select/ui/SelectFooter/SelectFooter.styles.d.ts +0 -3
  1342. package/types/components/Select/ui/SelectFooter/SelectFooter.styles.d.ts.map +0 -1
  1343. package/types/components/Select/ui/SelectFooter/SelectFooter.type.d.ts +0 -3
  1344. package/types/components/Select/ui/SelectFooter/SelectFooter.type.d.ts.map +0 -1
  1345. package/types/components/Select/ui/SelectFooter/variations/_size/base.d.ts +0 -2
  1346. package/types/components/Select/ui/SelectFooter/variations/_size/base.d.ts.map +0 -1
  1347. package/types/components/Select/ui/SelectFooter/variations/_view/base.d.ts +0 -2
  1348. package/types/components/Select/ui/SelectFooter/variations/_view/base.d.ts.map +0 -1
  1349. package/types/components/Select/ui/SelectGroup/SelectGroup.d.ts +0 -37
  1350. package/types/components/Select/ui/SelectGroup/SelectGroup.d.ts.map +0 -1
  1351. package/types/components/Select/ui/SelectGroup/SelectGroup.styles.d.ts +0 -3
  1352. package/types/components/Select/ui/SelectGroup/SelectGroup.styles.d.ts.map +0 -1
  1353. package/types/components/Select/ui/SelectGroup/SelectGroup.type.d.ts +0 -3
  1354. package/types/components/Select/ui/SelectGroup/SelectGroup.type.d.ts.map +0 -1
  1355. package/types/components/Select/ui/SelectGroup/variations/_size/base.d.ts +0 -2
  1356. package/types/components/Select/ui/SelectGroup/variations/_size/base.d.ts.map +0 -1
  1357. package/types/components/Select/ui/SelectGroup/variations/_view/base.d.ts +0 -2
  1358. package/types/components/Select/ui/SelectGroup/variations/_view/base.d.ts.map +0 -1
  1359. package/types/components/Select/ui/SelectHeader/SelectHeader.d.ts +0 -29
  1360. package/types/components/Select/ui/SelectHeader/SelectHeader.d.ts.map +0 -1
  1361. package/types/components/Select/ui/SelectHeader/SelectHeader.styles.d.ts +0 -3
  1362. package/types/components/Select/ui/SelectHeader/SelectHeader.styles.d.ts.map +0 -1
  1363. package/types/components/Select/ui/SelectHeader/SelectHeader.type.d.ts +0 -3
  1364. package/types/components/Select/ui/SelectHeader/SelectHeader.type.d.ts.map +0 -1
  1365. package/types/components/Select/ui/SelectHeader/variations/_size/base.d.ts +0 -2
  1366. package/types/components/Select/ui/SelectHeader/variations/_size/base.d.ts.map +0 -1
  1367. package/types/components/Select/ui/SelectHeader/variations/_view/base.d.ts +0 -2
  1368. package/types/components/Select/ui/SelectHeader/variations/_view/base.d.ts.map +0 -1
  1369. package/types/components/Select/ui/SelectItem/SelectItem.d.ts +0 -53
  1370. package/types/components/Select/ui/SelectItem/SelectItem.d.ts.map +0 -1
  1371. package/types/components/Select/ui/SelectItem/SelectItem.styles.d.ts +0 -3
  1372. package/types/components/Select/ui/SelectItem/SelectItem.styles.d.ts.map +0 -1
  1373. package/types/components/Select/ui/SelectItem/SelectItem.type.d.ts +0 -3
  1374. package/types/components/Select/ui/SelectItem/SelectItem.type.d.ts.map +0 -1
  1375. package/types/components/Select/ui/SelectItem/variations/_size/base.d.ts +0 -2
  1376. package/types/components/Select/ui/SelectItem/variations/_size/base.d.ts.map +0 -1
  1377. package/types/components/Select/ui/SelectItem/variations/_view/base.d.ts +0 -2
  1378. package/types/components/Select/ui/SelectItem/variations/_view/base.d.ts.map +0 -1
  1379. package/types/components/Select/ui/SelectTarget/SelectTarget.d.ts +0 -7
  1380. package/types/components/Select/ui/SelectTarget/SelectTarget.d.ts.map +0 -1
  1381. package/types/components/Select/ui/SelectTarget/SelectTarget.styles.d.ts +0 -54
  1382. package/types/components/Select/ui/SelectTarget/SelectTarget.styles.d.ts.map +0 -1
  1383. package/types/components/Select/ui/SelectTarget/SelectTarget.types.d.ts +0 -60
  1384. package/types/components/Select/ui/SelectTarget/SelectTarget.types.d.ts.map +0 -1
  1385. package/types/components/Select/ui/index.d.ts +0 -7
  1386. package/types/components/Select/ui/index.d.ts.map +0 -1
  1387. package/types/components/Select/variations/_target/base.d.ts +0 -2
  1388. package/types/components/Select/variations/_target/base.d.ts.map +0 -1
  1389. package/types/components/_Icon/Icon.assets/DisclosureDownFill.d.ts +0 -4
  1390. package/types/components/_Icon/Icon.assets/DisclosureDownFill.d.ts.map +0 -1
  1391. package/types/components/_Icon/Icons/IconDisclosureDownFill.d.ts +0 -4
  1392. package/types/components/_Icon/Icons/IconDisclosureDownFill.d.ts.map +0 -1
  1393. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.config.d.ts +0 -24
  1394. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.config.d.ts.map +0 -1
  1395. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts +0 -75
  1396. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts.map +0 -1
  1397. package/types/examples/plasma_web/components/DatePicker/DatePicker.config.d.ts +0 -24
  1398. package/types/examples/plasma_web/components/DatePicker/DatePicker.config.d.ts.map +0 -1
  1399. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts +0 -75
  1400. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts.map +0 -1
  1401. package/types/utils/datejs.d.ts +0 -3
  1402. package/types/utils/datejs.d.ts.map +0 -1
  1403. package/types/utils/getPopoverPlacement.d.ts +0 -5
  1404. package/types/utils/getPopoverPlacement.d.ts.map +0 -1
  1405. /package/cjs/components/{Select → Combobox}/hooks/useKeyNavigation.js +0 -0
  1406. /package/es/components/{Select → Combobox}/hooks/useKeyNavigation.js +0 -0
  1407. /package/styled-components/cjs/components/{DatePicker/DatePickerBase.types.js → Combobox/Select.types.js} +0 -0
  1408. /package/styled-components/cjs/components/{Select → Combobox}/hooks/useKeyNavigation.js +0 -0
  1409. /package/styled-components/cjs/components/{DatePicker/RangeDate/RangeDate.types.js → Select/elements/Inner/Inner.type.js} +0 -0
  1410. /package/styled-components/cjs/components/{DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.js → Select/elements/Inner/elements/Item/Item.types.js} +0 -0
  1411. /package/styled-components/cjs/components/{DatePicker/SingleDate/SingleDate.types.js → Select/elements/SelectNotFoundContent/SelectNotFoundContent.types.js} +0 -0
  1412. /package/styled-components/cjs/components/Select/{ui/SelectChip/SelectChip.types.js → elements/Target/Target.types.js} +0 -0
  1413. /package/styled-components/cjs/components/Select/{ui/SelectDivider/SelectDivider.types.js → elements/Target/elements/Button/Button.types.js} +0 -0
  1414. /package/styled-components/cjs/components/Select/{ui/SelectFooter/SelectFooter.type.js → elements/Target/elements/Textfield/Textfield.types.js} +0 -0
  1415. /package/styled-components/es/components/{DatePicker/DatePickerBase.types.js → Combobox/Select.types.js} +0 -0
  1416. /package/styled-components/es/components/{Select → Combobox}/hooks/useKeyNavigation.js +0 -0
  1417. /package/styled-components/es/components/{DatePicker/RangeDate/RangeDate.types.js → Select/elements/Inner/Inner.type.js} +0 -0
  1418. /package/styled-components/es/components/{DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.js → Select/elements/Inner/elements/Item/Item.types.js} +0 -0
  1419. /package/styled-components/es/components/{DatePicker/SingleDate/SingleDate.types.js → Select/elements/SelectNotFoundContent/SelectNotFoundContent.types.js} +0 -0
  1420. /package/styled-components/es/components/Select/{ui/SelectChip/SelectChip.types.js → elements/Target/Target.types.js} +0 -0
  1421. /package/styled-components/es/components/Select/{ui/SelectDivider/SelectDivider.types.js → elements/Target/elements/Button/Button.types.js} +0 -0
  1422. /package/styled-components/es/components/Select/{ui/SelectFooter/SelectFooter.type.js → elements/Target/elements/Textfield/Textfield.types.js} +0 -0
  1423. /package/types/components/{Select → Combobox}/hooks/useKeyNavigation.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarHeader.styles.js","sources":["../../../../../src/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nimport { classes, tokens } from '../../Calendar.tokens';\nimport { component, mergeConfig } from '../../../../engines';\nimport { iconButtonConfig, iconButtonTokens } from '../../../IconButton';\nimport { flexCenter } from '../../mixins';\nimport { addFocus } from '../../../../mixins';\n\nconst mergedIconButtonConfig = mergeConfig(iconButtonConfig);\nconst IconButton = component(mergedIconButtonConfig);\n\nexport const StyledCalendarHeader = styled.div`\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: var(${tokens.calendarHeaderWrapperPadding});\n`;\n\nexport const StyledHeader = styled.button`\n border: none;\n background-color: transparent;\n padding: 0;\n outline: none;\n font-family: var(${tokens.calendarHeaderFontFamily});\n font-size: var(${tokens.calendarHeaderFontSize});\n font-style: var(${tokens.calendarHeaderFontStyle});\n font-weight: var(${tokens.calendarHeaderFontWeightBold});\n letter-spacing: var(${tokens.calendarHeaderFontLetterSpacing});\n line-height: var(${tokens.calendarHeaderFontLineHeight});\n padding: var(${tokens.calendarHeaderPadding});\n\n color: var(${tokens.calendarContentPrimaryColor});\n\n cursor: pointer;\n display: flex;\n gap: var(${tokens.calendarHeaderDateGap});\n justify-content: space-between;\n align-items: center;\n\n &:hover,\n &:active {\n color: var(${tokens.calendarContentSecondaryColor});\n }\n\n ${addFocus({\n outlineSize: '0.063rem',\n outlineOffset: '-0.125rem',\n outlineColor: `var(${tokens.calendarOutlineFocusColor})`,\n outlineRadius: '0.563rem',\n })};\n`;\n\nexport const StyledHeaderDate = styled.span`\n ${flexCenter};\n pointer-events: none;\n`;\n\nexport const StyledArrows = styled.div`\n display: flex;\n gap: var(${tokens.calendarHeaderArrowGap});\n padding: var(${tokens.calendarHeaderArrowPadding});\n`;\n\n// NOTE: переопределение токенов IconButton\nexport const StyledArrow = styled(IconButton)`\n ${iconButtonTokens.iconButtonColor}: var(${tokens.iconButtonColor});\n ${iconButtonTokens.iconButtonBackgroundColor}: var(${tokens.iconButtonBackgroundColor});\n ${iconButtonTokens.iconButtonColorHover}: var(${tokens.iconButtonColorHover});\n ${iconButtonTokens.iconButtonBackgroundColorHover}: var(${tokens.iconButtonBackgroundColorHover});\n ${iconButtonTokens.iconButtonColorActive}: var(${tokens.iconButtonColorActive});\n ${iconButtonTokens.iconButtonBackgroundColorActive}: var(${tokens.iconButtonBackgroundColorActive});\n ${iconButtonTokens.iconButtonHeight}: var(${tokens.iconButtonHeight});\n ${iconButtonTokens.iconButtonWidth}: var(${tokens.iconButtonWidth});\n ${iconButtonTokens.iconButtonPadding}: var(${tokens.iconButtonPadding});\n ${iconButtonTokens.iconButtonRadius}: var(${tokens.iconButtonRadius});\n ${iconButtonTokens.iconButtonFocusColor}: var(${tokens.iconButtonFocusColor});\n`;\n\nexport const StyledNavigation = styled.div`\n width: 100%;\n ${flexCenter};\n`;\n\nexport const StyledDoubleHeaderWrapper = styled.div`\n width: 100%;\n display: grid;\n grid-template-columns: var(${tokens.iconButtonWidth}) 1fr var(${tokens.iconButtonWidth});\n grid-template-areas: 'a b c';\n\n ${StyledArrow} {\n grid-area: a;\n }\n\n &.${classes.doubleHeaderLastDateWrapper} ${StyledArrow} {\n grid-area: c;\n }\n`;\n\nexport const StyledHeaderDouble = styled.h4`\n font-family: var(${tokens.calendarHeaderFontFamily});\n font-size: var(${tokens.calendarHeaderFontSize});\n font-style: var(${tokens.calendarHeaderFontStyle});\n font-weight: var(${tokens.calendarHeaderFontWeightBold});\n letter-spacing: var(${tokens.calendarHeaderFontLetterSpacing});\n line-height: var(${tokens.calendarHeaderFontLineHeight});\n\n grid-area: b;\n justify-self: center;\n cursor: pointer;\n display: flex;\n gap: var(${tokens.calendarHeaderDateGap});\n justify-content: space-between;\n align-items: center;\n margin: 0;\n\n ${String(flexCenter)};\n`;\n"],"names":["mergedIconButtonConfig","mergeConfig","iconButtonConfig","IconButton","component","StyledCalendarHeader","styled","name","class","propsAsIs","StyledHeader","StyledHeaderDate","StyledArrows","_exp16","StyledArrow","StyledNavigation","StyledDoubleHeaderWrapper","StyledHeaderDouble"],"mappings":";;;;;AAQA,IAAMA,sBAAsB,gBAAGC,WAAW,CAACC,gBAAgB,CAAC,CAAA;AAC5D,IAAMC,UAAU,gBAAGC,SAAS,CAACJ,sBAAsB,CAAC,CAAA;AAE7C,IAAMK,oBAAoB,gBAAGC,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,sBAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAKzC,EAAA;AAEM,IAAMC,YAAY,g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AA,IAAA,EAAA,oBAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAkBvC;;;;"}
1
+ {"version":3,"file":"CalendarHeader.styles.js","sources":["../../../../../src/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nimport { buttonFocus, flexCenter } from '../../mixins';\nimport { tokens } from '../../Calendar.tokens';\n\nexport const StyledCalendarHeader = styled.div`\n padding: 1rem 1.5rem 0;\n font-family: var(${tokens.calendarHeaderFontFamily});\n font-size: var(${tokens.calendarHeaderFontSize});\n font-style: var(${tokens.calendarHeaderFontStyle});\n font-weight: var(${tokens.calendarHeaderFontWeightBold});\n letter-spacing: var(${tokens.calendarHeaderFontLetterSpacing});\n line-height: var(${tokens.calendarHeaderFontLineHeight});\n\n display: flex;\n justify-content: space-between;\n align-items: center;\n`;\n\nexport const StyledHeader = styled(buttonFocus)`\n color: var(${tokens.calendarContentPrimaryColor});\n cursor: pointer;\n padding: 0.5rem 0;\n font-family: var(${tokens.calendarHeaderFontFamily});\n font-size: var(${tokens.calendarHeaderFontSize});\n font-style: var(${tokens.calendarHeaderFontStyle});\n font-weight: var(${tokens.calendarHeaderFontWeightBold});\n letter-spacing: var(${tokens.calendarHeaderFontLetterSpacing});\n line-height: var(${tokens.calendarHeaderFontLineHeight});\n\n display: flex;\n justify-content: space-between;\n align-items: center;\n`;\n\nexport const StyledHeaderDouble = styled.h4`\n font-family: var(${tokens.calendarHeaderFontFamily});\n font-size: var(${tokens.calendarHeaderFontSize});\n font-style: var(${tokens.calendarHeaderFontStyle});\n font-weight: var(${tokens.calendarHeaderFontWeightBold});\n letter-spacing: var(${tokens.calendarHeaderFontLetterSpacing});\n line-height: var(${tokens.calendarHeaderFontLineHeight});\n margin-top: 0;\n margin-bottom: 0;\n padding: 0.5rem 0;\n flex: 1;\n\n ${String(flexCenter)};\n\n &:first-of-type {\n margin-right: 3rem;\n }\n\n &:last-of-type {\n margin-left: 3rem;\n }\n`;\n\nexport const StyledArrows = styled.div`\n padding: 0.5rem 0;\n width: var(${tokens.calendarHeaderArrowContainerWidth});\n\n display: flex;\n justify-content: space-between;\n align-items: center;\n`;\n\nexport const StyledArrow = styled(buttonFocus)`\n display: flex;\n cursor: pointer;\n`;\n\nexport const StyledNavigation = styled.div`\n width: 100%;\n\n ${String(flexCenter)};\n`;\n"],"names":["StyledCalendarHeader","styled","name","class","propsAsIs","_exp7","buttonFocus","StyledHeader","StyledHeaderDouble","StyledArrows","_exp23","StyledArrow","StyledNavigation"],"mappings":";;;AAKO,IAAMA,oBAAoB,gBAAGC,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,sBAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAYzC,EAAA;AAAC,IAAAC,KAAA,GAhBgBA,SAgBhBA,KAAAA,GAAA;AAAA,EAAA,OAEiCC,WAAW,CAAA;AAAA,CAAA,CAAA;AAAvC,IAAMC,YAAY,gBAAGN,MAAM,CAAAI,KAAA,EAAA,CAAA,CAAA;AAAAH,EAAAA,IAAA,EAAA,cAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,IAAA;AAAA,CAcjC,EAAA;AAEM,IAAMI,kBAAkB,gBAAGP,MAAM,CAAA,IAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,oBAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAqBvC,EAAA;AAEM,IAAMK,YAAY,gBAAGR,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,cAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAOjC,EAAA;AAAC,IAAAM,MAAA,GAhEgBA,SAgEhBA,MAAAA,GAAA;AAAA,EAAA,OAEgCJ,WAAW,CAAA;AAAA,CAAA,CAAA;AAAtC,IAAMK,WAAW,gBAAGV,MAAM,CAAAS,MAAA,EAAA,CAAA,CAAA;AAAAR,EAAAA,IAAA,EAAA,aAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,IAAA;AAAA,CAGhC,EAAA;AAEM,IAAMQ,gBAAgB,gBAAGX,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,kBAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAIrC;;;;"}
@@ -0,0 +1,6 @@
1
+ .sjaqipy{padding:1rem 1.5rem 0;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);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;}
2
+ .s1k7jebr{color:var(--plasma-calendar-content-primary-color);cursor:pointer;padding:0.5rem 0;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);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;}
3
+ .s1b07tlr{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);margin-top:0;margin-bottom:0;padding:0.5rem 0;-webkit-flex:1;-ms-flex:1;flex:1;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;}.s1b07tlr:first-of-type{margin-right:3rem;}.s1b07tlr:last-of-type{margin-left:3rem;}
4
+ .s13yvda3{padding:0.5rem 0;width:var(--plasma-calendar-arrow-container-width);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;}
5
+ .s1i8jkj2{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;cursor:pointer;}
6
+ .sw3by8z{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;}
@@ -1,4 +1,4 @@
1
- .CalendarMonths_styles_wmlwil_s2fb05v__7dae290b{padding:var(--plasma-calendar-months-padding);box-sizing:border-box;}
2
- .CalendarMonths_styles_wmlwil_s1nlg4aa__7dae290b{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;}
3
- .CalendarMonths_styles_wmlwil_s1cvx4bk__7dae290b{border-radius:calc(var(--plasma-calendar-month-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;}
4
- .CalendarMonths_styles_wmlwil_s14caaqm__7dae290b{font-family:var(--plasma-calendar-month-font-family);font-size:var(--plasma-calendar-month-font-size);font-style:var(--plasma-calendar-month-font-style);font-weight:var(--plasma-calendar-month-font-weight);-webkit-letter-spacing:var(--plasma-calendar-month-font-letter-spacing);-moz-letter-spacing:var(--plasma-calendar-month-font-letter-spacing);-ms-letter-spacing:var(--plasma-calendar-month-font-letter-spacing);letter-spacing:var(--plasma-calendar-month-font-letter-spacing);line-height:var(--plasma-calendar-month-line-height);position:relative;box-sizing:border-box;min-height:var(--plasma-calendar-month-item-height);min-width:var(--plasma-calendar-month-item-width);border-radius:var(--plasma-calendar-month-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;outline:none;cursor:pointer;position:relative;}.CalendarMonths_styles_wmlwil_s14caaqm__7dae290b:hover{background-color:var(--plasma-calendar-selectable-item-bg-hover);}.CalendarMonths_styles_wmlwil_s14caaqm__7dae290b.CalendarMonths_styles_wmlwil_itemHovered__7dae290b,.CalendarMonths_styles_wmlwil_s14caaqm__7dae290b.CalendarMonths_styles_wmlwil_itemHovered__7dae290b:hover{background-color:var(--plasma-calendar-selected-item-background);color:var(--plasma-calendar-selected-item-color);cursor:pointer;font-weight:var(--plasma-calendar-month-selected-font-weight);}.CalendarMonths_styles_wmlwil_s14caaqm__7dae290b.CalendarMonths_styles_wmlwil_itemSelected__7dae290b:not(.CalendarMonths_styles_wmlwil_itemCurrent__7dae290b){border:0;background-color:var(--plasma-calendar-selected-item-background);color:var(--plasma-calendar-selected-item-color);cursor:default;font-weight:var(--plasma-calendar-month-selected-font-weight);}.CalendarMonths_styles_wmlwil_s14caaqm__7dae290b:active{background-color:var(--plasma-calendar-active-item-bg);color:var(--plasma-calendar-active-item-color);font-weight:var(--plasma-calendar-month-selected-font-weight);}.CalendarMonths_styles_wmlwil_s14caaqm__7dae290b.CalendarMonths_styles_wmlwil_itemCurrent__7dae290b{border:0.063rem solid var(--plasma-calendar-current-item-border-color);}.CalendarMonths_styles_wmlwil_s14caaqm__7dae290b.CalendarMonths_styles_wmlwil_itemCurrent__7dae290b.CalendarMonths_styles_wmlwil_itemSelected__7dae290b{background-color:initial;color:var(--plasma-calendar-selected-item-color);font-weight:var(--plasma-calendar-month-selected-font-weight);}.CalendarMonths_styles_wmlwil_s14caaqm__7dae290b.CalendarMonths_styles_wmlwil_itemCurrent__7dae290b.CalendarMonths_styles_wmlwil_itemSelected__7dae290b > div:first-of-type{background-color:var(--plasma-calendar-selected-item-background);min-width:calc(var(--plasma-calendar-month-item-width) - 0.25rem);min-height:calc(var(--plasma-calendar-month-item-height) - 0.25rem);}.CalendarMonths_styles_wmlwil_s14caaqm__7dae290b::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-month-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;}.CalendarMonths_styles_wmlwil_s14caaqm__7dae290b.CalendarMonths_styles_wmlwil_focusVisible__7dae290b:focus::before,.CalendarMonths_styles_wmlwil_s14caaqm__7dae290b[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.063rem var(--plasma-calendar-outline-focus-color);}.CalendarMonths_styles_wmlwil_s14caaqm__7dae290b.CalendarMonths_styles_wmlwil_itemCurrent__7dae290b{position:relative;}.CalendarMonths_styles_wmlwil_s14caaqm__7dae290b.CalendarMonths_styles_wmlwil_itemCurrent__7dae290b::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-month-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;}.CalendarMonths_styles_wmlwil_s14caaqm__7dae290b.CalendarMonths_styles_wmlwil_itemCurrent__7dae290b.CalendarMonths_styles_wmlwil_focusVisible__7dae290b:focus::before,.CalendarMonths_styles_wmlwil_s14caaqm__7dae290b.CalendarMonths_styles_wmlwil_itemCurrent__7dae290b[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.063rem var(--plasma-calendar-outline-focus-color);}
1
+ .CalendarMonths_styles_1jnzviu_s2fb05v__623e79aa{padding:0.5rem 1.5rem 1.5rem;box-sizing:border-box;}
2
+ .CalendarMonths_styles_1jnzviu_s1nlg4aa__623e79aa{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;}
3
+ .CalendarMonths_styles_1jnzviu_s1cvx4bk__623e79aa{border-radius:0.438rem;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;}
4
+ .CalendarMonths_styles_1jnzviu_s14caaqm__623e79aa{font-family:var(--plasma-calendar-month-font-family);font-size:var(--plasma-calendar-month-font-size);font-style:var(--plasma-calendar-month-font-style);font-weight:var(--plasma-calendar-month-font-weight);-webkit-letter-spacing:var(--plasma-calendar-month-font-letter-spacing);-moz-letter-spacing:var(--plasma-calendar-month-font-letter-spacing);-ms-letter-spacing:var(--plasma-calendar-month-font-letter-spacing);letter-spacing:var(--plasma-calendar-month-font-letter-spacing);line-height:var(--plasma-calendar-month-line-height);position:relative;box-sizing:border-box;min-height:3.5rem;border-radius:var(--plasma-calendar-item-border-radius);-webkit-flex:1;-ms-flex:1;flex:1;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;--calendar_private-selected-min-width:5.25rem;--calendar_private-selected-min-height:3.25rem;--calendar_private-selected-background:var(--plasma-calendar-selected-item-background);--calendar_private-selected-color:var(--plasma-calendar-selected-item-color);--calendar_private-selectable-background-hover:var(--plasma-calendar-selectable-item-bg-hover);--calendar_private-current-border-color:var(--plasma-calendar-current-item-border-color);--calendar_private-current-background-hover:var(--plasma-calendar-current-item-bg-hover);--calendar_private-current-color-hover:var(--plasma-calendar-current-item-color-hover);--calendar_private-current-child-background-hover:var(--plasma-calendar-current-item-child-bg-hover);--calendar_private-active-background:var(--plasma-calendar-active-item-bg);--calendar_private-active-color-hover:var(--plasma-calendar-active-item-color);--calendar_private-hovered-background:var(--plasma-calendar-hovered-item-bg);--calendar_private-hovered-color:var(--plasma-calendar-hovered-item-color);outline:none;cursor:pointer;}.CalendarMonths_styles_1jnzviu_s14caaqm__623e79aa::before{content:'';position:absolute;top:-0.063rem;left:-0.063rem;right:-0.063rem;bottom:-0.063rem;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;}.CalendarMonths_styles_1jnzviu_s14caaqm__623e79aa.CalendarMonths_styles_1jnzviu_focusVisible__623e79aa:focus::before,.CalendarMonths_styles_1jnzviu_s14caaqm__623e79aa[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.063rem var(--plasma-calendar-outline-focus-color);}.CalendarMonths_styles_1jnzviu_s14caaqm__623e79aa:hover:not(.CalendarMonths_styles_1jnzviu_itemSelected__623e79aa){background-color:var(--calendar_private-selectable-background-hover);}.CalendarMonths_styles_1jnzviu_s14caaqm__623e79aa:hover:not(.CalendarMonths_styles_1jnzviu_itemSelected__623e79aa):active{background-color:var(--calendar_private-active-background);color:var(--calendar_private-active-color);font-weight:var(--plasma-typo-body-s-bold-font-weight);}.CalendarMonths_styles_1jnzviu_s14caaqm__623e79aa.CalendarMonths_styles_1jnzviu_itemSelected__623e79aa{border:0;background-color:var(--calendar_private-selected-background);color:var(--calendar_private-selected-color);cursor:default;font-weight:var(--plasma-typo-body-s-bold-font-weight);}.CalendarMonths_styles_1jnzviu_s14caaqm__623e79aa.CalendarMonths_styles_1jnzviu_itemCurrent__623e79aa{border:0.063rem solid var(--calendar_private-current-border-color);}.CalendarMonths_styles_1jnzviu_s14caaqm__623e79aa.CalendarMonths_styles_1jnzviu_itemCurrent__623e79aa:not(.CalendarMonths_styles_1jnzviu_itemSelected__623e79aa):hover{background-color:var(--calendar_private-current-background-hover);color:var(--calendar_private-current-color-hover);}.CalendarMonths_styles_1jnzviu_s14caaqm__623e79aa.CalendarMonths_styles_1jnzviu_itemCurrent__623e79aa:not(.CalendarMonths_styles_1jnzviu_itemSelected__623e79aa):hover > div:first-of-type{background-color:var(--calendar_private-current-child-background-hover);min-width:var(--calendar_private-selected-min-width);min-height:var(--calendar_private-selected-min-height);}.CalendarMonths_styles_1jnzviu_s14caaqm__623e79aa.CalendarMonths_styles_1jnzviu_itemCurrent__623e79aa:not(.CalendarMonths_styles_1jnzviu_itemSelected__623e79aa):hover:active{background-color:var(--calendar_private-active-background);color:var(--calendar_private-active-color);font-weight:var(--plasma-typo-body-s-bold-font-weight);}.CalendarMonths_styles_1jnzviu_s14caaqm__623e79aa.CalendarMonths_styles_1jnzviu_itemHovered__623e79aa,.CalendarMonths_styles_1jnzviu_s14caaqm__623e79aa.CalendarMonths_styles_1jnzviu_itemHovered__623e79aa:hover{background-color:var(--calendar_private-hovered-background);color:var(--calendar_private-hovered-color);cursor:pointer;font-weight:var(--plasma-typo-body-s-bold-font-weight);}.CalendarMonths_styles_1jnzviu_s14caaqm__623e79aa.CalendarMonths_styles_1jnzviu_itemHovered__623e79aa:active,.CalendarMonths_styles_1jnzviu_s14caaqm__623e79aa.CalendarMonths_styles_1jnzviu_itemHovered__623e79aa:hover:active{background-color:var(--calendar_private-active-background);color:var(--calendar_private-active-color);font-weight:var(--plasma-typo-body-s-bold-font-weight);}.CalendarMonths_styles_1jnzviu_s14caaqm__623e79aa:active{background-color:var(--calendar_private-active-background);color:var(--calendar_private-active-color);font-weight:var(--plasma-typo-body-s-bold-font-weight);}
@@ -55,7 +55,7 @@ var CalendarMonths = function CalendarMonths(_ref) {
55
55
  isCurrent = _ref2.isCurrent,
56
56
  monthFullName = _ref2.monthFullName;
57
57
  var selectedClass = isSelected ? classes.selectedItem : undefined;
58
- var currentClass = isCurrent ? classes.currentItem : undefined;
58
+ var currentClass = !isSelected && isCurrent ? classes.currentItem : undefined;
59
59
  return /*#__PURE__*/React.createElement(StyledMonthRoot, {
60
60
  id: "month-test-".concat(i, "-").concat(j),
61
61
  className: cx(selectedClass, currentClass, classes.selectableItem),
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarMonths.js","sources":["../../../../../src/components/Calendar/ui/CalendarMonths/CalendarMonths.tsx"],"sourcesContent":["import React, { useCallback, useEffect, useRef } from 'react';\n\nimport { cx } from '../../../../utils';\nimport { useMonths } from '../../hooks';\nimport { classes } from '../../Calendar.tokens';\n\nimport type { CalendarMonthsProps } from './CalendarMonths.types';\nimport { StyledCalendarMonths, StyledFlex, StyledMonth, StyledMonthRoot } from './CalendarMonths.styles';\n\n/**\n * Компонент месяцев в календаре.\n */\nexport const CalendarMonths: React.FC<CalendarMonthsProps> = ({\n date: currentDate,\n selectIndexes,\n outerRefs,\n onChangeMonth,\n onSetSelected,\n onKeyDown,\n}) => {\n const [months, selected] = useMonths(currentDate);\n const selectedRef = useRef(selected);\n const onSetSelectedRef = useRef(onSetSelected);\n\n const handleOnChangeMonth = useCallback(\n (event: React.MouseEvent<HTMLDivElement>) => {\n /**\n * нужно вызвать stopImmediatePropagation для случаев, когда\n * обработчик события onClick навешивается снаружи.\n * Как, например, в компоненте Popup\n */\n event.nativeEvent.stopImmediatePropagation();\n\n const { monthIndex } = event.currentTarget.dataset;\n onChangeMonth(Number(monthIndex));\n },\n [onChangeMonth],\n );\n\n const getRefs = useCallback(\n (element: HTMLDivElement, i: number, j: number) => {\n outerRefs.current[i][j] = element;\n },\n [outerRefs],\n );\n\n useEffect(() => {\n if (selectedRef.current) {\n onSetSelectedRef.current?.(selectedRef.current);\n }\n }, []);\n\n return (\n <StyledCalendarMonths role=\"grid\" aria-labelledby=\"id-grid-label\" onKeyDown={onKeyDown}>\n {months.map((month, i) => (\n <StyledFlex role=\"row\" key={i}>\n {month.map(({ monthName, monthIndex, isSelected, isCurrent, monthFullName }, j) => {\n const selectedClass = isSelected ? classes.selectedItem : undefined;\n const currentClass = isCurrent ? classes.currentItem : undefined;\n\n return (\n <StyledMonthRoot\n id={`month-test-${i}-${j}`}\n className={cx(selectedClass, currentClass, classes.selectableItem)}\n ref={(element: HTMLDivElement) => getRefs(element, i, j)}\n tabIndex={i === selectIndexes?.[0] && j === selectIndexes?.[1] ? 0 : -1}\n onClick={handleOnChangeMonth}\n data-month-index={monthIndex}\n aria-selected={isSelected}\n role=\"gridcell\"\n key={`StyledMonth-${i}-${j}`}\n aria-label={monthFullName}\n >\n <StyledMonth>{monthName}</StyledMonth>\n </StyledMonthRoot>\n );\n })}\n </StyledFlex>\n ))}\n </StyledCalendarMonths>\n );\n};\n"],"names":["CalendarMonths","_ref","currentDate","date","selectIndexes","outerRefs","onChangeMonth","onSetSelected","onKeyDown","_useMonths","useMonths","_useMonths2","_slicedToArray","months","selected","selectedRef","useRef","onSetSelectedRef","handleOnChangeMonth","useCallback","event","nativeEvent","stopImmediatePropagation","monthIndex","currentTarget","dataset","Number","getRefs","element","i","j","current","useEffect","_onSetSelectedRef$cur","call","React","createElement","StyledCalendarMonths","role","map","month","StyledFlex","key","_ref2","monthName","isSelected","isCurrent","monthFullName","selectedClass","classes","selectedItem","undefined","currentClass","currentItem","StyledMonthRoot","id","concat","className","cx","selectableItem","ref","tabIndex","onClick","StyledMonth"],"mappings":";;;;;;;AASA;AACA;AACA;IACaA,cAA6C,GAAG,SAAhDA,cAA6CA,CAAAC,IAAA,EAOpD;AAAA,EAAA,IANIC,WAAW,GAAAD,IAAA,CAAjBE,IAAI;IACJC,aAAa,GAAAH,IAAA,CAAbG,aAAa;IACbC,SAAS,GAAAJ,IAAA,CAATI,SAAS;IACTC,aAAa,GAAAL,IAAA,CAAbK,aAAa;IACbC,aAAa,GAAAN,IAAA,CAAbM,aAAa;IACbC,SAAS,GAAAP,IAAA,CAATO,SAAS,CAAA;AAET,EAAA,IAAAC,UAAA,GAA2BC,SAAS,CAACR,WAAW,CAAC;IAAAS,WAAA,GAAAC,cAAA,CAAAH,UAAA,EAAA,CAAA,CAAA;AAA1CI,IAAAA,MAAM,GAAAF,WAAA,CAAA,CAAA,CAAA;AAAEG,IAAAA,QAAQ,GAAAH,WAAA,CAAA,CAAA,CAAA,CAAA;AACvB,EAAA,IAAMI,WAAW,GAAGC,MAAM,CAACF,QAAQ,CAAC,CAAA;AACpC,EAAA,IAAMG,gBAAgB,GAAGD,MAAM,CAACT,aAAa,CAAC,CAAA;AAE9C,EAAA,IAAMW,mBAAmB,G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I,GAAG,EAAA,cAAA,CAAAc,MAAA,CAAiB3B,CAAC,OAAA2B,MAAA,CAAI1B,CAAC,CAAG;QAC7B,YAAYiB,EAAAA,aAAAA;OAEZZ,eAAAA,KAAA,CAAAC,aAAA,CAAC2B,WAAW,EAAEnB,IAAAA,EAAAA,SAAuB,CACxB,CAAC,CAAA;AAE1B,KAAC,CACO,CAAC,CAAA;AAAA,GAChB,CACiB,CAAC,CAAA;AAE/B;;;;"}
1
+ {"version":3,"file":"CalendarMonths.js","sources":["../../../../../src/components/Calendar/ui/CalendarMonths/CalendarMonths.tsx"],"sourcesContent":["import React, { useCallback, useEffect, useRef } from 'react';\n\nimport { cx } from '../../../../utils';\nimport { useMonths } from '../../hooks';\nimport { classes } from '../../Calendar.tokens';\n\nimport type { CalendarMonthsProps } from './CalendarMonths.types';\nimport { StyledCalendarMonths, StyledFlex, StyledMonth, StyledMonthRoot } from './CalendarMonths.styles';\n\n/**\n * Компонент месяцев в календаре.\n */\nexport const CalendarMonths: React.FC<CalendarMonthsProps> = ({\n date: currentDate,\n selectIndexes,\n outerRefs,\n onChangeMonth,\n onSetSelected,\n onKeyDown,\n}) => {\n const [months, selected] = useMonths(currentDate);\n const selectedRef = useRef(selected);\n const onSetSelectedRef = useRef(onSetSelected);\n\n const handleOnChangeMonth = useCallback(\n (event: React.MouseEvent<HTMLDivElement>) => {\n /**\n * нужно вызвать stopImmediatePropagation для случаев, когда\n * обработчик события onClick навешивается снаружи.\n * Как, например, в компоненте Popup\n */\n event.nativeEvent.stopImmediatePropagation();\n\n const { monthIndex } = event.currentTarget.dataset;\n onChangeMonth(Number(monthIndex));\n },\n [onChangeMonth],\n );\n\n const getRefs = useCallback(\n (element: HTMLDivElement, i: number, j: number) => {\n outerRefs.current[i][j] = element;\n },\n [outerRefs],\n );\n\n useEffect(() => {\n if (selectedRef.current) {\n onSetSelectedRef.current?.(selectedRef.current);\n }\n }, []);\n\n return (\n <StyledCalendarMonths role=\"grid\" aria-labelledby=\"id-grid-label\" onKeyDown={onKeyDown}>\n {months.map((month, i) => (\n <StyledFlex role=\"row\" key={i}>\n {month.map(({ monthName, monthIndex, isSelected, isCurrent, monthFullName }, j) => {\n const selectedClass = isSelected ? classes.selectedItem : undefined;\n const currentClass = !isSelected && isCurrent ? classes.currentItem : undefined;\n\n return (\n <StyledMonthRoot\n id={`month-test-${i}-${j}`}\n className={cx(selectedClass, currentClass, classes.selectableItem)}\n ref={(element: HTMLDivElement) => getRefs(element, i, j)}\n tabIndex={i === selectIndexes?.[0] && j === selectIndexes?.[1] ? 0 : -1}\n onClick={handleOnChangeMonth}\n data-month-index={monthIndex}\n aria-selected={isSelected}\n role=\"gridcell\"\n key={`StyledMonth-${i}-${j}`}\n aria-label={monthFullName}\n >\n <StyledMonth>{monthName}</StyledMonth>\n </StyledMonthRoot>\n );\n })}\n </StyledFlex>\n ))}\n </StyledCalendarMonths>\n );\n};\n"],"names":["CalendarMonths","_ref","currentDate","date","selectIndexes","outerRefs","onChangeMonth","onSetSelected","onKeyDown","_useMonths","useMonths","_useMonths2","_slicedToArray","months","selected","selectedRef","useRef","onSetSelectedRef","handleOnChangeMonth","useCallback","event","nativeEvent","stopImmediatePropagation","monthIndex","currentTarget","dataset","Number","getRefs","element","i","j","current","useEffect","_onSetSelectedRef$cur","call","React","createElement","StyledCalendarMonths","role","map","month","StyledFlex","key","_ref2","monthName","isSelected","isCurrent","monthFullName","selectedClass","classes","selectedItem","undefined","currentClass","currentItem","StyledMonthRoot","id","concat","className","cx","selectableItem","ref","tabIndex","onClick","StyledMonth"],"mappings":";;;;;;;AASA;AACA;AACA;IACaA,cAA6C,GAAG,SAAhDA,cAA6CA,CAAAC,IAAA,EAOpD;AAAA,EAAA,IANIC,WAAW,GAAAD,IAAA,CAAjBE,IAAI;IACJC,aAAa,GAAAH,IAAA,CAAbG,aAAa;IACbC,SAAS,GAAAJ,IAAA,CAATI,SAAS;IACTC,aAAa,GAAAL,IAAA,CAAbK,aAAa;IACbC,aAAa,GAA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CAAC,CAAC,CAAA;SAAC;QACzD+B,QAAQ,EAAEhC,CAAC,MAAKzB,aAAa,KAAA,IAAA,IAAbA,aAAa,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAbA,aAAa,CAAG,CAAC,CAAC,CAAI0B,IAAAA,CAAC,MAAK1B,aAAa,KAAA,IAAA,IAAbA,aAAa,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAbA,aAAa,CAAG,CAAC,CAAC,CAAG,GAAA,CAAC,GAAG,CAAC,CAAE;AACxE0D,QAAAA,OAAO,EAAE5C,mBAAoB;AAC7B,QAAA,kBAAA,EAAkBK,UAAW;AAC7B,QAAA,eAAA,EAAesB,UAAW;AAC1BP,QAAAA,IAAI,EAAC,UAAU;QACfI,GAAG,EAAA,cAAA,CAAAc,MAAA,CAAiB3B,CAAC,OAAA2B,MAAA,CAAI1B,CAAC,CAAG;QAC7B,YAAYiB,EAAAA,aAAAA;OAEZZ,eAAAA,KAAA,CAAAC,aAAA,CAAC2B,WAAW,EAAEnB,IAAAA,EAAAA,SAAuB,CACxB,CAAC,CAAA;AAE1B,KAAC,CACO,CAAC,CAAA;AAAA,GAChB,CACiB,CAAC,CAAA;AAE/B;;;;"}
@@ -1,4 +1,4 @@
1
- import './CalendarMonths.styles_wmlwil.css';
1
+ import './CalendarMonths.styles_1jnzviu.css';
2
2
  import { styled } from '@linaria/react';
3
3
 
4
4
  var StyledCalendarMonths = /*#__PURE__*/styled('div')({
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarMonths.styles.js","sources":["../../../../../src/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nimport { classes, tokens } from '../../Calendar.tokens';\nimport { addFocus } from '../../../../mixins';\nimport { addSelected, flexCenter } from '../../mixins';\n\nexport const StyledCalendarMonths = styled.div`\n padding: var(${tokens.calendarMonthsPadding});\n box-sizing: border-box;\n`;\n\nexport const StyledFlex = styled.div`\n ${String(flexCenter)};\n`;\n\nexport const StyledMonth = styled.div`\n border-radius: calc(var(${tokens.calendarMonthItemBorderRadius}) - 0.125rem);\n\n ${String(flexCenter)};\n`;\n\nexport const StyledMonthRoot = styled.div`\n font-family: var(${tokens.calendarMonthFontFamily});\n font-size: var(${tokens.calendarMonthFontSize});\n font-style: var(${tokens.calendarMonthFontStyle});\n font-weight: var(${tokens.calendarMonthFontWeight});\n letter-spacing: var(${tokens.calendarMonthFontLetterSpacing});\n line-height: var(${tokens.calendarMonthFontLineHeight});\n position: relative;\n box-sizing: border-box;\n\n min-height: var(${tokens.calendarMonthItemHeight});\n min-width: var(${tokens.calendarMonthItemWidth});\n\n border-radius: var(${tokens.calendarMonthItemBorderRadius});\n\n ${String(flexCenter)};\n\n ${addSelected({\n minWidth: `calc(var(${tokens.calendarMonthItemWidth}) - 0.25rem)`,\n minHeight: `calc(var(${tokens.calendarMonthItemHeight}) - 0.25rem)`,\n selectedFontWeight: `var(${tokens.calendarMonthSelectedFontWeight})`,\n selectedBackground: `var(${tokens.calendarSelectedItemBackground})`,\n selectedColor: `var(${tokens.calendarSelectedItemColor})`,\n selectableBackgroundHover: `var(${tokens.calendarSelectableItemBackgroundHover})`,\n currentBorderColor: `var(${tokens.calendarCurrentItemBorderColor})`,\n activeBackground: `var(${tokens.calendarActiveItemBackground})`,\n activeColor: `var(${tokens.calendarActiveItemColor})`,\n })};\n\n ${addFocus({\n outlineSize: '0.063rem',\n outlineOffset: '-0.125rem',\n outlineColor: `var(${tokens.calendarOutlineFocusColor})`,\n outlineRadius: `calc(var(${tokens.calendarMonthItemBorderRadius}) + 0.125rem)`,\n })};\n\n &.${classes.currentItem} {\n ${addFocus({\n outlineSize: '0.063rem',\n outlineOffset: '-0.1875rem',\n outlineColor: `var(${tokens.calendarOutlineFocusColor})`,\n outlineRadius: `calc(var(${tokens.calendarMonthItemBorderRadius}) - 0.125rem)`,\n })};\n }\n`;\n"],"names":["StyledCalendarMonths","styled","name","class","propsAsIs","StyledFlex","StyledMonth","StyledMonthRoot"],"mappings":";;AAMO,IAAMA,oBAAoB,gBAAGC,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,sBAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAGzC,EAAA;AAEM,IAAMC,UAAU,gBAAGJ,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,YAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAE/B,EAAA;AAEM,IAAME,WAAW,gBAAGL,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,aAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAIhC,EAAA;AAEM,IAAMG,eAAe,gBAAGN,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,iBAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CA4CpC;;;;"}
1
+ {"version":3,"file":"CalendarMonths.styles.js","sources":["../../../../../src/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nimport { flexCenter, selectedMixin } from '../../mixins';\nimport { tokens } from '../../Calendar.tokens';\nimport { addFocus } from '../../../../mixins';\n\nexport const StyledCalendarMonths = styled.div`\n padding: 0.5rem 1.5rem 1.5rem;\n box-sizing: border-box;\n`;\n\nexport const StyledFlex = styled.div`\n ${String(flexCenter)};\n`;\n\nexport const StyledMonth = styled.div`\n border-radius: 0.438rem;\n\n ${String(flexCenter)};\n`;\n\nconst selectable = `\n ${addFocus({\n outlineSize: '0.063rem',\n outlineOffset: '-0.063rem',\n outlineColor: `var(${tokens.calendarOutlineFocusColor})`,\n outlineRadius: '0.563rem',\n })};\n\n --calendar_private-selected-min-width: 5.25rem;\n --calendar_private-selected-min-height: 3.25rem;\n --calendar_private-selected-background: var(${tokens.calendarSelectedItemBackground});\n --calendar_private-selected-color: var(${tokens.calendarSelectedItemColor});\n --calendar_private-selectable-background-hover: var(${tokens.calendarSelectableItemBackgroundHover});\n --calendar_private-current-border-color: var(${tokens.calendarCurrentItemBorderColor});\n --calendar_private-current-background-hover: var(${tokens.calendarCurrentItemBackgroundHover});\n --calendar_private-current-color-hover: var(${tokens.calendarCurrentItemColorHover});\n --calendar_private-current-child-background-hover: var(${tokens.calendarCurrentItemChildBackgroundHover});\n --calendar_private-active-background: var(${tokens.calendarActiveItemBackground});\n --calendar_private-active-color-hover: var(${tokens.calendarActiveItemColor});\n --calendar_private-hovered-background: var(${tokens.calendarHoveredItemBackground});\n --calendar_private-hovered-color: var(${tokens.calendarHoveredItemColor});\n\n ${String(selectedMixin)};\n`;\n\nexport const StyledMonthRoot = styled.div`\n font-family: var(${tokens.calendarMonthFontFamily});\n font-size: var(${tokens.calendarMonthFontSize});\n font-style: var(${tokens.calendarMonthFontStyle});\n font-weight: var(${tokens.calendarMonthFontWeight});\n letter-spacing: var(${tokens.calendarMonthFontLetterSpacing});\n line-height: var(${tokens.calendarMonthFontLineHeight});\n\n position: relative;\n box-sizing: border-box;\n\n min-height: 3.5rem;\n\n border-radius: var(${tokens.calendarItemBorderRadius});\n\n flex: 1;\n\n ${String(flexCenter)};\n ${String(selectable)};\n`;\n"],"names":["StyledCalendarMonths","styled","name","class","propsAsIs","StyledFlex","StyledMonth","StyledMonthRoot"],"mappings":";;AAMO,IAAMA,oBAAoB,gBAAGC,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,sBAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAGzC,EAAA;AAEM,IAAMC,UAAU,gBAAGJ,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,YAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAE/B,EAAA;AAEM,IAAME,WAAW,gBAAGL,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,aAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAIhC,EAAA;AA2BM,IAAMG,eAAe,gBAAGN,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,iBAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAmBpC;;;;"}
@@ -0,0 +1,4 @@
1
+ .s2fb05v{padding:0.5rem 1.5rem 1.5rem;box-sizing:border-box;}
2
+ .s1nlg4aa{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;}
3
+ .s1cvx4bk{border-radius:0.438rem;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;}
4
+ .s14caaqm{font-family:var(--plasma-calendar-month-font-family);font-size:var(--plasma-calendar-month-font-size);font-style:var(--plasma-calendar-month-font-style);font-weight:var(--plasma-calendar-month-font-weight);-webkit-letter-spacing:var(--plasma-calendar-month-font-letter-spacing);-moz-letter-spacing:var(--plasma-calendar-month-font-letter-spacing);-ms-letter-spacing:var(--plasma-calendar-month-font-letter-spacing);letter-spacing:var(--plasma-calendar-month-font-letter-spacing);line-height:var(--plasma-calendar-month-line-height);position:relative;box-sizing:border-box;min-height:3.5rem;border-radius:var(--plasma-calendar-item-border-radius);-webkit-flex:1;-ms-flex:1;flex:1;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;--calendar_private-selected-min-width:5.25rem;--calendar_private-selected-min-height:3.25rem;--calendar_private-selected-background:var(--plasma-calendar-selected-item-background);--calendar_private-selected-color:var(--plasma-calendar-selected-item-color);--calendar_private-selectable-background-hover:var(--plasma-calendar-selectable-item-bg-hover);--calendar_private-current-border-color:var(--plasma-calendar-current-item-border-color);--calendar_private-current-background-hover:var(--plasma-calendar-current-item-bg-hover);--calendar_private-current-color-hover:var(--plasma-calendar-current-item-color-hover);--calendar_private-current-child-background-hover:var(--plasma-calendar-current-item-child-bg-hover);--calendar_private-active-background:var(--plasma-calendar-active-item-bg);--calendar_private-active-color-hover:var(--plasma-calendar-active-item-color);--calendar_private-hovered-background:var(--plasma-calendar-hovered-item-bg);--calendar_private-hovered-color:var(--plasma-calendar-hovered-item-color);outline:none;cursor:pointer;}.s14caaqm::before{content:'';position:absolute;top:-0.063rem;left:-0.063rem;right:-0.063rem;bottom:-0.063rem;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;}.s14caaqm.focus-visible:focus::before,.s14caaqm[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.063rem var(--plasma-calendar-outline-focus-color);}.s14caaqm:hover:not(.item-selected){background-color:var(--calendar_private-selectable-background-hover);}.s14caaqm:hover:not(.item-selected):active{background-color:var(--calendar_private-active-background);color:var(--calendar_private-active-color);font-weight:var(--plasma-typo-body-s-bold-font-weight);}.s14caaqm.item-selected{border:0;background-color:var(--calendar_private-selected-background);color:var(--calendar_private-selected-color);cursor:default;font-weight:var(--plasma-typo-body-s-bold-font-weight);}.s14caaqm.item-current{border:0.063rem solid var(--calendar_private-current-border-color);}.s14caaqm.item-current:not(.item-selected):hover{background-color:var(--calendar_private-current-background-hover);color:var(--calendar_private-current-color-hover);}.s14caaqm.item-current:not(.item-selected):hover > div:first-of-type{background-color:var(--calendar_private-current-child-background-hover);min-width:var(--calendar_private-selected-min-width);min-height:var(--calendar_private-selected-min-height);}.s14caaqm.item-current:not(.item-selected):hover:active{background-color:var(--calendar_private-active-background);color:var(--calendar_private-active-color);font-weight:var(--plasma-typo-body-s-bold-font-weight);}.s14caaqm.item-hovered,.s14caaqm.item-hovered:hover{background-color:var(--calendar_private-hovered-background);color:var(--calendar_private-hovered-color);cursor:pointer;font-weight:var(--plasma-typo-body-s-bold-font-weight);}.s14caaqm.item-hovered:active,.s14caaqm.item-hovered:hover:active{background-color:var(--calendar_private-active-background);color:var(--calendar_private-active-color);font-weight:var(--plasma-typo-body-s-bold-font-weight);}.s14caaqm:active{background-color:var(--calendar_private-active-background);color:var(--calendar_private-active-color);font-weight:var(--plasma-typo-body-s-bold-font-weight);}
@@ -1,4 +1,4 @@
1
- .CalendarYears_styles_f2aje6_sq90exc__599b4140{padding:var(--plasma-calendar-years-padding);box-sizing:border-box;}
2
- .CalendarYears_styles_f2aje6_sp45mzt__599b4140{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;}
3
- .CalendarYears_styles_f2aje6_s1rv7a6a__599b4140{border-radius:calc(var(--plasma-calendar-year-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;}
4
- .CalendarYears_styles_f2aje6_s1fgpu0g__599b4140{font-family:var(--plasma-calendar-year-font-family);font-size:var(--plasma-calendar-year-font-size);font-style:var(--plasma-calendar-year-font-style);font-weight:var(--plasma-calendar-year-font-weight);-webkit-letter-spacing:var(--plasma-calendar-year-font-letter-spacing);-moz-letter-spacing:var(--plasma-calendar-year-font-letter-spacing);-ms-letter-spacing:var(--plasma-calendar-year-font-letter-spacing);letter-spacing:var(--plasma-calendar-year-font-letter-spacing);line-height:var(--plasma-calendar-year-line-height);position:relative;box-sizing:border-box;min-height:var(--plasma-calendar-year-item-height);min-width:var(--plasma-calendar-year-item-width);border-radius:var(--plasma-calendar-year-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;outline:none;cursor:pointer;position:relative;}.CalendarYears_styles_f2aje6_s1fgpu0g__599b4140:hover{background-color:var(--plasma-calendar-selectable-item-bg-hover);}.CalendarYears_styles_f2aje6_s1fgpu0g__599b4140.CalendarYears_styles_f2aje6_itemHovered__599b4140,.CalendarYears_styles_f2aje6_s1fgpu0g__599b4140.CalendarYears_styles_f2aje6_itemHovered__599b4140:hover{background-color:var(--plasma-calendar-selected-item-background);color:var(--plasma-calendar-selected-item-color);cursor:pointer;font-weight:var(--plasma-calendar-year-selected-font-weight);}.CalendarYears_styles_f2aje6_s1fgpu0g__599b4140.CalendarYears_styles_f2aje6_itemSelected__599b4140:not(.CalendarYears_styles_f2aje6_itemCurrent__599b4140){border:0;background-color:var(--plasma-calendar-selected-item-background);color:var(--plasma-calendar-selected-item-color);cursor:default;font-weight:var(--plasma-calendar-year-selected-font-weight);}.CalendarYears_styles_f2aje6_s1fgpu0g__599b4140:active{background-color:var(--plasma-calendar-active-item-bg);color:var(--plasma-calendar-active-item-color);font-weight:var(--plasma-calendar-year-selected-font-weight);}.CalendarYears_styles_f2aje6_s1fgpu0g__599b4140.CalendarYears_styles_f2aje6_itemCurrent__599b4140{border:0.063rem solid var(--plasma-calendar-current-item-border-color);}.CalendarYears_styles_f2aje6_s1fgpu0g__599b4140.CalendarYears_styles_f2aje6_itemCurrent__599b4140.CalendarYears_styles_f2aje6_itemSelected__599b4140{background-color:initial;color:var(--plasma-calendar-selected-item-color);font-weight:var(--plasma-calendar-year-selected-font-weight);}.CalendarYears_styles_f2aje6_s1fgpu0g__599b4140.CalendarYears_styles_f2aje6_itemCurrent__599b4140.CalendarYears_styles_f2aje6_itemSelected__599b4140 > div:first-of-type{background-color:var(--plasma-calendar-selected-item-background);min-width:calc(var(--plasma-calendar-year-item-width) - 0.25rem);min-height:calc(var(--plasma-calendar-year-item-height) - 0.25rem);}.CalendarYears_styles_f2aje6_s1fgpu0g__599b4140::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-year-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;}.CalendarYears_styles_f2aje6_s1fgpu0g__599b4140.CalendarYears_styles_f2aje6_focusVisible__599b4140:focus::before,.CalendarYears_styles_f2aje6_s1fgpu0g__599b4140[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.063rem var(--plasma-calendar-outline-focus-color);}.CalendarYears_styles_f2aje6_s1fgpu0g__599b4140.CalendarYears_styles_f2aje6_itemCurrent__599b4140{position:relative;}.CalendarYears_styles_f2aje6_s1fgpu0g__599b4140.CalendarYears_styles_f2aje6_itemCurrent__599b4140::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-year-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;}.CalendarYears_styles_f2aje6_s1fgpu0g__599b4140.CalendarYears_styles_f2aje6_itemCurrent__599b4140.CalendarYears_styles_f2aje6_focusVisible__599b4140:focus::before,.CalendarYears_styles_f2aje6_s1fgpu0g__599b4140.CalendarYears_styles_f2aje6_itemCurrent__599b4140[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.063rem var(--plasma-calendar-outline-focus-color);}
1
+ .CalendarYears_styles_1lubnwe_sq90exc__a926589b{padding:0.5rem 1.5rem 1.5rem;box-sizing:border-box;}
2
+ .CalendarYears_styles_1lubnwe_sp45mzt__a926589b{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;}
3
+ .CalendarYears_styles_1lubnwe_s1rv7a6a__a926589b{border-radius:0.438rem;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;}
4
+ .CalendarYears_styles_1lubnwe_s1fgpu0g__a926589b{font-family:var(--plasma-calendar-year-font-family);font-size:var(--plasma-calendar-year-font-size);font-style:var(--plasma-calendar-year-font-style);font-weight:var(--plasma-calendar-year-font-weight);-webkit-letter-spacing:var(--plasma-calendar-year-font-letter-spacing);-moz-letter-spacing:var(--plasma-calendar-year-font-letter-spacing);-ms-letter-spacing:var(--plasma-calendar-year-font-letter-spacing);letter-spacing:var(--plasma-calendar-year-font-letter-spacing);line-height:var(--plasma-calendar-year-line-height);position:relative;box-sizing:border-box;min-height:3.5rem;border-radius:var(--plasma-calendar-item-border-radius);-webkit-flex:1;-ms-flex:1;flex:1;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;--calendar_private-selected-min-width:5.25rem;--calendar_private-selected-min-height:3.25rem;--calendar_private-selected-background:var(--plasma-calendar-selected-item-background);--calendar_private-selected-color:var(--plasma-calendar-selected-item-color);--calendar_private-selectable-background-hover:var(--plasma-calendar-selectable-item-bg-hover);--calendar_private-current-border-color:var(--plasma-calendar-current-item-border-color);--calendar_private-current-background-hover:var(--plasma-calendar-current-item-bg-hover);--calendar_private-current-color-hover:var(--plasma-calendar-current-item-color-hover);--calendar_private-current-child-background-hover:var(--plasma-calendar-current-item-child-bg-hover);--calendar_private-active-background:var(--plasma-calendar-active-item-bg);--calendar_private-active-color:var(--plasma-calendar-active-item-color);--calendar_private-hovered-background:var(--plasma-calendar-hovered-item-bg);--calendar_private-hovered-color:var(--plasma-calendar-hovered-item-color);outline:none;cursor:pointer;}.CalendarYears_styles_1lubnwe_s1fgpu0g__a926589b::before{content:'';position:absolute;top:-0.063rem;left:-0.063rem;right:-0.063rem;bottom:-0.063rem;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;}.CalendarYears_styles_1lubnwe_s1fgpu0g__a926589b.CalendarYears_styles_1lubnwe_focusVisible__a926589b:focus::before,.CalendarYears_styles_1lubnwe_s1fgpu0g__a926589b[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.063rem var(--plasma-calendar-outline-focus-color);}.CalendarYears_styles_1lubnwe_s1fgpu0g__a926589b:hover:not(.CalendarYears_styles_1lubnwe_itemSelected__a926589b){background-color:var(--calendar_private-selectable-background-hover);}.CalendarYears_styles_1lubnwe_s1fgpu0g__a926589b:hover:not(.CalendarYears_styles_1lubnwe_itemSelected__a926589b):active{background-color:var(--calendar_private-active-background);color:var(--calendar_private-active-color);font-weight:var(--plasma-typo-body-s-bold-font-weight);}.CalendarYears_styles_1lubnwe_s1fgpu0g__a926589b.CalendarYears_styles_1lubnwe_itemSelected__a926589b{border:0;background-color:var(--calendar_private-selected-background);color:var(--calendar_private-selected-color);cursor:default;font-weight:var(--plasma-typo-body-s-bold-font-weight);}.CalendarYears_styles_1lubnwe_s1fgpu0g__a926589b.CalendarYears_styles_1lubnwe_itemCurrent__a926589b{border:0.063rem solid var(--calendar_private-current-border-color);}.CalendarYears_styles_1lubnwe_s1fgpu0g__a926589b.CalendarYears_styles_1lubnwe_itemCurrent__a926589b:not(.CalendarYears_styles_1lubnwe_itemSelected__a926589b):hover{background-color:var(--calendar_private-current-background-hover);color:var(--calendar_private-current-color-hover);}.CalendarYears_styles_1lubnwe_s1fgpu0g__a926589b.CalendarYears_styles_1lubnwe_itemCurrent__a926589b:not(.CalendarYears_styles_1lubnwe_itemSelected__a926589b):hover > div:first-of-type{background-color:var(--calendar_private-current-child-background-hover);min-width:var(--calendar_private-selected-min-width);min-height:var(--calendar_private-selected-min-height);}.CalendarYears_styles_1lubnwe_s1fgpu0g__a926589b.CalendarYears_styles_1lubnwe_itemCurrent__a926589b:not(.CalendarYears_styles_1lubnwe_itemSelected__a926589b):hover:active{background-color:var(--calendar_private-active-background);color:var(--calendar_private-active-color);font-weight:var(--plasma-typo-body-s-bold-font-weight);}.CalendarYears_styles_1lubnwe_s1fgpu0g__a926589b.CalendarYears_styles_1lubnwe_itemHovered__a926589b,.CalendarYears_styles_1lubnwe_s1fgpu0g__a926589b.CalendarYears_styles_1lubnwe_itemHovered__a926589b:hover{background-color:var(--calendar_private-hovered-background);color:var(--calendar_private-hovered-color);cursor:pointer;font-weight:var(--plasma-typo-body-s-bold-font-weight);}.CalendarYears_styles_1lubnwe_s1fgpu0g__a926589b.CalendarYears_styles_1lubnwe_itemHovered__a926589b:active,.CalendarYears_styles_1lubnwe_s1fgpu0g__a926589b.CalendarYears_styles_1lubnwe_itemHovered__a926589b:hover:active{background-color:var(--calendar_private-active-background);color:var(--calendar_private-active-color);font-weight:var(--plasma-typo-body-s-bold-font-weight);}.CalendarYears_styles_1lubnwe_s1fgpu0g__a926589b:active{background-color:var(--calendar_private-active-background);color:var(--calendar_private-active-color);font-weight:var(--plasma-typo-body-s-bold-font-weight);}
@@ -54,7 +54,7 @@ var CalendarYears = function CalendarYears(_ref) {
54
54
  isSelected = _ref2.isSelected,
55
55
  isCurrent = _ref2.isCurrent;
56
56
  var selectedClass = isSelected ? classes.selectedItem : undefined;
57
- var currentClass = isCurrent ? classes.currentItem : undefined;
57
+ var currentClass = !isSelected && isCurrent ? classes.currentItem : undefined;
58
58
  return /*#__PURE__*/React.createElement(StyledYearRoot, {
59
59
  className: cx(selectedClass, currentClass, classes.selectableItem),
60
60
  ref: function ref(element) {
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarYears.js","sources":["../../../../../src/components/Calendar/ui/CalendarYears/CalendarYears.tsx"],"sourcesContent":["import React, { useCallback, useEffect, useRef } from 'react';\n\nimport { cx } from '../../../../utils';\nimport { useYears } from '../../hooks';\nimport { classes } from '../../Calendar.tokens';\n\nimport type { CalendarYearsProps } from './CalendarYears.types';\nimport { StyledCalendarYears, StyledFlex, StyledYear, StyledYearRoot } from './CalendarYears.styles';\n\n/**\n * Компонент годов в календаре.\n */\nexport const CalendarYears: React.FC<CalendarYearsProps> = ({\n date: currentDate,\n startYear,\n selectIndexes,\n outerRefs,\n onChangeYear,\n onSetSelected,\n onKeyDown,\n}) => {\n const [years, selected] = useYears(currentDate, startYear);\n const selectedRef = useRef(selected);\n const onSetSelectedRef = useRef(onSetSelected);\n\n const handleOnChangeYear = useCallback(\n (event: React.MouseEvent<HTMLDivElement>) => {\n /**\n * нужно вызвать stopImmediatePropagation для случаев, когда\n * обработчик события onClick навешивается снаружи.\n * Как, например, в компоненте Popup\n */\n event.nativeEvent.stopImmediatePropagation();\n\n const { year } = event.currentTarget.dataset;\n onChangeYear(Number(year));\n },\n [onChangeYear],\n );\n\n const getRefs = useCallback(\n (element: HTMLDivElement, i: number, j: number) => {\n outerRefs.current[i][j] = element;\n },\n [outerRefs],\n );\n\n useEffect(() => {\n if (selectedRef.current) {\n onSetSelectedRef.current?.(selectedRef.current);\n }\n }, []);\n\n return (\n <StyledCalendarYears role=\"grid\" aria-labelledby=\"id-grid-label\" onKeyDown={onKeyDown}>\n {years.map((year, i) => (\n <StyledFlex role=\"row\" key={i}>\n {year.map(({ yearValue, isSelected, isCurrent }, j) => {\n const selectedClass = isSelected ? classes.selectedItem : undefined;\n const currentClass = isCurrent ? classes.currentItem : undefined;\n\n return (\n <StyledYearRoot\n className={cx(selectedClass, currentClass, classes.selectableItem)}\n ref={(element: HTMLDivElement) => getRefs(element, i, j)}\n tabIndex={i === selectIndexes?.[0] && j === selectIndexes?.[1] ? 0 : -1}\n onClick={handleOnChangeYear}\n data-year={yearValue}\n aria-selected={isSelected}\n role=\"gridcell\"\n key={`StyledYear-${i}-${j}`}\n aria-label={String(yearValue)}\n >\n <StyledYear>{yearValue}</StyledYear>\n </StyledYearRoot>\n );\n })}\n </StyledFlex>\n ))}\n </StyledCalendarYears>\n );\n};\n"],"names":["CalendarYears","_ref","currentDate","date","startYear","selectIndexes","outerRefs","onChangeYear","onSetSelected","onKeyDown","_useYears","useYears","_useYears2","_slicedToArray","years","selected","selectedRef","useRef","onSetSelectedRef","handleOnChangeYear","useCallback","event","nativeEvent","stopImmediatePropagation","year","currentTarget","dataset","Number","getRefs","element","i","j","current","useEffect","_onSetSelectedRef$cur","call","React","createElement","StyledCalendarYears","role","map","StyledFlex","key","_ref2","yearValue","isSelected","isCurrent","selectedClass","classes","selectedItem","undefined","currentClass","currentItem","StyledYearRoot","className","cx","selectableItem","ref","tabIndex","onClick","concat","String","StyledYear"],"mappings":";;;;;;;AASA;AACA;AACA;IACaA,aAA2C,GAAG,SAA9CA,aAA2CA,CAAAC,IAAA,EAQlD;AAAA,EAAA,IAPIC,WAAW,GAAAD,IAAA,CAAjBE,IAAI;IACJC,SAAS,GAAAH,IAAA,CAATG,SAAS;IACTC,aAAa,GAAAJ,IAAA,CAAbI,aAAa;IACbC,SAAS,GAAAL,IAAA,CAATK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,GAAA,KAAA,CAAA,GAAbA,aAAa,CAAG,CAAC,CAAC,CAAI0B,IAAAA,CAAC,MAAK1B,aAAa,KAAA,IAAA,IAAbA,aAAa,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAbA,aAAa,CAAG,CAAC,CAAC,CAAG,GAAA,CAAC,GAAG,CAAC,CAAE;AACxEsD,QAAAA,OAAO,EAAExC,kBAAmB;AAC5B,QAAA,WAAA,EAAWyB,SAAU;AACrB,QAAA,eAAA,EAAeC,UAAW;AAC1BN,QAAAA,IAAI,EAAC,UAAU;QACfG,GAAG,EAAA,aAAA,CAAAkB,MAAA,CAAgB9B,CAAC,OAAA8B,MAAA,CAAI7B,CAAC,CAAG;QAC5B,YAAY8B,EAAAA,MAAM,CAACjB,SAAS,CAAA;OAE5BR,eAAAA,KAAA,CAAAC,aAAA,CAACyB,UAAU,EAAElB,IAAAA,EAAAA,SAAsB,CACvB,CAAC,CAAA;AAEzB,KAAC,CACO,CAAC,CAAA;AAAA,GAChB,CACgB,CAAC,CAAA;AAE9B;;;;"}
1
+ {"version":3,"file":"CalendarYears.js","sources":["../../../../../src/components/Calendar/ui/CalendarYears/CalendarYears.tsx"],"sourcesContent":["import React, { useCallback, useEffect, useRef } from 'react';\n\nimport { cx } from '../../../../utils';\nimport { useYears } from '../../hooks';\nimport { classes } from '../../Calendar.tokens';\n\nimport type { CalendarYearsProps } from './CalendarYears.types';\nimport { StyledCalendarYears, StyledFlex, StyledYear, StyledYearRoot } from './CalendarYears.styles';\n\n/**\n * Компонент годов в календаре.\n */\nexport const CalendarYears: React.FC<CalendarYearsProps> = ({\n date: currentDate,\n startYear,\n selectIndexes,\n outerRefs,\n onChangeYear,\n onSetSelected,\n onKeyDown,\n}) => {\n const [years, selected] = useYears(currentDate, startYear);\n const selectedRef = useRef(selected);\n const onSetSelectedRef = useRef(onSetSelected);\n\n const handleOnChangeYear = useCallback(\n (event: React.MouseEvent<HTMLDivElement>) => {\n /**\n * нужно вызвать stopImmediatePropagation для случаев, когда\n * обработчик события onClick навешивается снаружи.\n * Как, например, в компоненте Popup\n */\n event.nativeEvent.stopImmediatePropagation();\n\n const { year } = event.currentTarget.dataset;\n onChangeYear(Number(year));\n },\n [onChangeYear],\n );\n\n const getRefs = useCallback(\n (element: HTMLDivElement, i: number, j: number) => {\n outerRefs.current[i][j] = element;\n },\n [outerRefs],\n );\n\n useEffect(() => {\n if (selectedRef.current) {\n onSetSelectedRef.current?.(selectedRef.current);\n }\n }, []);\n\n return (\n <StyledCalendarYears role=\"grid\" aria-labelledby=\"id-grid-label\" onKeyDown={onKeyDown}>\n {years.map((year, i) => (\n <StyledFlex role=\"row\" key={i}>\n {year.map(({ yearValue, isSelected, isCurrent }, j) => {\n const selectedClass = isSelected ? classes.selectedItem : undefined;\n const currentClass = !isSelected && isCurrent ? classes.currentItem : undefined;\n\n return (\n <StyledYearRoot\n className={cx(selectedClass, currentClass, classes.selectableItem)}\n ref={(element: HTMLDivElement) => getRefs(element, i, j)}\n tabIndex={i === selectIndexes?.[0] && j === selectIndexes?.[1] ? 0 : -1}\n onClick={handleOnChangeYear}\n data-year={yearValue}\n aria-selected={isSelected}\n role=\"gridcell\"\n key={`StyledYear-${i}-${j}`}\n aria-label={String(yearValue)}\n >\n <StyledYear>{yearValue}</StyledYear>\n </StyledYearRoot>\n );\n })}\n </StyledFlex>\n ))}\n </StyledCalendarYears>\n );\n};\n"],"names":["CalendarYears","_ref","currentDate","date","startYear","selectIndexes","outerRefs","onChangeYear","onSetSelected","onKeyDown","_useYears","useYears","_useYears2","_slicedToArray","years","selected","selectedRef","useRef","onSetSelectedRef","handleOnChangeYear","useCallback","event","nativeEvent","stopImmediatePropagation","year","currentTarget","dataset","Number","getRefs","element","i","j","current","useEffect","_onSetSelectedRef$cur","call","React","createElement","StyledCalendarYears","role","map","StyledFlex","key","_ref2","yearValue","isSelected","isCurrent","selectedClass","classes","selectedItem","undefined","currentClass","currentItem","StyledYearRoot","className","cx","selectableItem","ref","tabIndex","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,CAACR,aAAa,EAAEI,YAAY,EAAEH,OAAO,CAACQ,cAAc,CAAE;QACnEC,GAAG,EAAE,SAAAA,GAAAA,CAAC5B,OAAuB,EAAA;AAAA,UAAA,OAAKD,OAAO,CAACC,OAAO,EAAEC,CAAC,EAAEC,CAAC,CAAC,CAAA;SAAC;QACzD2B,QAAQ,EAAE5B,CAAC,MAAKzB,aAAa,KAAA,IAAA,IAAbA,aAAa,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAbA,aAAa,CAAG,CAAC,CAAC,CAAI0B,IAAAA,CAAC,MAAK1B,aAAa,KAAA,IAAA,IAAbA,aAAa,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAbA,aAAa,CAAG,CAAC,CAAC,CAAG,GAAA,CAAC,GAAG,CAAC,CAAE;AACxEsD,QAAAA,OAAO,EAAExC,kBAAmB;AAC5B,QAAA,WAAA,EAAWyB,SAAU;AACrB,QAAA,eAAA,EAAeC,UAAW;AAC1BN,QAAAA,IAAI,EAAC,UAAU;QACfG,GAAG,EAAA,aAAA,CAAAkB,MAAA,CAAgB9B,CAAC,OAAA8B,MAAA,CAAI7B,CAAC,CAAG;QAC5B,YAAY8B,EAAAA,MAAM,CAACjB,SAAS,CAAA;OAE5BR,eAAAA,KAAA,CAAAC,aAAA,CAACyB,UAAU,EAAElB,IAAAA,EAAAA,SAAsB,CACvB,CAAC,CAAA;AAEzB,KAAC,CACO,CAAC,CAAA;AAAA,GAChB,CACgB,CAAC,CAAA;AAE9B;;;;"}
@@ -1,4 +1,4 @@
1
- import './CalendarYears.styles_f2aje6.css';
1
+ import './CalendarYears.styles_1lubnwe.css';
2
2
  import { styled } from '@linaria/react';
3
3
 
4
4
  var StyledCalendarYears = /*#__PURE__*/styled('div')({
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarYears.styles.js","sources":["../../../../../src/components/Calendar/ui/CalendarYears/CalendarYears.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nimport { classes, tokens } from '../../Calendar.tokens';\nimport { addFocus } from '../../../../mixins';\nimport { addSelected, flexCenter } from '../../mixins';\n\nexport const StyledCalendarYears = styled.div`\n padding: var(${tokens.calendarYearsPadding});\n box-sizing: border-box;\n`;\n\nexport const StyledFlex = styled.div`\n ${String(flexCenter)};\n`;\n\nexport const StyledYear = styled.div`\n border-radius: calc(var(${tokens.calendarYearItemBorderRadius}) - 0.125rem);\n\n ${String(flexCenter)};\n`;\n\nexport const StyledYearRoot = styled.div`\n font-family: var(${tokens.calendarYearFontFamily});\n font-size: var(${tokens.calendarYearFontSize});\n font-style: var(${tokens.calendarYearFontStyle});\n font-weight: var(${tokens.calendarYearFontWeight});\n letter-spacing: var(${tokens.calendarYearFontLetterSpacing});\n line-height: var(${tokens.calendarYearFontLineHeight});\n position: relative;\n box-sizing: border-box;\n\n min-height: var(${tokens.calendarYearItemHeight});\n min-width: var(${tokens.calendarYearItemWidth});\n\n border-radius: var(${tokens.calendarYearItemBorderRadius});\n\n ${String(flexCenter)};\n\n ${addSelected({\n minWidth: `calc(var(${tokens.calendarYearItemWidth}) - 0.25rem)`,\n minHeight: `calc(var(${tokens.calendarYearItemHeight}) - 0.25rem)`,\n selectedFontWeight: `var(${tokens.calendarYearSelectedFontWeight})`,\n selectedBackground: `var(${tokens.calendarSelectedItemBackground})`,\n selectedColor: `var(${tokens.calendarSelectedItemColor})`,\n selectableBackgroundHover: `var(${tokens.calendarSelectableItemBackgroundHover})`,\n currentBorderColor: `var(${tokens.calendarCurrentItemBorderColor})`,\n activeBackground: `var(${tokens.calendarActiveItemBackground})`,\n activeColor: `var(${tokens.calendarActiveItemColor})`,\n })};\n\n ${addFocus({\n outlineSize: '0.063rem',\n outlineOffset: '-0.125rem',\n outlineColor: `var(${tokens.calendarOutlineFocusColor})`,\n outlineRadius: `calc(var(${tokens.calendarYearItemBorderRadius}) + 0.125rem)`,\n })};\n\n &.${classes.currentItem} {\n ${addFocus({\n outlineSize: '0.063rem',\n outlineOffset: '-0.1875rem',\n outlineColor: `var(${tokens.calendarOutlineFocusColor})`,\n outlineRadius: `calc(var(${tokens.calendarYearItemBorderRadius}) - 0.125rem)`,\n })};\n }\n`;\n"],"names":["StyledCalendarYears","styled","name","class","propsAsIs","StyledFlex","StyledYear","StyledYearRoot"],"mappings":";;AAMO,IAAMA,mBAAmB,gBAAGC,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,qBAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAGxC,EAAA;AAEM,IAAMC,UAAU,gBAAGJ,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,YAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAE/B,EAAA;AAEM,IAAME,UAAU,gBAAGL,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,YAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAI/B,EAAA;AAEM,IAAMG,cAAc,gBAAGN,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,gBAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CA4CnC;;;;"}
1
+ {"version":3,"file":"CalendarYears.styles.js","sources":["../../../../../src/components/Calendar/ui/CalendarYears/CalendarYears.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nimport { flexCenter, selectedMixin } from '../../mixins';\nimport { tokens } from '../../Calendar.tokens';\nimport { addFocus } from '../../../../mixins';\n\nexport const StyledCalendarYears = styled.div`\n padding: 0.5rem 1.5rem 1.5rem;\n box-sizing: border-box;\n`;\n\nexport const StyledFlex = styled.div`\n ${String(flexCenter)};\n`;\n\nexport const StyledYear = styled.div`\n border-radius: 0.438rem;\n\n ${String(flexCenter)};\n`;\n\nconst selectable = () => `\n ${addFocus({\n outlineSize: '0.063rem',\n outlineOffset: '-0.063rem',\n outlineColor: `var(${tokens.calendarOutlineFocusColor})`,\n outlineRadius: '0.563rem',\n })};\n\n --calendar_private-selected-min-width: 5.25rem;\n --calendar_private-selected-min-height: 3.25rem;\n --calendar_private-selected-background: var(${tokens.calendarSelectedItemBackground});\n --calendar_private-selected-color: var(${tokens.calendarSelectedItemColor});\n --calendar_private-selectable-background-hover: var(${tokens.calendarSelectableItemBackgroundHover});\n --calendar_private-current-border-color: var(${tokens.calendarCurrentItemBorderColor});\n --calendar_private-current-background-hover: var(${tokens.calendarCurrentItemBackgroundHover});\n --calendar_private-current-color-hover: var(${tokens.calendarCurrentItemColorHover});\n --calendar_private-current-child-background-hover: var(${tokens.calendarCurrentItemChildBackgroundHover});\n --calendar_private-active-background: var(${tokens.calendarActiveItemBackground});\n --calendar_private-active-color: var(${tokens.calendarActiveItemColor});\n --calendar_private-hovered-background: var(${tokens.calendarHoveredItemBackground});\n --calendar_private-hovered-color: var(${tokens.calendarHoveredItemColor});\n \n ${String(selectedMixin)};\n`;\n\nexport const StyledYearRoot = styled.div`\n font-family: var(${tokens.calendarYearFontFamily});\n font-size: var(${tokens.calendarYearFontSize});\n font-style: var(${tokens.calendarYearFontStyle});\n font-weight: var(${tokens.calendarYearFontWeight});\n letter-spacing: var(${tokens.calendarYearFontLetterSpacing});\n line-height: var(${tokens.calendarYearFontLineHeight});\n position: relative;\n box-sizing: border-box;\n\n min-height: 3.5rem;\n\n border-radius: var(${tokens.calendarItemBorderRadius});\n\n flex: 1;\n\n ${String(flexCenter)};\n ${selectable()};\n`;\n"],"names":["StyledCalendarYears","styled","name","class","propsAsIs","StyledFlex","StyledYear","StyledYearRoot"],"mappings":";;AAMO,IAAMA,mBAAmB,gBAAGC,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,qBAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAGxC,EAAA;AAEM,IAAMC,UAAU,gBAAGJ,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,YAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAE/B,EAAA;AAEM,IAAME,UAAU,gBAAGL,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,YAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAI/B,EAAA;AA2BM,IAAMG,cAAc,gBAAGN,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,gBAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAkBnC;;;;"}
@@ -0,0 +1,4 @@
1
+ .sq90exc{padding:0.5rem 1.5rem 1.5rem;box-sizing:border-box;}
2
+ .sp45mzt{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;}
3
+ .s1rv7a6a{border-radius:0.438rem;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;}
4
+ .s1fgpu0g{font-family:var(--plasma-calendar-year-font-family);font-size:var(--plasma-calendar-year-font-size);font-style:var(--plasma-calendar-year-font-style);font-weight:var(--plasma-calendar-year-font-weight);-webkit-letter-spacing:var(--plasma-calendar-year-font-letter-spacing);-moz-letter-spacing:var(--plasma-calendar-year-font-letter-spacing);-ms-letter-spacing:var(--plasma-calendar-year-font-letter-spacing);letter-spacing:var(--plasma-calendar-year-font-letter-spacing);line-height:var(--plasma-calendar-year-line-height);position:relative;box-sizing:border-box;min-height:3.5rem;border-radius:var(--plasma-calendar-item-border-radius);-webkit-flex:1;-ms-flex:1;flex:1;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;--calendar_private-selected-min-width:5.25rem;--calendar_private-selected-min-height:3.25rem;--calendar_private-selected-background:var(--plasma-calendar-selected-item-background);--calendar_private-selected-color:var(--plasma-calendar-selected-item-color);--calendar_private-selectable-background-hover:var(--plasma-calendar-selectable-item-bg-hover);--calendar_private-current-border-color:var(--plasma-calendar-current-item-border-color);--calendar_private-current-background-hover:var(--plasma-calendar-current-item-bg-hover);--calendar_private-current-color-hover:var(--plasma-calendar-current-item-color-hover);--calendar_private-current-child-background-hover:var(--plasma-calendar-current-item-child-bg-hover);--calendar_private-active-background:var(--plasma-calendar-active-item-bg);--calendar_private-active-color:var(--plasma-calendar-active-item-color);--calendar_private-hovered-background:var(--plasma-calendar-hovered-item-bg);--calendar_private-hovered-color:var(--plasma-calendar-hovered-item-color);outline:none;cursor:pointer;}.s1fgpu0g::before{content:'';position:absolute;top:-0.063rem;left:-0.063rem;right:-0.063rem;bottom:-0.063rem;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;}.s1fgpu0g.focus-visible:focus::before,.s1fgpu0g[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.063rem var(--plasma-calendar-outline-focus-color);}.s1fgpu0g:hover:not(.item-selected){background-color:var(--calendar_private-selectable-background-hover);}.s1fgpu0g:hover:not(.item-selected):active{background-color:var(--calendar_private-active-background);color:var(--calendar_private-active-color);font-weight:var(--plasma-typo-body-s-bold-font-weight);}.s1fgpu0g.item-selected{border:0;background-color:var(--calendar_private-selected-background);color:var(--calendar_private-selected-color);cursor:default;font-weight:var(--plasma-typo-body-s-bold-font-weight);}.s1fgpu0g.item-current{border:0.063rem solid var(--calendar_private-current-border-color);}.s1fgpu0g.item-current:not(.item-selected):hover{background-color:var(--calendar_private-current-background-hover);color:var(--calendar_private-current-color-hover);}.s1fgpu0g.item-current:not(.item-selected):hover > div:first-of-type{background-color:var(--calendar_private-current-child-background-hover);min-width:var(--calendar_private-selected-min-width);min-height:var(--calendar_private-selected-min-height);}.s1fgpu0g.item-current:not(.item-selected):hover:active{background-color:var(--calendar_private-active-background);color:var(--calendar_private-active-color);font-weight:var(--plasma-typo-body-s-bold-font-weight);}.s1fgpu0g.item-hovered,.s1fgpu0g.item-hovered:hover{background-color:var(--calendar_private-hovered-background);color:var(--calendar_private-hovered-color);cursor:pointer;font-weight:var(--plasma-typo-body-s-bold-font-weight);}.s1fgpu0g.item-hovered:active,.s1fgpu0g.item-hovered:hover:active{background-color:var(--calendar_private-active-background);color:var(--calendar_private-active-color);font-weight:var(--plasma-typo-body-s-bold-font-weight);}.s1fgpu0g:active{background-color:var(--calendar_private-active-background);color:var(--calendar_private-active-color);font-weight:var(--plasma-typo-body-s-bold-font-weight);}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/Calendar/utils/index.ts"],"sourcesContent":["import type { CalendarStateType } from '../store/types';\nimport type { CalendarValueType, DateObject, DisabledDay, ItemProps } from '../Calendar.types';\n\nexport const ROW_STEP = 6;\n\nexport const YEAR_RENDER_COUNT = 12;\n\nexport const SHORT_DAY_NAMES = ['Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб', 'Вс'] as const;\n\nexport const FULL_DAY_NAMES: Record<typeof SHORT_DAY_NAMES[number], string> = {\n Пн: 'Понедельник',\n Вт: 'Вторник',\n Ср: 'Среда',\n Чт: 'Четверг',\n Пт: 'Пятница',\n Сб: 'Суббота',\n Вс: 'Воскресенье',\n};\n\nexport const SHORT_MONTH_NAME = ['Янв', 'Фев', 'Март', 'Апр', 'Май', 'Июнь', 'Июль', 'Авг', 'Сен', 'Окт', 'Ноя', 'Дек'];\n\nexport const MONTH_NAMES = [\n 'Январь',\n 'Февраль',\n 'Март',\n 'Апрель',\n 'Май',\n 'Июнь',\n 'Июль',\n 'Август',\n 'Сентябрь',\n 'Октябрь',\n 'Ноябрь',\n 'Декабрь',\n];\n\nexport const getDaysInMonth = (monthIndex: number, year: number) => new Date(year, monthIndex + 1, 0).getDate();\n\nexport const getOffsetDayInWeek = (monthIndex: number, year: number) => (new Date(year, monthIndex).getDay() || 7) - 1;\n\nexport const getStartYear = (year: number) => Math.trunc((year - 1) * 0.1) * 10 - 1;\n\nexport const getNextDate = (currentYear: number, currentMonth: number) =>\n currentMonth + 1 === MONTH_NAMES.length ? [currentYear + 1, 0] : [currentYear, currentMonth + 1];\n\nexport const getPrevDate = (currentYear: number, currentMonth: number) =>\n currentMonth - 1 < 0 ? [currentYear - 1, 11] : [currentYear, currentMonth - 1];\n\nexport const getDateFromValue = (date: Date | undefined): DateObject => {\n const state = date || new Date();\n\n return {\n day: date !== undefined ? state.getDate() : 0,\n monthIndex: state.getMonth(),\n year: state.getFullYear(),\n };\n};\n\nexport const getDateFromNow = (): DateObject => {\n const nowDate = new Date();\n\n return {\n day: nowDate.getDate(),\n monthIndex: nowDate.getMonth(),\n year: nowDate.getFullYear(),\n };\n};\n\nexport const IsCurrentDay = (date: DateObject, currentDay: number) => {\n const { day, monthIndex: currentMonthIndex, year: currentYear } = getDateFromNow();\n return day === currentDay && date.monthIndex === currentMonthIndex && date.year === currentYear;\n};\n\nexport const isSelectedDay = (date: DateObject, currentDay: number, value?: Date) => {\n if (!value) {\n return false;\n }\n\n const { day, monthIndex, year } = getDateFromValue(value);\n return day === currentDay && date.monthIndex === monthIndex && date.year === year;\n};\n\nexport const isCurrentMonth = (date: DateObject, monthIndex: number) => {\n const { monthIndex: currentMonthIndex, year: currentYear } = getDateFromNow();\n return monthIndex === currentMonthIndex && date.year === currentYear;\n};\n\nexport const isSelectedMonth = (date: DateObject, monthIndex: number) => date.monthIndex === monthIndex;\n\nexport const isCurrentYear = (year: number) => {\n const { year: currentYear } = getDateFromNow();\n return year === currentYear;\n};\n\nexport const isSelectedYear = (date: DateObject, year: number) => date.year === year;\n\nexport const getSortedValues = (values: [Date | undefined, (Date | undefined)?]) =>\n values.sort((start, end) => {\n if (!start || !end) {\n return -1;\n }\n\n return start.getTime() - end.getTime();\n });\n\nexport const isDayInRange = (\n year: number,\n monthIndex: number,\n currentDay: number,\n values: [Date | undefined, Date?],\n) => {\n const [startValue, endValue] = getSortedValues(values);\n\n if (!endValue || !startValue) {\n return false;\n }\n\n const day = new Date(year, monthIndex, currentDay);\n return startValue < day && day <= endValue;\n};\n\nexport const isSameDay = (firstDate: DateObject, secondDate?: DateObject) =>\n secondDate &&\n firstDate.day === secondDate.day &&\n firstDate.monthIndex === secondDate.monthIndex &&\n firstDate.year === secondDate.year;\n\nexport const isValueUpdate = (value: Date | [Date?, Date?], prevValue: Date | [Date?, Date?]) => {\n if (!Array.isArray(value) && !Array.isArray(prevValue)) {\n return prevValue?.getTime() !== value?.getTime();\n }\n\n if (Array.isArray(value) && Array.isArray(prevValue)) {\n return prevValue[0]?.getTime() !== value[0]?.getTime() || prevValue[1]?.getTime() !== value[1]?.getTime();\n }\n\n return false;\n};\n\n/**\n * Метод проверяет, находится ли календарь в режиме выбора второго значения.\n */\nexport const isSelectProcess = (array: unknown | unknown[]): array is [Date, Date?] =>\n Array.isArray(array) && !array[1];\n\n/**\n * Метод возвращает сторону, когда выбор второго значения диапазона завершён.\n */\nexport const getSideForSelected = (date: DateObject, startValue: Date, endValue: Date) => {\n const currentDateTime = new Date(date.year, date.monthIndex, date.day).getTime();\n const startValueTime = startValue.getTime();\n const endValueTime = endValue.getTime();\n\n if (currentDateTime === startValueTime) {\n return 'right';\n }\n\n if (currentDateTime === endValueTime) {\n return 'left';\n }\n\n return undefined;\n};\n\n/**\n * Метод возвращает сторону, во время выбора второго значения диапазона.\n */\nexport const getSideForHovered = (date: DateObject, hoveredDay: DateObject, startValue: Date, isSelected?: boolean) => {\n const dateHover = new Date(hoveredDay.year, hoveredDay.monthIndex, hoveredDay.day);\n const isHovered = isSameDay(date, hoveredDay);\n\n if ((isSelected && startValue > dateHover) || (isHovered && startValue < dateHover)) {\n return 'left';\n }\n\n if ((isSelected && startValue < dateHover) || (isHovered && startValue > dateHover)) {\n return 'right';\n }\n\n return undefined;\n};\n\n/**\n * Метод возвращает сторону, с которой нужно отрисовать направление полоски диапазона.\n */\nexport const getSideInRange = (\n value: CalendarValueType,\n date: DateObject,\n hoveredDay?: DateObject,\n isSelected?: boolean,\n) => {\n if (!Array.isArray(value)) {\n return undefined;\n }\n\n const [startValue, endValue] = value;\n\n if (startValue && isSelected && endValue) {\n return getSideForSelected(date, startValue, endValue);\n }\n\n if (startValue && hoveredDay) {\n return getSideForHovered(date, hoveredDay, startValue, isSelected);\n }\n\n return undefined;\n};\n\n/**\n * Метод проверяет, находится ли выбранный день в диапазоне.\n */\nexport const getInRange = (value: CalendarValueType, date: DateObject, hoveredDay?: DateObject, inRange?: boolean) => {\n if (!isSelectProcess(value) || !hoveredDay) {\n return inRange;\n }\n\n const dateSelected = value[0];\n const dateHover = new Date(hoveredDay.year, hoveredDay.monthIndex, hoveredDay.day);\n const dateCurrent = new Date(date.year, date.monthIndex, date.day);\n\n if (\n (dateSelected < dateCurrent && dateCurrent < dateHover) ||\n (dateSelected > dateCurrent && dateCurrent > dateHover)\n ) {\n return true;\n }\n\n return inRange;\n};\n\n/**\n * Метод проверяет, можно ли выбрать день.\n */\nexport const canSelectDate = (\n { year, monthIndex, day }: DateObject,\n value: CalendarValueType,\n disabledList?: DisabledDay[],\n) => {\n if (!isSelectProcess(value)) {\n return true;\n }\n\n const hoverDate = new Date(year, monthIndex, day);\n const [startDate] = value;\n\n if (!disabledList?.length) {\n return true;\n }\n\n const offDisabledRange = disabledList.some(\n ({ date }) => (startDate < date && date < hoverDate) || (startDate > date && date > hoverDate),\n );\n\n return !offDisabledRange;\n};\n\n/**\n * Метод для получения двумерного массива и возвращения выбранного элемента.\n */\nexport const getMatrix = <T extends ItemProps>(items: T[], rowSize = 7): readonly [T[][], number[] | undefined] => {\n const newItems = [...items];\n\n let selected: [number, number] | undefined;\n\n const result = newItems.reduce((acc: T[][], item, index) => {\n if (index % rowSize === 0) {\n acc.push([]);\n }\n\n acc[acc.length - 1].push(item);\n\n if (item.isSelected) {\n selected = [acc.length - 1, index % rowSize];\n }\n\n return acc;\n }, []);\n\n return [result, selected] as const;\n};\n\nexport const getCalendarType = (type: CalendarStateType) => {\n switch (type) {\n case 'Months':\n return 'год';\n case 'Years':\n return 'период';\n default:\n return 'месяц';\n }\n};\n"],"names":["ROW_STEP","YEAR_RENDER_COUNT","SHORT_DAY_NAMES","FULL_DAY_NAMES","Пн","Вт","Ср","Чт","Пт","Сб","Вс","SHORT_MONTH_NAME","MONTH_NAMES","getDaysInMonth","monthIndex","year","Date","getDate","getOffsetDayInWeek","getDay","getStartYear","Math","trunc","getNextDate","currentYear","currentMonth","length","getPrevDate","getDateFromValue","date","state","day","undefined","getMonth","getFullYear","getDateFromNow","nowDate","IsCurrentDay","currentDay","_getDateFromNow","currentMonthIndex","isSelectedDay","value","_getDateFromValue","isCurrentMonth","_getDateFromNow2","isSelectedMonth","isCurrentYear","_getDateFromNow3","isSelectedYear","getSortedValues","values","sort","start","end","getTime","isDayInRange","_getSortedValues","_getSortedValues2","_slicedToArray","startValue","endValue","isSameDay","firstDate","secondDate","isValueUpdate","prevValue","Array","isArray","_prevValue$","_value$","_prevValue$2","_value$2","isSelectProcess","array","getSideForSelected","currentDateTime","startValueTime","endValueTime","getSideForHovered","hoveredDay","isSelected","dateHover","isHovered","getSideInRange","_value","getInRange","inRange","dateSelected","dateCurrent","canSelectDate","_ref","disabledList","hoverDate","_value2","startDate","offDisabledRange","some","_ref2","getMatrix","items","rowSize","arguments","newItems","_toConsumableArray","selected","result","reduce","acc","item","index","push","getCalendarType","type"],"mappings":";;AAGO,IAAMA,QAAQ,GAAG,EAAC;AAElB,IAAMC,iBAAiB,GAAG,GAAE;IAEtBC,eAAe,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAU;AAE3E,IAAMC,cAA8D,GAAG;AAC1EC,EAAAA,EAAE,EAAE,aAAa;AACjBC,EAAAA,EAAE,EAAE,SAAS;AACbC,EAAAA,EAAE,EAAE,OAAO;AACXC,EAAAA,EAAE,EAAE,SAAS;AACbC,EAAAA,EAAE,EAAE,SAAS;AACbC,EAAAA,EAAE,EAAE,SAAS;AACbC,EAAAA,EAAE,EAAE,aAAA;AACR,EAAC;AAEM,IAAMC,gBAAgB,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAC;AAEhH,IAAMC,WAAW,GAAG,CACvB,QAAQ,EACR,SAAS,EACT,MAAM,EACN,QAAQ,EACR,KAAK,EACL,MAAM,EACN,MAAM,EACN,QAAQ,EACR,UAAU,EACV,SAAS,EACT,QAAQ,EACR,SAAS,EACZ;AAEM,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,CAAIC,UAAkB,EAAEC,IAAY,EAAA;AAAA,EAAA,OAAK,IAAIC,IAAI,CAACD,IAAI,EAAED,UAAU,GAAG,CAAC,EAAE,CAAC,CAAC,CAACG,OAAO,EAAE,CAAA;AAAA,EAAA;AAExG,IAAMC,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAIJ,UAAkB,EAAEC,IAAY,EAAA;AAAA,EAAA,OAAK,CAAC,IAAIC,IAAI,CAACD,IAAI,EAAED,UAAU,CAAC,CAACK,MAAM,EA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,CAAA,KAAAtE,SAAA,GAAAsE,SAAA,CAAA,CAAA,CAAA,GAAG,CAAC,CAAA;AAClE,EAAA,IAAMC,QAAQ,GAAAC,kBAAA,CAAOJ,KAAK,CAAC,CAAA;AAE3B,EAAA,IAAIK,QAAsC,CAAA;AAE1C,EAAA,IAAMC,MAAM,GAAGH,QAAQ,CAACI,MAAM,CAAC,UAACC,GAAU,EAAEC,IAAI,EAAEC,KAAK,EAAK;AACxD,IAAA,IAAIA,KAAK,GAAGT,OAAO,KAAK,CAAC,EAAE;AACvBO,MAAAA,GAAG,CAACG,IAAI,CAAC,EAAE,CAAC,CAAA;AAChB,KAAA;IAEAH,GAAG,CAACA,GAAG,CAAClF,MAAM,GAAG,CAAC,CAAC,CAACqF,IAAI,CAACF,IAAI,CAAC,CAAA;IAE9B,IAAIA,IAAI,CAAC5B,UAAU,EAAE;MACjBwB,QAAQ,GAAG,CAACG,GAAG,CAAClF,MAAM,GAAG,CAAC,EAAEoF,KAAK,GAAGT,OAAO,CAAC,CAAA;AAChD,KAAA;AAEA,IAAA,OAAOO,GAAG,CAAA;GACb,EAAE,EAAE,CAAC,CAAA;AAEN,EAAA,OAAO,CAACF,MAAM,EAAED,QAAQ,CAAC,CAAA;AAC7B,EAAC;IAEYO,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,IAAuB,EAAK;AACxD,EAAA,QAAQA,IAAI;AACR,IAAA,KAAK,QAAQ;AACT,MAAA,OAAO,KAAK,CAAA;AAChB,IAAA,KAAK,OAAO;AACR,MAAA,OAAO,QAAQ,CAAA;AACnB,IAAA;AACI,MAAA,OAAO,OAAO,CAAA;AACtB,GAAA;AACJ;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/components/Calendar/utils/index.ts"],"sourcesContent":["import type { CalendarStateType } from '../store/types';\nimport type { CalendarValueType, DateObject, DisabledDay, ItemProps } from '../Calendar.types';\n\nexport const ROW_STEP = 6;\n\nexport const YEAR_RENDER_COUNT = 12;\n\nexport const SHORT_DAY_NAMES = ['Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб', 'Вс'] as const;\n\nexport const FULL_DAY_NAMES: Record<typeof SHORT_DAY_NAMES[number], string> = {\n Пн: 'Понедельник',\n Вт: 'Вторник',\n Ср: 'Среда',\n Чт: 'Четверг',\n Пт: 'Пятница',\n Сб: 'Суббота',\n Вс: 'Воскресенье',\n};\n\nexport const SHORT_MONTH_NAME = ['Янв', 'Фев', 'Март', 'Апр', 'Май', 'Июнь', 'Июль', 'Авг', 'Сен', 'Окт', 'Ноя', 'Дек'];\n\nexport const MONTH_NAMES = [\n 'Январь',\n 'Февраль',\n 'Март',\n 'Апрель',\n 'Май',\n 'Июнь',\n 'Июль',\n 'Август',\n 'Сентябрь',\n 'Октябрь',\n 'Ноябрь',\n 'Декабрь',\n];\n\nexport const getDaysInMonth = (monthIndex: number, year: number) => new Date(year, monthIndex + 1, 0).getDate();\n\nexport const getOffsetDayInWeek = (monthIndex: number, year: number) => (new Date(year, monthIndex).getDay() || 7) - 1;\n\nexport const getStartYear = (year: number) => Math.trunc((year - 1) * 0.1) * 10 - 1;\n\nexport const getNextDate = (currentYear: number, currentMonth: number) =>\n currentMonth + 1 === MONTH_NAMES.length ? [currentYear + 1, 0] : [currentYear, currentMonth + 1];\n\nexport const getPrevDate = (currentYear: number, currentMonth: number) =>\n currentMonth - 1 < 0 ? [currentYear - 1, 11] : [currentYear, currentMonth - 1];\n\nexport const getDateFromValue = (date: Date | undefined): DateObject => {\n const state = date || new Date();\n\n return {\n day: date !== undefined ? state.getDate() : 0,\n monthIndex: state.getMonth(),\n year: state.getFullYear(),\n };\n};\n\nexport const getDateFromNow = (): DateObject => {\n const nowDate = new Date();\n\n return {\n day: nowDate.getDate(),\n monthIndex: nowDate.getMonth(),\n year: nowDate.getFullYear(),\n };\n};\n\nexport const IsCurrentDay = (date: DateObject, currentDay: number) => {\n const { day, monthIndex: currentMonthIndex, year: currentYear } = getDateFromNow();\n return day === currentDay && date.monthIndex === currentMonthIndex && date.year === currentYear;\n};\n\nexport const isSelectedDay = (date: DateObject, currentDay: number, value?: Date) => {\n if (!value) {\n return false;\n }\n\n const { day, monthIndex, year } = getDateFromValue(value);\n return day === currentDay && date.monthIndex === monthIndex && date.year === year;\n};\n\nexport const isCurrentMonth = (date: DateObject, monthIndex: number) => {\n const { monthIndex: currentMonthIndex, year: currentYear } = getDateFromNow();\n return monthIndex === currentMonthIndex && date.year === currentYear;\n};\n\nexport const isSelectedMonth = (date: DateObject, monthIndex: number) => date.monthIndex === monthIndex;\n\nexport const isCurrentYear = (year: number) => {\n const { year: currentYear } = getDateFromNow();\n return year === currentYear;\n};\n\nexport const isSelectedYear = (date: DateObject, year: number) => date.year === year;\n\nexport const getSortedValues = (values: [Date | undefined, (Date | undefined)?]) =>\n values.sort((start, end) => {\n if (!start || !end) {\n return -1;\n }\n\n return start.getTime() - end.getTime();\n });\n\nexport const isDayInRange = (\n year: number,\n monthIndex: number,\n currentDay: number,\n values: [Date | undefined, Date?],\n) => {\n const [startValue, endValue] = getSortedValues(values);\n\n if (!endValue || !startValue) {\n return false;\n }\n\n const day = new Date(year, monthIndex, currentDay);\n return startValue < day && day <= endValue;\n};\n\nexport const isSameDay = (firstDate: DateObject, secondDate?: DateObject) =>\n secondDate &&\n firstDate.day === secondDate.day &&\n firstDate.monthIndex === secondDate.monthIndex &&\n firstDate.year === secondDate.year;\n\nexport const isValueUpdate = (value: Date | [Date, Date?], prevValue: Date | [Date, Date?]) => {\n if (!Array.isArray(value) && !Array.isArray(prevValue)) {\n return prevValue?.getTime() !== value?.getTime();\n }\n\n if (Array.isArray(value) && Array.isArray(prevValue)) {\n return prevValue[0]?.getTime() !== value[0]?.getTime() || prevValue[1]?.getTime() !== value[1]?.getTime();\n }\n\n return false;\n};\n\n/**\n * Метод проверяет, находится ли календарь в режиме выбора второго значения.\n */\nexport const isSelectProcess = (array: unknown | unknown[]): array is [Date, Date?] =>\n Array.isArray(array) && !array[1];\n\n/**\n * Метод возвращает сторону, когда выбор второго значения диапазона завершён.\n */\nexport const getSideForSelected = (date: DateObject, startValue: Date, endValue: Date) => {\n const currentDateTime = new Date(date.year, date.monthIndex, date.day).getTime();\n const startValueTime = startValue.getTime();\n const endValueTime = endValue.getTime();\n\n if (currentDateTime === startValueTime) {\n return 'right';\n }\n\n if (currentDateTime === endValueTime) {\n return 'left';\n }\n\n return undefined;\n};\n\n/**\n * Метод возвращает сторону, во время выбора второго значения диапазона.\n */\nexport const getSideForHovered = (date: DateObject, hoveredDay: DateObject, startValue: Date, isSelected?: boolean) => {\n const dateHover = new Date(hoveredDay.year, hoveredDay.monthIndex, hoveredDay.day);\n const isHovered = isSameDay(date, hoveredDay);\n\n if ((isSelected && startValue > dateHover) || (isHovered && startValue < dateHover)) {\n return 'left';\n }\n\n if ((isSelected && startValue < dateHover) || (isHovered && startValue > dateHover)) {\n return 'right';\n }\n\n return undefined;\n};\n\n/**\n * Метод возвращает сторону, с которой нужно отрисовать направление полоски диапазона.\n */\nexport const getSideInRange = (\n value: CalendarValueType,\n date: DateObject,\n hoveredDay?: DateObject,\n isSelected?: boolean,\n) => {\n if (!Array.isArray(value)) {\n return undefined;\n }\n\n const [startValue, endValue] = value;\n\n if (startValue && isSelected && endValue) {\n return getSideForSelected(date, startValue, endValue);\n }\n\n if (startValue && hoveredDay) {\n return getSideForHovered(date, hoveredDay, startValue, isSelected);\n }\n\n return undefined;\n};\n\n/**\n * Метод проверяет, находится ли выбранный день в диапазоне.\n */\nexport const getInRange = (value: CalendarValueType, date: DateObject, hoveredDay?: DateObject, inRange?: boolean) => {\n if (!isSelectProcess(value) || !hoveredDay) {\n return inRange;\n }\n\n const dateSelected = value[0];\n const dateHover = new Date(hoveredDay.year, hoveredDay.monthIndex, hoveredDay.day);\n const dateCurrent = new Date(date.year, date.monthIndex, date.day);\n\n if (\n (dateSelected < dateCurrent && dateCurrent < dateHover) ||\n (dateSelected > dateCurrent && dateCurrent > dateHover)\n ) {\n return true;\n }\n\n return inRange;\n};\n\n/**\n * Метод проверяет, можно ли выбрать день.\n */\nexport const canSelectDate = (\n { year, monthIndex, day }: DateObject,\n value: CalendarValueType,\n disabledList?: DisabledDay[],\n) => {\n if (!isSelectProcess(value)) {\n return true;\n }\n\n const hoverDate = new Date(year, monthIndex, day);\n const [startDate] = value;\n\n if (!disabledList?.length) {\n return true;\n }\n\n const offDisabledRange = disabledList.some(\n ({ date }) => (startDate < date && date < hoverDate) || (startDate > date && date > hoverDate),\n );\n\n return !offDisabledRange;\n};\n\n/**\n * Метод для получения двумерного массива и возвращения выбранного элемента.\n */\nexport const getMatrix = <T extends ItemProps>(items: T[], rowSize = 7): readonly [T[][], number[] | undefined] => {\n const newItems = [...items];\n\n let selected: [number, number] | undefined;\n\n const result = newItems.reduce((acc: T[][], item, index) => {\n if (index % rowSize === 0) {\n acc.push([]);\n }\n\n acc[acc.length - 1].push(item);\n\n if (item.isSelected) {\n selected = [acc.length - 1, index % rowSize];\n }\n\n return acc;\n }, []);\n\n return [result, selected] as const;\n};\n\nexport const getCalendarType = (type: CalendarStateType) => {\n switch (type) {\n case 'Months':\n return 'год';\n case 'Years':\n return 'период';\n default:\n return 'месяц';\n }\n};\n"],"names":["ROW_STEP","YEAR_RENDER_COUNT","SHORT_DAY_NAMES","FULL_DAY_NAMES","Пн","Вт","Ср","Чт","Пт","Сб","Вс","SHORT_MONTH_NAME","MONTH_NAMES","getDaysInMonth","monthIndex","year","Date","getDate","getOffsetDayInWeek","getDay","getStartYear","Math","trunc","getNextDate","currentYear","currentMonth","length","getPrevDate","getDateFromValue","date","state","day","undefined","getMonth","getFullYear","getDateFromNow","nowDate","IsCurrentDay","currentDay","_getDateFromNow","currentMonthIndex","isSelectedDay","value","_getDateFromValue","isCurrentMonth","_getDateFromNow2","isSelectedMonth","isCurrentYear","_getDateFromNow3","isSelectedYear","getSortedValues","values","sort","start","end","getTime","isDayInRange","_getSortedValues","_getSortedValues2","_slicedToArray","startValue","endValue","isSameDay","firstDate","secondDate","isValueUpdate","prevValue","Array","isArray","_prevValue$","_value$","_prevValue$2","_value$2","isSelectProcess","array","getSideForSelected","currentDateTime","startValueTime","endValueTime","getSideForHovered","hoveredDay","isSelected","dateHover","isHovered","getSideInRange","_value","getInRange","inRange","dateSelected","dateCurrent","canSelectDate","_ref","disabledList","hoverDate","_value2","startDate","offDisabledRange","some","_ref2","getMatrix","items","rowSize","arguments","newItems","_toConsumableArray","selected","result","reduce","acc","item","index","push","getCalendarType","type"],"mappings":";;AAGO,IAAMA,QAAQ,GAAG,EAAC;AAElB,IAAMC,iBAAiB,GAAG,GAAE;IAEtBC,eAAe,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAU;AAE3E,IAAMC,cAA8D,GAAG;AAC1EC,EAAAA,EAAE,EAAE,aAAa;AACjBC,EAAAA,EAAE,EAAE,SAAS;AACbC,EAAAA,EAAE,EAAE,OAAO;AACXC,EAAAA,EAAE,EAAE,SAAS;AACbC,EAAAA,EAAE,EAAE,SAAS;AACbC,EAAAA,EAAE,EAAE,SAAS;AACbC,EAAAA,EAAE,EAAE,aAAA;AACR,EAAC;AAEM,IAAMC,gBAAgB,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAC;AAEhH,IAAMC,WAAW,GAAG,CACvB,QAAQ,EACR,SAAS,EACT,MAAM,EACN,QAAQ,EACR,KAAK,EACL,MAAM,EACN,MAAM,EACN,QAAQ,EACR,UAAU,EACV,SAAS,EACT,QAAQ,EACR,SAAS,EACZ;AAEM,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,CAAIC,UAAkB,EAAEC,IAAY,EAAA;AAAA,EAAA,OAAK,IAAIC,IAAI,CAACD,IAAI,EAAED,UAAU,GAAG,CAAC,EAAE,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;;;"}
@@ -17,6 +17,8 @@ var tokens = {
17
17
  focusColor: '--plasma-chip-focus-color',
18
18
  outlineSize: '--plasma-chip-outline-size',
19
19
  closeIconColor: '--plasma-chip-close-icon-color',
20
+ closeIconColorHover: '--plasma-chip-close-icon-color-hover',
21
+ closeIconColorActive: '--plasma-chip-close-icon-color-active',
20
22
  borderRadius: '--plasma-chip-border-radius',
21
23
  pilledBorderRadius: '--plasma-chip-pilled-border-radius',
22
24
  width: '--plasma-chip-width',
@@ -1 +1 @@
1
- {"version":3,"file":"Chip.tokens.js","sources":["../../../src/components/Chip/Chip.tokens.ts"],"sourcesContent":["export const classes = {\n pilled: 'chip-pilled',\n};\n\nexport const tokens = {\n background: '--plasma-chip-background',\n color: '--plasma-chip-color',\n backgroundHover: '--plasma-chip-background-hover',\n colorHover: '--plasma-chip-color-hover',\n scaleHover: '--plasma-chip-scale-hover',\n backgroundReadOnly: '--plasma-chip-background-readonly',\n colorReadOnly: '--plasma-chip-color-readonly',\n backgroundReadOnlyHover: '--plasma-chip-background-readonly-hover',\n colorReadOnlyHover: '--plasma-chip-color-readonly-hover',\n backgroundActive: '--plasma-chip-background-active',\n colorActive: '--plasma-chip-color-active',\n scaleActive: '--plasma-chip-scale-active',\n focusColor: '--plasma-chip-focus-color',\n outlineSize: '--plasma-chip-outline-size',\n closeIconColor: '--plasma-chip-close-icon-color',\n\n borderRadius: '--plasma-chip-border-radius',\n pilledBorderRadius: '--plasma-chip-pilled-border-radius',\n width: '--plasma-chip-width',\n height: '--plasma-chip-height',\n paddingTop: '--plasma-chip-padding-top',\n paddingRight: '--plasma-chip-padding-right',\n paddingBottom: '--plasma-chip-padding-bottom',\n paddingLeft: '--plasma-chip-padding-left',\n closeIconSize: '--plasma-chip-close-icon-size',\n\n disabledOpacity: '--plasma-chip-disabled-opacity',\n\n fontFamily: '--plasma-chip-font-family',\n fontSize: '--plasma-chip-font-size',\n fontStyle: '--plasma-chip-font-style',\n fontWeight: '--plasma-chip-font-weight',\n letterSpacing: '--plasma-chip-letter-spacing',\n lineHeight: '--plasma-chip-lineheight',\n\n leftContentMarginLeft: '--plasma-chip-left-content-margin-left',\n leftContentMarginRight: '--plasma-chip-left-content-margin-right',\n rightContentMarginLeft: '--plasma-chip-right-content-margin-left',\n rightContentMarginRight: '--plasma-chip-right-content-margin-right',\n clearContentMarginLeft: '--plasma-chip-clear-content-margin-left',\n clearContentMarginRight: '--plasma-chip-clear-content-margin-right',\n};\n"],"names":["classes","pilled","tokens","background","color","backgroundHover","colorHover","scaleHover","backgroundReadOnly","colorReadOnly","backgroundReadOnlyHover","colorReadOnlyHover","backgroundActive","colorActive","scaleActive","focusColor","outlineSize","closeIconColor","borderRadius","pilledBorderRadius","width","height","paddingTop","paddingRight","paddingBottom","paddingLeft","closeIconSize","disabledOpacity","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","leftContentMarginLeft","leftContentMarginRight","rightContentMarginLeft","rightContentMarginRight","clearContentMarginLeft","clearContentMarginRight"],"mappings":"AAAO,IAAMA,OAAO,GAAG;AACnBC,EAAAA,MAAM,EAAE,aAAA;AACZ,EAAC;AAEM,IAAMC,MAAM,GAAG;AAClBC,EAAAA,UAAU,EAAE,0BAA0B;AACtCC,EAAAA,KAAK,EAAE,qBAAqB;AAC5BC,EAAAA,eAAe,EAAE,gCAAgC;AACjDC,EAAAA,UAAU,EAAE,2BAA2B;AACvCC,EAAAA,UAAU,EAAE,2BAA2B;AACvCC,EAAAA,kBAAkB,EAAE,mCAAmC;AACvDC,EAAAA,aAAa,EAAE,8BAA8B;AAC7CC,EAAAA,uBAAuB,EAAE,yCAAyC;AAClEC,EAAAA,kBAAkB,EAAE,oCAAoC;AACxDC,EAAAA,gBAAgB,EAAE,iCAAiC;AACnDC,EAAAA,WAAW,EAAE,4BAA4B;AACzCC,EAAAA,WAAW,EAAE,4BAA4B;AACzCC,EAAAA,UAAU,EAAE,2BAA2B;AACvCC,EAAAA,WAAW,EAAE,4BAA4B;AACzCC,EAAAA,cAAc,EAAE,gCAAgC;AAEhDC,EAAAA,YAAY,EAAE,6BAA6B;AAC3CC,EAAAA,kBAAkB,EAAE,oCAAoC;AACxDC,EAAAA,KAAK,EAAE,qBAAqB;AAC5BC,EAAAA,MAAM,EAAE,sBAAsB;AAC9BC,EAAAA,UAAU,EAAE,2BAA2B;AACvCC,EAAAA,YAAY,EAAE,6BAA6B;AAC3CC,EAAAA,aAAa,EAAE,8BAA8B;AAC7CC,EAAAA,WAAW,EAAE,4BAA4B;AACzCC,EAAAA,aAAa,EAAE,+BAA+B;AAE9CC,EAAAA,eAAe,EAAE,gCAAgC;AAEjDC,EAAAA,UAAU,EAAE,2BAA2B;AACvCC,EAAAA,QAAQ,EAAE,yBAAyB;AACnCC,EAAAA,SAAS,EAAE,0BAA0B;AACrCC,EAAAA,UAAU,EAAE,2BAA2B;AACvCC,EAAAA,aAAa,EAAE,8BAA8B;AAC7CC,EAAAA,UAAU,EAAE,0BAA0B;AAEtCC,EAAAA,qBAAqB,EAAE,wCAAwC;AAC/DC,EAAAA,sBAAsB,EAAE,yCAAyC;AACjEC,EAAAA,sBAAsB,EAAE,yCAAyC;AACjEC,EAAAA,uBAAuB,EAAE,0CAA0C;AACnEC,EAAAA,sBAAsB,EAAE,yCAAyC;AACjEC,EAAAA,uBAAuB,EAAE,0CAAA;AAC7B;;;;"}
1
+ {"version":3,"file":"Chip.tokens.js","sources":["../../../src/components/Chip/Chip.tokens.ts"],"sourcesContent":["export const classes = {\n pilled: 'chip-pilled',\n};\n\nexport const tokens = {\n background: '--plasma-chip-background',\n color: '--plasma-chip-color',\n backgroundHover: '--plasma-chip-background-hover',\n colorHover: '--plasma-chip-color-hover',\n scaleHover: '--plasma-chip-scale-hover',\n backgroundReadOnly: '--plasma-chip-background-readonly',\n colorReadOnly: '--plasma-chip-color-readonly',\n backgroundReadOnlyHover: '--plasma-chip-background-readonly-hover',\n colorReadOnlyHover: '--plasma-chip-color-readonly-hover',\n backgroundActive: '--plasma-chip-background-active',\n colorActive: '--plasma-chip-color-active',\n scaleActive: '--plasma-chip-scale-active',\n focusColor: '--plasma-chip-focus-color',\n outlineSize: '--plasma-chip-outline-size',\n closeIconColor: '--plasma-chip-close-icon-color',\n closeIconColorHover: '--plasma-chip-close-icon-color-hover',\n closeIconColorActive: '--plasma-chip-close-icon-color-active',\n\n borderRadius: '--plasma-chip-border-radius',\n pilledBorderRadius: '--plasma-chip-pilled-border-radius',\n width: '--plasma-chip-width',\n height: '--plasma-chip-height',\n paddingTop: '--plasma-chip-padding-top',\n paddingRight: '--plasma-chip-padding-right',\n paddingBottom: '--plasma-chip-padding-bottom',\n paddingLeft: '--plasma-chip-padding-left',\n closeIconSize: '--plasma-chip-close-icon-size',\n\n disabledOpacity: '--plasma-chip-disabled-opacity',\n\n fontFamily: '--plasma-chip-font-family',\n fontSize: '--plasma-chip-font-size',\n fontStyle: '--plasma-chip-font-style',\n fontWeight: '--plasma-chip-font-weight',\n letterSpacing: '--plasma-chip-letter-spacing',\n lineHeight: '--plasma-chip-lineheight',\n\n leftContentMarginLeft: '--plasma-chip-left-content-margin-left',\n leftContentMarginRight: '--plasma-chip-left-content-margin-right',\n rightContentMarginLeft: '--plasma-chip-right-content-margin-left',\n rightContentMarginRight: '--plasma-chip-right-content-margin-right',\n clearContentMarginLeft: '--plasma-chip-clear-content-margin-left',\n clearContentMarginRight: '--plasma-chip-clear-content-margin-right',\n};\n"],"names":["classes","pilled","tokens","background","color","backgroundHover","colorHover","scaleHover","backgroundReadOnly","colorReadOnly","backgroundReadOnlyHover","colorReadOnlyHover","backgroundActive","colorActive","scaleActive","focusColor","outlineSize","closeIconColor","closeIconColorHover","closeIconColorActive","borderRadius","pilledBorderRadius","width","height","paddingTop","paddingRight","paddingBottom","paddingLeft","closeIconSize","disabledOpacity","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","leftContentMarginLeft","leftContentMarginRight","rightContentMarginLeft","rightContentMarginRight","clearContentMarginLeft","clearContentMarginRight"],"m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,EAAE,8BAA8B;AAC7CC,EAAAA,UAAU,EAAE,0BAA0B;AAEtCC,EAAAA,qBAAqB,EAAE,wCAAwC;AAC/DC,EAAAA,sBAAsB,EAAE,yCAAyC;AACjEC,EAAAA,sBAAsB,EAAE,yCAAyC;AACjEC,EAAAA,uBAAuB,EAAE,0CAA0C;AACnEC,EAAAA,sBAAsB,EAAE,yCAAyC;AACjEC,EAAAA,uBAAuB,EAAE,0CAAA;AAC7B;;;;"}
@@ -2,10 +2,11 @@ import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _
2
2
  import React, { forwardRef, useState, useRef, useEffect, Children } from 'react';
3
3
  import { safeUseId, useForkRef } from '@salutejs/plasma-core';
4
4
  import { cx } from '../../utils/index.js';
5
- import { getChildren, getValues, getNewSelected } from '../Select/utils/index.js';
6
- import { useKeyNavigation } from '../Select/hooks/useKeyNavigation.js';
5
+ import { getPlacements } from '../Dropdown/utils/index.js';
7
6
  import { useForceUpdate } from '../../hooks/useForceUpdate.js';
8
7
  import { useDidMountEffect } from '../../hooks/useDidMountEffect.js';
8
+ import { getChildren, getValues, getNewSelected } from './utils/index.js';
9
+ import { useKeyNavigation } from './hooks/useKeyNavigation.js';
9
10
  import { base } from './variations/_view/base.js';
10
11
  import { base as base$1 } from './variations/_size/base.js';
11
12
  import '@linaria/react';
@@ -16,7 +17,6 @@ import 'react-popper';
16
17
  import 'styled-components';
17
18
  import { ComboboxTarget } from './ui/ComboboxTarget/ComboboxTarget.js';
18
19
  import { StyledRoot, StyledNativeSelect, StyledPopover, StyledCombobox, ComboboxItemNotFound } from './Combobox.styles.js';
19
- import { getPlacements } from '../../utils/getPopoverPlacement.js';
20
20
 
21
21
  var _excluded = ["name", "form", "readOnly", "disabled", "label", "placeholder", "id", "children", "role", "view", "size", "frame", "usePortal", "negativeResultContent", "enumerationType", "opened", "placement", "onToggle", "onKeyDown", "filterFunction"];
22
22
  /**