@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
@@ -1,5 +1,5 @@
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
2
|
-
var _excluded = ["target", "children", "isOpen", "trigger", "hasArrow", "frame", "className", "placement", "offset", "zIndex", "isFocusTrapped", "closeOnEsc", "preventOverflow", "usePortal", "view", "onToggle", "closeOnOverlayClick"];
|
2
|
+
var _excluded = ["target", "children", "isOpen", "opened", "trigger", "hasArrow", "frame", "className", "placement", "offset", "zIndex", "isFocusTrapped", "closeOnEsc", "preventOverflow", "usePortal", "view", "onToggle", "closeOnOverlayClick"];
|
3
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
@@ -35,6 +35,7 @@ export var popoverRoot = function popoverRoot(Root) {
|
|
35
35
|
var target = _ref.target,
|
36
36
|
children = _ref.children,
|
37
37
|
isOpen = _ref.isOpen,
|
38
|
+
opened = _ref.opened,
|
38
39
|
_ref$trigger = _ref.trigger,
|
39
40
|
trigger = _ref$trigger === void 0 ? 'click' : _ref$trigger,
|
40
41
|
hasArrow = _ref.hasArrow,
|
@@ -58,11 +59,12 @@ export var popoverRoot = function popoverRoot(Root) {
|
|
58
59
|
onToggle = _ref.onToggle,
|
59
60
|
closeOnOverlayClick = _ref.closeOnOverlayClick,
|
60
61
|
rest = _objectWithoutProperties(_ref, _excluded);
|
62
|
+
var innerIsOpen = Boolean(isOpen || opened);
|
61
63
|
var rootRef = useRef(null);
|
62
64
|
var popoverRef = useRef(null);
|
63
65
|
var handleRef = useForkRef(rootRef, outerRootRef);
|
64
66
|
var portalRef = useRef(null);
|
65
|
-
var trapRef = useFocusTrap(
|
67
|
+
var trapRef = useFocusTrap(innerIsOpen && isFocusTrapped);
|
66
68
|
var popoverForkRef = useForkRef(popoverRef, trapRef);
|
67
69
|
var _useState = useState(null),
|
68
70
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -74,8 +76,8 @@ export var popoverRoot = function popoverRoot(Root) {
|
|
74
76
|
var isAutoArray = Array.isArray(placement);
|
75
77
|
var isAuto = isAutoArray || placement.startsWith('auto');
|
76
78
|
var initialStyles = {
|
77
|
-
visibility:
|
78
|
-
opacity:
|
79
|
+
visibility: innerIsOpen ? 'visible' : 'hidden',
|
80
|
+
opacity: innerIsOpen ? 1 : 0
|
79
81
|
};
|
80
82
|
var _usePopper = usePopper(rootRef.current, popoverRef.current, {
|
81
83
|
// TODO: #1121
|
@@ -108,12 +110,12 @@ export var popoverRoot = function popoverRoot(Root) {
|
|
108
110
|
attributes = _usePopper.attributes,
|
109
111
|
forceUpdate = _usePopper.forceUpdate;
|
110
112
|
var onEscape = useCallback(function (event) {
|
111
|
-
if (
|
113
|
+
if (innerIsOpen && closeOnEsc && event.keyCode === ESCAPE_KEYCODE) {
|
112
114
|
onToggle === null || onToggle === void 0 || onToggle(false, event);
|
113
115
|
}
|
114
|
-
}, [closeOnEsc,
|
116
|
+
}, [closeOnEsc, innerIsOpen, onToggle]);
|
115
117
|
var onDocumentClick = useCallback(function (event) {
|
116
|
-
if (
|
118
|
+
if (innerIsOpen && closeOnOverlayClick && onToggle) {
|
117
119
|
var _rootRef$current, _popoverRef$current;
|
118
120
|
var targetIsRoot = event.target === rootRef.current;
|
119
121
|
var rootHasTarget = (_rootRef$current = rootRef.current) === null || _rootRef$current === void 0 ? void 0 : _rootRef$current.contains(event.target);
|
@@ -122,17 +124,17 @@ export var popoverRoot = function popoverRoot(Root) {
|
|
122
124
|
onToggle(false, event);
|
123
125
|
}
|
124
126
|
}
|
125
|
-
}, [closeOnOverlayClick,
|
127
|
+
}, [closeOnOverlayClick, innerIsOpen, onToggle]);
|
126
128
|
var onClick = useCallback(function (event) {
|
127
129
|
if (trigger === 'click') {
|
128
130
|
var _popoverRef$current2;
|
129
131
|
var targetIsPopover = event.target === popoverRef.current;
|
130
132
|
var rootHasTarget = (_popoverRef$current2 = popoverRef.current) === null || _popoverRef$current2 === void 0 ? void 0 : _popoverRef$current2.contains(event.target);
|
131
133
|
if (!targetIsPopover && !rootHasTarget) {
|
132
|
-
onToggle === null || onToggle === void 0 || onToggle(!
|
134
|
+
onToggle === null || onToggle === void 0 || onToggle(!innerIsOpen, event);
|
133
135
|
}
|
134
136
|
}
|
135
|
-
}, [trigger,
|
137
|
+
}, [trigger, innerIsOpen, onToggle]);
|
136
138
|
var onMouseEnter = useCallback(function (event) {
|
137
139
|
if (trigger === 'hover') {
|
138
140
|
onToggle === null || onToggle === void 0 || onToggle(true, event);
|
@@ -158,13 +160,13 @@ export var popoverRoot = function popoverRoot(Root) {
|
|
158
160
|
return function () {
|
159
161
|
return document.removeEventListener('click', onDocumentClick);
|
160
162
|
};
|
161
|
-
}, [
|
163
|
+
}, [innerIsOpen, onToggle]);
|
162
164
|
useEffect(function () {
|
163
165
|
window.addEventListener('keydown', onEscape);
|
164
166
|
return function () {
|
165
167
|
return window.removeEventListener('keydown', onEscape);
|
166
168
|
};
|
167
|
-
}, [closeOnEsc,
|
169
|
+
}, [closeOnEsc, innerIsOpen, onToggle]);
|
168
170
|
useEffect(function () {
|
169
171
|
var portal = document.getElementById(POPOVER_PORTAL_ID);
|
170
172
|
if (typeof frame !== 'string' && frame && frame.current) {
|
@@ -192,7 +194,7 @@ export var popoverRoot = function popoverRoot(Root) {
|
|
192
194
|
forceRender(true);
|
193
195
|
}, []);
|
194
196
|
useEffect(function () {
|
195
|
-
if (!
|
197
|
+
if (!innerIsOpen || !forceUpdate) {
|
196
198
|
return;
|
197
199
|
}
|
198
200
|
|
@@ -203,7 +205,7 @@ export var popoverRoot = function popoverRoot(Root) {
|
|
203
205
|
* вызов метода в очередь микрозадач.
|
204
206
|
*/
|
205
207
|
Promise.resolve().then(forceUpdate);
|
206
|
-
}, [
|
208
|
+
}, [innerIsOpen, children, forceUpdate]);
|
207
209
|
return /*#__PURE__*/React.createElement(StyledWrapper, {
|
208
210
|
className: classes.wrapper,
|
209
211
|
onMouseEnter: onMouseEnter,
|
@@ -223,7 +225,7 @@ export var popoverRoot = function popoverRoot(Root) {
|
|
223
225
|
className: classes.root,
|
224
226
|
ref: popoverForkRef,
|
225
227
|
style: _objectSpread(_objectSpread(_objectSpread({}, styles.popper), {
|
226
|
-
display:
|
228
|
+
display: innerIsOpen ? 'block' : 'none'
|
227
229
|
}), initialStyles),
|
228
230
|
zIndex: zIndex
|
229
231
|
}), hasArrow && /*#__PURE__*/React.createElement(StyledArrow, _extends({
|
@@ -1,4 +1,4 @@
|
|
1
|
-
var _excluded = ["id", "isOpen", "placement", "offset", "frame", "children", "overlay", "role", "zIndex", "popupInfo", "withAnimation", "className"];
|
1
|
+
var _excluded = ["id", "isOpen", "opened", "placement", "offset", "frame", "children", "overlay", "role", "zIndex", "popupInfo", "withAnimation", "className"];
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
3
3
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
4
4
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
@@ -82,6 +82,8 @@ export var popupRoot = function popupRoot(Root) {
|
|
82
82
|
var id = _ref.id,
|
83
83
|
_ref$isOpen = _ref.isOpen,
|
84
84
|
isOpen = _ref$isOpen === void 0 ? false : _ref$isOpen,
|
85
|
+
_ref$opened = _ref.opened,
|
86
|
+
opened = _ref$opened === void 0 ? false : _ref$opened,
|
85
87
|
_ref$placement = _ref.placement,
|
86
88
|
placement = _ref$placement === void 0 ? 'center' : _ref$placement,
|
87
89
|
_ref$offset = _ref.offset,
|
@@ -97,10 +99,11 @@ export var popupRoot = function popupRoot(Root) {
|
|
97
99
|
withAnimation = _ref$withAnimation === void 0 ? false : _ref$withAnimation,
|
98
100
|
className = _ref.className,
|
99
101
|
rest = _objectWithoutProperties(_ref, _excluded);
|
102
|
+
var innerIsOpen = isOpen || opened;
|
100
103
|
var uniqId = safeUseId();
|
101
104
|
var innerId = id || uniqId;
|
102
105
|
var _usePopup = usePopup({
|
103
|
-
isOpen:
|
106
|
+
isOpen: innerIsOpen,
|
104
107
|
id: innerId,
|
105
108
|
popupInfo: popupInfo,
|
106
109
|
withAnimation: withAnimation
|
@@ -142,7 +145,7 @@ export var popupRoot = function popupRoot(Root) {
|
|
142
145
|
*/
|
143
146
|
forceRender(true);
|
144
147
|
}, []);
|
145
|
-
if (!isVisible && !
|
148
|
+
if (!isVisible && !innerIsOpen) {
|
146
149
|
return null;
|
147
150
|
}
|
148
151
|
var cls = cx(className, animationInfo !== null && animationInfo !== void 0 && animationInfo.endAnimation ? classes.endAnimation : '', animationInfo !== null && animationInfo !== void 0 && animationInfo.endTransition ? classes.endTransition : '');
|
@@ -90,7 +90,7 @@ export function App() {
|
|
90
90
|
<Popup
|
91
91
|
id="popupA"
|
92
92
|
frame={ref}
|
93
|
-
|
93
|
+
opened={isOpenA}
|
94
94
|
placement="center"
|
95
95
|
offset={[0, 0]}
|
96
96
|
>
|
@@ -105,7 +105,7 @@ export function App() {
|
|
105
105
|
<Popup
|
106
106
|
id="popupB"
|
107
107
|
frame="document"
|
108
|
-
|
108
|
+
opened={isOpenB}
|
109
109
|
placement="center"
|
110
110
|
offset={[0, 0]}
|
111
111
|
>
|
@@ -191,7 +191,7 @@ const StyledPopupAnimation = styled(Popup)`
|
|
191
191
|
id="popup-id"
|
192
192
|
withAnimation
|
193
193
|
frame="document"
|
194
|
-
|
194
|
+
opened={isOpen}
|
195
195
|
placement="center"
|
196
196
|
offset={[0, 0]}
|
197
197
|
>
|
@@ -234,7 +234,7 @@ export var selectRoot = function selectRoot(Root) {
|
|
234
234
|
}
|
235
235
|
}, /*#__PURE__*/React.createElement(StyledPopover, {
|
236
236
|
ref: targetRef,
|
237
|
-
|
237
|
+
opened: isCurrentListOpen,
|
238
238
|
placement: getPlacements(placement),
|
239
239
|
usePortal: Boolean(portal),
|
240
240
|
frame: portal,
|
@@ -29,7 +29,7 @@ export var Inner = function Inner(_ref) {
|
|
29
29
|
if (!isEmpty(item === null || item === void 0 ? void 0 : item.items)) {
|
30
30
|
var _item$items;
|
31
31
|
return /*#__PURE__*/React.createElement(StyledPopover, {
|
32
|
-
|
32
|
+
opened: isCurrentListOpen,
|
33
33
|
usePortal: false,
|
34
34
|
placement: "right-start",
|
35
35
|
trigger: "click",
|
@@ -4,7 +4,7 @@ import { classes } from '../../../../Select.tokens';
|
|
4
4
|
import { getButtonLabel, sizeToIconSize } from '../../../../utils';
|
5
5
|
import { StyledButton, StyledArrow, Label, ButtonWrapper, IconArrowWrapper } from './Button.styles';
|
6
6
|
export var Button = function Button(_ref) {
|
7
|
-
var
|
7
|
+
var isOpen = _ref.isOpen,
|
8
8
|
value = _ref.value,
|
9
9
|
valueToItemMap = _ref.valueToItemMap,
|
10
10
|
onKeyDown = _ref.onKeyDown,
|
@@ -15,7 +15,7 @@ export var Button = function Button(_ref) {
|
|
15
15
|
focusedPath = _ref.focusedPath,
|
16
16
|
focusedToValueMap = _ref.focusedToValueMap,
|
17
17
|
selectProps = _ref.selectProps;
|
18
|
-
var withArrowInverse =
|
18
|
+
var withArrowInverse = isOpen ? classes.arrowInverse : undefined;
|
19
19
|
var getActiveDescendant = function getActiveDescendant() {
|
20
20
|
var _focusedToValueMap$ge;
|
21
21
|
var focusedPathAsString = focusedPath.reduce(function (acc, n) {
|
@@ -26,7 +26,7 @@ export var Button = function Button(_ref) {
|
|
26
26
|
return /*#__PURE__*/React.createElement(ButtonWrapper, null, /*#__PURE__*/React.createElement(StyledButton, {
|
27
27
|
stretching: "filled",
|
28
28
|
onKeyDown: onKeyDown,
|
29
|
-
className:
|
29
|
+
className: isOpen ? classes.selectWithoutBoxShadow : undefined,
|
30
30
|
disabled: disabled,
|
31
31
|
contentRight: /*#__PURE__*/React.createElement(IconArrowWrapper, null, /*#__PURE__*/React.createElement(StyledArrow, {
|
32
32
|
size: sizeToIconSize(size),
|
@@ -35,7 +35,7 @@ export var Button = function Button(_ref) {
|
|
35
35
|
})),
|
36
36
|
role: "combobox",
|
37
37
|
"aria-controls": "tree_level_1",
|
38
|
-
"aria-expanded":
|
38
|
+
"aria-expanded": isOpen,
|
39
39
|
"aria-activedescendant": getActiveDescendant(),
|
40
40
|
"aria-label": label,
|
41
41
|
renderTarget: Boolean(selectProps.renderTarget)
|
@@ -72,7 +72,7 @@ export var Textfield = function Textfield(_ref2) {
|
|
72
72
|
return focusedToValueMap === null || focusedToValueMap === void 0 || (_focusedToValueMap$ge = focusedToValueMap.get(focusedPathAsString)) === null || _focusedToValueMap$ge === void 0 ? void 0 : _focusedToValueMap$ge.value.toString();
|
73
73
|
};
|
74
74
|
return /*#__PURE__*/React.createElement(TextfieldWrapper, {
|
75
|
-
|
75
|
+
isOpen: opened,
|
76
76
|
value: value
|
77
77
|
}, /*#__PURE__*/React.createElement(StyledButton, {
|
78
78
|
stretching: "filled",
|