@salutejs/plasma-new-hope 0.76.2-canary.1183.8704434655.0 → 0.76.2-canary.1184.8705168480.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (349) hide show
  1. package/cjs/_virtual/_rollupPluginBabelHelpers.js +1 -1
  2. package/cjs/components/Calendar/CalendarBase/CalendarBase.js +1 -1
  3. package/cjs/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
  4. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +1 -1
  5. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
  6. package/cjs/components/Calendar/hoc/withRange.js +1 -1
  7. package/cjs/components/Calendar/hoc/withRange.js.map +1 -1
  8. package/cjs/components/Calendar/hooks/useKeyNavigation.js +19 -19
  9. package/cjs/components/Calendar/hooks/useKeyNavigation.js.map +1 -1
  10. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +3 -3
  11. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js.map +1 -1
  12. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +2 -2
  13. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  14. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
  15. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
  16. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
  17. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
  18. package/cjs/components/Chip/Chip.js +2 -2
  19. package/cjs/components/Chip/Chip.js.map +1 -1
  20. package/cjs/components/Combobox/Combobox.js +5 -5
  21. package/cjs/components/Combobox/Combobox.js.map +1 -1
  22. package/cjs/components/Combobox/hooks/useFocusController.js +9 -9
  23. package/cjs/components/Combobox/hooks/useFocusController.js.map +1 -1
  24. package/cjs/components/Combobox/ui/ComboboxChip/ComboboxChip.js +1 -1
  25. package/cjs/components/Combobox/ui/ComboboxChip/ComboboxChip.js.map +1 -1
  26. package/cjs/components/Combobox/ui/ComboboxTarget/ComboboxTarget.js +6 -6
  27. package/cjs/components/Combobox/ui/ComboboxTarget/ComboboxTarget.js.map +1 -1
  28. package/cjs/components/Drawer/DrawerContext.js +1 -1
  29. package/cjs/components/Drawer/DrawerContext.js.map +1 -1
  30. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +2 -2
  31. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  32. package/cjs/components/Modal/ModalContext.js +1 -1
  33. package/cjs/components/Modal/ModalContext.js.map +1 -1
  34. package/cjs/components/Overlay/Overlay.js +1 -1
  35. package/cjs/components/Overlay/Overlay.js.map +1 -1
  36. package/cjs/components/Pagination/Pagination.js +2 -2
  37. package/cjs/components/Pagination/Pagination.js.map +1 -1
  38. package/cjs/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.js +1 -1
  39. package/cjs/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.js.map +1 -1
  40. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +1 -1
  41. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js.map +1 -1
  42. package/cjs/components/Popover/Popover.js +7 -7
  43. package/cjs/components/Popover/Popover.js.map +1 -1
  44. package/cjs/components/Popup/Popup.js +1 -1
  45. package/cjs/components/Popup/Popup.js.map +1 -1
  46. package/cjs/components/Segment/ui/SegmentItem/SegmentItem.js +2 -2
  47. package/cjs/components/Segment/ui/SegmentItem/SegmentItem.js.map +1 -1
  48. package/cjs/components/Select/Select.js +5 -5
  49. package/cjs/components/Select/Select.js.map +1 -1
  50. package/cjs/components/Select/hooks/useKeyNavigation.js +12 -12
  51. package/cjs/components/Select/hooks/useKeyNavigation.js.map +1 -1
  52. package/cjs/components/Select/ui/SelectChip/SelectChip.js +1 -1
  53. package/cjs/components/Select/ui/SelectChip/SelectChip.js.map +1 -1
  54. package/cjs/components/Select/ui/SelectTarget/SelectTarget.js +2 -2
  55. package/cjs/components/Select/ui/SelectTarget/SelectTarget.js.map +1 -1
  56. package/cjs/components/Select/utils/index.js +2 -2
  57. package/cjs/components/Select/utils/index.js.map +1 -1
  58. package/cjs/components/Tabs/TabsContext.js +1 -2
  59. package/cjs/components/Tabs/TabsContext.js.map +1 -1
  60. package/cjs/components/Tabs/ui/TabItem/TabItem.js +1 -1
  61. package/cjs/components/Tabs/ui/TabItem/TabItem.js.map +1 -1
  62. package/cjs/components/Tabs/ui/Tabs/Tabs.js +2 -2
  63. package/cjs/components/Tabs/ui/Tabs/Tabs.js.map +1 -1
  64. package/cjs/components/TextArea/TextArea.js +1 -1
  65. package/cjs/components/TextArea/TextArea.js.map +1 -1
  66. package/cjs/components/TextField/TextField.js +2 -2
  67. package/cjs/components/TextField/TextField.js.map +1 -1
  68. package/cjs/components/TextField/hooks/useKeyNavigation.js +9 -9
  69. package/cjs/components/TextField/hooks/useKeyNavigation.js.map +1 -1
  70. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +1 -1
  71. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +1 -1
  72. package/cjs/components/Toast/ToastProvider/ToastProvider.js +2 -2
  73. package/cjs/components/Toast/ToastProvider/ToastProvider.js.map +1 -1
  74. package/cjs/components/Tooltip/Tooltip.js +1 -1
  75. package/cjs/components/Tooltip/Tooltip.js.map +1 -1
  76. package/es/_virtual/_rollupPluginBabelHelpers.js +1 -1
  77. package/es/components/Calendar/CalendarBase/CalendarBase.js +1 -1
  78. package/es/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
  79. package/es/components/Calendar/CalendarDouble/CalendarDouble.js +1 -1
  80. package/es/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
  81. package/es/components/Calendar/hoc/withRange.js +1 -1
  82. package/es/components/Calendar/hoc/withRange.js.map +1 -1
  83. package/es/components/Calendar/hooks/useKeyNavigation.js +19 -19
  84. package/es/components/Calendar/hooks/useKeyNavigation.js.map +1 -1
  85. package/es/components/Calendar/ui/CalendarDays/CalendarDays.js +3 -3
  86. package/es/components/Calendar/ui/CalendarDays/CalendarDays.js.map +1 -1
  87. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +2 -2
  88. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  89. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
  90. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
  91. package/es/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
  92. package/es/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
  93. package/es/components/Chip/Chip.js +2 -2
  94. package/es/components/Chip/Chip.js.map +1 -1
  95. package/es/components/Combobox/Combobox.js +5 -5
  96. package/es/components/Combobox/Combobox.js.map +1 -1
  97. package/es/components/Combobox/hooks/useFocusController.js +9 -9
  98. package/es/components/Combobox/hooks/useFocusController.js.map +1 -1
  99. package/es/components/Combobox/ui/ComboboxChip/ComboboxChip.js +1 -1
  100. package/es/components/Combobox/ui/ComboboxChip/ComboboxChip.js.map +1 -1
  101. package/es/components/Combobox/ui/ComboboxTarget/ComboboxTarget.js +6 -6
  102. package/es/components/Combobox/ui/ComboboxTarget/ComboboxTarget.js.map +1 -1
  103. package/es/components/Drawer/DrawerContext.js +1 -1
  104. package/es/components/Drawer/DrawerContext.js.map +1 -1
  105. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +2 -2
  106. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  107. package/es/components/Modal/ModalContext.js +1 -1
  108. package/es/components/Modal/ModalContext.js.map +1 -1
  109. package/es/components/Overlay/Overlay.js +1 -1
  110. package/es/components/Overlay/Overlay.js.map +1 -1
  111. package/es/components/Pagination/Pagination.js +2 -2
  112. package/es/components/Pagination/Pagination.js.map +1 -1
  113. package/es/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.js +1 -1
  114. package/es/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.js.map +1 -1
  115. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +1 -1
  116. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js.map +1 -1
  117. package/es/components/Popover/Popover.js +7 -7
  118. package/es/components/Popover/Popover.js.map +1 -1
  119. package/es/components/Popup/Popup.js +1 -1
  120. package/es/components/Popup/Popup.js.map +1 -1
  121. package/es/components/Segment/ui/SegmentItem/SegmentItem.js +2 -2
  122. package/es/components/Segment/ui/SegmentItem/SegmentItem.js.map +1 -1
  123. package/es/components/Select/Select.js +5 -5
  124. package/es/components/Select/Select.js.map +1 -1
  125. package/es/components/Select/hooks/useKeyNavigation.js +12 -12
  126. package/es/components/Select/hooks/useKeyNavigation.js.map +1 -1
  127. package/es/components/Select/ui/SelectChip/SelectChip.js +1 -1
  128. package/es/components/Select/ui/SelectChip/SelectChip.js.map +1 -1
  129. package/es/components/Select/ui/SelectTarget/SelectTarget.js +2 -2
  130. package/es/components/Select/ui/SelectTarget/SelectTarget.js.map +1 -1
  131. package/es/components/Select/utils/index.js +2 -2
  132. package/es/components/Select/utils/index.js.map +1 -1
  133. package/es/components/Tabs/TabsContext.js +1 -2
  134. package/es/components/Tabs/TabsContext.js.map +1 -1
  135. package/es/components/Tabs/ui/TabItem/TabItem.js +1 -1
  136. package/es/components/Tabs/ui/TabItem/TabItem.js.map +1 -1
  137. package/es/components/Tabs/ui/Tabs/Tabs.js +2 -2
  138. package/es/components/Tabs/ui/Tabs/Tabs.js.map +1 -1
  139. package/es/components/TextArea/TextArea.js +1 -1
  140. package/es/components/TextArea/TextArea.js.map +1 -1
  141. package/es/components/TextField/TextField.js +2 -2
  142. package/es/components/TextField/TextField.js.map +1 -1
  143. package/es/components/TextField/hooks/useKeyNavigation.js +9 -9
  144. package/es/components/TextField/hooks/useKeyNavigation.js.map +1 -1
  145. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +1 -1
  146. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +1 -1
  147. package/es/components/Toast/ToastProvider/ToastProvider.js +2 -2
  148. package/es/components/Toast/ToastProvider/ToastProvider.js.map +1 -1
  149. package/es/components/Tooltip/Tooltip.js +1 -1
  150. package/es/components/Tooltip/Tooltip.js.map +1 -1
  151. package/package.json +10 -10
  152. package/styled-components/cjs/components/Avatar/Avatar.js +1 -1
  153. package/styled-components/cjs/components/Avatar/Avatar.styles.js +1 -1
  154. package/styled-components/cjs/components/AvatarGroup/AvatarGroup.js +1 -1
  155. package/styled-components/cjs/components/Badge/Badge.js +1 -1
  156. package/styled-components/cjs/components/Badge/Badge.styles.js +1 -1
  157. package/styled-components/cjs/components/Button/Button.js +2 -2
  158. package/styled-components/cjs/components/Button/Button.styles.js +1 -1
  159. package/styled-components/cjs/components/ButtonGroup/ButtonGroup.js +1 -1
  160. package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.js +2 -2
  161. package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
  162. package/styled-components/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +2 -2
  163. package/styled-components/cjs/components/Calendar/CalendarDouble/CalendarDouble.styles.js +1 -1
  164. package/styled-components/cjs/components/Calendar/hoc/withRange.js +2 -2
  165. package/styled-components/cjs/components/Calendar/hooks/useKeyNavigation.js +20 -20
  166. package/styled-components/cjs/components/Calendar/store/reducer.js +1 -1
  167. package/styled-components/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.js +1 -1
  168. package/styled-components/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +4 -4
  169. package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +3 -3
  170. package/styled-components/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +2 -2
  171. package/styled-components/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +2 -2
  172. package/styled-components/cjs/components/Cell/Cell.js +1 -1
  173. package/styled-components/cjs/components/Cell/Cell.styles.js +1 -1
  174. package/styled-components/cjs/components/Checkbox/Checkbox.js +1 -1
  175. package/styled-components/cjs/components/Chip/Chip.js +3 -3
  176. package/styled-components/cjs/components/Chip/Chip.styles.js +1 -1
  177. package/styled-components/cjs/components/Combobox/Combobox.js +6 -6
  178. package/styled-components/cjs/components/Combobox/hooks/useFocusController.js +9 -9
  179. package/styled-components/cjs/components/Combobox/ui/ComboboxChip/ComboboxChip.js +2 -2
  180. package/styled-components/cjs/components/Combobox/ui/ComboboxTarget/ComboboxTarget.js +7 -7
  181. package/styled-components/cjs/components/Counter/Counter.js +1 -1
  182. package/styled-components/cjs/components/Divider/Divider.js +2 -2
  183. package/styled-components/cjs/components/Drawer/Drawer.js +1 -1
  184. package/styled-components/cjs/components/Drawer/DrawerContext.js +1 -1
  185. package/styled-components/cjs/components/Drawer/hooks/useDrawer.js +1 -1
  186. package/styled-components/cjs/components/Drawer/ui/DrawerContent/DrawerContent.js +1 -1
  187. package/styled-components/cjs/components/Drawer/ui/DrawerFooter/DrawerFooter.js +1 -1
  188. package/styled-components/cjs/components/Drawer/ui/DrawerHeader/DrawerHeader.js +1 -1
  189. package/styled-components/cjs/components/Dropdown/Dropdown.js +1 -1
  190. package/styled-components/cjs/components/Dropdown/ui/DropdownDivider/DropdownDivider.js +1 -1
  191. package/styled-components/cjs/components/Dropdown/ui/DropdownFooter/DropdownFooter.js +1 -1
  192. package/styled-components/cjs/components/Dropdown/ui/DropdownGroup/DropdownGroup.js +1 -1
  193. package/styled-components/cjs/components/Dropdown/ui/DropdownHeader/DropdownHeader.js +1 -1
  194. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +4 -4
  195. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +1 -1
  196. package/styled-components/cjs/components/Dropdown/utils/index.js +1 -1
  197. package/styled-components/cjs/components/Grid/Grid.js +2 -2
  198. package/styled-components/cjs/components/Grid/ui/Col/Col.js +2 -2
  199. package/styled-components/cjs/components/Grid/ui/Row/Row.js +1 -1
  200. package/styled-components/cjs/components/Grid/utils/index.js +1 -1
  201. package/styled-components/cjs/components/Header/HeaderRoot/HeaderRoot.js +1 -1
  202. package/styled-components/cjs/components/Header/ui/HeaderArrow/HeaderArrow.js +1 -1
  203. package/styled-components/cjs/components/Header/ui/HeaderLogo/HeaderLogo.js +1 -1
  204. package/styled-components/cjs/components/Header/ui/HeaderTitleWrapper/HeaderTitleWrapper.js +1 -1
  205. package/styled-components/cjs/components/Image/Image.js +2 -2
  206. package/styled-components/cjs/components/Image/Image.styles.js +1 -1
  207. package/styled-components/cjs/components/Indicator/Indicator.js +1 -1
  208. package/styled-components/cjs/components/Link/Link.js +1 -1
  209. package/styled-components/cjs/components/Modal/Modal.js +1 -1
  210. package/styled-components/cjs/components/Modal/ModalContext.js +1 -1
  211. package/styled-components/cjs/components/Modal/hooks/useModal.js +1 -1
  212. package/styled-components/cjs/components/Notification/Notification.js +1 -1
  213. package/styled-components/cjs/components/Notification/Notification.styles.js +1 -1
  214. package/styled-components/cjs/components/Notification/NotificationsPortal.js +1 -1
  215. package/styled-components/cjs/components/Notification/NotificationsStore.js +1 -1
  216. package/styled-components/cjs/components/Overlay/Overlay.js +2 -2
  217. package/styled-components/cjs/components/Pagination/Pagination.js +3 -3
  218. package/styled-components/cjs/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.js +2 -2
  219. package/styled-components/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +2 -2
  220. package/styled-components/cjs/components/Panel/Panel.js +2 -2
  221. package/styled-components/cjs/components/Panel/ui/PanelContent/PanelContent.js +1 -1
  222. package/styled-components/cjs/components/Panel/ui/PanelFooter/PanelFooter.js +1 -1
  223. package/styled-components/cjs/components/Panel/ui/PanelHeader/PanelHeader.js +1 -1
  224. package/styled-components/cjs/components/Popover/Popover.js +9 -9
  225. package/styled-components/cjs/components/Popup/Popup.js +2 -2
  226. package/styled-components/cjs/components/Popup/PopupContext.js +1 -1
  227. package/styled-components/cjs/components/Popup/PopupRoot.js +1 -1
  228. package/styled-components/cjs/components/Popup/hooks/usePopup.js +1 -1
  229. package/styled-components/cjs/components/Progress/Progress.js +1 -1
  230. package/styled-components/cjs/components/Progress/Progress.styles.js +1 -1
  231. package/styled-components/cjs/components/Radiobox/Radiobox.js +1 -1
  232. package/styled-components/cjs/components/SSRProvider/SSRProvider.js +1 -1
  233. package/styled-components/cjs/components/Segment/SegmentProvider/SegmentProvider.js +1 -1
  234. package/styled-components/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js +1 -1
  235. package/styled-components/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.styles.js +1 -1
  236. package/styled-components/cjs/components/Segment/ui/SegmentItem/SegmentItem.js +3 -3
  237. package/styled-components/cjs/components/Segment/ui/SegmentItem/SegmentItem.styles.js +1 -1
  238. package/styled-components/cjs/components/Select/Select.js +6 -6
  239. package/styled-components/cjs/components/Select/hooks/useKeyNavigation.js +12 -12
  240. package/styled-components/cjs/components/Select/ui/SelectChip/SelectChip.js +2 -2
  241. package/styled-components/cjs/components/Select/ui/SelectTarget/SelectTarget.js +3 -3
  242. package/styled-components/cjs/components/Select/utils/index.js +3 -3
  243. package/styled-components/cjs/components/Skeleton/LineSkeleton/LineSkeleton.js +1 -1
  244. package/styled-components/cjs/components/Skeleton/LineSkeleton/LineSkeleton.styles.js +1 -1
  245. package/styled-components/cjs/components/Skeleton/RectSkeleton/RectSkeleton.js +1 -1
  246. package/styled-components/cjs/components/Skeleton/TextSkeleton/TextSkeleton.js +2 -2
  247. package/styled-components/cjs/components/Skeleton/hoc/withSkeleton.js +1 -1
  248. package/styled-components/cjs/components/Spinner/Spinner.js +1 -1
  249. package/styled-components/cjs/components/Spinner/Spinner.styles.js +1 -1
  250. package/styled-components/cjs/components/Spinner/utils/index.js +1 -1
  251. package/styled-components/cjs/components/Switch/Switch.js +1 -1
  252. package/styled-components/cjs/components/Tabs/TabsContext.js +2 -3
  253. package/styled-components/cjs/components/Tabs/createTabsController.js +1 -1
  254. package/styled-components/cjs/components/Tabs/ui/TabItem/TabItem.js +2 -2
  255. package/styled-components/cjs/components/Tabs/ui/TabItem/TabItem.styles.js +1 -1
  256. package/styled-components/cjs/components/Tabs/ui/Tabs/Tabs.js +3 -3
  257. package/styled-components/cjs/components/Tabs/ui/Tabs/Tabs.styles.js +1 -1
  258. package/styled-components/cjs/components/TextArea/TextArea.js +2 -2
  259. package/styled-components/cjs/components/TextField/TextField.js +3 -3
  260. package/styled-components/cjs/components/TextField/hooks/useKeyNavigation.js +9 -9
  261. package/styled-components/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +2 -2
  262. package/styled-components/cjs/components/Toast/Toast.js +2 -2
  263. package/styled-components/cjs/components/Toast/Toast.styles.js +1 -1
  264. package/styled-components/cjs/components/Toast/ToastController.js +2 -2
  265. package/styled-components/cjs/components/Toast/ToastProvider/ToastProvider.js +3 -3
  266. package/styled-components/cjs/components/Toolbar/Toolbar.js +1 -1
  267. package/styled-components/cjs/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.js +1 -1
  268. package/styled-components/cjs/components/Tooltip/Tooltip.js +2 -2
  269. package/styled-components/cjs/components/Typography/Old/Subtitle/Subtitle.js +2 -2
  270. package/styled-components/cjs/components/Typography/Old/TypographyOld.js +2 -2
  271. package/styled-components/cjs/components/Typography/Typography.js +2 -2
  272. package/styled-components/cjs/engines/common.js +1 -1
  273. package/styled-components/cjs/engines/styled-components.js +1 -1
  274. package/styled-components/cjs/examples/_helpers.js +1 -1
  275. package/styled-components/cjs/examples/plasma_b2c/components/Button/Button.stories.tsx +11 -27
  276. package/styled-components/cjs/examples/plasma_b2c/components/Grid/Grid.config.js +1 -1
  277. package/styled-components/cjs/examples/plasma_web/components/Grid/Grid.config.js +1 -1
  278. package/styled-components/cjs/examples/sds_engineer/components/Grid/Grid.config.js +1 -1
  279. package/styled-components/cjs/mixins/applySpacing.js +1 -1
  280. package/styled-components/cjs/mixins/typography.js +1 -1
  281. package/styled-components/es/components/Button/Button.js +1 -1
  282. package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.js +1 -1
  283. package/styled-components/es/components/Calendar/CalendarDouble/CalendarDouble.js +1 -1
  284. package/styled-components/es/components/Calendar/hoc/withRange.js +1 -1
  285. package/styled-components/es/components/Calendar/hooks/useKeyNavigation.js +20 -20
  286. package/styled-components/es/components/Calendar/store/reducer.js +1 -1
  287. package/styled-components/es/components/Calendar/ui/CalendarDays/CalendarDays.js +3 -3
  288. package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +2 -2
  289. package/styled-components/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
  290. package/styled-components/es/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
  291. package/styled-components/es/components/Chip/Chip.js +2 -2
  292. package/styled-components/es/components/Combobox/Combobox.js +5 -5
  293. package/styled-components/es/components/Combobox/hooks/useFocusController.js +9 -9
  294. package/styled-components/es/components/Combobox/ui/ComboboxChip/ComboboxChip.js +1 -1
  295. package/styled-components/es/components/Combobox/ui/ComboboxTarget/ComboboxTarget.js +6 -6
  296. package/styled-components/es/components/Divider/Divider.js +1 -1
  297. package/styled-components/es/components/Drawer/DrawerContext.js +1 -1
  298. package/styled-components/es/components/Drawer/hooks/useDrawer.js +1 -1
  299. package/styled-components/es/components/Drawer/ui/DrawerContent/DrawerContent.js +1 -1
  300. package/styled-components/es/components/Drawer/ui/DrawerFooter/DrawerFooter.js +1 -1
  301. package/styled-components/es/components/Drawer/ui/DrawerHeader/DrawerHeader.js +1 -1
  302. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +3 -3
  303. package/styled-components/es/components/Grid/Grid.js +1 -1
  304. package/styled-components/es/components/Grid/ui/Col/Col.js +1 -1
  305. package/styled-components/es/components/Grid/utils/index.js +1 -1
  306. package/styled-components/es/components/Image/Image.js +1 -1
  307. package/styled-components/es/components/Modal/ModalContext.js +1 -1
  308. package/styled-components/es/components/Modal/hooks/useModal.js +1 -1
  309. package/styled-components/es/components/Notification/NotificationsStore.js +1 -1
  310. package/styled-components/es/components/Overlay/Overlay.js +1 -1
  311. package/styled-components/es/components/Pagination/Pagination.js +2 -2
  312. package/styled-components/es/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.js +1 -1
  313. package/styled-components/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +1 -1
  314. package/styled-components/es/components/Panel/Panel.js +1 -1
  315. package/styled-components/es/components/Popover/Popover.js +8 -8
  316. package/styled-components/es/components/Popup/Popup.js +1 -1
  317. package/styled-components/es/components/Popup/hooks/usePopup.js +1 -1
  318. package/styled-components/es/components/Segment/ui/SegmentItem/SegmentItem.js +2 -2
  319. package/styled-components/es/components/Select/Select.js +5 -5
  320. package/styled-components/es/components/Select/hooks/useKeyNavigation.js +12 -12
  321. package/styled-components/es/components/Select/ui/SelectChip/SelectChip.js +1 -1
  322. package/styled-components/es/components/Select/ui/SelectTarget/SelectTarget.js +2 -2
  323. package/styled-components/es/components/Select/utils/index.js +3 -3
  324. package/styled-components/es/components/Skeleton/TextSkeleton/TextSkeleton.js +1 -1
  325. package/styled-components/es/components/Skeleton/hoc/withSkeleton.js +1 -1
  326. package/styled-components/es/components/Spinner/utils/index.js +1 -1
  327. package/styled-components/es/components/Tabs/TabsContext.js +2 -3
  328. package/styled-components/es/components/Tabs/ui/TabItem/TabItem.js +1 -1
  329. package/styled-components/es/components/Tabs/ui/Tabs/Tabs.js +2 -2
  330. package/styled-components/es/components/TextArea/TextArea.js +1 -1
  331. package/styled-components/es/components/TextField/TextField.js +2 -2
  332. package/styled-components/es/components/TextField/hooks/useKeyNavigation.js +9 -9
  333. package/styled-components/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +1 -1
  334. package/styled-components/es/components/Toast/Toast.js +1 -1
  335. package/styled-components/es/components/Toast/ToastController.js +1 -1
  336. package/styled-components/es/components/Toast/ToastProvider/ToastProvider.js +2 -2
  337. package/styled-components/es/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.js +1 -1
  338. package/styled-components/es/components/Tooltip/Tooltip.js +1 -1
  339. package/styled-components/es/components/Typography/Old/Subtitle/Subtitle.js +1 -1
  340. package/styled-components/es/components/Typography/Old/TypographyOld.js +1 -1
  341. package/styled-components/es/components/Typography/Typography.js +1 -1
  342. package/styled-components/es/engines/common.js +1 -1
  343. package/styled-components/es/examples/_helpers.js +1 -1
  344. package/styled-components/es/examples/plasma_b2c/components/Button/Button.stories.tsx +11 -27
  345. package/styled-components/es/examples/plasma_b2c/components/Grid/Grid.config.js +1 -1
  346. package/styled-components/es/examples/plasma_web/components/Grid/Grid.config.js +1 -1
  347. package/styled-components/es/examples/sds_engineer/components/Grid/Grid.config.js +1 -1
  348. package/styled-components/es/mixins/applySpacing.js +1 -1
  349. package/styled-components/es/mixins/typography.js +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.js","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"sourcesContent":["import React, { useEffect, forwardRef, useState } from 'react';\nimport { styled } from '@linaria/react';\n\nimport { RootProps, component } from '../../engines';\nimport { popoverClasses, popoverConfig, popoverTokens } from '../Popover';\nimport { cx } from '../../utils';\n\nimport { TooltipProps } from './Tooltip.types';\nimport { StyledContentLeft, TooltipRoot } from './Tooltip.styles';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { classes, tokens } from './Tooltip.tokens';\n\nconst ESCAPE_KEYCODE = 27;\n\nconst getStringValue = (value?: number | string) => {\n return typeof value === 'number' ? `${value}rem` : value;\n};\n\nconst Popover = component(popoverConfig);\n\nconst StyledPopover = styled(Popover)`\n ${popoverTokens.arrowMaskWidth}: var(${tokens.arrowMaskWidth});\n ${popoverTokens.arrowMaskHeight}: var(${tokens.arrowMaskHeight});\n ${popoverTokens.arrowMaskImage}: var(${tokens.arrowMaskImage});\n ${popoverTokens.arrowBackground}: var(${tokens.arrowBackground});\n ${popoverTokens.arrowHeight}: var(${tokens.arrowHeight});\n ${popoverTokens.arrowEdgeMargin}: var(${tokens.arrowEdgeMargin});\n\n &.${classes.animated} .${popoverClasses.root} {\n transition: opacity 200ms ease-in-out, visibility 200ms ease-in-out;\n }\n`;\n\n/**\n * Компонент для текстовых подсказок. Основное предназначение — подписи к блокам.\n */\n\nexport const tooltipRoot = (Root: RootProps<HTMLDivElement, Omit<TooltipProps, 'isOpen' | 'text'>>) =>\n forwardRef<HTMLDivElement, TooltipProps>(\n (\n {\n id,\n text,\n isOpen,\n isVisible,\n hasArrow = true,\n arrow,\n animated,\n offset = [0, 8],\n minWidth,\n maxWidth,\n placement = 'bottom',\n usePortal = true,\n target,\n children,\n onDismiss,\n view,\n size,\n contentLeft,\n zIndex = '9200',\n className,\n ...rest\n },\n outerRef,\n ) => {\n const [ref, setRef] = useState<HTMLDivElement | null>(null);\n\n // TODO убрать после отказа от старого API\n const innerIsOpen = isVisible || isOpen;\n const innerHasArrow = arrow || hasArrow;\n const showTooltip = innerIsOpen && Boolean(text?.length);\n\n const animatedClass = animated ? classes.animated : undefined;\n\n useEffect(() => {\n const onKeyDown = (event: KeyboardEvent) => {\n if (event.keyCode === ESCAPE_KEYCODE) {\n onDismiss?.();\n }\n };\n\n window.addEventListener('keydown', onKeyDown);\n\n return () => {\n window.removeEventListener('keydown', onKeyDown);\n };\n }, []);\n\n const withContentLeft = contentLeft ? classes.hasContentLeft : undefined;\n\n return (\n <StyledPopover\n isOpen={showTooltip}\n placement={placement}\n offset={offset}\n zIndex={zIndex}\n target={target || children}\n usePortal={usePortal}\n hasArrow={innerHasArrow}\n aria-hidden={!innerIsOpen}\n aria-live=\"polite\"\n role=\"tooltip\"\n className={cx(ref?.classList.toString(), animatedClass, className)}\n // INFO: Прокидываем стили для Popover из Root Tooltip-а\n\n {...rest}\n >\n <Root view={view} size={size} ref={setRef}>\n <TooltipRoot\n ref={outerRef}\n id={id}\n className={cx(withContentLeft)}\n maxWidth={getStringValue(maxWidth)}\n minWidth={getStringValue(minWidth)}\n >\n {contentLeft && <StyledContentLeft>{contentLeft}</StyledContentLeft>}\n {text}\n </TooltipRoot>\n </Root>\n </StyledPopover>\n );\n },\n );\n\nexport const tooltipConfig = {\n name: 'Tooltip',\n tag: 'div',\n layout: tooltipRoot,\n base: '',\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n },\n defaults: {\n view: 'default',\n size: 'm',\n },\n};\n"],"names":["ESCAPE_KEYCODE","getStringValue","value","concat","Popover","component","popoverConfig","_exp","StyledPopover","styled","name","class","propsAsIs","tooltipRoot","Root","forwardRef","_ref","outerRef","id","text","isOpen","isVisible","_ref$hasArrow","hasArrow","arrow","animated","_ref$offset","offset","minWidth","maxWidth","_ref$placement","placement","_ref$usePortal","usePortal","target","children","onDismiss","view","size","contentLeft","_ref$zIndex","zIndex","className","rest","_useState","useState","_useState2","_slicedToArray","ref","setRef","innerIsOpen","innerHasArrow","showTooltip","Boolean","length","animatedClass","classes","undefined","useEffect","onKeyDown","event","keyCode","window","addEventListener","removeEventListener","withContentLeft","hasContentLeft","React","createElement","_extends","role","cx","classList","toString","TooltipRoot","StyledContentLeft","tooltipConfig","tag","layout","base","variations","css","viewCSS","sizeCSS","defaults"],"mappings":";;;;;;;;;;;;;AAaA,IAAMA,cAAc,GAAG,EAAE,CAAA;AAEzB,IAAMC,cAAc,GAAGA,SAAjBA,cAAcA,CAAIC,KAAuB,EAAK;EAChD,OAAO,OAAOA,KAAK,KAAK,QAAQ,MAAAC,MAAA,CAAMD,KAAM,EAAA,KAAA,CAAA,GAAOA,KAAK,CAAA;AAC5D,CAAC,CAAA;AAED,IAAME,OAAO,gBAAGC,SAAS,CAACC,aAAa,CAAC,CAAA;AAAC,IAAAC,IAAA,GAlBvBA,SAkBuBA,IAAAA,GAAA;AAAA,EAAA,OAEZH,OAAO,CAAA;AAAA,CAAA,CAAA;AAApC,IAAMI,aAAa,gBAAG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AAEA,EAAG;AACPwB,MAAAA,SAAS,EAAE6B,EAAE,CAACN,eAAe,CAAE;AAC/BpC,MAAAA,QAAQ,EAAE5B,cAAc,CAAC4B,QAAQ,CAAE;MACnCD,QAAQ,EAAE3B,cAAc,CAAC2B,QAAQ,CAAA;AAAE,KAAA,EAElCW,WAAW,iBAAI4B,KAAA,CAAAC,aAAA,CAACO,iBAAiB,EAAEpC,IAAAA,EAAAA,WAA+B,CAAC,EACnEpB,IACQ,CACX,CACK,CAAC,CAAA;AAExB,GACJ,CAAC,CAAA;AAAA,EAAA;AAEE,IAAMyD,aAAa,GAAG;AACzBlE,EAAAA,IAAI,EAAE,SAAS;AACfmE,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAEjE,WAAW;AACnBkE,EAAAA,IAAI,EAAE,EAAE;AACRC,EAAAA,UAAU,EAAE;AACR3C,IAAAA,IAAI,EAAE;AACF4C,MAAAA,GAAG,EAAEC,IAAAA;KACR;AACD5C,IAAAA,IAAI,EAAE;AACF2C,MAAAA,GAAG,EAAEE,MAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACN/C,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAA;AACV,GAAA;AACJ;;;;"}
1
+ {"version":3,"file":"Tooltip.js","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"sourcesContent":["import React, { useEffect, forwardRef, useState } from 'react';\nimport { styled } from '@linaria/react';\n\nimport { RootProps, component } from '../../engines';\nimport { popoverClasses, popoverConfig, popoverTokens } from '../Popover';\nimport { cx } from '../../utils';\n\nimport { TooltipProps } from './Tooltip.types';\nimport { StyledContentLeft, TooltipRoot } from './Tooltip.styles';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { classes, tokens } from './Tooltip.tokens';\n\nconst ESCAPE_KEYCODE = 27;\n\nconst getStringValue = (value?: number | string) => {\n return typeof value === 'number' ? `${value}rem` : value;\n};\n\nconst Popover = component(popoverConfig);\n\nconst StyledPopover = styled(Popover)`\n ${popoverTokens.arrowMaskWidth}: var(${tokens.arrowMaskWidth});\n ${popoverTokens.arrowMaskHeight}: var(${tokens.arrowMaskHeight});\n ${popoverTokens.arrowMaskImage}: var(${tokens.arrowMaskImage});\n ${popoverTokens.arrowBackground}: var(${tokens.arrowBackground});\n ${popoverTokens.arrowHeight}: var(${tokens.arrowHeight});\n ${popoverTokens.arrowEdgeMargin}: var(${tokens.arrowEdgeMargin});\n\n &.${classes.animated} .${popoverClasses.root} {\n transition: opacity 200ms ease-in-out, visibility 200ms ease-in-out;\n }\n`;\n\n/**\n * Компонент для текстовых подсказок. Основное предназначение — подписи к блокам.\n */\n\nexport const tooltipRoot = (Root: RootProps<HTMLDivElement, Omit<TooltipProps, 'isOpen' | 'text'>>) =>\n forwardRef<HTMLDivElement, TooltipProps>(\n (\n {\n id,\n text,\n isOpen,\n isVisible,\n hasArrow = true,\n arrow,\n animated,\n offset = [0, 8],\n minWidth,\n maxWidth,\n placement = 'bottom',\n usePortal = true,\n target,\n children,\n onDismiss,\n view,\n size,\n contentLeft,\n zIndex = '9200',\n className,\n ...rest\n },\n outerRef,\n ) => {\n const [ref, setRef] = useState<HTMLDivElement | null>(null);\n\n // TODO убрать после отказа от старого API\n const innerIsOpen = isVisible || isOpen;\n const innerHasArrow = arrow || hasArrow;\n const showTooltip = innerIsOpen && Boolean(text?.length);\n\n const animatedClass = animated ? classes.animated : undefined;\n\n useEffect(() => {\n const onKeyDown = (event: KeyboardEvent) => {\n if (event.keyCode === ESCAPE_KEYCODE) {\n onDismiss?.();\n }\n };\n\n window.addEventListener('keydown', onKeyDown);\n\n return () => {\n window.removeEventListener('keydown', onKeyDown);\n };\n }, []);\n\n const withContentLeft = contentLeft ? classes.hasContentLeft : undefined;\n\n return (\n <StyledPopover\n isOpen={showTooltip}\n placement={placement}\n offset={offset}\n zIndex={zIndex}\n target={target || children}\n usePortal={usePortal}\n hasArrow={innerHasArrow}\n aria-hidden={!innerIsOpen}\n aria-live=\"polite\"\n role=\"tooltip\"\n className={cx(ref?.classList.toString(), animatedClass, className)}\n // INFO: Прокидываем стили для Popover из Root Tooltip-а\n\n {...rest}\n >\n <Root view={view} size={size} ref={setRef}>\n <TooltipRoot\n ref={outerRef}\n id={id}\n className={cx(withContentLeft)}\n maxWidth={getStringValue(maxWidth)}\n minWidth={getStringValue(minWidth)}\n >\n {contentLeft && <StyledContentLeft>{contentLeft}</StyledContentLeft>}\n {text}\n </TooltipRoot>\n </Root>\n </StyledPopover>\n );\n },\n );\n\nexport const tooltipConfig = {\n name: 'Tooltip',\n tag: 'div',\n layout: tooltipRoot,\n base: '',\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n },\n defaults: {\n view: 'default',\n size: 'm',\n },\n};\n"],"names":["ESCAPE_KEYCODE","getStringValue","value","concat","Popover","component","popoverConfig","_exp","StyledPopover","styled","name","class","propsAsIs","tooltipRoot","Root","forwardRef","_ref","outerRef","id","text","isOpen","isVisible","_ref$hasArrow","hasArrow","arrow","animated","_ref$offset","offset","minWidth","maxWidth","_ref$placement","placement","_ref$usePortal","usePortal","target","children","onDismiss","view","size","contentLeft","_ref$zIndex","zIndex","className","rest","_useState","useState","_useState2","_slicedToArray","ref","setRef","innerIsOpen","innerHasArrow","showTooltip","Boolean","length","animatedClass","classes","undefined","useEffect","onKeyDown","event","keyCode","window","addEventListener","removeEventListener","withContentLeft","hasContentLeft","React","createElement","_extends","role","cx","classList","toString","TooltipRoot","StyledContentLeft","tooltipConfig","tag","layout","base","variations","css","viewCSS","sizeCSS","defaults"],"mappings":";;;;;;;;;;;;;AAaA,IAAMA,cAAc,GAAG,EAAE,CAAA;AAEzB,IAAMC,cAAc,GAAGA,SAAjBA,cAAcA,CAAIC,KAAuB,EAAK;EAChD,OAAO,OAAOA,KAAK,KAAK,QAAQ,MAAAC,MAAA,CAAMD,KAAM,EAAA,KAAA,CAAA,GAAOA,K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AEA,IAAK;AAACC,MAAAA,IAAI,EAAEA,IAAK;AAACU,MAAAA,GAAG,EAAEC,MAAAA;AAAO,KAAA,eACtCkB,KAAA,CAAAC,aAAA,CAACM,WAAW,EAAA;AACR1B,MAAAA,GAAG,EAAE/B,QAAS;AACdC,MAAAA,EAAE,EAAEA,EAAG;AACPwB,MAAAA,SAAS,EAAE6B,EAAE,CAACN,eAAe,CAAE;AAC/BpC,MAAAA,QAAQ,EAAE5B,cAAc,CAAC4B,QAAQ,CAAE;MACnCD,QAAQ,EAAE3B,cAAc,CAAC2B,QAAQ,CAAA;AAAE,KAAA,EAElCW,WAAW,iBAAI4B,KAAA,CAAAC,aAAA,CAACO,iBAAiB,EAAEpC,IAAAA,EAAAA,WAA+B,CAAC,EACnEpB,IACQ,CACX,CACK,CAAC,CAAA;AAExB,GACJ,CAAC,CAAA;AAAA,EAAA;AAEE,IAAMyD,aAAa,GAAG;AACzBlE,EAAAA,IAAI,EAAE,SAAS;AACfmE,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAEjE,WAAW;AACnBkE,EAAAA,IAAI,EAAE,EAAE;AACRC,EAAAA,UAAU,EAAE;AACR3C,IAAAA,IAAI,EAAE;AACF4C,MAAAA,GAAG,EAAEC,IAAAA;KACR;AACD5C,IAAAA,IAAI,EAAE;AACF2C,MAAAA,GAAG,EAAEE,MAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACN/C,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAA;AACV,GAAA;AACJ;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/plasma-new-hope",
3
- "version": "0.76.2-canary.1183.8704434655.0",
3
+ "version": "0.76.2-canary.1184.8705168480.0",
4
4
  "description": "Salute Design System blueprint",
5
5
  "main": "cjs/index.js",
6
6
  "module": "es/index.js",
@@ -55,12 +55,13 @@
55
55
  "react-dom": ">=16.13.1"
56
56
  },
57
57
  "devDependencies": {
58
- "@babel/cli": "7.15.4",
59
- "@babel/core": "7.15.5",
60
- "@babel/plugin-transform-react-constant-elements": "7.17.12",
61
- "@babel/preset-env": "7.15.4",
62
- "@babel/preset-react": "7.14.5",
63
- "@babel/preset-typescript": "7.15.0",
58
+ "@babel/cli": "7.24.1",
59
+ "@babel/core": "7.24.4",
60
+ "@babel/plugin-transform-class-properties": "7.24.1",
61
+ "@babel/plugin-transform-react-constant-elements": "7.24.1",
62
+ "@babel/preset-env": "7.24.4",
63
+ "@babel/preset-react": "7.24.1",
64
+ "@babel/preset-typescript": "7.24.1",
64
65
  "@ironkinoko/rollup-plugin-styles": "^4.0.3",
65
66
  "@linaria/rollup": "5.0.4",
66
67
  "@linaria/vite": "5.0.4",
@@ -83,7 +84,6 @@
83
84
  "babel-loader": "8.2.2",
84
85
  "babel-plugin-annotate-pure-calls": "0.4.0",
85
86
  "babel-plugin-styled-components": "1.13.2",
86
- "babel-plugin-transform-class-properties": "6.24.1",
87
87
  "default-browser-id": "2.0.0",
88
88
  "react": "18.2.0",
89
89
  "react-dom": "18.2.0",
@@ -91,7 +91,7 @@
91
91
  "storybook": "7.6.17",
92
92
  "styled-components": "5.3.1",
93
93
  "typescript": "4.2.4",
94
- "vite": "4.5.1"
94
+ "vite": "4.5.3"
95
95
  },
96
96
  "dependencies": {
97
97
  "@linaria/core": "5.0.2",
@@ -102,5 +102,5 @@
102
102
  "react-popper": "2.3.0",
103
103
  "storeon": "3.1.5"
104
104
  },
105
- "gitHead": "73767dcdfd5ae8f67fb27e4ec29315b183b919eb"
105
+ "gitHead": "f8e2754a880f3ca6c7cd6e5945df28f2a32a2dce"
106
106
  }
@@ -18,7 +18,7 @@ var _utils2 = /*#__PURE__*/require("./utils");
18
18
  var _excluded = ["size", "name", "url", "customText", "status", "className", "focused", "isScalable"];
19
19
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
20
20
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
21
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
21
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
22
22
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
23
23
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
24
24
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -9,7 +9,7 @@ var _styledComponents = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/requi
9
9
  var _Avatar = /*#__PURE__*/require("./Avatar.tokens");
10
10
  var _templateObject;
11
11
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
12
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
12
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
13
13
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
14
14
  var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n position: relative;\n"])));
15
15
  var Wrapper = exports.Wrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
@@ -9,7 +9,7 @@ var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react")
9
9
  var _AvatarGroup = /*#__PURE__*/require("./AvatarGroup.styles");
10
10
  var _excluded = ["children"];
11
11
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
12
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
12
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
13
13
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
14
14
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
15
15
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -15,7 +15,7 @@ var _Badge = /*#__PURE__*/require("./Badge.styles");
15
15
  var _Badge2 = /*#__PURE__*/require("./Badge.tokens");
16
16
  var _excluded = ["children", "className", "text", "contentLeft", "contentRight", "size", "view", "pilled", "transparent"];
17
17
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
18
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
18
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
19
19
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
20
20
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
21
21
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -8,7 +8,7 @@ exports.base = exports.StyledContentRight = exports.StyledContentMain = exports.
8
8
  var _styledComponents = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("styled-components"));
9
9
  var _Badge = /*#__PURE__*/require("./Badge.tokens");
10
10
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
11
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
11
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
12
12
  var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["display:inline-flex;align-items:center;box-sizing:border-box;justify-content:center;width:max-content;"]);
13
13
  var StyledContentLeft = exports.StyledContentLeft = /*#__PURE__*/_styledComponents["default"].div.withConfig({
14
14
  componentId: "plasma-new-hope__sc-naxmb2-0"
@@ -19,12 +19,12 @@ var _Button2 = /*#__PURE__*/require("./Button.tokens");
19
19
  var _StyledSpinner;
20
20
  var _excluded = ["children", "view", "size", "text", "contentLeft", "contentRight", "isLoading", "loader", "stretch", "square", "pin", "disabled", "focused", "outlined", "className", "blur", "style", "stretching"];
21
21
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
22
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
22
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
23
23
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
24
24
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
25
25
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
26
26
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
27
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
27
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
28
28
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
29
29
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
30
30
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -12,7 +12,7 @@ var _Spinner = /*#__PURE__*/require("../Spinner");
12
12
  var _Button = /*#__PURE__*/require("./Button.tokens");
13
13
  var _templateObject;
14
14
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
15
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
15
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
16
16
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
17
17
  // issue #823
18
18
  var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Spinner.spinnerConfig);
@@ -17,7 +17,7 @@ var _ButtonGroup = /*#__PURE__*/require("./ButtonGroup.styles");
17
17
  var _ButtonGroup2 = /*#__PURE__*/require("./ButtonGroup.tokens");
18
18
  var _excluded = ["children", "view", "size", "className", "stretching", "gap", "orientation", "shape", "isCommonButtonStyles"];
19
19
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
20
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
20
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
21
21
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
22
22
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
23
23
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -16,7 +16,7 @@ var _base2 = /*#__PURE__*/require("./variations/_size/base");
16
16
  var _CalendarBase = /*#__PURE__*/require("./CalendarBase.styles");
17
17
  var _excluded = ["value", "min", "max", "type", "eventList", "disabledList", "onChangeValue"];
18
18
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
19
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
19
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
20
20
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
21
21
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
22
22
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -162,7 +162,7 @@ var calendarBaseRoot = exports.calendarBaseRoot = function calendarBaseRoot(Root
162
162
  isOutOfRange = _useKeyNavigation2[4];
163
163
  var handleOnChangeDay = (0, _react.useCallback)(function (newDate, coord) {
164
164
  var newDay = new Date(newDate.year, newDate.monthIndex, newDate.day);
165
- onChangeValue === null || onChangeValue === void 0 ? void 0 : onChangeValue(newDay);
165
+ onChangeValue === null || onChangeValue === void 0 || onChangeValue(newDay);
166
166
  onSelectIndexes(coord);
167
167
  }, [onChangeValue, onSelectIndexes]);
168
168
  var handleOnChangeMonth = (0, _react.useCallback)(function (monthIndex) {
@@ -8,7 +8,7 @@ exports.StyledCalendar = exports.IsOutOfRange = void 0;
8
8
  var _styledComponents = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("styled-components"));
9
9
  var _templateObject;
10
10
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
11
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
11
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
12
12
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
13
13
  var StyledCalendar = exports.StyledCalendar = /*#__PURE__*/(0, _styledComponents.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n position: relative;\n user-select: none;\n z-index: 1;\n\n width: 19.5rem;\n height: 19.5rem;\n"])));
14
14
  var IsOutOfRange = exports.IsOutOfRange = /*#__PURE__*/_styledComponents["default"].div.withConfig({
@@ -14,7 +14,7 @@ var _CalendarDouble = /*#__PURE__*/require("./CalendarDouble.styles");
14
14
  var _StyledSeparator;
15
15
  var _excluded = ["value", "min", "max", "eventList", "disabledList", "onChangeValue"];
16
16
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
17
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
17
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
18
18
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
19
19
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
20
20
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -102,7 +102,7 @@ var calendarDoubleRoot = exports.calendarDoubleRoot = function calendarDoubleRoo
102
102
  outerRefs = _useKeyNavigation2[3];
103
103
  var handleOnChangeDay = (0, _react.useCallback)(function (newDate, coord) {
104
104
  var newDay = new Date(newDate.year, newDate.monthIndex, newDate.day);
105
- onChangeValue === null || onChangeValue === void 0 ? void 0 : onChangeValue(newDay);
105
+ onChangeValue === null || onChangeValue === void 0 || onChangeValue(newDay);
106
106
  onSelectIndexes(coord);
107
107
  }, [onChangeValue, onSelectIndexes]);
108
108
  var firstDate = (0, _react.useMemo)(function () {
@@ -9,7 +9,7 @@ var _styledComponents = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/requi
9
9
  var _Calendar = /*#__PURE__*/require("../Calendar.tokens");
10
10
  var _templateObject;
11
11
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
12
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
12
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
13
13
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
14
14
  var StyledCalendar = exports.StyledCalendar = /*#__PURE__*/(0, _styledComponents.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n position: relative;\n user-select: none;\n z-index: 1;\n\n display: flex;\n flex-direction: column;\n\n width: 39rem;\n height: 19.5rem;\n"])));
15
15
  var StyledSeparator = exports.StyledSeparator = /*#__PURE__*/_styledComponents["default"].div.withConfig({
@@ -9,7 +9,7 @@ var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react")
9
9
  var _utils = /*#__PURE__*/require("../utils");
10
10
  var _excluded = ["value", "disabledList", "eventList", "min", "max", "onChangeValue", "onChangeStartOfRange"];
11
11
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
12
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
12
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
13
13
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
14
14
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
15
15
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -55,7 +55,7 @@ var withRange = exports.withRange = function withRange(Component) {
55
55
  var handleOnChangeDay = (0, _react.useCallback)(function (newDay) {
56
56
  if (endValue) {
57
57
  setValues([newDay, undefined]);
58
- onChangeStartOfRange === null || onChangeStartOfRange === void 0 ? void 0 : onChangeStartOfRange(newDay);
58
+ onChangeStartOfRange === null || onChangeStartOfRange === void 0 || onChangeStartOfRange(newDay);
59
59
  return;
60
60
  }
61
61
  setValues([startValue, newDay]);
@@ -11,7 +11,7 @@ var _utils = /*#__PURE__*/require("../utils");
11
11
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
12
12
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
13
13
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
14
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
15
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
16
16
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
17
17
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -38,31 +38,31 @@ var isOutOfBound = function isOutOfBound(_ref, rowSize, columnSize) {
38
38
  return columnIndex === -1 || columnIndex === columnSize + 1 || rowIndex === -1 || rowIndex === rowSize + 1;
39
39
  };
40
40
  var isVisible = function isVisible(refs, row, column) {
41
- var _refs$current, _refs$current$row;
42
- return (_refs$current = refs.current) === null || _refs$current === void 0 ? void 0 : (_refs$current$row = _refs$current[row]) === null || _refs$current$row === void 0 ? void 0 : _refs$current$row[column];
41
+ var _refs$current;
42
+ return (_refs$current = refs.current) === null || _refs$current === void 0 || (_refs$current = _refs$current[row]) === null || _refs$current === void 0 ? void 0 : _refs$current[column];
43
43
  };
44
44
  var isAriaDisableItem = function isAriaDisableItem(item) {
45
45
  return (item === null || item === void 0 ? void 0 : item.getAttribute('aria-disabled')) === 'true';
46
46
  };
47
47
  var hasDisabledArrowKey = function hasDisabledArrowKey(_ref3) {
48
- var _refs$current2, _refs$current2$previo, _refs$current2$previo2;
48
+ var _refs$current2;
49
49
  var refs = _ref3.refs,
50
50
  payload = _ref3.payload,
51
51
  key = _ref3.key;
52
52
  var _payload = _slicedToArray(payload, 2),
53
53
  previousRowIndex = _payload[0],
54
54
  previousColumnIndex = _payload[1];
55
- var disabledArrowKey = (_refs$current2 = refs.current) === null || _refs$current2 === void 0 ? void 0 : (_refs$current2$previo = _refs$current2[previousRowIndex]) === null || _refs$current2$previo === void 0 ? void 0 : (_refs$current2$previo2 = _refs$current2$previo[previousColumnIndex]) === null || _refs$current2$previo2 === void 0 ? void 0 : _refs$current2$previo2.dataset.disabledArrowKey;
55
+ var disabledArrowKey = (_refs$current2 = refs.current) === null || _refs$current2 === void 0 || (_refs$current2 = _refs$current2[previousRowIndex]) === null || _refs$current2 === void 0 || (_refs$current2 = _refs$current2[previousColumnIndex]) === null || _refs$current2 === void 0 ? void 0 : _refs$current2.dataset.disabledArrowKey;
56
56
  return Boolean(disabledArrowKey === null || disabledArrowKey === void 0 ? void 0 : disabledArrowKey.includes(key));
57
57
  };
58
58
  var hasDisabledMonths = function hasDisabledMonths(_ref4) {
59
59
  var _item$dataset, _item$dataset2;
60
60
  var item = _ref4.item,
61
61
  key = _ref4.key;
62
- return item !== null && item !== void 0 && (_item$dataset = item.dataset) !== null && _item$dataset !== void 0 && _item$dataset.disabledMonths ? item === null || item === void 0 ? void 0 : (_item$dataset2 = item.dataset) === null || _item$dataset2 === void 0 ? void 0 : _item$dataset2.disabledMonths.includes(key) : false;
62
+ return item !== null && item !== void 0 && (_item$dataset = item.dataset) !== null && _item$dataset !== void 0 && _item$dataset.disabledMonths ? item === null || item === void 0 || (_item$dataset2 = item.dataset) === null || _item$dataset2 === void 0 ? void 0 : _item$dataset2.disabledMonths.includes(key) : false;
63
63
  };
64
64
  var getNextCorrectPosition = function getNextCorrectPosition(_ref5) {
65
- var _refs$current3, _refs$current3$newRow;
65
+ var _refs$current3;
66
66
  var refs = _ref5.refs,
67
67
  rowSize = _ref5.rowSize,
68
68
  newRowIndex = _ref5.newRowIndex,
@@ -71,15 +71,15 @@ var getNextCorrectPosition = function getNextCorrectPosition(_ref5) {
71
71
  minColumnIndex = _ref5.minColumnIndex,
72
72
  _ref5$defaultState = _ref5.defaultState,
73
73
  defaultState = _ref5$defaultState === void 0 ? [] : _ref5$defaultState;
74
- var item = (_refs$current3 = refs.current) === null || _refs$current3 === void 0 ? void 0 : (_refs$current3$newRow = _refs$current3[newRowIndex]) === null || _refs$current3$newRow === void 0 ? void 0 : _refs$current3$newRow[newColumnIndex];
74
+ var item = (_refs$current3 = refs.current) === null || _refs$current3 === void 0 || (_refs$current3 = _refs$current3[newRowIndex]) === null || _refs$current3 === void 0 ? void 0 : _refs$current3[newColumnIndex];
75
75
  while (isAriaDisableItem(item) && newColumnIndex <= columnSize) {
76
- var _refs$current4, _refs$current4$newRow;
76
+ var _refs$current4;
77
77
  newColumnIndex++;
78
78
  if (newColumnIndex > columnSize && newRowIndex < rowSize) {
79
79
  newRowIndex++;
80
80
  newColumnIndex = minColumnIndex;
81
81
  }
82
- item = (_refs$current4 = refs.current) === null || _refs$current4 === void 0 ? void 0 : (_refs$current4$newRow = _refs$current4[newRowIndex]) === null || _refs$current4$newRow === void 0 ? void 0 : _refs$current4$newRow[newColumnIndex];
82
+ item = (_refs$current4 = refs.current) === null || _refs$current4 === void 0 || (_refs$current4 = _refs$current4[newRowIndex]) === null || _refs$current4 === void 0 ? void 0 : _refs$current4[newColumnIndex];
83
83
  if (item) {
84
84
  var isDisabledArrowDown = hasDisabledArrowKey({
85
85
  refs: refs,
@@ -99,7 +99,7 @@ var getNextCorrectPosition = function getNextCorrectPosition(_ref5) {
99
99
  return [newRowIndex, newColumnIndex];
100
100
  };
101
101
  var getPreviousCorrectPosition = function getPreviousCorrectPosition(_ref6) {
102
- var _refs$current5, _refs$current5$newRow;
102
+ var _refs$current5;
103
103
  var refs = _ref6.refs,
104
104
  rowSize = _ref6.rowSize,
105
105
  newRowIndex = _ref6.newRowIndex,
@@ -108,15 +108,15 @@ var getPreviousCorrectPosition = function getPreviousCorrectPosition(_ref6) {
108
108
  minColumnIndex = _ref6.minColumnIndex,
109
109
  _ref6$defaultState = _ref6.defaultState,
110
110
  defaultState = _ref6$defaultState === void 0 ? [] : _ref6$defaultState;
111
- var item = (_refs$current5 = refs.current) === null || _refs$current5 === void 0 ? void 0 : (_refs$current5$newRow = _refs$current5[newRowIndex]) === null || _refs$current5$newRow === void 0 ? void 0 : _refs$current5$newRow[newColumnIndex];
111
+ var item = (_refs$current5 = refs.current) === null || _refs$current5 === void 0 || (_refs$current5 = _refs$current5[newRowIndex]) === null || _refs$current5 === void 0 ? void 0 : _refs$current5[newColumnIndex];
112
112
  while (isAriaDisableItem(item) && newColumnIndex >= minColumnIndex) {
113
- var _refs$current6, _refs$current6$newRow;
113
+ var _refs$current6;
114
114
  newColumnIndex--;
115
115
  if (newColumnIndex < minColumnIndex && newRowIndex <= rowSize) {
116
116
  newRowIndex--;
117
117
  newColumnIndex = columnSize;
118
118
  }
119
- item = (_refs$current6 = refs.current) === null || _refs$current6 === void 0 ? void 0 : (_refs$current6$newRow = _refs$current6[newRowIndex]) === null || _refs$current6$newRow === void 0 ? void 0 : _refs$current6$newRow[newColumnIndex];
119
+ item = (_refs$current6 = refs.current) === null || _refs$current6 === void 0 || (_refs$current6 = _refs$current6[newRowIndex]) === null || _refs$current6 === void 0 ? void 0 : _refs$current6[newColumnIndex];
120
120
  if (item && item.dataset.day === '1') {
121
121
  var isDisabledArrowUp = hasDisabledArrowKey({
122
122
  refs: refs,
@@ -157,7 +157,7 @@ function getCorrectColumnIndex(_ref7) {
157
157
  }) - 1;
158
158
  }
159
159
  var getCorrectIndexes = function getCorrectIndexes(refs, _ref8, rowSize, columnSize, withShift, defaultState) {
160
- var _refs$current7, _refs$current7$newRow;
160
+ var _refs$current7;
161
161
  var _ref9 = _slicedToArray(_ref8, 2),
162
162
  rowIndex = _ref9[0],
163
163
  columnIndex = _ref9[1];
@@ -194,7 +194,7 @@ var getCorrectIndexes = function getCorrectIndexes(refs, _ref8, rowSize, columnS
194
194
 
195
195
  // INFO: Логика для получения правильной позиции дня, когда переключились на другой месяц
196
196
  // INFO: и ставим указатель на первый доступный день. Только при зажатой клавиши Shift.
197
- if (isAriaDisableItem((_refs$current7 = refs.current) === null || _refs$current7 === void 0 ? void 0 : (_refs$current7$newRow = _refs$current7[newRowIndex]) === null || _refs$current7$newRow === void 0 ? void 0 : _refs$current7$newRow[newColumnIndex]) && withShift) {
197
+ if (isAriaDisableItem((_refs$current7 = refs.current) === null || _refs$current7 === void 0 || (_refs$current7 = _refs$current7[newRowIndex]) === null || _refs$current7 === void 0 ? void 0 : _refs$current7[newColumnIndex]) && withShift) {
198
198
  var isNext = rowIndex === rowSize + 1;
199
199
  var isPrevious = rowIndex === minColumnIndex - 1;
200
200
  var state = {
@@ -311,11 +311,11 @@ var useKeyNavigation = exports.useKeyNavigation = function useKeyNavigation(_ref
311
311
  setSelectIndexes([newRowIndex, newColumnIndex]);
312
312
  }, [onPrev, onNext, selectIndexes, rowSize, columnSize, withShiftState, currentIndexes, isDouble]);
313
313
  (0, _react.useLayoutEffect)(function () {
314
- var _outerRefs$current, _outerRefs$current$ro;
314
+ var _outerRefs$current;
315
315
  var _selectIndexes = _slicedToArray(selectIndexes, 2),
316
316
  rowIndex = _selectIndexes[0],
317
317
  columnIndex = _selectIndexes[1];
318
- var item = outerRefs === null || outerRefs === void 0 ? void 0 : (_outerRefs$current = outerRefs.current) === null || _outerRefs$current === void 0 ? void 0 : (_outerRefs$current$ro = _outerRefs$current[rowIndex]) === null || _outerRefs$current$ro === void 0 ? void 0 : _outerRefs$current$ro[columnIndex];
318
+ var item = outerRefs === null || outerRefs === void 0 || (_outerRefs$current = outerRefs.current) === null || _outerRefs$current === void 0 || (_outerRefs$current = _outerRefs$current[rowIndex]) === null || _outerRefs$current === void 0 ? void 0 : _outerRefs$current[columnIndex];
319
319
  if (item) {
320
320
  item.focus();
321
321
  }
@@ -585,8 +585,8 @@ var useKeyNavigation = exports.useKeyNavigation = function useKeyNavigation(_ref
585
585
  case _Calendar.Keys.enter:
586
586
  case _Calendar.Keys.space:
587
587
  {
588
- var _outerRefs$current2, _outerRefs$current2$n;
589
- (_outerRefs$current2 = outerRefs.current) === null || _outerRefs$current2 === void 0 ? void 0 : (_outerRefs$current2$n = _outerRefs$current2[newRowIndex]) === null || _outerRefs$current2$n === void 0 ? void 0 : _outerRefs$current2$n[newColumnIndex].click();
588
+ var _outerRefs$current2;
589
+ (_outerRefs$current2 = outerRefs.current) === null || _outerRefs$current2 === void 0 || (_outerRefs$current2 = _outerRefs$current2[newRowIndex]) === null || _outerRefs$current2 === void 0 || _outerRefs$current2[newColumnIndex].click();
590
590
  break;
591
591
  }
592
592
  default:
@@ -16,7 +16,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
16
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
17
17
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
18
18
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
19
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
19
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
20
20
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
21
21
  var getInitialState = exports.getInitialState = function getInitialState(value, size, calendarState) {
22
22
  var initDate = value || new Date();
@@ -11,7 +11,7 @@ var _Calendar = /*#__PURE__*/require("../../Calendar.tokens");
11
11
  var _CalendarDayItem = /*#__PURE__*/require("./CalendarDayItem.styles");
12
12
  var _excluded = ["isFocused", "dayOfWeek", "disabled", "isCurrent", "isSelected", "isDayInCurrentMonth", "isDouble", "inRange", "isHovered", "sideInRange", "eventList", "day", "monthIndex", "year", "onClick", "onMouseOver", "onFocus", "disabledArrowKey", "disabledMonths"];
13
13
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
14
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
14
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
15
15
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
16
16
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
17
17
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -12,7 +12,7 @@ var _CalendarDayItem = /*#__PURE__*/require("../CalendarDayItem/CalendarDayItem"
12
12
  var _CalendarDays = /*#__PURE__*/require("./CalendarDays.styles");
13
13
  var _StyledCalendarDaysHi;
14
14
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
15
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
15
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
16
16
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
17
17
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
18
18
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -68,7 +68,7 @@ var CalendarDays = exports.CalendarDays = function CalendarDays(_ref) {
68
68
  }
69
69
  onChangeDay(selectedDate, [i + offset, j]);
70
70
  if ((0, _utils.isSelectProcess)(value)) {
71
- onHoverDay === null || onHoverDay === void 0 ? void 0 : onHoverDay(undefined);
71
+ onHoverDay === null || onHoverDay === void 0 || onHoverDay(undefined);
72
72
  }
73
73
  };
74
74
  }, [getSelectedDate, onChangeDay, offset, value, onHoverDay]);
@@ -78,7 +78,7 @@ var CalendarDays = exports.CalendarDays = function CalendarDays(_ref) {
78
78
  if (!selectedDate || !Array.isArray(value) || isSelectedDone) {
79
79
  return;
80
80
  }
81
- onHoverDay === null || onHoverDay === void 0 ? void 0 : onHoverDay(selectedDate);
81
+ onHoverDay === null || onHoverDay === void 0 || onHoverDay(selectedDate);
82
82
  }, [getSelectedDate, onHoverDay, value]);
83
83
  var handleOnFocusDay = (0, _react.useCallback)(function () {
84
84
  // заглушка будет убрана при реализации доступности
@@ -91,7 +91,7 @@ var CalendarDays = exports.CalendarDays = function CalendarDays(_ref) {
91
91
  (0, _react.useEffect)(function () {
92
92
  if (selectedRef.current) {
93
93
  var _onSetSelectedRef$cur;
94
- (_onSetSelectedRef$cur = onSetSelectedRef.current) === null || _onSetSelectedRef$cur === void 0 ? void 0 : _onSetSelectedRef$cur.call(onSetSelectedRef, selectedRef.current);
94
+ (_onSetSelectedRef$cur = onSetSelectedRef.current) === null || _onSetSelectedRef$cur === void 0 || _onSetSelectedRef$cur.call(onSetSelectedRef, selectedRef.current);
95
95
  }
96
96
  }, []);
97
97
  return /*#__PURE__*/_react["default"].createElement(_CalendarDays.StyledCalendarDays, {
@@ -12,7 +12,7 @@ var _utils = /*#__PURE__*/require("../../utils");
12
12
  var _CalendarHeader = /*#__PURE__*/require("./CalendarHeader.styles");
13
13
  var _IconDisclosureLeft, _IconDisclosureRight;
14
14
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
15
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
15
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
16
16
  /**
17
17
  * Компонент шапки календаря.
18
18
  */
@@ -29,10 +29,10 @@ var CalendarHeader = exports.CalendarHeader = function CalendarHeader(_ref) {
29
29
  onUpdateCalendarState = _ref.onUpdateCalendarState;
30
30
  var handleCalendarState = (0, _react.useCallback)(function () {
31
31
  if (type === _types.CalendarState.Days) {
32
- onUpdateCalendarState === null || onUpdateCalendarState === void 0 ? void 0 : onUpdateCalendarState(_types.CalendarState.Months, [3, 2]);
32
+ onUpdateCalendarState === null || onUpdateCalendarState === void 0 || onUpdateCalendarState(_types.CalendarState.Months, [3, 2]);
33
33
  }
34
34
  if (type === _types.CalendarState.Months) {
35
- onUpdateCalendarState === null || onUpdateCalendarState === void 0 ? void 0 : onUpdateCalendarState(_types.CalendarState.Years, [3, 2]);
35
+ onUpdateCalendarState === null || onUpdateCalendarState === void 0 || onUpdateCalendarState(_types.CalendarState.Years, [3, 2]);
36
36
  }
37
37
  }, [type, onUpdateCalendarState]);
38
38
  var getHeaderContent = (0, _react.useCallback)(function (date) {
@@ -11,7 +11,7 @@ var _hooks = /*#__PURE__*/require("../../hooks");
11
11
  var _Calendar = /*#__PURE__*/require("../../Calendar.tokens");
12
12
  var _CalendarMonths = /*#__PURE__*/require("./CalendarMonths.styles");
13
13
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
14
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
14
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
15
15
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
16
16
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
17
17
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -50,7 +50,7 @@ var CalendarMonths = exports.CalendarMonths = function CalendarMonths(_ref) {
50
50
  (0, _react.useEffect)(function () {
51
51
  if (selectedRef.current) {
52
52
  var _onSetSelectedRef$cur;
53
- (_onSetSelectedRef$cur = onSetSelectedRef.current) === null || _onSetSelectedRef$cur === void 0 ? void 0 : _onSetSelectedRef$cur.call(onSetSelectedRef, selectedRef.current);
53
+ (_onSetSelectedRef$cur = onSetSelectedRef.current) === null || _onSetSelectedRef$cur === void 0 || _onSetSelectedRef$cur.call(onSetSelectedRef, selectedRef.current);
54
54
  }
55
55
  }, []);
56
56
  return /*#__PURE__*/_react["default"].createElement(_CalendarMonths.StyledCalendarMonths, {