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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (535) 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 +4 -4
  37. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -6
  38. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  39. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +0 -1
  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 +11 -12
  45. package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  46. package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +2 -4
  47. package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
  48. package/cjs/components/Combobox/ComboboxNew/hooks/getPathMaps.js +0 -2
  49. package/cjs/components/Combobox/ComboboxNew/hooks/getPathMaps.js.map +1 -1
  50. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.js +1 -2
  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 +5 -6
  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 +1 -3
  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 +1 -2
  57. package/cjs/components/Combobox/ComboboxNew/ui/Target/Target.styles.js.map +1 -1
  58. package/cjs/components/Combobox/ComboboxOld/Combobox.js +4 -10
  59. package/cjs/components/Combobox/ComboboxOld/Combobox.js.map +1 -1
  60. package/cjs/components/Combobox/ComboboxOld/Combobox.styles.js +0 -1
  61. package/cjs/components/Combobox/ComboboxOld/Combobox.styles.js.map +1 -1
  62. package/cjs/components/Combobox/ComboboxOld/hooks/useFocusController.js +0 -1
  63. package/cjs/components/Combobox/ComboboxOld/hooks/useFocusController.js.map +1 -1
  64. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js +1 -2
  65. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js.map +1 -1
  66. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js +1 -10
  67. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js.map +1 -1
  68. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js +1 -10
  69. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js.map +1 -1
  70. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js +1 -10
  71. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js.map +1 -1
  72. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js +1 -10
  73. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js.map +1 -1
  74. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js +0 -2
  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 +1 -2
  78. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js.map +1 -1
  79. package/cjs/components/DatePicker/DatePickerBase.styles.js +1 -7
  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 +0 -1
  83. package/cjs/components/DatePicker/RangeDate/RangeDate.styles.js.map +1 -1
  84. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +1 -2
  85. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -1
  86. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +2 -5
  87. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js.map +1 -1
  88. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +0 -1
  89. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
  90. package/cjs/components/Drawer/Drawer.js +5 -10
  91. package/cjs/components/Drawer/Drawer.js.map +1 -1
  92. package/cjs/components/Drawer/Drawer.styles.js +0 -4
  93. package/cjs/components/Drawer/Drawer.styles.js.map +1 -1
  94. package/cjs/components/Drawer/hooks/useDrawer.js +0 -4
  95. package/cjs/components/Drawer/hooks/useDrawer.js.map +1 -1
  96. package/cjs/components/Drawer/ui/DrawerContent/DrawerContent.js +0 -7
  97. package/cjs/components/Drawer/ui/DrawerContent/DrawerContent.js.map +1 -1
  98. package/cjs/components/Drawer/ui/DrawerFooter/DrawerFooter.js +0 -7
  99. package/cjs/components/Drawer/ui/DrawerFooter/DrawerFooter.js.map +1 -1
  100. package/cjs/components/Drawer/ui/DrawerHeader/DrawerHeader.js +0 -3
  101. package/cjs/components/Drawer/ui/DrawerHeader/DrawerHeader.js.map +1 -1
  102. package/cjs/components/Dropdown/Dropdown.js +3 -10
  103. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  104. package/cjs/components/Dropdown/Dropdown.styles.js +2 -3
  105. package/cjs/components/Dropdown/Dropdown.styles.js.map +1 -1
  106. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +1 -9
  107. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  108. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +1 -2
  109. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  110. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +0 -2
  111. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js.map +1 -1
  112. package/cjs/components/Dropdown/ui/DropdownOld/Dropdown.styles.js +0 -1
  113. package/cjs/components/Dropdown/ui/DropdownOld/Dropdown.styles.js.map +1 -1
  114. package/cjs/components/Editable/Editable.js +3 -4
  115. package/cjs/components/Editable/Editable.js.map +1 -1
  116. package/cjs/components/Editable/utils/clearSelection.js +0 -2
  117. package/cjs/components/Editable/utils/clearSelection.js.map +1 -1
  118. package/cjs/components/Editable/utils/selectText.js +0 -2
  119. package/cjs/components/Editable/utils/selectText.js.map +1 -1
  120. package/cjs/components/EmptyState/EmptyState.styles.js +1 -2
  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 +0 -8
  124. package/cjs/components/IconButton/IconButton.styles.js.map +1 -1
  125. package/cjs/components/Modal/Modal.js +6 -8
  126. package/cjs/components/Modal/Modal.js.map +1 -1
  127. package/cjs/components/Modal/hooks/useModal.js +0 -4
  128. package/cjs/components/Modal/hooks/useModal.js.map +1 -1
  129. package/cjs/components/Notification/Notification.js +2 -2
  130. package/cjs/components/Notification/Notification.js.map +1 -1
  131. package/cjs/components/Notification/Notification.styles.js +2 -3
  132. package/cjs/components/Notification/Notification.styles.js.map +1 -1
  133. package/cjs/components/Notification/Notification.types.js.map +1 -1
  134. package/cjs/components/Notification/NotificationsPortal.js +5 -8
  135. package/cjs/components/Notification/NotificationsPortal.js.map +1 -1
  136. package/cjs/components/Notification/NotificationsProvider.js +1 -3
  137. package/cjs/components/Notification/NotificationsProvider.js.map +1 -1
  138. package/cjs/components/Pagination/Pagination.css +13 -13
  139. package/cjs/components/Pagination/Pagination.styles.js +1 -2
  140. package/cjs/components/Pagination/Pagination.styles.js.map +1 -1
  141. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +13 -13
  142. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -2
  143. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  144. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.js +1 -2
  145. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.js.map +1 -1
  146. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js +1 -2
  147. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js.map +1 -1
  148. package/cjs/components/Popover/Popover.js +1 -1
  149. package/cjs/components/Popup/Popup.js +2 -2
  150. package/cjs/components/Popup/PopupContext.js +1 -1
  151. package/cjs/components/Range/Range.styles.js +0 -1
  152. package/cjs/components/Range/Range.styles.js.map +1 -1
  153. package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js +4 -5
  154. package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js.map +1 -1
  155. package/cjs/components/Select/Select.css +13 -13
  156. package/cjs/components/Select/Select.js +11 -12
  157. package/cjs/components/Select/Select.js.map +1 -1
  158. package/cjs/components/Select/Select.styles.js +3 -6
  159. package/cjs/components/Select/Select.styles.js.map +1 -1
  160. package/cjs/components/Select/Select.styles_ei4ic3.css +5 -0
  161. package/cjs/components/Select/Select.tokens.js +17 -1
  162. package/cjs/components/Select/Select.tokens.js.map +1 -1
  163. package/cjs/components/Select/hooks/usePathMaps.js +0 -2
  164. package/cjs/components/Select/hooks/usePathMaps.js.map +1 -1
  165. package/cjs/components/Select/ui/Inner/Inner.css +13 -13
  166. package/cjs/components/Select/ui/Inner/Inner.js +1 -2
  167. package/cjs/components/Select/ui/Inner/Inner.js.map +1 -1
  168. package/cjs/components/Select/ui/Inner/ui/Item/Item.css +13 -13
  169. package/cjs/components/Select/ui/Inner/ui/Item/Item.js +4 -5
  170. package/cjs/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  171. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +11 -12
  172. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  173. package/cjs/components/Select/ui/Inner/ui/Item/{Item.styles_baxa65.css → Item.styles_1gaxu1y.css} +2 -2
  174. package/cjs/components/Select/ui/Target/ui/Button/Button.js +1 -1
  175. package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +1 -3
  176. package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -1
  177. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +2 -2
  178. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -4
  179. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  180. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +1 -2
  181. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js.map +1 -1
  182. package/cjs/components/Select/utils/getButtonLabel.js +0 -2
  183. package/cjs/components/Select/utils/getButtonLabel.js.map +1 -1
  184. package/cjs/components/Sheet/Sheet.js +3 -3
  185. package/cjs/components/Skeleton/LineSkeleton/LineSkeleton.js +2 -4
  186. package/cjs/components/Skeleton/LineSkeleton/LineSkeleton.js.map +1 -1
  187. package/cjs/components/Skeleton/RectSkeleton/RectSkeleton.js +2 -4
  188. package/cjs/components/Skeleton/RectSkeleton/RectSkeleton.js.map +1 -1
  189. package/cjs/components/Slider/Slider.js +0 -8
  190. package/cjs/components/Slider/Slider.js.map +1 -1
  191. package/cjs/components/Slider/components/Double/Double.js +1 -2
  192. package/cjs/components/Slider/components/Double/Double.js.map +1 -1
  193. package/cjs/components/Slider/components/Double/Double.styles.js +0 -1
  194. package/cjs/components/Slider/components/Double/Double.styles.js.map +1 -1
  195. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +0 -3
  196. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js.map +1 -1
  197. package/cjs/components/Slider/components/Single/Single.js +1 -2
  198. package/cjs/components/Slider/components/Single/Single.js.map +1 -1
  199. package/cjs/components/Slider/components/SliderBase/SliderBase.js +1 -1
  200. package/cjs/components/Steps/Steps.js +1 -1
  201. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js +0 -1
  202. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
  203. package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +2 -3
  204. package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js.map +1 -1
  205. package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js +2 -3
  206. package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js.map +1 -1
  207. package/cjs/components/TextArea/TextArea.js +2 -2
  208. package/cjs/components/TextArea/TextArea.styles.js +2 -3
  209. package/cjs/components/TextArea/TextArea.styles.js.map +1 -1
  210. package/cjs/components/TextArea/ui/Hint/Hint.js +1 -2
  211. package/cjs/components/TextArea/ui/Hint/Hint.js.map +1 -1
  212. package/cjs/components/TextField/TextField.js +3 -3
  213. package/cjs/components/TextField/TextField.styles.js +1 -2
  214. package/cjs/components/TextField/TextField.styles.js.map +1 -1
  215. package/cjs/components/TextField/ui/Hint/Hint.js +1 -2
  216. package/cjs/components/TextField/ui/Hint/Hint.js.map +1 -1
  217. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +1 -2
  218. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +1 -1
  219. package/cjs/components/Toast/Toast.styles.js +1 -1
  220. package/cjs/components/Toast/ToastController.js +1 -1
  221. package/cjs/components/Toast/utils.js +1 -2
  222. package/cjs/components/Toast/utils.js.map +1 -1
  223. package/cjs/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.js +1 -1
  224. package/cjs/components/Tooltip/Tooltip.js +2 -3
  225. package/cjs/components/Tooltip/Tooltip.js.map +1 -1
  226. package/cjs/engines/index.js +0 -2
  227. package/cjs/engines/index.js.map +1 -1
  228. package/cjs/hooks/useIsomorphicLayoutEffect.js +0 -1
  229. package/cjs/hooks/useIsomorphicLayoutEffect.js.map +1 -1
  230. package/cjs/index.css +13 -13
  231. package/cjs/index.js +49 -52
  232. package/cjs/index.js.map +1 -1
  233. package/cjs/utils/index.js +0 -5
  234. package/cjs/utils/index.js.map +1 -1
  235. package/emotion/cjs/components/Notification/Notification.js +2 -2
  236. package/emotion/cjs/components/Notification/Notification.template-doc.mdx +7 -15
  237. package/emotion/cjs/components/Notification/NotificationsPortal.js +3 -5
  238. package/emotion/cjs/components/Notification/NotificationsProvider.js +1 -3
  239. package/emotion/cjs/components/Notification/index.js +4 -4
  240. package/emotion/cjs/components/Select/Select.styles.js +5 -5
  241. package/emotion/cjs/components/Select/Select.tokens.js +17 -1
  242. package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +10 -10
  243. package/emotion/cjs/examples/plasma_b2c/components/Notification/Notification.js +3 -5
  244. package/emotion/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +4 -25
  245. package/emotion/cjs/examples/plasma_web/components/Notification/Notification.js +3 -5
  246. package/emotion/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +4 -25
  247. package/emotion/es/components/Notification/Notification.js +1 -1
  248. package/emotion/es/components/Notification/Notification.template-doc.mdx +7 -15
  249. package/emotion/es/components/Notification/NotificationsPortal.js +3 -5
  250. package/emotion/es/components/Notification/NotificationsProvider.js +1 -3
  251. package/emotion/es/components/Notification/index.js +1 -1
  252. package/emotion/es/components/Select/Select.styles.js +5 -5
  253. package/emotion/es/components/Select/Select.tokens.js +17 -1
  254. package/emotion/es/components/Select/ui/Inner/ui/Item/Item.styles.js +10 -10
  255. package/emotion/es/examples/plasma_b2c/components/Notification/Notification.js +4 -6
  256. package/emotion/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +4 -25
  257. package/emotion/es/examples/plasma_web/components/Notification/Notification.js +4 -6
  258. package/emotion/es/examples/plasma_web/components/Notification/Notification.stories.tsx +4 -25
  259. package/emotion/package.json +2 -1
  260. package/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +0 -1
  261. package/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js.map +1 -1
  262. package/es/components/Attach/Attach.js +3 -4
  263. package/es/components/Attach/Attach.js.map +1 -1
  264. package/es/components/Attach/components/AttachButton/AttachButton.js +0 -1
  265. package/es/components/Attach/components/AttachButton/AttachButton.js.map +1 -1
  266. package/es/components/Attach/ui/Button/Button.styles.js +0 -1
  267. package/es/components/Attach/ui/Button/Button.styles.js.map +1 -1
  268. package/es/components/Attach/ui/Cell/Cell.styles.js +0 -2
  269. package/es/components/Attach/ui/Cell/Cell.styles.js.map +1 -1
  270. package/es/components/Attach/ui/IconButton/IconButton.styles.js +0 -1
  271. package/es/components/Attach/ui/IconButton/IconButton.styles.js.map +1 -1
  272. package/es/components/Attach/utils/getFileicon.js +3 -4
  273. package/es/components/Attach/utils/getFileicon.js.map +1 -1
  274. package/es/components/Attach/utils/index.js +0 -3
  275. package/es/components/Attach/utils/index.js.map +1 -1
  276. package/es/components/Autocomplete/Autocomplete.js +5 -6
  277. package/es/components/Autocomplete/Autocomplete.js.map +1 -1
  278. package/es/components/Autocomplete/Autocomplete.styles.js +2 -3
  279. package/es/components/Autocomplete/Autocomplete.styles.js.map +1 -1
  280. package/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -2
  281. package/es/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
  282. package/es/components/Avatar/Avatar.js +2 -3
  283. package/es/components/Avatar/Avatar.js.map +1 -1
  284. package/es/components/Breadcrumbs/Breadcrumbs.styles.js +2 -4
  285. package/es/components/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
  286. package/es/components/Button/Button.styles.js +0 -3
  287. package/es/components/Button/Button.styles.js.map +1 -1
  288. package/es/components/Calendar/CalendarBase/CalendarBase.js +5 -5
  289. package/es/components/Calendar/CalendarDouble/CalendarDouble.js +8 -8
  290. package/es/components/Calendar/hooks/useDays.js +2 -2
  291. package/es/components/Calendar/hooks/useKeyNavigation.js +1 -1
  292. package/es/components/Calendar/hooks/useMonths.js +2 -2
  293. package/es/components/Calendar/hooks/useQuarters.js +2 -2
  294. package/es/components/Calendar/hooks/useYears.js +2 -2
  295. package/es/components/Calendar/ui/CalendarDays/CalendarDays.js +4 -4
  296. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -6
  297. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  298. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +0 -1
  299. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  300. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +4 -4
  301. package/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +4 -4
  302. package/es/components/Calendar/ui/CalendarYears/CalendarYears.js +4 -4
  303. package/es/components/Combobox/ComboboxNew/Combobox.js +11 -12
  304. package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  305. package/es/components/Combobox/ComboboxNew/Combobox.styles.js +2 -4
  306. package/es/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
  307. package/es/components/Combobox/ComboboxNew/hooks/getPathMaps.js +0 -2
  308. package/es/components/Combobox/ComboboxNew/hooks/getPathMaps.js.map +1 -1
  309. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.js +1 -2
  310. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.js.map +1 -1
  311. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +5 -6
  312. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
  313. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +1 -3
  314. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  315. package/es/components/Combobox/ComboboxNew/ui/Target/Target.styles.js +1 -2
  316. package/es/components/Combobox/ComboboxNew/ui/Target/Target.styles.js.map +1 -1
  317. package/es/components/Combobox/ComboboxOld/Combobox.js +4 -10
  318. package/es/components/Combobox/ComboboxOld/Combobox.js.map +1 -1
  319. package/es/components/Combobox/ComboboxOld/Combobox.styles.js +0 -1
  320. package/es/components/Combobox/ComboboxOld/Combobox.styles.js.map +1 -1
  321. package/es/components/Combobox/ComboboxOld/hooks/useFocusController.js +0 -1
  322. package/es/components/Combobox/ComboboxOld/hooks/useFocusController.js.map +1 -1
  323. package/es/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js +1 -2
  324. package/es/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js.map +1 -1
  325. package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js +1 -10
  326. package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js.map +1 -1
  327. package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js +1 -10
  328. package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js.map +1 -1
  329. package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js +1 -10
  330. package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js.map +1 -1
  331. package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js +1 -10
  332. package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js.map +1 -1
  333. package/es/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js +0 -2
  334. package/es/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js.map +1 -1
  335. package/es/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.js +1 -1
  336. package/es/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js +1 -2
  337. package/es/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js.map +1 -1
  338. package/es/components/DatePicker/DatePickerBase.styles.js +1 -7
  339. package/es/components/DatePicker/DatePickerBase.styles.js.map +1 -1
  340. package/es/components/DatePicker/RangeDate/RangeDate.js +1 -1
  341. package/es/components/DatePicker/RangeDate/RangeDate.styles.js +0 -1
  342. package/es/components/DatePicker/RangeDate/RangeDate.styles.js.map +1 -1
  343. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +1 -2
  344. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -1
  345. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +2 -5
  346. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js.map +1 -1
  347. package/es/components/DatePicker/SingleDate/SingleDate.styles.js +0 -1
  348. package/es/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
  349. package/es/components/Drawer/Drawer.js +5 -10
  350. package/es/components/Drawer/Drawer.js.map +1 -1
  351. package/es/components/Drawer/Drawer.styles.js +0 -4
  352. package/es/components/Drawer/Drawer.styles.js.map +1 -1
  353. package/es/components/Drawer/hooks/useDrawer.js +0 -4
  354. package/es/components/Drawer/hooks/useDrawer.js.map +1 -1
  355. package/es/components/Drawer/ui/DrawerContent/DrawerContent.js +0 -7
  356. package/es/components/Drawer/ui/DrawerContent/DrawerContent.js.map +1 -1
  357. package/es/components/Drawer/ui/DrawerFooter/DrawerFooter.js +0 -7
  358. package/es/components/Drawer/ui/DrawerFooter/DrawerFooter.js.map +1 -1
  359. package/es/components/Drawer/ui/DrawerHeader/DrawerHeader.js +0 -3
  360. package/es/components/Drawer/ui/DrawerHeader/DrawerHeader.js.map +1 -1
  361. package/es/components/Dropdown/Dropdown.js +3 -10
  362. package/es/components/Dropdown/Dropdown.js.map +1 -1
  363. package/es/components/Dropdown/Dropdown.styles.js +2 -3
  364. package/es/components/Dropdown/Dropdown.styles.js.map +1 -1
  365. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +1 -9
  366. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  367. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +1 -2
  368. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  369. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +0 -2
  370. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js.map +1 -1
  371. package/es/components/Dropdown/ui/DropdownOld/Dropdown.styles.js +0 -1
  372. package/es/components/Dropdown/ui/DropdownOld/Dropdown.styles.js.map +1 -1
  373. package/es/components/Editable/Editable.js +3 -4
  374. package/es/components/Editable/Editable.js.map +1 -1
  375. package/es/components/Editable/utils/clearSelection.js +0 -2
  376. package/es/components/Editable/utils/clearSelection.js.map +1 -1
  377. package/es/components/Editable/utils/selectText.js +0 -2
  378. package/es/components/Editable/utils/selectText.js.map +1 -1
  379. package/es/components/EmptyState/EmptyState.styles.js +1 -2
  380. package/es/components/EmptyState/EmptyState.styles.js.map +1 -1
  381. package/es/components/IconButton/IconButton.js +1 -1
  382. package/es/components/IconButton/IconButton.styles.js +0 -8
  383. package/es/components/IconButton/IconButton.styles.js.map +1 -1
  384. package/es/components/Modal/Modal.js +6 -8
  385. package/es/components/Modal/Modal.js.map +1 -1
  386. package/es/components/Modal/hooks/useModal.js +0 -4
  387. package/es/components/Modal/hooks/useModal.js.map +1 -1
  388. package/es/components/Notification/Notification.js +2 -2
  389. package/es/components/Notification/Notification.js.map +1 -1
  390. package/es/components/Notification/Notification.styles.js +2 -3
  391. package/es/components/Notification/Notification.styles.js.map +1 -1
  392. package/es/components/Notification/Notification.types.js.map +1 -1
  393. package/es/components/Notification/NotificationsPortal.js +5 -8
  394. package/es/components/Notification/NotificationsPortal.js.map +1 -1
  395. package/es/components/Notification/NotificationsProvider.js +1 -3
  396. package/es/components/Notification/NotificationsProvider.js.map +1 -1
  397. package/es/components/Pagination/Pagination.css +13 -13
  398. package/es/components/Pagination/Pagination.styles.js +1 -2
  399. package/es/components/Pagination/Pagination.styles.js.map +1 -1
  400. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +13 -13
  401. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -2
  402. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  403. package/es/components/Panel/ui/PanelHeader/PanelHeader.js +1 -2
  404. package/es/components/Panel/ui/PanelHeader/PanelHeader.js.map +1 -1
  405. package/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js +1 -2
  406. package/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js.map +1 -1
  407. package/es/components/Popover/Popover.js +1 -1
  408. package/es/components/Popup/Popup.js +2 -2
  409. package/es/components/Popup/PopupContext.js +1 -1
  410. package/es/components/Range/Range.styles.js +0 -1
  411. package/es/components/Range/Range.styles.js.map +1 -1
  412. package/es/components/Segment/ui/SegmentGroup/SegmentGroup.js +4 -5
  413. package/es/components/Segment/ui/SegmentGroup/SegmentGroup.js.map +1 -1
  414. package/es/components/Select/Select.css +13 -13
  415. package/es/components/Select/Select.js +11 -12
  416. package/es/components/Select/Select.js.map +1 -1
  417. package/es/components/Select/Select.styles.js +3 -6
  418. package/es/components/Select/Select.styles.js.map +1 -1
  419. package/es/components/Select/Select.styles_ei4ic3.css +5 -0
  420. package/es/components/Select/Select.tokens.js +17 -1
  421. package/es/components/Select/Select.tokens.js.map +1 -1
  422. package/es/components/Select/hooks/usePathMaps.js +0 -2
  423. package/es/components/Select/hooks/usePathMaps.js.map +1 -1
  424. package/es/components/Select/ui/Inner/Inner.css +13 -13
  425. package/es/components/Select/ui/Inner/Inner.js +1 -2
  426. package/es/components/Select/ui/Inner/Inner.js.map +1 -1
  427. package/es/components/Select/ui/Inner/ui/Item/Item.css +13 -13
  428. package/es/components/Select/ui/Inner/ui/Item/Item.js +4 -5
  429. package/es/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  430. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js +11 -12
  431. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  432. package/es/components/Select/ui/Inner/ui/Item/{Item.styles_baxa65.css → Item.styles_1gaxu1y.css} +2 -2
  433. package/es/components/Select/ui/Target/ui/Button/Button.js +1 -1
  434. package/es/components/Select/ui/Target/ui/Button/Button.styles.js +1 -3
  435. package/es/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -1
  436. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +2 -2
  437. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -4
  438. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  439. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +1 -2
  440. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js.map +1 -1
  441. package/es/components/Select/utils/getButtonLabel.js +0 -2
  442. package/es/components/Select/utils/getButtonLabel.js.map +1 -1
  443. package/es/components/Sheet/Sheet.js +3 -3
  444. package/es/components/Skeleton/LineSkeleton/LineSkeleton.js +2 -4
  445. package/es/components/Skeleton/LineSkeleton/LineSkeleton.js.map +1 -1
  446. package/es/components/Skeleton/RectSkeleton/RectSkeleton.js +2 -4
  447. package/es/components/Skeleton/RectSkeleton/RectSkeleton.js.map +1 -1
  448. package/es/components/Slider/Slider.js +0 -8
  449. package/es/components/Slider/Slider.js.map +1 -1
  450. package/es/components/Slider/components/Double/Double.js +1 -2
  451. package/es/components/Slider/components/Double/Double.js.map +1 -1
  452. package/es/components/Slider/components/Double/Double.styles.js +0 -1
  453. package/es/components/Slider/components/Double/Double.styles.js.map +1 -1
  454. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +0 -3
  455. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js.map +1 -1
  456. package/es/components/Slider/components/Single/Single.js +1 -2
  457. package/es/components/Slider/components/Single/Single.js.map +1 -1
  458. package/es/components/Slider/components/SliderBase/SliderBase.js +1 -1
  459. package/es/components/Steps/Steps.js +1 -1
  460. package/es/components/Steps/ui/StepItem/StepItem.styles.js +0 -1
  461. package/es/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
  462. package/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +2 -3
  463. package/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js.map +1 -1
  464. package/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js +2 -3
  465. package/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js.map +1 -1
  466. package/es/components/TextArea/TextArea.js +2 -2
  467. package/es/components/TextArea/TextArea.styles.js +2 -3
  468. package/es/components/TextArea/TextArea.styles.js.map +1 -1
  469. package/es/components/TextArea/ui/Hint/Hint.js +1 -2
  470. package/es/components/TextArea/ui/Hint/Hint.js.map +1 -1
  471. package/es/components/TextField/TextField.js +3 -3
  472. package/es/components/TextField/TextField.styles.js +1 -2
  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 +13 -13
  490. package/es/index.js +22 -25
  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/Notification/Notification.js +2 -2
  496. package/styled-components/cjs/components/Notification/Notification.template-doc.mdx +7 -15
  497. package/styled-components/cjs/components/Notification/NotificationsPortal.js +2 -4
  498. package/styled-components/cjs/components/Notification/NotificationsProvider.js +1 -3
  499. package/styled-components/cjs/components/Notification/index.js +4 -4
  500. package/styled-components/cjs/components/Select/Select.styles.js +2 -2
  501. package/styled-components/cjs/components/Select/Select.tokens.js +17 -1
  502. package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +3 -3
  503. package/styled-components/cjs/examples/plasma_b2c/components/Notification/Notification.js +3 -5
  504. package/styled-components/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +4 -25
  505. package/styled-components/cjs/examples/plasma_web/components/Notification/Notification.js +3 -5
  506. package/styled-components/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +4 -25
  507. package/styled-components/es/components/Notification/Notification.js +1 -1
  508. package/styled-components/es/components/Notification/Notification.template-doc.mdx +7 -15
  509. package/styled-components/es/components/Notification/NotificationsPortal.js +2 -4
  510. package/styled-components/es/components/Notification/NotificationsProvider.js +1 -3
  511. package/styled-components/es/components/Notification/index.js +1 -1
  512. package/styled-components/es/components/Select/Select.styles.js +2 -2
  513. package/styled-components/es/components/Select/Select.tokens.js +17 -1
  514. package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.styles.js +3 -3
  515. package/styled-components/es/examples/plasma_b2c/components/Notification/Notification.js +4 -6
  516. package/styled-components/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +4 -25
  517. package/styled-components/es/examples/plasma_web/components/Notification/Notification.js +4 -6
  518. package/styled-components/es/examples/plasma_web/components/Notification/Notification.stories.tsx +4 -25
  519. package/styled-components/package.json +2 -1
  520. package/types/components/Notification/Notification.d.ts +3 -3
  521. package/types/components/Notification/Notification.d.ts.map +1 -1
  522. package/types/components/Notification/Notification.types.d.ts +5 -11
  523. package/types/components/Notification/Notification.types.d.ts.map +1 -1
  524. package/types/components/Notification/NotificationsProvider.d.ts +3 -4
  525. package/types/components/Notification/NotificationsProvider.d.ts.map +1 -1
  526. package/types/components/Notification/index.d.ts +2 -2
  527. package/types/components/Notification/index.d.ts.map +1 -1
  528. package/types/components/Select/Select.tokens.d.ts +16 -0
  529. package/types/components/Select/Select.tokens.d.ts.map +1 -1
  530. package/types/examples/plasma_b2c/components/Notification/Notification.d.ts +2 -4
  531. package/types/examples/plasma_b2c/components/Notification/Notification.d.ts.map +1 -1
  532. package/types/examples/plasma_web/components/Notification/Notification.d.ts +13 -4
  533. package/types/examples/plasma_web/components/Notification/Notification.d.ts.map +1 -1
  534. package/cjs/components/Select/Select.styles_1nzals0.css +0 -5
  535. package/es/components/Select/Select.styles_1nzals0.css +0 -5
@@ -37,7 +37,7 @@ var Ul = exports.Ul = /*#__PURE__*/_styledComponents["default"].ul.withConfig({
37
37
  var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)([".", ",.", "{display:block;}"], _Popover.popoverClasses.wrapper, _Popover.popoverClasses.target);
38
38
  var OuterLabel = exports.OuterLabel = /*#__PURE__*/_styledComponents["default"].label.withConfig({
39
39
  componentId: "plasma-new-hope__sc-le54jv-2"
40
- })(["display:block;margin-bottom:var(", ");color:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");"], _Select.tokens.labelOffset, _Select.constants.textfieldOuterLabelColor, _Select.tokens.fontFamily, _Select.tokens.fontSize, _Select.tokens.fontStyle, _Select.tokens.fontWeight, _Select.tokens.fontLetterSpacing, _Select.tokens.fontLineHeight);
40
+ })(["display:block;margin-bottom:var(", ");color:var(", ");font-family:var(", ",var(", "));font-size:var(", ",var(", "));font-style:var(", ",var(", "));font-weight:var(", ",var(", "));letter-spacing:var(", ",var(", "));line-height:var(", ",var(", "));"], _Select.tokens.labelOffset, _Select.constants.textfieldOuterLabelColor, _Select.tokens.labelFontFamily, _Select.tokens.fontFamily, _Select.tokens.labelFontSize, _Select.tokens.fontSize, _Select.tokens.labelFontStyle, _Select.tokens.fontStyle, _Select.tokens.labelFontWeight, _Select.tokens.fontWeight, _Select.tokens.labelFontLetterSpacing, _Select.tokens.fontLetterSpacing, _Select.tokens.labelFontLineHeight, _Select.tokens.fontLineHeight);
41
41
  var HelperText = exports.HelperText = /*#__PURE__*/_styledComponents["default"].div.withConfig({
42
42
  componentId: "plasma-new-hope__sc-le54jv-3"
43
- })(["margin-top:var(", ");color:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");"], _Select.tokens.helperTextOffset, _Select.tokens.helperTextColor, _Select.constants.fontFamily, _Select.constants.fontSize, _Select.constants.fontStyle, _Select.constants.fontWeight, _Select.constants.fontLetterSpacing, _Select.constants.fontLineHeight);
43
+ })(["margin-top:var(", ");color:var(", ");font-family:var(", ",var(", "));font-size:var(", ",var(", "));font-style:var(", ",var(", "));font-weight:var(", ",var(", "));letter-spacing:var(", ",var(", "));line-height:var(", ",var(", "));"], _Select.tokens.helperTextOffset, _Select.tokens.helperTextColor, _Select.tokens.helperTextFontFamily, _Select.constants.fontFamily, _Select.tokens.helperTextFontSize, _Select.constants.fontSize, _Select.tokens.helperTextFontStyle, _Select.constants.fontStyle, _Select.tokens.helperTextFontWeight, _Select.constants.fontWeight, _Select.tokens.helperTextFontLetterSpacing, _Select.constants.fontLetterSpacing, _Select.tokens.helperTextFontLineHeight, _Select.constants.fontLineHeight);
@@ -26,6 +26,18 @@ var tokens = exports.tokens = {
26
26
  fontWeight: '--plasma-select-font-weight',
27
27
  fontLetterSpacing: '--plasma-select-font-letter-spacing',
28
28
  fontLineHeight: '--plasma-select-font-line-height',
29
+ labelFontFamily: '--plasma-select-label-font-family',
30
+ labelFontSize: '--plasma-select-label-font-size',
31
+ labelFontStyle: '--plasma-select-label-font-style',
32
+ labelFontWeight: '--plasma-select-label-font-weight',
33
+ labelFontLetterSpacing: '--plasma-select-label-font-letter-spacing',
34
+ labelFontLineHeight: '--plasma-select-label-font-line-height',
35
+ helperTextFontFamily: '--plasma-select-helper-text-font-family',
36
+ helperTextFontSize: '--plasma-select-helper-text-font-size',
37
+ helperTextFontStyle: '--plasma-select-helper-text-font-style',
38
+ helperTextFontWeight: '--plasma-select-helper-text-font-weight',
39
+ helperTextFontLetterSpacing: '--plasma-select-helper-text-font-letter-spacing',
40
+ helperTextFontLineHeight: '--plasma-select-helper-text-font-line-height',
29
41
  itemHeight: '--plasma-select-item-height',
30
42
  itemBorderRadius: '--plasma-select-item-border-radius',
31
43
  itemPadding: '--plasma-select-item-padding',
@@ -33,6 +45,8 @@ var tokens = exports.tokens = {
33
45
  itemIconSize: '--plasma-select-item-icon-size',
34
46
  itemIconSizeTight: '--plasma-select-item-icon-size-tight',
35
47
  itemIconMargin: '--plasma-select-item-icon-margin',
48
+ itemBackground: '--plasma-select-item-background',
49
+ itemBackgroundHover: '--plasma-select-item-background-hover',
36
50
  checkboxTriggerSize: '--plasma-select-checkbox-trigger-size',
37
51
  checkboxTriggerSizeTight: '--plasma-select-checkbox-trigger-size-tight',
38
52
  checkboxTriggerBorderRadius: '--plasma-select-checkbox-trigger-border-radius',
@@ -84,7 +98,9 @@ var tokens = exports.tokens = {
84
98
  helperTextColor: '--plasma-select-helper-text-color',
85
99
  helperTextOffset: '--plasma-select-helper-text-offset',
86
100
  spinnerSize: '--plasma-select-spinner-size',
87
- spinnerSizeTight: '--plasma-select-spinner-size-tight'
101
+ spinnerSizeTight: '--plasma-select-spinner-size-tight',
102
+ disclosureIconColor: '--plasma-select-disclosure-icon-color',
103
+ disclosureIconColorHover: '--plasma-select-disclosure-icon-color-hover'
88
104
  };
89
105
  var constants = exports.constants = {
90
106
  focusColor: '--surface-accent',
@@ -29,7 +29,7 @@ var StyledContentRight = exports.StyledContentRight = /*#__PURE__*/_styledCompon
29
29
  })(["margin-left:auto;display:inline-flex;"]);
30
30
  var DisclosureIconWrapper = exports.DisclosureIconWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
31
31
  componentId: "plasma-new-hope__sc-fr2h0y-4"
32
- })(["line-height:0;color:var(", ");&:hover{color:var(", ");}"], _Select.constants.disclosureIconColor, _Select.constants.disclosureIconColorHover);
32
+ })(["line-height:0;color:var(", ",var(", "));&:hover{color:var(", ",var(", "));}"], _Select.tokens.disclosureIconColor, _Select.constants.disclosureIconColor, _Select.tokens.disclosureIconColorHover, _Select.constants.disclosureIconColorHover);
33
33
  var IconWrapper = exports.IconWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
34
34
  componentId: "plasma-new-hope__sc-fr2h0y-5"
35
35
  })(["display:flex;align-items:center;justify-content:center;width:", ";height:", ";margin:var(", ");line-height:0;color:var(", ");& .", "{--plasma-checkbox-trigger-size:", ";--plasma-checkbox-trigger-border-radius:", ";}"], function (_ref) {
@@ -53,10 +53,10 @@ var StyledText = exports.StyledText = /*#__PURE__*/_styledComponents["default"].
53
53
  });
54
54
  var Wrapper = exports.Wrapper = /*#__PURE__*/_styledComponents["default"].li.withConfig({
55
55
  componentId: "plasma-new-hope__sc-fr2h0y-7"
56
- })(["display:flex;align-items:center;min-height:var(", ");margin:0;box-sizing:content-box;padding:", ";font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");background:var(", ");color:var(--text-primary);border-radius:var(", ");user-select:none;&:hover:not(.", "){cursor:pointer;background:var(", ");}&.", "{background:var(", ");}&.", "{opacity:", ";cursor:not-allowed;}:focus{outline:none;}", ";"], _Select.tokens.itemHeight, function (_ref6) {
56
+ })(["display:flex;align-items:center;min-height:var(", ");margin:0;box-sizing:content-box;padding:", ";font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");background:var(", ",var(", "));color:var(--text-primary);border-radius:var(", ");user-select:none;&:hover:not(.", "){cursor:pointer;background:var(", ",var(", "));}&.", "{background:var(", ",var(", "));}&.", "{opacity:", ";cursor:not-allowed;}:focus{outline:none;}", ";"], _Select.tokens.itemHeight, function (_ref6) {
57
57
  var variant = _ref6.variant;
58
58
  return "var(".concat(variant === 'tight' ? _Select.tokens.itemPaddingTight : _Select.tokens.itemPadding, ")");
59
- }, _Select.tokens.fontFamily, _Select.tokens.fontSize, _Select.tokens.fontStyle, _Select.tokens.fontWeight, _Select.tokens.fontLetterSpacing, _Select.tokens.fontLineHeight, _Select.constants.itemBackground, _Select.tokens.itemBorderRadius, _Select.classes.dropdownItemIsDisabled, _Select.constants.itemBackgroundHover, _Select.classes.dropdownItemIsActive, _Select.constants.itemBackgroundHover, _Select.classes.dropdownItemIsDisabled, _Select.constants.opacity, /*#__PURE__*/(0, _mixins.addFocus)({
59
+ }, _Select.tokens.fontFamily, _Select.tokens.fontSize, _Select.tokens.fontStyle, _Select.tokens.fontWeight, _Select.tokens.fontLetterSpacing, _Select.tokens.fontLineHeight, _Select.tokens.itemBackground, _Select.constants.itemBackground, _Select.tokens.itemBorderRadius, _Select.classes.dropdownItemIsDisabled, _Select.tokens.itemBackgroundHover, _Select.constants.itemBackgroundHover, _Select.classes.dropdownItemIsActive, _Select.tokens.itemBackgroundHover, _Select.constants.itemBackgroundHover, _Select.classes.dropdownItemIsDisabled, _Select.constants.opacity, /*#__PURE__*/(0, _mixins.addFocus)({
60
60
  outlineSize: '0.0625rem',
61
61
  outlineOffset: '0',
62
62
  outlineColor: /*#__PURE__*/"var(".concat(_Select.constants.focusColor, ")"),
@@ -16,16 +16,14 @@ var _engines = /*#__PURE__*/require("../../../../engines");
16
16
  var _Notification2 = /*#__PURE__*/require("./Notification.config");
17
17
  var _Modal = /*#__PURE__*/require("../../../../components/Modal");
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
- var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Notification.notificationConfig, _Notification2.config);
19
+ var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Notification.noticationConfig, _Notification2.config);
20
20
  var Notification = exports.Notification = /*#__PURE__*/(0, _engines.component)(mergedConfig);
21
21
  var NotificationsProvider = exports.NotificationsProvider = function NotificationsProvider(_ref) {
22
22
  var children = _ref.children,
23
23
  _ref$frame = _ref.frame,
24
- frame = _ref$frame === void 0 ? 'theme-root' : _ref$frame,
25
- placement = _ref.placement;
24
+ frame = _ref$frame === void 0 ? 'theme-root' : _ref$frame;
26
25
  return /*#__PURE__*/_react["default"].createElement(_Notification.NotificationsProvider, {
27
26
  config: mergedConfig,
28
- frame: frame,
29
- placement: placement
27
+ frame: frame
30
28
  }, children);
31
29
  };
@@ -5,7 +5,6 @@ import type { StoryObj, Meta } from '@storybook/react';
5
5
  import { Button } from '../Button/Button';
6
6
  import { Modal } from '../Modal/Modal';
7
7
  import {
8
- NotificationPlacement,
9
8
  NotificationIconPlacement,
10
9
  NotificationLayout,
11
10
  addNotification,
@@ -21,7 +20,6 @@ const titles = ['Выполнено', 'Внимание', 'Ошибка'];
21
20
  const texts = ['SSH ключ успешно скопирован', 'Нельзя скопировать SSH ключ', 'Не удалось скопировать SSH ключ'];
22
21
  const size = ['xs', 'xxs'];
23
22
  const iconPlacement = ['top', 'left'];
24
- const notificationsPlacements = ['bottom-right', 'bottom-left'];
25
23
 
26
24
  const longText = `JavaScript frameworks are an essential part of modern front-end web development,
27
25
  providing developers with proven tools for building scalable, interactive web applications.
@@ -51,7 +49,6 @@ interface StoryDefaultProps {
51
49
  layout: NotificationLayout;
52
50
  size: 'xs' | 'xxs';
53
51
  iconPlacement: NotificationIconPlacement;
54
- placement?: NotificationPlacement;
55
52
  }
56
53
 
57
54
  const StoryDefault = ({ title, children, iconPlacement, size, layout, showLeftIcon, ...rest }: StoryDefaultProps) => {
@@ -114,10 +111,9 @@ type StoryLiveDemoProps = ComponentProps<typeof Notification> & {
114
111
  layout: NotificationLayout;
115
112
  size: 'xs' | 'xxs';
116
113
  iconPlacement: NotificationIconPlacement;
117
- placement?: NotificationPlacement;
118
114
  };
119
115
 
120
- const StoryLiveDemo = ({ timeout, placement, ...rest }: StoryLiveDemoProps) => {
116
+ const StoryLiveDemo = ({ timeout, ...rest }: StoryLiveDemoProps) => {
121
117
  const count = useRef(0);
122
118
  const handleClick = useCallback(() => {
123
119
  addNotification({ icon: <IconDisclosureRight />, ...rest, ...getNotificationProps(count.current) }, timeout);
@@ -125,7 +121,7 @@ const StoryLiveDemo = ({ timeout, placement, ...rest }: StoryLiveDemoProps) => {
125
121
  }, [count, rest]);
126
122
 
127
123
  return (
128
- <NotificationsProvider placement={placement}>
124
+ <NotificationsProvider>
129
125
  <Button text="Добавить уведомление" onClick={handleClick} />
130
126
  </NotificationsProvider>
131
127
  );
@@ -139,28 +135,20 @@ export const LiveDemo: StoryObj<StoryLiveDemoProps> = {
139
135
  type: 'select',
140
136
  },
141
137
  },
142
- placement: {
143
- options: notificationsPlacements,
144
- control: {
145
- type: 'select',
146
- },
147
- },
148
138
  },
149
139
  args: {
150
140
  timeout: 3000,
151
141
  role: 'alert',
152
142
  layout: 'vertical',
153
- placement: 'bottom-right',
154
143
  },
155
144
  render: (args) => <StoryLiveDemo {...args} />,
156
145
  };
157
146
 
158
147
  type StoryWithModalProps = ComponentProps<typeof Notification> & {
159
148
  timeout: number;
160
- placement?: NotificationPlacement;
161
149
  };
162
150
 
163
- const StoryWithModal = ({ timeout, placement }: StoryWithModalProps) => {
151
+ const StoryWithModal = ({ timeout }: StoryWithModalProps) => {
164
152
  const [isModalOpen, setIsModalOpen] = useState(false);
165
153
  const count = useRef(0);
166
154
  const handleClick = useCallback(() => {
@@ -169,7 +157,7 @@ const StoryWithModal = ({ timeout, placement }: StoryWithModalProps) => {
169
157
  }, [count]);
170
158
 
171
159
  return (
172
- <NotificationsProvider placement={placement}>
160
+ <NotificationsProvider>
173
161
  <PopupProvider>
174
162
  <Button text="Open modal" onClick={() => setIsModalOpen(true)} />
175
163
  <Modal frame="theme-root" opened={isModalOpen} onClose={() => setIsModalOpen(false)}>
@@ -184,15 +172,6 @@ const StoryWithModal = ({ timeout, placement }: StoryWithModalProps) => {
184
172
  export const WithModal: StoryObj<StoryLiveDemoProps> = {
185
173
  args: {
186
174
  timeout: 3500,
187
- placement: 'bottom-right',
188
- },
189
- argTypes: {
190
- placement: {
191
- options: notificationsPlacements,
192
- control: {
193
- type: 'select',
194
- },
195
- },
196
175
  },
197
176
  render: (args) => <StoryWithModal {...args} />,
198
177
  };
@@ -16,16 +16,14 @@ var _engines = /*#__PURE__*/require("../../../../engines");
16
16
  var _Notification2 = /*#__PURE__*/require("./Notification.config");
17
17
  var _Modal = /*#__PURE__*/require("../../../../components/Modal");
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
- var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Notification.notificationConfig, _Notification2.config);
19
+ var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Notification.noticationConfig, _Notification2.config);
20
20
  var Notification = exports.Notification = /*#__PURE__*/(0, _engines.component)(mergedConfig);
21
21
  var NotificationsProvider = exports.NotificationsProvider = function NotificationsProvider(_ref) {
22
22
  var children = _ref.children,
23
23
  _ref$frame = _ref.frame,
24
- frame = _ref$frame === void 0 ? 'theme-root' : _ref$frame,
25
- placement = _ref.placement;
24
+ frame = _ref$frame === void 0 ? 'theme-root' : _ref$frame;
26
25
  return /*#__PURE__*/_react["default"].createElement(_Notification.NotificationsProvider, {
27
26
  config: mergedConfig,
28
- frame: frame,
29
- placement: placement
27
+ frame: frame
30
28
  }, children);
31
29
  };
@@ -5,7 +5,6 @@ import type { StoryObj, Meta } from '@storybook/react';
5
5
  import { Button } from '../Button/Button';
6
6
  import { Modal } from '../Modal/Modal';
7
7
  import {
8
- NotificationPlacement,
9
8
  NotificationIconPlacement,
10
9
  NotificationLayout,
11
10
  addNotification,
@@ -21,7 +20,6 @@ const titles = ['Выполнено', 'Внимание', 'Ошибка'];
21
20
  const texts = ['SSH ключ успешно скопирован', 'Нельзя скопировать SSH ключ', 'Не удалось скопировать SSH ключ'];
22
21
  const size = ['xs', 'xxs'];
23
22
  const iconPlacement = ['top', 'left'];
24
- const notificationsPlacements = ['bottom-right', 'bottom-left'];
25
23
 
26
24
  const longText = `JavaScript frameworks are an essential part of modern front-end web development,
27
25
  providing developers with proven tools for building scalable, interactive web applications.
@@ -51,7 +49,6 @@ interface StoryDefaultProps {
51
49
  layout: NotificationLayout;
52
50
  size: 'xs' | 'xxs';
53
51
  iconPlacement: NotificationIconPlacement;
54
- placement?: NotificationPlacement;
55
52
  }
56
53
 
57
54
  const StoryDefault = ({ title, children, iconPlacement, size, layout, showLeftIcon, ...rest }: StoryDefaultProps) => {
@@ -114,10 +111,9 @@ type StoryLiveDemoProps = ComponentProps<typeof Notification> & {
114
111
  layout: NotificationLayout;
115
112
  size: 'xs' | 'xxs';
116
113
  iconPlacement: NotificationIconPlacement;
117
- placement?: NotificationPlacement;
118
114
  };
119
115
 
120
- const StoryLiveDemo = ({ timeout, placement, ...rest }: StoryLiveDemoProps) => {
116
+ const StoryLiveDemo = ({ timeout, ...rest }: StoryLiveDemoProps) => {
121
117
  const count = useRef(0);
122
118
  const handleClick = useCallback(() => {
123
119
  addNotification({ icon: <IconDisclosureRight />, ...rest, ...getNotificationProps(count.current) }, timeout);
@@ -125,7 +121,7 @@ const StoryLiveDemo = ({ timeout, placement, ...rest }: StoryLiveDemoProps) => {
125
121
  }, [count, rest]);
126
122
 
127
123
  return (
128
- <NotificationsProvider placement={placement}>
124
+ <NotificationsProvider>
129
125
  <Button text="Добавить уведомление" onClick={handleClick} />
130
126
  </NotificationsProvider>
131
127
  );
@@ -139,28 +135,20 @@ export const LiveDemo: StoryObj<StoryLiveDemoProps> = {
139
135
  type: 'select',
140
136
  },
141
137
  },
142
- placement: {
143
- options: notificationsPlacements,
144
- control: {
145
- type: 'select',
146
- },
147
- },
148
138
  },
149
139
  args: {
150
140
  timeout: 3000,
151
141
  role: 'alert',
152
142
  layout: 'vertical',
153
- placement: 'bottom-right',
154
143
  },
155
144
  render: (args) => <StoryLiveDemo {...args} />,
156
145
  };
157
146
 
158
147
  type StoryWithModalProps = ComponentProps<typeof Notification> & {
159
148
  timeout: number;
160
- placement?: NotificationPlacement;
161
149
  };
162
150
 
163
- const StoryWithModal = ({ timeout, placement }: StoryWithModalProps) => {
151
+ const StoryWithModal = ({ timeout }: StoryWithModalProps) => {
164
152
  const [isModalOpen, setIsModalOpen] = useState(false);
165
153
  const count = useRef(0);
166
154
  const handleClick = useCallback(() => {
@@ -169,7 +157,7 @@ const StoryWithModal = ({ timeout, placement }: StoryWithModalProps) => {
169
157
  }, [count]);
170
158
 
171
159
  return (
172
- <NotificationsProvider placement={placement}>
160
+ <NotificationsProvider>
173
161
  <PopupProvider>
174
162
  <Button text="Open modal" onClick={() => setIsModalOpen(true)} />
175
163
  <Modal frame="theme-root" opened={isModalOpen} onClose={() => setIsModalOpen(false)}>
@@ -184,15 +172,6 @@ const StoryWithModal = ({ timeout, placement }: StoryWithModalProps) => {
184
172
  export const WithModal: StoryObj<StoryLiveDemoProps> = {
185
173
  args: {
186
174
  timeout: 3500,
187
- placement: 'bottom-right',
188
- },
189
- argTypes: {
190
- placement: {
191
- options: notificationsPlacements,
192
- control: {
193
- type: 'select',
194
- },
195
- },
196
175
  },
197
176
  render: (args) => <StoryWithModal {...args} />,
198
177
  };
@@ -86,7 +86,7 @@ export var notificationRoot = function notificationRoot(Root) {
86
86
  })))));
87
87
  });
88
88
  };
89
- export var notificationConfig = {
89
+ export var noticationConfig = {
90
90
  name: 'Notification',
91
91
  tag: 'div',
92
92
  layout: notificationRoot,
@@ -10,9 +10,9 @@ import { PropsTable, Description } from '@site/src/components';
10
10
  <PropsTable name="Notification" />
11
11
 
12
12
  ## Использование
13
- Компонент `Notification` может использоваться для создания собственных систем оповещения.
13
+ Компонент `Notification` может использоваться для создания собственных систем оповещения.
14
14
  Вид компонента контролируется свойствами (props).
15
- Текстовая часть оповещения состоит из `title` и `children`.
15
+ Текстовая часть оповещения состоит из `title` и `children`.
16
16
  Слева или сверху от нее, также можно пробросить иконку через свойство `icon`.
17
17
  Также есть часть `actions`, в которой предполагается отображение кнопок для взаимодействия.
18
18
 
@@ -34,32 +34,24 @@ ReactDOM.render(
34
34
  ```
35
35
 
36
36
  ### Вызов уведомления
37
- После подключения `NotificationsProvider` станет возможен вызов функции `addNotification`, который приведет к отображению оповещения.
38
- Функция принимает значения свойств компонента `Notification`, включая необязательное поле `id`. И возвращает сгенерированный или переданный `id`, по которому можно закрыть оповещение через вызов `closeNotification`.
37
+ После подключения `NotificationsProvider` станет возможен вызов функции `addNotification`,который приведет к отображению оповещения.
38
+ Функция принимает значения свойств компонента `Notification`:
39
39
 
40
40
  ```tsx live
41
41
  import React from 'react';
42
- import { Button, ButtonGroup, addNotification, closeNotification, NotificationsProvider } from '@salutejs/{{ package }}';
42
+ import { Button, addNotification, NotificationsProvider } from '@salutejs/{{ package }}';
43
43
 
44
44
  export function App() {
45
- const handleShow = React.useCallback(() => {
45
+ const handleClick = React.useCallback(() => {
46
46
  addNotification({
47
- id: 'incoming-call',
48
47
  title: 'Входящий вызов',
49
48
  children: 'Принять?',
50
49
  }, 1000);
51
50
  }, []);
52
51
 
53
- const handleHide = React.useCallback(() => {
54
- closeNotification('incoming-call');
55
- }, []);
56
-
57
52
  return (
58
53
  <NotificationsProvider>
59
- <ButtonGroup>
60
- <Button text="Показать оповещение" onClick={handleShow} />
61
- <Button text="Скрыть оповещение" onClick={handleHide} />
62
- </ButtonGroup>
54
+ <Button text="Показать оповещение" onClick={handleClick} />
63
55
  </NotificationsProvider>
64
56
  );
65
57
  }
@@ -24,9 +24,7 @@ var StyledPopup = /*#__PURE__*/styled(Popup).withConfig({
24
24
  */
25
25
  export var NotificationsPortal = function NotificationsPortal(_ref) {
26
26
  var config = _ref.config,
27
- frame = _ref.frame,
28
- _ref$placement = _ref.placement,
29
- placement = _ref$placement === void 0 ? 'bottom-right' : _ref$placement;
27
+ frame = _ref.frame;
30
28
  var _useStoreon = useStoreon('notifications'),
31
29
  notifications = _useStoreon.notifications;
32
30
  var Notification = useMemo(function () {
@@ -35,7 +33,7 @@ export var NotificationsPortal = function NotificationsPortal(_ref) {
35
33
  return /*#__PURE__*/React.createElement(PopupProvider, null, notifications.length > 0 && /*#__PURE__*/React.createElement(StyledPopup, {
36
34
  opened: true,
37
35
  frame: frame,
38
- placement: placement,
36
+ placement: "bottom-right",
39
37
  zIndex: "9100"
40
38
  }, /*#__PURE__*/React.createElement(StyledRoot, null, notifications.map(function (_ref2) {
41
39
  var id = _ref2.id,
@@ -5,13 +5,11 @@ import { NotificationsPortal } from './NotificationsPortal';
5
5
  export var NotificationsProvider = function NotificationsProvider(_ref) {
6
6
  var children = _ref.children,
7
7
  config = _ref.config,
8
- frame = _ref.frame,
9
- placement = _ref.placement;
8
+ frame = _ref.frame;
10
9
  return /*#__PURE__*/React.createElement(StoreContext.Provider, {
11
10
  value: NotificationsStore
12
11
  }, children, /*#__PURE__*/React.createElement(NotificationsPortal, {
13
12
  frame: frame,
14
- placement: placement,
15
13
  config: config
16
14
  }));
17
15
  };
@@ -1,4 +1,4 @@
1
1
  export { NotificationsProvider } from './NotificationsProvider';
2
- export { notificationRoot, notificationConfig } from './Notification';
2
+ export { notificationRoot, noticationConfig } from './Notification';
3
3
  export { addNotification, closeNotification } from './NotificationsStore';
4
4
  export { classes as notificationClasses, tokens as notificationTokens } from './Notification.tokens';
@@ -29,7 +29,7 @@ export var Ul = /*#__PURE__*/styled.ul.withConfig({
29
29
  export var base = /*#__PURE__*/css([".", ",.", "{display:block;}"], popoverClasses.wrapper, popoverClasses.target);
30
30
  export var OuterLabel = /*#__PURE__*/styled.label.withConfig({
31
31
  componentId: "plasma-new-hope__sc-le54jv-2"
32
- })(["display:block;margin-bottom:var(", ");color:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");"], tokens.labelOffset, constants.textfieldOuterLabelColor, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.fontLetterSpacing, tokens.fontLineHeight);
32
+ })(["display:block;margin-bottom:var(", ");color:var(", ");font-family:var(", ",var(", "));font-size:var(", ",var(", "));font-style:var(", ",var(", "));font-weight:var(", ",var(", "));letter-spacing:var(", ",var(", "));line-height:var(", ",var(", "));"], tokens.labelOffset, constants.textfieldOuterLabelColor, tokens.labelFontFamily, tokens.fontFamily, tokens.labelFontSize, tokens.fontSize, tokens.labelFontStyle, tokens.fontStyle, tokens.labelFontWeight, tokens.fontWeight, tokens.labelFontLetterSpacing, tokens.fontLetterSpacing, tokens.labelFontLineHeight, tokens.fontLineHeight);
33
33
  export var HelperText = /*#__PURE__*/styled.div.withConfig({
34
34
  componentId: "plasma-new-hope__sc-le54jv-3"
35
- })(["margin-top:var(", ");color:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");"], tokens.helperTextOffset, tokens.helperTextColor, constants.fontFamily, constants.fontSize, constants.fontStyle, constants.fontWeight, constants.fontLetterSpacing, constants.fontLineHeight);
35
+ })(["margin-top:var(", ");color:var(", ");font-family:var(", ",var(", "));font-size:var(", ",var(", "));font-style:var(", ",var(", "));font-weight:var(", ",var(", "));letter-spacing:var(", ",var(", "));line-height:var(", ",var(", "));"], tokens.helperTextOffset, tokens.helperTextColor, tokens.helperTextFontFamily, constants.fontFamily, tokens.helperTextFontSize, constants.fontSize, tokens.helperTextFontStyle, constants.fontStyle, tokens.helperTextFontWeight, constants.fontWeight, tokens.helperTextFontLetterSpacing, constants.fontLetterSpacing, tokens.helperTextFontLineHeight, constants.fontLineHeight);
@@ -20,6 +20,18 @@ export var tokens = {
20
20
  fontWeight: '--plasma-select-font-weight',
21
21
  fontLetterSpacing: '--plasma-select-font-letter-spacing',
22
22
  fontLineHeight: '--plasma-select-font-line-height',
23
+ labelFontFamily: '--plasma-select-label-font-family',
24
+ labelFontSize: '--plasma-select-label-font-size',
25
+ labelFontStyle: '--plasma-select-label-font-style',
26
+ labelFontWeight: '--plasma-select-label-font-weight',
27
+ labelFontLetterSpacing: '--plasma-select-label-font-letter-spacing',
28
+ labelFontLineHeight: '--plasma-select-label-font-line-height',
29
+ helperTextFontFamily: '--plasma-select-helper-text-font-family',
30
+ helperTextFontSize: '--plasma-select-helper-text-font-size',
31
+ helperTextFontStyle: '--plasma-select-helper-text-font-style',
32
+ helperTextFontWeight: '--plasma-select-helper-text-font-weight',
33
+ helperTextFontLetterSpacing: '--plasma-select-helper-text-font-letter-spacing',
34
+ helperTextFontLineHeight: '--plasma-select-helper-text-font-line-height',
23
35
  itemHeight: '--plasma-select-item-height',
24
36
  itemBorderRadius: '--plasma-select-item-border-radius',
25
37
  itemPadding: '--plasma-select-item-padding',
@@ -27,6 +39,8 @@ export var tokens = {
27
39
  itemIconSize: '--plasma-select-item-icon-size',
28
40
  itemIconSizeTight: '--plasma-select-item-icon-size-tight',
29
41
  itemIconMargin: '--plasma-select-item-icon-margin',
42
+ itemBackground: '--plasma-select-item-background',
43
+ itemBackgroundHover: '--plasma-select-item-background-hover',
30
44
  checkboxTriggerSize: '--plasma-select-checkbox-trigger-size',
31
45
  checkboxTriggerSizeTight: '--plasma-select-checkbox-trigger-size-tight',
32
46
  checkboxTriggerBorderRadius: '--plasma-select-checkbox-trigger-border-radius',
@@ -78,7 +92,9 @@ export var tokens = {
78
92
  helperTextColor: '--plasma-select-helper-text-color',
79
93
  helperTextOffset: '--plasma-select-helper-text-offset',
80
94
  spinnerSize: '--plasma-select-spinner-size',
81
- spinnerSizeTight: '--plasma-select-spinner-size-tight'
95
+ spinnerSizeTight: '--plasma-select-spinner-size-tight',
96
+ disclosureIconColor: '--plasma-select-disclosure-icon-color',
97
+ disclosureIconColorHover: '--plasma-select-disclosure-icon-color-hover'
82
98
  };
83
99
  export var constants = {
84
100
  focusColor: '--surface-accent',
@@ -22,7 +22,7 @@ export var StyledContentRight = /*#__PURE__*/styled.div.withConfig({
22
22
  })(["margin-left:auto;display:inline-flex;"]);
23
23
  export var DisclosureIconWrapper = /*#__PURE__*/styled.div.withConfig({
24
24
  componentId: "plasma-new-hope__sc-fr2h0y-4"
25
- })(["line-height:0;color:var(", ");&:hover{color:var(", ");}"], constants.disclosureIconColor, constants.disclosureIconColorHover);
25
+ })(["line-height:0;color:var(", ",var(", "));&:hover{color:var(", ",var(", "));}"], tokens.disclosureIconColor, constants.disclosureIconColor, tokens.disclosureIconColorHover, constants.disclosureIconColorHover);
26
26
  export var IconWrapper = /*#__PURE__*/styled.div.withConfig({
27
27
  componentId: "plasma-new-hope__sc-fr2h0y-5"
28
28
  })(["display:flex;align-items:center;justify-content:center;width:", ";height:", ";margin:var(", ");line-height:0;color:var(", ");& .", "{--plasma-checkbox-trigger-size:", ";--plasma-checkbox-trigger-border-radius:", ";}"], function (_ref) {
@@ -46,10 +46,10 @@ export var StyledText = /*#__PURE__*/styled.div.withConfig({
46
46
  });
47
47
  export var Wrapper = /*#__PURE__*/styled.li.withConfig({
48
48
  componentId: "plasma-new-hope__sc-fr2h0y-7"
49
- })(["display:flex;align-items:center;min-height:var(", ");margin:0;box-sizing:content-box;padding:", ";font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");background:var(", ");color:var(--text-primary);border-radius:var(", ");user-select:none;&:hover:not(.", "){cursor:pointer;background:var(", ");}&.", "{background:var(", ");}&.", "{opacity:", ";cursor:not-allowed;}:focus{outline:none;}", ";"], tokens.itemHeight, function (_ref6) {
49
+ })(["display:flex;align-items:center;min-height:var(", ");margin:0;box-sizing:content-box;padding:", ";font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");background:var(", ",var(", "));color:var(--text-primary);border-radius:var(", ");user-select:none;&:hover:not(.", "){cursor:pointer;background:var(", ",var(", "));}&.", "{background:var(", ",var(", "));}&.", "{opacity:", ";cursor:not-allowed;}:focus{outline:none;}", ";"], tokens.itemHeight, function (_ref6) {
50
50
  var variant = _ref6.variant;
51
51
  return "var(".concat(variant === 'tight' ? tokens.itemPaddingTight : tokens.itemPadding, ")");
52
- }, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.fontLetterSpacing, tokens.fontLineHeight, constants.itemBackground, tokens.itemBorderRadius, classes.dropdownItemIsDisabled, constants.itemBackgroundHover, classes.dropdownItemIsActive, constants.itemBackgroundHover, classes.dropdownItemIsDisabled, constants.opacity, /*#__PURE__*/addFocus({
52
+ }, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.fontLetterSpacing, tokens.fontLineHeight, tokens.itemBackground, constants.itemBackground, tokens.itemBorderRadius, classes.dropdownItemIsDisabled, tokens.itemBackgroundHover, constants.itemBackgroundHover, classes.dropdownItemIsActive, tokens.itemBackgroundHover, constants.itemBackgroundHover, classes.dropdownItemIsDisabled, constants.opacity, /*#__PURE__*/addFocus({
53
53
  outlineSize: '0.0625rem',
54
54
  outlineOffset: '0',
55
55
  outlineColor: /*#__PURE__*/"var(".concat(constants.focusColor, ")"),
@@ -1,18 +1,16 @@
1
1
  import React from 'react';
2
- import { notificationConfig, NotificationsProvider as Provider } from '../../../../components/Notification';
2
+ import { noticationConfig, NotificationsProvider as Provider } from '../../../../components/Notification';
3
3
  import { component, mergeConfig } from '../../../../engines';
4
4
  import { config } from './Notification.config';
5
5
  export { modalClasses } from '../../../../components/Modal';
6
- var mergedConfig = /*#__PURE__*/mergeConfig(notificationConfig, config);
6
+ var mergedConfig = /*#__PURE__*/mergeConfig(noticationConfig, config);
7
7
  export var Notification = /*#__PURE__*/component(mergedConfig);
8
8
  export var NotificationsProvider = function NotificationsProvider(_ref) {
9
9
  var children = _ref.children,
10
10
  _ref$frame = _ref.frame,
11
- frame = _ref$frame === void 0 ? 'theme-root' : _ref$frame,
12
- placement = _ref.placement;
11
+ frame = _ref$frame === void 0 ? 'theme-root' : _ref$frame;
13
12
  return /*#__PURE__*/React.createElement(Provider, {
14
13
  config: mergedConfig,
15
- frame: frame,
16
- placement: placement
14
+ frame: frame
17
15
  }, children);
18
16
  };
@@ -5,7 +5,6 @@ import type { StoryObj, Meta } from '@storybook/react';
5
5
  import { Button } from '../Button/Button';
6
6
  import { Modal } from '../Modal/Modal';
7
7
  import {
8
- NotificationPlacement,
9
8
  NotificationIconPlacement,
10
9
  NotificationLayout,
11
10
  addNotification,
@@ -21,7 +20,6 @@ const titles = ['Выполнено', 'Внимание', 'Ошибка'];
21
20
  const texts = ['SSH ключ успешно скопирован', 'Нельзя скопировать SSH ключ', 'Не удалось скопировать SSH ключ'];
22
21
  const size = ['xs', 'xxs'];
23
22
  const iconPlacement = ['top', 'left'];
24
- const notificationsPlacements = ['bottom-right', 'bottom-left'];
25
23
 
26
24
  const longText = `JavaScript frameworks are an essential part of modern front-end web development,
27
25
  providing developers with proven tools for building scalable, interactive web applications.
@@ -51,7 +49,6 @@ interface StoryDefaultProps {
51
49
  layout: NotificationLayout;
52
50
  size: 'xs' | 'xxs';
53
51
  iconPlacement: NotificationIconPlacement;
54
- placement?: NotificationPlacement;
55
52
  }
56
53
 
57
54
  const StoryDefault = ({ title, children, iconPlacement, size, layout, showLeftIcon, ...rest }: StoryDefaultProps) => {
@@ -114,10 +111,9 @@ type StoryLiveDemoProps = ComponentProps<typeof Notification> & {
114
111
  layout: NotificationLayout;
115
112
  size: 'xs' | 'xxs';
116
113
  iconPlacement: NotificationIconPlacement;
117
- placement?: NotificationPlacement;
118
114
  };
119
115
 
120
- const StoryLiveDemo = ({ timeout, placement, ...rest }: StoryLiveDemoProps) => {
116
+ const StoryLiveDemo = ({ timeout, ...rest }: StoryLiveDemoProps) => {
121
117
  const count = useRef(0);
122
118
  const handleClick = useCallback(() => {
123
119
  addNotification({ icon: <IconDisclosureRight />, ...rest, ...getNotificationProps(count.current) }, timeout);
@@ -125,7 +121,7 @@ const StoryLiveDemo = ({ timeout, placement, ...rest }: StoryLiveDemoProps) => {
125
121
  }, [count, rest]);
126
122
 
127
123
  return (
128
- <NotificationsProvider placement={placement}>
124
+ <NotificationsProvider>
129
125
  <Button text="Добавить уведомление" onClick={handleClick} />
130
126
  </NotificationsProvider>
131
127
  );
@@ -139,28 +135,20 @@ export const LiveDemo: StoryObj<StoryLiveDemoProps> = {
139
135
  type: 'select',
140
136
  },
141
137
  },
142
- placement: {
143
- options: notificationsPlacements,
144
- control: {
145
- type: 'select',
146
- },
147
- },
148
138
  },
149
139
  args: {
150
140
  timeout: 3000,
151
141
  role: 'alert',
152
142
  layout: 'vertical',
153
- placement: 'bottom-right',
154
143
  },
155
144
  render: (args) => <StoryLiveDemo {...args} />,
156
145
  };
157
146
 
158
147
  type StoryWithModalProps = ComponentProps<typeof Notification> & {
159
148
  timeout: number;
160
- placement?: NotificationPlacement;
161
149
  };
162
150
 
163
- const StoryWithModal = ({ timeout, placement }: StoryWithModalProps) => {
151
+ const StoryWithModal = ({ timeout }: StoryWithModalProps) => {
164
152
  const [isModalOpen, setIsModalOpen] = useState(false);
165
153
  const count = useRef(0);
166
154
  const handleClick = useCallback(() => {
@@ -169,7 +157,7 @@ const StoryWithModal = ({ timeout, placement }: StoryWithModalProps) => {
169
157
  }, [count]);
170
158
 
171
159
  return (
172
- <NotificationsProvider placement={placement}>
160
+ <NotificationsProvider>
173
161
  <PopupProvider>
174
162
  <Button text="Open modal" onClick={() => setIsModalOpen(true)} />
175
163
  <Modal frame="theme-root" opened={isModalOpen} onClose={() => setIsModalOpen(false)}>
@@ -184,15 +172,6 @@ const StoryWithModal = ({ timeout, placement }: StoryWithModalProps) => {
184
172
  export const WithModal: StoryObj<StoryLiveDemoProps> = {
185
173
  args: {
186
174
  timeout: 3500,
187
- placement: 'bottom-right',
188
- },
189
- argTypes: {
190
- placement: {
191
- options: notificationsPlacements,
192
- control: {
193
- type: 'select',
194
- },
195
- },
196
175
  },
197
176
  render: (args) => <StoryWithModal {...args} />,
198
177
  };