@salutejs/plasma-new-hope 0.174.0-canary.1503.11466452273.0 → 0.174.0-canary.1504.11477432639.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +0 -1
- package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles.js.map +1 -1
- package/cjs/components/Attach/Attach.js +3 -4
- package/cjs/components/Attach/Attach.js.map +1 -1
- package/cjs/components/Attach/components/AttachButton/AttachButton.js +0 -1
- package/cjs/components/Attach/components/AttachButton/AttachButton.js.map +1 -1
- package/cjs/components/Attach/ui/Button/Button.styles.js +0 -1
- package/cjs/components/Attach/ui/Button/Button.styles.js.map +1 -1
- package/cjs/components/Attach/ui/Cell/Cell.styles.js +0 -2
- package/cjs/components/Attach/ui/Cell/Cell.styles.js.map +1 -1
- package/cjs/components/Attach/ui/IconButton/IconButton.styles.js +0 -1
- package/cjs/components/Attach/ui/IconButton/IconButton.styles.js.map +1 -1
- package/cjs/components/Attach/utils/getFileicon.js +3 -4
- package/cjs/components/Attach/utils/getFileicon.js.map +1 -1
- package/cjs/components/Attach/utils/index.js +0 -3
- package/cjs/components/Attach/utils/index.js.map +1 -1
- package/cjs/components/Autocomplete/Autocomplete.js +5 -6
- package/cjs/components/Autocomplete/Autocomplete.js.map +1 -1
- package/cjs/components/Autocomplete/Autocomplete.styles.js +2 -3
- package/cjs/components/Autocomplete/Autocomplete.styles.js.map +1 -1
- package/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -2
- package/cjs/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
- package/cjs/components/Avatar/Avatar.js +2 -3
- package/cjs/components/Avatar/Avatar.js.map +1 -1
- package/cjs/components/Breadcrumbs/Breadcrumbs.styles.js +2 -4
- package/cjs/components/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
- package/cjs/components/Button/Button.styles.js +0 -3
- package/cjs/components/Button/Button.styles.js.map +1 -1
- package/cjs/components/Calendar/CalendarBase/CalendarBase.js +5 -5
- package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +8 -8
- package/cjs/components/Calendar/hooks/useDays.js +2 -2
- package/cjs/components/Calendar/hooks/useKeyNavigation.js +1 -1
- package/cjs/components/Calendar/hooks/useMonths.js +2 -2
- package/cjs/components/Calendar/hooks/useQuarters.js +2 -2
- package/cjs/components/Calendar/hooks/useYears.js +2 -2
- package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +4 -4
- package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -6
- package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +0 -1
- package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +4 -4
- package/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +4 -4
- package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +4 -4
- package/cjs/components/Combobox/ComboboxNew/Combobox.js +11 -12
- package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +2 -4
- package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/hooks/getPathMaps.js +0 -2
- package/cjs/components/Combobox/ComboboxNew/hooks/getPathMaps.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.js +1 -2
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +5 -6
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +1 -3
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/ui/Target/Target.styles.js +1 -2
- package/cjs/components/Combobox/ComboboxNew/ui/Target/Target.styles.js.map +1 -1
- package/cjs/components/Combobox/ComboboxOld/Combobox.js +4 -10
- package/cjs/components/Combobox/ComboboxOld/Combobox.js.map +1 -1
- package/cjs/components/Combobox/ComboboxOld/Combobox.styles.js +0 -1
- package/cjs/components/Combobox/ComboboxOld/Combobox.styles.js.map +1 -1
- package/cjs/components/Combobox/ComboboxOld/hooks/useFocusController.js +0 -1
- package/cjs/components/Combobox/ComboboxOld/hooks/useFocusController.js.map +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js +1 -2
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js.map +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js +1 -10
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js.map +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js +1 -10
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js.map +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js +1 -10
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js.map +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js +1 -10
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js.map +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js +0 -2
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js.map +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.js +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js +1 -2
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js.map +1 -1
- package/cjs/components/DatePicker/DatePickerBase.styles.js +1 -7
- package/cjs/components/DatePicker/DatePickerBase.styles.js.map +1 -1
- package/cjs/components/DatePicker/RangeDate/RangeDate.js +1 -1
- package/cjs/components/DatePicker/RangeDate/RangeDate.styles.js +0 -1
- package/cjs/components/DatePicker/RangeDate/RangeDate.styles.js.map +1 -1
- package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +1 -2
- package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -1
- package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +2 -5
- package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js.map +1 -1
- package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +0 -1
- package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
- package/cjs/components/Drawer/Drawer.js +5 -10
- package/cjs/components/Drawer/Drawer.js.map +1 -1
- package/cjs/components/Drawer/Drawer.styles.js +0 -4
- package/cjs/components/Drawer/Drawer.styles.js.map +1 -1
- package/cjs/components/Drawer/hooks/useDrawer.js +0 -4
- package/cjs/components/Drawer/hooks/useDrawer.js.map +1 -1
- package/cjs/components/Drawer/ui/DrawerContent/DrawerContent.js +0 -7
- package/cjs/components/Drawer/ui/DrawerContent/DrawerContent.js.map +1 -1
- package/cjs/components/Drawer/ui/DrawerFooter/DrawerFooter.js +0 -7
- package/cjs/components/Drawer/ui/DrawerFooter/DrawerFooter.js.map +1 -1
- package/cjs/components/Drawer/ui/DrawerHeader/DrawerHeader.js +0 -3
- package/cjs/components/Drawer/ui/DrawerHeader/DrawerHeader.js.map +1 -1
- package/cjs/components/Dropdown/Dropdown.js +3 -10
- package/cjs/components/Dropdown/Dropdown.js.map +1 -1
- package/cjs/components/Dropdown/Dropdown.styles.js +2 -3
- package/cjs/components/Dropdown/Dropdown.styles.js.map +1 -1
- package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +1 -9
- package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
- package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +1 -2
- package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
- package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +0 -2
- package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js.map +1 -1
- package/cjs/components/Dropdown/ui/DropdownOld/Dropdown.styles.js +0 -1
- package/cjs/components/Dropdown/ui/DropdownOld/Dropdown.styles.js.map +1 -1
- package/cjs/components/Editable/Editable.js +3 -4
- package/cjs/components/Editable/Editable.js.map +1 -1
- package/cjs/components/Editable/utils/clearSelection.js +0 -2
- package/cjs/components/Editable/utils/clearSelection.js.map +1 -1
- package/cjs/components/Editable/utils/selectText.js +0 -2
- package/cjs/components/Editable/utils/selectText.js.map +1 -1
- package/cjs/components/EmptyState/EmptyState.styles.js +1 -2
- package/cjs/components/EmptyState/EmptyState.styles.js.map +1 -1
- package/cjs/components/IconButton/IconButton.js +1 -1
- package/cjs/components/IconButton/IconButton.styles.js +0 -8
- package/cjs/components/IconButton/IconButton.styles.js.map +1 -1
- package/cjs/components/Modal/Modal.js +6 -8
- package/cjs/components/Modal/Modal.js.map +1 -1
- package/cjs/components/Modal/hooks/useModal.js +0 -4
- package/cjs/components/Modal/hooks/useModal.js.map +1 -1
- package/cjs/components/Notification/Notification.js +2 -2
- package/cjs/components/Notification/Notification.js.map +1 -1
- package/cjs/components/Notification/Notification.styles.js +2 -3
- package/cjs/components/Notification/Notification.styles.js.map +1 -1
- package/cjs/components/Notification/Notification.types.js.map +1 -1
- package/cjs/components/Notification/NotificationsPortal.js +5 -8
- package/cjs/components/Notification/NotificationsPortal.js.map +1 -1
- package/cjs/components/Notification/NotificationsProvider.js +1 -3
- package/cjs/components/Notification/NotificationsProvider.js.map +1 -1
- package/cjs/components/Pagination/Pagination.css +13 -13
- package/cjs/components/Pagination/Pagination.styles.js +1 -2
- package/cjs/components/Pagination/Pagination.styles.js.map +1 -1
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +13 -13
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -2
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
- package/cjs/components/Panel/ui/PanelHeader/PanelHeader.js +1 -2
- package/cjs/components/Panel/ui/PanelHeader/PanelHeader.js.map +1 -1
- package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js +1 -2
- package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js.map +1 -1
- package/cjs/components/Popover/Popover.js +1 -1
- package/cjs/components/Popup/Popup.js +2 -2
- package/cjs/components/Popup/PopupContext.js +1 -1
- package/cjs/components/Range/Range.styles.js +0 -1
- package/cjs/components/Range/Range.styles.js.map +1 -1
- package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js +4 -5
- package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js.map +1 -1
- package/cjs/components/Select/Select.css +13 -13
- package/cjs/components/Select/Select.js +11 -12
- package/cjs/components/Select/Select.js.map +1 -1
- package/cjs/components/Select/Select.styles.js +3 -6
- package/cjs/components/Select/Select.styles.js.map +1 -1
- package/cjs/components/Select/Select.styles_ei4ic3.css +5 -0
- package/cjs/components/Select/Select.tokens.js +17 -1
- package/cjs/components/Select/Select.tokens.js.map +1 -1
- package/cjs/components/Select/hooks/usePathMaps.js +0 -2
- package/cjs/components/Select/hooks/usePathMaps.js.map +1 -1
- package/cjs/components/Select/ui/Inner/Inner.css +13 -13
- package/cjs/components/Select/ui/Inner/Inner.js +1 -2
- package/cjs/components/Select/ui/Inner/Inner.js.map +1 -1
- package/cjs/components/Select/ui/Inner/ui/Item/Item.css +13 -13
- package/cjs/components/Select/ui/Inner/ui/Item/Item.js +4 -5
- package/cjs/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
- package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +11 -12
- package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
- package/cjs/components/Select/ui/Inner/ui/Item/{Item.styles_baxa65.css → Item.styles_1gaxu1y.css} +2 -2
- package/cjs/components/Select/ui/Target/ui/Button/Button.js +1 -1
- package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +1 -3
- package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -1
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +2 -2
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -4
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
- package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +1 -2
- package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js.map +1 -1
- package/cjs/components/Select/utils/getButtonLabel.js +0 -2
- package/cjs/components/Select/utils/getButtonLabel.js.map +1 -1
- package/cjs/components/Sheet/Sheet.js +3 -3
- package/cjs/components/Skeleton/LineSkeleton/LineSkeleton.js +2 -4
- package/cjs/components/Skeleton/LineSkeleton/LineSkeleton.js.map +1 -1
- package/cjs/components/Skeleton/RectSkeleton/RectSkeleton.js +2 -4
- package/cjs/components/Skeleton/RectSkeleton/RectSkeleton.js.map +1 -1
- package/cjs/components/Slider/Slider.js +0 -8
- package/cjs/components/Slider/Slider.js.map +1 -1
- package/cjs/components/Slider/components/Double/Double.js +1 -2
- package/cjs/components/Slider/components/Double/Double.js.map +1 -1
- package/cjs/components/Slider/components/Double/Double.styles.js +0 -1
- package/cjs/components/Slider/components/Double/Double.styles.js.map +1 -1
- package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +0 -3
- package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js.map +1 -1
- package/cjs/components/Slider/components/Single/Single.js +1 -2
- package/cjs/components/Slider/components/Single/Single.js.map +1 -1
- package/cjs/components/Slider/components/SliderBase/SliderBase.js +1 -1
- package/cjs/components/Steps/Steps.js +1 -1
- package/cjs/components/Steps/ui/StepItem/StepItem.styles.js +0 -1
- package/cjs/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +2 -3
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js.map +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js +2 -3
- package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js.map +1 -1
- package/cjs/components/TextArea/TextArea.js +2 -2
- package/cjs/components/TextArea/TextArea.styles.js +2 -3
- package/cjs/components/TextArea/TextArea.styles.js.map +1 -1
- package/cjs/components/TextArea/ui/Hint/Hint.js +1 -2
- package/cjs/components/TextArea/ui/Hint/Hint.js.map +1 -1
- package/cjs/components/TextField/TextField.js +3 -3
- package/cjs/components/TextField/TextField.styles.js +1 -2
- package/cjs/components/TextField/TextField.styles.js.map +1 -1
- package/cjs/components/TextField/ui/Hint/Hint.js +1 -2
- package/cjs/components/TextField/ui/Hint/Hint.js.map +1 -1
- package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +1 -2
- package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +1 -1
- package/cjs/components/Toast/Toast.styles.js +1 -1
- package/cjs/components/Toast/ToastController.js +1 -1
- package/cjs/components/Toast/utils.js +1 -2
- package/cjs/components/Toast/utils.js.map +1 -1
- package/cjs/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.js +1 -1
- package/cjs/components/Tooltip/Tooltip.js +2 -3
- package/cjs/components/Tooltip/Tooltip.js.map +1 -1
- package/cjs/engines/index.js +0 -2
- package/cjs/engines/index.js.map +1 -1
- package/cjs/hooks/useIsomorphicLayoutEffect.js +0 -1
- package/cjs/hooks/useIsomorphicLayoutEffect.js.map +1 -1
- package/cjs/index.css +13 -13
- package/cjs/index.js +49 -52
- package/cjs/index.js.map +1 -1
- package/cjs/utils/index.js +0 -5
- package/cjs/utils/index.js.map +1 -1
- package/emotion/cjs/components/Notification/Notification.js +2 -2
- package/emotion/cjs/components/Notification/Notification.template-doc.mdx +7 -15
- package/emotion/cjs/components/Notification/NotificationsPortal.js +3 -5
- package/emotion/cjs/components/Notification/NotificationsProvider.js +1 -3
- package/emotion/cjs/components/Notification/index.js +4 -4
- package/emotion/cjs/components/Select/Select.styles.js +5 -5
- package/emotion/cjs/components/Select/Select.tokens.js +17 -1
- package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +10 -10
- package/emotion/cjs/examples/plasma_b2c/components/Notification/Notification.js +3 -5
- package/emotion/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +4 -25
- package/emotion/cjs/examples/plasma_web/components/Notification/Notification.js +3 -5
- package/emotion/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +4 -25
- package/emotion/es/components/Notification/Notification.js +1 -1
- package/emotion/es/components/Notification/Notification.template-doc.mdx +7 -15
- package/emotion/es/components/Notification/NotificationsPortal.js +3 -5
- package/emotion/es/components/Notification/NotificationsProvider.js +1 -3
- package/emotion/es/components/Notification/index.js +1 -1
- package/emotion/es/components/Select/Select.styles.js +5 -5
- package/emotion/es/components/Select/Select.tokens.js +17 -1
- package/emotion/es/components/Select/ui/Inner/ui/Item/Item.styles.js +10 -10
- package/emotion/es/examples/plasma_b2c/components/Notification/Notification.js +4 -6
- package/emotion/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +4 -25
- package/emotion/es/examples/plasma_web/components/Notification/Notification.js +4 -6
- package/emotion/es/examples/plasma_web/components/Notification/Notification.stories.tsx +4 -25
- package/emotion/package.json +2 -1
- package/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +0 -1
- package/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js.map +1 -1
- package/es/components/Attach/Attach.js +3 -4
- package/es/components/Attach/Attach.js.map +1 -1
- package/es/components/Attach/components/AttachButton/AttachButton.js +0 -1
- package/es/components/Attach/components/AttachButton/AttachButton.js.map +1 -1
- package/es/components/Attach/ui/Button/Button.styles.js +0 -1
- package/es/components/Attach/ui/Button/Button.styles.js.map +1 -1
- package/es/components/Attach/ui/Cell/Cell.styles.js +0 -2
- package/es/components/Attach/ui/Cell/Cell.styles.js.map +1 -1
- package/es/components/Attach/ui/IconButton/IconButton.styles.js +0 -1
- package/es/components/Attach/ui/IconButton/IconButton.styles.js.map +1 -1
- package/es/components/Attach/utils/getFileicon.js +3 -4
- package/es/components/Attach/utils/getFileicon.js.map +1 -1
- package/es/components/Attach/utils/index.js +0 -3
- package/es/components/Attach/utils/index.js.map +1 -1
- package/es/components/Autocomplete/Autocomplete.js +5 -6
- package/es/components/Autocomplete/Autocomplete.js.map +1 -1
- package/es/components/Autocomplete/Autocomplete.styles.js +2 -3
- package/es/components/Autocomplete/Autocomplete.styles.js.map +1 -1
- package/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -2
- package/es/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
- package/es/components/Avatar/Avatar.js +2 -3
- package/es/components/Avatar/Avatar.js.map +1 -1
- package/es/components/Breadcrumbs/Breadcrumbs.styles.js +2 -4
- package/es/components/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
- package/es/components/Button/Button.styles.js +0 -3
- package/es/components/Button/Button.styles.js.map +1 -1
- package/es/components/Calendar/CalendarBase/CalendarBase.js +5 -5
- package/es/components/Calendar/CalendarDouble/CalendarDouble.js +8 -8
- package/es/components/Calendar/hooks/useDays.js +2 -2
- package/es/components/Calendar/hooks/useKeyNavigation.js +1 -1
- package/es/components/Calendar/hooks/useMonths.js +2 -2
- package/es/components/Calendar/hooks/useQuarters.js +2 -2
- package/es/components/Calendar/hooks/useYears.js +2 -2
- package/es/components/Calendar/ui/CalendarDays/CalendarDays.js +4 -4
- package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -6
- package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
- package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +0 -1
- package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
- package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +4 -4
- package/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +4 -4
- package/es/components/Calendar/ui/CalendarYears/CalendarYears.js +4 -4
- package/es/components/Combobox/ComboboxNew/Combobox.js +11 -12
- package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
- package/es/components/Combobox/ComboboxNew/Combobox.styles.js +2 -4
- package/es/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
- package/es/components/Combobox/ComboboxNew/hooks/getPathMaps.js +0 -2
- package/es/components/Combobox/ComboboxNew/hooks/getPathMaps.js.map +1 -1
- package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.js +1 -2
- package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.js.map +1 -1
- package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +5 -6
- package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
- package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +1 -3
- package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
- package/es/components/Combobox/ComboboxNew/ui/Target/Target.styles.js +1 -2
- package/es/components/Combobox/ComboboxNew/ui/Target/Target.styles.js.map +1 -1
- package/es/components/Combobox/ComboboxOld/Combobox.js +4 -10
- package/es/components/Combobox/ComboboxOld/Combobox.js.map +1 -1
- package/es/components/Combobox/ComboboxOld/Combobox.styles.js +0 -1
- package/es/components/Combobox/ComboboxOld/Combobox.styles.js.map +1 -1
- package/es/components/Combobox/ComboboxOld/hooks/useFocusController.js +0 -1
- package/es/components/Combobox/ComboboxOld/hooks/useFocusController.js.map +1 -1
- package/es/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js +1 -2
- package/es/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js.map +1 -1
- package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js +1 -10
- package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js.map +1 -1
- package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js +1 -10
- package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js.map +1 -1
- package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js +1 -10
- package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js.map +1 -1
- package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js +1 -10
- package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js.map +1 -1
- package/es/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js +0 -2
- package/es/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js.map +1 -1
- package/es/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.js +1 -1
- package/es/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js +1 -2
- package/es/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js.map +1 -1
- package/es/components/DatePicker/DatePickerBase.styles.js +1 -7
- package/es/components/DatePicker/DatePickerBase.styles.js.map +1 -1
- package/es/components/DatePicker/RangeDate/RangeDate.js +1 -1
- package/es/components/DatePicker/RangeDate/RangeDate.styles.js +0 -1
- package/es/components/DatePicker/RangeDate/RangeDate.styles.js.map +1 -1
- package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +1 -2
- package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -1
- package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +2 -5
- package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js.map +1 -1
- package/es/components/DatePicker/SingleDate/SingleDate.styles.js +0 -1
- package/es/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
- package/es/components/Drawer/Drawer.js +5 -10
- package/es/components/Drawer/Drawer.js.map +1 -1
- package/es/components/Drawer/Drawer.styles.js +0 -4
- package/es/components/Drawer/Drawer.styles.js.map +1 -1
- package/es/components/Drawer/hooks/useDrawer.js +0 -4
- package/es/components/Drawer/hooks/useDrawer.js.map +1 -1
- package/es/components/Drawer/ui/DrawerContent/DrawerContent.js +0 -7
- package/es/components/Drawer/ui/DrawerContent/DrawerContent.js.map +1 -1
- package/es/components/Drawer/ui/DrawerFooter/DrawerFooter.js +0 -7
- package/es/components/Drawer/ui/DrawerFooter/DrawerFooter.js.map +1 -1
- package/es/components/Drawer/ui/DrawerHeader/DrawerHeader.js +0 -3
- package/es/components/Drawer/ui/DrawerHeader/DrawerHeader.js.map +1 -1
- package/es/components/Dropdown/Dropdown.js +3 -10
- package/es/components/Dropdown/Dropdown.js.map +1 -1
- package/es/components/Dropdown/Dropdown.styles.js +2 -3
- package/es/components/Dropdown/Dropdown.styles.js.map +1 -1
- package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +1 -9
- package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
- package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +1 -2
- package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
- package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +0 -2
- package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js.map +1 -1
- package/es/components/Dropdown/ui/DropdownOld/Dropdown.styles.js +0 -1
- package/es/components/Dropdown/ui/DropdownOld/Dropdown.styles.js.map +1 -1
- package/es/components/Editable/Editable.js +3 -4
- package/es/components/Editable/Editable.js.map +1 -1
- package/es/components/Editable/utils/clearSelection.js +0 -2
- package/es/components/Editable/utils/clearSelection.js.map +1 -1
- package/es/components/Editable/utils/selectText.js +0 -2
- package/es/components/Editable/utils/selectText.js.map +1 -1
- package/es/components/EmptyState/EmptyState.styles.js +1 -2
- package/es/components/EmptyState/EmptyState.styles.js.map +1 -1
- package/es/components/IconButton/IconButton.js +1 -1
- package/es/components/IconButton/IconButton.styles.js +0 -8
- package/es/components/IconButton/IconButton.styles.js.map +1 -1
- package/es/components/Modal/Modal.js +6 -8
- package/es/components/Modal/Modal.js.map +1 -1
- package/es/components/Modal/hooks/useModal.js +0 -4
- package/es/components/Modal/hooks/useModal.js.map +1 -1
- package/es/components/Notification/Notification.js +2 -2
- package/es/components/Notification/Notification.js.map +1 -1
- package/es/components/Notification/Notification.styles.js +2 -3
- package/es/components/Notification/Notification.styles.js.map +1 -1
- package/es/components/Notification/Notification.types.js.map +1 -1
- package/es/components/Notification/NotificationsPortal.js +5 -8
- package/es/components/Notification/NotificationsPortal.js.map +1 -1
- package/es/components/Notification/NotificationsProvider.js +1 -3
- package/es/components/Notification/NotificationsProvider.js.map +1 -1
- package/es/components/Pagination/Pagination.css +13 -13
- package/es/components/Pagination/Pagination.styles.js +1 -2
- package/es/components/Pagination/Pagination.styles.js.map +1 -1
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +13 -13
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -2
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
- package/es/components/Panel/ui/PanelHeader/PanelHeader.js +1 -2
- package/es/components/Panel/ui/PanelHeader/PanelHeader.js.map +1 -1
- package/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js +1 -2
- package/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js.map +1 -1
- package/es/components/Popover/Popover.js +1 -1
- package/es/components/Popup/Popup.js +2 -2
- package/es/components/Popup/PopupContext.js +1 -1
- package/es/components/Range/Range.styles.js +0 -1
- package/es/components/Range/Range.styles.js.map +1 -1
- package/es/components/Segment/ui/SegmentGroup/SegmentGroup.js +4 -5
- package/es/components/Segment/ui/SegmentGroup/SegmentGroup.js.map +1 -1
- package/es/components/Select/Select.css +13 -13
- package/es/components/Select/Select.js +11 -12
- package/es/components/Select/Select.js.map +1 -1
- package/es/components/Select/Select.styles.js +3 -6
- package/es/components/Select/Select.styles.js.map +1 -1
- package/es/components/Select/Select.styles_ei4ic3.css +5 -0
- package/es/components/Select/Select.tokens.js +17 -1
- package/es/components/Select/Select.tokens.js.map +1 -1
- package/es/components/Select/hooks/usePathMaps.js +0 -2
- package/es/components/Select/hooks/usePathMaps.js.map +1 -1
- package/es/components/Select/ui/Inner/Inner.css +13 -13
- package/es/components/Select/ui/Inner/Inner.js +1 -2
- package/es/components/Select/ui/Inner/Inner.js.map +1 -1
- package/es/components/Select/ui/Inner/ui/Item/Item.css +13 -13
- package/es/components/Select/ui/Inner/ui/Item/Item.js +4 -5
- package/es/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
- package/es/components/Select/ui/Inner/ui/Item/Item.styles.js +11 -12
- package/es/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
- package/es/components/Select/ui/Inner/ui/Item/{Item.styles_baxa65.css → Item.styles_1gaxu1y.css} +2 -2
- package/es/components/Select/ui/Target/ui/Button/Button.js +1 -1
- package/es/components/Select/ui/Target/ui/Button/Button.styles.js +1 -3
- package/es/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -1
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +2 -2
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -4
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
- package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +1 -2
- package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js.map +1 -1
- package/es/components/Select/utils/getButtonLabel.js +0 -2
- package/es/components/Select/utils/getButtonLabel.js.map +1 -1
- package/es/components/Sheet/Sheet.js +3 -3
- package/es/components/Skeleton/LineSkeleton/LineSkeleton.js +2 -4
- package/es/components/Skeleton/LineSkeleton/LineSkeleton.js.map +1 -1
- package/es/components/Skeleton/RectSkeleton/RectSkeleton.js +2 -4
- package/es/components/Skeleton/RectSkeleton/RectSkeleton.js.map +1 -1
- package/es/components/Slider/Slider.js +0 -8
- package/es/components/Slider/Slider.js.map +1 -1
- package/es/components/Slider/components/Double/Double.js +1 -2
- package/es/components/Slider/components/Double/Double.js.map +1 -1
- package/es/components/Slider/components/Double/Double.styles.js +0 -1
- package/es/components/Slider/components/Double/Double.styles.js.map +1 -1
- package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +0 -3
- package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js.map +1 -1
- package/es/components/Slider/components/Single/Single.js +1 -2
- package/es/components/Slider/components/Single/Single.js.map +1 -1
- package/es/components/Slider/components/SliderBase/SliderBase.js +1 -1
- package/es/components/Steps/Steps.js +1 -1
- package/es/components/Steps/ui/StepItem/StepItem.styles.js +0 -1
- package/es/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
- package/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +2 -3
- package/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js.map +1 -1
- package/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js +2 -3
- package/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js.map +1 -1
- package/es/components/TextArea/TextArea.js +2 -2
- package/es/components/TextArea/TextArea.styles.js +2 -3
- package/es/components/TextArea/TextArea.styles.js.map +1 -1
- package/es/components/TextArea/ui/Hint/Hint.js +1 -2
- package/es/components/TextArea/ui/Hint/Hint.js.map +1 -1
- package/es/components/TextField/TextField.js +3 -3
- package/es/components/TextField/TextField.styles.js +1 -2
- package/es/components/TextField/TextField.styles.js.map +1 -1
- package/es/components/TextField/ui/Hint/Hint.js +1 -2
- package/es/components/TextField/ui/Hint/Hint.js.map +1 -1
- package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +1 -2
- package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +1 -1
- package/es/components/Toast/Toast.styles.js +1 -1
- package/es/components/Toast/ToastController.js +1 -1
- package/es/components/Toast/utils.js +1 -2
- package/es/components/Toast/utils.js.map +1 -1
- package/es/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.js +1 -1
- package/es/components/Tooltip/Tooltip.js +2 -3
- package/es/components/Tooltip/Tooltip.js.map +1 -1
- package/es/engines/index.js +0 -2
- package/es/engines/index.js.map +1 -1
- package/es/hooks/useIsomorphicLayoutEffect.js +0 -1
- package/es/hooks/useIsomorphicLayoutEffect.js.map +1 -1
- package/es/index.css +13 -13
- package/es/index.js +22 -25
- package/es/index.js.map +1 -1
- package/es/utils/index.js +0 -3
- package/es/utils/index.js.map +1 -1
- package/package.json +5 -2
- package/styled-components/cjs/components/Notification/Notification.js +2 -2
- package/styled-components/cjs/components/Notification/Notification.template-doc.mdx +7 -15
- package/styled-components/cjs/components/Notification/NotificationsPortal.js +2 -4
- package/styled-components/cjs/components/Notification/NotificationsProvider.js +1 -3
- package/styled-components/cjs/components/Notification/index.js +4 -4
- package/styled-components/cjs/components/Select/Select.styles.js +2 -2
- package/styled-components/cjs/components/Select/Select.tokens.js +17 -1
- package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +3 -3
- package/styled-components/cjs/examples/plasma_b2c/components/Notification/Notification.js +3 -5
- package/styled-components/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +4 -25
- package/styled-components/cjs/examples/plasma_web/components/Notification/Notification.js +3 -5
- package/styled-components/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +4 -25
- package/styled-components/es/components/Notification/Notification.js +1 -1
- package/styled-components/es/components/Notification/Notification.template-doc.mdx +7 -15
- package/styled-components/es/components/Notification/NotificationsPortal.js +2 -4
- package/styled-components/es/components/Notification/NotificationsProvider.js +1 -3
- package/styled-components/es/components/Notification/index.js +1 -1
- package/styled-components/es/components/Select/Select.styles.js +2 -2
- package/styled-components/es/components/Select/Select.tokens.js +17 -1
- package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.styles.js +3 -3
- package/styled-components/es/examples/plasma_b2c/components/Notification/Notification.js +4 -6
- package/styled-components/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +4 -25
- package/styled-components/es/examples/plasma_web/components/Notification/Notification.js +4 -6
- package/styled-components/es/examples/plasma_web/components/Notification/Notification.stories.tsx +4 -25
- package/styled-components/package.json +2 -1
- package/types/components/Notification/Notification.d.ts +3 -3
- package/types/components/Notification/Notification.d.ts.map +1 -1
- package/types/components/Notification/Notification.types.d.ts +5 -11
- package/types/components/Notification/Notification.types.d.ts.map +1 -1
- package/types/components/Notification/NotificationsProvider.d.ts +3 -4
- package/types/components/Notification/NotificationsProvider.d.ts.map +1 -1
- package/types/components/Notification/index.d.ts +2 -2
- package/types/components/Notification/index.d.ts.map +1 -1
- package/types/components/Select/Select.tokens.d.ts +16 -0
- package/types/components/Select/Select.tokens.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Notification/Notification.d.ts +2 -4
- package/types/examples/plasma_b2c/components/Notification/Notification.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Notification/Notification.d.ts +13 -4
- package/types/examples/plasma_web/components/Notification/Notification.d.ts.map +1 -1
- package/cjs/components/Select/Select.styles_1nzals0.css +0 -5
- 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.
|
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
|
};
|
package/styled-components/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx
CHANGED
@@ -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,
|
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
|
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
|
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
|
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.
|
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
|
};
|
package/styled-components/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx
CHANGED
@@ -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,
|
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
|
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
|
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
|
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
|
};
|
@@ -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
|
37
|
+
После подключения `NotificationsProvider` станет возможен вызов функции `addNotification`,который приведет к отображению оповещения.
|
38
|
+
Функция принимает значения свойств компонента `Notification`:
|
39
39
|
|
40
40
|
```tsx live
|
41
41
|
import React from 'react';
|
42
|
-
import { Button,
|
42
|
+
import { Button, addNotification, NotificationsProvider } from '@salutejs/{{ package }}';
|
43
43
|
|
44
44
|
export function App() {
|
45
|
-
const
|
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
|
-
<
|
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:
|
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,
|
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 {
|
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(
|
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
|
};
|
package/styled-components/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx
CHANGED
@@ -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,
|
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
|
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
|
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
|
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
|
};
|