@salutejs/plasma-new-hope 0.173.1-canary.1448.11473442920.0 → 0.173.1-canary.1501.11476138183.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (443) hide show
  1. package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +1 -0
  2. package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles.js.map +1 -1
  3. package/cjs/components/Attach/Attach.js +4 -3
  4. package/cjs/components/Attach/Attach.js.map +1 -1
  5. package/cjs/components/Attach/components/AttachButton/AttachButton.js +1 -0
  6. package/cjs/components/Attach/components/AttachButton/AttachButton.js.map +1 -1
  7. package/cjs/components/Attach/ui/Button/Button.styles.js +1 -0
  8. package/cjs/components/Attach/ui/Button/Button.styles.js.map +1 -1
  9. package/cjs/components/Attach/ui/Cell/Cell.styles.js +2 -0
  10. package/cjs/components/Attach/ui/Cell/Cell.styles.js.map +1 -1
  11. package/cjs/components/Attach/ui/IconButton/IconButton.styles.js +1 -0
  12. package/cjs/components/Attach/ui/IconButton/IconButton.styles.js.map +1 -1
  13. package/cjs/components/Attach/utils/getFileicon.js +4 -3
  14. package/cjs/components/Attach/utils/getFileicon.js.map +1 -1
  15. package/cjs/components/Attach/utils/index.js +3 -0
  16. package/cjs/components/Attach/utils/index.js.map +1 -1
  17. package/cjs/components/Autocomplete/Autocomplete.js +6 -5
  18. package/cjs/components/Autocomplete/Autocomplete.js.map +1 -1
  19. package/cjs/components/Autocomplete/Autocomplete.styles.js +3 -2
  20. package/cjs/components/Autocomplete/Autocomplete.styles.js.map +1 -1
  21. package/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +2 -1
  22. package/cjs/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
  23. package/cjs/components/Avatar/Avatar.js +3 -2
  24. package/cjs/components/Avatar/Avatar.js.map +1 -1
  25. package/cjs/components/Breadcrumbs/Breadcrumbs.styles.js +4 -2
  26. package/cjs/components/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
  27. package/cjs/components/Button/Button.styles.js +3 -0
  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 +4 -4
  37. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +6 -5
  38. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  39. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +1 -0
  40. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  41. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +4 -4
  42. package/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +4 -4
  43. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +4 -4
  44. package/cjs/components/Combobox/ComboboxNew/Combobox.js +12 -11
  45. package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  46. package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +4 -2
  47. package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
  48. package/cjs/components/Combobox/ComboboxNew/hooks/getPathMaps.js +2 -0
  49. package/cjs/components/Combobox/ComboboxNew/hooks/getPathMaps.js.map +1 -1
  50. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.js +2 -1
  51. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.js.map +1 -1
  52. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +6 -5
  53. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
  54. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +3 -1
  55. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  56. package/cjs/components/Combobox/ComboboxNew/ui/Target/Target.styles.js +2 -1
  57. package/cjs/components/Combobox/ComboboxNew/ui/Target/Target.styles.js.map +1 -1
  58. package/cjs/components/Combobox/ComboboxOld/Combobox.js +10 -4
  59. package/cjs/components/Combobox/ComboboxOld/Combobox.js.map +1 -1
  60. package/cjs/components/Combobox/ComboboxOld/Combobox.styles.js +1 -0
  61. package/cjs/components/Combobox/ComboboxOld/Combobox.styles.js.map +1 -1
  62. package/cjs/components/Combobox/ComboboxOld/hooks/useFocusController.js +1 -0
  63. package/cjs/components/Combobox/ComboboxOld/hooks/useFocusController.js.map +1 -1
  64. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js +2 -1
  65. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js.map +1 -1
  66. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js +10 -1
  67. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js.map +1 -1
  68. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js +10 -1
  69. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js.map +1 -1
  70. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js +10 -1
  71. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js.map +1 -1
  72. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js +10 -1
  73. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js.map +1 -1
  74. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js +2 -0
  75. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js.map +1 -1
  76. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.js +1 -1
  77. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js +2 -1
  78. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js.map +1 -1
  79. package/cjs/components/DatePicker/DatePickerBase.styles.js +7 -1
  80. package/cjs/components/DatePicker/DatePickerBase.styles.js.map +1 -1
  81. package/cjs/components/DatePicker/RangeDate/RangeDate.js +1 -1
  82. package/cjs/components/DatePicker/RangeDate/RangeDate.styles.js +1 -0
  83. package/cjs/components/DatePicker/RangeDate/RangeDate.styles.js.map +1 -1
  84. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +2 -1
  85. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -1
  86. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +5 -2
  87. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js.map +1 -1
  88. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +1 -0
  89. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
  90. package/cjs/components/Drawer/Drawer.js +10 -5
  91. package/cjs/components/Drawer/Drawer.js.map +1 -1
  92. package/cjs/components/Drawer/Drawer.styles.js +4 -0
  93. package/cjs/components/Drawer/Drawer.styles.js.map +1 -1
  94. package/cjs/components/Drawer/hooks/useDrawer.js +4 -0
  95. package/cjs/components/Drawer/hooks/useDrawer.js.map +1 -1
  96. package/cjs/components/Drawer/ui/DrawerContent/DrawerContent.js +7 -0
  97. package/cjs/components/Drawer/ui/DrawerContent/DrawerContent.js.map +1 -1
  98. package/cjs/components/Drawer/ui/DrawerFooter/DrawerFooter.js +7 -0
  99. package/cjs/components/Drawer/ui/DrawerFooter/DrawerFooter.js.map +1 -1
  100. package/cjs/components/Drawer/ui/DrawerHeader/DrawerHeader.js +3 -0
  101. package/cjs/components/Drawer/ui/DrawerHeader/DrawerHeader.js.map +1 -1
  102. package/cjs/components/Dropdown/Dropdown.js +10 -3
  103. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  104. package/cjs/components/Dropdown/Dropdown.styles.js +3 -2
  105. package/cjs/components/Dropdown/Dropdown.styles.js.map +1 -1
  106. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +9 -1
  107. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  108. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +2 -1
  109. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  110. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +2 -0
  111. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js.map +1 -1
  112. package/cjs/components/Dropdown/ui/DropdownOld/Dropdown.styles.js +1 -0
  113. package/cjs/components/Dropdown/ui/DropdownOld/Dropdown.styles.js.map +1 -1
  114. package/cjs/components/Editable/Editable.js +4 -3
  115. package/cjs/components/Editable/Editable.js.map +1 -1
  116. package/cjs/components/Editable/utils/clearSelection.js +2 -0
  117. package/cjs/components/Editable/utils/clearSelection.js.map +1 -1
  118. package/cjs/components/Editable/utils/selectText.js +2 -0
  119. package/cjs/components/Editable/utils/selectText.js.map +1 -1
  120. package/cjs/components/EmptyState/EmptyState.styles.js +2 -1
  121. package/cjs/components/EmptyState/EmptyState.styles.js.map +1 -1
  122. package/cjs/components/IconButton/IconButton.js +1 -1
  123. package/cjs/components/IconButton/IconButton.styles.js +8 -0
  124. package/cjs/components/IconButton/IconButton.styles.js.map +1 -1
  125. package/cjs/components/Modal/Modal.js +8 -6
  126. package/cjs/components/Modal/Modal.js.map +1 -1
  127. package/cjs/components/Modal/hooks/useModal.js +4 -0
  128. package/cjs/components/Modal/hooks/useModal.js.map +1 -1
  129. package/cjs/components/Notification/Notification.styles.js +3 -2
  130. package/cjs/components/Notification/Notification.styles.js.map +1 -1
  131. package/cjs/components/Notification/NotificationsPortal.js +4 -3
  132. package/cjs/components/Notification/NotificationsPortal.js.map +1 -1
  133. package/cjs/components/Pagination/Pagination.styles.js +2 -1
  134. package/cjs/components/Pagination/Pagination.styles.js.map +1 -1
  135. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +2 -1
  136. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  137. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.js +2 -1
  138. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.js.map +1 -1
  139. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js +2 -1
  140. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js.map +1 -1
  141. package/cjs/components/Popover/Popover.js +1 -1
  142. package/cjs/components/Popup/Popup.js +2 -2
  143. package/cjs/components/Popup/PopupContext.js +1 -1
  144. package/cjs/components/Range/Range.styles.js +1 -0
  145. package/cjs/components/Range/Range.styles.js.map +1 -1
  146. package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js +5 -4
  147. package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js.map +1 -1
  148. package/cjs/components/Select/Select.js +12 -11
  149. package/cjs/components/Select/Select.js.map +1 -1
  150. package/cjs/components/Select/Select.styles.js +5 -2
  151. package/cjs/components/Select/Select.styles.js.map +1 -1
  152. package/cjs/components/Select/hooks/usePathMaps.js +2 -0
  153. package/cjs/components/Select/hooks/usePathMaps.js.map +1 -1
  154. package/cjs/components/Select/ui/Inner/Inner.js +2 -1
  155. package/cjs/components/Select/ui/Inner/Inner.js.map +1 -1
  156. package/cjs/components/Select/ui/Inner/ui/Item/Item.js +5 -4
  157. package/cjs/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  158. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +1 -0
  159. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  160. package/cjs/components/Select/ui/Target/ui/Button/Button.js +1 -1
  161. package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +3 -1
  162. package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -1
  163. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +2 -2
  164. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +4 -1
  165. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  166. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +2 -1
  167. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js.map +1 -1
  168. package/cjs/components/Select/utils/getButtonLabel.js +2 -0
  169. package/cjs/components/Select/utils/getButtonLabel.js.map +1 -1
  170. package/cjs/components/Sheet/Sheet.js +3 -3
  171. package/cjs/components/Skeleton/LineSkeleton/LineSkeleton.js +4 -2
  172. package/cjs/components/Skeleton/LineSkeleton/LineSkeleton.js.map +1 -1
  173. package/cjs/components/Skeleton/RectSkeleton/RectSkeleton.js +4 -2
  174. package/cjs/components/Skeleton/RectSkeleton/RectSkeleton.js.map +1 -1
  175. package/cjs/components/Slider/Slider.js +8 -0
  176. package/cjs/components/Slider/Slider.js.map +1 -1
  177. package/cjs/components/Slider/components/Double/Double.js +2 -1
  178. package/cjs/components/Slider/components/Double/Double.js.map +1 -1
  179. package/cjs/components/Slider/components/Double/Double.styles.js +1 -0
  180. package/cjs/components/Slider/components/Double/Double.styles.js.map +1 -1
  181. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +3 -0
  182. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js.map +1 -1
  183. package/cjs/components/Slider/components/Single/Single.js +2 -1
  184. package/cjs/components/Slider/components/Single/Single.js.map +1 -1
  185. package/cjs/components/Slider/components/SliderBase/SliderBase.js +1 -1
  186. package/cjs/components/Steps/Steps.js +1 -1
  187. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js +1 -0
  188. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
  189. package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +3 -2
  190. package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js.map +1 -1
  191. package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js +3 -2
  192. package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js.map +1 -1
  193. package/cjs/components/TextArea/TextArea.js +2 -2
  194. package/cjs/components/TextArea/TextArea.styles.js +3 -2
  195. package/cjs/components/TextArea/TextArea.styles.js.map +1 -1
  196. package/cjs/components/TextArea/ui/Hint/Hint.js +2 -1
  197. package/cjs/components/TextArea/ui/Hint/Hint.js.map +1 -1
  198. package/cjs/components/TextField/TextField.js +3 -3
  199. package/cjs/components/TextField/TextField.styles.js +2 -1
  200. package/cjs/components/TextField/TextField.styles.js.map +1 -1
  201. package/cjs/components/TextField/ui/Hint/Hint.js +2 -1
  202. package/cjs/components/TextField/ui/Hint/Hint.js.map +1 -1
  203. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +2 -1
  204. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +1 -1
  205. package/cjs/components/Toast/Toast.styles.js +1 -1
  206. package/cjs/components/Toast/ToastController.js +1 -1
  207. package/cjs/components/Toast/utils.js +2 -1
  208. package/cjs/components/Toast/utils.js.map +1 -1
  209. package/cjs/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.js +1 -1
  210. package/cjs/components/Tooltip/Tooltip.js +3 -2
  211. package/cjs/components/Tooltip/Tooltip.js.map +1 -1
  212. package/cjs/engines/index.js +2 -0
  213. package/cjs/engines/index.js.map +1 -1
  214. package/cjs/hooks/useIsomorphicLayoutEffect.js +1 -0
  215. package/cjs/hooks/useIsomorphicLayoutEffect.js.map +1 -1
  216. package/cjs/index.js +51 -48
  217. package/cjs/index.js.map +1 -1
  218. package/cjs/utils/index.js +5 -0
  219. package/cjs/utils/index.js.map +1 -1
  220. package/emotion/package.json +1 -2
  221. package/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +1 -0
  222. package/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js.map +1 -1
  223. package/es/components/Attach/Attach.js +4 -3
  224. package/es/components/Attach/Attach.js.map +1 -1
  225. package/es/components/Attach/components/AttachButton/AttachButton.js +1 -0
  226. package/es/components/Attach/components/AttachButton/AttachButton.js.map +1 -1
  227. package/es/components/Attach/ui/Button/Button.styles.js +1 -0
  228. package/es/components/Attach/ui/Button/Button.styles.js.map +1 -1
  229. package/es/components/Attach/ui/Cell/Cell.styles.js +2 -0
  230. package/es/components/Attach/ui/Cell/Cell.styles.js.map +1 -1
  231. package/es/components/Attach/ui/IconButton/IconButton.styles.js +1 -0
  232. package/es/components/Attach/ui/IconButton/IconButton.styles.js.map +1 -1
  233. package/es/components/Attach/utils/getFileicon.js +4 -3
  234. package/es/components/Attach/utils/getFileicon.js.map +1 -1
  235. package/es/components/Attach/utils/index.js +3 -0
  236. package/es/components/Attach/utils/index.js.map +1 -1
  237. package/es/components/Autocomplete/Autocomplete.js +6 -5
  238. package/es/components/Autocomplete/Autocomplete.js.map +1 -1
  239. package/es/components/Autocomplete/Autocomplete.styles.js +3 -2
  240. package/es/components/Autocomplete/Autocomplete.styles.js.map +1 -1
  241. package/es/components/Autocomplete/ui/TextField/TextField.styles.js +2 -1
  242. package/es/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
  243. package/es/components/Avatar/Avatar.js +3 -2
  244. package/es/components/Avatar/Avatar.js.map +1 -1
  245. package/es/components/Breadcrumbs/Breadcrumbs.styles.js +4 -2
  246. package/es/components/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
  247. package/es/components/Button/Button.styles.js +3 -0
  248. package/es/components/Button/Button.styles.js.map +1 -1
  249. package/es/components/Calendar/CalendarBase/CalendarBase.js +5 -5
  250. package/es/components/Calendar/CalendarDouble/CalendarDouble.js +8 -8
  251. package/es/components/Calendar/hooks/useDays.js +2 -2
  252. package/es/components/Calendar/hooks/useKeyNavigation.js +1 -1
  253. package/es/components/Calendar/hooks/useMonths.js +2 -2
  254. package/es/components/Calendar/hooks/useQuarters.js +2 -2
  255. package/es/components/Calendar/hooks/useYears.js +2 -2
  256. package/es/components/Calendar/ui/CalendarDays/CalendarDays.js +4 -4
  257. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +6 -5
  258. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  259. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +1 -0
  260. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  261. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +4 -4
  262. package/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +4 -4
  263. package/es/components/Calendar/ui/CalendarYears/CalendarYears.js +4 -4
  264. package/es/components/Combobox/ComboboxNew/Combobox.js +12 -11
  265. package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  266. package/es/components/Combobox/ComboboxNew/Combobox.styles.js +4 -2
  267. package/es/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
  268. package/es/components/Combobox/ComboboxNew/hooks/getPathMaps.js +2 -0
  269. package/es/components/Combobox/ComboboxNew/hooks/getPathMaps.js.map +1 -1
  270. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.js +2 -1
  271. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.js.map +1 -1
  272. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +6 -5
  273. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
  274. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +3 -1
  275. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  276. package/es/components/Combobox/ComboboxNew/ui/Target/Target.styles.js +2 -1
  277. package/es/components/Combobox/ComboboxNew/ui/Target/Target.styles.js.map +1 -1
  278. package/es/components/Combobox/ComboboxOld/Combobox.js +10 -4
  279. package/es/components/Combobox/ComboboxOld/Combobox.js.map +1 -1
  280. package/es/components/Combobox/ComboboxOld/Combobox.styles.js +1 -0
  281. package/es/components/Combobox/ComboboxOld/Combobox.styles.js.map +1 -1
  282. package/es/components/Combobox/ComboboxOld/hooks/useFocusController.js +1 -0
  283. package/es/components/Combobox/ComboboxOld/hooks/useFocusController.js.map +1 -1
  284. package/es/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js +2 -1
  285. package/es/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js.map +1 -1
  286. package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js +10 -1
  287. package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js.map +1 -1
  288. package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js +10 -1
  289. package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js.map +1 -1
  290. package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js +10 -1
  291. package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js.map +1 -1
  292. package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js +10 -1
  293. package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js.map +1 -1
  294. package/es/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js +2 -0
  295. package/es/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js.map +1 -1
  296. package/es/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.js +1 -1
  297. package/es/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js +2 -1
  298. package/es/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js.map +1 -1
  299. package/es/components/DatePicker/DatePickerBase.styles.js +7 -1
  300. package/es/components/DatePicker/DatePickerBase.styles.js.map +1 -1
  301. package/es/components/DatePicker/RangeDate/RangeDate.js +1 -1
  302. package/es/components/DatePicker/RangeDate/RangeDate.styles.js +1 -0
  303. package/es/components/DatePicker/RangeDate/RangeDate.styles.js.map +1 -1
  304. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +2 -1
  305. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -1
  306. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +5 -2
  307. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js.map +1 -1
  308. package/es/components/DatePicker/SingleDate/SingleDate.styles.js +1 -0
  309. package/es/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
  310. package/es/components/Drawer/Drawer.js +10 -5
  311. package/es/components/Drawer/Drawer.js.map +1 -1
  312. package/es/components/Drawer/Drawer.styles.js +4 -0
  313. package/es/components/Drawer/Drawer.styles.js.map +1 -1
  314. package/es/components/Drawer/hooks/useDrawer.js +4 -0
  315. package/es/components/Drawer/hooks/useDrawer.js.map +1 -1
  316. package/es/components/Drawer/ui/DrawerContent/DrawerContent.js +7 -0
  317. package/es/components/Drawer/ui/DrawerContent/DrawerContent.js.map +1 -1
  318. package/es/components/Drawer/ui/DrawerFooter/DrawerFooter.js +7 -0
  319. package/es/components/Drawer/ui/DrawerFooter/DrawerFooter.js.map +1 -1
  320. package/es/components/Drawer/ui/DrawerHeader/DrawerHeader.js +3 -0
  321. package/es/components/Drawer/ui/DrawerHeader/DrawerHeader.js.map +1 -1
  322. package/es/components/Dropdown/Dropdown.js +10 -3
  323. package/es/components/Dropdown/Dropdown.js.map +1 -1
  324. package/es/components/Dropdown/Dropdown.styles.js +3 -2
  325. package/es/components/Dropdown/Dropdown.styles.js.map +1 -1
  326. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +9 -1
  327. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  328. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +2 -1
  329. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  330. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +2 -0
  331. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js.map +1 -1
  332. package/es/components/Dropdown/ui/DropdownOld/Dropdown.styles.js +1 -0
  333. package/es/components/Dropdown/ui/DropdownOld/Dropdown.styles.js.map +1 -1
  334. package/es/components/Editable/Editable.js +4 -3
  335. package/es/components/Editable/Editable.js.map +1 -1
  336. package/es/components/Editable/utils/clearSelection.js +2 -0
  337. package/es/components/Editable/utils/clearSelection.js.map +1 -1
  338. package/es/components/Editable/utils/selectText.js +2 -0
  339. package/es/components/Editable/utils/selectText.js.map +1 -1
  340. package/es/components/EmptyState/EmptyState.styles.js +2 -1
  341. package/es/components/EmptyState/EmptyState.styles.js.map +1 -1
  342. package/es/components/IconButton/IconButton.js +1 -1
  343. package/es/components/IconButton/IconButton.styles.js +8 -0
  344. package/es/components/IconButton/IconButton.styles.js.map +1 -1
  345. package/es/components/Modal/Modal.js +8 -6
  346. package/es/components/Modal/Modal.js.map +1 -1
  347. package/es/components/Modal/hooks/useModal.js +4 -0
  348. package/es/components/Modal/hooks/useModal.js.map +1 -1
  349. package/es/components/Notification/Notification.styles.js +3 -2
  350. package/es/components/Notification/Notification.styles.js.map +1 -1
  351. package/es/components/Notification/NotificationsPortal.js +4 -3
  352. package/es/components/Notification/NotificationsPortal.js.map +1 -1
  353. package/es/components/Pagination/Pagination.styles.js +2 -1
  354. package/es/components/Pagination/Pagination.styles.js.map +1 -1
  355. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +2 -1
  356. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  357. package/es/components/Panel/ui/PanelHeader/PanelHeader.js +2 -1
  358. package/es/components/Panel/ui/PanelHeader/PanelHeader.js.map +1 -1
  359. package/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js +2 -1
  360. package/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js.map +1 -1
  361. package/es/components/Popover/Popover.js +1 -1
  362. package/es/components/Popup/Popup.js +2 -2
  363. package/es/components/Popup/PopupContext.js +1 -1
  364. package/es/components/Range/Range.styles.js +1 -0
  365. package/es/components/Range/Range.styles.js.map +1 -1
  366. package/es/components/Segment/ui/SegmentGroup/SegmentGroup.js +5 -4
  367. package/es/components/Segment/ui/SegmentGroup/SegmentGroup.js.map +1 -1
  368. package/es/components/Select/Select.js +12 -11
  369. package/es/components/Select/Select.js.map +1 -1
  370. package/es/components/Select/Select.styles.js +5 -2
  371. package/es/components/Select/Select.styles.js.map +1 -1
  372. package/es/components/Select/hooks/usePathMaps.js +2 -0
  373. package/es/components/Select/hooks/usePathMaps.js.map +1 -1
  374. package/es/components/Select/ui/Inner/Inner.js +2 -1
  375. package/es/components/Select/ui/Inner/Inner.js.map +1 -1
  376. package/es/components/Select/ui/Inner/ui/Item/Item.js +5 -4
  377. package/es/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  378. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js +1 -0
  379. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  380. package/es/components/Select/ui/Target/ui/Button/Button.js +1 -1
  381. package/es/components/Select/ui/Target/ui/Button/Button.styles.js +3 -1
  382. package/es/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -1
  383. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +2 -2
  384. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +4 -1
  385. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  386. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +2 -1
  387. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js.map +1 -1
  388. package/es/components/Select/utils/getButtonLabel.js +2 -0
  389. package/es/components/Select/utils/getButtonLabel.js.map +1 -1
  390. package/es/components/Sheet/Sheet.js +3 -3
  391. package/es/components/Skeleton/LineSkeleton/LineSkeleton.js +4 -2
  392. package/es/components/Skeleton/LineSkeleton/LineSkeleton.js.map +1 -1
  393. package/es/components/Skeleton/RectSkeleton/RectSkeleton.js +4 -2
  394. package/es/components/Skeleton/RectSkeleton/RectSkeleton.js.map +1 -1
  395. package/es/components/Slider/Slider.js +8 -0
  396. package/es/components/Slider/Slider.js.map +1 -1
  397. package/es/components/Slider/components/Double/Double.js +2 -1
  398. package/es/components/Slider/components/Double/Double.js.map +1 -1
  399. package/es/components/Slider/components/Double/Double.styles.js +1 -0
  400. package/es/components/Slider/components/Double/Double.styles.js.map +1 -1
  401. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +3 -0
  402. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js.map +1 -1
  403. package/es/components/Slider/components/Single/Single.js +2 -1
  404. package/es/components/Slider/components/Single/Single.js.map +1 -1
  405. package/es/components/Slider/components/SliderBase/SliderBase.js +1 -1
  406. package/es/components/Steps/Steps.js +1 -1
  407. package/es/components/Steps/ui/StepItem/StepItem.styles.js +1 -0
  408. package/es/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
  409. package/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +3 -2
  410. package/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js.map +1 -1
  411. package/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js +3 -2
  412. package/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js.map +1 -1
  413. package/es/components/TextArea/TextArea.js +2 -2
  414. package/es/components/TextArea/TextArea.styles.js +3 -2
  415. package/es/components/TextArea/TextArea.styles.js.map +1 -1
  416. package/es/components/TextArea/ui/Hint/Hint.js +2 -1
  417. package/es/components/TextArea/ui/Hint/Hint.js.map +1 -1
  418. package/es/components/TextField/TextField.js +3 -3
  419. package/es/components/TextField/TextField.styles.js +2 -1
  420. package/es/components/TextField/TextField.styles.js.map +1 -1
  421. package/es/components/TextField/ui/Hint/Hint.js +2 -1
  422. package/es/components/TextField/ui/Hint/Hint.js.map +1 -1
  423. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +2 -1
  424. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +1 -1
  425. package/es/components/Toast/Toast.styles.js +1 -1
  426. package/es/components/Toast/ToastController.js +1 -1
  427. package/es/components/Toast/utils.js +2 -1
  428. package/es/components/Toast/utils.js.map +1 -1
  429. package/es/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.js +1 -1
  430. package/es/components/Tooltip/Tooltip.js +3 -2
  431. package/es/components/Tooltip/Tooltip.js.map +1 -1
  432. package/es/engines/index.js +2 -0
  433. package/es/engines/index.js.map +1 -1
  434. package/es/hooks/useIsomorphicLayoutEffect.js +1 -0
  435. package/es/hooks/useIsomorphicLayoutEffect.js.map +1 -1
  436. package/es/index.js +24 -21
  437. package/es/index.js.map +1 -1
  438. package/es/utils/index.js +3 -0
  439. package/es/utils/index.js.map +1 -1
  440. package/package.json +2 -5
  441. package/styled-components/package.json +1 -2
  442. package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts +4 -0
  443. package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts.map +1 -1
@@ -5,8 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var _rollupPluginBabelHelpers = require('../../../../_virtual/_rollupPluginBabelHelpers.js');
6
6
  var React = require('react');
7
7
  var TextField_styles = require('../../TextField.styles.js');
8
- var react = require('../../../../utils/react.js');
8
+ require('@linaria/react');
9
9
  var IconInfoCircleOutline = require('../../../_Icon/Icons/IconInfoCircleOutline.js');
10
+ var react = require('../../../../utils/react.js');
10
11
 
11
12
  var _IconInfoCircleOutlin;
12
13
  var HintComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
@@ -1 +1 @@
1
- {"version":3,"file":"Hint.js","sources":["../../../../../src/components/TextField/ui/Hint/Hint.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { Hint, HintTargetWrapper, HintIconWrapper } from '../../TextField.styles';\nimport { IconInfoCircleOutline } from '../../../_Icon';\nimport { safeUseId } from '../../../../utils';\n\nimport type { TextFieldHintProps } from './Hint.types';\n\nexport const HintComponent = forwardRef<HTMLDivElement, TextFieldHintProps>(\n (\n {\n hintText,\n isHintVisible,\n hintTrigger,\n hintTargetIcon,\n hintPlacement,\n hintHasArrow,\n hintOffset,\n hintWidth,\n hintContentLeft,\n handleHintShow,\n handleHintHide,\n handleHintClick,\n },\n ref,\n ) => {\n const hintId = safeUseId();\n\n return (\n <Hint\n ref={ref}\n text={String(hintText)}\n opened={isHintVisible}\n target={\n <HintTargetWrapper>\n <HintIconWrapper\n id={hintId}\n {...(hintTrigger === 'hover'\n ? {\n onMouseEnter: handleHintShow,\n onMouseLeave: handleHintHide,\n }\n : { onClick: handleHintClick })}\n >\n {hintTargetIcon || <IconInfoCircleOutline size=\"xs\" color=\"inherit\" />}\n </HintIconWrapper>\n </HintTargetWrapper>\n }\n placement={hintPlacement}\n hasArrow={hintHasArrow}\n offset={hintOffset}\n minWidth={hintWidth}\n maxWidth={hintWidth}\n contentLeft={hintContentLeft}\n frame={hintId}\n />\n );\n },\n);\n"],"names":["HintComponent","forwardRef","_ref","ref","hintText","isHintVisible","hintTrigger","hintTargetIcon","hintPlacement","hintHasArrow","hintOffset","hintWidth","hintContentLeft","handleHintShow","handleHintHide","handleHintClick","hintId","safeUseId","React","createElement","Hint","text","String","opened","target","HintTargetWrapper","HintIconWrapper","_extends","id","onMouseEnter","onMouseLeave","onClick","_IconInfoCircleOutlin","IconInfoCircleOutline","size","color","placement","hasArrow","offset","minWidth","maxWidth","contentLeft","frame"],"mappings":";;;;;;;;;;;AAQO,IAAMA,aAAa,gBAAGC,gBAAU,CACnC,UAAAC,IAAA,EAeIC,GAAG,EACF;AAAA,EAAA,IAdGC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IACRC,aAAa,GAAAH,IAAA,CAAbG,aAAa;IACbC,WAAW,GAAAJ,IAAA,CAAXI,WAAW;IACXC,cAAc,GAAAL,IAAA,CAAdK,cAAc;IACdC,aAAa,GAAAN,IAAA,CAAbM,aAAa;IACbC,YAAY,GAAAP,IAAA,CAAZO,YAAY;IACZC,UAAU,GAAAR,IAAA,CAAVQ,UAAU;IACVC,SAAS,GAAAT,IAAA,CAATS,SAAS;IACTC,eAAe,GAAAV,IAAA,CAAfU,eAAe;IACfC,cAAc,GAAAX,IAAA,CAAdW,cAAc;IACdC,cAAc,GAAAZ,IAAA,CAAdY,cAAc;IACdC,eAAe,GAAAb,IAAA,CAAfa,eAAe,CAAA;AAInB,EAAA,IAAMC,MAAM,GAAGC,eAAS,EAAE,CAAA;AAE1B,EAAA,oBACIC,KAAA,CAAAC,aAAA,CAACC,qBAAI,EAAA;AACDjB,IAAAA,GAAG,EAAEA,GAAI;AACTkB,IAAAA,IAAI,EAAEC,MAAM,CAAClB,QAAQ,CAAE;AACvBmB,IAAAA,MAAM,EAAElB,aAAc;AACtBmB,IAAAA,MAAM,eACFN,KAAA,CAAAC,aAAA,CAACM,kCAAiB,EACdP,IAAAA,eAAAA,KAAA,CAAAC,aAAA,CAACO,gCAAe,EAAAC,iCAAA,CAAA;AACZC,MAAAA,EAAE,EAAEZ,MAAAA;KACCV,EAAAA,WAAW,KAAK,OAAO,GACtB;AACIuB,MAAAA,YAAY,EAAEhB,cAAc;AAC5BiB,MAAAA,YAAY,EAAEhB,cAAAA;AAClB,KAAC,GACD;AAAEiB,MAAAA,OAAO,EAAEhB,eAAAA;KAAiB,CAAA,EAEjCR,cAAc,IAAAyB,qBAAA,KAAAA,qBAAA,gBAAId,KAAA,CAAAC,aAAA,CAACc,2CAAqB,EAAA;AAACC,MAAAA,IAAI,EAAC,IAAI;AAACC,MAAAA,KAAK,EAAC,SAAA;KAAW,CAAC,CACzD,CACF,CACtB;AACDC,IAAAA,SAAS,EAAE5B,aAAc;AACzB6B,IAAAA,QAAQ,EAAE5B,YAAa;AACvB6B,IAAAA,MAAM,EAAE5B,UAAW;AACnB6B,IAAAA,QAAQ,EAAE5B,SAAU;AACpB6B,IAAAA,QAAQ,EAAE7B,SAAU;AACpB8B,IAAAA,WAAW,EAAE7B,eAAgB;AAC7B8B,IAAAA,KAAK,EAAE1B,MAAAA;AAAO,GACjB,CAAC,CAAA;AAEV,CACJ;;;;"}
1
+ {"version":3,"file":"Hint.js","sources":["../../../../../src/components/TextField/ui/Hint/Hint.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { Hint, HintTargetWrapper, HintIconWrapper } from '../../TextField.styles';\nimport { IconInfoCircleOutline } from '../../../_Icon';\nimport { safeUseId } from '../../../../utils';\n\nimport type { TextFieldHintProps } from './Hint.types';\n\nexport const HintComponent = forwardRef<HTMLDivElement, TextFieldHintProps>(\n (\n {\n hintText,\n isHintVisible,\n hintTrigger,\n hintTargetIcon,\n hintPlacement,\n hintHasArrow,\n hintOffset,\n hintWidth,\n hintContentLeft,\n handleHintShow,\n handleHintHide,\n handleHintClick,\n },\n ref,\n ) => {\n const hintId = safeUseId();\n\n return (\n <Hint\n ref={ref}\n text={String(hintText)}\n opened={isHintVisible}\n target={\n <HintTargetWrapper>\n <HintIconWrapper\n id={hintId}\n {...(hintTrigger === 'hover'\n ? {\n onMouseEnter: handleHintShow,\n onMouseLeave: handleHintHide,\n }\n : { onClick: handleHintClick })}\n >\n {hintTargetIcon || <IconInfoCircleOutline size=\"xs\" color=\"inherit\" />}\n </HintIconWrapper>\n </HintTargetWrapper>\n }\n placement={hintPlacement}\n hasArrow={hintHasArrow}\n offset={hintOffset}\n minWidth={hintWidth}\n maxWidth={hintWidth}\n contentLeft={hintContentLeft}\n frame={hintId}\n />\n );\n },\n);\n"],"names":["HintComponent","forwardRef","_ref","ref","hintText","isHintVisible","hintTrigger","hintTargetIcon","hintPlacement","hintHasArrow","hintOffset","hintWidth","hintContentLeft","handleHintShow","handleHintHide","handleHintClick","hintId","safeUseId","React","createElement","Hint","text","String","opened","target","HintTargetWrapper","HintIconWrapper","_extends","id","onMouseEnter","onMouseLeave","onClick","_IconInfoCircleOutlin","IconInfoCircleOutline","size","color","placement","hasArrow","offset","minWidth","maxWidth","contentLeft","frame"],"mappings":";;;;;;;;;;;;AAQO,IAAMA,aAAa,gBAAGC,gBAAU,CACnC,UAAAC,IAAA,EAeIC,GAAG,EACF;AAAA,EAAA,IAdGC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IACRC,aAAa,GAAAH,IAAA,CAAbG,aAAa;IACbC,WAAW,GAAAJ,IAAA,CAAXI,WAAW;IACXC,cAAc,GAAAL,IAAA,CAAdK,cAAc;IACdC,aAAa,GAAAN,IAAA,CAAbM,aAAa;IACbC,YAAY,GAAAP,IAAA,CAAZO,YAAY;IACZC,UAAU,GAAAR,IAAA,CAAVQ,UAAU;IACVC,SAAS,GAAAT,IAAA,CAATS,SAAS;IACTC,eAAe,GAAAV,IAAA,CAAfU,eAAe;IACfC,cAAc,GAAAX,IAAA,CAAdW,cAAc;IACdC,cAAc,GAAAZ,IAAA,CAAdY,cAAc;IACdC,eAAe,GAAAb,IAAA,CAAfa,eAAe,CAAA;AAInB,EAAA,IAAMC,MAAM,GAAGC,eAAS,EAAE,CAAA;AAE1B,EAAA,oBACIC,KAAA,CAAAC,aAAA,CAACC,qBAAI,EAAA;AACDjB,IAAAA,GAAG,EAAEA,GAAI;AACTkB,IAAAA,IAAI,EAAEC,MAAM,CAAClB,QAAQ,CAAE;AACvBmB,IAAAA,MAAM,EAAElB,aAAc;AACtBmB,IAAAA,MAAM,eACFN,KAAA,CAAAC,aAAA,CAACM,kCAAiB,EACdP,IAAAA,eAAAA,KAAA,CAAAC,aAAA,CAACO,gCAAe,EAAAC,iCAAA,CAAA;AACZC,MAAAA,EAAE,EAAEZ,MAAAA;KACCV,EAAAA,WAAW,KAAK,OAAO,GACtB;AACIuB,MAAAA,YAAY,EAAEhB,cAAc;AAC5BiB,MAAAA,YAAY,EAAEhB,cAAAA;AAClB,KAAC,GACD;AAAEiB,MAAAA,OAAO,EAAEhB,eAAAA;KAAiB,CAAA,EAEjCR,cAAc,IAAAyB,qBAAA,KAAAA,qBAAA,gBAAId,KAAA,CAAAC,aAAA,CAACc,2CAAqB,EAAA;AAACC,MAAAA,IAAI,EAAC,IAAI;AAACC,MAAAA,KAAK,EAAC,SAAA;KAAW,CAAC,CACzD,CACF,CACtB;AACDC,IAAAA,SAAS,EAAE5B,aAAc;AACzB6B,IAAAA,QAAQ,EAAE5B,YAAa;AACvB6B,IAAAA,MAAM,EAAE5B,UAAW;AACnB6B,IAAAA,QAAQ,EAAE5B,SAAU;AACpB6B,IAAAA,QAAQ,EAAE7B,SAAU;AACpB8B,IAAAA,WAAW,EAAE7B,eAAgB;AAC7B8B,IAAAA,KAAK,EAAE1B,MAAAA;AAAO,GACjB,CAAC,CAAA;AAEV,CACJ;;;;"}
@@ -4,8 +4,9 @@ import './TextFieldChip.styles_1y8n7la.css';
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
6
  var react = require('@linaria/react');
7
- var common = require('../../../../engines/common.js');
8
7
  var Chip$1 = require('../../../Chip/Chip.js');
8
+ require('@linaria/core');
9
+ var common = require('../../../../engines/common.js');
9
10
 
10
11
  // issue #823
11
12
  var mergedConfig = /*#__PURE__*/common.mergeConfig(Chip$1.chipConfig);
@@ -1 +1 @@
1
- {"version":3,"file":"TextFieldChip.styles.js","sources":["../../../../../src/components/TextField/ui/TextFieldChip/TextFieldChip.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nimport { chipConfig, chipTokens } from '../../../Chip';\nimport { component, mergeConfig } from '../../../../engines';\nimport { tokens } from '../../TextField.tokens';\nimport { addFocus } from '../../../../mixins';\n\n// issue #823\nconst mergedConfig = mergeConfig(chipConfig);\nconst Chip = component(mergedConfig);\n\n// NOTE: Необходимое переопределение токенов из компонента Chip т.к. используются его части\nexport const StyledChip = styled(Chip)`\n ${chipTokens.color}: var(${tokens.chipColor});\n ${chipTokens.background}: var(${tokens.chipBackground});\n ${chipTokens.colorHover}: var(${tokens.chipColorHover});\n ${chipTokens.backgroundHover}: var(${tokens.chipBackgroundHover});\n ${chipTokens.colorActive}: var(${tokens.chipColorActive});\n ${chipTokens.backgroundActive}: var(${tokens.chipBackgroundActive});\n ${chipTokens.backgroundReadOnly}: var(${tokens.chipBackgroundReadOnly});\n ${chipTokens.colorReadOnly}: var(${tokens.chipColorReadOnly});\n ${chipTokens.backgroundReadOnlyHover}: var(${tokens.chipBackgroundReadOnlyHover});\n ${chipTokens.colorReadOnlyHover}: var(${tokens.chipColorReadOnlyHover});\n ${chipTokens.borderRadius}: var(${tokens.chipBorderRadius});\n ${chipTokens.width}: var(${tokens.chipWidth});\n ${chipTokens.height}: var(${tokens.chipHeight});\n ${chipTokens.paddingRight}: var(${tokens.chipPaddingRight});\n ${chipTokens.paddingLeft}: var(${tokens.chipPaddingLeft});\n ${chipTokens.fontFamily}: var(${tokens.chipFontFamily});\n ${chipTokens.fontSize}: var(${tokens.chipFontSize});\n ${chipTokens.fontStyle}: var(${tokens.chipFontStyle});\n ${chipTokens.fontWeight}: var(${tokens.chipFontWeight});\n ${chipTokens.letterSpacing}: var(${tokens.chipLetterSpacing});\n ${chipTokens.lineHeight}: var(${tokens.chipLineHeight});\n ${chipTokens.clearContentMarginLeft}: var(${tokens.chipClearContentMarginLeft});\n ${chipTokens.clearContentMarginRight}: var(${tokens.chipClearContentMarginRight});\n ${chipTokens.scaleHover}: var(${tokens.chipScaleHover});\n ${chipTokens.scaleActive}: var(${tokens.chipScaleActive});\n ${chipTokens.closeIconSize}: var(${tokens.chipCloseIconSize});\n ${chipTokens.closeIconColor}: var(${tokens.chipCloseIconColor});\n ${chipTokens.focusColor}: var(${tokens.focusColor});\n\n scroll-snap-align: center;\n scroll-snap-stop: normal;\n\n ${addFocus({\n outlineOffset: '0.0625rem',\n outlineSize: '0.0625rem',\n outlineRadius: `calc(var(${tokens.chipBorderRadius}) - 0.1rem)`,\n outlineColor: `var(${tokens.focusColor})`,\n })}\n\n &[readonly] {\n opacity: var(${tokens.chipOpacityReadonly});\n }\n`;\n"],"names":["mergedConfig","mergeConfig","chipConfig","Chip","component","_exp","StyledChip","styled","name","class","propsAsIs"],"mappings":";;;;;;;;AAOA;AACA,IAAMA,YAAY,gBAAGC,kBAAW,CAACC,iBAAU,CAAC,CAAA;AAC5C,IAAMC,IAAI,gBAAGC,gBAAS,CAACJ,YAAY,CAAC,CAAA;;AAEpC;AAAA,IAAAK,IAAA,GAVkBA,SAUlBA,IAAAA,GAAA;AAAA,EAAA,OACiCF,IAAI,CAAA;AAAA,CAAA,CAAA;AAA9B,IAAMG,UAAU,gBAAGC,YAAM,CAAAF,IAAA,EAAA,CAAA,CAAA;AAAAG,EAAAA,IAAA,EAAA,YAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,IAAA;AAAA,CA2C/B;;;;"}
1
+ {"version":3,"file":"TextFieldChip.styles.js","sources":["../../../../../src/components/TextField/ui/TextFieldChip/TextFieldChip.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nimport { chipConfig, chipTokens } from '../../../Chip';\nimport { component, mergeConfig } from '../../../../engines';\nimport { tokens } from '../../TextField.tokens';\nimport { addFocus } from '../../../../mixins';\n\n// issue #823\nconst mergedConfig = mergeConfig(chipConfig);\nconst Chip = component(mergedConfig);\n\n// NOTE: Необходимое переопределение токенов из компонента Chip т.к. используются его части\nexport const StyledChip = styled(Chip)`\n ${chipTokens.color}: var(${tokens.chipColor});\n ${chipTokens.background}: var(${tokens.chipBackground});\n ${chipTokens.colorHover}: var(${tokens.chipColorHover});\n ${chipTokens.backgroundHover}: var(${tokens.chipBackgroundHover});\n ${chipTokens.colorActive}: var(${tokens.chipColorActive});\n ${chipTokens.backgroundActive}: var(${tokens.chipBackgroundActive});\n ${chipTokens.backgroundReadOnly}: var(${tokens.chipBackgroundReadOnly});\n ${chipTokens.colorReadOnly}: var(${tokens.chipColorReadOnly});\n ${chipTokens.backgroundReadOnlyHover}: var(${tokens.chipBackgroundReadOnlyHover});\n ${chipTokens.colorReadOnlyHover}: var(${tokens.chipColorReadOnlyHover});\n ${chipTokens.borderRadius}: var(${tokens.chipBorderRadius});\n ${chipTokens.width}: var(${tokens.chipWidth});\n ${chipTokens.height}: var(${tokens.chipHeight});\n ${chipTokens.paddingRight}: var(${tokens.chipPaddingRight});\n ${chipTokens.paddingLeft}: var(${tokens.chipPaddingLeft});\n ${chipTokens.fontFamily}: var(${tokens.chipFontFamily});\n ${chipTokens.fontSize}: var(${tokens.chipFontSize});\n ${chipTokens.fontStyle}: var(${tokens.chipFontStyle});\n ${chipTokens.fontWeight}: var(${tokens.chipFontWeight});\n ${chipTokens.letterSpacing}: var(${tokens.chipLetterSpacing});\n ${chipTokens.lineHeight}: var(${tokens.chipLineHeight});\n ${chipTokens.clearContentMarginLeft}: var(${tokens.chipClearContentMarginLeft});\n ${chipTokens.clearContentMarginRight}: var(${tokens.chipClearContentMarginRight});\n ${chipTokens.scaleHover}: var(${tokens.chipScaleHover});\n ${chipTokens.scaleActive}: var(${tokens.chipScaleActive});\n ${chipTokens.closeIconSize}: var(${tokens.chipCloseIconSize});\n ${chipTokens.closeIconColor}: var(${tokens.chipCloseIconColor});\n ${chipTokens.focusColor}: var(${tokens.focusColor});\n\n scroll-snap-align: center;\n scroll-snap-stop: normal;\n\n ${addFocus({\n outlineOffset: '0.0625rem',\n outlineSize: '0.0625rem',\n outlineRadius: `calc(var(${tokens.chipBorderRadius}) - 0.1rem)`,\n outlineColor: `var(${tokens.focusColor})`,\n })}\n\n &[readonly] {\n opacity: var(${tokens.chipOpacityReadonly});\n }\n`;\n"],"names":["mergedConfig","mergeConfig","chipConfig","Chip","component","_exp","StyledChip","styled","name","class","propsAsIs"],"mappings":";;;;;;;;;AAOA;AACA,IAAMA,YAAY,gBAAGC,kBAAW,CAACC,iBAAU,CAAC,CAAA;AAC5C,IAAMC,IAAI,gBAAGC,gBAAS,CAACJ,YAAY,CAAC,CAAA;;AAEpC;AAAA,IAAAK,IAAA,GAVkBA,SAUlBA,IAAAA,GAAA;AAAA,EAAA,OACiCF,IAAI,CAAA;AAAA,CAAA,CAAA;AAA9B,IAAMG,UAAU,gBAAGC,YAAM,CAAAF,IAAA,EAAA,CAAA,CAAA;AAAAG,EAAAA,IAAA,EAAA,YAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,IAAA;AAAA,CA2C/B;;;;"}
@@ -4,8 +4,8 @@ import './Toast.styles_1v9oj7f.css';
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
6
  var react = require('@linaria/react');
7
- var utils = require('./utils.js');
8
7
  var Overlay = require('../Overlay/Overlay.js');
8
+ var utils = require('./utils.js');
9
9
 
10
10
  var base = "b1xqk743";
11
11
  var _exp3 = function _exp3() {
@@ -6,8 +6,8 @@ var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelper
6
6
  var React = require('react');
7
7
  var Toast_tokens = require('./Toast.tokens.js');
8
8
  var Toast_styles = require('./Toast.styles.js');
9
- var utils = require('./utils.js');
10
9
  var ToastProvider = require('./ToastProvider/ToastProvider.js');
10
+ var utils = require('./utils.js');
11
11
 
12
12
  var _excluded = ["position", "offset", "fade", "text"];
13
13
  var ToastControllerHoc = function ToastControllerHoc(ToastComponent) {
@@ -2,8 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var common = require('../../engines/common.js');
6
5
  var Button$1 = require('../Button/Button.js');
6
+ require('@linaria/core');
7
+ var common = require('../../engines/common.js');
7
8
 
8
9
  var DEFAULT_FADE = true;
9
10
  var DEFAULT_POSITION = 'bottom';
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sources":["../../../src/components/Toast/utils.ts"],"sourcesContent":["import { buttonConfig } from '../Button';\nimport { component, mergeConfig } from '../../engines';\n\nexport const DEFAULT_FADE = true;\nexport const DEFAULT_POSITION = 'bottom';\nexport const TIMER_DELAY = 300;\nexport const FADE_Z_INDEX = '9900';\nexport const TOAST_Z_INDEX = '9901';\n\nexport const gradients = {\n top: 'radial-gradient(200% 200% at 50% -100%, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%)',\n bottom: 'radial-gradient(200% 200% at 50% 200%, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%)',\n};\n\nconst mergedButtonConfig = mergeConfig(buttonConfig);\nexport const Button = component(mergedButtonConfig);\n"],"names":["DEFAULT_FADE","DEFAULT_POSITION","TIMER_DELAY","FADE_Z_INDEX","gradients","top","bottom","mergedButtonConfig","mergeConfig","buttonConfig","Button","component"],"mappings":";;;;;;;AAGO,IAAMA,YAAY,GAAG,KAAI;AACzB,IAAMC,gBAAgB,GAAG,SAAQ;AACjC,IAAMC,WAAW,GAAG,IAAG;AACvB,IAAMC,YAAY,GAAG,OAAM;AAG3B,IAAMC,SAAS,GAAG;AACrBC,EAAAA,GAAG,EAAE,uFAAuF;AAC5FC,EAAAA,MAAM,EAAE,sFAAA;AACZ,EAAC;AAED,IAAMC,kBAAkB,gBAAGC,kBAAW,CAACC,qBAAY,CAAC,CAAA;IACvCC,MAAM,gBAAGC,gBAAS,CAACJ,kBAAkB;;;;;;;;;"}
1
+ {"version":3,"file":"utils.js","sources":["../../../src/components/Toast/utils.ts"],"sourcesContent":["import { buttonConfig } from '../Button';\nimport { component, mergeConfig } from '../../engines';\n\nexport const DEFAULT_FADE = true;\nexport const DEFAULT_POSITION = 'bottom';\nexport const TIMER_DELAY = 300;\nexport const FADE_Z_INDEX = '9900';\nexport const TOAST_Z_INDEX = '9901';\n\nexport const gradients = {\n top: 'radial-gradient(200% 200% at 50% -100%, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%)',\n bottom: 'radial-gradient(200% 200% at 50% 200%, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%)',\n};\n\nconst mergedButtonConfig = mergeConfig(buttonConfig);\nexport const Button = component(mergedButtonConfig);\n"],"names":["DEFAULT_FADE","DEFAULT_POSITION","TIMER_DELAY","FADE_Z_INDEX","gradients","top","bottom","mergedButtonConfig","mergeConfig","buttonConfig","Button","component"],"mappings":";;;;;;;;AAGO,IAAMA,YAAY,GAAG,KAAI;AACzB,IAAMC,gBAAgB,GAAG,SAAQ;AACjC,IAAMC,WAAW,GAAG,IAAG;AACvB,IAAMC,YAAY,GAAG,OAAM;AAG3B,IAAMC,SAAS,GAAG;AACrBC,EAAAA,GAAG,EAAE,uFAAuF;AAC5FC,EAAAA,MAAM,EAAE,sFAAA;AACZ,EAAC;AAED,IAAMC,kBAAkB,gBAAGC,kBAAW,CAACC,qBAAY,CAAC,CAAA;IACvCC,MAAM,gBAAGC,gBAAS,CAACJ,kBAAkB;;;;;;;;;"}
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _rollupPluginBabelHelpers = require('../../../../_virtual/_rollupPluginBabelHelpers.js');
6
- var ToolbarDivider_styles = require('./ToolbarDivider.styles.js');
7
6
  var Divider = require('../../../Divider/Divider.js');
7
+ var ToolbarDivider_styles = require('./ToolbarDivider.styles.js');
8
8
 
9
9
  /**
10
10
  * Разделитель тулбара
@@ -6,13 +6,14 @@ 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');
9
12
  var index = require('../../utils/index.js');
10
13
  var Tooltip_styles = require('./Tooltip.styles.js');
11
14
  var base = require('./variations/_view/base.js');
12
15
  var base$1 = require('./variations/_size/base.js');
13
16
  var Tooltip_tokens = require('./Tooltip.tokens.js');
14
- var common = require('../../engines/common.js');
15
- var Popover$1 = require('../Popover/Popover.js');
16
17
 
17
18
  var _excluded = ["id", "text", "opened", "isVisible", "isOpen", "hasArrow", "arrow", "animated", "offset", "minWidth", "maxWidth", "placement", "usePortal", "target", "children", "onDismiss", "view", "size", "contentLeft", "zIndex", "className", "style"];
18
19
  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,UAA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,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;;;;;"}
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,CAA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DZ,IAAI,CAERwB,eAAAA,KAAA,CAAAC,aAAA,CAACxD,IAAI,EAAA;AAACwB,MAAAA,IAAI,EAAEA,IAAK;AAACC,MAAAA,IAAI,EAAEA,IAAK;AAACW,MAAAA,GAAG,EAAEC,MAAO;AAACR,MAAAA,SAAS,EAAEA,SAAU;AAACC,MAAAA,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,6 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var core = require('@linaria/core');
6
+ require('react');
7
+ require('focus-visible');
6
8
 
7
9
  var css = core.css;
8
10
 
@@ -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,6 +4,7 @@ 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');
7
8
 
8
9
  /**
9
10
  * 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.js CHANGED
@@ -2,9 +2,6 @@
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');
8
5
  var applyBlur = require('./mixins/applyBlur.js');
9
6
  var applyEllipsis = require('./mixins/applyEllipsis.js');
10
7
  var applySpacing = require('./mixins/applySpacing.js');
@@ -17,7 +14,7 @@ var applyRoundness = require('./mixins/applyRoundness.js');
17
14
  var applySkeletonGradient = require('./mixins/applySkeletonGradient.js');
18
15
  var applyDisabled = require('./mixins/applyDisabled.js');
19
16
  var applyHidden = require('./mixins/applyHidden.js');
20
- var common = require('./engines/common.js');
17
+ var index = require('./engines/index.js');
21
18
  var useUniqId = require('./hooks/useUniqId.js');
22
19
  var useFocusTrap = require('./hooks/useFocusTrap.js');
23
20
  var usePreviousValue = require('./hooks/usePreviousValue.js');
@@ -25,16 +22,7 @@ var useForceUpdate = require('./hooks/useForceUpdate.js');
25
22
  var useDidMountEffect = require('./hooks/useDidMountEffect.js');
26
23
  var useOutsideClick = require('./hooks/useOutsideClick.js');
27
24
  var useIsomorphicLayoutEffect = require('./hooks/useIsomorphicLayoutEffect.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');
25
+ var index$1 = require('./utils/index.js');
38
26
  var Button = require('./components/Button/Button.js');
39
27
  var Button_tokens = require('./components/Button/Button.tokens.js');
40
28
  var IconButton = require('./components/IconButton/IconButton.js');
@@ -83,7 +71,6 @@ var withRange = require('./components/Calendar/hoc/withRange.js');
83
71
  var CalendarBase = require('./components/Calendar/CalendarBase/CalendarBase.js');
84
72
  var CalendarDouble = require('./components/Calendar/CalendarDouble/CalendarDouble.js');
85
73
  var Calendar_tokens = require('./components/Calendar/Calendar.tokens.js');
86
- var tokens$1 = require('./components/Typography/tokens.js');
87
74
  var Body = require('./components/Typography/Body/Body.js');
88
75
  var Dspl = require('./components/Typography/Dspl/Dspl.js');
89
76
  var Heading = require('./components/Typography/Heading/Heading.js');
@@ -98,6 +85,7 @@ var Paragraph = require('./components/Typography/Old/Paragraph/Paragraph.js');
98
85
  var ParagraphText = require('./components/Typography/Old/ParagraphText/ParagraphText.js');
99
86
  var Underline = require('./components/Typography/Old/Underline/Underline.js');
100
87
  var Subtitle = require('./components/Typography/Old/Subtitle/Subtitle.js');
88
+ var tokens$1 = require('./components/Typography/tokens.js');
101
89
  var PopupContext = require('./components/Popup/PopupContext.js');
102
90
  var Popup = require('./components/Popup/Popup.js');
103
91
  var usePopup = require('./components/Popup/hooks/usePopup.js');
@@ -109,10 +97,10 @@ var Notification = require('./components/Notification/Notification.js');
109
97
  var NotificationsStore = require('./components/Notification/NotificationsStore.js');
110
98
  var Notification_tokens = require('./components/Notification/Notification.tokens.js');
111
99
  var Drawer = require('./components/Drawer/Drawer.js');
112
- var Drawer_tokens = require('./components/Drawer/Drawer.tokens.js');
113
100
  var DrawerContent = require('./components/Drawer/ui/DrawerContent/DrawerContent.js');
114
101
  var DrawerFooter = require('./components/Drawer/ui/DrawerFooter/DrawerFooter.js');
115
102
  var DrawerHeader = require('./components/Drawer/ui/DrawerHeader/DrawerHeader.js');
103
+ var Drawer_tokens = require('./components/Drawer/Drawer.tokens.js');
116
104
  var Dropdown = require('./components/Dropdown/Dropdown.js');
117
105
  var Dropdown_tokens = require('./components/Dropdown/Dropdown.tokens.js');
118
106
  var useKeyboardNavigation = require('./components/Dropdown/hooks/useKeyboardNavigation.js');
@@ -127,8 +115,8 @@ var DropdownOld = require('./components/Dropdown/ui/DropdownOld/DropdownOld.js')
127
115
  var DropdownOld_tokens = require('./components/Dropdown/ui/DropdownOld/DropdownOld.tokens.js');
128
116
  var Tooltip = require('./components/Tooltip/Tooltip.js');
129
117
  var Tooltip_tokens = require('./components/Tooltip/Tooltip.tokens.js');
130
- var SegmentItem = require('./components/Segment/ui/SegmentItem/SegmentItem.js');
131
118
  var SegmentGroup = require('./components/Segment/ui/SegmentGroup/SegmentGroup.js');
119
+ var SegmentItem = require('./components/Segment/ui/SegmentItem/SegmentItem.js');
132
120
  var SegmentProvider = require('./components/Segment/SegmentProvider/SegmentProvider.js');
133
121
  var tokens$2 = require('./components/Segment/tokens.js');
134
122
  var LineSkeleton = require('./components/Skeleton/LineSkeleton/LineSkeleton.js');
@@ -153,22 +141,23 @@ var Toast_tokens = require('./components/Toast/Toast.tokens.js');
153
141
  var Overlay = require('./components/Overlay/Overlay.js');
154
142
  var SSRProvider = require('./components/SSRProvider/SSRProvider.js');
155
143
  var Combobox = require('./components/Combobox/ComboboxOld/Combobox.js');
144
+ var Combobox_tokens = require('./components/Combobox/ComboboxOld/Combobox.tokens.js');
156
145
  var ComboboxDivider = require('./components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js');
157
146
  var ComboboxFooter = require('./components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js');
158
147
  var ComboboxGroup = require('./components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js');
159
148
  var ComboboxHeader = require('./components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js');
160
149
  var ComboboxItem = require('./components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.js');
161
150
  var ComboboxTarget = require('./components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.js');
162
- var Combobox_tokens = require('./components/Combobox/ComboboxOld/Combobox.tokens.js');
163
- var Combobox_tokens$1 = require('./components/Combobox/ComboboxNew/Combobox.tokens.js');
164
151
  var Combobox$1 = require('./components/Combobox/ComboboxNew/Combobox.js');
152
+ var Combobox_tokens$1 = require('./components/Combobox/ComboboxNew/Combobox.tokens.js');
165
153
  var Indicator = require('./components/Indicator/Indicator.js');
166
154
  var Indicator_tokens = require('./components/Indicator/Indicator.tokens.js');
155
+ var index$2 = require('./components/ButtonBase/index.js');
167
156
  var Grid = require('./components/Grid/Grid.js');
168
157
  var Grid_tokens = require('./components/Grid/Grid.tokens.js');
169
- var index$3 = require('./components/Grid/utils/index.js');
170
158
  var Row = require('./components/Grid/ui/Row/Row.js');
171
159
  var Col = require('./components/Grid/ui/Col/Col.js');
160
+ var index$3 = require('./components/Grid/utils/index.js');
172
161
  var Progress = require('./components/Progress/Progress.js');
173
162
  var Progress_tokens = require('./components/Progress/Progress.tokens.js');
174
163
  var Select = require('./components/Select/Select.js');
@@ -182,7 +171,10 @@ var Sheet = require('./components/Sheet/Sheet.js');
182
171
  var Sheet_tokens = require('./components/Sheet/Sheet.tokens.js');
183
172
  var Slider = require('./components/Slider/Slider.js');
184
173
  var Slider_tokens = require('./components/Slider/Slider.tokens.js');
174
+ require('react');
175
+ require('react-draggable');
185
176
  var Thumb_styles = require('./components/Slider/ui/Thumb/Thumb.styles.js');
177
+ require('@linaria/react');
186
178
  var Steps = require('./components/Steps/Steps.js');
187
179
  var Steps_tokens = require('./components/Steps/Steps.tokens.js');
188
180
  var Range = require('./components/Range/Range.js');
@@ -205,13 +197,20 @@ var Editable_tokens = require('./components/Editable/Editable.tokens.js');
205
197
  var Mask = require('./components/Mask/Mask.js');
206
198
  var Attach = require('./components/Attach/Attach.js');
207
199
  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');
208
211
 
209
212
 
210
213
 
211
- exports.css = index.css;
212
- exports.composableStyle = index$1.composableStyle;
213
- exports.cx = index$1.cx;
214
- exports.ButtonBase = index$2.ButtonBase;
215
214
  exports.applyBlur = applyBlur.applyBlur;
216
215
  exports.blurs = applyBlur.blurs;
217
216
  exports.applyEllipsis = applyEllipsis.applyEllipsis;
@@ -287,8 +286,7 @@ exports.applySkeletonGradient = applySkeletonGradient.applySkeletonGradient;
287
286
  exports.getSkeletonColor = applySkeletonGradient.getSkeletonColor;
288
287
  exports.applyDisabled = applyDisabled.applyDisabled;
289
288
  exports.applyHidden = applyHidden.applyHidden;
290
- exports.component = common.component;
291
- exports.mergeConfig = common.mergeConfig;
289
+ exports.css = index.css;
292
290
  exports.useUniqId = useUniqId.useUniqId;
293
291
  exports.useFocusTrap = useFocusTrap.useFocusTrap;
294
292
  exports.usePreviousValue = usePreviousValue.usePreviousValue;
@@ -296,19 +294,8 @@ exports.useForceUpdate = useForceUpdate.useForceUpdate;
296
294
  exports.useDidMountEffect = useDidMountEffect.useDidMountEffect;
297
295
  exports.useOutsideClick = useOutsideClick.useOutsideClick;
298
296
  exports.useIsomorphicLayoutEffect = useIsomorphicLayoutEffect.useIsomorphicLayoutEffect;
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;
297
+ exports.composableStyle = index$1.composableStyle;
298
+ exports.cx = index$1.cx;
312
299
  exports.buttonConfig = Button.buttonConfig;
313
300
  exports.buttonRoot = Button.buttonRoot;
314
301
  exports.buttonClasses = Button_tokens.classes;
@@ -390,7 +377,6 @@ exports.calendarDoubleConfig = CalendarDouble.calendarDoubleConfig;
390
377
  exports.calendarDoubleRoot = CalendarDouble.calendarDoubleRoot;
391
378
  exports.calendarBaseTokens = Calendar_tokens.tokens;
392
379
  exports.calendarDoubleTokens = Calendar_tokens.tokens;
393
- exports.typographyTokens = tokens$1.tokens;
394
380
  exports.bodyConfig = Body.bodyConfig;
395
381
  exports.bodyRoot = Body.bodyRoot;
396
382
  exports.dsplConfig = Dspl.dsplConfig;
@@ -419,6 +405,7 @@ exports.underlineConfig = Underline.underlineConfig;
419
405
  exports.underlineRoot = Underline.underlineRoot;
420
406
  exports.subtitleConfig = Subtitle.subtitleConfig;
421
407
  exports.subtitleRoot = Subtitle.subtitleRoot;
408
+ exports.typographyTokens = tokens$1.tokens;
422
409
  exports.PopupProvider = PopupContext.PopupProvider;
423
410
  exports.usePopupContext = PopupContext.usePopupContext;
424
411
  exports.popupConfig = Popup.popupConfig;
@@ -438,14 +425,14 @@ exports.notificationClasses = Notification_tokens.classes;
438
425
  exports.notificationTokens = Notification_tokens.tokens;
439
426
  exports.drawerConfig = Drawer.drawerConfig;
440
427
  exports.drawerRoot = Drawer.drawerRoot;
441
- exports.drawerClasses = Drawer_tokens.classes;
442
- exports.drawerTokens = Drawer_tokens.tokens;
443
428
  exports.drawerContentConfig = DrawerContent.drawerContentConfig;
444
429
  exports.drawerContentRoot = DrawerContent.drawerContentRoot;
445
430
  exports.drawerFooterConfig = DrawerFooter.drawerFooterConfig;
446
431
  exports.drawerFooterRoot = DrawerFooter.drawerFooterRoot;
447
432
  exports.drawerHeaderConfig = DrawerHeader.drawerHeaderConfig;
448
433
  exports.drawerHeaderRoot = DrawerHeader.drawerHeaderRoot;
434
+ exports.drawerClasses = Drawer_tokens.classes;
435
+ exports.drawerTokens = Drawer_tokens.tokens;
449
436
  exports.dropdownConfig = Dropdown.dropdownConfig;
450
437
  exports.dropdownRoot = Dropdown.dropdownRoot;
451
438
  exports.dropdownClasses = Dropdown_tokens.classes;
@@ -469,10 +456,10 @@ exports.dropdownOldTokens = DropdownOld_tokens.tokens;
469
456
  exports.tooltipConfig = Tooltip.tooltipConfig;
470
457
  exports.tooltipRoot = Tooltip.tooltipRoot;
471
458
  exports.tooltipTokens = Tooltip_tokens.tokens;
472
- exports.segmentItemConfig = SegmentItem.segmentItemConfig;
473
- exports.segmentItemRoot = SegmentItem.segmentItemRoot;
474
459
  exports.segmentGroupConfig = SegmentGroup.segmentGroupConfig;
475
460
  exports.segmentGroupRoot = SegmentGroup.segmentGroupRoot;
461
+ exports.segmentItemConfig = SegmentItem.segmentItemConfig;
462
+ exports.segmentItemRoot = SegmentItem.segmentItemRoot;
476
463
  exports.SegmentProvider = SegmentProvider.SegmentProvider;
477
464
  exports.useSegment = SegmentProvider.useSegment;
478
465
  exports.segmentClasses = tokens$2.classes;
@@ -514,6 +501,8 @@ exports.SSRContext = SSRProvider.SSRContext;
514
501
  exports.SSRProvider = SSRProvider.SSRProvider;
515
502
  exports.comboboxOldConfig = Combobox.comboboxConfig;
516
503
  exports.comboboxOldRoot = Combobox.comboboxRoot;
504
+ exports.comboboxOldClasses = Combobox_tokens.classes;
505
+ exports.comboboxOldTokens = Combobox_tokens.tokens;
517
506
  exports.comboboxDividerConfig = ComboboxDivider.comboboxDividerConfig;
518
507
  exports.comboboxDividerRoot = ComboboxDivider.comboboxDividerRoot;
519
508
  exports.comboboxFooterConfig = ComboboxFooter.comboboxFooterConfig;
@@ -525,20 +514,19 @@ exports.comboboxHeaderRoot = ComboboxHeader.comboboxHeaderRoot;
525
514
  exports.comboboxItemConfig = ComboboxItem.comboboxItemConfig;
526
515
  exports.comboboxItemRoot = ComboboxItem.comboboxItemRoot;
527
516
  exports.ComboboxTarget = ComboboxTarget.ComboboxTarget;
528
- exports.comboboxOldClasses = Combobox_tokens.classes;
529
- exports.comboboxOldTokens = Combobox_tokens.tokens;
530
- exports.comboboxNewTokens = Combobox_tokens$1.tokens;
531
517
  exports.comboboxNewConfig = Combobox$1.comboboxConfig;
532
518
  exports.comboboxNewRoot = Combobox$1.comboboxRoot;
519
+ exports.comboboxNewTokens = Combobox_tokens$1.tokens;
533
520
  exports.indicatorConfig = Indicator.indicatorConfig;
534
521
  exports.indicatorRoot = Indicator.indicatorRoot;
535
522
  exports.indicatorTokens = Indicator_tokens.tokens;
523
+ exports.ButtonBase = index$2.ButtonBase;
536
524
  exports.gridConfig = Grid.gridConfig;
537
525
  exports.gridRoot = Grid.gridRoot;
538
526
  exports.gridTokens = Grid_tokens.tokens;
539
- exports.getBaseGridView = index$3.getBaseGridView;
540
527
  exports.Row = Row.Row;
541
528
  exports.Col = Col.Col;
529
+ exports.getBaseGridView = index$3.getBaseGridView;
542
530
  exports.progressConfig = Progress.progressConfig;
543
531
  exports.progressRoot = Progress.progressRoot;
544
532
  exports.progressTokens = Progress_tokens.tokens;
@@ -596,4 +584,19 @@ exports.composeMask = Mask.composeMask;
596
584
  exports.attachConfig = Attach.attachConfig;
597
585
  exports.attachRoot = Attach.attachRoot;
598
586
  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;
599
602
  //# 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,6 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ require('react');
6
+ var react = require('./react.js');
7
+
5
8
  var cx = function cx() {
6
9
  for (var _len = arguments.length, classes = new Array(_len), _key = 0; _key < _len; _key++) {
7
10
  classes[_key] = arguments[_key];
@@ -20,6 +23,8 @@ var composableStyle = function composableStyle(s) {
20
23
  return res;
21
24
  };
22
25
 
26
+ exports.IS_REACT_18 = react.IS_REACT_18;
27
+ exports.safeUseId = react.safeUseId;
23
28
  exports.composableStyle = composableStyle;
24
29
  exports.cx = cx;
25
30
  //# 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 | 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,G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
  {
2
2
  "module": "es/index.js",
3
3
  "main": "cjs/index.js",
4
- "types": "../types/index.d.ts",
5
- "sideEffects": false
4
+ "types": "../types/index.d.ts"
6
5
  }
@@ -1,5 +1,6 @@
1
1
  import './AccordionItem.styles_aus2x3.css';
2
2
  import { styled } from '@linaria/react';
3
+ import 'react';
3
4
  import { IconChevronDownFill } from '../../../_Icon/Icons/IconChevronDownFill.js';
4
5
  import { IconMinus } from '../../../_Icon/Icons/IconMinus.js';
5
6
 
@@ -1 +1 @@
1
- {"version":3,"file":"AccordionItem.styles.js","sources":["../../../../../src/components/Accordion/ui/AccordionItem/AccordionItem.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nimport { IconChevronDownFill, IconMinus } from '../../../_Icon';\nimport { classes, tokens } from '../../Accordion.tokens';\nimport { addFocus } from '../../../../mixins';\n\nexport const StyledAccordionItem = styled.div`\n background: var(${tokens.accordionItemBackground});\n border: var(${tokens.accordionItemBorder});\n border-bottom: var(${tokens.accordionItemBorderBottom});\n\n &:last-child {\n border-bottom: var(${tokens.accordionItemBorder});\n }\n\n &.${classes.accordionDisabled} {\n opacity: 0.4;\n cursor: not-allowed;\n }\n`;\n\nexport const StyledAccordionHeader = styled.button`\n width: 100%;\n border: none;\n padding: var(${tokens.accordionItemPadding});\n display: flex;\n gap: var(${tokens.accordionItemGap});\n justify-content: space-between;\n align-items: center;\n background: none;\n box-sizing: border-box;\n cursor: pointer;\n\n &:focus {\n outline: none;\n }\n\n ${addFocus({\n outlineOffset: '0.125rem',\n outlineSize: '0.125rem',\n outlineRadius: '0',\n outlineColor: `var(${tokens.accordionItemFocus})`,\n })}\n`;\n\nexport const StyledAccordionHeaderLeft = styled.div`\n display: flex;\n gap: var(${tokens.accordionItemGap});\n justify-content: space-between;\n align-items: center;\n`;\n\nexport const StyledAccordionContentRight = styled.div`\n transition: 0.2s;\n transform: rotate(90deg);\n\n &.${classes.accordionItemShowBody} {\n transition: 0.2s;\n transform: rotate(0deg);\n }\n`;\n\nexport const StyledAccordionContentLeft = styled.div`\n transition: 0.2s;\n display: flex;\n align-items: center;\n\n &.${classes.accordionItemShowBody} {\n transition: 0.2s;\n transform: rotate(180deg);\n }\n`;\n\nexport const StyledAccordionTitle = styled.div`\n color: var(${tokens.accordionItemTitleColor});\n font-family: var(${tokens.accordionItemTitleFontFamily});\n font-size: var(${tokens.accordionItemTitleFontSize});\n font-weight: var(${tokens.accordionItemTitleFontWeight});\n font-style: var(${tokens.accordionItemTitleFontStyle});\n letter-spacing: var(${tokens.accordionItemTitleLetterSpacing});\n line-height: var(${tokens.accordionItemTitleLineHeight});\n text-align: left;\n`;\n\nexport const StyledAccordionBodyAnimate = styled.div`\n display: grid;\n grid-template-rows: 0fr;\n transition: grid-template-rows 0.2s ease-out;\n overflow: hidden;\n\n &.${classes.accordionItemShowBody} {\n grid-template-rows: 1fr;\n padding-bottom: var(${tokens.accordionItemPaddingVertical});\n\n &.${classes.accordionPlusAnimationElement} {\n transition: 0.2s;\n transform: rotate(0deg);\n }\n }\n`;\n\nexport const StyledAccordionBody = styled.div`\n color: var(${tokens.accordionItemTextColor});\n font-family: var(${tokens.accordionItemTextFontFamily});\n font-size: var(${tokens.accordionItemTextFontSize});\n font-weight: var(${tokens.accordionItemTextFontWeight});\n font-style: var(${tokens.accordionItemTextFontStyle});\n letter-spacing: var(${tokens.accordionItemTextLetterSpacing});\n line-height: var(${tokens.accordionItemTextLineHeight});\n overflow: hidden;\n padding-right: var(${tokens.accordionItemPaddingHorizontal});\n padding-left: var(${tokens.accordionItemPaddingHorizontalLeft});\n text-align: left;\n`;\n\nexport const StyledArrow = styled(IconChevronDownFill)`\n pointer-events: none;\n user-select: none;\n color: var(${tokens.accordionItemIconColor});\n`;\n\nexport const StyledMinus = styled(IconMinus)`\n pointer-events: none;\n user-select: none;\n color: var(${tokens.accordionItemIconColor});\n display: flex;\n align-items: center;\n position: absolute;\n top: 0;\n left: 0;\n\n &.${classes.accordionPlusAnimationElement} {\n transition: 0.2s;\n transform: rotate(90deg);\n }\n\n &.${classes.accordionItemShowBody} {\n transition: 0.2s;\n transform: rotate(0deg);\n }\n`;\n\nexport const StyledPlus = styled.div`\n position: relative;\n height: 1rem;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 1rem;\n`;\n"],"names":["StyledAccordionItem","styled","name","class","propsAsIs","StyledAccordionHeader","StyledAccordionHeaderLeft","StyledAccordionContentRight","StyledAccordionContentLeft","StyledAccordionTitle","StyledAccordionBodyAnimate","StyledAccordionBody","_exp31","IconChevronDownFill","StyledArrow","_exp33","IconMinus","StyledMinus","StyledPlus"],"mappings":";;;;AAMO,IAAMA,mBAAmB,gBAAGC,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,qBAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAaxC,EAAA;AAEM,IAAMC,qBAAqB,gBAAGJ,MAAM,CAAA,QAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,uBAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAsB1C,EAAA;AAEM,IAAME,yBAAyB,gBAAGL,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,2BAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAK9C,EAAA;AAEM,IAAMG,2BAA2B,gBAAGN,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,6BAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAQhD,EAAA;AAEM,IAAMI,0BAA0B,gBAAGP,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,4BAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC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,IAAA,EAAA,YAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAO/B;;;;"}
1
+ {"version":3,"file":"AccordionItem.styles.js","sources":["../../../../../src/components/Accordion/ui/AccordionItem/AccordionItem.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nimport { IconChevronDownFill, IconMinus } from '../../../_Icon';\nimport { classes, tokens } from '../../Accordion.tokens';\nimport { addFocus } from '../../../../mixins';\n\nexport const StyledAccordionItem = styled.div`\n background: var(${tokens.accordionItemBackground});\n border: var(${tokens.accordionItemBorder});\n border-bottom: var(${tokens.accordionItemBorderBottom});\n\n &:last-child {\n border-bottom: var(${tokens.accordionItemBorder});\n }\n\n &.${classes.accordionDisabled} {\n opacity: 0.4;\n cursor: not-allowed;\n }\n`;\n\nexport const StyledAccordionHeader = styled.button`\n width: 100%;\n border: none;\n padding: var(${tokens.accordionItemPadding});\n display: flex;\n gap: var(${tokens.accordionItemGap});\n justify-content: space-between;\n align-items: center;\n background: none;\n box-sizing: border-box;\n cursor: pointer;\n\n &:focus {\n outline: none;\n }\n\n ${addFocus({\n outlineOffset: '0.125rem',\n outlineSize: '0.125rem',\n outlineRadius: '0',\n outlineColor: `var(${tokens.accordionItemFocus})`,\n })}\n`;\n\nexport const StyledAccordionHeaderLeft = styled.div`\n display: flex;\n gap: var(${tokens.accordionItemGap});\n justify-content: space-between;\n align-items: center;\n`;\n\nexport const StyledAccordionContentRight = styled.div`\n transition: 0.2s;\n transform: rotate(90deg);\n\n &.${classes.accordionItemShowBody} {\n transition: 0.2s;\n transform: rotate(0deg);\n }\n`;\n\nexport const StyledAccordionContentLeft = styled.div`\n transition: 0.2s;\n display: flex;\n align-items: center;\n\n &.${classes.accordionItemShowBody} {\n transition: 0.2s;\n transform: rotate(180deg);\n }\n`;\n\nexport const StyledAccordionTitle = styled.div`\n color: var(${tokens.accordionItemTitleColor});\n font-family: var(${tokens.accordionItemTitleFontFamily});\n font-size: var(${tokens.accordionItemTitleFontSize});\n font-weight: var(${tokens.accordionItemTitleFontWeight});\n font-style: var(${tokens.accordionItemTitleFontStyle});\n letter-spacing: var(${tokens.accordionItemTitleLetterSpacing});\n line-height: var(${tokens.accordionItemTitleLineHeight});\n text-align: left;\n`;\n\nexport const StyledAccordionBodyAnimate = styled.div`\n display: grid;\n grid-template-rows: 0fr;\n transition: grid-template-rows 0.2s ease-out;\n overflow: hidden;\n\n &.${classes.accordionItemShowBody} {\n grid-template-rows: 1fr;\n padding-bottom: var(${tokens.accordionItemPaddingVertical});\n\n &.${classes.accordionPlusAnimationElement} {\n transition: 0.2s;\n transform: rotate(0deg);\n }\n }\n`;\n\nexport const StyledAccordionBody = styled.div`\n color: var(${tokens.accordionItemTextColor});\n font-family: var(${tokens.accordionItemTextFontFamily});\n font-size: var(${tokens.accordionItemTextFontSize});\n font-weight: var(${tokens.accordionItemTextFontWeight});\n font-style: var(${tokens.accordionItemTextFontStyle});\n letter-spacing: var(${tokens.accordionItemTextLetterSpacing});\n line-height: var(${tokens.accordionItemTextLineHeight});\n overflow: hidden;\n padding-right: var(${tokens.accordionItemPaddingHorizontal});\n padding-left: var(${tokens.accordionItemPaddingHorizontalLeft});\n text-align: left;\n`;\n\nexport const StyledArrow = styled(IconChevronDownFill)`\n pointer-events: none;\n user-select: none;\n color: var(${tokens.accordionItemIconColor});\n`;\n\nexport const StyledMinus = styled(IconMinus)`\n pointer-events: none;\n user-select: none;\n color: var(${tokens.accordionItemIconColor});\n display: flex;\n align-items: center;\n position: absolute;\n top: 0;\n left: 0;\n\n &.${classes.accordionPlusAnimationElement} {\n transition: 0.2s;\n transform: rotate(90deg);\n }\n\n &.${classes.accordionItemShowBody} {\n transition: 0.2s;\n transform: rotate(0deg);\n }\n`;\n\nexport const StyledPlus = styled.div`\n position: relative;\n height: 1rem;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 1rem;\n`;\n"],"names":["StyledAccordionItem","styled","name","class","propsAsIs","StyledAccordionHeader","StyledAccordionHeaderLeft","StyledAccordionContentRight","StyledAccordionContentLeft","StyledAccordionTitle","StyledAccordionBodyAnimate","StyledAccordionBody","_exp31","IconChevronDownFill","StyledArrow","_exp33","IconMinus","StyledMinus","StyledPlus"],"mappings":";;;;;AAMO,IAAMA,mBAAmB,gBAAGC,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,qBAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAaxC,EAAA;AAEM,IAAMC,qBAAqB,gBAAGJ,MAAM,CAAA,QAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,uBAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAsB1C,EAAA;AAEM,IAAME,yBAAyB,gBAAGL,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,2BAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAK9C,EAAA;AAEM,IAAMG,2BAA2B,gBAAGN,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,6BAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAQhD,EAAA;AAEM,IAAMI,0BAA0B,gBAAGP,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,4BAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAS/C,EAAA;AAEM,IAAMK,oBAAoB,gBAAGR,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,sBAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAA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import { useForkRef, useIsomorphicLayoutEffect } from '@salutejs/plasma-core';
4
4
  import { cx } from '../../utils/index.js';
5
+ import '@linaria/react';
6
+ import { IconCloseCircleOutline } from '../_Icon/Icons/IconCloseCircleOutline.js';
5
7
  import { base as base$2 } from './variations/_size/base.js';
6
8
  import { base as base$1 } from './variations/_view/base.js';
7
9
  import { StyledHiddenInput, StyledHiddenInputHelper, base } from './Attach.styles.js';
10
+ import { StyledCell } from './ui/Cell/Cell.styles.js';
8
11
  import { separator } from './utils/index.js';
9
12
  import { classes } from './Attach.tokens.js';
13
+ import { AttachButton } from './components/AttachButton/AttachButton.js';
10
14
  import { StyledIconButtonCancel } from './ui/IconButton/IconButton.styles.js';
11
15
  import { extractExtension } from './utils/extractExtension.js';
12
16
  import { addSeparator } from './utils/addSeparator.js';
13
- import { AttachButton } from './components/AttachButton/AttachButton.js';
14
- import { StyledCell } from './ui/Cell/Cell.styles.js';
15
- import { IconCloseCircleOutline } from '../_Icon/Icons/IconCloseCircleOutline.js';
16
17
  import { getFileicon } from './utils/getFileicon.js';
17
18
 
18
19
  var _IconCloseCircleOutli;