@salutejs/plasma-new-hope 0.174.0-canary.1503.11466452273.0 → 0.174.0-canary.1503.11500823810.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (525) hide show
  1. package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +0 -1
  2. package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles.js.map +1 -1
  3. package/cjs/components/Attach/Attach.js +3 -4
  4. package/cjs/components/Attach/Attach.js.map +1 -1
  5. package/cjs/components/Attach/components/AttachButton/AttachButton.js +0 -1
  6. package/cjs/components/Attach/components/AttachButton/AttachButton.js.map +1 -1
  7. package/cjs/components/Attach/ui/Button/Button.styles.js +0 -1
  8. package/cjs/components/Attach/ui/Button/Button.styles.js.map +1 -1
  9. package/cjs/components/Attach/ui/Cell/Cell.styles.js +0 -2
  10. package/cjs/components/Attach/ui/Cell/Cell.styles.js.map +1 -1
  11. package/cjs/components/Attach/ui/IconButton/IconButton.styles.js +0 -1
  12. package/cjs/components/Attach/ui/IconButton/IconButton.styles.js.map +1 -1
  13. package/cjs/components/Attach/utils/getFileicon.js +3 -4
  14. package/cjs/components/Attach/utils/getFileicon.js.map +1 -1
  15. package/cjs/components/Attach/utils/index.js +0 -3
  16. package/cjs/components/Attach/utils/index.js.map +1 -1
  17. package/cjs/components/Autocomplete/Autocomplete.js +5 -6
  18. package/cjs/components/Autocomplete/Autocomplete.js.map +1 -1
  19. package/cjs/components/Autocomplete/Autocomplete.styles.js +2 -3
  20. package/cjs/components/Autocomplete/Autocomplete.styles.js.map +1 -1
  21. package/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -2
  22. package/cjs/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
  23. package/cjs/components/Avatar/Avatar.js +2 -3
  24. package/cjs/components/Avatar/Avatar.js.map +1 -1
  25. package/cjs/components/Breadcrumbs/Breadcrumbs.styles.js +2 -4
  26. package/cjs/components/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
  27. package/cjs/components/Button/Button.styles.js +0 -3
  28. package/cjs/components/Button/Button.styles.js.map +1 -1
  29. package/cjs/components/Calendar/CalendarBase/CalendarBase.js +5 -5
  30. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +8 -8
  31. package/cjs/components/Calendar/hooks/useDays.js +2 -2
  32. package/cjs/components/Calendar/hooks/useKeyNavigation.js +1 -1
  33. package/cjs/components/Calendar/hooks/useMonths.js +2 -2
  34. package/cjs/components/Calendar/hooks/useQuarters.js +2 -2
  35. package/cjs/components/Calendar/hooks/useYears.js +2 -2
  36. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +9 -5
  37. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js.map +1 -1
  38. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -6
  39. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  40. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +0 -1
  41. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  42. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +9 -5
  43. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
  44. package/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +9 -5
  45. package/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js.map +1 -1
  46. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +9 -5
  47. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
  48. package/cjs/components/Combobox/ComboboxNew/Combobox.js +11 -12
  49. package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  50. package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +2 -4
  51. package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
  52. package/cjs/components/Combobox/ComboboxNew/hooks/getPathMaps.js +0 -2
  53. package/cjs/components/Combobox/ComboboxNew/hooks/getPathMaps.js.map +1 -1
  54. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.js +1 -2
  55. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.js.map +1 -1
  56. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +5 -6
  57. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
  58. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +1 -3
  59. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  60. package/cjs/components/Combobox/ComboboxNew/ui/Target/Target.styles.js +1 -2
  61. package/cjs/components/Combobox/ComboboxNew/ui/Target/Target.styles.js.map +1 -1
  62. package/cjs/components/Combobox/ComboboxOld/Combobox.js +4 -10
  63. package/cjs/components/Combobox/ComboboxOld/Combobox.js.map +1 -1
  64. package/cjs/components/Combobox/ComboboxOld/Combobox.styles.js +0 -1
  65. package/cjs/components/Combobox/ComboboxOld/Combobox.styles.js.map +1 -1
  66. package/cjs/components/Combobox/ComboboxOld/hooks/useFocusController.js +0 -1
  67. package/cjs/components/Combobox/ComboboxOld/hooks/useFocusController.js.map +1 -1
  68. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js +1 -2
  69. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js.map +1 -1
  70. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js +1 -10
  71. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js.map +1 -1
  72. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js +1 -10
  73. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js.map +1 -1
  74. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js +1 -10
  75. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js.map +1 -1
  76. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js +1 -10
  77. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js.map +1 -1
  78. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js +0 -2
  79. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js.map +1 -1
  80. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.js +1 -1
  81. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js +1 -2
  82. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js.map +1 -1
  83. package/cjs/components/DatePicker/DatePickerBase.styles.js +1 -7
  84. package/cjs/components/DatePicker/DatePickerBase.styles.js.map +1 -1
  85. package/cjs/components/DatePicker/RangeDate/RangeDate.js +1 -1
  86. package/cjs/components/DatePicker/RangeDate/RangeDate.styles.js +0 -1
  87. package/cjs/components/DatePicker/RangeDate/RangeDate.styles.js.map +1 -1
  88. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +1 -2
  89. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -1
  90. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +2 -5
  91. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js.map +1 -1
  92. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +0 -1
  93. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
  94. package/cjs/components/Drawer/Drawer.js +5 -10
  95. package/cjs/components/Drawer/Drawer.js.map +1 -1
  96. package/cjs/components/Drawer/Drawer.styles.js +0 -4
  97. package/cjs/components/Drawer/Drawer.styles.js.map +1 -1
  98. package/cjs/components/Drawer/hooks/useDrawer.js +0 -4
  99. package/cjs/components/Drawer/hooks/useDrawer.js.map +1 -1
  100. package/cjs/components/Drawer/ui/DrawerContent/DrawerContent.js +0 -7
  101. package/cjs/components/Drawer/ui/DrawerContent/DrawerContent.js.map +1 -1
  102. package/cjs/components/Drawer/ui/DrawerFooter/DrawerFooter.js +0 -7
  103. package/cjs/components/Drawer/ui/DrawerFooter/DrawerFooter.js.map +1 -1
  104. package/cjs/components/Drawer/ui/DrawerHeader/DrawerHeader.js +0 -3
  105. package/cjs/components/Drawer/ui/DrawerHeader/DrawerHeader.js.map +1 -1
  106. package/cjs/components/Dropdown/Dropdown.js +3 -10
  107. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  108. package/cjs/components/Dropdown/Dropdown.styles.js +2 -3
  109. package/cjs/components/Dropdown/Dropdown.styles.js.map +1 -1
  110. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +1 -9
  111. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  112. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +1 -2
  113. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  114. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +0 -2
  115. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js.map +1 -1
  116. package/cjs/components/Dropdown/ui/DropdownOld/Dropdown.styles.js +0 -1
  117. package/cjs/components/Dropdown/ui/DropdownOld/Dropdown.styles.js.map +1 -1
  118. package/cjs/components/Editable/Editable.js +3 -4
  119. package/cjs/components/Editable/Editable.js.map +1 -1
  120. package/cjs/components/Editable/utils/clearSelection.js +0 -2
  121. package/cjs/components/Editable/utils/clearSelection.js.map +1 -1
  122. package/cjs/components/Editable/utils/selectText.js +0 -2
  123. package/cjs/components/Editable/utils/selectText.js.map +1 -1
  124. package/cjs/components/EmptyState/EmptyState.styles.js +1 -2
  125. package/cjs/components/EmptyState/EmptyState.styles.js.map +1 -1
  126. package/cjs/components/IconButton/IconButton.js +1 -1
  127. package/cjs/components/IconButton/IconButton.styles.js +0 -8
  128. package/cjs/components/IconButton/IconButton.styles.js.map +1 -1
  129. package/cjs/components/Modal/Modal.js +6 -8
  130. package/cjs/components/Modal/Modal.js.map +1 -1
  131. package/cjs/components/Modal/hooks/useModal.js +0 -4
  132. package/cjs/components/Modal/hooks/useModal.js.map +1 -1
  133. package/cjs/components/Notification/Notification.css +11 -11
  134. package/cjs/components/Notification/Notification.styles.js +3 -4
  135. package/cjs/components/Notification/Notification.styles.js.map +1 -1
  136. package/cjs/components/Notification/{Notification.styles_7h8hp0.css → Notification.styles_1cf2gwd.css} +1 -1
  137. package/cjs/components/Notification/Notification.tokens.js +2 -1
  138. package/cjs/components/Notification/Notification.tokens.js.map +1 -1
  139. package/cjs/components/Notification/NotificationsPortal.js +4 -5
  140. package/cjs/components/Notification/NotificationsPortal.js.map +1 -1
  141. package/cjs/components/Notification/NotificationsProvider.css +11 -11
  142. package/cjs/components/Pagination/Pagination.styles.js +1 -2
  143. package/cjs/components/Pagination/Pagination.styles.js.map +1 -1
  144. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -2
  145. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  146. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.js +1 -2
  147. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.js.map +1 -1
  148. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js +1 -2
  149. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js.map +1 -1
  150. package/cjs/components/Popover/Popover.js +1 -1
  151. package/cjs/components/Popup/Popup.js +2 -2
  152. package/cjs/components/Popup/PopupContext.js +1 -1
  153. package/cjs/components/Range/Range.styles.js +0 -1
  154. package/cjs/components/Range/Range.styles.js.map +1 -1
  155. package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js +4 -5
  156. package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js.map +1 -1
  157. package/cjs/components/Select/Select.js +11 -12
  158. package/cjs/components/Select/Select.js.map +1 -1
  159. package/cjs/components/Select/Select.styles.js +2 -5
  160. package/cjs/components/Select/Select.styles.js.map +1 -1
  161. package/cjs/components/Select/hooks/usePathMaps.js +0 -2
  162. package/cjs/components/Select/hooks/usePathMaps.js.map +1 -1
  163. package/cjs/components/Select/ui/Inner/Inner.js +1 -2
  164. package/cjs/components/Select/ui/Inner/Inner.js.map +1 -1
  165. package/cjs/components/Select/ui/Inner/ui/Item/Item.js +4 -5
  166. package/cjs/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  167. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +0 -1
  168. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  169. package/cjs/components/Select/ui/Target/ui/Button/Button.js +1 -1
  170. package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +1 -3
  171. package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -1
  172. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +2 -2
  173. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -4
  174. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  175. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +1 -2
  176. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js.map +1 -1
  177. package/cjs/components/Select/utils/getButtonLabel.js +0 -2
  178. package/cjs/components/Select/utils/getButtonLabel.js.map +1 -1
  179. package/cjs/components/Sheet/Sheet.js +3 -3
  180. package/cjs/components/Skeleton/LineSkeleton/LineSkeleton.js +2 -4
  181. package/cjs/components/Skeleton/LineSkeleton/LineSkeleton.js.map +1 -1
  182. package/cjs/components/Skeleton/RectSkeleton/RectSkeleton.js +2 -4
  183. package/cjs/components/Skeleton/RectSkeleton/RectSkeleton.js.map +1 -1
  184. package/cjs/components/Slider/Slider.js +0 -8
  185. package/cjs/components/Slider/Slider.js.map +1 -1
  186. package/cjs/components/Slider/components/Double/Double.js +1 -2
  187. package/cjs/components/Slider/components/Double/Double.js.map +1 -1
  188. package/cjs/components/Slider/components/Double/Double.styles.js +0 -1
  189. package/cjs/components/Slider/components/Double/Double.styles.js.map +1 -1
  190. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +0 -3
  191. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js.map +1 -1
  192. package/cjs/components/Slider/components/Single/Single.js +1 -2
  193. package/cjs/components/Slider/components/Single/Single.js.map +1 -1
  194. package/cjs/components/Slider/components/SliderBase/SliderBase.js +1 -1
  195. package/cjs/components/Steps/Steps.js +1 -1
  196. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js +0 -1
  197. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
  198. package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +2 -3
  199. package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js.map +1 -1
  200. package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js +2 -3
  201. package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js.map +1 -1
  202. package/cjs/components/TextArea/TextArea.js +3 -3
  203. package/cjs/components/TextArea/TextArea.js.map +1 -1
  204. package/cjs/components/TextArea/TextArea.styles.js +4 -5
  205. package/cjs/components/TextArea/TextArea.styles.js.map +1 -1
  206. package/cjs/components/TextArea/ui/Hint/Hint.js +1 -2
  207. package/cjs/components/TextArea/ui/Hint/Hint.js.map +1 -1
  208. package/cjs/components/TextField/TextField.js +4 -4
  209. package/cjs/components/TextField/TextField.js.map +1 -1
  210. package/cjs/components/TextField/TextField.styles.js +3 -4
  211. package/cjs/components/TextField/TextField.styles.js.map +1 -1
  212. package/cjs/components/TextField/ui/Hint/Hint.js +1 -2
  213. package/cjs/components/TextField/ui/Hint/Hint.js.map +1 -1
  214. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +1 -2
  215. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +1 -1
  216. package/cjs/components/Toast/Toast.styles.js +1 -1
  217. package/cjs/components/Toast/ToastController.js +1 -1
  218. package/cjs/components/Toast/utils.js +1 -2
  219. package/cjs/components/Toast/utils.js.map +1 -1
  220. package/cjs/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.js +1 -1
  221. package/cjs/components/Tooltip/Tooltip.js +2 -3
  222. package/cjs/components/Tooltip/Tooltip.js.map +1 -1
  223. package/cjs/engines/index.js +0 -2
  224. package/cjs/engines/index.js.map +1 -1
  225. package/cjs/hooks/useIsomorphicLayoutEffect.js +0 -1
  226. package/cjs/hooks/useIsomorphicLayoutEffect.js.map +1 -1
  227. package/cjs/index.css +11 -11
  228. package/cjs/index.js +48 -51
  229. package/cjs/index.js.map +1 -1
  230. package/cjs/utils/index.js +0 -5
  231. package/cjs/utils/index.js.map +1 -1
  232. package/emotion/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +5 -1
  233. package/emotion/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +5 -1
  234. package/emotion/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +5 -1
  235. package/emotion/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +5 -1
  236. package/emotion/cjs/components/Notification/Notification.styles.js +11 -11
  237. package/emotion/cjs/components/Notification/Notification.tokens.js +2 -1
  238. package/emotion/cjs/components/Notification/NotificationsPortal.js +2 -2
  239. package/emotion/cjs/components/TextArea/TextArea.js +2 -2
  240. package/emotion/cjs/components/TextArea/TextArea.styles.js +20 -20
  241. package/emotion/cjs/components/TextField/TextField.js +2 -2
  242. package/emotion/cjs/components/TextField/TextField.styles.js +24 -24
  243. package/emotion/es/components/Calendar/ui/CalendarDays/CalendarDays.js +5 -1
  244. package/emotion/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +5 -1
  245. package/emotion/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +5 -1
  246. package/emotion/es/components/Calendar/ui/CalendarYears/CalendarYears.js +5 -1
  247. package/emotion/es/components/Notification/Notification.styles.js +11 -11
  248. package/emotion/es/components/Notification/Notification.tokens.js +2 -1
  249. package/emotion/es/components/Notification/NotificationsPortal.js +2 -2
  250. package/emotion/es/components/TextArea/TextArea.js +2 -2
  251. package/emotion/es/components/TextArea/TextArea.styles.js +20 -20
  252. package/emotion/es/components/TextField/TextField.js +2 -2
  253. package/emotion/es/components/TextField/TextField.styles.js +24 -24
  254. package/emotion/package.json +2 -1
  255. package/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +0 -1
  256. package/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js.map +1 -1
  257. package/es/components/Attach/Attach.js +3 -4
  258. package/es/components/Attach/Attach.js.map +1 -1
  259. package/es/components/Attach/components/AttachButton/AttachButton.js +0 -1
  260. package/es/components/Attach/components/AttachButton/AttachButton.js.map +1 -1
  261. package/es/components/Attach/ui/Button/Button.styles.js +0 -1
  262. package/es/components/Attach/ui/Button/Button.styles.js.map +1 -1
  263. package/es/components/Attach/ui/Cell/Cell.styles.js +0 -2
  264. package/es/components/Attach/ui/Cell/Cell.styles.js.map +1 -1
  265. package/es/components/Attach/ui/IconButton/IconButton.styles.js +0 -1
  266. package/es/components/Attach/ui/IconButton/IconButton.styles.js.map +1 -1
  267. package/es/components/Attach/utils/getFileicon.js +3 -4
  268. package/es/components/Attach/utils/getFileicon.js.map +1 -1
  269. package/es/components/Attach/utils/index.js +0 -3
  270. package/es/components/Attach/utils/index.js.map +1 -1
  271. package/es/components/Autocomplete/Autocomplete.js +5 -6
  272. package/es/components/Autocomplete/Autocomplete.js.map +1 -1
  273. package/es/components/Autocomplete/Autocomplete.styles.js +2 -3
  274. package/es/components/Autocomplete/Autocomplete.styles.js.map +1 -1
  275. package/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -2
  276. package/es/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
  277. package/es/components/Avatar/Avatar.js +2 -3
  278. package/es/components/Avatar/Avatar.js.map +1 -1
  279. package/es/components/Breadcrumbs/Breadcrumbs.styles.js +2 -4
  280. package/es/components/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
  281. package/es/components/Button/Button.styles.js +0 -3
  282. package/es/components/Button/Button.styles.js.map +1 -1
  283. package/es/components/Calendar/CalendarBase/CalendarBase.js +5 -5
  284. package/es/components/Calendar/CalendarDouble/CalendarDouble.js +8 -8
  285. package/es/components/Calendar/hooks/useDays.js +2 -2
  286. package/es/components/Calendar/hooks/useKeyNavigation.js +1 -1
  287. package/es/components/Calendar/hooks/useMonths.js +2 -2
  288. package/es/components/Calendar/hooks/useQuarters.js +2 -2
  289. package/es/components/Calendar/hooks/useYears.js +2 -2
  290. package/es/components/Calendar/ui/CalendarDays/CalendarDays.js +9 -5
  291. package/es/components/Calendar/ui/CalendarDays/CalendarDays.js.map +1 -1
  292. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -6
  293. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  294. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +0 -1
  295. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  296. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +9 -5
  297. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
  298. package/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +9 -5
  299. package/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js.map +1 -1
  300. package/es/components/Calendar/ui/CalendarYears/CalendarYears.js +9 -5
  301. package/es/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
  302. package/es/components/Combobox/ComboboxNew/Combobox.js +11 -12
  303. package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  304. package/es/components/Combobox/ComboboxNew/Combobox.styles.js +2 -4
  305. package/es/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
  306. package/es/components/Combobox/ComboboxNew/hooks/getPathMaps.js +0 -2
  307. package/es/components/Combobox/ComboboxNew/hooks/getPathMaps.js.map +1 -1
  308. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.js +1 -2
  309. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.js.map +1 -1
  310. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +5 -6
  311. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
  312. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +1 -3
  313. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  314. package/es/components/Combobox/ComboboxNew/ui/Target/Target.styles.js +1 -2
  315. package/es/components/Combobox/ComboboxNew/ui/Target/Target.styles.js.map +1 -1
  316. package/es/components/Combobox/ComboboxOld/Combobox.js +4 -10
  317. package/es/components/Combobox/ComboboxOld/Combobox.js.map +1 -1
  318. package/es/components/Combobox/ComboboxOld/Combobox.styles.js +0 -1
  319. package/es/components/Combobox/ComboboxOld/Combobox.styles.js.map +1 -1
  320. package/es/components/Combobox/ComboboxOld/hooks/useFocusController.js +0 -1
  321. package/es/components/Combobox/ComboboxOld/hooks/useFocusController.js.map +1 -1
  322. package/es/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js +1 -2
  323. package/es/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js.map +1 -1
  324. package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js +1 -10
  325. package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js.map +1 -1
  326. package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js +1 -10
  327. package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js.map +1 -1
  328. package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js +1 -10
  329. package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js.map +1 -1
  330. package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js +1 -10
  331. package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js.map +1 -1
  332. package/es/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js +0 -2
  333. package/es/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js.map +1 -1
  334. package/es/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.js +1 -1
  335. package/es/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js +1 -2
  336. package/es/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js.map +1 -1
  337. package/es/components/DatePicker/DatePickerBase.styles.js +1 -7
  338. package/es/components/DatePicker/DatePickerBase.styles.js.map +1 -1
  339. package/es/components/DatePicker/RangeDate/RangeDate.js +1 -1
  340. package/es/components/DatePicker/RangeDate/RangeDate.styles.js +0 -1
  341. package/es/components/DatePicker/RangeDate/RangeDate.styles.js.map +1 -1
  342. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +1 -2
  343. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -1
  344. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +2 -5
  345. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js.map +1 -1
  346. package/es/components/DatePicker/SingleDate/SingleDate.styles.js +0 -1
  347. package/es/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
  348. package/es/components/Drawer/Drawer.js +5 -10
  349. package/es/components/Drawer/Drawer.js.map +1 -1
  350. package/es/components/Drawer/Drawer.styles.js +0 -4
  351. package/es/components/Drawer/Drawer.styles.js.map +1 -1
  352. package/es/components/Drawer/hooks/useDrawer.js +0 -4
  353. package/es/components/Drawer/hooks/useDrawer.js.map +1 -1
  354. package/es/components/Drawer/ui/DrawerContent/DrawerContent.js +0 -7
  355. package/es/components/Drawer/ui/DrawerContent/DrawerContent.js.map +1 -1
  356. package/es/components/Drawer/ui/DrawerFooter/DrawerFooter.js +0 -7
  357. package/es/components/Drawer/ui/DrawerFooter/DrawerFooter.js.map +1 -1
  358. package/es/components/Drawer/ui/DrawerHeader/DrawerHeader.js +0 -3
  359. package/es/components/Drawer/ui/DrawerHeader/DrawerHeader.js.map +1 -1
  360. package/es/components/Dropdown/Dropdown.js +3 -10
  361. package/es/components/Dropdown/Dropdown.js.map +1 -1
  362. package/es/components/Dropdown/Dropdown.styles.js +2 -3
  363. package/es/components/Dropdown/Dropdown.styles.js.map +1 -1
  364. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +1 -9
  365. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  366. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +1 -2
  367. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  368. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +0 -2
  369. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js.map +1 -1
  370. package/es/components/Dropdown/ui/DropdownOld/Dropdown.styles.js +0 -1
  371. package/es/components/Dropdown/ui/DropdownOld/Dropdown.styles.js.map +1 -1
  372. package/es/components/Editable/Editable.js +3 -4
  373. package/es/components/Editable/Editable.js.map +1 -1
  374. package/es/components/Editable/utils/clearSelection.js +0 -2
  375. package/es/components/Editable/utils/clearSelection.js.map +1 -1
  376. package/es/components/Editable/utils/selectText.js +0 -2
  377. package/es/components/Editable/utils/selectText.js.map +1 -1
  378. package/es/components/EmptyState/EmptyState.styles.js +1 -2
  379. package/es/components/EmptyState/EmptyState.styles.js.map +1 -1
  380. package/es/components/IconButton/IconButton.js +1 -1
  381. package/es/components/IconButton/IconButton.styles.js +0 -8
  382. package/es/components/IconButton/IconButton.styles.js.map +1 -1
  383. package/es/components/Modal/Modal.js +6 -8
  384. package/es/components/Modal/Modal.js.map +1 -1
  385. package/es/components/Modal/hooks/useModal.js +0 -4
  386. package/es/components/Modal/hooks/useModal.js.map +1 -1
  387. package/es/components/Notification/Notification.css +11 -11
  388. package/es/components/Notification/Notification.styles.js +3 -4
  389. package/es/components/Notification/Notification.styles.js.map +1 -1
  390. package/es/components/Notification/{Notification.styles_7h8hp0.css → Notification.styles_1cf2gwd.css} +1 -1
  391. package/es/components/Notification/Notification.tokens.js +2 -1
  392. package/es/components/Notification/Notification.tokens.js.map +1 -1
  393. package/es/components/Notification/NotificationsPortal.js +4 -5
  394. package/es/components/Notification/NotificationsPortal.js.map +1 -1
  395. package/es/components/Notification/NotificationsProvider.css +11 -11
  396. package/es/components/Pagination/Pagination.styles.js +1 -2
  397. package/es/components/Pagination/Pagination.styles.js.map +1 -1
  398. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -2
  399. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  400. package/es/components/Panel/ui/PanelHeader/PanelHeader.js +1 -2
  401. package/es/components/Panel/ui/PanelHeader/PanelHeader.js.map +1 -1
  402. package/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js +1 -2
  403. package/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js.map +1 -1
  404. package/es/components/Popover/Popover.js +1 -1
  405. package/es/components/Popup/Popup.js +2 -2
  406. package/es/components/Popup/PopupContext.js +1 -1
  407. package/es/components/Range/Range.styles.js +0 -1
  408. package/es/components/Range/Range.styles.js.map +1 -1
  409. package/es/components/Segment/ui/SegmentGroup/SegmentGroup.js +4 -5
  410. package/es/components/Segment/ui/SegmentGroup/SegmentGroup.js.map +1 -1
  411. package/es/components/Select/Select.js +11 -12
  412. package/es/components/Select/Select.js.map +1 -1
  413. package/es/components/Select/Select.styles.js +2 -5
  414. package/es/components/Select/Select.styles.js.map +1 -1
  415. package/es/components/Select/hooks/usePathMaps.js +0 -2
  416. package/es/components/Select/hooks/usePathMaps.js.map +1 -1
  417. package/es/components/Select/ui/Inner/Inner.js +1 -2
  418. package/es/components/Select/ui/Inner/Inner.js.map +1 -1
  419. package/es/components/Select/ui/Inner/ui/Item/Item.js +4 -5
  420. package/es/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  421. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js +0 -1
  422. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  423. package/es/components/Select/ui/Target/ui/Button/Button.js +1 -1
  424. package/es/components/Select/ui/Target/ui/Button/Button.styles.js +1 -3
  425. package/es/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -1
  426. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +2 -2
  427. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -4
  428. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  429. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +1 -2
  430. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js.map +1 -1
  431. package/es/components/Select/utils/getButtonLabel.js +0 -2
  432. package/es/components/Select/utils/getButtonLabel.js.map +1 -1
  433. package/es/components/Sheet/Sheet.js +3 -3
  434. package/es/components/Skeleton/LineSkeleton/LineSkeleton.js +2 -4
  435. package/es/components/Skeleton/LineSkeleton/LineSkeleton.js.map +1 -1
  436. package/es/components/Skeleton/RectSkeleton/RectSkeleton.js +2 -4
  437. package/es/components/Skeleton/RectSkeleton/RectSkeleton.js.map +1 -1
  438. package/es/components/Slider/Slider.js +0 -8
  439. package/es/components/Slider/Slider.js.map +1 -1
  440. package/es/components/Slider/components/Double/Double.js +1 -2
  441. package/es/components/Slider/components/Double/Double.js.map +1 -1
  442. package/es/components/Slider/components/Double/Double.styles.js +0 -1
  443. package/es/components/Slider/components/Double/Double.styles.js.map +1 -1
  444. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +0 -3
  445. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js.map +1 -1
  446. package/es/components/Slider/components/Single/Single.js +1 -2
  447. package/es/components/Slider/components/Single/Single.js.map +1 -1
  448. package/es/components/Slider/components/SliderBase/SliderBase.js +1 -1
  449. package/es/components/Steps/Steps.js +1 -1
  450. package/es/components/Steps/ui/StepItem/StepItem.styles.js +0 -1
  451. package/es/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
  452. package/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +2 -3
  453. package/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js.map +1 -1
  454. package/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js +2 -3
  455. package/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js.map +1 -1
  456. package/es/components/TextArea/TextArea.js +3 -3
  457. package/es/components/TextArea/TextArea.js.map +1 -1
  458. package/es/components/TextArea/TextArea.styles.js +4 -5
  459. package/es/components/TextArea/TextArea.styles.js.map +1 -1
  460. package/es/components/TextArea/ui/Hint/Hint.js +1 -2
  461. package/es/components/TextArea/ui/Hint/Hint.js.map +1 -1
  462. package/es/components/TextField/TextField.js +4 -4
  463. package/es/components/TextField/TextField.js.map +1 -1
  464. package/es/components/TextField/TextField.styles.js +3 -4
  465. package/es/components/TextField/TextField.styles.js.map +1 -1
  466. package/es/components/TextField/ui/Hint/Hint.js +1 -2
  467. package/es/components/TextField/ui/Hint/Hint.js.map +1 -1
  468. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +1 -2
  469. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +1 -1
  470. package/es/components/Toast/Toast.styles.js +1 -1
  471. package/es/components/Toast/ToastController.js +1 -1
  472. package/es/components/Toast/utils.js +1 -2
  473. package/es/components/Toast/utils.js.map +1 -1
  474. package/es/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.js +1 -1
  475. package/es/components/Tooltip/Tooltip.js +2 -3
  476. package/es/components/Tooltip/Tooltip.js.map +1 -1
  477. package/es/engines/index.js +0 -2
  478. package/es/engines/index.js.map +1 -1
  479. package/es/hooks/useIsomorphicLayoutEffect.js +0 -1
  480. package/es/hooks/useIsomorphicLayoutEffect.js.map +1 -1
  481. package/es/index.css +11 -11
  482. package/es/index.js +21 -24
  483. package/es/index.js.map +1 -1
  484. package/es/utils/index.js +0 -3
  485. package/es/utils/index.js.map +1 -1
  486. package/package.json +5 -2
  487. package/styled-components/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +5 -1
  488. package/styled-components/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +5 -1
  489. package/styled-components/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +5 -1
  490. package/styled-components/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +5 -1
  491. package/styled-components/cjs/components/Notification/Notification.styles.js +1 -1
  492. package/styled-components/cjs/components/Notification/Notification.tokens.js +2 -1
  493. package/styled-components/cjs/components/Notification/NotificationsPortal.js +1 -1
  494. package/styled-components/cjs/components/TextArea/TextArea.js +1 -1
  495. package/styled-components/cjs/components/TextArea/TextArea.styles.js +2 -2
  496. package/styled-components/cjs/components/TextField/TextField.js +1 -1
  497. package/styled-components/cjs/components/TextField/TextField.styles.js +2 -2
  498. package/styled-components/es/components/Calendar/ui/CalendarDays/CalendarDays.js +5 -1
  499. package/styled-components/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +5 -1
  500. package/styled-components/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +5 -1
  501. package/styled-components/es/components/Calendar/ui/CalendarYears/CalendarYears.js +5 -1
  502. package/styled-components/es/components/Notification/Notification.styles.js +1 -1
  503. package/styled-components/es/components/Notification/Notification.tokens.js +2 -1
  504. package/styled-components/es/components/Notification/NotificationsPortal.js +1 -1
  505. package/styled-components/es/components/TextArea/TextArea.js +1 -1
  506. package/styled-components/es/components/TextArea/TextArea.styles.js +2 -2
  507. package/styled-components/es/components/TextField/TextField.js +1 -1
  508. package/styled-components/es/components/TextField/TextField.styles.js +2 -2
  509. package/styled-components/package.json +2 -1
  510. package/types/components/Calendar/ui/CalendarDays/CalendarDays.d.ts.map +1 -1
  511. package/types/components/Calendar/ui/CalendarMonths/CalendarMonths.d.ts.map +1 -1
  512. package/types/components/Calendar/ui/CalendarQuarters/CalendarQuarters.d.ts.map +1 -1
  513. package/types/components/Calendar/ui/CalendarYears/CalendarYears.d.ts.map +1 -1
  514. package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts +4 -0
  515. package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts.map +1 -1
  516. package/types/components/Notification/Notification.styles.d.ts.map +1 -1
  517. package/types/components/Notification/Notification.tokens.d.ts +1 -0
  518. package/types/components/Notification/Notification.tokens.d.ts.map +1 -1
  519. package/types/components/Notification/NotificationsPortal.d.ts.map +1 -1
  520. package/types/components/TextArea/TextArea.styles.d.ts +1 -1
  521. package/types/components/TextArea/TextArea.styles.d.ts.map +1 -1
  522. package/types/components/TextField/TextField.styles.d.ts +1 -1
  523. package/types/components/TextField/TextField.styles.d.ts.map +1 -1
  524. package/types/utils/index.d.ts +1 -1
  525. package/types/utils/index.d.ts.map +1 -1
@@ -6,14 +6,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
6
6
  var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
7
7
  var React = require('react');
8
8
  var react = require('@linaria/react');
9
- require('@linaria/core');
10
- var common = require('../../engines/common.js');
11
- var Popover$1 = require('../Popover/Popover.js');
12
9
  var index = require('../../utils/index.js');
13
10
  var Tooltip_styles = require('./Tooltip.styles.js');
14
11
  var base = require('./variations/_view/base.js');
15
12
  var base$1 = require('./variations/_size/base.js');
16
13
  var Tooltip_tokens = require('./Tooltip.tokens.js');
14
+ var common = require('../../engines/common.js');
15
+ var Popover$1 = require('../Popover/Popover.js');
17
16
 
18
17
  var _excluded = ["id", "text", "opened", "isVisible", "isOpen", "hasArrow", "arrow", "animated", "offset", "minWidth", "maxWidth", "placement", "usePortal", "target", "children", "onDismiss", "view", "size", "contentLeft", "zIndex", "className", "style"];
19
18
  var ESCAPE_KEYCODE = 27;
@@ -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, 'opened' | 'text'>>) =>\n forwardRef<HTMLDivElement, TooltipProps>(\n (\n {\n id,\n text,\n opened,\n isVisible,\n isOpen,\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 style,\n ...rest\n },\n outerRef,\n ) => {\n const [ref, setRef] = useState<HTMLDivElement | null>(null);\n\n // TODO убрать после отказа от старого API\n const innerIsOpen = Boolean(isVisible || isOpen || opened);\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 opened={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)}\n {...rest}\n >\n <Root view={view} size={size} ref={setRef} className={className} style={style}>\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","opened","isVisible","isOpen","_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","style","rest","_useState","useState","_useState2","_slicedToArray","ref","setRef","innerIsOpen","Boolean","innerHasArrow","showTooltip","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,gBAAS,CAACC,uBAAa,CAAC,CAAA;AAAC,IAAAC,IAAA,GAlBvBA,SAkBuBA,IAAAA,GAAA;AAAA,EAAA,OAEZH,OAAO,CAAA;AAAA,CAAA,CAAA;AAApC,IAAMI,aAAa,gBAAGC,YAAM,CAAAF,IAAA,EAAA,CAAA,CAAA;AAAAG,EAAAA,IAAA,EAAA,eAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,IAAA;AAAA,CAW3B,CAAA,CAAA;;AAED;AACA;AACA;;IAEaC,WAAW,GAAGA,SAAdA,WAAWA,CAAIC,IAAsE,EAAA;AAAA,EAAA,oBAC9FC,gBAAU,CACN,UAAAC,IAAA,EA0BIC,QAAQ,EACP;AAAA,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ElCW,WAAW,iBAAI6B,KAAA,CAAAC,aAAA,CAACO,gCAAiB,EAAErC,IAAAA,EAAAA,WAA+B,CAAC,EACnErB,IACQ,CACX,CACK,CAAC,CAAA;AAExB,GACJ,CAAC,CAAA;AAAA,EAAA;AAEE,IAAM2D,aAAa,GAAG;AACzBpE,EAAAA,IAAI,EAAE,SAAS;AACfqE,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAEnE,WAAW;AACnBoE,EAAAA,IAAI,EAAE,EAAE;AACRC,EAAAA,UAAU,EAAE;AACR5C,IAAAA,IAAI,EAAE;AACF6C,MAAAA,GAAG,EAAEC,SAAAA;KACR;AACD7C,IAAAA,IAAI,EAAE;AACF4C,MAAAA,GAAG,EAAEE,WAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNhD,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, 'opened' | 'text'>>) =>\n forwardRef<HTMLDivElement, TooltipProps>(\n (\n {\n id,\n text,\n opened,\n isVisible,\n isOpen,\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 style,\n ...rest\n },\n outerRef,\n ) => {\n const [ref, setRef] = useState<HTMLDivElement | null>(null);\n\n // TODO убрать после отказа от старого API\n const innerIsOpen = Boolean(isVisible || isOpen || opened);\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 opened={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)}\n {...rest}\n >\n <Root view={view} size={size} ref={setRef} className={className} style={style}>\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","opened","isVisible","isOpen","_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","style","rest","_useState","useState","_useState2","_slicedToArray","ref","setRef","innerIsOpen","Boolean","innerHasArrow","showTooltip","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,gBAAS,CAACC,uBAAa,CAAC,CAAA;AAAC,IAAAC,IAAA,GAlBvBA,SAkBuBA,IAAAA,GAAA;AAAA,EAAA,OAEZH,OAAO,CAAA;AAAA,CAAA,CAAA;AAApC,I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,KAAK,EAAEA,KAAAA;AAAM,KAAA,eAC1EyB,KAAA,CAAAC,aAAA,CAACM,0BAAW,EAAA;AACR1B,MAAAA,GAAG,EAAEjC,QAAS;AACdC,MAAAA,EAAE,EAAEA,EAAG;AACPyB,MAAAA,SAAS,EAAE8B,QAAE,CAACN,eAAe,CAAE;AAC/BrC,MAAAA,QAAQ,EAAE7B,cAAc,CAAC6B,QAAQ,CAAE;MACnCD,QAAQ,EAAE5B,cAAc,CAAC4B,QAAQ,CAAA;AAAE,KAAA,EAElCW,WAAW,iBAAI6B,KAAA,CAAAC,aAAA,CAACO,gCAAiB,EAAErC,IAAAA,EAAAA,WAA+B,CAAC,EACnErB,IACQ,CACX,CACK,CAAC,CAAA;AAExB,GACJ,CAAC,CAAA;AAAA,EAAA;AAEE,IAAM2D,aAAa,GAAG;AACzBpE,EAAAA,IAAI,EAAE,SAAS;AACfqE,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAEnE,WAAW;AACnBoE,EAAAA,IAAI,EAAE,EAAE;AACRC,EAAAA,UAAU,EAAE;AACR5C,IAAAA,IAAI,EAAE;AACF6C,MAAAA,GAAG,EAAEC,SAAAA;KACR;AACD7C,IAAAA,IAAI,EAAE;AACF4C,MAAAA,GAAG,EAAEE,WAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNhD,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAA;AACV,GAAA;AACJ;;;;;"}
@@ -3,8 +3,6 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var core = require('@linaria/core');
6
- require('react');
7
- require('focus-visible');
8
6
 
9
7
  var css = core.css;
10
8
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/engines/index.ts"],"sourcesContent":["import { css as cssLibrary } from '@linaria/core';\n\nimport type { CSS } from './types';\n\nexport const css = cssLibrary as CSS;\nexport { mergeConfig, component } from './common';\n\nexport type {\n Variant,\n ComponentConfig,\n RootProps,\n CSS,\n RootPropsOmitOnChange,\n RootPropsOmitOnChangeAndDefaultValue,\n} from './types';\n"],"names":["css","cssLibrary"],"mappings":";;;;;;;;AAIO,IAAMA,GAAG,GAAGC;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../src/engines/index.ts"],"sourcesContent":["import { css as cssLibrary } from '@linaria/core';\n\nimport type { CSS } from './types';\n\nexport const css = cssLibrary as CSS;\nexport { mergeConfig, component } from './common';\n\nexport type {\n Variant,\n ComponentConfig,\n RootProps,\n CSS,\n RootPropsOmitOnChange,\n RootPropsOmitOnChangeAndDefaultValue,\n} from './types';\n"],"names":["css","cssLibrary"],"mappings":";;;;;;AAIO,IAAMA,GAAG,GAAGC;;;;"}
@@ -4,7 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
6
  var canUseDOM = require('../utils/canUseDOM.js');
7
- require('../utils/react.js');
8
7
 
9
8
  /**
10
9
  * Runs effect safely on server.
@@ -1 +1 @@
1
- {"version":3,"file":"useIsomorphicLayoutEffect.js","sources":["../../src/hooks/useIsomorphicLayoutEffect.ts"],"sourcesContent":["import { useLayoutEffect, useEffect } from 'react';\n\nimport { canUseDOM } from '../utils';\n\n/**\n * Runs effect safely on server.\n */\nexport const useIsomorphicLayoutEffect = canUseDOM ? useLayoutEffect : useEffect;\n"],"names":["useIsomorphicLayoutEffect","canUseDOM","useLayoutEffect","useEffect"],"mappings":";;;;;;;;AAIA;AACA;AACA;IACaA,yBAAyB,GAAGC,mBAAS,GAAGC,qBAAe,GAAGC;;;;"}
1
+ {"version":3,"file":"useIsomorphicLayoutEffect.js","sources":["../../src/hooks/useIsomorphicLayoutEffect.ts"],"sourcesContent":["import { useLayoutEffect, useEffect } from 'react';\n\nimport { canUseDOM } from '../utils';\n\n/**\n * Runs effect safely on server.\n */\nexport const useIsomorphicLayoutEffect = canUseDOM ? useLayoutEffect : useEffect;\n"],"names":["useIsomorphicLayoutEffect","canUseDOM","useLayoutEffect","useEffect"],"mappings":";;;;;;;AAIA;AACA;AACA;IACaA,yBAAyB,GAAGC,mBAAS,GAAGC,qBAAe,GAAGC;;;;"}
package/cjs/index.css CHANGED
@@ -338,17 +338,17 @@
338
338
 
339
339
  .base_crlufx_bmb6i7f__c6cc97dd .base_crlufx_notificaitonContentBox__c6cc97dd.base_crlufx_notificationLayoutVertical__c6cc97dd{padding:var(--plasma-notification-content-padding-top) var(--plasma-notification-content-padding-right) var(--plasma-notification-content-padding-bottom) var(--plasma-notification-content-padding-left);}.base_crlufx_bmb6i7f__c6cc97dd .base_crlufx_notificaitonContentBox__c6cc97dd.base_crlufx_notificationLayoutVertical__c6cc97dd.base_crlufx_notificationWithoutIcon__c6cc97dd{padding-top:var(--plasma-notification-content-padding-top-without-icon);}.base_crlufx_bmb6i7f__c6cc97dd .base_crlufx_notificationCloseIcon__c6cc97dd.base_crlufx_notificationLayoutVertical__c6cc97dd{top:var(--plasma-notification-close-icon-top);right:var(--plasma-notification-close-icon-right);}
340
340
 
341
- .Notification_styles_7h8hp0_sb12p__2b784e15{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;}
342
- .Notification_styles_7h8hp0_crvd7hm__2b784e15{position:absolute;width:1.5rem;height:1.5rem;color:var(--plasma-notification-close-icon-color);}.Notification_styles_7h8hp0_crvd7hm__2b784e15:hover{color:var(--plasma-notification-close-icon-color-on-hover);}.Notification_styles_7h8hp0_crvd7hm__2b784e15.Notification_styles_7h8hp0_notificationLayoutHorizontal__2b784e15{position:relative;}
343
- .Notification_styles_7h8hp0_wg1ga5v__2b784e15{position:relative;box-sizing:border-box;background:var(--plasma-notification-backgorund);border-radius:var(--plasma-notification-border-radius);}.Notification_styles_7h8hp0_wg1ga5v__2b784e15.Notification_styles_7h8hp0_notificationLayoutHorizontal__2b784e15{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:var(--plasma-notification-horizontal-layout-gap);}
344
- .Notification_styles_7h8hp0_b1amsn8a__2b784e15{margin-top:var(--plasma-notification-buttons-margin-top);margin-left:var(--b1amsn8a-0);}.Notification_styles_7h8hp0_b1amsn8a__2b784e15.Notification_styles_7h8hp0_notificationLayoutHorizontal__2b784e15{margin-top:unset;margin-left:unset;}
345
- .Notification_styles_7h8hp0_i14raqr9__2b784e15{width:var(--plasma-notification-content-left-icon-size);height:var(--plasma-notification-content-left-icon-size);margin-right:var(--i14raqr9-0);margin-bottom:var(--i14raqr9-1);}.Notification_styles_7h8hp0_i14raqr9__2b784e15.Notification_styles_7h8hp0_notificationLayoutHorizontal__2b784e15{margin-right:var(--plasma-notification-horizontal-layout-left-icon-margin);margin-bottom:unset;}
346
- .Notification_styles_7h8hp0_c157peez__2b784e15{display:var(--c157peez-0);padding-top:var(--c157peez-1);}.Notification_styles_7h8hp0_c157peez__2b784e15.Notification_styles_7h8hp0_notificationLayoutHorizontal__2b784e15{padding:unset;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}
347
- .Notification_styles_7h8hp0_t1vmb0f2__2b784e15{padding:var(--plasma-notification-textbox-padding-top) var(--plasma-notification-textbox-padding-right) var(--plasma-notification-textbox-padding-bottom) var(--plasma-notification-textbox-padding-left);padding-top:var(--t1vmb0f2-0);padding-right:var(--t1vmb0f2-1);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;row-gap:var(--plasma-notification-textbox-gap);word-break:break-word;}.Notification_styles_7h8hp0_t1vmb0f2__2b784e15.Notification_styles_7h8hp0_notificationLayoutHorizontal__2b784e15{padding:unset;}
348
- .Notification_styles_7h8hp0_s1k4e58v__2b784e15{font-family:var(--plasma-notification-title-font-family);font-size:var(--plasma-notification-title-font-size);font-style:var(--plasma-notification-title-font-style);font-weight:var(--plasma-notification-title-font-weight);-webkit-letter-spacing:var(--plasma-notification-title-font-letter-spacing);-moz-letter-spacing:var(--plasma-notification-title-font-letter-spacing);-ms-letter-spacing:var(--plasma-notification-title-font-letter-spacing);letter-spacing:var(--plasma-notification-title-font-letter-spacing);line-height:var(--plasma-notification-title-font-line-height);overflow-wrap:break-word;-webkit-hyphens:auto;-moz-hyphens:auto;-ms-hyphens:auto;hyphens:auto;}
349
- .Notification_styles_7h8hp0_s92kmpm__2b784e15{font-family:var(--plasma-notification-content-font-family);font-size:var(--plasma-notification-content-font-size);font-style:var(--plasma-notification-content-font-style);font-weight:var(--plasma-notification-content-font-weight);-webkit-letter-spacing:var(--plasma-notification-content-font-letter-spacing);-moz-letter-spacing:var(--plasma-notification-content-font-letter-spacing);-ms-letter-spacing:var(--plasma-notification-content-font-letter-spacing);letter-spacing:var(--plasma-notification-content-font-letter-spacing);line-height:var(--plasma-notification-content-font-line-height);overflow-wrap:break-word;-webkit-hyphens:auto;-moz-hyphens:auto;-ms-hyphens:auto;hyphens:auto;color:var(--plasma-notification-content-color);}
350
- .Notification_styles_7h8hp0_s18m0x6v__2b784e15{margin-top:1rem;opacity:1;}.Notification_styles_7h8hp0_s18m0x6v__2b784e15.Notification_styles_7h8hp0_s18m0x6v__2b784e15.Notification_styles_7h8hp0_notificationItemOpened__2b784e15{-webkit-animation:0.4s Notification_styles_7h8hp0_showAnimationS18m0x6v__2b784e15 ease-out;animation:0.4s Notification_styles_7h8hp0_showAnimationS18m0x6v__2b784e15 ease-out;}.Notification_styles_7h8hp0_s18m0x6v__2b784e15.Notification_styles_7h8hp0_s18m0x6v__2b784e15.Notification_styles_7h8hp0_notificationItemHidden__2b784e15{-webkit-animation:0.4s Notification_styles_7h8hp0_hideAnimationS18m0x6v__2b784e15 ease-out;animation:0.4s Notification_styles_7h8hp0_hideAnimationS18m0x6v__2b784e15 ease-out;}@-webkit-keyframes Notification_styles_7h8hp0_showAnimationS18m0x6v__2b784e15{0%{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);opacity:0;}100%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);opacity:1;}}@keyframes Notification_styles_7h8hp0_showAnimationS18m0x6v__2b784e15{0%{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);opacity:0;}100%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);opacity:1;}}@-webkit-keyframes Notification_styles_7h8hp0_hideAnimationS18m0x6v__2b784e15{0%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);opacity:1;}100%{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);opacity:0;}}@keyframes Notification_styles_7h8hp0_hideAnimationS18m0x6v__2b784e15{0%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);opacity:1;}100%{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);opacity:0;}}
351
- .Notification_styles_7h8hp0_sfe5ql2__2b784e15{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column-reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;box-sizing:border-box;padding:0 1.5rem 1.5rem;max-height:100%;-webkit-align-items:flex-end;-webkit-box-align:flex-end;-ms-flex-align:flex-end;align-items:flex-end;}
341
+ .Notification_styles_1cf2gwd_sb12p__3923b472{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;}
342
+ .Notification_styles_1cf2gwd_crvd7hm__3923b472{position:absolute;width:1.5rem;height:1.5rem;color:var(--plasma-notification-close-icon-color);}.Notification_styles_1cf2gwd_crvd7hm__3923b472:hover{color:var(--plasma-notification-close-icon-color-on-hover);}.Notification_styles_1cf2gwd_crvd7hm__3923b472.Notification_styles_1cf2gwd_notificationLayoutHorizontal__3923b472{position:relative;}
343
+ .Notification_styles_1cf2gwd_wg1ga5v__3923b472{position:relative;box-sizing:border-box;background:var(--plasma-notification-backgorund);border-radius:var(--plasma-notification-border-radius);}.Notification_styles_1cf2gwd_wg1ga5v__3923b472.Notification_styles_1cf2gwd_notificationLayoutHorizontal__3923b472{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:var(--plasma-notification-horizontal-layout-gap);}
344
+ .Notification_styles_1cf2gwd_b1amsn8a__3923b472{margin-top:var(--plasma-notification-buttons-margin-top);margin-left:var(--b1amsn8a-0);}.Notification_styles_1cf2gwd_b1amsn8a__3923b472.Notification_styles_1cf2gwd_notificationLayoutHorizontal__3923b472{margin-top:unset;margin-left:unset;}
345
+ .Notification_styles_1cf2gwd_i14raqr9__3923b472{width:var(--plasma-notification-content-left-icon-size);height:var(--plasma-notification-content-left-icon-size);margin-right:var(--i14raqr9-0);margin-bottom:var(--i14raqr9-1);}.Notification_styles_1cf2gwd_i14raqr9__3923b472.Notification_styles_1cf2gwd_notificationLayoutHorizontal__3923b472{margin-right:var(--plasma-notification-horizontal-layout-left-icon-margin);margin-bottom:unset;}
346
+ .Notification_styles_1cf2gwd_c157peez__3923b472{display:var(--c157peez-0);padding-top:var(--c157peez-1);}.Notification_styles_1cf2gwd_c157peez__3923b472.Notification_styles_1cf2gwd_notificationLayoutHorizontal__3923b472{padding:unset;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}
347
+ .Notification_styles_1cf2gwd_t1vmb0f2__3923b472{padding:var(--plasma-notification-textbox-padding-top) var(--plasma-notification-textbox-padding-right) var(--plasma-notification-textbox-padding-bottom) var(--plasma-notification-textbox-padding-left);padding-top:var(--t1vmb0f2-0);padding-right:var(--t1vmb0f2-1);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;row-gap:var(--plasma-notification-textbox-gap);word-break:break-word;}.Notification_styles_1cf2gwd_t1vmb0f2__3923b472.Notification_styles_1cf2gwd_notificationLayoutHorizontal__3923b472{padding:unset;}
348
+ .Notification_styles_1cf2gwd_s1k4e58v__3923b472{font-family:var(--plasma-notification-title-font-family);font-size:var(--plasma-notification-title-font-size);font-style:var(--plasma-notification-title-font-style);font-weight:var(--plasma-notification-title-font-weight);-webkit-letter-spacing:var(--plasma-notification-title-font-letter-spacing);-moz-letter-spacing:var(--plasma-notification-title-font-letter-spacing);-ms-letter-spacing:var(--plasma-notification-title-font-letter-spacing);letter-spacing:var(--plasma-notification-title-font-letter-spacing);line-height:var(--plasma-notification-title-font-line-height);overflow-wrap:break-word;-webkit-hyphens:auto;-moz-hyphens:auto;-ms-hyphens:auto;hyphens:auto;}
349
+ .Notification_styles_1cf2gwd_s92kmpm__3923b472{font-family:var(--plasma-notification-content-font-family);font-size:var(--plasma-notification-content-font-size);font-style:var(--plasma-notification-content-font-style);font-weight:var(--plasma-notification-content-font-weight);-webkit-letter-spacing:var(--plasma-notification-content-font-letter-spacing);-moz-letter-spacing:var(--plasma-notification-content-font-letter-spacing);-ms-letter-spacing:var(--plasma-notification-content-font-letter-spacing);letter-spacing:var(--plasma-notification-content-font-letter-spacing);line-height:var(--plasma-notification-content-font-line-height);overflow-wrap:break-word;-webkit-hyphens:auto;-moz-hyphens:auto;-ms-hyphens:auto;hyphens:auto;color:var(--plasma-notification-content-color);}
350
+ .Notification_styles_1cf2gwd_s18m0x6v__3923b472{margin-top:1rem;opacity:1;}.Notification_styles_1cf2gwd_s18m0x6v__3923b472.Notification_styles_1cf2gwd_s18m0x6v__3923b472.Notification_styles_1cf2gwd_notificationItemOpened__3923b472{-webkit-animation:0.4s Notification_styles_1cf2gwd_showAnimationS18m0x6v__3923b472 ease-out;animation:0.4s Notification_styles_1cf2gwd_showAnimationS18m0x6v__3923b472 ease-out;}.Notification_styles_1cf2gwd_s18m0x6v__3923b472.Notification_styles_1cf2gwd_s18m0x6v__3923b472.Notification_styles_1cf2gwd_notificationItemOpened__3923b472.Notification_styles_1cf2gwd_notificationLeftToRightAnimation__3923b472{-webkit-animation:0.4s Notification_styles_1cf2gwd_showLeftToRightAnimationS18m0x6v__3923b472 ease-out;animation:0.4s Notification_styles_1cf2gwd_showLeftToRightAnimationS18m0x6v__3923b472 ease-out;}.Notification_styles_1cf2gwd_s18m0x6v__3923b472.Notification_styles_1cf2gwd_s18m0x6v__3923b472.Notification_styles_1cf2gwd_notificationItemHidden__3923b472{-webkit-animation:0.4s Notification_styles_1cf2gwd_hideAnimationS18m0x6v__3923b472 ease-out;animation:0.4s Notification_styles_1cf2gwd_hideAnimationS18m0x6v__3923b472 ease-out;}.Notification_styles_1cf2gwd_s18m0x6v__3923b472.Notification_styles_1cf2gwd_s18m0x6v__3923b472.Notification_styles_1cf2gwd_notificationItemHidden__3923b472.Notification_styles_1cf2gwd_notificationLeftToRightAnimation__3923b472{-webkit-animation:0.4s Notification_styles_1cf2gwd_hideLeftToRightAnimationS18m0x6v__3923b472 ease-out;animation:0.4s Notification_styles_1cf2gwd_hideLeftToRightAnimationS18m0x6v__3923b472 ease-out;}@-webkit-keyframes Notification_styles_1cf2gwd_showLeftToRightAnimationS18m0x6v__3923b472{0%{-webkit-transform:translateX(-100%);-ms-transform:translateX(-100%);transform:translateX(-100%);opacity:0;}100%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);opacity:1;}}@keyframes Notification_styles_1cf2gwd_showLeftToRightAnimationS18m0x6v__3923b472{0%{-webkit-transform:translateX(-100%);-ms-transform:translateX(-100%);transform:translateX(-100%);opacity:0;}100%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);opacity:1;}}@-webkit-keyframes Notification_styles_1cf2gwd_hideLeftToRightAnimationS18m0x6v__3923b472{0%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);opacity:1;}100%{-webkit-transform:translateX(-100%);-ms-transform:translateX(-100%);transform:translateX(-100%);opacity:0;}}@keyframes Notification_styles_1cf2gwd_hideLeftToRightAnimationS18m0x6v__3923b472{0%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);opacity:1;}100%{-webkit-transform:translateX(-100%);-ms-transform:translateX(-100%);transform:translateX(-100%);opacity:0;}}@-webkit-keyframes Notification_styles_1cf2gwd_showAnimationS18m0x6v__3923b472{0%{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);opacity:0;}100%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);opacity:1;}}@keyframes Notification_styles_1cf2gwd_showAnimationS18m0x6v__3923b472{0%{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);opacity:0;}100%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);opacity:1;}}@-webkit-keyframes Notification_styles_1cf2gwd_hideAnimationS18m0x6v__3923b472{0%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);opacity:1;}100%{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);opacity:0;}}@keyframes Notification_styles_1cf2gwd_hideAnimationS18m0x6v__3923b472{0%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);opacity:1;}100%{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);opacity:0;}}
351
+ .Notification_styles_1cf2gwd_sfe5ql2__3923b472{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column-reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;box-sizing:border-box;padding:0 1.5rem 1.5rem;max-height:100%;-webkit-align-items:flex-end;-webkit-box-align:flex-end;-ms-flex-align:flex-end;align-items:flex-end;}
352
352
 
353
353
  .base_10gjs6e_b11yryf5__c70de98c{background:var(--plasma-panel-background);box-shadow:var(--plasma-panel-shadow);box-sizing:border-box;}
354
354
 
package/cjs/index.js CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var index = require('./engines/index.js');
6
+ var index$1 = require('./utils/index.js');
7
+ var index$2 = require('./components/ButtonBase/index.js');
5
8
  var applyBlur = require('./mixins/applyBlur.js');
6
9
  var applyEllipsis = require('./mixins/applyEllipsis.js');
7
10
  var applySpacing = require('./mixins/applySpacing.js');
@@ -14,7 +17,7 @@ var applyRoundness = require('./mixins/applyRoundness.js');
14
17
  var applySkeletonGradient = require('./mixins/applySkeletonGradient.js');
15
18
  var applyDisabled = require('./mixins/applyDisabled.js');
16
19
  var applyHidden = require('./mixins/applyHidden.js');
17
- var index = require('./engines/index.js');
20
+ var common = require('./engines/common.js');
18
21
  var useUniqId = require('./hooks/useUniqId.js');
19
22
  var useFocusTrap = require('./hooks/useFocusTrap.js');
20
23
  var usePreviousValue = require('./hooks/usePreviousValue.js');
@@ -22,7 +25,16 @@ var useForceUpdate = require('./hooks/useForceUpdate.js');
22
25
  var useDidMountEffect = require('./hooks/useDidMountEffect.js');
23
26
  var useOutsideClick = require('./hooks/useOutsideClick.js');
24
27
  var useIsomorphicLayoutEffect = require('./hooks/useIsomorphicLayoutEffect.js');
25
- var index$1 = require('./utils/index.js');
28
+ var canUseDOM = require('./utils/canUseDOM.js');
29
+ var extractTextFrom = require('./utils/extractTextFrom.js');
30
+ var getSizeValueFromProp = require('./utils/getSizeValueFromProp.js');
31
+ var react = require('./utils/react.js');
32
+ var isNumber = require('./utils/isNumber.js');
33
+ var setRefList = require('./utils/setRefList.js');
34
+ var isEmpty = require('./utils/isEmpty.js');
35
+ var noop = require('./utils/noop.js');
36
+ var getPopoverPlacement = require('./utils/getPopoverPlacement.js');
37
+ var constants = require('./utils/constants.js');
26
38
  var Button = require('./components/Button/Button.js');
27
39
  var Button_tokens = require('./components/Button/Button.tokens.js');
28
40
  var IconButton = require('./components/IconButton/IconButton.js');
@@ -71,6 +83,7 @@ var withRange = require('./components/Calendar/hoc/withRange.js');
71
83
  var CalendarBase = require('./components/Calendar/CalendarBase/CalendarBase.js');
72
84
  var CalendarDouble = require('./components/Calendar/CalendarDouble/CalendarDouble.js');
73
85
  var Calendar_tokens = require('./components/Calendar/Calendar.tokens.js');
86
+ var tokens$1 = require('./components/Typography/tokens.js');
74
87
  var Body = require('./components/Typography/Body/Body.js');
75
88
  var Dspl = require('./components/Typography/Dspl/Dspl.js');
76
89
  var Heading = require('./components/Typography/Heading/Heading.js');
@@ -85,7 +98,6 @@ var Paragraph = require('./components/Typography/Old/Paragraph/Paragraph.js');
85
98
  var ParagraphText = require('./components/Typography/Old/ParagraphText/ParagraphText.js');
86
99
  var Underline = require('./components/Typography/Old/Underline/Underline.js');
87
100
  var Subtitle = require('./components/Typography/Old/Subtitle/Subtitle.js');
88
- var tokens$1 = require('./components/Typography/tokens.js');
89
101
  var PopupContext = require('./components/Popup/PopupContext.js');
90
102
  var Popup = require('./components/Popup/Popup.js');
91
103
  var usePopup = require('./components/Popup/hooks/usePopup.js');
@@ -97,10 +109,10 @@ var Notification = require('./components/Notification/Notification.js');
97
109
  var NotificationsStore = require('./components/Notification/NotificationsStore.js');
98
110
  var Notification_tokens = require('./components/Notification/Notification.tokens.js');
99
111
  var Drawer = require('./components/Drawer/Drawer.js');
112
+ var Drawer_tokens = require('./components/Drawer/Drawer.tokens.js');
100
113
  var DrawerContent = require('./components/Drawer/ui/DrawerContent/DrawerContent.js');
101
114
  var DrawerFooter = require('./components/Drawer/ui/DrawerFooter/DrawerFooter.js');
102
115
  var DrawerHeader = require('./components/Drawer/ui/DrawerHeader/DrawerHeader.js');
103
- var Drawer_tokens = require('./components/Drawer/Drawer.tokens.js');
104
116
  var Dropdown = require('./components/Dropdown/Dropdown.js');
105
117
  var Dropdown_tokens = require('./components/Dropdown/Dropdown.tokens.js');
106
118
  var useKeyboardNavigation = require('./components/Dropdown/hooks/useKeyboardNavigation.js');
@@ -115,8 +127,8 @@ var DropdownOld = require('./components/Dropdown/ui/DropdownOld/DropdownOld.js')
115
127
  var DropdownOld_tokens = require('./components/Dropdown/ui/DropdownOld/DropdownOld.tokens.js');
116
128
  var Tooltip = require('./components/Tooltip/Tooltip.js');
117
129
  var Tooltip_tokens = require('./components/Tooltip/Tooltip.tokens.js');
118
- var SegmentGroup = require('./components/Segment/ui/SegmentGroup/SegmentGroup.js');
119
130
  var SegmentItem = require('./components/Segment/ui/SegmentItem/SegmentItem.js');
131
+ var SegmentGroup = require('./components/Segment/ui/SegmentGroup/SegmentGroup.js');
120
132
  var SegmentProvider = require('./components/Segment/SegmentProvider/SegmentProvider.js');
121
133
  var tokens$2 = require('./components/Segment/tokens.js');
122
134
  var LineSkeleton = require('./components/Skeleton/LineSkeleton/LineSkeleton.js');
@@ -141,23 +153,22 @@ var Toast_tokens = require('./components/Toast/Toast.tokens.js');
141
153
  var Overlay = require('./components/Overlay/Overlay.js');
142
154
  var SSRProvider = require('./components/SSRProvider/SSRProvider.js');
143
155
  var Combobox = require('./components/Combobox/ComboboxOld/Combobox.js');
144
- var Combobox_tokens = require('./components/Combobox/ComboboxOld/Combobox.tokens.js');
145
156
  var ComboboxDivider = require('./components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js');
146
157
  var ComboboxFooter = require('./components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js');
147
158
  var ComboboxGroup = require('./components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js');
148
159
  var ComboboxHeader = require('./components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js');
149
160
  var ComboboxItem = require('./components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.js');
150
161
  var ComboboxTarget = require('./components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.js');
151
- var Combobox$1 = require('./components/Combobox/ComboboxNew/Combobox.js');
162
+ var Combobox_tokens = require('./components/Combobox/ComboboxOld/Combobox.tokens.js');
152
163
  var Combobox_tokens$1 = require('./components/Combobox/ComboboxNew/Combobox.tokens.js');
164
+ var Combobox$1 = require('./components/Combobox/ComboboxNew/Combobox.js');
153
165
  var Indicator = require('./components/Indicator/Indicator.js');
154
166
  var Indicator_tokens = require('./components/Indicator/Indicator.tokens.js');
155
- var index$2 = require('./components/ButtonBase/index.js');
156
167
  var Grid = require('./components/Grid/Grid.js');
157
168
  var Grid_tokens = require('./components/Grid/Grid.tokens.js');
169
+ var index$3 = require('./components/Grid/utils/index.js');
158
170
  var Row = require('./components/Grid/ui/Row/Row.js');
159
171
  var Col = require('./components/Grid/ui/Col/Col.js');
160
- var index$3 = require('./components/Grid/utils/index.js');
161
172
  var Progress = require('./components/Progress/Progress.js');
162
173
  var Progress_tokens = require('./components/Progress/Progress.tokens.js');
163
174
  var Select = require('./components/Select/Select.js');
@@ -171,10 +182,7 @@ var Sheet = require('./components/Sheet/Sheet.js');
171
182
  var Sheet_tokens = require('./components/Sheet/Sheet.tokens.js');
172
183
  var Slider = require('./components/Slider/Slider.js');
173
184
  var Slider_tokens = require('./components/Slider/Slider.tokens.js');
174
- require('react');
175
- require('react-draggable');
176
185
  var Thumb_styles = require('./components/Slider/ui/Thumb/Thumb.styles.js');
177
- require('@linaria/react');
178
186
  var Steps = require('./components/Steps/Steps.js');
179
187
  var Steps_tokens = require('./components/Steps/Steps.tokens.js');
180
188
  var Range = require('./components/Range/Range.js');
@@ -197,20 +205,13 @@ var Editable_tokens = require('./components/Editable/Editable.tokens.js');
197
205
  var Mask = require('./components/Mask/Mask.js');
198
206
  var Attach = require('./components/Attach/Attach.js');
199
207
  var Attach_tokens = require('./components/Attach/Attach.tokens.js');
200
- var common = require('./engines/common.js');
201
- var canUseDOM = require('./utils/canUseDOM.js');
202
- var extractTextFrom = require('./utils/extractTextFrom.js');
203
- var getSizeValueFromProp = require('./utils/getSizeValueFromProp.js');
204
- var react = require('./utils/react.js');
205
- var isNumber = require('./utils/isNumber.js');
206
- var setRefList = require('./utils/setRefList.js');
207
- var isEmpty = require('./utils/isEmpty.js');
208
- var noop = require('./utils/noop.js');
209
- var getPopoverPlacement = require('./utils/getPopoverPlacement.js');
210
- var constants = require('./utils/constants.js');
211
208
 
212
209
 
213
210
 
211
+ exports.css = index.css;
212
+ exports.composableStyle = index$1.composableStyle;
213
+ exports.cx = index$1.cx;
214
+ exports.ButtonBase = index$2.ButtonBase;
214
215
  exports.applyBlur = applyBlur.applyBlur;
215
216
  exports.blurs = applyBlur.blurs;
216
217
  exports.applyEllipsis = applyEllipsis.applyEllipsis;
@@ -286,7 +287,8 @@ exports.applySkeletonGradient = applySkeletonGradient.applySkeletonGradient;
286
287
  exports.getSkeletonColor = applySkeletonGradient.getSkeletonColor;
287
288
  exports.applyDisabled = applyDisabled.applyDisabled;
288
289
  exports.applyHidden = applyHidden.applyHidden;
289
- exports.css = index.css;
290
+ exports.component = common.component;
291
+ exports.mergeConfig = common.mergeConfig;
290
292
  exports.useUniqId = useUniqId.useUniqId;
291
293
  exports.useFocusTrap = useFocusTrap.useFocusTrap;
292
294
  exports.usePreviousValue = usePreviousValue.usePreviousValue;
@@ -294,8 +296,19 @@ exports.useForceUpdate = useForceUpdate.useForceUpdate;
294
296
  exports.useDidMountEffect = useDidMountEffect.useDidMountEffect;
295
297
  exports.useOutsideClick = useOutsideClick.useOutsideClick;
296
298
  exports.useIsomorphicLayoutEffect = useIsomorphicLayoutEffect.useIsomorphicLayoutEffect;
297
- exports.composableStyle = index$1.composableStyle;
298
- exports.cx = index$1.cx;
299
+ exports.canUseDOM = canUseDOM.canUseDOM;
300
+ exports.extractTextFrom = extractTextFrom.extractTextFrom;
301
+ exports.getSizeValueFromProp = getSizeValueFromProp.getSizeValueFromProp;
302
+ exports.IS_REACT_18 = react.IS_REACT_18;
303
+ exports.safeUseId = react.safeUseId;
304
+ exports.isNumber = isNumber.isNumber;
305
+ exports.mergeRefs = setRefList.mergeRefs;
306
+ exports.setRefList = setRefList.setRefList;
307
+ exports.isEmpty = isEmpty.isEmpty;
308
+ exports.noop = noop.noop;
309
+ exports.getPlacement = getPopoverPlacement.getPlacement;
310
+ exports.getPlacements = getPopoverPlacement.getPlacements;
311
+ exports.constants = constants;
299
312
  exports.buttonConfig = Button.buttonConfig;
300
313
  exports.buttonRoot = Button.buttonRoot;
301
314
  exports.buttonClasses = Button_tokens.classes;
@@ -377,6 +390,7 @@ exports.calendarDoubleConfig = CalendarDouble.calendarDoubleConfig;
377
390
  exports.calendarDoubleRoot = CalendarDouble.calendarDoubleRoot;
378
391
  exports.calendarBaseTokens = Calendar_tokens.tokens;
379
392
  exports.calendarDoubleTokens = Calendar_tokens.tokens;
393
+ exports.typographyTokens = tokens$1.tokens;
380
394
  exports.bodyConfig = Body.bodyConfig;
381
395
  exports.bodyRoot = Body.bodyRoot;
382
396
  exports.dsplConfig = Dspl.dsplConfig;
@@ -405,7 +419,6 @@ exports.underlineConfig = Underline.underlineConfig;
405
419
  exports.underlineRoot = Underline.underlineRoot;
406
420
  exports.subtitleConfig = Subtitle.subtitleConfig;
407
421
  exports.subtitleRoot = Subtitle.subtitleRoot;
408
- exports.typographyTokens = tokens$1.tokens;
409
422
  exports.PopupProvider = PopupContext.PopupProvider;
410
423
  exports.usePopupContext = PopupContext.usePopupContext;
411
424
  exports.popupConfig = Popup.popupConfig;
@@ -425,14 +438,14 @@ exports.notificationClasses = Notification_tokens.classes;
425
438
  exports.notificationTokens = Notification_tokens.tokens;
426
439
  exports.drawerConfig = Drawer.drawerConfig;
427
440
  exports.drawerRoot = Drawer.drawerRoot;
441
+ exports.drawerClasses = Drawer_tokens.classes;
442
+ exports.drawerTokens = Drawer_tokens.tokens;
428
443
  exports.drawerContentConfig = DrawerContent.drawerContentConfig;
429
444
  exports.drawerContentRoot = DrawerContent.drawerContentRoot;
430
445
  exports.drawerFooterConfig = DrawerFooter.drawerFooterConfig;
431
446
  exports.drawerFooterRoot = DrawerFooter.drawerFooterRoot;
432
447
  exports.drawerHeaderConfig = DrawerHeader.drawerHeaderConfig;
433
448
  exports.drawerHeaderRoot = DrawerHeader.drawerHeaderRoot;
434
- exports.drawerClasses = Drawer_tokens.classes;
435
- exports.drawerTokens = Drawer_tokens.tokens;
436
449
  exports.dropdownConfig = Dropdown.dropdownConfig;
437
450
  exports.dropdownRoot = Dropdown.dropdownRoot;
438
451
  exports.dropdownClasses = Dropdown_tokens.classes;
@@ -456,10 +469,10 @@ exports.dropdownOldTokens = DropdownOld_tokens.tokens;
456
469
  exports.tooltipConfig = Tooltip.tooltipConfig;
457
470
  exports.tooltipRoot = Tooltip.tooltipRoot;
458
471
  exports.tooltipTokens = Tooltip_tokens.tokens;
459
- exports.segmentGroupConfig = SegmentGroup.segmentGroupConfig;
460
- exports.segmentGroupRoot = SegmentGroup.segmentGroupRoot;
461
472
  exports.segmentItemConfig = SegmentItem.segmentItemConfig;
462
473
  exports.segmentItemRoot = SegmentItem.segmentItemRoot;
474
+ exports.segmentGroupConfig = SegmentGroup.segmentGroupConfig;
475
+ exports.segmentGroupRoot = SegmentGroup.segmentGroupRoot;
463
476
  exports.SegmentProvider = SegmentProvider.SegmentProvider;
464
477
  exports.useSegment = SegmentProvider.useSegment;
465
478
  exports.segmentClasses = tokens$2.classes;
@@ -501,8 +514,6 @@ exports.SSRContext = SSRProvider.SSRContext;
501
514
  exports.SSRProvider = SSRProvider.SSRProvider;
502
515
  exports.comboboxOldConfig = Combobox.comboboxConfig;
503
516
  exports.comboboxOldRoot = Combobox.comboboxRoot;
504
- exports.comboboxOldClasses = Combobox_tokens.classes;
505
- exports.comboboxOldTokens = Combobox_tokens.tokens;
506
517
  exports.comboboxDividerConfig = ComboboxDivider.comboboxDividerConfig;
507
518
  exports.comboboxDividerRoot = ComboboxDivider.comboboxDividerRoot;
508
519
  exports.comboboxFooterConfig = ComboboxFooter.comboboxFooterConfig;
@@ -514,19 +525,20 @@ exports.comboboxHeaderRoot = ComboboxHeader.comboboxHeaderRoot;
514
525
  exports.comboboxItemConfig = ComboboxItem.comboboxItemConfig;
515
526
  exports.comboboxItemRoot = ComboboxItem.comboboxItemRoot;
516
527
  exports.ComboboxTarget = ComboboxTarget.ComboboxTarget;
528
+ exports.comboboxOldClasses = Combobox_tokens.classes;
529
+ exports.comboboxOldTokens = Combobox_tokens.tokens;
530
+ exports.comboboxNewTokens = Combobox_tokens$1.tokens;
517
531
  exports.comboboxNewConfig = Combobox$1.comboboxConfig;
518
532
  exports.comboboxNewRoot = Combobox$1.comboboxRoot;
519
- exports.comboboxNewTokens = Combobox_tokens$1.tokens;
520
533
  exports.indicatorConfig = Indicator.indicatorConfig;
521
534
  exports.indicatorRoot = Indicator.indicatorRoot;
522
535
  exports.indicatorTokens = Indicator_tokens.tokens;
523
- exports.ButtonBase = index$2.ButtonBase;
524
536
  exports.gridConfig = Grid.gridConfig;
525
537
  exports.gridRoot = Grid.gridRoot;
526
538
  exports.gridTokens = Grid_tokens.tokens;
539
+ exports.getBaseGridView = index$3.getBaseGridView;
527
540
  exports.Row = Row.Row;
528
541
  exports.Col = Col.Col;
529
- exports.getBaseGridView = index$3.getBaseGridView;
530
542
  exports.progressConfig = Progress.progressConfig;
531
543
  exports.progressRoot = Progress.progressRoot;
532
544
  exports.progressTokens = Progress_tokens.tokens;
@@ -584,19 +596,4 @@ exports.composeMask = Mask.composeMask;
584
596
  exports.attachConfig = Attach.attachConfig;
585
597
  exports.attachRoot = Attach.attachRoot;
586
598
  exports.attachTokens = Attach_tokens.tokens;
587
- exports.component = common.component;
588
- exports.mergeConfig = common.mergeConfig;
589
- exports.canUseDOM = canUseDOM.canUseDOM;
590
- exports.extractTextFrom = extractTextFrom.extractTextFrom;
591
- exports.getSizeValueFromProp = getSizeValueFromProp.getSizeValueFromProp;
592
- exports.IS_REACT_18 = react.IS_REACT_18;
593
- exports.safeUseId = react.safeUseId;
594
- exports.isNumber = isNumber.isNumber;
595
- exports.mergeRefs = setRefList.mergeRefs;
596
- exports.setRefList = setRefList.setRefList;
597
- exports.isEmpty = isEmpty.isEmpty;
598
- exports.noop = noop.noop;
599
- exports.getPlacement = getPopoverPlacement.getPlacement;
600
- exports.getPlacements = getPopoverPlacement.getPlacements;
601
- exports.constants = constants;
602
599
  //# sourceMappingURL=index.js.map
package/cjs/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -2,9 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('react');
6
- var react = require('./react.js');
7
-
8
5
  var cx = function cx() {
9
6
  for (var _len = arguments.length, classes = new Array(_len), _key = 0; _key < _len; _key++) {
10
7
  classes[_key] = arguments[_key];
@@ -23,8 +20,6 @@ var composableStyle = function composableStyle(s) {
23
20
  return res;
24
21
  };
25
22
 
26
- exports.IS_REACT_18 = react.IS_REACT_18;
27
- exports.safeUseId = react.safeUseId;
28
23
  exports.composableStyle = composableStyle;
29
24
  exports.cx = cx;
30
25
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/utils/index.ts"],"sourcesContent":["import { CSSProperties } from '@linaria/core';\n\nexport { canUseDOM } from './canUseDOM';\nexport { extractTextFrom } from './extractTextFrom';\nexport { getSizeValueFromProp } from './getSizeValueFromProp';\nexport { IS_REACT_18, safeUseId } from './react';\nexport { isNumber } from './isNumber';\nexport { mergeRefs, setRefList } from './setRefList';\nexport { isEmpty } from './isEmpty';\nexport * as constants from './constants';\nexport * from './getPopoverPlacement';\nexport { noop } from './noop';\n\nexport const cx = (...classes: (string | undefined)[]) => classes.filter((classItem) => classItem).join(' ');\n\nexport const composableStyle = (s: TemplateStringsArray, ...expr: Array<string | number | CSSProperties>): string => {\n let res = '';\n for (let i = 0; i < Math.max(s.length, expr.length); ++i) {\n res += s[i] ?? '';\n res += expr[i] ?? '';\n }\n\n return res;\n};\n"],"names":["cx","_len","arguments","length","classes","Array","_key","filter","classItem","join","composableStyle","s","res","i","Math","max","_s$i","_ref","undefined"],"mappings":";;;;;;;AAaaA,IAAAA,EAAE,GAAG,SAALA,EAAEA,GAAA;AAAA,EAAA,KAAA,IAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAOC,OAAO,GAAAC,IAAAA,KAAA,CAAAJ,IAAA,GAAAK,IAAA,GAAA,CAAA,EAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA,EAAA,EAAA;AAAPF,IAAAA,OAAO,CAAAE,IAAA,CAAAJ,GAAAA,SAAA,CAAAI,IAAA,CAAA,CAAA;AAAA,GAAA;AAAA,EAAA,OAA6BF,OAAO,CAACG,MAAM,CAAC,UAACC,SAAS,EAAA;AAAA,IAAA,OAAKA,SAAS,CAAA;AAAA,GAAA,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC,CAAA;AAAA,EAAA;IAE/FC,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,CAAuB,EAA8D;EACjH,IAAIC,GAAG,GAAG,EAAE,CAAA;EACZ,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGC,IAAI,CAACC,GAAG,CAACJ,CAAC,CAACR,MAAM,EAAAD,SAAA,CAAAC,MAAA,IAAA,CAAA,GAAA,CAAA,GAAAD,SAAA,CAAAC,MAAA,GAAA,CAAa,CAAC,EAAE,EAAEU,CAAC,EAAE;IAAA,IAAAG,IAAA,EAAAC,IAAA,CAAA;AACtDL,IAAAA,GAAG,IAAAI,CAAAA,IAAA,GAAIL,CAAC,CAACE,CAAC,CAAC,MAAA,IAAA,IAAAG,IAAA,KAAA,KAAA,CAAA,GAAAA,IAAA,GAAI,EAAE,CAAA;IACjBJ,GAAG,IAAA,CAAAK,IAAA,GAASJ,CAAC,YAAAX,SAAA,CAAAC,MAAA,IAADU,CAAC,OAAAK,SAAA,GAAAhB,SAAA,CAADW,CAAC,mBAAAI,IAAA,KAAA,KAAA,CAAA,GAAAA,IAAA,GAAK,EAAE,CAAA;AACxB,GAAA;AAEA,EAAA,OAAOL,GAAG,CAAA;AACd;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../src/utils/index.ts"],"sourcesContent":["import { CSSProperties } from '@linaria/core';\n\nexport { canUseDOM } from './canUseDOM';\nexport { extractTextFrom } from './extractTextFrom';\nexport { getSizeValueFromProp } from './getSizeValueFromProp';\nexport { IS_REACT_18, safeUseId } from './react';\nexport { isNumber } from './isNumber';\nexport { mergeRefs, setRefList } from './setRefList';\nexport { isEmpty } from './isEmpty';\nexport * as constants from './constants';\nexport * from './getPopoverPlacement';\nexport { noop } from './noop';\n\nexport const cx = (...classes: (string | boolean | undefined)[]) => classes.filter((classItem) => classItem).join(' ');\n\nexport const composableStyle = (s: TemplateStringsArray, ...expr: Array<string | number | CSSProperties>): string => {\n let res = '';\n for (let i = 0; i < Math.max(s.length, expr.length); ++i) {\n res += s[i] ?? '';\n res += expr[i] ?? '';\n }\n\n return res;\n};\n"],"names":["cx","_len","arguments","length","classes","Array","_key","filter","classItem","join","composableStyle","s","res","i","Math","max","_s$i","_ref","undefined"],"mappings":";;;;AAaaA,IAAAA,EAAE,GAAG,SAALA,EAAEA,GAAA;AAAA,EAAA,KAAA,IAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAOC,OAAO,GAAAC,IAAAA,KAAA,CAAAJ,IAAA,GAAAK,IAAA,GAAA,CAAA,EAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA,EAAA,EAAA;AAAPF,IAAAA,OAAO,CAAAE,IAAA,CAAAJ,GAAAA,SAAA,CAAAI,IAAA,CAAA,CAAA;AAAA,GAAA;AAAA,EAAA,OAAuCF,OAAO,CAACG,MAAM,CAAC,UAACC,SAAS,EAAA;AAAA,IAAA,OAAKA,SAAS,CAAA;AAAA,GAAA,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC,CAAA;AAAA,EAAA;IAEzGC,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,CAAuB,EAA8D;EACjH,IAAIC,GAAG,GAAG,EAAE,CAAA;EACZ,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGC,IAAI,CAACC,GAAG,CAACJ,CAAC,CAACR,MAAM,EAAAD,SAAA,CAAAC,MAAA,IAAA,CAAA,GAAA,CAAA,GAAAD,SAAA,CAAAC,MAAA,GAAA,CAAa,CAAC,EAAE,EAAEU,CAAC,EAAE;IAAA,IAAAG,IAAA,EAAAC,IAAA,CAAA;AACtDL,IAAAA,GAAG,IAAAI,CAAAA,IAAA,GAAIL,CAAC,CAACE,CAAC,CAAC,MAAA,IAAA,IAAAG,IAAA,KAAA,KAAA,CAAA,GAAAA,IAAA,GAAI,EAAE,CAAA;IACjBJ,GAAG,IAAA,CAAAK,IAAA,GAASJ,CAAC,YAAAX,SAAA,CAAAC,MAAA,IAADU,CAAC,OAAAK,SAAA,GAAAhB,SAAA,CAADW,CAAC,mBAAAI,IAAA,KAAA,KAAA,CAAA,GAAAA,IAAA,GAAK,EAAE,CAAA;AACxB,GAAA;AAEA,EAAA,OAAOL,GAAG,CAAA;AACd;;;;;"}
@@ -96,6 +96,9 @@ var CalendarDays = exports.CalendarDays = function CalendarDays(_ref) {
96
96
  }
97
97
  onHoverDay === null || onHoverDay === void 0 || onHoverDay(selectedDate);
98
98
  }, [getSelectedDate, onHoverDay, value]);
99
+ var handleMouseOutGrid = function handleMouseOutGrid() {
100
+ return onHoverDay === null || onHoverDay === void 0 ? void 0 : onHoverDay(undefined);
101
+ };
99
102
  var getRefs = function getRefs(element, isDayInCurrentMonth, i, j) {
100
103
  if (isDayInCurrentMonth) {
101
104
  outerRefs.current[i + offset][j] = element;
@@ -110,7 +113,8 @@ var CalendarDays = exports.CalendarDays = function CalendarDays(_ref) {
110
113
  return /*#__PURE__*/_react["default"].createElement(_CalendarDays.StyledCalendarDays, {
111
114
  role: "grid",
112
115
  "aria-labelledby": "id-grid-label",
113
- onKeyDown: onKeyDown
116
+ onKeyDown: onKeyDown,
117
+ onMouseLeave: handleMouseOutGrid
114
118
  }, _StyledCalendarDaysHi || (_StyledCalendarDaysHi = /*#__PURE__*/_react["default"].createElement(_CalendarDays.StyledCalendarDaysHint, {
115
119
  id: "withShift"
116
120
  }, "\u0414\u043B\u044F \u043D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438 \u0442\u043E\u043B\u044C\u043A\u043E \u043F\u043E \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u043C \u0434\u0430\u0442\u0430\u043C \u0443\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Shift.")), /*#__PURE__*/_react["default"].createElement(_CalendarDays.StyledFlex, {
@@ -99,6 +99,9 @@ var CalendarMonths = exports.CalendarMonths = function CalendarMonths(_ref) {
99
99
  }
100
100
  onHoverMonth === null || onHoverMonth === void 0 || onHoverMonth(selectedDate);
101
101
  }, [getSelectedDate, onHoverMonth, value]);
102
+ var handleMouseOutGrid = function handleMouseOutGrid() {
103
+ return onHoverMonth === null || onHoverMonth === void 0 ? void 0 : onHoverMonth(undefined);
104
+ };
102
105
  var getRefs = (0, _react.useCallback)(function (element, i, j) {
103
106
  outerRefs.current[i + offset][j] = element;
104
107
  }, [offset, outerRefs]);
@@ -111,7 +114,8 @@ var CalendarMonths = exports.CalendarMonths = function CalendarMonths(_ref) {
111
114
  return /*#__PURE__*/_react["default"].createElement(_CalendarMonths.StyledCalendarMonths, {
112
115
  role: "grid",
113
116
  "aria-labelledby": "id-grid-label",
114
- onKeyDown: onKeyDown
117
+ onKeyDown: onKeyDown,
118
+ onMouseLeave: handleMouseOutGrid
115
119
  }, months.map(function (month, i) {
116
120
  return /*#__PURE__*/_react["default"].createElement(_CalendarMonths.StyledFlex, {
117
121
  role: "row",
@@ -97,6 +97,9 @@ var CalendarQuarters = exports.CalendarQuarters = function CalendarQuarters(_ref
97
97
  }
98
98
  onHoverQuarter === null || onHoverQuarter === void 0 || onHoverQuarter(selectedDate);
99
99
  }, [getSelectedDate, onHoverQuarter, value]);
100
+ var handleMouseOutGrid = function handleMouseOutGrid() {
101
+ return onHoverQuarter === null || onHoverQuarter === void 0 ? void 0 : onHoverQuarter(undefined);
102
+ };
100
103
  var getRefs = (0, _react.useCallback)(function (element, i, j) {
101
104
  outerRefs.current[i + offset][j] = element;
102
105
  }, [offset, outerRefs]);
@@ -109,7 +112,8 @@ var CalendarQuarters = exports.CalendarQuarters = function CalendarQuarters(_ref
109
112
  return /*#__PURE__*/_react["default"].createElement(_CalendarQuarters.StyledCalendarQuarters, {
110
113
  role: "grid",
111
114
  "aria-labelledby": "id-grid-label",
112
- onKeyDown: onKeyDown
115
+ onKeyDown: onKeyDown,
116
+ onMouseLeave: handleMouseOutGrid
113
117
  }, quarters.map(function (quarter, i) {
114
118
  return /*#__PURE__*/_react["default"].createElement(_CalendarQuarters.StyledFlex, {
115
119
  role: "row",
@@ -99,6 +99,9 @@ var CalendarYears = exports.CalendarYears = function CalendarYears(_ref) {
99
99
  }
100
100
  onHoverYear === null || onHoverYear === void 0 || onHoverYear(selectedDate);
101
101
  }, [getSelectedDate, onHoverYear, value]);
102
+ var handleMouseOutGrid = function handleMouseOutGrid() {
103
+ return onHoverYear === null || onHoverYear === void 0 ? void 0 : onHoverYear(undefined);
104
+ };
102
105
  var getRefs = (0, _react.useCallback)(function (element, i, j) {
103
106
  outerRefs.current[i + offset][j] = element;
104
107
  }, [outerRefs]);
@@ -111,7 +114,8 @@ var CalendarYears = exports.CalendarYears = function CalendarYears(_ref) {
111
114
  return /*#__PURE__*/_react["default"].createElement(_CalendarYears.StyledCalendarYears, {
112
115
  role: "grid",
113
116
  "aria-labelledby": "id-grid-label",
114
- onKeyDown: onKeyDown
117
+ onKeyDown: onKeyDown,
118
+ onMouseLeave: handleMouseOutGrid
115
119
  }, years.map(function (year, i) {
116
120
  return /*#__PURE__*/_react["default"].createElement(_CalendarYears.StyledFlex, {
117
121
  role: "row",