@salutejs/plasma-new-hope 0.173.1-canary.1502.11462220468.0 → 0.173.2-canary.1498.11494484213.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (557) hide show
  1. package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +0 -1
  2. package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles.js.map +1 -1
  3. package/cjs/components/Attach/Attach.js +3 -4
  4. package/cjs/components/Attach/Attach.js.map +1 -1
  5. package/cjs/components/Attach/components/AttachButton/AttachButton.js +0 -1
  6. package/cjs/components/Attach/components/AttachButton/AttachButton.js.map +1 -1
  7. package/cjs/components/Attach/ui/Button/Button.styles.js +0 -1
  8. package/cjs/components/Attach/ui/Button/Button.styles.js.map +1 -1
  9. package/cjs/components/Attach/ui/Cell/Cell.styles.js +0 -2
  10. package/cjs/components/Attach/ui/Cell/Cell.styles.js.map +1 -1
  11. package/cjs/components/Attach/ui/IconButton/IconButton.styles.js +0 -1
  12. package/cjs/components/Attach/ui/IconButton/IconButton.styles.js.map +1 -1
  13. package/cjs/components/Attach/utils/getFileicon.js +3 -4
  14. package/cjs/components/Attach/utils/getFileicon.js.map +1 -1
  15. package/cjs/components/Attach/utils/index.js +0 -3
  16. package/cjs/components/Attach/utils/index.js.map +1 -1
  17. package/cjs/components/Autocomplete/Autocomplete.js +5 -6
  18. package/cjs/components/Autocomplete/Autocomplete.js.map +1 -1
  19. package/cjs/components/Autocomplete/Autocomplete.styles.js +2 -3
  20. package/cjs/components/Autocomplete/Autocomplete.styles.js.map +1 -1
  21. package/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -2
  22. package/cjs/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
  23. package/cjs/components/Avatar/Avatar.js +2 -3
  24. package/cjs/components/Avatar/Avatar.js.map +1 -1
  25. package/cjs/components/Breadcrumbs/Breadcrumbs.styles.js +2 -4
  26. package/cjs/components/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
  27. package/cjs/components/Button/Button.styles.js +0 -3
  28. package/cjs/components/Button/Button.styles.js.map +1 -1
  29. package/cjs/components/Calendar/CalendarBase/CalendarBase.js +5 -5
  30. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +8 -8
  31. package/cjs/components/Calendar/hooks/useDays.js +2 -2
  32. package/cjs/components/Calendar/hooks/useKeyNavigation.js +1 -1
  33. package/cjs/components/Calendar/hooks/useMonths.js +2 -2
  34. package/cjs/components/Calendar/hooks/useQuarters.js +2 -2
  35. package/cjs/components/Calendar/hooks/useYears.js +2 -2
  36. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +9 -5
  37. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js.map +1 -1
  38. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -6
  39. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  40. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +0 -1
  41. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  42. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +9 -5
  43. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
  44. package/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +9 -5
  45. package/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js.map +1 -1
  46. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +9 -5
  47. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
  48. package/cjs/components/Combobox/ComboboxNew/Combobox.js +11 -12
  49. package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  50. package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +2 -4
  51. package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
  52. package/cjs/components/Combobox/ComboboxNew/hooks/getPathMaps.js +0 -2
  53. package/cjs/components/Combobox/ComboboxNew/hooks/getPathMaps.js.map +1 -1
  54. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.js +1 -2
  55. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.js.map +1 -1
  56. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +5 -6
  57. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
  58. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +1 -3
  59. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  60. package/cjs/components/Combobox/ComboboxNew/ui/Target/Target.styles.js +1 -2
  61. package/cjs/components/Combobox/ComboboxNew/ui/Target/Target.styles.js.map +1 -1
  62. package/cjs/components/Combobox/ComboboxOld/Combobox.js +4 -10
  63. package/cjs/components/Combobox/ComboboxOld/Combobox.js.map +1 -1
  64. package/cjs/components/Combobox/ComboboxOld/Combobox.styles.js +0 -1
  65. package/cjs/components/Combobox/ComboboxOld/Combobox.styles.js.map +1 -1
  66. package/cjs/components/Combobox/ComboboxOld/hooks/useFocusController.js +0 -1
  67. package/cjs/components/Combobox/ComboboxOld/hooks/useFocusController.js.map +1 -1
  68. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js +1 -2
  69. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js.map +1 -1
  70. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js +1 -10
  71. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js.map +1 -1
  72. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js +1 -10
  73. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js.map +1 -1
  74. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js +1 -10
  75. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js.map +1 -1
  76. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js +1 -10
  77. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js.map +1 -1
  78. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js +0 -2
  79. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js.map +1 -1
  80. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.js +1 -1
  81. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js +1 -2
  82. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js.map +1 -1
  83. package/cjs/components/DatePicker/DatePickerBase.styles.js +1 -7
  84. package/cjs/components/DatePicker/DatePickerBase.styles.js.map +1 -1
  85. package/cjs/components/DatePicker/RangeDate/RangeDate.js +1 -1
  86. package/cjs/components/DatePicker/RangeDate/RangeDate.styles.js +0 -1
  87. package/cjs/components/DatePicker/RangeDate/RangeDate.styles.js.map +1 -1
  88. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +1 -2
  89. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -1
  90. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +2 -5
  91. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js.map +1 -1
  92. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +0 -1
  93. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
  94. package/cjs/components/Drawer/Drawer.js +5 -10
  95. package/cjs/components/Drawer/Drawer.js.map +1 -1
  96. package/cjs/components/Drawer/Drawer.styles.js +0 -4
  97. package/cjs/components/Drawer/Drawer.styles.js.map +1 -1
  98. package/cjs/components/Drawer/hooks/useDrawer.js +0 -4
  99. package/cjs/components/Drawer/hooks/useDrawer.js.map +1 -1
  100. package/cjs/components/Drawer/ui/DrawerContent/DrawerContent.js +0 -7
  101. package/cjs/components/Drawer/ui/DrawerContent/DrawerContent.js.map +1 -1
  102. package/cjs/components/Drawer/ui/DrawerFooter/DrawerFooter.js +0 -7
  103. package/cjs/components/Drawer/ui/DrawerFooter/DrawerFooter.js.map +1 -1
  104. package/cjs/components/Drawer/ui/DrawerHeader/DrawerHeader.js +0 -3
  105. package/cjs/components/Drawer/ui/DrawerHeader/DrawerHeader.js.map +1 -1
  106. package/cjs/components/Dropdown/Dropdown.js +3 -10
  107. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  108. package/cjs/components/Dropdown/Dropdown.styles.js +2 -3
  109. package/cjs/components/Dropdown/Dropdown.styles.js.map +1 -1
  110. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +1 -9
  111. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  112. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +1 -2
  113. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  114. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +0 -2
  115. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js.map +1 -1
  116. package/cjs/components/Dropdown/ui/DropdownOld/Dropdown.styles.js +0 -1
  117. package/cjs/components/Dropdown/ui/DropdownOld/Dropdown.styles.js.map +1 -1
  118. package/cjs/components/Editable/Editable.js +3 -4
  119. package/cjs/components/Editable/Editable.js.map +1 -1
  120. package/cjs/components/Editable/utils/clearSelection.js +0 -2
  121. package/cjs/components/Editable/utils/clearSelection.js.map +1 -1
  122. package/cjs/components/Editable/utils/selectText.js +0 -2
  123. package/cjs/components/Editable/utils/selectText.js.map +1 -1
  124. package/cjs/components/EmptyState/EmptyState.styles.js +1 -2
  125. package/cjs/components/EmptyState/EmptyState.styles.js.map +1 -1
  126. package/cjs/components/IconButton/IconButton.js +1 -1
  127. package/cjs/components/IconButton/IconButton.styles.js +0 -8
  128. package/cjs/components/IconButton/IconButton.styles.js.map +1 -1
  129. package/cjs/components/Modal/Modal.js +6 -8
  130. package/cjs/components/Modal/Modal.js.map +1 -1
  131. package/cjs/components/Modal/hooks/useModal.js +0 -4
  132. package/cjs/components/Modal/hooks/useModal.js.map +1 -1
  133. package/cjs/components/Notification/Notification.styles.js +2 -3
  134. package/cjs/components/Notification/Notification.styles.js.map +1 -1
  135. package/cjs/components/Notification/NotificationsPortal.js +3 -4
  136. package/cjs/components/Notification/NotificationsPortal.js.map +1 -1
  137. package/cjs/components/Pagination/Pagination.styles.js +1 -2
  138. package/cjs/components/Pagination/Pagination.styles.js.map +1 -1
  139. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -2
  140. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  141. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.js +1 -2
  142. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.js.map +1 -1
  143. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js +1 -2
  144. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js.map +1 -1
  145. package/cjs/components/Popover/Popover.js +1 -1
  146. package/cjs/components/Popup/Popup.js +2 -2
  147. package/cjs/components/Popup/PopupContext.js +1 -1
  148. package/cjs/components/Range/Range.styles.js +0 -1
  149. package/cjs/components/Range/Range.styles.js.map +1 -1
  150. package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js +4 -5
  151. package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js.map +1 -1
  152. package/cjs/components/Select/Select.js +11 -12
  153. package/cjs/components/Select/Select.js.map +1 -1
  154. package/cjs/components/Select/Select.styles.js +2 -5
  155. package/cjs/components/Select/Select.styles.js.map +1 -1
  156. package/cjs/components/Select/hooks/usePathMaps.js +0 -2
  157. package/cjs/components/Select/hooks/usePathMaps.js.map +1 -1
  158. package/cjs/components/Select/ui/Inner/Inner.js +1 -2
  159. package/cjs/components/Select/ui/Inner/Inner.js.map +1 -1
  160. package/cjs/components/Select/ui/Inner/ui/Item/Item.js +4 -5
  161. package/cjs/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  162. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +0 -1
  163. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  164. package/cjs/components/Select/ui/Target/ui/Button/Button.js +1 -1
  165. package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +1 -3
  166. package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -1
  167. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +2 -2
  168. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -4
  169. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  170. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +1 -2
  171. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js.map +1 -1
  172. package/cjs/components/Select/utils/getButtonLabel.js +0 -2
  173. package/cjs/components/Select/utils/getButtonLabel.js.map +1 -1
  174. package/cjs/components/Sheet/Sheet.js +3 -3
  175. package/cjs/components/Skeleton/LineSkeleton/LineSkeleton.js +2 -4
  176. package/cjs/components/Skeleton/LineSkeleton/LineSkeleton.js.map +1 -1
  177. package/cjs/components/Skeleton/RectSkeleton/RectSkeleton.js +2 -4
  178. package/cjs/components/Skeleton/RectSkeleton/RectSkeleton.js.map +1 -1
  179. package/cjs/components/Slider/Slider.js +0 -8
  180. package/cjs/components/Slider/Slider.js.map +1 -1
  181. package/cjs/components/Slider/components/Double/Double.js +1 -2
  182. package/cjs/components/Slider/components/Double/Double.js.map +1 -1
  183. package/cjs/components/Slider/components/Double/Double.styles.js +0 -1
  184. package/cjs/components/Slider/components/Double/Double.styles.js.map +1 -1
  185. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +0 -3
  186. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js.map +1 -1
  187. package/cjs/components/Slider/components/Single/Single.js +1 -2
  188. package/cjs/components/Slider/components/Single/Single.js.map +1 -1
  189. package/cjs/components/Slider/components/SliderBase/SliderBase.js +1 -1
  190. package/cjs/components/Steps/Steps.js +1 -1
  191. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js +0 -1
  192. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
  193. package/cjs/components/Tabs/createTabsController.js.map +1 -1
  194. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -8
  195. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
  196. package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.css +1 -1
  197. package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +7 -18
  198. package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js.map +1 -1
  199. package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base.js +1 -1
  200. package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base.js.map +1 -1
  201. package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/{base_4ob3q5.css → base_9miwn.css} +1 -1
  202. package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js +2 -3
  203. package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js.map +1 -1
  204. package/cjs/components/TextArea/TextArea.js +3 -3
  205. package/cjs/components/TextArea/TextArea.js.map +1 -1
  206. package/cjs/components/TextArea/TextArea.styles.js +4 -5
  207. package/cjs/components/TextArea/TextArea.styles.js.map +1 -1
  208. package/cjs/components/TextArea/ui/Hint/Hint.js +1 -2
  209. package/cjs/components/TextArea/ui/Hint/Hint.js.map +1 -1
  210. package/cjs/components/TextField/TextField.js +4 -4
  211. package/cjs/components/TextField/TextField.js.map +1 -1
  212. package/cjs/components/TextField/TextField.styles.js +3 -4
  213. package/cjs/components/TextField/TextField.styles.js.map +1 -1
  214. package/cjs/components/TextField/ui/Hint/Hint.js +1 -2
  215. package/cjs/components/TextField/ui/Hint/Hint.js.map +1 -1
  216. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +1 -2
  217. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +1 -1
  218. package/cjs/components/Toast/Toast.styles.js +1 -1
  219. package/cjs/components/Toast/ToastController.js +1 -1
  220. package/cjs/components/Toast/utils.js +1 -2
  221. package/cjs/components/Toast/utils.js.map +1 -1
  222. package/cjs/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.js +1 -1
  223. package/cjs/components/Tooltip/Tooltip.js +2 -3
  224. package/cjs/components/Tooltip/Tooltip.js.map +1 -1
  225. package/cjs/engines/index.js +0 -2
  226. package/cjs/engines/index.js.map +1 -1
  227. package/cjs/hooks/useIsomorphicLayoutEffect.js +0 -1
  228. package/cjs/hooks/useIsomorphicLayoutEffect.js.map +1 -1
  229. package/cjs/index.css +1 -1
  230. package/cjs/index.js +48 -51
  231. package/cjs/index.js.map +1 -1
  232. package/cjs/utils/index.js +0 -5
  233. package/cjs/utils/index.js.map +1 -1
  234. package/emotion/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +5 -1
  235. package/emotion/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +5 -1
  236. package/emotion/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +5 -1
  237. package/emotion/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +5 -1
  238. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -13
  239. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +5 -20
  240. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base.js +1 -1
  241. package/emotion/cjs/components/TextArea/TextArea.js +2 -2
  242. package/emotion/cjs/components/TextArea/TextArea.styles.js +20 -20
  243. package/emotion/cjs/components/TextField/TextField.js +2 -2
  244. package/emotion/cjs/components/TextField/TextField.styles.js +24 -24
  245. package/emotion/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +33 -72
  246. package/emotion/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +33 -72
  247. package/emotion/es/components/Calendar/ui/CalendarDays/CalendarDays.js +5 -1
  248. package/emotion/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +5 -1
  249. package/emotion/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +5 -1
  250. package/emotion/es/components/Calendar/ui/CalendarYears/CalendarYears.js +5 -1
  251. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -14
  252. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +5 -21
  253. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base.js +1 -1
  254. package/emotion/es/components/TextArea/TextArea.js +2 -2
  255. package/emotion/es/components/TextArea/TextArea.styles.js +20 -20
  256. package/emotion/es/components/TextField/TextField.js +2 -2
  257. package/emotion/es/components/TextField/TextField.styles.js +24 -24
  258. package/emotion/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +33 -72
  259. package/emotion/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +33 -72
  260. package/emotion/package.json +2 -1
  261. package/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +0 -1
  262. package/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js.map +1 -1
  263. package/es/components/Attach/Attach.js +3 -4
  264. package/es/components/Attach/Attach.js.map +1 -1
  265. package/es/components/Attach/components/AttachButton/AttachButton.js +0 -1
  266. package/es/components/Attach/components/AttachButton/AttachButton.js.map +1 -1
  267. package/es/components/Attach/ui/Button/Button.styles.js +0 -1
  268. package/es/components/Attach/ui/Button/Button.styles.js.map +1 -1
  269. package/es/components/Attach/ui/Cell/Cell.styles.js +0 -2
  270. package/es/components/Attach/ui/Cell/Cell.styles.js.map +1 -1
  271. package/es/components/Attach/ui/IconButton/IconButton.styles.js +0 -1
  272. package/es/components/Attach/ui/IconButton/IconButton.styles.js.map +1 -1
  273. package/es/components/Attach/utils/getFileicon.js +3 -4
  274. package/es/components/Attach/utils/getFileicon.js.map +1 -1
  275. package/es/components/Attach/utils/index.js +0 -3
  276. package/es/components/Attach/utils/index.js.map +1 -1
  277. package/es/components/Autocomplete/Autocomplete.js +5 -6
  278. package/es/components/Autocomplete/Autocomplete.js.map +1 -1
  279. package/es/components/Autocomplete/Autocomplete.styles.js +2 -3
  280. package/es/components/Autocomplete/Autocomplete.styles.js.map +1 -1
  281. package/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -2
  282. package/es/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
  283. package/es/components/Avatar/Avatar.js +2 -3
  284. package/es/components/Avatar/Avatar.js.map +1 -1
  285. package/es/components/Breadcrumbs/Breadcrumbs.styles.js +2 -4
  286. package/es/components/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
  287. package/es/components/Button/Button.styles.js +0 -3
  288. package/es/components/Button/Button.styles.js.map +1 -1
  289. package/es/components/Calendar/CalendarBase/CalendarBase.js +5 -5
  290. package/es/components/Calendar/CalendarDouble/CalendarDouble.js +8 -8
  291. package/es/components/Calendar/hooks/useDays.js +2 -2
  292. package/es/components/Calendar/hooks/useKeyNavigation.js +1 -1
  293. package/es/components/Calendar/hooks/useMonths.js +2 -2
  294. package/es/components/Calendar/hooks/useQuarters.js +2 -2
  295. package/es/components/Calendar/hooks/useYears.js +2 -2
  296. package/es/components/Calendar/ui/CalendarDays/CalendarDays.js +9 -5
  297. package/es/components/Calendar/ui/CalendarDays/CalendarDays.js.map +1 -1
  298. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -6
  299. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  300. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +0 -1
  301. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  302. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +9 -5
  303. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
  304. package/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +9 -5
  305. package/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js.map +1 -1
  306. package/es/components/Calendar/ui/CalendarYears/CalendarYears.js +9 -5
  307. package/es/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
  308. package/es/components/Combobox/ComboboxNew/Combobox.js +11 -12
  309. package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  310. package/es/components/Combobox/ComboboxNew/Combobox.styles.js +2 -4
  311. package/es/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
  312. package/es/components/Combobox/ComboboxNew/hooks/getPathMaps.js +0 -2
  313. package/es/components/Combobox/ComboboxNew/hooks/getPathMaps.js.map +1 -1
  314. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.js +1 -2
  315. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.js.map +1 -1
  316. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +5 -6
  317. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
  318. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +1 -3
  319. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  320. package/es/components/Combobox/ComboboxNew/ui/Target/Target.styles.js +1 -2
  321. package/es/components/Combobox/ComboboxNew/ui/Target/Target.styles.js.map +1 -1
  322. package/es/components/Combobox/ComboboxOld/Combobox.js +4 -10
  323. package/es/components/Combobox/ComboboxOld/Combobox.js.map +1 -1
  324. package/es/components/Combobox/ComboboxOld/Combobox.styles.js +0 -1
  325. package/es/components/Combobox/ComboboxOld/Combobox.styles.js.map +1 -1
  326. package/es/components/Combobox/ComboboxOld/hooks/useFocusController.js +0 -1
  327. package/es/components/Combobox/ComboboxOld/hooks/useFocusController.js.map +1 -1
  328. package/es/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js +1 -2
  329. package/es/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js.map +1 -1
  330. package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js +1 -10
  331. package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js.map +1 -1
  332. package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js +1 -10
  333. package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js.map +1 -1
  334. package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js +1 -10
  335. package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js.map +1 -1
  336. package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js +1 -10
  337. package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js.map +1 -1
  338. package/es/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js +0 -2
  339. package/es/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js.map +1 -1
  340. package/es/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.js +1 -1
  341. package/es/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js +1 -2
  342. package/es/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js.map +1 -1
  343. package/es/components/DatePicker/DatePickerBase.styles.js +1 -7
  344. package/es/components/DatePicker/DatePickerBase.styles.js.map +1 -1
  345. package/es/components/DatePicker/RangeDate/RangeDate.js +1 -1
  346. package/es/components/DatePicker/RangeDate/RangeDate.styles.js +0 -1
  347. package/es/components/DatePicker/RangeDate/RangeDate.styles.js.map +1 -1
  348. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +1 -2
  349. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -1
  350. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +2 -5
  351. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js.map +1 -1
  352. package/es/components/DatePicker/SingleDate/SingleDate.styles.js +0 -1
  353. package/es/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
  354. package/es/components/Drawer/Drawer.js +5 -10
  355. package/es/components/Drawer/Drawer.js.map +1 -1
  356. package/es/components/Drawer/Drawer.styles.js +0 -4
  357. package/es/components/Drawer/Drawer.styles.js.map +1 -1
  358. package/es/components/Drawer/hooks/useDrawer.js +0 -4
  359. package/es/components/Drawer/hooks/useDrawer.js.map +1 -1
  360. package/es/components/Drawer/ui/DrawerContent/DrawerContent.js +0 -7
  361. package/es/components/Drawer/ui/DrawerContent/DrawerContent.js.map +1 -1
  362. package/es/components/Drawer/ui/DrawerFooter/DrawerFooter.js +0 -7
  363. package/es/components/Drawer/ui/DrawerFooter/DrawerFooter.js.map +1 -1
  364. package/es/components/Drawer/ui/DrawerHeader/DrawerHeader.js +0 -3
  365. package/es/components/Drawer/ui/DrawerHeader/DrawerHeader.js.map +1 -1
  366. package/es/components/Dropdown/Dropdown.js +3 -10
  367. package/es/components/Dropdown/Dropdown.js.map +1 -1
  368. package/es/components/Dropdown/Dropdown.styles.js +2 -3
  369. package/es/components/Dropdown/Dropdown.styles.js.map +1 -1
  370. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +1 -9
  371. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  372. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +1 -2
  373. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  374. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +0 -2
  375. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js.map +1 -1
  376. package/es/components/Dropdown/ui/DropdownOld/Dropdown.styles.js +0 -1
  377. package/es/components/Dropdown/ui/DropdownOld/Dropdown.styles.js.map +1 -1
  378. package/es/components/Editable/Editable.js +3 -4
  379. package/es/components/Editable/Editable.js.map +1 -1
  380. package/es/components/Editable/utils/clearSelection.js +0 -2
  381. package/es/components/Editable/utils/clearSelection.js.map +1 -1
  382. package/es/components/Editable/utils/selectText.js +0 -2
  383. package/es/components/Editable/utils/selectText.js.map +1 -1
  384. package/es/components/EmptyState/EmptyState.styles.js +1 -2
  385. package/es/components/EmptyState/EmptyState.styles.js.map +1 -1
  386. package/es/components/IconButton/IconButton.js +1 -1
  387. package/es/components/IconButton/IconButton.styles.js +0 -8
  388. package/es/components/IconButton/IconButton.styles.js.map +1 -1
  389. package/es/components/Modal/Modal.js +6 -8
  390. package/es/components/Modal/Modal.js.map +1 -1
  391. package/es/components/Modal/hooks/useModal.js +0 -4
  392. package/es/components/Modal/hooks/useModal.js.map +1 -1
  393. package/es/components/Notification/Notification.styles.js +2 -3
  394. package/es/components/Notification/Notification.styles.js.map +1 -1
  395. package/es/components/Notification/NotificationsPortal.js +3 -4
  396. package/es/components/Notification/NotificationsPortal.js.map +1 -1
  397. package/es/components/Pagination/Pagination.styles.js +1 -2
  398. package/es/components/Pagination/Pagination.styles.js.map +1 -1
  399. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -2
  400. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  401. package/es/components/Panel/ui/PanelHeader/PanelHeader.js +1 -2
  402. package/es/components/Panel/ui/PanelHeader/PanelHeader.js.map +1 -1
  403. package/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js +1 -2
  404. package/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js.map +1 -1
  405. package/es/components/Popover/Popover.js +1 -1
  406. package/es/components/Popup/Popup.js +2 -2
  407. package/es/components/Popup/PopupContext.js +1 -1
  408. package/es/components/Range/Range.styles.js +0 -1
  409. package/es/components/Range/Range.styles.js.map +1 -1
  410. package/es/components/Segment/ui/SegmentGroup/SegmentGroup.js +4 -5
  411. package/es/components/Segment/ui/SegmentGroup/SegmentGroup.js.map +1 -1
  412. package/es/components/Select/Select.js +11 -12
  413. package/es/components/Select/Select.js.map +1 -1
  414. package/es/components/Select/Select.styles.js +2 -5
  415. package/es/components/Select/Select.styles.js.map +1 -1
  416. package/es/components/Select/hooks/usePathMaps.js +0 -2
  417. package/es/components/Select/hooks/usePathMaps.js.map +1 -1
  418. package/es/components/Select/ui/Inner/Inner.js +1 -2
  419. package/es/components/Select/ui/Inner/Inner.js.map +1 -1
  420. package/es/components/Select/ui/Inner/ui/Item/Item.js +4 -5
  421. package/es/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  422. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js +0 -1
  423. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  424. package/es/components/Select/ui/Target/ui/Button/Button.js +1 -1
  425. package/es/components/Select/ui/Target/ui/Button/Button.styles.js +1 -3
  426. package/es/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -1
  427. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +2 -2
  428. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -4
  429. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  430. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +1 -2
  431. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js.map +1 -1
  432. package/es/components/Select/utils/getButtonLabel.js +0 -2
  433. package/es/components/Select/utils/getButtonLabel.js.map +1 -1
  434. package/es/components/Sheet/Sheet.js +3 -3
  435. package/es/components/Skeleton/LineSkeleton/LineSkeleton.js +2 -4
  436. package/es/components/Skeleton/LineSkeleton/LineSkeleton.js.map +1 -1
  437. package/es/components/Skeleton/RectSkeleton/RectSkeleton.js +2 -4
  438. package/es/components/Skeleton/RectSkeleton/RectSkeleton.js.map +1 -1
  439. package/es/components/Slider/Slider.js +0 -8
  440. package/es/components/Slider/Slider.js.map +1 -1
  441. package/es/components/Slider/components/Double/Double.js +1 -2
  442. package/es/components/Slider/components/Double/Double.js.map +1 -1
  443. package/es/components/Slider/components/Double/Double.styles.js +0 -1
  444. package/es/components/Slider/components/Double/Double.styles.js.map +1 -1
  445. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +0 -3
  446. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js.map +1 -1
  447. package/es/components/Slider/components/Single/Single.js +1 -2
  448. package/es/components/Slider/components/Single/Single.js.map +1 -1
  449. package/es/components/Slider/components/SliderBase/SliderBase.js +1 -1
  450. package/es/components/Steps/Steps.js +1 -1
  451. package/es/components/Steps/ui/StepItem/StepItem.styles.js +0 -1
  452. package/es/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
  453. package/es/components/Tabs/createTabsController.js.map +1 -1
  454. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +4 -9
  455. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
  456. package/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.css +1 -1
  457. package/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +8 -19
  458. package/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js.map +1 -1
  459. package/es/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base.js +1 -1
  460. package/es/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base.js.map +1 -1
  461. package/es/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/{base_4ob3q5.css → base_9miwn.css} +1 -1
  462. package/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js +2 -3
  463. package/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js.map +1 -1
  464. package/es/components/TextArea/TextArea.js +3 -3
  465. package/es/components/TextArea/TextArea.js.map +1 -1
  466. package/es/components/TextArea/TextArea.styles.js +4 -5
  467. package/es/components/TextArea/TextArea.styles.js.map +1 -1
  468. package/es/components/TextArea/ui/Hint/Hint.js +1 -2
  469. package/es/components/TextArea/ui/Hint/Hint.js.map +1 -1
  470. package/es/components/TextField/TextField.js +4 -4
  471. package/es/components/TextField/TextField.js.map +1 -1
  472. package/es/components/TextField/TextField.styles.js +3 -4
  473. package/es/components/TextField/TextField.styles.js.map +1 -1
  474. package/es/components/TextField/ui/Hint/Hint.js +1 -2
  475. package/es/components/TextField/ui/Hint/Hint.js.map +1 -1
  476. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +1 -2
  477. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +1 -1
  478. package/es/components/Toast/Toast.styles.js +1 -1
  479. package/es/components/Toast/ToastController.js +1 -1
  480. package/es/components/Toast/utils.js +1 -2
  481. package/es/components/Toast/utils.js.map +1 -1
  482. package/es/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.js +1 -1
  483. package/es/components/Tooltip/Tooltip.js +2 -3
  484. package/es/components/Tooltip/Tooltip.js.map +1 -1
  485. package/es/engines/index.js +0 -2
  486. package/es/engines/index.js.map +1 -1
  487. package/es/hooks/useIsomorphicLayoutEffect.js +0 -1
  488. package/es/hooks/useIsomorphicLayoutEffect.js.map +1 -1
  489. package/es/index.css +1 -1
  490. package/es/index.js +21 -24
  491. package/es/index.js.map +1 -1
  492. package/es/utils/index.js +0 -3
  493. package/es/utils/index.js.map +1 -1
  494. package/package.json +5 -2
  495. package/styled-components/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +5 -1
  496. package/styled-components/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +5 -1
  497. package/styled-components/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +5 -1
  498. package/styled-components/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +5 -1
  499. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -13
  500. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +5 -20
  501. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base.js +1 -1
  502. package/styled-components/cjs/components/TextArea/TextArea.js +1 -1
  503. package/styled-components/cjs/components/TextArea/TextArea.styles.js +2 -2
  504. package/styled-components/cjs/components/TextField/TextField.js +1 -1
  505. package/styled-components/cjs/components/TextField/TextField.styles.js +2 -2
  506. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +33 -72
  507. package/styled-components/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +33 -72
  508. package/styled-components/es/components/Calendar/ui/CalendarDays/CalendarDays.js +5 -1
  509. package/styled-components/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +5 -1
  510. package/styled-components/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +5 -1
  511. package/styled-components/es/components/Calendar/ui/CalendarYears/CalendarYears.js +5 -1
  512. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -14
  513. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +5 -21
  514. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base.js +1 -1
  515. package/styled-components/es/components/TextArea/TextArea.js +1 -1
  516. package/styled-components/es/components/TextArea/TextArea.styles.js +2 -2
  517. package/styled-components/es/components/TextField/TextField.js +1 -1
  518. package/styled-components/es/components/TextField/TextField.styles.js +2 -2
  519. package/styled-components/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +33 -72
  520. package/styled-components/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +33 -72
  521. package/styled-components/package.json +2 -1
  522. package/types/components/Calendar/ui/CalendarDays/CalendarDays.d.ts.map +1 -1
  523. package/types/components/Calendar/ui/CalendarMonths/CalendarMonths.d.ts.map +1 -1
  524. package/types/components/Calendar/ui/CalendarQuarters/CalendarQuarters.d.ts.map +1 -1
  525. package/types/components/Calendar/ui/CalendarYears/CalendarYears.d.ts.map +1 -1
  526. package/types/components/Tabs/TabItem.types.d.ts +8 -50
  527. package/types/components/Tabs/TabItem.types.d.ts.map +1 -1
  528. package/types/components/Tabs/Tabs.types.d.ts +2 -44
  529. package/types/components/Tabs/Tabs.types.d.ts.map +1 -1
  530. package/types/components/Tabs/createTabsController.d.ts +2 -2
  531. package/types/components/Tabs/createTabsController.d.ts.map +1 -1
  532. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.d.ts.map +1 -1
  533. package/types/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.d.ts +2 -2
  534. package/types/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.d.ts.map +1 -1
  535. package/types/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base.d.ts.map +1 -1
  536. package/types/components/TextArea/TextArea.styles.d.ts +1 -1
  537. package/types/components/TextArea/TextArea.styles.d.ts.map +1 -1
  538. package/types/components/TextField/TextField.styles.d.ts +1 -1
  539. package/types/components/TextField/TextField.styles.d.ts.map +1 -1
  540. package/types/examples/plasma_b2c/components/Tabs/TabItem.d.ts +2 -17
  541. package/types/examples/plasma_b2c/components/Tabs/TabItem.d.ts.map +1 -1
  542. package/types/examples/plasma_b2c/components/Tabs/Tabs.d.ts +1 -1
  543. package/types/examples/plasma_b2c/components/Tabs/Tabs.d.ts.map +1 -1
  544. package/types/examples/plasma_web/components/Tabs/TabItem.d.ts +2 -17
  545. package/types/examples/plasma_web/components/Tabs/TabItem.d.ts.map +1 -1
  546. package/types/examples/plasma_web/components/Tabs/Tabs.d.ts +1 -1
  547. package/types/examples/plasma_web/components/Tabs/Tabs.d.ts.map +1 -1
  548. package/cjs/components/Tabs/ui/horizontal/const.js +0 -11
  549. package/cjs/components/Tabs/ui/horizontal/const.js.map +0 -1
  550. package/emotion/cjs/components/Tabs/ui/horizontal/const.js +0 -10
  551. package/emotion/es/components/Tabs/ui/horizontal/const.js +0 -4
  552. package/es/components/Tabs/ui/horizontal/const.js +0 -7
  553. package/es/components/Tabs/ui/horizontal/const.js.map +0 -1
  554. package/styled-components/cjs/components/Tabs/ui/horizontal/const.js +0 -10
  555. package/styled-components/es/components/Tabs/ui/horizontal/const.js +0 -4
  556. package/types/components/Tabs/ui/horizontal/const.d.ts +0 -2
  557. package/types/components/Tabs/ui/horizontal/const.d.ts.map +0 -1
@@ -12,7 +12,6 @@ import { Tabs } from './Tabs';
12
12
  import { TabItem } from './TabItem';
13
13
 
14
14
  const clips = ['none', 'scroll', 'showAll'];
15
- const headerClips = ['none', 'scroll'];
16
15
  const sizes = ['xs', 's', 'm', 'l'] as const;
17
16
  const headerSizes = ['h5', 'h4', 'h3', 'h2', 'h1'] as const;
18
17
 
@@ -21,6 +20,7 @@ type HeaderSize = typeof headerSizes[number];
21
20
 
22
21
  type CustomStoryTabsProps = {
23
22
  itemQuantity: number;
23
+ hasDivider: boolean;
24
24
  contentLeft: string;
25
25
  contentRight: string;
26
26
  stretch: boolean;
@@ -30,12 +30,12 @@ type CustomStoryTabsProps = {
30
30
  const contentLeftOptions = ['none', 'icon'];
31
31
  const contentRightOptions = ['none', 'counter', 'icon'];
32
32
 
33
- const getContentLeft = (contentLeftOption: string, size: string) => {
33
+ const getContentLeft = (contentLeftOption: string, size: Size) => {
34
34
  const iconSize = size === 'xs' ? 'xs' : 's';
35
35
  return contentLeftOption === 'icon' ? <IconMic size={iconSize} color="inherit" /> : undefined;
36
36
  };
37
37
 
38
- const getContentRight = (contentRightOption: string, size: string) => {
38
+ const getContentRight = (contentRightOption: string, size: Size) => {
39
39
  const iconSize = size === 'xs' ? 'xs' : 's';
40
40
  const counterSize = size === 'xs' ? 'xxs' : 'xs';
41
41
 
@@ -96,7 +96,7 @@ const StoryHorizontalDefault = (props: HorizontalStoryTabsProps) => {
96
96
  const [index, setIndex] = useState(0);
97
97
 
98
98
  return (
99
- <Tabs view="divider" hasDivider={hasDivider} stretch={stretch} disabled={disabled} size={size}>
99
+ <Tabs view={hasDivider ? 'divider' : 'clear'} stretch={stretch} disabled={disabled} size={size}>
100
100
  {items.map((_, i) => {
101
101
  if (helperText !== '') {
102
102
  return (
@@ -152,7 +152,7 @@ const StoryHorizontalScroll = (props: HorizontalStoryTabsProps) => {
152
152
  const [index, setIndex] = useState(0);
153
153
 
154
154
  return (
155
- <Tabs clip={clip} view="divider" hasDivider={hasDivider} disabled={disabled} size={size} style={{ width }}>
155
+ <Tabs clip={clip} view={hasDivider ? 'divider' : 'clear'} disabled={disabled} size={size} style={{ width }}>
156
156
  {items.map((_, i) => {
157
157
  if (helperText !== '') {
158
158
  return (
@@ -220,7 +220,7 @@ const StoryHorizontalShowAll = (props: HorizontalStoryTabsProps) => {
220
220
  });
221
221
 
222
222
  return (
223
- <Tabs clip={clip} view="divider" hasDivider={hasDivider} disabled={disabled} size={size}>
223
+ <Tabs clip={clip} view={hasDivider ? 'divider' : 'clear'} disabled={disabled} size={size}>
224
224
  {visibleItems.map((_, i) => {
225
225
  if (helperText !== '') {
226
226
  return (
@@ -603,47 +603,31 @@ export const VerticalTabs: StoryObj<VerticalStoryTabsProps> = {
603
603
  },
604
604
  };
605
605
 
606
- const StoryHeaderDefault = (props: HorizontalStoryTabsProps) => {
607
- const { disabled, itemQuantity, size, helperText } = props;
608
- const items = Array(itemQuantity).fill(0);
609
- const [index, setIndex] = useState(0);
610
-
611
- return (
612
- <Tabs view="clear" disabled={disabled} size={size as HeaderSize}>
613
- {items.map((_, i) => (
614
- <TabItem
615
- key={`item:${i}`}
616
- view="clear"
617
- selected={i === index}
618
- onClick={() => !disabled && setIndex(i)}
619
- tabIndex={!disabled ? 0 : -1}
620
- disabled={disabled}
621
- value={helperText}
622
- size={size as HeaderSize}
623
- >
624
- {`Label${i + 1}`}
625
- </TabItem>
626
- ))}
627
- </Tabs>
628
- );
629
- };
630
-
631
- const StoryHeaderScroll = (props: HorizontalStoryTabsProps) => {
632
- const { disabled, itemQuantity, size, helperText, width } = props;
606
+ const StoryHeaderTabs = (props: StoryTabsProps) => {
607
+ const {
608
+ disabled,
609
+ itemQuantity,
610
+ size,
611
+ contentLeft: contentLeftOption,
612
+ contentRight: contentRightOption,
613
+ hasDivider,
614
+ stretch,
615
+ } = props;
633
616
  const items = Array(itemQuantity).fill(0);
634
617
  const [index, setIndex] = useState(0);
635
618
 
636
619
  return (
637
- <Tabs view="clear" disabled={disabled} size={size as HeaderSize} style={{ width }}>
620
+ <Tabs view={hasDivider ? 'divider' : 'clear'} disabled={disabled} size={size} stretch={stretch}>
638
621
  {items.map((_, i) => (
639
622
  <TabItem
640
623
  key={`item:${i}`}
641
- view="clear"
624
+ view="divider"
642
625
  selected={i === index}
643
626
  onClick={() => !disabled && setIndex(i)}
644
627
  tabIndex={!disabled ? 0 : -1}
645
628
  disabled={disabled}
646
- value={helperText}
629
+ contentLeft={getContentLeft(contentLeftOption, size as Size)}
630
+ contentRight={getContentRight(contentRightOption, size as Size)}
647
631
  size={size as HeaderSize}
648
632
  >
649
633
  {`Label${i + 1}`}
@@ -653,60 +637,37 @@ const StoryHeaderScroll = (props: HorizontalStoryTabsProps) => {
653
637
  );
654
638
  };
655
639
 
656
- export const HeaderTabs: StoryObj<HorizontalStoryTabsProps> = {
640
+ export const HeaderTabs: StoryObj<StoryTabsProps> = {
657
641
  args: {
658
642
  size: 'h5',
659
643
  disabled: false,
660
- helperText: '',
661
- itemQuantity: 6,
662
- width: '12rem',
644
+ hasDivider: true,
645
+ itemQuantity: 4,
663
646
  },
664
647
  argTypes: {
665
- clip: {
666
- options: headerClips,
648
+ size: {
649
+ options: headerSizes,
667
650
  control: {
668
651
  type: 'select',
669
652
  },
670
653
  },
671
- width: {
672
- control: {
673
- type: 'text',
674
- },
675
- if: { arg: 'clip', eq: 'scroll' },
676
- },
677
- stretch: {
678
- table: {
679
- disable: true,
680
- },
681
- },
682
654
  contentLeft: {
683
- table: {
684
- disable: true,
655
+ options: contentLeftOptions,
656
+ control: {
657
+ type: 'select',
685
658
  },
686
659
  },
687
660
  contentRight: {
688
- table: {
689
- disable: true,
661
+ options: contentRightOptions,
662
+ control: {
663
+ type: 'select',
690
664
  },
691
665
  },
692
- hasDivider: {
666
+ clip: {
693
667
  table: {
694
668
  disable: true,
695
669
  },
696
670
  },
697
- size: {
698
- options: headerSizes,
699
- control: {
700
- type: 'select',
701
- },
702
- },
703
- },
704
- render: (args) => {
705
- switch (args.clip) {
706
- case 'scroll':
707
- return <StoryHeaderScroll {...args} />;
708
- default:
709
- return <StoryHeaderDefault {...args} />;
710
- }
711
671
  },
672
+ render: (args) => <StoryHeaderTabs {...args} />,
712
673
  };
@@ -12,7 +12,6 @@ import { Tabs } from './Tabs';
12
12
  import { TabItem } from './TabItem';
13
13
 
14
14
  const clips = ['none', 'scroll', 'showAll'];
15
- const headerClips = ['none', 'scroll'];
16
15
  const sizes = ['xs', 's', 'm', 'l'] as const;
17
16
  const headerSizes = ['h5', 'h4', 'h3', 'h2', 'h1'] as const;
18
17
 
@@ -21,6 +20,7 @@ type HeaderSize = typeof headerSizes[number];
21
20
 
22
21
  type CustomStoryTabsProps = {
23
22
  itemQuantity: number;
23
+ hasDivider: boolean;
24
24
  contentLeft: string;
25
25
  contentRight: string;
26
26
  stretch: boolean;
@@ -30,12 +30,12 @@ type CustomStoryTabsProps = {
30
30
  const contentLeftOptions = ['none', 'icon'];
31
31
  const contentRightOptions = ['none', 'counter', 'icon'];
32
32
 
33
- const getContentLeft = (contentLeftOption: string, size: string) => {
33
+ const getContentLeft = (contentLeftOption: string, size: Size) => {
34
34
  const iconSize = size === 'xs' ? 'xs' : 's';
35
35
  return contentLeftOption === 'icon' ? <IconMic size={iconSize} color="inherit" /> : undefined;
36
36
  };
37
37
 
38
- const getContentRight = (contentRightOption: string, size: string) => {
38
+ const getContentRight = (contentRightOption: string, size: Size) => {
39
39
  const iconSize = size === 'xs' ? 'xs' : 's';
40
40
  const counterSize = size === 'xs' ? 'xxs' : 'xs';
41
41
 
@@ -96,7 +96,7 @@ const StoryHorizontalDefault = (props: HorizontalStoryTabsProps) => {
96
96
  const [index, setIndex] = useState(0);
97
97
 
98
98
  return (
99
- <Tabs view="divider" hasDivider={hasDivider} stretch={stretch} disabled={disabled} size={size}>
99
+ <Tabs view={hasDivider ? 'divider' : 'clear'} stretch={stretch} disabled={disabled} size={size}>
100
100
  {items.map((_, i) => {
101
101
  if (helperText !== '') {
102
102
  return (
@@ -152,7 +152,7 @@ const StoryHorizontalScroll = (props: HorizontalStoryTabsProps) => {
152
152
  const [index, setIndex] = useState(0);
153
153
 
154
154
  return (
155
- <Tabs clip={clip} view="divider" hasDivider={hasDivider} disabled={disabled} size={size} style={{ width }}>
155
+ <Tabs clip={clip} view={hasDivider ? 'divider' : 'clear'} disabled={disabled} size={size} style={{ width }}>
156
156
  {items.map((_, i) => {
157
157
  if (helperText !== '') {
158
158
  return (
@@ -220,7 +220,7 @@ const StoryHorizontalShowAll = (props: HorizontalStoryTabsProps) => {
220
220
  });
221
221
 
222
222
  return (
223
- <Tabs clip={clip} view="divider" hasDivider={hasDivider} disabled={disabled} size={size}>
223
+ <Tabs clip={clip} view={hasDivider ? 'divider' : 'clear'} disabled={disabled} size={size}>
224
224
  {visibleItems.map((_, i) => {
225
225
  if (helperText !== '') {
226
226
  return (
@@ -603,47 +603,31 @@ export const VerticalTabs: StoryObj<VerticalStoryTabsProps> = {
603
603
  },
604
604
  };
605
605
 
606
- const StoryHeaderDefault = (props: HorizontalStoryTabsProps) => {
607
- const { disabled, itemQuantity, size, helperText } = props;
608
- const items = Array(itemQuantity).fill(0);
609
- const [index, setIndex] = useState(0);
610
-
611
- return (
612
- <Tabs view="clear" disabled={disabled} size={size as HeaderSize}>
613
- {items.map((_, i) => (
614
- <TabItem
615
- key={`item:${i}`}
616
- view="clear"
617
- selected={i === index}
618
- onClick={() => !disabled && setIndex(i)}
619
- tabIndex={!disabled ? 0 : -1}
620
- disabled={disabled}
621
- value={helperText}
622
- size={size as HeaderSize}
623
- >
624
- {`Label${i + 1}`}
625
- </TabItem>
626
- ))}
627
- </Tabs>
628
- );
629
- };
630
-
631
- const StoryHeaderScroll = (props: HorizontalStoryTabsProps) => {
632
- const { disabled, itemQuantity, size, helperText, width } = props;
606
+ const StoryHeaderTabs = (props: StoryTabsProps) => {
607
+ const {
608
+ disabled,
609
+ itemQuantity,
610
+ size,
611
+ contentLeft: contentLeftOption,
612
+ contentRight: contentRightOption,
613
+ hasDivider,
614
+ stretch,
615
+ } = props;
633
616
  const items = Array(itemQuantity).fill(0);
634
617
  const [index, setIndex] = useState(0);
635
618
 
636
619
  return (
637
- <Tabs view="clear" disabled={disabled} size={size as HeaderSize} style={{ width }}>
620
+ <Tabs view={hasDivider ? 'divider' : 'clear'} disabled={disabled} size={size} stretch={stretch}>
638
621
  {items.map((_, i) => (
639
622
  <TabItem
640
623
  key={`item:${i}`}
641
- view="clear"
624
+ view="divider"
642
625
  selected={i === index}
643
626
  onClick={() => !disabled && setIndex(i)}
644
627
  tabIndex={!disabled ? 0 : -1}
645
628
  disabled={disabled}
646
- value={helperText}
629
+ contentLeft={getContentLeft(contentLeftOption, size as Size)}
630
+ contentRight={getContentRight(contentRightOption, size as Size)}
647
631
  size={size as HeaderSize}
648
632
  >
649
633
  {`Label${i + 1}`}
@@ -653,60 +637,37 @@ const StoryHeaderScroll = (props: HorizontalStoryTabsProps) => {
653
637
  );
654
638
  };
655
639
 
656
- export const HeaderTabs: StoryObj<HorizontalStoryTabsProps> = {
640
+ export const HeaderTabs: StoryObj<StoryTabsProps> = {
657
641
  args: {
658
642
  size: 'h5',
659
643
  disabled: false,
660
- helperText: '',
661
- itemQuantity: 6,
662
- width: '12rem',
644
+ hasDivider: true,
645
+ itemQuantity: 4,
663
646
  },
664
647
  argTypes: {
665
- clip: {
666
- options: headerClips,
648
+ size: {
649
+ options: headerSizes,
667
650
  control: {
668
651
  type: 'select',
669
652
  },
670
653
  },
671
- width: {
672
- control: {
673
- type: 'text',
674
- },
675
- if: { arg: 'clip', eq: 'scroll' },
676
- },
677
- stretch: {
678
- table: {
679
- disable: true,
680
- },
681
- },
682
654
  contentLeft: {
683
- table: {
684
- disable: true,
655
+ options: contentLeftOptions,
656
+ control: {
657
+ type: 'select',
685
658
  },
686
659
  },
687
660
  contentRight: {
688
- table: {
689
- disable: true,
661
+ options: contentRightOptions,
662
+ control: {
663
+ type: 'select',
690
664
  },
691
665
  },
692
- hasDivider: {
666
+ clip: {
693
667
  table: {
694
668
  disable: true,
695
669
  },
696
670
  },
697
- size: {
698
- options: headerSizes,
699
- control: {
700
- type: 'select',
701
- },
702
- },
703
- },
704
- render: (args) => {
705
- switch (args.clip) {
706
- case 'scroll':
707
- return <StoryHeaderScroll {...args} />;
708
- default:
709
- return <StoryHeaderDefault {...args} />;
710
- }
711
671
  },
672
+ render: (args) => <StoryHeaderTabs {...args} />,
712
673
  };
@@ -88,6 +88,9 @@ export var CalendarDays = function CalendarDays(_ref) {
88
88
  }
89
89
  onHoverDay === null || onHoverDay === void 0 || onHoverDay(selectedDate);
90
90
  }, [getSelectedDate, onHoverDay, value]);
91
+ var handleMouseOutGrid = function handleMouseOutGrid() {
92
+ return onHoverDay === null || onHoverDay === void 0 ? void 0 : onHoverDay(undefined);
93
+ };
91
94
  var getRefs = function getRefs(element, isDayInCurrentMonth, i, j) {
92
95
  if (isDayInCurrentMonth) {
93
96
  outerRefs.current[i + offset][j] = element;
@@ -102,7 +105,8 @@ export var CalendarDays = function CalendarDays(_ref) {
102
105
  return /*#__PURE__*/React.createElement(StyledCalendarDays, {
103
106
  role: "grid",
104
107
  "aria-labelledby": "id-grid-label",
105
- onKeyDown: onKeyDown
108
+ onKeyDown: onKeyDown,
109
+ onMouseLeave: handleMouseOutGrid
106
110
  }, _StyledCalendarDaysHi || (_StyledCalendarDaysHi = /*#__PURE__*/React.createElement(StyledCalendarDaysHint, {
107
111
  id: "withShift"
108
112
  }, "\u0414\u043B\u044F \u043D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438 \u0442\u043E\u043B\u044C\u043A\u043E \u043F\u043E \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u043C \u0434\u0430\u0442\u0430\u043C \u0443\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Shift.")), /*#__PURE__*/React.createElement(StyledFlex, {
@@ -92,6 +92,9 @@ export var CalendarMonths = function CalendarMonths(_ref) {
92
92
  }
93
93
  onHoverMonth === null || onHoverMonth === void 0 || onHoverMonth(selectedDate);
94
94
  }, [getSelectedDate, onHoverMonth, value]);
95
+ var handleMouseOutGrid = function handleMouseOutGrid() {
96
+ return onHoverMonth === null || onHoverMonth === void 0 ? void 0 : onHoverMonth(undefined);
97
+ };
95
98
  var getRefs = useCallback(function (element, i, j) {
96
99
  outerRefs.current[i + offset][j] = element;
97
100
  }, [offset, outerRefs]);
@@ -104,7 +107,8 @@ export var CalendarMonths = function CalendarMonths(_ref) {
104
107
  return /*#__PURE__*/React.createElement(StyledCalendarMonths, {
105
108
  role: "grid",
106
109
  "aria-labelledby": "id-grid-label",
107
- onKeyDown: onKeyDown
110
+ onKeyDown: onKeyDown,
111
+ onMouseLeave: handleMouseOutGrid
108
112
  }, months.map(function (month, i) {
109
113
  return /*#__PURE__*/React.createElement(StyledFlex, {
110
114
  role: "row",
@@ -90,6 +90,9 @@ export var CalendarQuarters = function CalendarQuarters(_ref) {
90
90
  }
91
91
  onHoverQuarter === null || onHoverQuarter === void 0 || onHoverQuarter(selectedDate);
92
92
  }, [getSelectedDate, onHoverQuarter, value]);
93
+ var handleMouseOutGrid = function handleMouseOutGrid() {
94
+ return onHoverQuarter === null || onHoverQuarter === void 0 ? void 0 : onHoverQuarter(undefined);
95
+ };
93
96
  var getRefs = useCallback(function (element, i, j) {
94
97
  outerRefs.current[i + offset][j] = element;
95
98
  }, [offset, outerRefs]);
@@ -102,7 +105,8 @@ export var CalendarQuarters = function CalendarQuarters(_ref) {
102
105
  return /*#__PURE__*/React.createElement(StyledCalendarQuarters, {
103
106
  role: "grid",
104
107
  "aria-labelledby": "id-grid-label",
105
- onKeyDown: onKeyDown
108
+ onKeyDown: onKeyDown,
109
+ onMouseLeave: handleMouseOutGrid
106
110
  }, quarters.map(function (quarter, i) {
107
111
  return /*#__PURE__*/React.createElement(StyledFlex, {
108
112
  role: "row",
@@ -92,6 +92,9 @@ export var CalendarYears = function CalendarYears(_ref) {
92
92
  }
93
93
  onHoverYear === null || onHoverYear === void 0 || onHoverYear(selectedDate);
94
94
  }, [getSelectedDate, onHoverYear, value]);
95
+ var handleMouseOutGrid = function handleMouseOutGrid() {
96
+ return onHoverYear === null || onHoverYear === void 0 ? void 0 : onHoverYear(undefined);
97
+ };
95
98
  var getRefs = useCallback(function (element, i, j) {
96
99
  outerRefs.current[i + offset][j] = element;
97
100
  }, [outerRefs]);
@@ -104,7 +107,8 @@ export var CalendarYears = function CalendarYears(_ref) {
104
107
  return /*#__PURE__*/React.createElement(StyledCalendarYears, {
105
108
  role: "grid",
106
109
  "aria-labelledby": "id-grid-label",
107
- onKeyDown: onKeyDown
110
+ onKeyDown: onKeyDown,
111
+ onMouseLeave: handleMouseOutGrid
108
112
  }, years.map(function (year, i) {
109
113
  return /*#__PURE__*/React.createElement(StyledFlex, {
110
114
  role: "row",
@@ -1,11 +1,5 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
1
  var _excluded = ["size", "view", "isActive", "selected", "disabled", "pilled", "children", "value", "contentLeft", "contentRight", "animated", "onIndexChange", "itemIndex", "tabIndex", "className", "onClick"];
3
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
8
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
9
3
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10
4
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
5
  import React, { forwardRef, useRef, useContext, useEffect, useCallback } from 'react';
@@ -13,7 +7,6 @@ import { useForkRef } from '@salutejs/plasma-core';
13
7
  import { classes } from '../../../tokens';
14
8
  import { cx } from '../../../../../utils';
15
9
  import { TabsContext } from '../../../TabsContext';
16
- import { isHeaderSize } from '../const';
17
10
  import { base as viewCSS } from './variations/_view/base';
18
11
  import { base as sizeCSS } from './variations/_size/base';
19
12
  import { base as pilledCSS } from './variations/_pilled/base';
@@ -41,12 +34,6 @@ export var horizontalTabItemRoot = function horizontalTabItemRoot(Root) {
41
34
  className = props.className,
42
35
  onClick = props.onClick,
43
36
  rest = _objectWithoutProperties(props, _excluded);
44
- var restRootProps = size && isHeaderSize(size) ? _objectSpread({
45
- size: size
46
- }, rest) : _objectSpread({
47
- size: size,
48
- pilled: pilled
49
- }, rest);
50
37
  var innerRef = useRef(null);
51
38
  var ref = useForkRef(outerRef, innerRef);
52
39
  var refs = useContext(TabsContext);
@@ -103,13 +90,15 @@ export var horizontalTabItemRoot = function horizontalTabItemRoot(Root) {
103
90
  return /*#__PURE__*/React.createElement(Root, _extends({
104
91
  ref: ref,
105
92
  disabled: disabled,
93
+ pilled: pilled,
106
94
  role: role,
107
95
  view: view,
96
+ size: size,
108
97
  onFocus: onItemFocus,
109
98
  tabIndex: hasKeyNavigation ? navigationTabIndex : tabIndex,
110
99
  className: cx(pilledClass, selectedClass, animatedClass, className),
111
100
  onClick: handleClick
112
- }, restRootProps), /*#__PURE__*/React.createElement(React.Fragment, null, contentLeft && /*#__PURE__*/React.createElement(LeftContent, {
101
+ }, rest), /*#__PURE__*/React.createElement(React.Fragment, null, contentLeft && /*#__PURE__*/React.createElement(LeftContent, {
113
102
  className: classes.tabLeftContent
114
103
  }, contentLeft), /*#__PURE__*/React.createElement(StyledContent, {
115
104
  className: classes.tabContent
@@ -1,5 +1,4 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["id", "stretch", "disabled", "clip", "size", "view", "children", "pilled", "index", "className", "hasDivider", "outsideScroll"];
1
+ var _excluded = ["id", "stretch", "disabled", "clip", "size", "view", "children", "pilled", "index", "className"];
3
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
3
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
5
4
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -7,11 +6,6 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
7
6
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
8
7
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
9
8
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
10
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
11
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
12
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
13
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
15
9
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
16
10
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
17
11
  import React, { forwardRef, useCallback, useMemo, useState, useEffect, useRef } from 'react';
@@ -20,7 +14,6 @@ import { IconDisclosureLeft, IconDisclosureRight } from '../../../../_Icon';
20
14
  import { classes, tokens } from '../../../tokens';
21
15
  import { cx } from '../../../../../utils';
22
16
  import { TabItemRefs, TabsContext } from '../../../TabsContext';
23
- import { isHeaderSize } from '../const';
24
17
  import { base as sizeCSS } from './variations/_size/base';
25
18
  import { base as viewCSS } from './variations/_view/base';
26
19
  import { base as disabledCSS } from './variations/_disabled/base';
@@ -50,17 +43,7 @@ export var horizontalTabsRoot = function horizontalTabsRoot(Root) {
50
43
  pilled = _props$pilled === void 0 ? false : _props$pilled,
51
44
  index = props.index,
52
45
  className = props.className,
53
- _props$hasDivider = props.hasDivider,
54
- hasDivider = _props$hasDivider === void 0 ? true : _props$hasDivider,
55
- outsideScroll = props.outsideScroll,
56
46
  rest = _objectWithoutProperties(props, _excluded);
57
- var restRootProps = size && isHeaderSize(size) ? _objectSpread({
58
- size: size
59
- }, rest) : _objectSpread({
60
- size: size,
61
- pilled: pilled,
62
- outsideScroll: outsideScroll
63
- }, rest);
64
47
  var _useState = useState(true),
65
48
  _useState2 = _slicedToArray(_useState, 2),
66
49
  firstItemVisible = _useState2[0],
@@ -77,7 +60,6 @@ export var horizontalTabsRoot = function horizontalTabsRoot(Root) {
77
60
  var isFilled = view === 'filled'; // outer padding is only for filled view
78
61
  var pilledAttr = view !== 'clear' && pilled;
79
62
  var pilledClass = pilledAttr ? classes.tabsPilled : undefined;
80
- var noDividerClass = !hasDivider ? classes.tabsNoDivider : undefined;
81
63
  var stretchClass = firstItemVisible && lastItemVisible && stretch ? classes.tabsStretch : undefined;
82
64
  var hasLeftArrowClass = !firstItemVisible ? classes.tabsHasLeftArrow : undefined;
83
65
  var hasRightArrowClass = !lastItemVisible ? classes.tabsHasRightArrow : undefined;
@@ -208,12 +190,14 @@ export var horizontalTabsRoot = function horizontalTabsRoot(Root) {
208
190
  }, /*#__PURE__*/React.createElement(Root, _extends({
209
191
  view: view,
210
192
  role: "tablist",
193
+ size: size,
194
+ pilled: pilled,
211
195
  id: tabsId,
212
196
  ref: outerRef,
213
197
  disabled: disabled,
214
- className: cx(pilledClass, stretchClass, hasLeftArrowClass, hasRightArrowClass, noDividerClass, className),
198
+ className: cx(pilledClass, stretchClass, hasLeftArrowClass, hasRightArrowClass, className),
215
199
  onKeyDown: onKeyDown
216
- }, restRootProps), !firstItemVisible && PreviousButton, /*#__PURE__*/React.createElement(StyledContentWrapper, {
200
+ }, rest), !firstItemVisible && PreviousButton, /*#__PURE__*/React.createElement(StyledContentWrapper, {
217
201
  className: cx(clipScrollClass, clipShowAllClass),
218
202
  ref: scrollRef,
219
203
  onScroll: handleScroll
@@ -1,3 +1,3 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { classes, tokens } from '../../../../../tokens';
3
- export var base = /*#__PURE__*/css("background-color:var(", tokens.tabsBackgroundColor, ");&::after{content:'';position:absolute;bottom:0.125rem;left:0.125rem;right:0.125rem;background:var(", tokens.tabsDividerColor, ");height:var(", tokens.tabsDividerHeight, ");border-radius:var(", tokens.tabsDividerBorderRadius, ");}&.", classes.tabsHasLeftArrow, "{&::after{left:1.5rem;}}&.", classes.tabsHasRightArrow, "{&::after{right:1.5rem;}}&.", classes.tabsNoDivider, "{&::after{height:0;}};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvVGFicy91aS9ob3Jpem9udGFsL0hvcml6b250YWxUYWJzL3ZhcmlhdGlvbnMvX3ZpZXcvYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9UYWJzL3VpL2hvcml6b250YWwvSG9yaXpvbnRhbFRhYnMvdmFyaWF0aW9ucy9fdmlldy9iYXNlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBjbGFzc2VzLCB0b2tlbnMgfSBmcm9tICcuLi8uLi8uLi8uLi8uLi90b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoJHt0b2tlbnMudGFic0JhY2tncm91bmRDb2xvcn0pO1xuXG4gICAgJjo6YWZ0ZXIge1xuICAgICAgICBjb250ZW50OiAnJztcbiAgICAgICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgICAgICBib3R0b206IDAuMTI1cmVtO1xuICAgICAgICBsZWZ0OiAwLjEyNXJlbTtcbiAgICAgICAgcmlnaHQ6IDAuMTI1cmVtO1xuICAgICAgICBiYWNrZ3JvdW5kOiB2YXIoJHt0b2tlbnMudGFic0RpdmlkZXJDb2xvcn0pO1xuICAgICAgICBoZWlnaHQ6IHZhcigke3Rva2Vucy50YWJzRGl2aWRlckhlaWdodH0pO1xuICAgICAgICBib3JkZXItcmFkaXVzOiB2YXIoJHt0b2tlbnMudGFic0RpdmlkZXJCb3JkZXJSYWRpdXN9KTtcbiAgICB9XG5cbiAgICAmLiR7Y2xhc3Nlcy50YWJzSGFzTGVmdEFycm93fSB7XG4gICAgICAgICY6OmFmdGVyIHtcbiAgICAgICAgICAgIGxlZnQ6IDEuNXJlbTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgICYuJHtjbGFzc2VzLnRhYnNIYXNSaWdodEFycm93fSB7XG4gICAgICAgICY6OmFmdGVyIHtcbiAgICAgICAgICAgIHJpZ2h0OiAxLjVyZW07XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICAmLiR7Y2xhc3Nlcy50YWJzTm9EaXZpZGVyfSB7XG4gICAgICAgICY6OmFmdGVyIHtcbiAgICAgICAgICAgIGhlaWdodDogMDtcbiAgICAgICAgfVxuICAgIH1cbmA7XG4iXX0= */"));
3
+ export var base = /*#__PURE__*/css("background-color:var(", tokens.tabsBackgroundColor, ");&::after{content:'';position:absolute;bottom:0.125rem;left:0.125rem;right:0.125rem;background:var(", tokens.tabsDividerColor, ");height:var(", tokens.tabsDividerHeight, ");border-radius:var(", tokens.tabsDividerBorderRadius, ");}&.", classes.tabsHasLeftArrow, "{&::after{left:1.5rem;}}&.", classes.tabsHasRightArrow, "{&::after{right:1.5rem;}};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvVGFicy91aS9ob3Jpem9udGFsL0hvcml6b250YWxUYWJzL3ZhcmlhdGlvbnMvX3ZpZXcvYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9UYWJzL3VpL2hvcml6b250YWwvSG9yaXpvbnRhbFRhYnMvdmFyaWF0aW9ucy9fdmlldy9iYXNlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBjbGFzc2VzLCB0b2tlbnMgfSBmcm9tICcuLi8uLi8uLi8uLi8uLi90b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoJHt0b2tlbnMudGFic0JhY2tncm91bmRDb2xvcn0pO1xuXG4gICAgJjo6YWZ0ZXIge1xuICAgICAgICBjb250ZW50OiAnJztcbiAgICAgICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgICAgICBib3R0b206IDAuMTI1cmVtO1xuICAgICAgICBsZWZ0OiAwLjEyNXJlbTtcbiAgICAgICAgcmlnaHQ6IDAuMTI1cmVtO1xuICAgICAgICBiYWNrZ3JvdW5kOiB2YXIoJHt0b2tlbnMudGFic0RpdmlkZXJDb2xvcn0pO1xuICAgICAgICBoZWlnaHQ6IHZhcigke3Rva2Vucy50YWJzRGl2aWRlckhlaWdodH0pO1xuICAgICAgICBib3JkZXItcmFkaXVzOiB2YXIoJHt0b2tlbnMudGFic0RpdmlkZXJCb3JkZXJSYWRpdXN9KTtcbiAgICB9XG5cbiAgICAmLiR7Y2xhc3Nlcy50YWJzSGFzTGVmdEFycm93fSB7XG4gICAgICAgICY6OmFmdGVyIHtcbiAgICAgICAgICAgIGxlZnQ6IDEuNXJlbTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgICYuJHtjbGFzc2VzLnRhYnNIYXNSaWdodEFycm93fSB7XG4gICAgICAgICY6OmFmdGVyIHtcbiAgICAgICAgICAgIHJpZ2h0OiAxLjVyZW07XG4gICAgICAgIH1cbiAgICB9XG5gO1xuIl19 */"));