@salutejs/plasma-new-hope 0.175.1-canary.1506.11553215359.0 → 0.175.1-dev.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Autocomplete/Autocomplete.css +1 -1
- package/cjs/components/Autocomplete/Autocomplete.tokens.js +0 -1
- package/cjs/components/Autocomplete/Autocomplete.tokens.js.map +1 -1
- package/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
- package/cjs/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
- package/cjs/components/Autocomplete/ui/TextField/{TextField.styles_1ye9068.css → TextField.styles_1csckkd.css} +1 -1
- package/cjs/components/Calendar/Calendar.tokens.js +0 -3
- package/cjs/components/Calendar/Calendar.tokens.js.map +1 -1
- package/cjs/components/Calendar/CalendarBase/CalendarBase.css +10 -11
- package/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
- package/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js.map +1 -1
- package/{es/components/Calendar/CalendarBase/CalendarBase.styles_ni8729.css → cjs/components/Calendar/CalendarBase/CalendarBase.styles_1m6uih1.css} +1 -1
- package/cjs/components/Calendar/CalendarDouble/CalendarDouble.css +10 -11
- package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.css +8 -9
- package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +4 -3
- package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +1 -11
- package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
- package/{es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1xijs8w.css → cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1jfelqf.css} +0 -1
- package/cjs/components/Combobox/ComboboxNew/Combobox.css +12 -12
- package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +10 -10
- package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
- package/{es/components/Combobox/ComboboxNew/Combobox.styles_1nqrvms.css → cjs/components/Combobox/ComboboxNew/Combobox.styles_1s09ifw.css} +1 -1
- package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -5
- package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +12 -12
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +12 -12
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
- 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 +7 -21
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/{Item.styles_1njzasn.css → Item.styles_y71664.css} +3 -3
- package/cjs/components/Combobox/ComboboxOld/Combobox.css +28 -14
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +32 -18
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +32 -18
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +32 -18
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +32 -18
- package/cjs/components/DatePicker/DatePicker.tokens.js +0 -5
- package/cjs/components/DatePicker/DatePicker.tokens.js.map +1 -1
- package/cjs/components/DatePicker/DatePickerBase.styles.js +1 -1
- package/cjs/components/DatePicker/DatePickerBase.styles.js.map +1 -1
- package/cjs/components/DatePicker/DatePickerBase.styles_mjc9xz.css +2 -0
- package/cjs/components/DatePicker/RangeDate/RangeDate.css +14 -15
- package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +12 -13
- package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +1 -1
- package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_1gljtdv.css +2 -0
- package/cjs/components/DatePicker/SingleDate/SingleDate.css +14 -15
- package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +1 -1
- package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
- package/{es/components/DatePicker/SingleDate/SingleDate.styles_e72b5o.css → cjs/components/DatePicker/SingleDate/SingleDate.styles_1rrq00l.css} +1 -1
- package/cjs/components/Dropdown/Dropdown.css +30 -16
- package/cjs/components/Dropdown/Dropdown.js +60 -37
- package/cjs/components/Dropdown/Dropdown.js.map +1 -1
- package/cjs/components/Dropdown/Dropdown.styles.js +14 -26
- package/cjs/components/Dropdown/Dropdown.styles.js.map +1 -1
- package/cjs/components/Dropdown/Dropdown.styles_1ix6io8.css +2 -0
- package/cjs/components/Dropdown/Dropdown.tokens.js +24 -3
- package/cjs/components/Dropdown/Dropdown.tokens.js.map +1 -1
- package/cjs/components/Dropdown/FloatingPopover.js +104 -0
- package/cjs/components/Dropdown/FloatingPopover.js.map +1 -0
- package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +17 -51
- package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
- package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.css +46 -6
- package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +29 -18
- package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
- package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +25 -31
- package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
- package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles_17va0nk.css +5 -0
- package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +1 -1
- package/cjs/components/Dropdown/ui/DropdownItemOld/{DropdownItem.styles_12e50g5.css → DropdownItem.styles_1lyg81y.css} +1 -1
- package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.css +4 -4
- package/cjs/components/Dropdown/utils/getItemByFocused.js +13 -0
- package/cjs/components/Dropdown/utils/getItemByFocused.js.map +1 -0
- package/cjs/components/Dropdown/utils/getItemId.js +10 -0
- package/cjs/components/Dropdown/utils/getItemId.js.map +1 -0
- package/cjs/components/Dropdown/utils/getPlacement.js +16 -0
- package/cjs/components/Dropdown/utils/getPlacement.js.map +1 -0
- package/cjs/components/Dropdown/utils/index.js.map +1 -1
- package/cjs/components/Notification/Notification.css +11 -11
- package/cjs/components/Notification/Notification.styles.js +15 -15
- package/cjs/components/Notification/Notification.styles.js.map +1 -1
- package/cjs/components/Notification/{Notification.styles_1g34msm.css → Notification.styles_7h8hp0.css} +1 -1
- package/cjs/components/Notification/Notification.tokens.js +0 -2
- package/cjs/components/Notification/Notification.tokens.js.map +1 -1
- package/cjs/components/Notification/NotificationsProvider.css +11 -11
- package/cjs/components/Pagination/Pagination.css +10 -10
- package/cjs/components/Pagination/Pagination.js +5 -5
- package/cjs/components/Pagination/Pagination.js.map +1 -1
- package/cjs/components/Pagination/Pagination.styles.js +3 -3
- package/cjs/components/Pagination/Pagination.styles.js.map +1 -1
- package/cjs/components/Pagination/{Pagination.styles_1w5oej6.css → Pagination.styles_y6gcva.css} +1 -1
- package/cjs/components/Pagination/Pagination.tokens.js +1 -4
- package/cjs/components/Pagination/Pagination.tokens.js.map +1 -1
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +3 -3
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/{PaginationSelectPerPage.styles_1fesyfv.css → PaginationSelectPerPage.styles_187mk6b.css} +1 -1
- package/cjs/components/Select/Select.js +1 -1
- package/cjs/components/Select/utils/getCorrectHeight.js.map +1 -1
- package/cjs/components/Tabs/tokens.js +1 -7
- package/cjs/components/Tabs/tokens.js.map +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +5 -5
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
- package/{es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_uaaqqg.css → cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_hfqv5b.css} +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +5 -5
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/{VerticalTabItem.styles_1g7zipg.css → VerticalTabItem.styles_16d3lah.css} +1 -1
- package/cjs/hooks/useOutsideClick.js +1 -1
- package/cjs/hooks/useOutsideClick.js.map +1 -1
- package/cjs/index.css +71 -74
- package/emotion/cjs/components/Autocomplete/Autocomplete.tokens.js +0 -1
- package/emotion/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
- package/emotion/cjs/components/Calendar/Calendar.tokens.js +0 -3
- package/emotion/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js +2 -2
- package/emotion/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +3 -3
- package/emotion/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +17 -22
- package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +7 -7
- package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -5
- package/emotion/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
- package/emotion/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +15 -21
- package/emotion/cjs/components/DatePicker/DatePicker.tokens.js +0 -5
- package/emotion/cjs/components/DatePicker/DatePickerBase.styles.js +3 -3
- package/emotion/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +5 -5
- package/emotion/cjs/components/Dropdown/Dropdown.js +58 -37
- package/emotion/cjs/components/Dropdown/Dropdown.styles.js +9 -25
- package/emotion/cjs/components/Dropdown/Dropdown.tokens.js +36 -4
- package/emotion/cjs/components/Dropdown/FloatingPopover.js +109 -0
- package/emotion/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +17 -51
- package/emotion/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +29 -18
- package/emotion/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +21 -41
- package/emotion/cjs/components/Dropdown/utils/getItemByFocused.js +12 -0
- package/emotion/cjs/components/Dropdown/utils/getItemId.js +9 -0
- package/emotion/cjs/components/Dropdown/utils/getPlacement.js +15 -0
- package/emotion/cjs/components/Dropdown/utils/index.js +23 -1
- package/emotion/cjs/components/Notification/Notification.styles.js +11 -11
- package/emotion/cjs/components/Notification/Notification.tokens.js +0 -2
- package/emotion/cjs/components/Pagination/Pagination.js +5 -5
- package/emotion/cjs/components/Pagination/Pagination.styles.js +8 -8
- package/emotion/cjs/components/Pagination/Pagination.tokens.js +1 -4
- package/emotion/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +3 -3
- package/emotion/cjs/components/Tabs/tokens.js +1 -7
- package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +5 -5
- package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +5 -5
- package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +12 -12
- package/emotion/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +5 -5
- package/emotion/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +6 -5
- package/emotion/cjs/examples/plasma_web/components/Combobox/Combobox.config.js +12 -12
- package/emotion/cjs/examples/plasma_web/components/Dropdown/Dropdown.config.js +5 -5
- package/emotion/cjs/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +6 -5
- package/emotion/cjs/hooks/useOutsideClick.js +1 -1
- package/emotion/es/components/Autocomplete/Autocomplete.tokens.js +0 -1
- package/emotion/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
- package/emotion/es/components/Calendar/Calendar.tokens.js +0 -3
- package/emotion/es/components/Calendar/CalendarBase/CalendarBase.styles.js +2 -2
- package/emotion/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -5
- package/emotion/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +16 -21
- package/emotion/es/components/Combobox/ComboboxNew/Combobox.styles.js +7 -7
- package/emotion/es/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -5
- package/emotion/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
- package/emotion/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +15 -21
- package/emotion/es/components/DatePicker/DatePicker.tokens.js +0 -5
- package/emotion/es/components/DatePicker/DatePickerBase.styles.js +3 -3
- package/emotion/es/components/DatePicker/SingleDate/SingleDate.styles.js +5 -5
- package/emotion/es/components/Dropdown/Dropdown.js +60 -40
- package/emotion/es/components/Dropdown/Dropdown.styles.js +9 -25
- package/emotion/es/components/Dropdown/Dropdown.tokens.js +35 -3
- package/emotion/es/components/Dropdown/FloatingPopover.js +102 -0
- package/emotion/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +18 -52
- package/emotion/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +31 -20
- package/emotion/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +22 -42
- package/emotion/es/components/Dropdown/utils/getItemByFocused.js +6 -0
- package/emotion/es/components/Dropdown/utils/getItemId.js +3 -0
- package/emotion/es/components/Dropdown/utils/getPlacement.js +9 -0
- package/emotion/es/components/Dropdown/utils/index.js +4 -1
- package/emotion/es/components/Notification/Notification.styles.js +11 -11
- package/emotion/es/components/Notification/Notification.tokens.js +0 -2
- package/emotion/es/components/Pagination/Pagination.js +5 -5
- package/emotion/es/components/Pagination/Pagination.styles.js +8 -8
- package/emotion/es/components/Pagination/Pagination.tokens.js +1 -4
- package/emotion/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +3 -3
- package/emotion/es/components/Tabs/tokens.js +1 -7
- package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +5 -5
- package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +5 -5
- package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +12 -12
- package/emotion/es/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +6 -6
- package/emotion/es/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +6 -5
- package/emotion/es/examples/plasma_web/components/Combobox/Combobox.config.js +12 -12
- package/emotion/es/examples/plasma_web/components/Dropdown/Dropdown.config.js +6 -6
- package/emotion/es/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +6 -5
- package/emotion/es/hooks/useOutsideClick.js +1 -1
- package/es/components/Autocomplete/Autocomplete.css +1 -1
- package/es/components/Autocomplete/Autocomplete.tokens.js +0 -1
- package/es/components/Autocomplete/Autocomplete.tokens.js.map +1 -1
- package/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
- package/es/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
- package/es/components/Autocomplete/ui/TextField/{TextField.styles_1ye9068.css → TextField.styles_1csckkd.css} +1 -1
- package/es/components/Calendar/Calendar.tokens.js +0 -3
- package/es/components/Calendar/Calendar.tokens.js.map +1 -1
- package/es/components/Calendar/CalendarBase/CalendarBase.css +10 -11
- package/es/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
- package/es/components/Calendar/CalendarBase/CalendarBase.styles.js.map +1 -1
- package/{cjs/components/Calendar/CalendarBase/CalendarBase.styles_ni8729.css → es/components/Calendar/CalendarBase/CalendarBase.styles_1m6uih1.css} +1 -1
- package/es/components/Calendar/CalendarDouble/CalendarDouble.css +10 -11
- package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.css +8 -9
- package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -4
- package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
- package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +2 -11
- package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
- package/{cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1xijs8w.css → es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1jfelqf.css} +0 -1
- package/es/components/Combobox/ComboboxNew/Combobox.css +12 -12
- package/es/components/Combobox/ComboboxNew/Combobox.styles.js +10 -10
- package/es/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
- package/{cjs/components/Combobox/ComboboxNew/Combobox.styles_1nqrvms.css → es/components/Combobox/ComboboxNew/Combobox.styles_1s09ifw.css} +1 -1
- package/es/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -5
- package/es/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
- package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +12 -12
- package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +12 -12
- package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
- 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 +7 -21
- package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
- package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/{Item.styles_1njzasn.css → Item.styles_y71664.css} +3 -3
- package/es/components/Combobox/ComboboxOld/Combobox.css +28 -14
- package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +32 -18
- package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +32 -18
- package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +32 -18
- package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +32 -18
- package/es/components/DatePicker/DatePicker.tokens.js +0 -5
- package/es/components/DatePicker/DatePicker.tokens.js.map +1 -1
- package/es/components/DatePicker/DatePickerBase.styles.js +1 -1
- package/es/components/DatePicker/DatePickerBase.styles.js.map +1 -1
- package/es/components/DatePicker/DatePickerBase.styles_mjc9xz.css +2 -0
- package/es/components/DatePicker/RangeDate/RangeDate.css +14 -15
- package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +12 -13
- package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +1 -1
- package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_1gljtdv.css +2 -0
- package/es/components/DatePicker/SingleDate/SingleDate.css +14 -15
- package/es/components/DatePicker/SingleDate/SingleDate.styles.js +1 -1
- package/es/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
- package/{cjs/components/DatePicker/SingleDate/SingleDate.styles_e72b5o.css → es/components/DatePicker/SingleDate/SingleDate.styles_1rrq00l.css} +1 -1
- package/es/components/Dropdown/Dropdown.css +30 -16
- package/es/components/Dropdown/Dropdown.js +62 -40
- package/es/components/Dropdown/Dropdown.js.map +1 -1
- package/es/components/Dropdown/Dropdown.styles.js +15 -26
- package/es/components/Dropdown/Dropdown.styles.js.map +1 -1
- package/es/components/Dropdown/Dropdown.styles_1ix6io8.css +2 -0
- package/es/components/Dropdown/Dropdown.tokens.js +24 -3
- package/es/components/Dropdown/Dropdown.tokens.js.map +1 -1
- package/es/components/Dropdown/FloatingPopover.js +100 -0
- package/es/components/Dropdown/FloatingPopover.js.map +1 -0
- package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +18 -52
- package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
- package/es/components/Dropdown/ui/DropdownItem/DropdownItem.css +46 -6
- package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +31 -20
- package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
- package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +24 -29
- package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
- package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles_17va0nk.css +5 -0
- package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +1 -1
- package/es/components/Dropdown/ui/DropdownItemOld/{DropdownItem.styles_12e50g5.css → DropdownItem.styles_1lyg81y.css} +1 -1
- package/es/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.css +4 -4
- package/es/components/Dropdown/utils/getItemByFocused.js +9 -0
- package/es/components/Dropdown/utils/getItemByFocused.js.map +1 -0
- package/es/components/Dropdown/utils/getItemId.js +6 -0
- package/es/components/Dropdown/utils/getItemId.js.map +1 -0
- package/es/components/Dropdown/utils/getPlacement.js +12 -0
- package/es/components/Dropdown/utils/getPlacement.js.map +1 -0
- package/es/components/Dropdown/utils/index.js.map +1 -1
- package/es/components/Notification/Notification.css +11 -11
- package/es/components/Notification/Notification.styles.js +15 -15
- package/es/components/Notification/Notification.styles.js.map +1 -1
- package/es/components/Notification/{Notification.styles_1g34msm.css → Notification.styles_7h8hp0.css} +1 -1
- package/es/components/Notification/Notification.tokens.js +0 -2
- package/es/components/Notification/Notification.tokens.js.map +1 -1
- package/es/components/Notification/NotificationsProvider.css +11 -11
- package/es/components/Pagination/Pagination.css +10 -10
- package/es/components/Pagination/Pagination.js +5 -5
- package/es/components/Pagination/Pagination.js.map +1 -1
- package/es/components/Pagination/Pagination.styles.js +3 -3
- package/es/components/Pagination/Pagination.styles.js.map +1 -1
- package/es/components/Pagination/{Pagination.styles_1w5oej6.css → Pagination.styles_y6gcva.css} +1 -1
- package/es/components/Pagination/Pagination.tokens.js +1 -4
- package/es/components/Pagination/Pagination.tokens.js.map +1 -1
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +3 -3
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
- package/es/components/Pagination/ui/PaginationSelectPerPage/{PaginationSelectPerPage.styles_1fesyfv.css → PaginationSelectPerPage.styles_187mk6b.css} +1 -1
- package/es/components/Select/Select.js +1 -1
- package/es/components/Select/utils/getCorrectHeight.js.map +1 -1
- package/es/components/Tabs/tokens.js +1 -7
- package/es/components/Tabs/tokens.js.map +1 -1
- package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +5 -5
- package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
- package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
- package/{cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_uaaqqg.css → es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_hfqv5b.css} +1 -1
- package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +5 -5
- package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
- package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
- package/es/components/Tabs/ui/vertical/VerticalTabItem/{VerticalTabItem.styles_1g7zipg.css → VerticalTabItem.styles_16d3lah.css} +1 -1
- package/es/hooks/useOutsideClick.js +1 -1
- package/es/hooks/useOutsideClick.js.map +1 -1
- package/es/index.css +71 -74
- package/package.json +2 -2
- package/styled-components/cjs/components/Autocomplete/Autocomplete.tokens.js +0 -1
- package/styled-components/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
- package/styled-components/cjs/components/Calendar/Calendar.tokens.js +0 -3
- package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
- package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +3 -3
- package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +2 -6
- package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +2 -2
- package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -5
- package/styled-components/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
- package/styled-components/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +6 -12
- package/styled-components/cjs/components/DatePicker/DatePicker.tokens.js +0 -5
- package/styled-components/cjs/components/DatePicker/DatePickerBase.styles.js +1 -1
- package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +1 -1
- package/styled-components/cjs/components/Dropdown/Dropdown.js +58 -37
- package/styled-components/cjs/components/Dropdown/Dropdown.styles.js +9 -15
- package/styled-components/cjs/components/Dropdown/Dropdown.tokens.js +36 -4
- package/styled-components/cjs/components/Dropdown/FloatingPopover.js +109 -0
- package/styled-components/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +17 -51
- package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +29 -18
- package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +17 -19
- package/styled-components/cjs/components/Dropdown/utils/getItemByFocused.js +12 -0
- package/styled-components/cjs/components/Dropdown/utils/getItemId.js +9 -0
- package/styled-components/cjs/components/Dropdown/utils/getPlacement.js +15 -0
- package/styled-components/cjs/components/Dropdown/utils/index.js +23 -1
- package/styled-components/cjs/components/Notification/Notification.styles.js +1 -1
- package/styled-components/cjs/components/Notification/Notification.tokens.js +0 -2
- package/styled-components/cjs/components/Pagination/Pagination.js +5 -5
- package/styled-components/cjs/components/Pagination/Pagination.styles.js +1 -1
- package/styled-components/cjs/components/Pagination/Pagination.tokens.js +1 -4
- package/styled-components/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
- package/styled-components/cjs/components/Tabs/tokens.js +1 -7
- package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
- package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +4 -4
- package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +5 -5
- package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +6 -5
- package/styled-components/cjs/examples/plasma_web/components/Combobox/Combobox.config.js +4 -4
- package/styled-components/cjs/examples/plasma_web/components/Dropdown/Dropdown.config.js +5 -5
- package/styled-components/cjs/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +6 -5
- package/styled-components/cjs/hooks/useOutsideClick.js +1 -1
- package/styled-components/es/components/Autocomplete/Autocomplete.tokens.js +0 -1
- package/styled-components/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
- package/styled-components/es/components/Calendar/Calendar.tokens.js +0 -3
- package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
- package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -5
- package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +1 -5
- package/styled-components/es/components/Combobox/ComboboxNew/Combobox.styles.js +2 -2
- package/styled-components/es/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -5
- package/styled-components/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
- package/styled-components/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +6 -12
- package/styled-components/es/components/DatePicker/DatePicker.tokens.js +0 -5
- package/styled-components/es/components/DatePicker/DatePickerBase.styles.js +1 -1
- package/styled-components/es/components/DatePicker/SingleDate/SingleDate.styles.js +1 -1
- package/styled-components/es/components/Dropdown/Dropdown.js +60 -40
- package/styled-components/es/components/Dropdown/Dropdown.styles.js +9 -15
- package/styled-components/es/components/Dropdown/Dropdown.tokens.js +35 -3
- package/styled-components/es/components/Dropdown/FloatingPopover.js +102 -0
- package/styled-components/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +18 -52
- package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +31 -20
- package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +18 -20
- package/styled-components/es/components/Dropdown/utils/getItemByFocused.js +6 -0
- package/styled-components/es/components/Dropdown/utils/getItemId.js +3 -0
- package/styled-components/es/components/Dropdown/utils/getPlacement.js +9 -0
- package/styled-components/es/components/Dropdown/utils/index.js +4 -1
- package/styled-components/es/components/Notification/Notification.styles.js +1 -1
- package/styled-components/es/components/Notification/Notification.tokens.js +0 -2
- package/styled-components/es/components/Pagination/Pagination.js +5 -5
- package/styled-components/es/components/Pagination/Pagination.styles.js +1 -1
- package/styled-components/es/components/Pagination/Pagination.tokens.js +1 -4
- package/styled-components/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
- package/styled-components/es/components/Tabs/tokens.js +1 -7
- package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
- package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +4 -4
- package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +6 -6
- package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +6 -5
- package/styled-components/es/examples/plasma_web/components/Combobox/Combobox.config.js +4 -4
- package/styled-components/es/examples/plasma_web/components/Dropdown/Dropdown.config.js +6 -6
- package/styled-components/es/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +6 -5
- package/styled-components/es/hooks/useOutsideClick.js +1 -1
- package/types/components/Autocomplete/Autocomplete.tokens.d.ts +0 -1
- package/types/components/Autocomplete/Autocomplete.tokens.d.ts.map +1 -1
- package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
- package/types/components/Calendar/Calendar.tokens.d.ts +0 -3
- package/types/components/Calendar/Calendar.tokens.d.ts.map +1 -1
- package/types/components/Calendar/CalendarBase/CalendarBase.styles.d.ts.map +1 -1
- package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.d.ts.map +1 -1
- package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts +0 -1
- package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/Combobox.styles.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts +0 -4
- package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxOld/Combobox.types.d.ts +2 -1
- package/types/components/Combobox/ComboboxOld/Combobox.types.d.ts.map +1 -1
- package/types/components/DatePicker/DatePicker.tokens.d.ts +0 -5
- package/types/components/DatePicker/DatePicker.tokens.d.ts.map +1 -1
- package/types/components/DatePicker/DatePickerBase.styles.d.ts.map +1 -1
- package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
- package/types/components/Dropdown/Dropdown.d.ts +2 -1
- package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/types/components/Dropdown/Dropdown.styles.d.ts +1 -6
- package/types/components/Dropdown/Dropdown.styles.d.ts.map +1 -1
- package/types/components/Dropdown/Dropdown.tokens.d.ts +25 -2
- package/types/components/Dropdown/Dropdown.tokens.d.ts.map +1 -1
- package/types/components/Dropdown/Dropdown.types.d.ts +30 -4
- package/types/components/Dropdown/Dropdown.types.d.ts.map +1 -1
- package/types/components/Dropdown/FloatingPopover.d.ts +5 -0
- package/types/components/Dropdown/FloatingPopover.d.ts.map +1 -0
- package/types/components/Dropdown/index.d.ts +1 -1
- package/types/components/Dropdown/index.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownInner/DropdownInner.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts +1 -12
- package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownItem/DropdownItem.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts +32 -3
- package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts +1 -14
- package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts.map +1 -1
- package/types/components/Dropdown/utils/getItemByFocused.d.ts +4 -0
- package/types/components/Dropdown/utils/getItemByFocused.d.ts.map +1 -0
- package/types/components/Dropdown/utils/getItemId.d.ts +2 -0
- package/types/components/Dropdown/utils/getItemId.d.ts.map +1 -0
- package/types/components/Dropdown/utils/getPlacement.d.ts +3 -0
- package/types/components/Dropdown/utils/getPlacement.d.ts.map +1 -0
- package/types/components/Dropdown/utils/index.d.ts +3 -0
- package/types/components/Dropdown/utils/index.d.ts.map +1 -1
- package/types/components/Notification/Notification.styles.d.ts.map +1 -1
- package/types/components/Notification/Notification.tokens.d.ts +0 -2
- package/types/components/Notification/Notification.tokens.d.ts.map +1 -1
- package/types/components/Pagination/Pagination.d.ts.map +1 -1
- package/types/components/Pagination/Pagination.styles.d.ts.map +1 -1
- package/types/components/Pagination/Pagination.tokens.d.ts +0 -3
- package/types/components/Pagination/Pagination.tokens.d.ts.map +1 -1
- package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts.map +1 -1
- package/types/components/Select/utils/getCorrectHeight.d.ts +2 -2
- package/types/components/Select/utils/getCorrectHeight.d.ts.map +1 -1
- package/types/components/Tabs/tokens.d.ts +0 -6
- package/types/components/Tabs/tokens.d.ts.map +1 -1
- package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.d.ts.map +1 -1
- package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Dropdown/Dropdown.config.d.ts +3 -3
- package/types/examples/plasma_b2c/components/Dropdown/Dropdown.config.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts +4 -4
- package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Dropdown/Dropdown.config.d.ts +3 -3
- package/types/examples/plasma_web/components/Dropdown/Dropdown.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Dropdown/Dropdown.d.ts +4 -4
- package/types/examples/plasma_web/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/types/hooks/useOutsideClick.d.ts +1 -1
- package/types/hooks/useOutsideClick.d.ts.map +1 -1
- package/cjs/components/DatePicker/DatePickerBase.styles_1x090si.css +0 -2
- package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_1i6gpss.css +0 -2
- package/cjs/components/Dropdown/Dropdown.styles_zvi9m3.css +0 -3
- package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles_blclup.css +0 -6
- package/es/components/DatePicker/DatePickerBase.styles_1x090si.css +0 -2
- package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_1i6gpss.css +0 -2
- package/es/components/Dropdown/Dropdown.styles_zvi9m3.css +0 -3
- package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles_blclup.css +0 -6
@@ -1,37 +1,21 @@
|
|
1
1
|
import _styled from "@emotion/styled/base";
|
2
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
3
2
|
import { css } from '@emotion/react';
|
4
|
-
import { component } from '../../engines';
|
5
|
-
import { popoverConfig, popoverClasses } from '../Popover';
|
6
3
|
import { getCorrectHeight } from './utils';
|
7
|
-
import { tokens } from './Dropdown.tokens';
|
8
|
-
var Popover = /*#__PURE__*/component(popoverConfig);
|
9
|
-
export var StyledPopover = /*#__PURE__*/_styled(Popover, {
|
10
|
-
target: "euqmbvx1",
|
11
|
-
label: "plasma-new-hope__StyledPopover"
|
12
|
-
})(".", /*#__PURE__*/String(popoverClasses.wrapper), ",.", /*#__PURE__*/String(popoverClasses.target), "{display:block;}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvRHJvcGRvd24vRHJvcGRvd24uc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVk0QyIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL0Ryb3Bkb3duL0Ryb3Bkb3duLnN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgY29tcG9uZW50IH0gZnJvbSAnLi4vLi4vZW5naW5lcyc7XG5pbXBvcnQgeyBwb3BvdmVyQ29uZmlnLCBwb3BvdmVyQ2xhc3NlcyB9IGZyb20gJy4uL1BvcG92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DogJHsoeyBsaXN0SGVpZ2h0IH0pID0+IChsaXN0SGVpZ2h0ID8gZ2V0Q29ycmVjdEhlaWdodChsaXN0SGVpZ2h0KSA6ICdhdXRvJyl9O1xuICAgIG92ZXJmbG93OiAkeyh7IGxpc3RPdmVyZmxvdyB9KSA9PiBsaXN0T3ZlcmZsb3cgfHwgJ2luaXRpYWwnfTtcblxuICAgIG1hcmdpbjogJHsoeyBpc0lubmVyVWwgfSkgPT4gKGlzSW5uZXJVbCA/IGBjYWxjKHZhcigke3Rva2Vucy5wYWRkaW5nfSkgKiAtMSkgMCAwIHZhcigke3Rva2Vucy5wYWRkaW5nfSlgIDogMCl9O1xuICAgIHBhZGRpbmc6IHZhcigke3Rva2Vucy5wYWRkaW5nfSk7XG4gICAgYm9yZGVyOiB2YXIoJHt0b2tlbnMuYm9yZGVyV2lkdGh9KSBzb2xpZCB2YXIoJHt0b2tlbnMuYm9yZGVyQ29sb3J9KTtcbmA7XG5cbmV4cG9ydCBjb25zdCBiYXNlID0gY3NzYFxuICAgIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbmA7XG4iXX0= */"));
|
4
|
+
import { tokens, constants } from './Dropdown.tokens';
|
13
5
|
export var Ul = /*#__PURE__*/_styled("ul", {
|
14
6
|
target: "euqmbvx0",
|
15
7
|
label: "plasma-new-hope__Ul"
|
16
|
-
})("box-sizing:border-box;
|
8
|
+
})("box-sizing:border-box;width:", function (_ref) {
|
17
9
|
var listWidth = _ref.listWidth;
|
18
10
|
return listWidth || "var(".concat(tokens.width, ")");
|
19
11
|
}, ";height:", function (_ref2) {
|
20
12
|
var listHeight = _ref2.listHeight;
|
21
13
|
return listHeight ? getCorrectHeight(listHeight) : 'auto';
|
22
|
-
}, ";
|
23
|
-
var
|
14
|
+
}, ";margin:", function (_ref3) {
|
15
|
+
var isInnerUl = _ref3.isInnerUl;
|
16
|
+
return isInnerUl ? "calc(var(".concat(tokens.padding, ") * -1) 0.125rem 0") : 0;
|
17
|
+
}, ";padding:var(", tokens.padding, ") 0;overflow:", function (_ref4) {
|
18
|
+
var listOverflow = _ref4.listOverflow;
|
24
19
|
return listOverflow || 'initial';
|
25
|
-
}, ";
|
26
|
-
|
27
|
-
return isInnerUl ? "calc(var(".concat(tokens.padding, ") * -1) 0 0 var(").concat(tokens.padding, ")") : 0;
|
28
|
-
}, ";padding:var(", tokens.padding, ");border:var(", tokens.borderWidth, ") solid var(", tokens.borderColor, ");" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvRHJvcGRvd24vRHJvcGRvd24uc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXVCRSIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL0Ryb3Bkb3duL0Ryb3Bkb3duLnN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgY29tcG9uZW50IH0gZnJvbSAnLi4vLi4vZW5naW5lcyc7XG5pbXBvcnQgeyBwb3BvdmVyQ29uZmlnLCBwb3BvdmVyQ2xhc3NlcyB9IGZyb20gJy4uL1BvcG92ZXInO1xuXG5pbXBvcnQgeyBnZXRDb3JyZWN0SGVpZ2h0IH0gZnJvbSAnLi91dGlscyc7XG5pbXBvcnQgeyBEcm9wZG93blByb3BzIH0gZnJvbSAnLi9Ecm9wZG93bi50eXBlcyc7XG5pbXBvcnQgeyB0b2tlbnMgfSBmcm9tICcuL0Ryb3Bkb3duLnRva2Vucyc7XG5cbmNvbnN0IFBvcG92ZXIgPSBjb21wb25lbnQocG9wb3ZlckNvbmZpZyk7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JVbCA/IGBjYWxjKHZhcigke3Rva2Vucy5wYWRkaW5nfSkgKiAtMSkgMCAwIHZhcigke3Rva2Vucy5wYWRkaW5nfSlgIDogMCl9O1xuICAgIHBhZGRpbmc6IHZhcigke3Rva2Vucy5wYWRkaW5nfSk7XG4gICAgYm9yZGVyOiB2YXIoJHt0b2tlbnMuYm9yZGVyV2lkdGh9KSBzb2xpZCB2YXIoJHt0b2tlbnMuYm9yZGVyQ29sb3J9KTtcbmA7XG5cbmV4cG9ydCBjb25zdCBiYXNlID0gY3NzYFxuICAgIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbmA7XG4iXX0= */"));
|
29
|
-
export var base = process.env.NODE_ENV === "production" ? {
|
30
|
-
name: "1mufh2u-plasma-new-hope__base",
|
31
|
-
styles: "display:inline-block;label:plasma-new-hope__base;"
|
32
|
-
} : {
|
33
|
-
name: "1mufh2u-plasma-new-hope__base",
|
34
|
-
styles: "display:inline-block;label:plasma-new-hope__base;",
|
35
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvRHJvcGRvd24vRHJvcGRvd24uc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXVDdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9Ecm9wZG93bi9Ecm9wZG93bi5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IGNvbXBvbmVudCB9IGZyb20gJy4uLy4uL2VuZ2luZXMnO1xuaW1wb3J0IHsgcG9wb3ZlckNvbmZpZywgcG9wb3ZlckNsYXNzZ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lgfTtcbiAgICBoZWlnaHQ6ICR7KHsgbGlzdEhlaWdodCB9KSA9PiAobGlzdEhlaWdodCA/IGdldENvcnJlY3RIZWlnaHQobGlzdEhlaWdodCkgOiAnYXV0bycpfTtcbiAgICBvdmVyZmxvdzogJHsoeyBsaXN0T3ZlcmZsb3cgfSkgPT4gbGlzdE92ZXJmbG93IHx8ICdpbml0aWFsJ307XG5cbiAgICBtYXJnaW46ICR7KHsgaXNJbm5lclVsIH0pID0+IChpc0lubmVyVWwgPyBgY2FsYyh2YXIoJHt0b2tlbnMucGFkZGluZ30pICogLTEpIDAgMCB2YXIoJHt0b2tlbnMucGFkZGluZ30pYCA6IDApfTtcbiAgICBwYWRkaW5nOiB2YXIoJHt0b2tlbnMucGFkZGluZ30pO1xuICAgIGJvcmRlcjogdmFyKCR7dG9rZW5zLmJvcmRlcldpZHRofSkgc29saWQgdmFyKCR7dG9rZW5zLmJvcmRlckNvbG9yfSk7XG5gO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG5gO1xuIl19 */",
|
36
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
37
|
-
};
|
20
|
+
}, ";background:var(", constants.background, ");box-shadow:", constants.boxShadow, ";border-radius:var(", tokens.borderRadius, ");" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvRHJvcGRvd24vRHJvcGRvd24uc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVlFIiwiZmlsZSI6Ii4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvRHJvcGRvd24vRHJvcGRvd24uc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0e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HwgJ2luaXRpYWwnfTtcbiAgICBiYWNrZ3JvdW5kOiB2YXIoJHtjb25zdGFudHMuYmFja2dyb3VuZH0pO1xuICAgIGJveC1zaGFkb3c6ICR7Y29uc3RhbnRzLmJveFNoYWRvd307XG4gICAgYm9yZGVyLXJhZGl1czogdmFyKCR7dG9rZW5zLmJvcmRlclJhZGl1c30pO1xuYDtcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgYDtcbiJdfQ== */"));
|
21
|
+
export var base = /*#__PURE__*/css(";label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvRHJvcGRvd24vRHJvcGRvd24uc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXdCdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9Ecm9wZG93bi9Ecm9wZG93bi5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IGdldENvcnJlY3RIZWlnaHQgfSBmcm9tICcuL3V0aWxzJztcbmltcG9ydCB7IERyb3Bkb3duUHJvcHMgfSBmcm9tICcuL0Ryb3Bkb3duLnR5cGVzJztcbmltcG9ydCB7IHRva2VucywgY29uc3RhbnRzIH0gZnJvbSAnLi9Ecm9wZG93bi50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgVWwgPSBzdHlsZWQudWw8e1xuICAgIGxpc3RIZWlnaHQ6IERyb3Bkb3duUHJvcHNbJ2xpc3RIZWlnaHQnXTtcbiAgICBsaXN0T3ZlcmZsb3c6IERyb3Bkb3duUHJvcHNbJ2xpc3RPdmVyZmxvdyddO1xuICAgIGxpc3RXaWR0aD86IERyb3Bkb3duUHJvcHNbJ2xpc3RXaWR0aCddO1xuICAgIGlzSW5uZXJVbD86IGJvb2xlYW47XG59PmBcbiAgICBib3gtc2l6aW5nOiBib3JkZXItYm94O1xuICAgIHdpZHRoOiAkeyh7IGxpc3RXaWR0aCB9KSA9PiBsaXN0V2lkdGggfHwgYHZhcigke3Rva2Vucy53aWR0aH0pYH07XG4gICAgaGVpZ2h0OiAkeyh7IGxpc3RIZWlnaHQgfSkgPT4gKGxpc3RIZWlnaHQgPyBnZXRDb3JyZWN0SGVpZ2h0KGxpc3RIZWlnaHQpIDogJ2F1dG8nKX07XG4gICAgbWFyZ2luOiAkeyh7IGlzSW5uZXJVbCB9KSA9PiAoaXNJbm5lclVsID8gYGNhbGModmFyKCR7dG9rZW5zLnBhZGRpbmd9KSAqIC0xKSAwLjEyNXJlbSAwYCA6IDApfTtcbiAgICBwYWRkaW5nOiB2YXIoJHt0b2tlbnMucGFkZGluZ30pIDA7XG4gICAgb3ZlcmZsb3c6ICR7KHsgbGlzdE92ZXJmbG93IH0pID0+IGxpc3RPdmVyZmxvdyB8fCAnaW5pdGlhbCd9O1xuICAgIGJhY2tncm91bmQ6IHZhcigke2NvbnN0YW50cy5iYWNrZ3JvdW5kfSk7XG4gICAgYm94LXNoYWRvdzogJHtjb25zdGFudHMuYm94U2hhZG93fTtcbiAgICBib3JkZXItcmFkaXVzOiB2YXIoJHt0b2tlbnMuYm9yZGVyUmFkaXVzfSk7XG5gO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BgO1xuIl19 */"));
|
@@ -3,7 +3,7 @@ export var classes = {
|
|
3
3
|
dropdownItemIsFocused: 'dropdown-item-is-focused',
|
4
4
|
dropdownItemIsDisabled: 'dropdown-item-is-disabled',
|
5
5
|
dropdownItemIsActive: 'dropdown-item-is-active',
|
6
|
-
dropdownItemIsSelected: '
|
6
|
+
dropdownItemIsSelected: 'dropdown-item-is-selected'
|
7
7
|
};
|
8
8
|
export var tokens = {
|
9
9
|
background: '--plasma-dropdown-background',
|
@@ -14,8 +14,8 @@ export var tokens = {
|
|
14
14
|
disclosureIconColor: '--plasma-dropdown-disclosure-icon-color',
|
15
15
|
disabledOpacity: '--plasma-dropdown-disabled-opacity',
|
16
16
|
focusColor: '--plasma-dropdown-focus-color',
|
17
|
-
|
18
|
-
|
17
|
+
// Old
|
18
|
+
|
19
19
|
dividerColor: '--plasma-dropdown-divider-color',
|
20
20
|
dividerMarginTop: '--plasma-dropdown-divider-margin-top',
|
21
21
|
dividerMarginTopTight: '--plasma-dropdown-divider-margin-top-tight',
|
@@ -30,6 +30,7 @@ export var tokens = {
|
|
30
30
|
itemBackgroundSelectedHover: '--plasma-dropdown-item-background-selected-hover',
|
31
31
|
// Old
|
32
32
|
itemColor: '--plasma-dropdown-item-color',
|
33
|
+
// Old
|
33
34
|
itemColorSelected: '--plasma-dropdown-item-color-selected',
|
34
35
|
// Old
|
35
36
|
itemColorSelectedHover: '--plasma-dropdown-item-color-selected-hover',
|
@@ -48,11 +49,17 @@ export var tokens = {
|
|
48
49
|
itemMarginLeft: '--plasma-dropdown-item-margin-left',
|
49
50
|
// Old
|
50
51
|
itemPaddingTop: '--plasma-dropdown-item-padding-top',
|
52
|
+
// Old
|
51
53
|
itemPaddingTopTight: '--plasma-dropdown-item-padding-top-tight',
|
54
|
+
// Old
|
52
55
|
itemPaddingRight: '--plasma-dropdown-item-padding-right',
|
56
|
+
// Old
|
53
57
|
itemPaddingBottom: '--plasma-dropdown-item-padding-bottom',
|
58
|
+
// Old
|
54
59
|
itemPaddingBottomTight: '--plasma-dropdown-item-padding-bottom-tight',
|
60
|
+
// Old
|
55
61
|
itemPaddingLeft: '--plasma-dropdown-item-padding-left',
|
62
|
+
// Old
|
56
63
|
itemContentLeftWidth: '--plasma-dropdown-item-content-left-width',
|
57
64
|
// Old
|
58
65
|
itemContentLeftColor: '--plasma-dropdown-item-content-left-color',
|
@@ -67,6 +74,20 @@ export var tokens = {
|
|
67
74
|
itemFontWeightBold: '--plasma-dropdown-item-letter-spacing',
|
68
75
|
itemFontLetterSpacing: '--plasma-dropdown-item-line-height',
|
69
76
|
itemFontLineHeight: '--plasma-dropdown-item-font-weight',
|
77
|
+
itemPadding: '--plasma-dropdown-item-padding',
|
78
|
+
itemPaddingTight: '--plasma-dropdown-item-padding-tight',
|
79
|
+
cellPadding: '--plasma-dropdown-cell-padding',
|
80
|
+
cellPaddingLeftContent: '--plasma-dropdown-cell-padding-left-content',
|
81
|
+
cellPaddingContent: '--plasma-dropdown-cell-padding-content',
|
82
|
+
cellPaddingRightContent: '--plasma-dropdown-cell-padding-right-content',
|
83
|
+
cellTextboxGap: '--plasma-dropdown-cell-textbox-gap',
|
84
|
+
cellGap: '--plasma-dropdown-cell-gap',
|
85
|
+
cellTitleFontFamily: '--plasma-dropdown-cell-title-font-family',
|
86
|
+
cellTitleFontSize: '--plasma-dropdown-cell-title-font-size',
|
87
|
+
cellTitleFontStyle: '--plasma-dropdown-cell-title-font-style',
|
88
|
+
cellTitleFontWeight: '--plasma-dropdown-cell-title-font-weight',
|
89
|
+
cellTitleLetterSpacing: '--plasma-dropdown-cell-title-letter-spacing',
|
90
|
+
cellTitleLineHeight: '--plasma-dropdown-cell-title-line-height',
|
70
91
|
// TODO: Remove below tokens as soon as they are no longer needed
|
71
92
|
footerBackground: '--plasma-dropdown-footer-background',
|
72
93
|
footerWidth: '--plasma-dropdown-footer-width',
|
@@ -130,4 +151,15 @@ export var tokens = {
|
|
130
151
|
groupLabelMarginRight: '--plasma-dropdown-group-label-margin-right',
|
131
152
|
groupLabelMarginBottom: '--plasma-dropdown-group-label-margin-bottom',
|
132
153
|
groupLabelMarginLeft: '--plasma-dropdown-group-label-margin-left'
|
154
|
+
};
|
155
|
+
export var constants = {
|
156
|
+
focusColor: '--surface-accent',
|
157
|
+
background: '--surface-solid-card-brightness',
|
158
|
+
boxShadow: '0px 4px 14px -4px rgba(8, 8, 8, 0.08), 0px 1px 4px -1px rgba(0, 0, 0, 0.04)',
|
159
|
+
disclosureIconColor: '--text-secondary',
|
160
|
+
itemBackground: '--plasma-colors-transparent',
|
161
|
+
itemBackgroundHover: '--surface-transparent-secondary',
|
162
|
+
opacity: '0.4',
|
163
|
+
cellTitleColor: '--text-primary',
|
164
|
+
cellBackgroundColor: '--plasma-colors-transparent'
|
133
165
|
};
|
@@ -0,0 +1,102 @@
|
|
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
|
+
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; }
|
3
|
+
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; }
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
7
|
+
import { flip, shift, useFloating, FloatingPortal, offset as offsetMiddleware, autoPlacement } from '@floating-ui/react';
|
8
|
+
import React, { forwardRef } from 'react';
|
9
|
+
import { safeUseId } from '@salutejs/plasma-core';
|
10
|
+
var FloatingPopover = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
11
|
+
var target = _ref.target,
|
12
|
+
children = _ref.children,
|
13
|
+
opened = _ref.opened,
|
14
|
+
onToggle = _ref.onToggle,
|
15
|
+
placement = _ref.placement,
|
16
|
+
portal = _ref.portal,
|
17
|
+
_ref$offset = _ref.offset,
|
18
|
+
offset = _ref$offset === void 0 ? [0, 0] : _ref$offset,
|
19
|
+
isInner = _ref.isInner,
|
20
|
+
trigger = _ref.trigger;
|
21
|
+
var _useFloating = useFloating({
|
22
|
+
placement: placement === 'auto' ? undefined : placement,
|
23
|
+
open: opened,
|
24
|
+
middleware: [placement === 'auto' && autoPlacement(), offsetMiddleware({
|
25
|
+
mainAxis: offset[1],
|
26
|
+
crossAxis: offset[0]
|
27
|
+
}), flip({
|
28
|
+
fallbackAxisSideDirection: 'end'
|
29
|
+
}), shift()]
|
30
|
+
}),
|
31
|
+
refs = _useFloating.refs,
|
32
|
+
floatingStyles = _useFloating.floatingStyles;
|
33
|
+
var wrappedId = safeUseId();
|
34
|
+
var handleTargetClick = function handleTargetClick(event) {
|
35
|
+
if (trigger === 'hover') {
|
36
|
+
return;
|
37
|
+
}
|
38
|
+
if (onToggle) {
|
39
|
+
onToggle(!opened, event);
|
40
|
+
}
|
41
|
+
};
|
42
|
+
var handleTargetMouseEnter = function handleTargetMouseEnter(event) {
|
43
|
+
if (trigger === 'click' || opened) {
|
44
|
+
return;
|
45
|
+
}
|
46
|
+
onToggle(true, event);
|
47
|
+
};
|
48
|
+
var handleTargetMouseLeave = function handleTargetMouseLeave(event) {
|
49
|
+
if (event.relatedTarget instanceof HTMLElement && refs.floating.current instanceof HTMLElement) {
|
50
|
+
var _refs$floating$curren;
|
51
|
+
if (trigger === 'click' || !opened || event.relatedTarget && refs.floating && (_refs$floating$curren = refs.floating.current) !== null && _refs$floating$curren !== void 0 && _refs$floating$curren.contains(event.relatedTarget)) {
|
52
|
+
return;
|
53
|
+
}
|
54
|
+
onToggle(false, event);
|
55
|
+
}
|
56
|
+
};
|
57
|
+
var handleFloatingMouseLeave = function handleFloatingMouseLeave(event) {
|
58
|
+
if (event.relatedTarget instanceof HTMLElement && refs.reference.current instanceof HTMLElement) {
|
59
|
+
var _refs$reference$curre;
|
60
|
+
if (trigger === 'click' || !opened || event.relatedTarget && refs.reference && (_refs$reference$curre = refs.reference.current) !== null && _refs$reference$curre !== void 0 && _refs$reference$curre.contains(event.relatedTarget)) {
|
61
|
+
return;
|
62
|
+
}
|
63
|
+
onToggle(false, event);
|
64
|
+
}
|
65
|
+
};
|
66
|
+
return /*#__PURE__*/React.createElement("div", {
|
67
|
+
id: wrappedId,
|
68
|
+
style: {
|
69
|
+
display: isInner ? 'block' : 'inline-block'
|
70
|
+
},
|
71
|
+
ref: ref
|
72
|
+
}, /*#__PURE__*/React.createElement("div", {
|
73
|
+
ref: refs.setReference,
|
74
|
+
onClick: handleTargetClick,
|
75
|
+
onMouseEnter: handleTargetMouseEnter,
|
76
|
+
onMouseLeave: handleTargetMouseLeave
|
77
|
+
}, target), opened && /*#__PURE__*/React.createElement(FloatingPortal, getFloatingPortalProps(portal, wrappedId), /*#__PURE__*/React.createElement("div", {
|
78
|
+
ref: refs.setFloating,
|
79
|
+
onMouseLeave: handleFloatingMouseLeave,
|
80
|
+
style: _objectSpread(_objectSpread({}, floatingStyles), {}, {
|
81
|
+
zIndex: 1
|
82
|
+
})
|
83
|
+
}, children)));
|
84
|
+
});
|
85
|
+
// root - принимает ref контейнера портала.
|
86
|
+
// id - если есть портал - не используется, если портала нет - подставляется 'wrappedId'.
|
87
|
+
var getFloatingPortalProps = function getFloatingPortalProps(portal, wrappedId) {
|
88
|
+
if (!portal) {
|
89
|
+
return {
|
90
|
+
id: wrappedId
|
91
|
+
};
|
92
|
+
}
|
93
|
+
if (typeof portal === 'string') {
|
94
|
+
return {
|
95
|
+
id: portal
|
96
|
+
};
|
97
|
+
}
|
98
|
+
return {
|
99
|
+
root: portal
|
100
|
+
};
|
101
|
+
};
|
102
|
+
export { FloatingPopover };
|
@@ -1,26 +1,18 @@
|
|
1
1
|
import React from 'react';
|
2
|
+
import { safeUseId } from '@salutejs/plasma-core';
|
2
3
|
import { DropdownItem } from '..';
|
3
|
-
import { Ul
|
4
|
+
import { Ul } from '../../Dropdown.styles';
|
5
|
+
import { FloatingPopover } from '../../FloatingPopover';
|
4
6
|
var DropdownInner = function DropdownInner(_ref) {
|
5
7
|
var item = _ref.item,
|
6
8
|
currentLevel = _ref.currentLevel,
|
7
|
-
focusedPath = _ref.focusedPath,
|
8
9
|
path = _ref.path,
|
9
10
|
dispatchPath = _ref.dispatchPath,
|
10
11
|
index = _ref.index,
|
11
12
|
trigger = _ref.trigger,
|
12
|
-
itemRole = _ref.itemRole,
|
13
13
|
listHeight = _ref.listHeight,
|
14
14
|
listOverflow = _ref.listOverflow,
|
15
|
-
|
16
|
-
closeOnSelect = _ref.closeOnSelect,
|
17
|
-
onHover = _ref.onHover,
|
18
|
-
onItemSelect = _ref.onItemSelect,
|
19
|
-
onItemClick = _ref.onItemClick,
|
20
|
-
listWidth = _ref.listWidth,
|
21
|
-
variant = _ref.variant,
|
22
|
-
hasArrow = _ref.hasArrow,
|
23
|
-
size = _ref.size;
|
15
|
+
listWidth = _ref.listWidth;
|
24
16
|
var handleToggle = function handleToggle(opened) {
|
25
17
|
if (opened) {
|
26
18
|
dispatchPath({
|
@@ -36,80 +28,54 @@ var DropdownInner = function DropdownInner(_ref) {
|
|
36
28
|
}
|
37
29
|
};
|
38
30
|
var isCurrentListOpen = path[currentLevel + 1] === item.value.toString();
|
39
|
-
var
|
31
|
+
var treeId = safeUseId();
|
32
|
+
var listId = "".concat(treeId, "_tree_level_").concat(currentLevel + 2);
|
40
33
|
var nextLevel = currentLevel + 1;
|
41
34
|
if (item !== null && item !== void 0 && item.items) {
|
42
|
-
return /*#__PURE__*/React.createElement(
|
43
|
-
opened: isCurrentListOpen,
|
44
|
-
usePortal: false,
|
35
|
+
return /*#__PURE__*/React.createElement(FloatingPopover, {
|
45
36
|
placement: "right-start",
|
37
|
+
opened: isCurrentListOpen,
|
38
|
+
onToggle: handleToggle,
|
46
39
|
trigger: trigger,
|
47
40
|
target: /*#__PURE__*/React.createElement(DropdownItem, {
|
48
41
|
item: item,
|
49
42
|
index: index,
|
50
43
|
path: path,
|
51
|
-
focusedPath: focusedPath,
|
52
44
|
currentLevel: currentLevel,
|
53
|
-
itemRole: itemRole,
|
54
|
-
onHover: onHover,
|
55
|
-
onItemSelect: onItemSelect,
|
56
|
-
onItemClick: onItemClick,
|
57
|
-
variant: variant,
|
58
|
-
hasArrow: hasArrow,
|
59
45
|
ariaControls: listId,
|
60
46
|
ariaExpanded: isCurrentListOpen,
|
61
47
|
ariaLevel: nextLevel,
|
62
|
-
ariaLabel: item.label
|
63
|
-
size: size
|
48
|
+
ariaLabel: item.label
|
64
49
|
}),
|
65
|
-
|
66
|
-
isFocusTrapped: false,
|
67
|
-
preventOverflow: false
|
50
|
+
isInner: true
|
68
51
|
}, /*#__PURE__*/React.createElement(Ul, {
|
52
|
+
id: listId,
|
53
|
+
role: "group",
|
54
|
+
isInnerUl: true,
|
69
55
|
listHeight: listHeight,
|
70
56
|
listOverflow: listOverflow,
|
71
|
-
|
72
|
-
id: listId,
|
73
|
-
listWidth: listWidth,
|
74
|
-
isInnerUl: true
|
57
|
+
listWidth: listWidth
|
75
58
|
}, item.items.map(function (innerItem, innerIndex) {
|
76
59
|
return /*#__PURE__*/React.createElement(DropdownInner, {
|
77
60
|
key: "".concat(innerIndex, "/").concat(currentLevel),
|
78
61
|
item: innerItem,
|
79
62
|
currentLevel: nextLevel,
|
80
|
-
focusedPath: focusedPath,
|
81
63
|
path: path,
|
82
64
|
dispatchPath: dispatchPath,
|
83
65
|
index: innerIndex,
|
84
66
|
trigger: trigger,
|
85
|
-
itemRole: itemRole,
|
86
67
|
listHeight: listHeight,
|
87
68
|
listOverflow: listOverflow,
|
88
|
-
|
89
|
-
closeOnSelect: closeOnSelect,
|
90
|
-
onHover: onHover,
|
91
|
-
onItemSelect: onItemSelect,
|
92
|
-
onItemClick: onItemClick,
|
93
|
-
listWidth: listWidth,
|
94
|
-
variant: variant,
|
95
|
-
hasArrow: hasArrow,
|
96
|
-
size: size
|
69
|
+
listWidth: listWidth
|
97
70
|
});
|
98
71
|
})));
|
99
72
|
}
|
100
73
|
return /*#__PURE__*/React.createElement(DropdownItem, {
|
101
74
|
item: item,
|
75
|
+
path: path,
|
102
76
|
index: index,
|
103
|
-
focusedPath: focusedPath,
|
104
77
|
currentLevel: currentLevel,
|
105
|
-
|
106
|
-
handleGlobalToggle: handleGlobalToggle,
|
107
|
-
closeOnSelect: closeOnSelect,
|
108
|
-
onHover: onHover,
|
109
|
-
onItemSelect: onItemSelect,
|
110
|
-
onItemClick: onItemClick,
|
111
|
-
variant: variant,
|
112
|
-
size: size
|
78
|
+
ariaLevel: nextLevel
|
113
79
|
});
|
114
80
|
};
|
115
81
|
export { DropdownInner };
|
@@ -1,28 +1,19 @@
|
|
1
|
-
import React, { useEffect, useRef } from 'react';
|
1
|
+
import React, { useEffect, useRef, useContext } from 'react';
|
2
2
|
import { classes } from '../../Dropdown.tokens';
|
3
3
|
import { cx } from '../../../../utils';
|
4
4
|
import { IconDisclosureRight } from '../../../_Icon';
|
5
|
-
import {
|
5
|
+
import { Context } from '../../Dropdown';
|
6
|
+
import { getItemId } from '../../utils';
|
7
|
+
import { Wrapper, DisclosureIconWrapper, Divider, CellWrapper, StyledCell } from './DropdownItem.styles';
|
6
8
|
export var DropdownItem = function DropdownItem(_ref) {
|
7
9
|
var item = _ref.item,
|
8
10
|
path = _ref.path,
|
9
|
-
focusedPath = _ref.focusedPath,
|
10
11
|
currentLevel = _ref.currentLevel,
|
11
12
|
index = _ref.index,
|
12
|
-
itemRole = _ref.itemRole,
|
13
|
-
closeOnSelect = _ref.closeOnSelect,
|
14
|
-
handleGlobalToggle = _ref.handleGlobalToggle,
|
15
|
-
onHover = _ref.onHover,
|
16
|
-
onItemSelect = _ref.onItemSelect,
|
17
|
-
onItemClick = _ref.onItemClick,
|
18
13
|
ariaControls = _ref.ariaControls,
|
19
14
|
ariaExpanded = _ref.ariaExpanded,
|
20
|
-
ariaHasPopup = _ref.ariaHasPopup,
|
21
15
|
ariaLevel = _ref.ariaLevel,
|
22
|
-
ariaLabel = _ref.ariaLabel
|
23
|
-
variant = _ref.variant,
|
24
|
-
hasArrow = _ref.hasArrow,
|
25
|
-
size = _ref.size;
|
16
|
+
ariaLabel = _ref.ariaLabel;
|
26
17
|
var value = item.value,
|
27
18
|
label = item.label,
|
28
19
|
disabled = item.disabled,
|
@@ -32,6 +23,19 @@ export var DropdownItem = function DropdownItem(_ref) {
|
|
32
23
|
dividerBefore = item.dividerBefore,
|
33
24
|
dividerAfter = item.dividerAfter;
|
34
25
|
var ref = useRef(null);
|
26
|
+
var _useContext = useContext(Context),
|
27
|
+
focusedPath = _useContext.focusedPath,
|
28
|
+
size = _useContext.size,
|
29
|
+
variant = _useContext.variant,
|
30
|
+
itemRole = _useContext.itemRole,
|
31
|
+
handleGlobalToggle = _useContext.handleGlobalToggle,
|
32
|
+
closeOnSelect = _useContext.closeOnSelect,
|
33
|
+
onHover = _useContext.onHover,
|
34
|
+
onItemSelect = _useContext.onItemSelect,
|
35
|
+
onItemClick = _useContext.onItemClick,
|
36
|
+
hasArrow = _useContext.hasArrow,
|
37
|
+
treeId = _useContext.treeId;
|
38
|
+
var hasDescendants = Boolean(item.items);
|
35
39
|
var disclosureIconSize = size === 'xs' ? 'xs' : 's';
|
36
40
|
var isDisabledClassName = disabled || isDisabled ? classes.dropdownItemIsDisabled : undefined;
|
37
41
|
var focusedClass = currentLevel === focusedPath.length - 1 && index === (focusedPath === null || focusedPath === void 0 ? void 0 : focusedPath[currentLevel]) ? classes.dropdownItemIsFocused : undefined;
|
@@ -55,7 +59,9 @@ export var DropdownItem = function DropdownItem(_ref) {
|
|
55
59
|
if (onItemClick) {
|
56
60
|
onItemClick(item, event);
|
57
61
|
}
|
58
|
-
|
62
|
+
|
63
|
+
// Закрываем весь дропдаун целиком при клике на айтем без потомков. Только при closeOnSelect === true.
|
64
|
+
if (closeOnSelect && !hasDescendants) {
|
59
65
|
handleGlobalToggle(false, event);
|
60
66
|
}
|
61
67
|
};
|
@@ -67,20 +73,25 @@ export var DropdownItem = function DropdownItem(_ref) {
|
|
67
73
|
return /*#__PURE__*/React.createElement(React.Fragment, null, dividerBefore && /*#__PURE__*/React.createElement(Divider, {
|
68
74
|
variant: variant
|
69
75
|
}), /*#__PURE__*/React.createElement(Wrapper, {
|
76
|
+
ref: ref,
|
70
77
|
className: cx(isDisabledClassName, focusedClass, activeClass),
|
71
|
-
id: value.toString(),
|
78
|
+
id: getItemId(treeId, value.toString()),
|
72
79
|
role: itemRole,
|
73
|
-
ref: ref,
|
74
|
-
"aria-disabled": disabled || isDisabled,
|
75
80
|
onClick: handleClick,
|
76
81
|
onMouseEnter: handleHover,
|
77
82
|
variant: variant,
|
83
|
+
"aria-disabled": disabled || isDisabled,
|
78
84
|
"aria-controls": ariaControls,
|
79
85
|
"aria-expanded": ariaExpanded,
|
80
|
-
"aria-haspopup": ariaHasPopup,
|
81
86
|
"aria-level": ariaLevel,
|
82
87
|
"aria-label": ariaLabel
|
83
|
-
},
|
88
|
+
}, /*#__PURE__*/React.createElement(CellWrapper, null, /*#__PURE__*/React.createElement(StyledCell, {
|
89
|
+
contentLeft: contentLeft,
|
90
|
+
contentRight: contentRight,
|
91
|
+
alignContentLeft: "center",
|
92
|
+
alignContentRight: "center",
|
93
|
+
title: label
|
94
|
+
})), item.items && hasArrow && /*#__PURE__*/React.createElement(DisclosureIconWrapper, null, /*#__PURE__*/React.createElement(IconDisclosureRight, {
|
84
95
|
size: disclosureIconSize,
|
85
96
|
color: "inherit"
|
86
97
|
}))), dividerAfter && /*#__PURE__*/React.createElement(Divider, {
|