@salutejs/plasma-new-hope 0.119.2-dev.0 → 0.120.0-canary.1335.10300464292.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Autocomplete/Autocomplete.js +1 -1
- package/cjs/components/Autocomplete/Autocomplete.js.map +1 -1
- package/cjs/components/Combobox/Combobox.js +9 -9
- package/cjs/components/Combobox/Combobox.js.map +1 -1
- package/cjs/components/DatePicker/RangeDate/RangeDate.js +7 -7
- package/cjs/components/DatePicker/RangeDate/RangeDate.js.map +1 -1
- package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +4 -2
- package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -1
- package/cjs/components/DatePicker/SingleDate/SingleDate.js +7 -7
- package/cjs/components/DatePicker/SingleDate/SingleDate.js.map +1 -1
- package/cjs/components/Drawer/Drawer.js +5 -3
- package/cjs/components/Drawer/Drawer.js.map +1 -1
- package/cjs/components/Dropdown/Dropdown.js +1 -1
- package/cjs/components/Dropdown/Dropdown.js.map +1 -1
- package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +1 -1
- package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
- package/cjs/components/Dropdown/ui/DropdownOld/DropdownOld.js +6 -3
- package/cjs/components/Dropdown/ui/DropdownOld/DropdownOld.js.map +1 -1
- package/cjs/components/Modal/Modal.js +5 -3
- package/cjs/components/Modal/Modal.js.map +1 -1
- package/cjs/components/Notification/NotificationsPortal.js +1 -1
- package/cjs/components/Notification/NotificationsPortal.js.map +1 -1
- package/cjs/components/Popover/Popover.js +17 -15
- package/cjs/components/Popover/Popover.js.map +1 -1
- package/cjs/components/Popup/Popup.js +6 -3
- package/cjs/components/Popup/Popup.js.map +1 -1
- package/cjs/components/Select/Select.js +1 -1
- package/cjs/components/Select/Select.js.map +1 -1
- package/cjs/components/Select/ui/Inner/Inner.js +1 -1
- package/cjs/components/Select/ui/Inner/Inner.js.map +1 -1
- package/cjs/components/Select/ui/Target/ui/Button/Button.js +4 -4
- package/cjs/components/Select/ui/Target/ui/Button/Button.js.map +1 -1
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +1 -1
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +2 -2
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
- package/cjs/components/Sheet/Sheet.js +8 -6
- package/cjs/components/Sheet/Sheet.js.map +1 -1
- package/cjs/components/Sheet/utils/handleTransition.js.map +1 -1
- package/cjs/components/Tooltip/Tooltip.js +4 -4
- package/cjs/components/Tooltip/Tooltip.js.map +1 -1
- package/emotion/cjs/components/Autocomplete/Autocomplete.js +1 -1
- package/emotion/cjs/components/Combobox/Combobox.js +9 -9
- package/emotion/cjs/components/DatePicker/DatePicker.template-doc.mdx +3 -3
- package/emotion/cjs/components/DatePicker/RangeDate/RangeDate.js +7 -7
- package/emotion/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +4 -2
- package/emotion/cjs/components/DatePicker/SingleDate/SingleDate.js +7 -7
- package/emotion/cjs/components/Drawer/Drawer.js +5 -3
- package/emotion/cjs/components/Drawer/Drawer.template-doc.mdx +13 -13
- package/emotion/cjs/components/Dropdown/Dropdown.js +1 -1
- package/emotion/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +1 -1
- package/emotion/cjs/components/Dropdown/ui/DropdownOld/DropdownOld.js +6 -3
- package/emotion/cjs/components/Modal/Modal.js +5 -3
- package/emotion/cjs/components/Modal/Modal.template-doc.mdx +2 -2
- package/emotion/cjs/components/Notification/NotificationsPortal.js +2 -2
- package/emotion/cjs/components/Popover/Popover.js +17 -15
- package/emotion/cjs/components/Popover/Popover.template-doc.mdx +1 -1
- package/emotion/cjs/components/Popup/Popup.js +6 -3
- package/emotion/cjs/components/Popup/Popup.template-doc.mdx +3 -3
- package/emotion/cjs/components/Select/Select.js +1 -1
- package/emotion/cjs/components/Select/ui/Inner/Inner.js +1 -1
- package/emotion/cjs/components/Select/ui/Target/ui/Button/Button.js +4 -4
- package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +1 -1
- package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +14 -14
- package/emotion/cjs/components/Sheet/Sheet.js +8 -6
- package/emotion/cjs/components/Sheet/Sheet.template-doc.mdx +2 -2
- package/emotion/cjs/components/Tooltip/Tooltip.js +5 -5
- package/emotion/cjs/components/Tooltip/Tooltip.template-doc.mdx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +3 -3
- package/emotion/cjs/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Modal/Modal.stories.tsx +4 -4
- package/emotion/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Popover/Popover.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Popup/Popup.stories.tsx +2 -2
- package/emotion/cjs/examples/plasma_b2c/components/Toast/Toast.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Tooltip/Tooltip.stories.tsx +9 -9
- package/emotion/cjs/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +3 -3
- package/emotion/cjs/examples/plasma_web/components/Drawer/Drawer.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Modal/Modal.stories.tsx +4 -4
- package/emotion/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Popover/Popover.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Popup/Popup.stories.tsx +2 -2
- package/emotion/cjs/examples/plasma_web/components/Toast/Toast.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Tooltip/Tooltip.stories.tsx +9 -9
- package/emotion/cjs/examples/sds_engineer/components/Drawer/Drawer.stories.tsx +1 -1
- package/emotion/cjs/examples/sds_engineer/components/Modal/Modal.stories.tsx +3 -3
- package/emotion/cjs/examples/sds_engineer/components/Notification/Notification.stories.tsx +1 -1
- package/emotion/cjs/examples/sds_engineer/components/Popover/Popover.stories.tsx +1 -1
- package/emotion/cjs/examples/sds_engineer/components/Popup/Popup.stories.tsx +2 -2
- package/emotion/cjs/examples/sds_engineer/components/Toast/Toast.stories.tsx +1 -1
- package/emotion/cjs/examples/sds_engineer/components/Tooltip/Tooltip.stories.tsx +9 -9
- package/emotion/es/components/Autocomplete/Autocomplete.js +1 -1
- package/emotion/es/components/Combobox/Combobox.js +9 -9
- package/emotion/es/components/DatePicker/DatePicker.template-doc.mdx +3 -3
- package/emotion/es/components/DatePicker/RangeDate/RangeDate.js +7 -7
- package/emotion/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +4 -2
- package/emotion/es/components/DatePicker/SingleDate/SingleDate.js +7 -7
- package/emotion/es/components/Drawer/Drawer.js +5 -3
- package/emotion/es/components/Drawer/Drawer.template-doc.mdx +13 -13
- package/emotion/es/components/Dropdown/Dropdown.js +1 -1
- package/emotion/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +1 -1
- package/emotion/es/components/Dropdown/ui/DropdownOld/DropdownOld.js +6 -3
- package/emotion/es/components/Modal/Modal.js +5 -3
- package/emotion/es/components/Modal/Modal.template-doc.mdx +2 -2
- package/emotion/es/components/Notification/NotificationsPortal.js +2 -2
- package/emotion/es/components/Popover/Popover.js +17 -15
- package/emotion/es/components/Popover/Popover.template-doc.mdx +1 -1
- package/emotion/es/components/Popup/Popup.js +6 -3
- package/emotion/es/components/Popup/Popup.template-doc.mdx +3 -3
- package/emotion/es/components/Select/Select.js +1 -1
- package/emotion/es/components/Select/ui/Inner/Inner.js +1 -1
- package/emotion/es/components/Select/ui/Target/ui/Button/Button.js +4 -4
- package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.js +1 -1
- package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +14 -14
- package/emotion/es/components/Sheet/Sheet.js +8 -6
- package/emotion/es/components/Sheet/Sheet.template-doc.mdx +2 -2
- package/emotion/es/components/Tooltip/Tooltip.js +5 -5
- package/emotion/es/components/Tooltip/Tooltip.template-doc.mdx +1 -1
- package/emotion/es/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +3 -3
- package/emotion/es/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Modal/Modal.stories.tsx +4 -4
- package/emotion/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Popover/Popover.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Popup/Popup.stories.tsx +2 -2
- package/emotion/es/examples/plasma_b2c/components/Toast/Toast.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Tooltip/Tooltip.stories.tsx +9 -9
- package/emotion/es/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +3 -3
- package/emotion/es/examples/plasma_web/components/Drawer/Drawer.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Modal/Modal.stories.tsx +4 -4
- package/emotion/es/examples/plasma_web/components/Notification/Notification.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Popover/Popover.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Popup/Popup.stories.tsx +2 -2
- package/emotion/es/examples/plasma_web/components/Toast/Toast.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Tooltip/Tooltip.stories.tsx +9 -9
- package/emotion/es/examples/sds_engineer/components/Drawer/Drawer.stories.tsx +1 -1
- package/emotion/es/examples/sds_engineer/components/Modal/Modal.stories.tsx +3 -3
- package/emotion/es/examples/sds_engineer/components/Notification/Notification.stories.tsx +1 -1
- package/emotion/es/examples/sds_engineer/components/Popover/Popover.stories.tsx +1 -1
- package/emotion/es/examples/sds_engineer/components/Popup/Popup.stories.tsx +2 -2
- package/emotion/es/examples/sds_engineer/components/Toast/Toast.stories.tsx +1 -1
- package/emotion/es/examples/sds_engineer/components/Tooltip/Tooltip.stories.tsx +9 -9
- package/es/components/Autocomplete/Autocomplete.js +1 -1
- package/es/components/Autocomplete/Autocomplete.js.map +1 -1
- package/es/components/Combobox/Combobox.js +9 -9
- package/es/components/Combobox/Combobox.js.map +1 -1
- package/es/components/DatePicker/RangeDate/RangeDate.js +7 -7
- package/es/components/DatePicker/RangeDate/RangeDate.js.map +1 -1
- package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +4 -2
- package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -1
- package/es/components/DatePicker/SingleDate/SingleDate.js +7 -7
- package/es/components/DatePicker/SingleDate/SingleDate.js.map +1 -1
- package/es/components/Drawer/Drawer.js +5 -3
- package/es/components/Drawer/Drawer.js.map +1 -1
- package/es/components/Dropdown/Dropdown.js +1 -1
- package/es/components/Dropdown/Dropdown.js.map +1 -1
- package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +1 -1
- package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
- package/es/components/Dropdown/ui/DropdownOld/DropdownOld.js +6 -3
- package/es/components/Dropdown/ui/DropdownOld/DropdownOld.js.map +1 -1
- package/es/components/Modal/Modal.js +5 -3
- package/es/components/Modal/Modal.js.map +1 -1
- package/es/components/Notification/NotificationsPortal.js +1 -1
- package/es/components/Notification/NotificationsPortal.js.map +1 -1
- package/es/components/Popover/Popover.js +17 -15
- package/es/components/Popover/Popover.js.map +1 -1
- package/es/components/Popup/Popup.js +6 -3
- package/es/components/Popup/Popup.js.map +1 -1
- package/es/components/Select/Select.js +1 -1
- package/es/components/Select/Select.js.map +1 -1
- package/es/components/Select/ui/Inner/Inner.js +1 -1
- package/es/components/Select/ui/Inner/Inner.js.map +1 -1
- package/es/components/Select/ui/Target/ui/Button/Button.js +4 -4
- package/es/components/Select/ui/Target/ui/Button/Button.js.map +1 -1
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +1 -1
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +2 -2
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
- package/es/components/Sheet/Sheet.js +8 -6
- package/es/components/Sheet/Sheet.js.map +1 -1
- package/es/components/Sheet/utils/handleTransition.js.map +1 -1
- package/es/components/Tooltip/Tooltip.js +4 -4
- package/es/components/Tooltip/Tooltip.js.map +1 -1
- package/package.json +4 -4
- package/styled-components/cjs/components/Autocomplete/Autocomplete.js +1 -1
- package/styled-components/cjs/components/Combobox/Combobox.js +9 -9
- package/styled-components/cjs/components/DatePicker/DatePicker.template-doc.mdx +3 -3
- package/styled-components/cjs/components/DatePicker/RangeDate/RangeDate.js +7 -7
- package/styled-components/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +4 -2
- package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.js +7 -7
- package/styled-components/cjs/components/Drawer/Drawer.js +5 -3
- package/styled-components/cjs/components/Drawer/Drawer.template-doc.mdx +13 -13
- package/styled-components/cjs/components/Dropdown/Dropdown.js +1 -1
- package/styled-components/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +1 -1
- package/styled-components/cjs/components/Dropdown/ui/DropdownOld/DropdownOld.js +6 -3
- package/styled-components/cjs/components/Modal/Modal.js +5 -3
- package/styled-components/cjs/components/Modal/Modal.template-doc.mdx +2 -2
- package/styled-components/cjs/components/Notification/NotificationsPortal.js +1 -1
- package/styled-components/cjs/components/Popover/Popover.js +17 -15
- package/styled-components/cjs/components/Popover/Popover.template-doc.mdx +1 -1
- package/styled-components/cjs/components/Popup/Popup.js +6 -3
- package/styled-components/cjs/components/Popup/Popup.template-doc.mdx +3 -3
- package/styled-components/cjs/components/Select/Select.js +1 -1
- package/styled-components/cjs/components/Select/ui/Inner/Inner.js +1 -1
- package/styled-components/cjs/components/Select/ui/Target/ui/Button/Button.js +4 -4
- package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +1 -1
- package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +2 -2
- package/styled-components/cjs/components/Sheet/Sheet.js +8 -6
- package/styled-components/cjs/components/Sheet/Sheet.template-doc.mdx +2 -2
- package/styled-components/cjs/components/Tooltip/Tooltip.js +4 -4
- package/styled-components/cjs/components/Tooltip/Tooltip.template-doc.mdx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +3 -3
- package/styled-components/cjs/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Modal/Modal.stories.tsx +4 -4
- package/styled-components/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Popover/Popover.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Popup/Popup.stories.tsx +2 -2
- package/styled-components/cjs/examples/plasma_b2c/components/Toast/Toast.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Tooltip/Tooltip.stories.tsx +9 -9
- package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +3 -3
- package/styled-components/cjs/examples/plasma_web/components/Drawer/Drawer.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Modal/Modal.stories.tsx +4 -4
- package/styled-components/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Popover/Popover.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Popup/Popup.stories.tsx +2 -2
- package/styled-components/cjs/examples/plasma_web/components/Toast/Toast.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Tooltip/Tooltip.stories.tsx +9 -9
- package/styled-components/cjs/examples/sds_engineer/components/Drawer/Drawer.stories.tsx +1 -1
- package/styled-components/cjs/examples/sds_engineer/components/Modal/Modal.stories.tsx +3 -3
- package/styled-components/cjs/examples/sds_engineer/components/Notification/Notification.stories.tsx +1 -1
- package/styled-components/cjs/examples/sds_engineer/components/Popover/Popover.stories.tsx +1 -1
- package/styled-components/cjs/examples/sds_engineer/components/Popup/Popup.stories.tsx +2 -2
- package/styled-components/cjs/examples/sds_engineer/components/Toast/Toast.stories.tsx +1 -1
- package/styled-components/cjs/examples/sds_engineer/components/Tooltip/Tooltip.stories.tsx +9 -9
- package/styled-components/es/components/Autocomplete/Autocomplete.js +1 -1
- package/styled-components/es/components/Combobox/Combobox.js +9 -9
- package/styled-components/es/components/DatePicker/DatePicker.template-doc.mdx +3 -3
- package/styled-components/es/components/DatePicker/RangeDate/RangeDate.js +7 -7
- package/styled-components/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +4 -2
- package/styled-components/es/components/DatePicker/SingleDate/SingleDate.js +7 -7
- package/styled-components/es/components/Drawer/Drawer.js +5 -3
- package/styled-components/es/components/Drawer/Drawer.template-doc.mdx +13 -13
- package/styled-components/es/components/Dropdown/Dropdown.js +1 -1
- package/styled-components/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +1 -1
- package/styled-components/es/components/Dropdown/ui/DropdownOld/DropdownOld.js +6 -3
- package/styled-components/es/components/Modal/Modal.js +5 -3
- package/styled-components/es/components/Modal/Modal.template-doc.mdx +2 -2
- package/styled-components/es/components/Notification/NotificationsPortal.js +1 -1
- package/styled-components/es/components/Popover/Popover.js +17 -15
- package/styled-components/es/components/Popover/Popover.template-doc.mdx +1 -1
- package/styled-components/es/components/Popup/Popup.js +6 -3
- package/styled-components/es/components/Popup/Popup.template-doc.mdx +3 -3
- package/styled-components/es/components/Select/Select.js +1 -1
- package/styled-components/es/components/Select/ui/Inner/Inner.js +1 -1
- package/styled-components/es/components/Select/ui/Target/ui/Button/Button.js +4 -4
- package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.js +1 -1
- package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +2 -2
- package/styled-components/es/components/Sheet/Sheet.js +8 -6
- package/styled-components/es/components/Sheet/Sheet.template-doc.mdx +2 -2
- package/styled-components/es/components/Tooltip/Tooltip.js +4 -4
- package/styled-components/es/components/Tooltip/Tooltip.template-doc.mdx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +3 -3
- package/styled-components/es/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Modal/Modal.stories.tsx +4 -4
- package/styled-components/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Popover/Popover.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Popup/Popup.stories.tsx +2 -2
- package/styled-components/es/examples/plasma_b2c/components/Toast/Toast.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Tooltip/Tooltip.stories.tsx +9 -9
- package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +3 -3
- package/styled-components/es/examples/plasma_web/components/Drawer/Drawer.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Modal/Modal.stories.tsx +4 -4
- package/styled-components/es/examples/plasma_web/components/Notification/Notification.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Popover/Popover.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Popup/Popup.stories.tsx +2 -2
- package/styled-components/es/examples/plasma_web/components/Toast/Toast.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Tooltip/Tooltip.stories.tsx +9 -9
- package/styled-components/es/examples/sds_engineer/components/Drawer/Drawer.stories.tsx +1 -1
- package/styled-components/es/examples/sds_engineer/components/Modal/Modal.stories.tsx +3 -3
- package/styled-components/es/examples/sds_engineer/components/Notification/Notification.stories.tsx +1 -1
- package/styled-components/es/examples/sds_engineer/components/Popover/Popover.stories.tsx +1 -1
- package/styled-components/es/examples/sds_engineer/components/Popup/Popup.stories.tsx +2 -2
- package/styled-components/es/examples/sds_engineer/components/Toast/Toast.stories.tsx +1 -1
- package/styled-components/es/examples/sds_engineer/components/Tooltip/Tooltip.stories.tsx +9 -9
- package/types/components/DatePicker/RangeDate/RangeDate.d.ts +2 -2
- package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.d.ts +1 -1
- package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.d.ts.map +1 -1
- package/types/components/DatePicker/SingleDate/SingleDate.d.ts +2 -2
- package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts +5 -0
- package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts.map +1 -1
- package/types/components/Drawer/Drawer.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownOld/Dropdown.types.d.ts +7 -0
- package/types/components/Dropdown/ui/DropdownOld/Dropdown.types.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownOld/DropdownOld.d.ts.map +1 -1
- package/types/components/Modal/Modal.d.ts.map +1 -1
- package/types/components/Popover/Popover.d.ts.map +1 -1
- package/types/components/Popover/Popover.types.d.ts +5 -1
- package/types/components/Popover/Popover.types.d.ts.map +1 -1
- package/types/components/Popup/Popup.d.ts.map +1 -1
- package/types/components/Popup/Popup.types.d.ts +7 -3
- package/types/components/Popup/Popup.types.d.ts.map +1 -1
- package/types/components/Select/ui/Target/Target.types.d.ts +1 -0
- package/types/components/Select/ui/Target/Target.types.d.ts.map +1 -1
- package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts +1 -1
- package/types/components/Sheet/Sheet.d.ts.map +1 -1
- package/types/components/Sheet/Sheet.types.d.ts +6 -1
- package/types/components/Sheet/Sheet.types.d.ts.map +1 -1
- package/types/components/Sheet/utils/handleTransition.d.ts +1 -1
- package/types/components/Tooltip/Tooltip.d.ts +2 -2
- package/types/components/Tooltip/Tooltip.types.d.ts +1 -1
- package/types/components/Tooltip/Tooltip.types.d.ts.map +1 -1
@@ -11,7 +11,7 @@ var _utils2 = /*#__PURE__*/require("../../../../utils");
|
|
11
11
|
var _Button = /*#__PURE__*/require("./Button.styles");
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
13
13
|
var Button = exports.Button = function Button(_ref) {
|
14
|
-
var
|
14
|
+
var isOpen = _ref.isOpen,
|
15
15
|
value = _ref.value,
|
16
16
|
valueToItemMap = _ref.valueToItemMap,
|
17
17
|
onKeyDown = _ref.onKeyDown,
|
@@ -22,7 +22,7 @@ var Button = exports.Button = function Button(_ref) {
|
|
22
22
|
focusedPath = _ref.focusedPath,
|
23
23
|
focusedToValueMap = _ref.focusedToValueMap,
|
24
24
|
selectProps = _ref.selectProps;
|
25
|
-
var withArrowInverse =
|
25
|
+
var withArrowInverse = isOpen ? _Select.classes.arrowInverse : undefined;
|
26
26
|
var getActiveDescendant = function getActiveDescendant() {
|
27
27
|
var _focusedToValueMap$ge;
|
28
28
|
var focusedPathAsString = focusedPath.reduce(function (acc, n) {
|
@@ -33,7 +33,7 @@ var Button = exports.Button = function Button(_ref) {
|
|
33
33
|
return /*#__PURE__*/_react["default"].createElement(_Button.ButtonWrapper, null, /*#__PURE__*/_react["default"].createElement(_Button.StyledButton, {
|
34
34
|
stretching: "filled",
|
35
35
|
onKeyDown: onKeyDown,
|
36
|
-
className:
|
36
|
+
className: isOpen ? _Select.classes.selectWithoutBoxShadow : undefined,
|
37
37
|
disabled: disabled,
|
38
38
|
contentRight: /*#__PURE__*/_react["default"].createElement(_Button.IconArrowWrapper, null, /*#__PURE__*/_react["default"].createElement(_Button.StyledArrow, {
|
39
39
|
size: (0, _utils2.sizeToIconSize)(size),
|
@@ -42,7 +42,7 @@ var Button = exports.Button = function Button(_ref) {
|
|
42
42
|
})),
|
43
43
|
role: "combobox",
|
44
44
|
"aria-controls": "tree_level_1",
|
45
|
-
"aria-expanded":
|
45
|
+
"aria-expanded": isOpen,
|
46
46
|
"aria-activedescendant": getActiveDescendant(),
|
47
47
|
"aria-label": label,
|
48
48
|
renderTarget: Boolean(selectProps.renderTarget)
|
@@ -79,7 +79,7 @@ var Textfield = exports.Textfield = function Textfield(_ref2) {
|
|
79
79
|
return focusedToValueMap === null || focusedToValueMap === void 0 || (_focusedToValueMap$ge = focusedToValueMap.get(focusedPathAsString)) === null || _focusedToValueMap$ge === void 0 ? void 0 : _focusedToValueMap$ge.value.toString();
|
80
80
|
};
|
81
81
|
return /*#__PURE__*/_react["default"].createElement(_Textfield.TextfieldWrapper, {
|
82
|
-
|
82
|
+
isOpen: opened,
|
83
83
|
value: value
|
84
84
|
}, /*#__PURE__*/_react["default"].createElement(_Textfield.StyledButton, {
|
85
85
|
stretching: "filled",
|
@@ -17,8 +17,8 @@ var Button = /*#__PURE__*/(0, _engines.component)(mergedButtonConfig);
|
|
17
17
|
var TextfieldWrapper = exports.TextfieldWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
18
18
|
componentId: "plasma-new-hope__sc-1akl2tk-0"
|
19
19
|
})(["display:inline;.", "{background:", ";padding:", ";}.", "::before{box-shadow:none !important;}"], _Select.classes.textfieldTarget, function (_ref) {
|
20
|
-
var
|
21
|
-
return
|
20
|
+
var isOpen = _ref.isOpen;
|
21
|
+
return isOpen ? "var(".concat(_Select.tokens.targetTextfieldBackgroundColorOpened, ")") : "var(".concat(_Select.tokens.targetTextfieldBackgroundColor, ")");
|
22
22
|
}, function (_ref2) {
|
23
23
|
var value = _ref2.value;
|
24
24
|
return Array.isArray(value) && !(0, _utils.isEmpty)(value) ? "0 var(".concat(_Select.tokens.targetTextfieldChipPadding, ")") : "0 var(".concat(_Select.tokens.targetTextfieldPadding, ")");
|
@@ -13,7 +13,7 @@ var _Sheet = /*#__PURE__*/require("./Sheet.tokens");
|
|
13
13
|
var _Sheet2 = /*#__PURE__*/require("./Sheet.styles");
|
14
14
|
var _base = /*#__PURE__*/require("./variations/_view/base");
|
15
15
|
var _utils2 = /*#__PURE__*/require("./utils");
|
16
|
-
var _excluded = ["opened", "children", "onClose", "hasHandle", "contentHeader", "isHeaderFixed", "contentFooter", "isFooterFixed", "withOverlay", "withBlur", "withTransition", "throttleMs", "className", "view"];
|
16
|
+
var _excluded = ["opened", "isOpen", "children", "onClose", "hasHandle", "contentHeader", "isHeaderFixed", "contentFooter", "isFooterFixed", "withOverlay", "withBlur", "withTransition", "throttleMs", "className", "view"];
|
17
17
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
18
18
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
19
19
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
@@ -26,6 +26,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
26
26
|
var sheetRoot = exports.sheetRoot = function sheetRoot(Root) {
|
27
27
|
return /*#__PURE__*/(0, _react.forwardRef)(function (_ref, rootRef) {
|
28
28
|
var opened = _ref.opened,
|
29
|
+
isOpen = _ref.isOpen,
|
29
30
|
children = _ref.children,
|
30
31
|
onClose = _ref.onClose,
|
31
32
|
_ref$hasHandle = _ref.hasHandle,
|
@@ -46,11 +47,12 @@ var sheetRoot = exports.sheetRoot = function sheetRoot(Root) {
|
|
46
47
|
className = _ref.className,
|
47
48
|
view = _ref.view,
|
48
49
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
50
|
+
var innerIsOpen = Boolean(isOpen || opened);
|
49
51
|
var contentWrapperRef = (0, _react.useRef)(null);
|
50
52
|
var contentRef = (0, _react.useRef)(null);
|
51
53
|
var handleRef = (0, _react.useRef)(null);
|
52
54
|
(0, _hooks.useOverflow)({
|
53
|
-
opened:
|
55
|
+
opened: innerIsOpen
|
54
56
|
});
|
55
57
|
(0, _hooks.useSheetSwipe)({
|
56
58
|
contentWrapperRef: contentWrapperRef,
|
@@ -61,15 +63,15 @@ var sheetRoot = exports.sheetRoot = function sheetRoot(Root) {
|
|
61
63
|
});
|
62
64
|
var hasHeader = Boolean(contentHeader);
|
63
65
|
var hasFooter = Boolean(contentFooter);
|
64
|
-
var closedClass =
|
66
|
+
var closedClass = innerIsOpen ? undefined : "".concat(_Sheet.classes.closed);
|
65
67
|
var overlayBackgroundToken = withBlur ? "var(".concat(_Sheet.tokens.sheetOverlayWithBlurColor, ")") : "var(".concat(_Sheet.tokens.sheetOverlayColor, ")");
|
66
68
|
return /*#__PURE__*/_react["default"].createElement(Root, {
|
67
|
-
opened:
|
69
|
+
opened: innerIsOpen,
|
68
70
|
onClose: onClose,
|
69
71
|
view: view,
|
70
72
|
ref: rootRef
|
71
73
|
}, /*#__PURE__*/_react["default"].createElement(_Sheet2.StyledContentWrapper, _extends({
|
72
|
-
opened:
|
74
|
+
opened: innerIsOpen,
|
73
75
|
withTransition: withTransition,
|
74
76
|
className: (0, _utils.cx)(closedClass, className),
|
75
77
|
ref: contentWrapperRef
|
@@ -83,7 +85,7 @@ var sheetRoot = exports.sheetRoot = function sheetRoot(Root) {
|
|
83
85
|
isHeaderFixed: isHeaderFixed
|
84
86
|
}, contentHeader), /*#__PURE__*/_react["default"].createElement(_Sheet2.StyledSheetBody, null, children), hasFooter && /*#__PURE__*/_react["default"].createElement(_Sheet2.StyledSheetFooter, {
|
85
87
|
isFooterFixed: isFooterFixed
|
86
|
-
}, contentFooter))), withOverlay &&
|
88
|
+
}, contentFooter))), withOverlay && innerIsOpen && /*#__PURE__*/_react["default"].createElement(_Overlay.Overlay, {
|
87
89
|
zIndex: _utils2.DEFAULT_Z_INDEX,
|
88
90
|
backgroundColorProperty: overlayBackgroundToken,
|
89
91
|
withBlur: withBlur,
|
@@ -50,7 +50,7 @@ export function App() {
|
|
50
50
|
|
51
51
|
### Закрепление заголовка и футера
|
52
52
|
|
53
|
-
С помощью свойств `isHeaderFixed` и `isFooterFixed` можно закрепить заголовок и футер.
|
53
|
+
С помощью свойств `isHeaderFixed` и `isFooterFixed` можно закрепить заголовок и футер.
|
54
54
|
В этом случае при появлении прокрутки контент будет скроллиться под них.
|
55
55
|
|
56
56
|
```tsx live
|
@@ -140,4 +140,4 @@ export function App() {
|
|
140
140
|
</>
|
141
141
|
);
|
142
142
|
}
|
143
|
-
```
|
143
|
+
```
|
@@ -14,7 +14,7 @@ var _Tooltip = /*#__PURE__*/require("./Tooltip.styles");
|
|
14
14
|
var _base = /*#__PURE__*/require("./variations/_view/base");
|
15
15
|
var _base2 = /*#__PURE__*/require("./variations/_size/base");
|
16
16
|
var _Tooltip2 = /*#__PURE__*/require("./Tooltip.tokens");
|
17
|
-
var _excluded = ["id", "text", "
|
17
|
+
var _excluded = ["id", "text", "opened", "isVisible", "hasArrow", "arrow", "animated", "offset", "minWidth", "maxWidth", "placement", "usePortal", "target", "children", "onDismiss", "view", "size", "contentLeft", "zIndex", "className", "style"];
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
19
19
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
20
20
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
@@ -44,7 +44,7 @@ var tooltipRoot = exports.tooltipRoot = function tooltipRoot(Root) {
|
|
44
44
|
return /*#__PURE__*/(0, _react.forwardRef)(function (_ref, outerRef) {
|
45
45
|
var id = _ref.id,
|
46
46
|
text = _ref.text,
|
47
|
-
|
47
|
+
opened = _ref.opened,
|
48
48
|
isVisible = _ref.isVisible,
|
49
49
|
_ref$hasArrow = _ref.hasArrow,
|
50
50
|
hasArrow = _ref$hasArrow === void 0 ? true : _ref$hasArrow,
|
@@ -75,7 +75,7 @@ var tooltipRoot = exports.tooltipRoot = function tooltipRoot(Root) {
|
|
75
75
|
setRef = _useState2[1];
|
76
76
|
|
77
77
|
// TODO убрать после отказа от старого API
|
78
|
-
var innerIsOpen = isVisible ||
|
78
|
+
var innerIsOpen = isVisible || opened;
|
79
79
|
var innerHasArrow = arrow || hasArrow;
|
80
80
|
var showTooltip = innerIsOpen && Boolean(text === null || text === void 0 ? void 0 : text.length);
|
81
81
|
var animatedClass = animated ? _Tooltip2.classes.animated : undefined;
|
@@ -92,7 +92,7 @@ var tooltipRoot = exports.tooltipRoot = function tooltipRoot(Root) {
|
|
92
92
|
}, []);
|
93
93
|
var withContentLeft = contentLeft ? _Tooltip2.classes.hasContentLeft : undefined;
|
94
94
|
return /*#__PURE__*/_react["default"].createElement(StyledPopover, _extends({
|
95
|
-
|
95
|
+
opened: showTooltip,
|
96
96
|
placement: placement,
|
97
97
|
offset: offset,
|
98
98
|
zIndex: zIndex,
|
@@ -23,7 +23,7 @@ import { IconApps } from '@salutejs/plasma-icons';
|
|
23
23
|
export function App() {
|
24
24
|
return (
|
25
25
|
<div style=\{{marginLeft: '100px',marginBottom: '35px'}}>
|
26
|
-
<Tooltip target={( <IconApps />)} text="Высокое качество воспроизведения" placement="bottom" hasArrow
|
26
|
+
<Tooltip target={( <IconApps />)} text="Высокое качество воспроизведения" placement="bottom" hasArrow opened />
|
27
27
|
</div>
|
28
28
|
);
|
29
29
|
}
|
package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx
CHANGED
@@ -71,7 +71,7 @@ const StoryDefault = ({
|
|
71
71
|
|
72
72
|
return (
|
73
73
|
<DatePicker
|
74
|
-
|
74
|
+
opened={isOpen}
|
75
75
|
size={size}
|
76
76
|
valueError={valueError}
|
77
77
|
valueSuccess={valueSuccess}
|
@@ -178,7 +178,7 @@ const StoryRange = ({
|
|
178
178
|
<DatePickerRange
|
179
179
|
size={size}
|
180
180
|
ref={rangeRef}
|
181
|
-
|
181
|
+
opened={isOpen}
|
182
182
|
firstValueError={firstValueError}
|
183
183
|
firstValueSuccess={firstValueSuccess}
|
184
184
|
secondValueError={secondValueError}
|
@@ -289,7 +289,7 @@ const StoryDeferred = ({
|
|
289
289
|
<h3>Асинхронная установка даты по умолчанию</h3>
|
290
290
|
<DatePicker
|
291
291
|
defaultDate={defVal}
|
292
|
-
|
292
|
+
opened={isOpen}
|
293
293
|
size={size}
|
294
294
|
valueError={valueError}
|
295
295
|
valueSuccess={valueSuccess}
|
@@ -144,7 +144,7 @@ const StoryModalDemo = ({ placement, offsetX, offsetY, ...rest }: StoryModalProp
|
|
144
144
|
frame="theme-root"
|
145
145
|
withAnimation
|
146
146
|
onClose={() => setIsOpenA(false)}
|
147
|
-
|
147
|
+
opened={isOpenA}
|
148
148
|
placement={placement}
|
149
149
|
offset={[offsetX, offsetY]}
|
150
150
|
{...rest}
|
@@ -158,7 +158,7 @@ const StoryModalDemo = ({ placement, offsetX, offsetY, ...rest }: StoryModalProp
|
|
158
158
|
id="modalB"
|
159
159
|
frame="theme-root"
|
160
160
|
onClose={() => setIsOpenB(false)}
|
161
|
-
|
161
|
+
opened={isOpenB}
|
162
162
|
placement="left"
|
163
163
|
offset={[offsetX, offsetY]}
|
164
164
|
{...rest}
|
@@ -174,7 +174,7 @@ const StoryModalDemo = ({ placement, offsetX, offsetY, ...rest }: StoryModalProp
|
|
174
174
|
id="modalC"
|
175
175
|
frame="theme-root"
|
176
176
|
onClose={() => setIsOpenC(false)}
|
177
|
-
|
177
|
+
opened={isOpenC}
|
178
178
|
placement="top"
|
179
179
|
offset={[offsetX, offsetY]}
|
180
180
|
{...rest}
|
@@ -289,7 +289,7 @@ const StoryModalAnimationDemo = ({ placement, offsetX, offsetY, ...rest }: Story
|
|
289
289
|
frame="theme-root"
|
290
290
|
withAnimation
|
291
291
|
onClose={() => setIsOpen(false)}
|
292
|
-
|
292
|
+
opened={isOpen}
|
293
293
|
placement={placement}
|
294
294
|
offset={[offsetX, offsetY]}
|
295
295
|
initialFocusRef={ref}
|
package/styled-components/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx
CHANGED
@@ -160,7 +160,7 @@ const StoryWithModal = ({ timeout }: StoryWithModalProps) => {
|
|
160
160
|
<NotificationsProvider>
|
161
161
|
<PopupProvider>
|
162
162
|
<Button text="Open modal" onClick={() => setIsModalOpen(true)} />
|
163
|
-
<Modal frame="theme-root"
|
163
|
+
<Modal frame="theme-root" opened={isModalOpen} onClose={() => setIsModalOpen(false)}>
|
164
164
|
<div>Hello!</div>
|
165
165
|
<Button view="primary" text="Add notification" onClick={handleClick} />
|
166
166
|
</Modal>
|
@@ -138,7 +138,7 @@ const StoryPopupDemo = ({ placement, offsetX, offsetY }: StoryPopupProps) => {
|
|
138
138
|
id="popupA"
|
139
139
|
frame={ref}
|
140
140
|
withAnimation
|
141
|
-
|
141
|
+
opened={isOpenA}
|
142
142
|
placement={placement}
|
143
143
|
offset={[offsetX, offsetY]}
|
144
144
|
>
|
@@ -154,7 +154,7 @@ const StoryPopupDemo = ({ placement, offsetX, offsetY }: StoryPopupProps) => {
|
|
154
154
|
id="popupB"
|
155
155
|
frame="theme-root"
|
156
156
|
withAnimation
|
157
|
-
|
157
|
+
opened={isOpenB}
|
158
158
|
placement={placement}
|
159
159
|
offset={[offsetX, offsetY]}
|
160
160
|
>
|
@@ -194,7 +194,7 @@ const StoryComplex = ({
|
|
194
194
|
<NotificationsProvider>
|
195
195
|
<PopupProvider>
|
196
196
|
<Button text="Открыть модальное окно" onClick={() => setIsModalOpen(true)} />
|
197
|
-
<Modal frame="theme-root"
|
197
|
+
<Modal frame="theme-root" opened={isModalOpen} onClose={() => setIsModalOpen(false)}>
|
198
198
|
<div>Hello!</div>
|
199
199
|
<Button view="default" text="Add notification" onClick={handleShowNotification} />
|
200
200
|
</Modal>
|
@@ -57,7 +57,7 @@ const StoryDefault = ({ size }: TooltipProps) => {
|
|
57
57
|
target={<Button>Btn</Button>}
|
58
58
|
placement="left"
|
59
59
|
size={size}
|
60
|
-
|
60
|
+
opened
|
61
61
|
hasArrow
|
62
62
|
text="left"
|
63
63
|
frame="theme-root"
|
@@ -65,7 +65,7 @@ const StoryDefault = ({ size }: TooltipProps) => {
|
|
65
65
|
}
|
66
66
|
placement="top-start"
|
67
67
|
size={size}
|
68
|
-
|
68
|
+
opened
|
69
69
|
hasArrow
|
70
70
|
text="top-start"
|
71
71
|
frame="theme-root"
|
@@ -74,7 +74,7 @@ const StoryDefault = ({ size }: TooltipProps) => {
|
|
74
74
|
target={<Button>Btn</Button>}
|
75
75
|
placement="top"
|
76
76
|
size={size}
|
77
|
-
|
77
|
+
opened
|
78
78
|
hasArrow
|
79
79
|
text="top"
|
80
80
|
frame="theme-root"
|
@@ -85,7 +85,7 @@ const StoryDefault = ({ size }: TooltipProps) => {
|
|
85
85
|
target={<Button>Btn</Button>}
|
86
86
|
placement="right"
|
87
87
|
size={size}
|
88
|
-
|
88
|
+
opened
|
89
89
|
hasArrow
|
90
90
|
text="right"
|
91
91
|
frame="theme-root"
|
@@ -93,7 +93,7 @@ const StoryDefault = ({ size }: TooltipProps) => {
|
|
93
93
|
}
|
94
94
|
placement="top-end"
|
95
95
|
size={size}
|
96
|
-
|
96
|
+
opened
|
97
97
|
hasArrow
|
98
98
|
text="top-end"
|
99
99
|
frame="theme-root"
|
@@ -102,7 +102,7 @@ const StoryDefault = ({ size }: TooltipProps) => {
|
|
102
102
|
target={<Button>Btn</Button>}
|
103
103
|
placement="bottom-start"
|
104
104
|
size={size}
|
105
|
-
|
105
|
+
opened
|
106
106
|
hasArrow
|
107
107
|
text="bottom-start"
|
108
108
|
frame="theme-root"
|
@@ -111,7 +111,7 @@ const StoryDefault = ({ size }: TooltipProps) => {
|
|
111
111
|
target={<Button>Btn</Button>}
|
112
112
|
placement="bottom"
|
113
113
|
size={size}
|
114
|
-
|
114
|
+
opened
|
115
115
|
hasArrow
|
116
116
|
text="bottom"
|
117
117
|
frame="theme-root"
|
@@ -120,7 +120,7 @@ const StoryDefault = ({ size }: TooltipProps) => {
|
|
120
120
|
target={<Button>Btn</Button>}
|
121
121
|
placement="bottom-end"
|
122
122
|
size={size}
|
123
|
-
|
123
|
+
opened
|
124
124
|
hasArrow
|
125
125
|
text="bottom-end"
|
126
126
|
frame="theme-root"
|
@@ -170,7 +170,7 @@ const StoryLive = (args: TooltipProps) => {
|
|
170
170
|
{...args}
|
171
171
|
id="example-tooltip-firstname"
|
172
172
|
text={text}
|
173
|
-
|
173
|
+
opened
|
174
174
|
frame="theme-root"
|
175
175
|
/>
|
176
176
|
</StyledRow>
|
package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx
CHANGED
@@ -71,7 +71,7 @@ const StoryDefault = ({
|
|
71
71
|
|
72
72
|
return (
|
73
73
|
<DatePicker
|
74
|
-
|
74
|
+
opened={isOpen}
|
75
75
|
size={size}
|
76
76
|
valueError={valueError}
|
77
77
|
valueSuccess={valueSuccess}
|
@@ -177,7 +177,7 @@ const StoryRange = ({
|
|
177
177
|
<DatePickerRange
|
178
178
|
size={size}
|
179
179
|
ref={rangeRef}
|
180
|
-
|
180
|
+
opened={isOpen}
|
181
181
|
firstValueError={firstValueError}
|
182
182
|
firstValueSuccess={firstValueSuccess}
|
183
183
|
secondValueError={secondValueError}
|
@@ -288,7 +288,7 @@ const StoryDeferred = ({
|
|
288
288
|
<h3>Асинхронная установка даты по умолчанию</h3>
|
289
289
|
<DatePicker
|
290
290
|
defaultDate={defVal}
|
291
|
-
|
291
|
+
opened={isOpen}
|
292
292
|
size={size}
|
293
293
|
valueError={valueError}
|
294
294
|
valueSuccess={valueSuccess}
|
@@ -144,7 +144,7 @@ const StoryModalDemo = ({ placement, offsetX, offsetY, ...rest }: StoryModalProp
|
|
144
144
|
frame="theme-root"
|
145
145
|
withAnimation
|
146
146
|
onClose={() => setIsOpenA(false)}
|
147
|
-
|
147
|
+
opened={isOpenA}
|
148
148
|
placement={placement}
|
149
149
|
offset={[offsetX, offsetY]}
|
150
150
|
{...rest}
|
@@ -158,7 +158,7 @@ const StoryModalDemo = ({ placement, offsetX, offsetY, ...rest }: StoryModalProp
|
|
158
158
|
id="modalB"
|
159
159
|
frame="theme-root"
|
160
160
|
onClose={() => setIsOpenB(false)}
|
161
|
-
|
161
|
+
opened={isOpenB}
|
162
162
|
placement="left"
|
163
163
|
offset={[offsetX, offsetY]}
|
164
164
|
{...rest}
|
@@ -174,7 +174,7 @@ const StoryModalDemo = ({ placement, offsetX, offsetY, ...rest }: StoryModalProp
|
|
174
174
|
id="modalC"
|
175
175
|
frame="theme-root"
|
176
176
|
onClose={() => setIsOpenC(false)}
|
177
|
-
|
177
|
+
opened={isOpenC}
|
178
178
|
placement="top"
|
179
179
|
offset={[offsetX, offsetY]}
|
180
180
|
{...rest}
|
@@ -289,7 +289,7 @@ const StoryModalAnimationDemo = ({ placement, offsetX, offsetY, ...rest }: Story
|
|
289
289
|
frame="theme-root"
|
290
290
|
withAnimation
|
291
291
|
onClose={() => setIsOpen(false)}
|
292
|
-
|
292
|
+
opened={isOpen}
|
293
293
|
placement={placement}
|
294
294
|
offset={[offsetX, offsetY]}
|
295
295
|
initialFocusRef={ref}
|
package/styled-components/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx
CHANGED
@@ -160,7 +160,7 @@ const StoryWithModal = ({ timeout }: StoryWithModalProps) => {
|
|
160
160
|
<NotificationsProvider>
|
161
161
|
<PopupProvider>
|
162
162
|
<Button text="Open modal" onClick={() => setIsModalOpen(true)} />
|
163
|
-
<Modal frame="theme-root"
|
163
|
+
<Modal frame="theme-root" opened={isModalOpen} onClose={() => setIsModalOpen(false)}>
|
164
164
|
<div>Hello!</div>
|
165
165
|
<Button view="primary" text="Add notification" onClick={handleClick} />
|
166
166
|
</Modal>
|
@@ -138,7 +138,7 @@ const StoryPopupDemo = ({ placement, offsetX, offsetY }: StoryPopupProps) => {
|
|
138
138
|
id="popupA"
|
139
139
|
frame={ref}
|
140
140
|
withAnimation
|
141
|
-
|
141
|
+
opened={isOpenA}
|
142
142
|
placement={placement}
|
143
143
|
offset={[offsetX, offsetY]}
|
144
144
|
>
|
@@ -154,7 +154,7 @@ const StoryPopupDemo = ({ placement, offsetX, offsetY }: StoryPopupProps) => {
|
|
154
154
|
id="popupB"
|
155
155
|
frame="theme-root"
|
156
156
|
withAnimation
|
157
|
-
|
157
|
+
opened={isOpenB}
|
158
158
|
placement={placement}
|
159
159
|
offset={[offsetX, offsetY]}
|
160
160
|
>
|
@@ -194,7 +194,7 @@ const StoryComplex = ({
|
|
194
194
|
<NotificationsProvider>
|
195
195
|
<PopupProvider>
|
196
196
|
<Button text="Открыть модальное окно" onClick={() => setIsModalOpen(true)} />
|
197
|
-
<Modal frame="theme-root"
|
197
|
+
<Modal frame="theme-root" opened={isModalOpen} onClose={() => setIsModalOpen(false)}>
|
198
198
|
<div>Hello!</div>
|
199
199
|
<Button view="default" text="Add notification" onClick={handleShowNotification} />
|
200
200
|
</Modal>
|
@@ -57,7 +57,7 @@ const StoryDefault = ({ size }: TooltipProps) => {
|
|
57
57
|
target={<Button>Btn</Button>}
|
58
58
|
placement="left"
|
59
59
|
size={size}
|
60
|
-
|
60
|
+
opened
|
61
61
|
hasArrow
|
62
62
|
text="left"
|
63
63
|
frame="theme-root"
|
@@ -65,7 +65,7 @@ const StoryDefault = ({ size }: TooltipProps) => {
|
|
65
65
|
}
|
66
66
|
placement="top-start"
|
67
67
|
size={size}
|
68
|
-
|
68
|
+
opened
|
69
69
|
hasArrow
|
70
70
|
text="top-start"
|
71
71
|
frame="theme-root"
|
@@ -74,7 +74,7 @@ const StoryDefault = ({ size }: TooltipProps) => {
|
|
74
74
|
target={<Button>Btn</Button>}
|
75
75
|
placement="top"
|
76
76
|
size={size}
|
77
|
-
|
77
|
+
opened
|
78
78
|
hasArrow
|
79
79
|
text="top"
|
80
80
|
frame="theme-root"
|
@@ -85,7 +85,7 @@ const StoryDefault = ({ size }: TooltipProps) => {
|
|
85
85
|
target={<Button>Btn</Button>}
|
86
86
|
placement="right"
|
87
87
|
size={size}
|
88
|
-
|
88
|
+
opened
|
89
89
|
hasArrow
|
90
90
|
text="right"
|
91
91
|
frame="theme-root"
|
@@ -93,7 +93,7 @@ const StoryDefault = ({ size }: TooltipProps) => {
|
|
93
93
|
}
|
94
94
|
placement="top-end"
|
95
95
|
size={size}
|
96
|
-
|
96
|
+
opened
|
97
97
|
hasArrow
|
98
98
|
text="top-end"
|
99
99
|
frame="theme-root"
|
@@ -102,7 +102,7 @@ const StoryDefault = ({ size }: TooltipProps) => {
|
|
102
102
|
target={<Button>Btn</Button>}
|
103
103
|
placement="bottom-start"
|
104
104
|
size={size}
|
105
|
-
|
105
|
+
opened
|
106
106
|
hasArrow
|
107
107
|
text="bottom-start"
|
108
108
|
frame="theme-root"
|
@@ -111,7 +111,7 @@ const StoryDefault = ({ size }: TooltipProps) => {
|
|
111
111
|
target={<Button>Btn</Button>}
|
112
112
|
placement="bottom"
|
113
113
|
size={size}
|
114
|
-
|
114
|
+
opened
|
115
115
|
hasArrow
|
116
116
|
text="bottom"
|
117
117
|
frame="theme-root"
|
@@ -120,7 +120,7 @@ const StoryDefault = ({ size }: TooltipProps) => {
|
|
120
120
|
target={<Button>Btn</Button>}
|
121
121
|
placement="bottom-end"
|
122
122
|
size={size}
|
123
|
-
|
123
|
+
opened
|
124
124
|
hasArrow
|
125
125
|
text="bottom-end"
|
126
126
|
frame="theme-root"
|
@@ -170,7 +170,7 @@ const StoryLive = (args: TooltipProps) => {
|
|
170
170
|
{...args}
|
171
171
|
id="example-tooltip-firstname"
|
172
172
|
text={text}
|
173
|
-
|
173
|
+
opened
|
174
174
|
frame="theme-root"
|
175
175
|
/>
|
176
176
|
</StyledRow>
|
@@ -143,7 +143,7 @@ const StoryModalDemo = ({ placement, offsetX, offsetY, ...rest }: StoryModalProp
|
|
143
143
|
frame="theme-root"
|
144
144
|
withAnimation
|
145
145
|
onClose={() => setIsOpenA(false)}
|
146
|
-
|
146
|
+
opened={isOpenA}
|
147
147
|
placement={placement}
|
148
148
|
offset={[offsetX, offsetY]}
|
149
149
|
{...rest}
|
@@ -157,7 +157,7 @@ const StoryModalDemo = ({ placement, offsetX, offsetY, ...rest }: StoryModalProp
|
|
157
157
|
id="modalB"
|
158
158
|
frame="theme-root"
|
159
159
|
onClose={() => setIsOpenB(false)}
|
160
|
-
|
160
|
+
opened={isOpenB}
|
161
161
|
placement="left"
|
162
162
|
offset={[offsetX, offsetY]}
|
163
163
|
{...rest}
|
@@ -173,7 +173,7 @@ const StoryModalDemo = ({ placement, offsetX, offsetY, ...rest }: StoryModalProp
|
|
173
173
|
id="modalC"
|
174
174
|
frame="theme-root"
|
175
175
|
onClose={() => setIsOpenC(false)}
|
176
|
-
|
176
|
+
opened={isOpenC}
|
177
177
|
placement="top"
|
178
178
|
offset={[offsetX, offsetY]}
|
179
179
|
{...rest}
|
package/styled-components/cjs/examples/sds_engineer/components/Notification/Notification.stories.tsx
CHANGED
@@ -142,7 +142,7 @@ const StoryWithModal = ({ timeout }: StoryWithModalProps) => {
|
|
142
142
|
<NotificationsProvider>
|
143
143
|
<PopupProvider>
|
144
144
|
<Button text="Open modal" onClick={() => setIsModalOpen(true)} />
|
145
|
-
<Modal frame="theme-root"
|
145
|
+
<Modal frame="theme-root" opened={isModalOpen} onClose={() => setIsModalOpen(false)}>
|
146
146
|
<div>Hello!</div>
|
147
147
|
<Button view="primary" text="Add notification" onClick={handleClick} />
|
148
148
|
</Modal>
|