@salutejs/plasma-new-hope 0.88.0-canary.1225.9415530810.0 → 0.88.0-canary.1233.9420319803.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Button/Button.styles.js.map +1 -1
- package/cjs/components/Chip/Chip.css +5 -5
- package/cjs/components/Chip/Chip.styles.js +1 -1
- package/cjs/components/Chip/Chip.styles.js.map +1 -1
- package/cjs/components/Chip/{Chip.styles_1mwwhiw.css → Chip.styles_1l2rsrr.css} +1 -1
- package/cjs/components/Chip/Chip.tokens.js +2 -0
- package/cjs/components/Chip/Chip.tokens.js.map +1 -1
- package/cjs/components/Combobox/Combobox.css +5 -5
- package/cjs/components/Combobox/Combobox.js +2 -2
- package/cjs/components/Combobox/Combobox.js.map +1 -1
- package/cjs/components/Combobox/hooks/useKeyNavigation.js.map +1 -0
- package/cjs/components/Combobox/ui/ComboboxChip/ComboboxChip.css +5 -5
- package/cjs/components/Combobox/ui/ComboboxTarget/ComboboxTarget.css +5 -5
- package/cjs/components/Combobox/ui/ComboboxTarget/ComboboxTarget.js +1 -1
- package/cjs/components/Combobox/ui/ComboboxTarget/ComboboxTarget.js.map +1 -1
- package/cjs/components/Combobox/utils/index.js +103 -0
- package/cjs/components/Combobox/utils/index.js.map +1 -1
- package/cjs/components/Dropdown/Dropdown.tokens.js +32 -18
- package/cjs/components/Dropdown/Dropdown.tokens.js.map +1 -1
- package/cjs/components/Pagination/Pagination.css +67 -57
- package/cjs/components/Pagination/Pagination.js +12 -5
- package/cjs/components/Pagination/Pagination.js.map +1 -1
- package/cjs/components/Pagination/Pagination.styles.js.map +1 -1
- package/cjs/components/Pagination/Pagination.tokens.js +9 -11
- package/cjs/components/Pagination/Pagination.tokens.js.map +1 -1
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +65 -55
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +21 -26
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js.map +1 -1
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +5 -20
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_187mk6b.css +3 -0
- package/cjs/components/Range/Range.css +5 -5
- package/cjs/components/Select/Select.css +71 -60
- package/cjs/components/Select/Select.js +251 -201
- package/cjs/components/Select/Select.js.map +1 -1
- package/cjs/components/Select/Select.styles.js +49 -36
- package/cjs/components/Select/Select.styles.js.map +1 -1
- package/cjs/components/Select/Select.styles_zx0ztg.css +5 -0
- package/cjs/components/Select/Select.tokens.js +58 -166
- package/cjs/components/Select/Select.tokens.js.map +1 -1
- package/cjs/components/Select/elements/Inner/Inner.css +112 -0
- package/cjs/components/Select/elements/Inner/Inner.js +77 -0
- package/cjs/components/Select/elements/Inner/Inner.js.map +1 -0
- package/cjs/components/Select/elements/Inner/elements/Item/Item.css +112 -0
- package/cjs/components/Select/elements/Inner/elements/Item/Item.js +87 -0
- package/cjs/components/Select/elements/Inner/elements/Item/Item.js.map +1 -0
- package/cjs/components/Select/elements/Inner/elements/Item/Item.styles.js +104 -0
- package/cjs/components/Select/elements/Inner/elements/Item/Item.styles.js.map +1 -0
- package/cjs/components/Select/elements/Inner/elements/Item/Item.styles_545sy7.css +8 -0
- package/cjs/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.css +30 -0
- package/cjs/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.js +20 -0
- package/cjs/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.js.map +1 -0
- package/cjs/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.styles.js +41 -0
- package/cjs/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.styles.js.map +1 -0
- package/cjs/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.styles_r1sne.css +4 -0
- package/cjs/components/Select/elements/Target/Target.css +67 -0
- package/cjs/components/Select/elements/Target/Target.js +57 -0
- package/cjs/components/Select/elements/Target/Target.js.map +1 -0
- package/cjs/components/Select/elements/Target/elements/Button/Button.css +34 -0
- package/cjs/components/Select/elements/Target/elements/Button/Button.js +62 -0
- package/cjs/components/Select/elements/Target/elements/Button/Button.js.map +1 -0
- package/cjs/components/Select/elements/Target/elements/Button/Button.styles.js +58 -0
- package/cjs/components/Select/elements/Target/elements/Button/Button.styles.js.map +1 -0
- package/cjs/components/Select/elements/Target/elements/Button/Button.styles_1bweq1y.css +6 -0
- package/cjs/components/Select/{ui/SelectTarget/SelectTarget.css → elements/Target/elements/Textfield/Textfield.css} +18 -12
- package/cjs/components/Select/elements/Target/elements/Textfield/Textfield.js +94 -0
- package/cjs/components/Select/elements/Target/elements/Textfield/Textfield.js.map +1 -0
- package/cjs/components/Select/elements/Target/elements/Textfield/Textfield.styles.js +113 -0
- package/cjs/components/Select/elements/Target/elements/Textfield/Textfield.styles.js.map +1 -0
- package/cjs/components/Select/elements/Target/elements/Textfield/Textfield.styles_6vgsi4.css +12 -0
- package/cjs/components/Select/{ui/SelectChip/SelectChip.css → elements/Target/elements/Textfield/elements/Chip/Chip.css} +6 -6
- package/cjs/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.js +36 -0
- package/cjs/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.js.map +1 -0
- package/cjs/components/Select/{ui/SelectChip/SelectChip.styles.js → elements/Target/elements/Textfield/elements/Chip/Chip.styles.js} +5 -8
- package/cjs/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.styles.js.map +1 -0
- package/cjs/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.styles_k6znfr.css +1 -0
- package/cjs/components/Select/hooks/useKeyboardNavigation.js +305 -0
- package/cjs/components/Select/hooks/useKeyboardNavigation.js.map +1 -0
- package/cjs/components/Select/hooks/usePathMaps.js +37 -0
- package/cjs/components/Select/hooks/usePathMaps.js.map +1 -0
- package/cjs/components/Select/reducers/focusedChipIndexReducer.js +39 -0
- package/cjs/components/Select/reducers/focusedChipIndexReducer.js.map +1 -0
- package/cjs/components/Select/reducers/focusedPathReducer.js +37 -0
- package/cjs/components/Select/reducers/focusedPathReducer.js.map +1 -0
- package/cjs/components/Select/reducers/pathReducer.js +41 -0
- package/cjs/components/Select/reducers/pathReducer.js.map +1 -0
- package/cjs/components/Select/utils/getCorrectHeight.js +13 -0
- package/cjs/components/Select/utils/getCorrectHeight.js.map +1 -0
- package/cjs/components/Select/utils/getView.js +27 -0
- package/cjs/components/Select/utils/getView.js.map +1 -0
- package/cjs/components/Select/utils/initialItemsTransform.js +19 -0
- package/cjs/components/Select/utils/initialItemsTransform.js.map +1 -0
- package/cjs/components/Select/utils/sizeToIconSize.js +11 -0
- package/cjs/components/Select/utils/sizeToIconSize.js.map +1 -0
- package/cjs/components/Select/utils/updateAncestors.js +32 -0
- package/cjs/components/Select/utils/updateAncestors.js.map +1 -0
- package/cjs/components/Select/utils/updateDescendants.js +16 -0
- package/cjs/components/Select/utils/updateDescendants.js.map +1 -0
- package/cjs/components/Select/utils/updateSingleAncestors.js +13 -0
- package/cjs/components/Select/utils/updateSingleAncestors.js.map +1 -0
- package/cjs/components/Slider/Slider.css +5 -5
- package/cjs/components/Slider/components/Double/Double.css +5 -5
- package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.css +5 -5
- package/cjs/components/_Icon/Icon.assets/DisclosureDownCentered.js +33 -0
- package/cjs/components/_Icon/Icon.assets/DisclosureDownCentered.js.map +1 -0
- package/cjs/components/_Icon/Icon.assets/DisclosureRightCentered.js +31 -0
- package/cjs/components/_Icon/Icon.assets/DisclosureRightCentered.js.map +1 -0
- package/cjs/components/_Icon/Icons/IconDisclosureDownCentered.js +23 -0
- package/cjs/components/_Icon/Icons/IconDisclosureDownCentered.js.map +1 -0
- package/cjs/components/_Icon/Icons/IconDisclosureRightCentered.js +23 -0
- package/cjs/components/_Icon/Icons/IconDisclosureRightCentered.js.map +1 -0
- package/cjs/engines/common.js.map +1 -1
- package/cjs/hooks/useOutsideClick.js +26 -0
- package/cjs/hooks/useOutsideClick.js.map +1 -0
- package/cjs/index.css +49 -40
- package/cjs/index.js +6 -24
- package/cjs/index.js.map +1 -1
- package/cjs/utils/index.js.map +1 -1
- package/cjs/utils/isEmpty.js +49 -0
- package/cjs/utils/isEmpty.js.map +1 -0
- package/es/components/Button/Button.styles.js.map +1 -1
- package/es/components/Chip/Chip.css +5 -5
- package/es/components/Chip/Chip.styles.js +1 -1
- package/es/components/Chip/Chip.styles.js.map +1 -1
- package/es/components/Chip/{Chip.styles_1mwwhiw.css → Chip.styles_1l2rsrr.css} +1 -1
- package/es/components/Chip/Chip.tokens.js +2 -0
- package/es/components/Chip/Chip.tokens.js.map +1 -1
- package/es/components/Combobox/Combobox.css +5 -5
- package/es/components/Combobox/Combobox.js +2 -2
- package/es/components/Combobox/Combobox.js.map +1 -1
- package/es/components/Combobox/hooks/useKeyNavigation.js.map +1 -0
- package/es/components/Combobox/ui/ComboboxChip/ComboboxChip.css +5 -5
- package/es/components/Combobox/ui/ComboboxTarget/ComboboxTarget.css +5 -5
- package/es/components/Combobox/ui/ComboboxTarget/ComboboxTarget.js +1 -1
- package/es/components/Combobox/ui/ComboboxTarget/ComboboxTarget.js.map +1 -1
- package/es/components/Combobox/utils/index.js +102 -3
- package/es/components/Combobox/utils/index.js.map +1 -1
- package/es/components/Dropdown/Dropdown.tokens.js +32 -18
- package/es/components/Dropdown/Dropdown.tokens.js.map +1 -1
- package/es/components/Pagination/Pagination.css +67 -57
- package/es/components/Pagination/Pagination.js +12 -5
- package/es/components/Pagination/Pagination.js.map +1 -1
- package/es/components/Pagination/Pagination.styles.js.map +1 -1
- package/es/components/Pagination/Pagination.tokens.js +9 -11
- package/es/components/Pagination/Pagination.tokens.js.map +1 -1
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +65 -55
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +24 -29
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js.map +1 -1
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +6 -19
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_187mk6b.css +3 -0
- package/es/components/Range/Range.css +5 -5
- package/es/components/Select/Select.css +71 -60
- package/es/components/Select/Select.js +248 -199
- package/es/components/Select/Select.js.map +1 -1
- package/es/components/Select/Select.styles.js +46 -34
- package/es/components/Select/Select.styles.js.map +1 -1
- package/es/components/Select/Select.styles_zx0ztg.css +5 -0
- package/es/components/Select/Select.tokens.js +58 -166
- package/es/components/Select/Select.tokens.js.map +1 -1
- package/es/components/Select/elements/Inner/Inner.css +112 -0
- package/es/components/Select/elements/Inner/Inner.js +73 -0
- package/es/components/Select/elements/Inner/Inner.js.map +1 -0
- package/es/components/Select/elements/Inner/elements/Item/Item.css +112 -0
- package/es/components/Select/elements/Inner/elements/Item/Item.js +83 -0
- package/es/components/Select/elements/Inner/elements/Item/Item.js.map +1 -0
- package/es/components/Select/elements/Inner/elements/Item/Item.styles.js +93 -0
- package/es/components/Select/elements/Inner/elements/Item/Item.styles.js.map +1 -0
- package/es/components/Select/elements/Inner/elements/Item/Item.styles_545sy7.css +8 -0
- package/es/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.css +30 -0
- package/es/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.js +16 -0
- package/es/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.js.map +1 -0
- package/es/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.styles.js +34 -0
- package/es/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.styles.js.map +1 -0
- package/es/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.styles_r1sne.css +4 -0
- package/es/components/Select/elements/Target/Target.css +67 -0
- package/es/components/Select/elements/Target/Target.js +53 -0
- package/es/components/Select/elements/Target/Target.js.map +1 -0
- package/es/components/Select/elements/Target/elements/Button/Button.css +34 -0
- package/es/components/Select/elements/Target/elements/Button/Button.js +58 -0
- package/es/components/Select/elements/Target/elements/Button/Button.js.map +1 -0
- package/es/components/Select/elements/Target/elements/Button/Button.styles.js +49 -0
- package/es/components/Select/elements/Target/elements/Button/Button.styles.js.map +1 -0
- package/es/components/Select/elements/Target/elements/Button/Button.styles_1bweq1y.css +6 -0
- package/es/components/Select/{ui/SelectTarget/SelectTarget.css → elements/Target/elements/Textfield/Textfield.css} +18 -12
- package/es/components/Select/elements/Target/elements/Textfield/Textfield.js +90 -0
- package/es/components/Select/elements/Target/elements/Textfield/Textfield.js.map +1 -0
- package/es/components/Select/elements/Target/elements/Textfield/Textfield.styles.js +98 -0
- package/es/components/Select/elements/Target/elements/Textfield/Textfield.styles.js.map +1 -0
- package/es/components/Select/elements/Target/elements/Textfield/Textfield.styles_6vgsi4.css +12 -0
- package/es/components/Select/{ui/SelectChip/SelectChip.css → elements/Target/elements/Textfield/elements/Chip/Chip.css} +6 -6
- package/es/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.js +32 -0
- package/es/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.js.map +1 -0
- package/es/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.styles.js +19 -0
- package/es/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.styles.js.map +1 -0
- package/es/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.styles_k6znfr.css +1 -0
- package/es/components/Select/hooks/useKeyboardNavigation.js +300 -0
- package/es/components/Select/hooks/useKeyboardNavigation.js.map +1 -0
- package/es/components/Select/hooks/usePathMaps.js +33 -0
- package/es/components/Select/hooks/usePathMaps.js.map +1 -0
- package/es/components/Select/reducers/focusedChipIndexReducer.js +35 -0
- package/es/components/Select/reducers/focusedChipIndexReducer.js.map +1 -0
- package/es/components/Select/reducers/focusedPathReducer.js +33 -0
- package/es/components/Select/reducers/focusedPathReducer.js.map +1 -0
- package/es/components/Select/reducers/pathReducer.js +37 -0
- package/es/components/Select/reducers/pathReducer.js.map +1 -0
- package/es/components/Select/utils/getCorrectHeight.js +9 -0
- package/es/components/Select/utils/getCorrectHeight.js.map +1 -0
- package/es/components/Select/utils/getView.js +23 -0
- package/es/components/Select/utils/getView.js.map +1 -0
- package/es/components/Select/utils/initialItemsTransform.js +15 -0
- package/es/components/Select/utils/initialItemsTransform.js.map +1 -0
- package/es/components/Select/utils/sizeToIconSize.js +7 -0
- package/es/components/Select/utils/sizeToIconSize.js.map +1 -0
- package/es/components/Select/utils/updateAncestors.js +28 -0
- package/es/components/Select/utils/updateAncestors.js.map +1 -0
- package/es/components/Select/utils/updateDescendants.js +12 -0
- package/es/components/Select/utils/updateDescendants.js.map +1 -0
- package/es/components/Select/utils/updateSingleAncestors.js +9 -0
- package/es/components/Select/utils/updateSingleAncestors.js.map +1 -0
- package/es/components/Slider/Slider.css +5 -5
- package/es/components/Slider/components/Double/Double.css +5 -5
- package/es/components/TextField/ui/TextFieldChip/TextFieldChip.css +5 -5
- package/es/components/_Icon/Icon.assets/DisclosureDownCentered.js +29 -0
- package/es/components/_Icon/Icon.assets/DisclosureDownCentered.js.map +1 -0
- package/es/components/_Icon/Icon.assets/DisclosureRightCentered.js +27 -0
- package/es/components/_Icon/Icon.assets/DisclosureRightCentered.js.map +1 -0
- package/es/components/_Icon/Icons/IconDisclosureDownCentered.js +19 -0
- package/es/components/_Icon/Icons/IconDisclosureDownCentered.js.map +1 -0
- package/es/components/_Icon/Icons/IconDisclosureRightCentered.js +19 -0
- package/es/components/_Icon/Icons/IconDisclosureRightCentered.js.map +1 -0
- package/es/engines/common.js.map +1 -1
- package/es/hooks/useOutsideClick.js +22 -0
- package/es/hooks/useOutsideClick.js.map +1 -0
- package/es/index.css +49 -40
- package/es/index.js +4 -9
- package/es/index.js.map +1 -1
- package/es/utils/index.js.map +1 -1
- package/es/utils/isEmpty.js +45 -0
- package/es/utils/isEmpty.js.map +1 -0
- package/package.json +2 -4
- package/styled-components/cjs/components/Button/Button.styles.js +2 -2
- package/styled-components/cjs/components/Chip/Chip.styles.js +1 -1
- package/styled-components/cjs/components/Chip/Chip.tokens.js +2 -0
- package/styled-components/cjs/components/Combobox/Combobox.js +6 -6
- package/styled-components/cjs/components/Combobox/hooks/index.js +14 -1
- package/styled-components/cjs/components/Combobox/ui/ComboboxTarget/ComboboxTarget.js +4 -5
- package/styled-components/cjs/components/Combobox/utils/index.js +105 -1
- package/styled-components/cjs/components/Dropdown/Dropdown.tokens.js +32 -18
- package/styled-components/cjs/components/Pagination/Pagination.js +12 -5
- package/styled-components/cjs/components/Pagination/Pagination.styles.js +2 -2
- package/styled-components/cjs/components/Pagination/Pagination.tokens.js +9 -11
- package/styled-components/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +23 -35
- package/styled-components/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +3 -8
- package/styled-components/cjs/components/Select/Select.js +247 -194
- package/styled-components/cjs/components/Select/Select.styles.js +28 -23
- package/styled-components/cjs/components/Select/Select.tokens.js +73 -167
- package/styled-components/cjs/components/Select/elements/InfiniteLoader/InfiniteLoader.js +18 -0
- package/styled-components/cjs/components/Select/elements/InfiniteLoader/InfiniteLoader.styles.js +24 -0
- package/styled-components/cjs/components/Select/elements/Inner/Inner.js +75 -0
- package/styled-components/cjs/components/Select/elements/Inner/elements/Item/Item.js +85 -0
- package/styled-components/cjs/components/Select/elements/Inner/elements/Item/Item.styles.js +63 -0
- package/styled-components/cjs/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.js +19 -0
- package/styled-components/cjs/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.styles.js +25 -0
- package/styled-components/cjs/components/Select/elements/Target/Target.js +56 -0
- package/styled-components/cjs/components/Select/elements/Target/elements/Button/Button.js +60 -0
- package/styled-components/cjs/components/Select/elements/Target/elements/Button/Button.styles.js +33 -0
- package/styled-components/cjs/components/Select/elements/Target/elements/Textfield/Textfield.js +92 -0
- package/styled-components/cjs/components/Select/elements/Target/elements/Textfield/Textfield.styles.js +66 -0
- package/styled-components/cjs/components/Select/{ui/SelectChip/SelectChip.js → elements/Target/elements/Textfield/elements/Chip/Chip.js} +24 -27
- package/styled-components/cjs/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.styles.js +21 -0
- package/styled-components/cjs/components/Select/hooks/useKeyboardNavigation.js +307 -0
- package/styled-components/cjs/components/Select/hooks/usePathMaps.js +33 -0
- package/styled-components/cjs/components/Select/index.js +3 -20
- package/styled-components/cjs/components/Select/reducers/focusedChipIndexReducer.js +38 -0
- package/styled-components/cjs/components/Select/reducers/focusedPathReducer.js +40 -0
- package/styled-components/cjs/components/Select/reducers/index.js +38 -0
- package/styled-components/cjs/components/Select/reducers/pathReducer.js +44 -0
- package/styled-components/cjs/components/Select/utils/getCorrectHeight.js +12 -0
- package/styled-components/cjs/components/Select/utils/getView.js +26 -0
- package/styled-components/cjs/components/Select/utils/index.js +44 -102
- package/styled-components/cjs/components/Select/utils/initialItemsTransform.js +18 -0
- package/styled-components/cjs/components/Select/utils/sizeToIconSize.js +10 -0
- package/styled-components/cjs/components/Select/utils/updateAncestors.js +31 -0
- package/styled-components/cjs/components/Select/utils/updateDescendants.js +15 -0
- package/styled-components/cjs/components/Select/utils/updateSingleAncestors.js +12 -0
- package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureDownCentered.js +32 -0
- package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureRightCentered.js +30 -0
- package/styled-components/cjs/components/_Icon/Icons/IconDisclosureDownCentered.js +22 -0
- package/styled-components/cjs/components/_Icon/Icons/IconDisclosureRightCentered.js +22 -0
- package/styled-components/cjs/components/_Icon/index.js +15 -1
- package/styled-components/cjs/examples/_helpers.js +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Pagination/Pagination.config.js +7 -7
- package/styled-components/cjs/examples/plasma_b2c/components/Pagination/Pagination.stories.tsx +1 -0
- package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.config.js +19 -10
- package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.js +9 -13
- package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +766 -209
- package/styled-components/cjs/examples/plasma_b2c/components/Select/style.css +38 -0
- package/styled-components/cjs/examples/plasma_web/components/Pagination/Pagination.config.js +7 -7
- package/styled-components/cjs/hooks/index.js +7 -0
- package/styled-components/cjs/hooks/useOutsideClick.js +24 -0
- package/styled-components/cjs/index.js +0 -11
- package/styled-components/cjs/utils/index.js +7 -0
- package/styled-components/cjs/utils/isEmpty.js +47 -0
- package/styled-components/es/components/Button/Button.styles.js +2 -2
- package/styled-components/es/components/Chip/Chip.styles.js +1 -1
- package/styled-components/es/components/Chip/Chip.tokens.js +2 -0
- package/styled-components/es/components/Combobox/Combobox.js +2 -2
- package/styled-components/es/components/Combobox/hooks/index.js +2 -1
- package/styled-components/es/components/Combobox/ui/ComboboxTarget/ComboboxTarget.js +1 -2
- package/styled-components/es/components/Combobox/utils/index.js +105 -1
- package/styled-components/es/components/Dropdown/Dropdown.tokens.js +32 -18
- package/styled-components/es/components/Pagination/Pagination.js +12 -5
- package/styled-components/es/components/Pagination/Pagination.styles.js +2 -2
- package/styled-components/es/components/Pagination/Pagination.tokens.js +9 -11
- package/styled-components/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +23 -33
- package/styled-components/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +3 -8
- package/styled-components/es/components/Select/Select.js +243 -191
- package/styled-components/es/components/Select/Select.styles.js +25 -21
- package/styled-components/es/components/Select/Select.tokens.js +72 -166
- package/styled-components/es/components/Select/elements/InfiniteLoader/InfiniteLoader.js +11 -0
- package/styled-components/es/components/Select/elements/InfiniteLoader/InfiniteLoader.styles.js +17 -0
- package/styled-components/es/components/Select/elements/Inner/Inner.js +68 -0
- package/styled-components/es/components/Select/elements/Inner/elements/Item/Item.js +76 -0
- package/styled-components/es/components/Select/elements/Inner/elements/Item/Item.styles.js +56 -0
- package/styled-components/es/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.js +12 -0
- package/styled-components/es/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.styles.js +18 -0
- package/styled-components/es/components/Select/elements/Target/Target.js +49 -0
- package/styled-components/es/components/Select/elements/Target/elements/Button/Button.js +53 -0
- package/styled-components/es/components/Select/elements/Target/elements/Button/Button.styles.js +26 -0
- package/styled-components/es/components/Select/elements/Target/elements/Textfield/Textfield.js +85 -0
- package/styled-components/es/components/Select/elements/Target/elements/Textfield/Textfield.styles.js +59 -0
- package/styled-components/es/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.js +28 -0
- package/styled-components/es/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.styles.js +14 -0
- package/styled-components/es/components/Select/hooks/useKeyboardNavigation.js +301 -0
- package/styled-components/es/components/Select/hooks/usePathMaps.js +27 -0
- package/styled-components/es/components/Select/index.js +2 -2
- package/styled-components/es/components/Select/reducers/focusedChipIndexReducer.js +32 -0
- package/styled-components/es/components/Select/reducers/focusedPathReducer.js +34 -0
- package/styled-components/es/components/Select/reducers/index.js +3 -0
- package/styled-components/es/components/Select/reducers/pathReducer.js +38 -0
- package/styled-components/es/components/Select/utils/getCorrectHeight.js +6 -0
- package/styled-components/es/components/Select/utils/getView.js +20 -0
- package/styled-components/es/components/Select/utils/index.js +7 -106
- package/styled-components/es/components/Select/utils/initialItemsTransform.js +12 -0
- package/styled-components/es/components/Select/utils/sizeToIconSize.js +4 -0
- package/styled-components/es/components/Select/utils/updateAncestors.js +25 -0
- package/styled-components/es/components/Select/utils/updateDescendants.js +9 -0
- package/styled-components/es/components/Select/utils/updateSingleAncestors.js +6 -0
- package/styled-components/es/components/_Icon/Icon.assets/DisclosureDownCentered.js +25 -0
- package/styled-components/es/components/_Icon/Icon.assets/DisclosureRightCentered.js +23 -0
- package/styled-components/es/components/_Icon/Icons/IconDisclosureDownCentered.js +15 -0
- package/styled-components/es/components/_Icon/Icons/IconDisclosureRightCentered.js +15 -0
- package/styled-components/es/components/_Icon/index.js +3 -1
- package/styled-components/es/examples/_helpers.js +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Pagination/Pagination.config.js +7 -7
- package/styled-components/es/examples/plasma_b2c/components/Pagination/Pagination.stories.tsx +1 -0
- package/styled-components/es/examples/plasma_b2c/components/Select/Select.config.js +19 -10
- package/styled-components/es/examples/plasma_b2c/components/Select/Select.js +2 -11
- package/styled-components/es/examples/plasma_b2c/components/Select/Select.stories.tsx +766 -209
- package/styled-components/es/examples/plasma_b2c/components/Select/style.css +38 -0
- package/styled-components/es/examples/plasma_web/components/Pagination/Pagination.config.js +7 -7
- package/styled-components/es/hooks/index.js +1 -0
- package/styled-components/es/hooks/useOutsideClick.js +18 -0
- package/styled-components/es/index.js +0 -1
- package/styled-components/es/utils/index.js +1 -0
- package/styled-components/es/utils/isEmpty.js +42 -0
- package/types/components/Chip/Chip.styles.d.ts.map +1 -1
- package/types/components/Chip/Chip.tokens.d.ts +2 -0
- package/types/components/Chip/Chip.tokens.d.ts.map +1 -1
- package/types/components/Combobox/Select.types.d.ts +99 -0
- package/types/components/Combobox/Select.types.d.ts.map +1 -0
- package/types/components/Combobox/hooks/index.d.ts +1 -0
- package/types/components/Combobox/hooks/index.d.ts.map +1 -1
- package/types/components/Combobox/hooks/useKeyNavigation.d.ts.map +1 -0
- package/types/components/Combobox/ui/ComboboxTarget/ComboboxTarget.d.ts.map +1 -1
- package/types/components/Combobox/utils/index.d.ts +13 -1
- package/types/components/Combobox/utils/index.d.ts.map +1 -1
- package/types/components/Dropdown/Dropdown.tokens.d.ts +17 -17
- package/types/components/Dropdown/Dropdown.tokens.d.ts.map +1 -1
- package/types/components/Pagination/Pagination.d.ts.map +1 -1
- package/types/components/Pagination/Pagination.tokens.d.ts +9 -11
- package/types/components/Pagination/Pagination.tokens.d.ts.map +1 -1
- package/types/components/Pagination/Pagination.types.d.ts +6 -1
- package/types/components/Pagination/Pagination.types.d.ts.map +1 -1
- package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.d.ts.map +1 -1
- package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts +120 -38
- package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts.map +1 -1
- package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.types.d.ts +5 -2
- package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.types.d.ts.map +1 -1
- package/types/components/Select/Select.d.ts +6 -8
- package/types/components/Select/Select.d.ts.map +1 -1
- package/types/components/Select/Select.styles.d.ts +11 -6
- package/types/components/Select/Select.styles.d.ts.map +1 -1
- package/types/components/Select/Select.tokens.d.ts +71 -165
- package/types/components/Select/Select.tokens.d.ts.map +1 -1
- package/types/components/Select/Select.types.d.ts +112 -68
- package/types/components/Select/Select.types.d.ts.map +1 -1
- package/types/components/Select/elements/InfiniteLoader/InfiniteLoader.d.ts +6 -0
- package/types/components/Select/elements/InfiniteLoader/InfiniteLoader.d.ts.map +1 -0
- package/types/components/Select/elements/InfiniteLoader/InfiniteLoader.styles.d.ts +29 -0
- package/types/components/Select/elements/InfiniteLoader/InfiniteLoader.styles.d.ts.map +1 -0
- package/types/components/Select/elements/Inner/Inner.d.ts +4 -0
- package/types/components/Select/elements/Inner/Inner.d.ts.map +1 -0
- package/types/components/Select/elements/Inner/Inner.type.d.ts +13 -0
- package/types/components/Select/elements/Inner/Inner.type.d.ts.map +1 -0
- package/types/components/Select/elements/Inner/elements/Item/Item.d.ts +4 -0
- package/types/components/Select/elements/Inner/elements/Item/Item.d.ts.map +1 -0
- package/types/components/Select/elements/Inner/elements/Item/Item.styles.d.ts +18 -0
- package/types/components/Select/elements/Inner/elements/Item/Item.styles.d.ts.map +1 -0
- package/types/components/Select/elements/Inner/elements/Item/Item.types.d.ts +22 -0
- package/types/components/Select/elements/Inner/elements/Item/Item.types.d.ts.map +1 -0
- package/types/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.d.ts +4 -0
- package/types/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.d.ts.map +1 -0
- package/types/components/Select/{ui/SelectTarget/SelectTarget.styles.d.ts → elements/SelectNotFoundContent/SelectNotFoundContent.styles.d.ts} +6 -12
- package/types/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.styles.d.ts.map +1 -0
- package/types/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.types.d.ts +8 -0
- package/types/components/Select/elements/SelectNotFoundContent/SelectNotFoundContent.types.d.ts.map +1 -0
- package/types/components/Select/elements/Target/Target.d.ts +4 -0
- package/types/components/Select/elements/Target/Target.d.ts.map +1 -0
- package/types/components/Select/elements/Target/Target.types.d.ts +12 -0
- package/types/components/Select/elements/Target/Target.types.d.ts.map +1 -0
- package/types/components/Select/elements/Target/elements/Button/Button.d.ts +4 -0
- package/types/components/Select/elements/Target/elements/Button/Button.d.ts.map +1 -0
- package/types/components/Select/elements/Target/elements/Button/Button.styles.d.ts +50 -0
- package/types/components/Select/elements/Target/elements/Button/Button.styles.d.ts.map +1 -0
- package/types/components/Select/elements/Target/elements/Button/Button.types.d.ts +4 -0
- package/types/components/Select/elements/Target/elements/Button/Button.types.d.ts.map +1 -0
- package/types/components/Select/elements/Target/elements/Textfield/Textfield.d.ts +4 -0
- package/types/components/Select/elements/Target/elements/Textfield/Textfield.d.ts.map +1 -0
- package/types/components/Select/elements/Target/elements/Textfield/Textfield.styles.d.ts +63 -0
- package/types/components/Select/elements/Target/elements/Textfield/Textfield.styles.d.ts.map +1 -0
- package/types/components/Select/elements/Target/elements/Textfield/Textfield.types.d.ts +4 -0
- package/types/components/Select/elements/Target/elements/Textfield/Textfield.types.d.ts.map +1 -0
- package/types/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.d.ts +9 -0
- package/types/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.d.ts.map +1 -0
- package/types/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.styles.d.ts +3 -0
- package/types/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.styles.d.ts.map +1 -0
- package/types/components/Select/hooks/useKeyboardNavigation.d.ts +43 -0
- package/types/components/Select/hooks/useKeyboardNavigation.d.ts.map +1 -0
- package/types/components/Select/hooks/usePathMaps.d.ts +8 -0
- package/types/components/Select/hooks/usePathMaps.d.ts.map +1 -0
- package/types/components/Select/index.d.ts +3 -3
- package/types/components/Select/index.d.ts.map +1 -1
- package/types/components/Select/reducers/focusedChipIndexReducer.d.ts +11 -0
- package/types/components/Select/reducers/focusedChipIndexReducer.d.ts.map +1 -0
- package/types/components/Select/reducers/focusedPathReducer.d.ts +16 -0
- package/types/components/Select/reducers/focusedPathReducer.d.ts.map +1 -0
- package/types/components/Select/reducers/index.d.ts +4 -0
- package/types/components/Select/reducers/index.d.ts.map +1 -0
- package/types/components/Select/reducers/pathReducer.d.ts +20 -0
- package/types/components/Select/reducers/pathReducer.d.ts.map +1 -0
- package/types/components/Select/utils/getCorrectHeight.d.ts +3 -0
- package/types/components/Select/utils/getCorrectHeight.d.ts.map +1 -0
- package/types/components/Select/utils/getView.d.ts +3 -0
- package/types/components/Select/utils/getView.d.ts.map +1 -0
- package/types/components/Select/utils/index.d.ts +7 -13
- package/types/components/Select/utils/index.d.ts.map +1 -1
- package/types/components/Select/utils/initialItemsTransform.d.ts +3 -0
- package/types/components/Select/utils/initialItemsTransform.d.ts.map +1 -0
- package/types/components/Select/utils/sizeToIconSize.d.ts +3 -0
- package/types/components/Select/utils/sizeToIconSize.d.ts.map +1 -0
- package/types/components/Select/utils/updateAncestors.d.ts +4 -0
- package/types/components/Select/utils/updateAncestors.d.ts.map +1 -0
- package/types/components/Select/utils/updateDescendants.d.ts +4 -0
- package/types/components/Select/utils/updateDescendants.d.ts.map +1 -0
- package/types/components/Select/utils/updateSingleAncestors.d.ts +4 -0
- package/types/components/Select/utils/updateSingleAncestors.d.ts.map +1 -0
- package/types/components/_Icon/Icon.assets/DisclosureDownCentered.d.ts +4 -0
- package/types/components/_Icon/Icon.assets/DisclosureDownCentered.d.ts.map +1 -0
- package/types/components/_Icon/Icon.assets/DisclosureRightCentered.d.ts +4 -0
- package/types/components/_Icon/Icon.assets/DisclosureRightCentered.d.ts.map +1 -0
- package/types/components/_Icon/Icons/IconDisclosureDownCentered.d.ts +4 -0
- package/types/components/_Icon/Icons/IconDisclosureDownCentered.d.ts.map +1 -0
- package/types/components/_Icon/Icons/IconDisclosureRightCentered.d.ts +4 -0
- package/types/components/_Icon/Icons/IconDisclosureRightCentered.d.ts.map +1 -0
- package/types/components/_Icon/index.d.ts +2 -0
- package/types/components/_Icon/index.d.ts.map +1 -1
- package/types/engines/common.d.ts +1 -1
- package/types/engines/common.d.ts.map +1 -1
- package/types/engines/types.d.ts +1 -1
- package/types/engines/types.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Pagination/Pagination.config.d.ts +1 -1
- package/types/examples/plasma_b2c/components/Pagination/Pagination.config.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Pagination/Pagination.d.ts +1 -1
- package/types/examples/plasma_b2c/components/Select/Select.config.d.ts +14 -5
- package/types/examples/plasma_b2c/components/Select/Select.config.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Select/Select.d.ts +132 -45
- package/types/examples/plasma_b2c/components/Select/Select.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Pagination/Pagination.config.d.ts +1 -1
- package/types/examples/plasma_web/components/Pagination/Pagination.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Pagination/Pagination.d.ts +1 -1
- package/types/hooks/index.d.ts +1 -0
- package/types/hooks/index.d.ts.map +1 -1
- package/types/hooks/useOutsideClick.d.ts +3 -0
- package/types/hooks/useOutsideClick.d.ts.map +1 -0
- package/types/index.d.ts +0 -1
- package/types/index.d.ts.map +1 -1
- package/types/utils/index.d.ts +1 -0
- package/types/utils/index.d.ts.map +1 -1
- package/types/utils/isEmpty.d.ts +3 -0
- package/types/utils/isEmpty.d.ts.map +1 -0
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_rtehle.css +0 -4
- package/cjs/components/Select/Select.styles_1q3i6gw.css +0 -4
- package/cjs/components/Select/hooks/useKeyNavigation.js.map +0 -1
- package/cjs/components/Select/ui/SelectChip/SelectChip.js +0 -39
- package/cjs/components/Select/ui/SelectChip/SelectChip.js.map +0 -1
- package/cjs/components/Select/ui/SelectChip/SelectChip.styles.js.map +0 -1
- package/cjs/components/Select/ui/SelectChip/SelectChip.styles_1u4uw04.css +0 -1
- package/cjs/components/Select/ui/SelectDivider/SelectDivider.css +0 -35
- package/cjs/components/Select/ui/SelectDivider/SelectDivider.js +0 -41
- package/cjs/components/Select/ui/SelectDivider/SelectDivider.js.map +0 -1
- package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles.js +0 -12
- package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles.js.map +0 -1
- package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles_673hj6.css +0 -1
- package/cjs/components/Select/ui/SelectDivider/variations/_size/base.js +0 -9
- package/cjs/components/Select/ui/SelectDivider/variations/_size/base.js.map +0 -1
- package/cjs/components/Select/ui/SelectDivider/variations/_size/base_x642ct.css +0 -1
- package/cjs/components/Select/ui/SelectDivider/variations/_view/base.js +0 -9
- package/cjs/components/Select/ui/SelectDivider/variations/_view/base.js.map +0 -1
- package/cjs/components/Select/ui/SelectDivider/variations/_view/base_x642ct.css +0 -1
- package/cjs/components/Select/ui/SelectFooter/SelectFooter.css +0 -35
- package/cjs/components/Select/ui/SelectFooter/SelectFooter.js +0 -41
- package/cjs/components/Select/ui/SelectFooter/SelectFooter.js.map +0 -1
- package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles.js +0 -12
- package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles.js.map +0 -1
- package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles_11hk6tt.css +0 -1
- package/cjs/components/Select/ui/SelectFooter/variations/_size/base.js +0 -9
- package/cjs/components/Select/ui/SelectFooter/variations/_size/base.js.map +0 -1
- package/cjs/components/Select/ui/SelectFooter/variations/_size/base_x642ct.css +0 -1
- package/cjs/components/Select/ui/SelectFooter/variations/_view/base.js +0 -9
- package/cjs/components/Select/ui/SelectFooter/variations/_view/base.js.map +0 -1
- package/cjs/components/Select/ui/SelectFooter/variations/_view/base_x642ct.css +0 -1
- package/cjs/components/Select/ui/SelectGroup/SelectGroup.css +0 -35
- package/cjs/components/Select/ui/SelectGroup/SelectGroup.js +0 -41
- package/cjs/components/Select/ui/SelectGroup/SelectGroup.js.map +0 -1
- package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles.js +0 -12
- package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles.js.map +0 -1
- package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles_mktu7e.css +0 -1
- package/cjs/components/Select/ui/SelectGroup/variations/_size/base.js +0 -9
- package/cjs/components/Select/ui/SelectGroup/variations/_size/base.js.map +0 -1
- package/cjs/components/Select/ui/SelectGroup/variations/_size/base_x642ct.css +0 -1
- package/cjs/components/Select/ui/SelectGroup/variations/_view/base.js +0 -9
- package/cjs/components/Select/ui/SelectGroup/variations/_view/base.js.map +0 -1
- package/cjs/components/Select/ui/SelectGroup/variations/_view/base_x642ct.css +0 -1
- package/cjs/components/Select/ui/SelectHeader/SelectHeader.css +0 -35
- package/cjs/components/Select/ui/SelectHeader/SelectHeader.js +0 -41
- package/cjs/components/Select/ui/SelectHeader/SelectHeader.js.map +0 -1
- package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles.js +0 -12
- package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles.js.map +0 -1
- package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles_24gqog.css +0 -1
- package/cjs/components/Select/ui/SelectHeader/variations/_size/base.js +0 -9
- package/cjs/components/Select/ui/SelectHeader/variations/_size/base.js.map +0 -1
- package/cjs/components/Select/ui/SelectHeader/variations/_size/base_x642ct.css +0 -1
- package/cjs/components/Select/ui/SelectHeader/variations/_view/base.js +0 -9
- package/cjs/components/Select/ui/SelectHeader/variations/_view/base.js.map +0 -1
- package/cjs/components/Select/ui/SelectHeader/variations/_view/base_x642ct.css +0 -1
- package/cjs/components/Select/ui/SelectItem/SelectItem.css +0 -35
- package/cjs/components/Select/ui/SelectItem/SelectItem.js +0 -40
- package/cjs/components/Select/ui/SelectItem/SelectItem.js.map +0 -1
- package/cjs/components/Select/ui/SelectItem/SelectItem.styles.js +0 -19
- package/cjs/components/Select/ui/SelectItem/SelectItem.styles.js.map +0 -1
- package/cjs/components/Select/ui/SelectItem/SelectItem.styles_vk39mp.css +0 -1
- package/cjs/components/Select/ui/SelectItem/variations/_size/base.js +0 -9
- package/cjs/components/Select/ui/SelectItem/variations/_size/base.js.map +0 -1
- package/cjs/components/Select/ui/SelectItem/variations/_size/base_x642ct.css +0 -1
- package/cjs/components/Select/ui/SelectItem/variations/_view/base.js +0 -9
- package/cjs/components/Select/ui/SelectItem/variations/_view/base.js.map +0 -1
- package/cjs/components/Select/ui/SelectItem/variations/_view/base_x642ct.css +0 -1
- package/cjs/components/Select/ui/SelectTarget/SelectTarget.js +0 -148
- package/cjs/components/Select/ui/SelectTarget/SelectTarget.js.map +0 -1
- package/cjs/components/Select/ui/SelectTarget/SelectTarget.styles.js +0 -112
- package/cjs/components/Select/ui/SelectTarget/SelectTarget.styles.js.map +0 -1
- package/cjs/components/Select/ui/SelectTarget/SelectTarget.styles_hb1tns.css +0 -6
- package/cjs/components/Select/utils/index.js +0 -112
- package/cjs/components/Select/utils/index.js.map +0 -1
- package/cjs/components/Select/variations/_target/base.js +0 -9
- package/cjs/components/Select/variations/_target/base.js.map +0 -1
- package/cjs/components/Select/variations/_target/base_x642ct.css +0 -1
- package/cjs/components/Sheet/Sheet.css +0 -9
- package/cjs/components/Sheet/Sheet.js +0 -112
- package/cjs/components/Sheet/Sheet.js.map +0 -1
- package/cjs/components/Sheet/Sheet.styles.js +0 -127
- package/cjs/components/Sheet/Sheet.styles.js.map +0 -1
- package/cjs/components/Sheet/Sheet.styles_kdjr5m.css +0 -7
- package/cjs/components/Sheet/Sheet.tokens.js +0 -17
- package/cjs/components/Sheet/Sheet.tokens.js.map +0 -1
- package/cjs/components/Sheet/hooks/useSheet.js +0 -26
- package/cjs/components/Sheet/hooks/useSheet.js.map +0 -1
- package/cjs/components/Sheet/hooks/useSheetSwipe.js +0 -98
- package/cjs/components/Sheet/hooks/useSheetSwipe.js.map +0 -1
- package/cjs/components/Sheet/utils/handleTransition.js +0 -13
- package/cjs/components/Sheet/utils/handleTransition.js.map +0 -1
- package/cjs/components/Sheet/utils/index.js +0 -8
- package/cjs/components/Sheet/utils/index.js.map +0 -1
- package/cjs/components/Sheet/variations/_view/base.js +0 -9
- package/cjs/components/Sheet/variations/_view/base.js.map +0 -1
- package/cjs/components/Sheet/variations/_view/base_x642ct.css +0 -1
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_rtehle.css +0 -4
- package/es/components/Select/Select.styles_1q3i6gw.css +0 -4
- package/es/components/Select/hooks/useKeyNavigation.js.map +0 -1
- package/es/components/Select/ui/SelectChip/SelectChip.js +0 -35
- package/es/components/Select/ui/SelectChip/SelectChip.js.map +0 -1
- package/es/components/Select/ui/SelectChip/SelectChip.styles.js +0 -22
- package/es/components/Select/ui/SelectChip/SelectChip.styles.js.map +0 -1
- package/es/components/Select/ui/SelectChip/SelectChip.styles_1u4uw04.css +0 -1
- package/es/components/Select/ui/SelectDivider/SelectDivider.css +0 -35
- package/es/components/Select/ui/SelectDivider/SelectDivider.js +0 -36
- package/es/components/Select/ui/SelectDivider/SelectDivider.js.map +0 -1
- package/es/components/Select/ui/SelectDivider/SelectDivider.styles.js +0 -7
- package/es/components/Select/ui/SelectDivider/SelectDivider.styles.js.map +0 -1
- package/es/components/Select/ui/SelectDivider/SelectDivider.styles_673hj6.css +0 -1
- package/es/components/Select/ui/SelectDivider/variations/_size/base.js +0 -5
- package/es/components/Select/ui/SelectDivider/variations/_size/base.js.map +0 -1
- package/es/components/Select/ui/SelectDivider/variations/_size/base_x642ct.css +0 -1
- package/es/components/Select/ui/SelectDivider/variations/_view/base.js +0 -5
- package/es/components/Select/ui/SelectDivider/variations/_view/base.js.map +0 -1
- package/es/components/Select/ui/SelectDivider/variations/_view/base_x642ct.css +0 -1
- package/es/components/Select/ui/SelectFooter/SelectFooter.css +0 -35
- package/es/components/Select/ui/SelectFooter/SelectFooter.js +0 -36
- package/es/components/Select/ui/SelectFooter/SelectFooter.js.map +0 -1
- package/es/components/Select/ui/SelectFooter/SelectFooter.styles.js +0 -7
- package/es/components/Select/ui/SelectFooter/SelectFooter.styles.js.map +0 -1
- package/es/components/Select/ui/SelectFooter/SelectFooter.styles_11hk6tt.css +0 -1
- package/es/components/Select/ui/SelectFooter/variations/_size/base.js +0 -5
- package/es/components/Select/ui/SelectFooter/variations/_size/base.js.map +0 -1
- package/es/components/Select/ui/SelectFooter/variations/_size/base_x642ct.css +0 -1
- package/es/components/Select/ui/SelectFooter/variations/_view/base.js +0 -5
- package/es/components/Select/ui/SelectFooter/variations/_view/base.js.map +0 -1
- package/es/components/Select/ui/SelectFooter/variations/_view/base_x642ct.css +0 -1
- package/es/components/Select/ui/SelectGroup/SelectGroup.css +0 -35
- package/es/components/Select/ui/SelectGroup/SelectGroup.js +0 -36
- package/es/components/Select/ui/SelectGroup/SelectGroup.js.map +0 -1
- package/es/components/Select/ui/SelectGroup/SelectGroup.styles.js +0 -7
- package/es/components/Select/ui/SelectGroup/SelectGroup.styles.js.map +0 -1
- package/es/components/Select/ui/SelectGroup/SelectGroup.styles_mktu7e.css +0 -1
- package/es/components/Select/ui/SelectGroup/variations/_size/base.js +0 -5
- package/es/components/Select/ui/SelectGroup/variations/_size/base.js.map +0 -1
- package/es/components/Select/ui/SelectGroup/variations/_size/base_x642ct.css +0 -1
- package/es/components/Select/ui/SelectGroup/variations/_view/base.js +0 -5
- package/es/components/Select/ui/SelectGroup/variations/_view/base.js.map +0 -1
- package/es/components/Select/ui/SelectGroup/variations/_view/base_x642ct.css +0 -1
- package/es/components/Select/ui/SelectHeader/SelectHeader.css +0 -35
- package/es/components/Select/ui/SelectHeader/SelectHeader.js +0 -36
- package/es/components/Select/ui/SelectHeader/SelectHeader.js.map +0 -1
- package/es/components/Select/ui/SelectHeader/SelectHeader.styles.js +0 -7
- package/es/components/Select/ui/SelectHeader/SelectHeader.styles.js.map +0 -1
- package/es/components/Select/ui/SelectHeader/SelectHeader.styles_24gqog.css +0 -1
- package/es/components/Select/ui/SelectHeader/variations/_size/base.js +0 -5
- package/es/components/Select/ui/SelectHeader/variations/_size/base.js.map +0 -1
- package/es/components/Select/ui/SelectHeader/variations/_size/base_x642ct.css +0 -1
- package/es/components/Select/ui/SelectHeader/variations/_view/base.js +0 -5
- package/es/components/Select/ui/SelectHeader/variations/_view/base.js.map +0 -1
- package/es/components/Select/ui/SelectHeader/variations/_view/base_x642ct.css +0 -1
- package/es/components/Select/ui/SelectItem/SelectItem.css +0 -35
- package/es/components/Select/ui/SelectItem/SelectItem.js +0 -35
- package/es/components/Select/ui/SelectItem/SelectItem.js.map +0 -1
- package/es/components/Select/ui/SelectItem/SelectItem.styles.js +0 -15
- package/es/components/Select/ui/SelectItem/SelectItem.styles.js.map +0 -1
- package/es/components/Select/ui/SelectItem/SelectItem.styles_vk39mp.css +0 -1
- package/es/components/Select/ui/SelectItem/variations/_size/base.js +0 -5
- package/es/components/Select/ui/SelectItem/variations/_size/base.js.map +0 -1
- package/es/components/Select/ui/SelectItem/variations/_size/base_x642ct.css +0 -1
- package/es/components/Select/ui/SelectItem/variations/_view/base.js +0 -5
- package/es/components/Select/ui/SelectItem/variations/_view/base.js.map +0 -1
- package/es/components/Select/ui/SelectItem/variations/_view/base_x642ct.css +0 -1
- package/es/components/Select/ui/SelectTarget/SelectTarget.js +0 -144
- package/es/components/Select/ui/SelectTarget/SelectTarget.js.map +0 -1
- package/es/components/Select/ui/SelectTarget/SelectTarget.styles.js +0 -103
- package/es/components/Select/ui/SelectTarget/SelectTarget.styles.js.map +0 -1
- package/es/components/Select/ui/SelectTarget/SelectTarget.styles_hb1tns.css +0 -6
- package/es/components/Select/utils/index.js +0 -105
- package/es/components/Select/utils/index.js.map +0 -1
- package/es/components/Select/variations/_target/base.js +0 -5
- package/es/components/Select/variations/_target/base.js.map +0 -1
- package/es/components/Select/variations/_target/base_x642ct.css +0 -1
- package/es/components/Sheet/Sheet.css +0 -9
- package/es/components/Sheet/Sheet.js +0 -107
- package/es/components/Sheet/Sheet.js.map +0 -1
- package/es/components/Sheet/Sheet.styles.js +0 -117
- package/es/components/Sheet/Sheet.styles.js.map +0 -1
- package/es/components/Sheet/Sheet.styles_kdjr5m.css +0 -7
- package/es/components/Sheet/Sheet.tokens.js +0 -12
- package/es/components/Sheet/Sheet.tokens.js.map +0 -1
- package/es/components/Sheet/hooks/useSheet.js +0 -22
- package/es/components/Sheet/hooks/useSheet.js.map +0 -1
- package/es/components/Sheet/hooks/useSheetSwipe.js +0 -94
- package/es/components/Sheet/hooks/useSheetSwipe.js.map +0 -1
- package/es/components/Sheet/utils/handleTransition.js +0 -9
- package/es/components/Sheet/utils/handleTransition.js.map +0 -1
- package/es/components/Sheet/utils/index.js +0 -4
- package/es/components/Sheet/utils/index.js.map +0 -1
- package/es/components/Sheet/variations/_view/base.js +0 -5
- package/es/components/Sheet/variations/_view/base.js.map +0 -1
- package/es/components/Sheet/variations/_view/base_x642ct.css +0 -1
- package/styled-components/cjs/components/Select/Select.template-doc.mdx +0 -115
- package/styled-components/cjs/components/Select/hooks/index.js +0 -12
- package/styled-components/cjs/components/Select/ui/SelectChip/SelectChip.styles.js +0 -25
- package/styled-components/cjs/components/Select/ui/SelectDivider/SelectDivider.js +0 -29
- package/styled-components/cjs/components/Select/ui/SelectDivider/SelectDivider.styles.js +0 -12
- package/styled-components/cjs/components/Select/ui/SelectDivider/variations/_size/base.js +0 -8
- package/styled-components/cjs/components/Select/ui/SelectDivider/variations/_size/tokens.json +0 -8
- package/styled-components/cjs/components/Select/ui/SelectDivider/variations/_view/base.js +0 -8
- package/styled-components/cjs/components/Select/ui/SelectDivider/variations/_view/tokens.json +0 -1
- package/styled-components/cjs/components/Select/ui/SelectFooter/SelectFooter.js +0 -29
- package/styled-components/cjs/components/Select/ui/SelectFooter/SelectFooter.styles.js +0 -12
- package/styled-components/cjs/components/Select/ui/SelectFooter/variations/_size/base.js +0 -8
- package/styled-components/cjs/components/Select/ui/SelectFooter/variations/_size/tokens.json +0 -12
- package/styled-components/cjs/components/Select/ui/SelectFooter/variations/_view/base.js +0 -8
- package/styled-components/cjs/components/Select/ui/SelectFooter/variations/_view/tokens.json +0 -9
- package/styled-components/cjs/components/Select/ui/SelectGroup/SelectGroup.js +0 -29
- package/styled-components/cjs/components/Select/ui/SelectGroup/SelectGroup.styles.js +0 -12
- package/styled-components/cjs/components/Select/ui/SelectGroup/variations/_size/base.js +0 -8
- package/styled-components/cjs/components/Select/ui/SelectGroup/variations/_size/tokens.json +0 -20
- package/styled-components/cjs/components/Select/ui/SelectGroup/variations/_view/base.js +0 -8
- package/styled-components/cjs/components/Select/ui/SelectGroup/variations/_view/tokens.json +0 -10
- package/styled-components/cjs/components/Select/ui/SelectHeader/SelectHeader.js +0 -29
- package/styled-components/cjs/components/Select/ui/SelectHeader/SelectHeader.styles.js +0 -12
- package/styled-components/cjs/components/Select/ui/SelectHeader/variations/_size/base.js +0 -8
- package/styled-components/cjs/components/Select/ui/SelectHeader/variations/_size/tokens.json +0 -12
- package/styled-components/cjs/components/Select/ui/SelectHeader/variations/_view/base.js +0 -8
- package/styled-components/cjs/components/Select/ui/SelectHeader/variations/_view/tokens.json +0 -9
- package/styled-components/cjs/components/Select/ui/SelectItem/SelectItem.js +0 -29
- package/styled-components/cjs/components/Select/ui/SelectItem/SelectItem.styles.js +0 -13
- package/styled-components/cjs/components/Select/ui/SelectItem/variations/_size/base.js +0 -8
- package/styled-components/cjs/components/Select/ui/SelectItem/variations/_size/tokens.json +0 -19
- package/styled-components/cjs/components/Select/ui/SelectItem/variations/_view/base.js +0 -8
- package/styled-components/cjs/components/Select/ui/SelectItem/variations/_view/tokens.json +0 -9
- package/styled-components/cjs/components/Select/ui/SelectTarget/SelectTarget.js +0 -157
- package/styled-components/cjs/components/Select/ui/SelectTarget/SelectTarget.styles.js +0 -69
- package/styled-components/cjs/components/Select/ui/index.js +0 -77
- package/styled-components/cjs/components/Select/variations/_target/base.js +0 -8
- package/styled-components/cjs/components/Select/variations/_target/tokens.json +0 -1
- package/styled-components/cjs/components/Sheet/Sheet.js +0 -112
- package/styled-components/cjs/components/Sheet/Sheet.styles.js +0 -55
- package/styled-components/cjs/components/Sheet/Sheet.tokens.js +0 -15
- package/styled-components/cjs/components/Sheet/Sheet.types.js +0 -5
- package/styled-components/cjs/components/Sheet/hooks/index.js +0 -19
- package/styled-components/cjs/components/Sheet/hooks/useSheet.js +0 -24
- package/styled-components/cjs/components/Sheet/hooks/useSheetSwipe.js +0 -102
- package/styled-components/cjs/components/Sheet/index.js +0 -31
- package/styled-components/cjs/components/Sheet/utils/handleTransition.js +0 -12
- package/styled-components/cjs/components/Sheet/utils/index.js +0 -14
- package/styled-components/cjs/components/Sheet/variations/_view/base.js +0 -8
- package/styled-components/cjs/components/Sheet/variations/_view/tokens.json +0 -6
- package/styled-components/cjs/examples/plasma_b2c/components/Sheet/Sheet.config.js +0 -18
- package/styled-components/cjs/examples/plasma_b2c/components/Sheet/Sheet.js +0 -17
- package/styled-components/cjs/examples/plasma_b2c/components/Sheet/Sheet.stories.tsx +0 -341
- package/styled-components/cjs/examples/plasma_web/components/Select/Select.config.js +0 -30
- package/styled-components/cjs/examples/plasma_web/components/Select/Select.js +0 -21
- package/styled-components/cjs/examples/plasma_web/components/Select/Select.stories.tsx +0 -272
- package/styled-components/cjs/examples/plasma_web/components/Sheet/Sheet.config.js +0 -18
- package/styled-components/cjs/examples/plasma_web/components/Sheet/Sheet.js +0 -17
- package/styled-components/cjs/examples/plasma_web/components/Sheet/Sheet.stories.tsx +0 -334
- package/styled-components/es/components/Select/Select.template-doc.mdx +0 -115
- package/styled-components/es/components/Select/hooks/index.js +0 -1
- package/styled-components/es/components/Select/ui/SelectChip/SelectChip.js +0 -31
- package/styled-components/es/components/Select/ui/SelectChip/SelectChip.styles.js +0 -19
- package/styled-components/es/components/Select/ui/SelectDivider/SelectDivider.js +0 -23
- package/styled-components/es/components/Select/ui/SelectDivider/SelectDivider.styles.js +0 -7
- package/styled-components/es/components/Select/ui/SelectDivider/variations/_size/base.js +0 -2
- package/styled-components/es/components/Select/ui/SelectDivider/variations/_size/tokens.json +0 -8
- package/styled-components/es/components/Select/ui/SelectDivider/variations/_view/base.js +0 -2
- package/styled-components/es/components/Select/ui/SelectDivider/variations/_view/tokens.json +0 -1
- package/styled-components/es/components/Select/ui/SelectFooter/SelectFooter.js +0 -23
- package/styled-components/es/components/Select/ui/SelectFooter/SelectFooter.styles.js +0 -7
- package/styled-components/es/components/Select/ui/SelectFooter/variations/_size/base.js +0 -2
- package/styled-components/es/components/Select/ui/SelectFooter/variations/_size/tokens.json +0 -12
- package/styled-components/es/components/Select/ui/SelectFooter/variations/_view/base.js +0 -2
- package/styled-components/es/components/Select/ui/SelectFooter/variations/_view/tokens.json +0 -9
- package/styled-components/es/components/Select/ui/SelectGroup/SelectGroup.js +0 -23
- package/styled-components/es/components/Select/ui/SelectGroup/SelectGroup.styles.js +0 -7
- package/styled-components/es/components/Select/ui/SelectGroup/variations/_size/base.js +0 -2
- package/styled-components/es/components/Select/ui/SelectGroup/variations/_size/tokens.json +0 -20
- package/styled-components/es/components/Select/ui/SelectGroup/variations/_view/base.js +0 -2
- package/styled-components/es/components/Select/ui/SelectGroup/variations/_view/tokens.json +0 -10
- package/styled-components/es/components/Select/ui/SelectHeader/SelectHeader.js +0 -23
- package/styled-components/es/components/Select/ui/SelectHeader/SelectHeader.styles.js +0 -7
- package/styled-components/es/components/Select/ui/SelectHeader/variations/_size/base.js +0 -2
- package/styled-components/es/components/Select/ui/SelectHeader/variations/_size/tokens.json +0 -12
- package/styled-components/es/components/Select/ui/SelectHeader/variations/_view/base.js +0 -2
- package/styled-components/es/components/Select/ui/SelectHeader/variations/_view/tokens.json +0 -9
- package/styled-components/es/components/Select/ui/SelectItem/SelectItem.js +0 -23
- package/styled-components/es/components/Select/ui/SelectItem/SelectItem.styles.js +0 -8
- package/styled-components/es/components/Select/ui/SelectItem/variations/_size/base.js +0 -2
- package/styled-components/es/components/Select/ui/SelectItem/variations/_size/tokens.json +0 -19
- package/styled-components/es/components/Select/ui/SelectItem/variations/_view/base.js +0 -2
- package/styled-components/es/components/Select/ui/SelectItem/variations/_view/tokens.json +0 -9
- package/styled-components/es/components/Select/ui/SelectTarget/SelectTarget.js +0 -148
- package/styled-components/es/components/Select/ui/SelectTarget/SelectTarget.styles.js +0 -62
- package/styled-components/es/components/Select/ui/index.js +0 -6
- package/styled-components/es/components/Select/variations/_target/base.js +0 -2
- package/styled-components/es/components/Select/variations/_target/tokens.json +0 -1
- package/styled-components/es/components/Sheet/Sheet.js +0 -104
- package/styled-components/es/components/Sheet/Sheet.styles.js +0 -48
- package/styled-components/es/components/Sheet/Sheet.tokens.js +0 -9
- package/styled-components/es/components/Sheet/Sheet.types.js +0 -1
- package/styled-components/es/components/Sheet/hooks/index.js +0 -2
- package/styled-components/es/components/Sheet/hooks/useSheet.js +0 -18
- package/styled-components/es/components/Sheet/hooks/useSheetSwipe.js +0 -95
- package/styled-components/es/components/Sheet/index.js +0 -2
- package/styled-components/es/components/Sheet/utils/handleTransition.js +0 -6
- package/styled-components/es/components/Sheet/utils/index.js +0 -2
- package/styled-components/es/components/Sheet/variations/_view/base.js +0 -2
- package/styled-components/es/components/Sheet/variations/_view/tokens.json +0 -6
- package/styled-components/es/examples/plasma_b2c/components/Sheet/Sheet.config.js +0 -12
- package/styled-components/es/examples/plasma_b2c/components/Sheet/Sheet.js +0 -6
- package/styled-components/es/examples/plasma_b2c/components/Sheet/Sheet.stories.tsx +0 -341
- package/styled-components/es/examples/plasma_web/components/Select/Select.config.js +0 -24
- package/styled-components/es/examples/plasma_web/components/Select/Select.js +0 -15
- package/styled-components/es/examples/plasma_web/components/Select/Select.stories.tsx +0 -272
- package/styled-components/es/examples/plasma_web/components/Sheet/Sheet.config.js +0 -12
- package/styled-components/es/examples/plasma_web/components/Sheet/Sheet.js +0 -6
- package/styled-components/es/examples/plasma_web/components/Sheet/Sheet.stories.tsx +0 -334
- package/types/components/Select/hooks/index.d.ts +0 -2
- package/types/components/Select/hooks/index.d.ts.map +0 -1
- package/types/components/Select/hooks/useKeyNavigation.d.ts.map +0 -1
- package/types/components/Select/ui/SelectChip/SelectChip.d.ts +0 -7
- package/types/components/Select/ui/SelectChip/SelectChip.d.ts.map +0 -1
- package/types/components/Select/ui/SelectChip/SelectChip.styles.d.ts +0 -3
- package/types/components/Select/ui/SelectChip/SelectChip.styles.d.ts.map +0 -1
- package/types/components/Select/ui/SelectChip/SelectChip.types.d.ts +0 -37
- package/types/components/Select/ui/SelectChip/SelectChip.types.d.ts.map +0 -1
- package/types/components/Select/ui/SelectDivider/SelectDivider.d.ts +0 -29
- package/types/components/Select/ui/SelectDivider/SelectDivider.d.ts.map +0 -1
- package/types/components/Select/ui/SelectDivider/SelectDivider.styles.d.ts +0 -3
- package/types/components/Select/ui/SelectDivider/SelectDivider.styles.d.ts.map +0 -1
- package/types/components/Select/ui/SelectDivider/SelectDivider.types.d.ts +0 -3
- package/types/components/Select/ui/SelectDivider/SelectDivider.types.d.ts.map +0 -1
- package/types/components/Select/ui/SelectDivider/variations/_size/base.d.ts +0 -2
- package/types/components/Select/ui/SelectDivider/variations/_size/base.d.ts.map +0 -1
- package/types/components/Select/ui/SelectDivider/variations/_view/base.d.ts +0 -2
- package/types/components/Select/ui/SelectDivider/variations/_view/base.d.ts.map +0 -1
- package/types/components/Select/ui/SelectFooter/SelectFooter.d.ts +0 -29
- package/types/components/Select/ui/SelectFooter/SelectFooter.d.ts.map +0 -1
- package/types/components/Select/ui/SelectFooter/SelectFooter.styles.d.ts +0 -3
- package/types/components/Select/ui/SelectFooter/SelectFooter.styles.d.ts.map +0 -1
- package/types/components/Select/ui/SelectFooter/SelectFooter.type.d.ts +0 -3
- package/types/components/Select/ui/SelectFooter/SelectFooter.type.d.ts.map +0 -1
- package/types/components/Select/ui/SelectFooter/variations/_size/base.d.ts +0 -2
- package/types/components/Select/ui/SelectFooter/variations/_size/base.d.ts.map +0 -1
- package/types/components/Select/ui/SelectFooter/variations/_view/base.d.ts +0 -2
- package/types/components/Select/ui/SelectFooter/variations/_view/base.d.ts.map +0 -1
- package/types/components/Select/ui/SelectGroup/SelectGroup.d.ts +0 -37
- package/types/components/Select/ui/SelectGroup/SelectGroup.d.ts.map +0 -1
- package/types/components/Select/ui/SelectGroup/SelectGroup.styles.d.ts +0 -3
- package/types/components/Select/ui/SelectGroup/SelectGroup.styles.d.ts.map +0 -1
- package/types/components/Select/ui/SelectGroup/SelectGroup.type.d.ts +0 -3
- package/types/components/Select/ui/SelectGroup/SelectGroup.type.d.ts.map +0 -1
- package/types/components/Select/ui/SelectGroup/variations/_size/base.d.ts +0 -2
- package/types/components/Select/ui/SelectGroup/variations/_size/base.d.ts.map +0 -1
- package/types/components/Select/ui/SelectGroup/variations/_view/base.d.ts +0 -2
- package/types/components/Select/ui/SelectGroup/variations/_view/base.d.ts.map +0 -1
- package/types/components/Select/ui/SelectHeader/SelectHeader.d.ts +0 -29
- package/types/components/Select/ui/SelectHeader/SelectHeader.d.ts.map +0 -1
- package/types/components/Select/ui/SelectHeader/SelectHeader.styles.d.ts +0 -3
- package/types/components/Select/ui/SelectHeader/SelectHeader.styles.d.ts.map +0 -1
- package/types/components/Select/ui/SelectHeader/SelectHeader.type.d.ts +0 -3
- package/types/components/Select/ui/SelectHeader/SelectHeader.type.d.ts.map +0 -1
- package/types/components/Select/ui/SelectHeader/variations/_size/base.d.ts +0 -2
- package/types/components/Select/ui/SelectHeader/variations/_size/base.d.ts.map +0 -1
- package/types/components/Select/ui/SelectHeader/variations/_view/base.d.ts +0 -2
- package/types/components/Select/ui/SelectHeader/variations/_view/base.d.ts.map +0 -1
- package/types/components/Select/ui/SelectItem/SelectItem.d.ts +0 -53
- package/types/components/Select/ui/SelectItem/SelectItem.d.ts.map +0 -1
- package/types/components/Select/ui/SelectItem/SelectItem.styles.d.ts +0 -3
- package/types/components/Select/ui/SelectItem/SelectItem.styles.d.ts.map +0 -1
- package/types/components/Select/ui/SelectItem/SelectItem.type.d.ts +0 -3
- package/types/components/Select/ui/SelectItem/SelectItem.type.d.ts.map +0 -1
- package/types/components/Select/ui/SelectItem/variations/_size/base.d.ts +0 -2
- package/types/components/Select/ui/SelectItem/variations/_size/base.d.ts.map +0 -1
- package/types/components/Select/ui/SelectItem/variations/_view/base.d.ts +0 -2
- package/types/components/Select/ui/SelectItem/variations/_view/base.d.ts.map +0 -1
- package/types/components/Select/ui/SelectTarget/SelectTarget.d.ts +0 -7
- package/types/components/Select/ui/SelectTarget/SelectTarget.d.ts.map +0 -1
- package/types/components/Select/ui/SelectTarget/SelectTarget.styles.d.ts.map +0 -1
- package/types/components/Select/ui/SelectTarget/SelectTarget.types.d.ts +0 -60
- package/types/components/Select/ui/SelectTarget/SelectTarget.types.d.ts.map +0 -1
- package/types/components/Select/ui/index.d.ts +0 -7
- package/types/components/Select/ui/index.d.ts.map +0 -1
- package/types/components/Select/variations/_target/base.d.ts +0 -2
- package/types/components/Select/variations/_target/base.d.ts.map +0 -1
- package/types/components/Sheet/Sheet.d.ts +0 -23
- package/types/components/Sheet/Sheet.d.ts.map +0 -1
- package/types/components/Sheet/Sheet.styles.d.ts +0 -17
- package/types/components/Sheet/Sheet.styles.d.ts.map +0 -1
- package/types/components/Sheet/Sheet.tokens.d.ts +0 -10
- package/types/components/Sheet/Sheet.tokens.d.ts.map +0 -1
- package/types/components/Sheet/Sheet.types.d.ts +0 -53
- package/types/components/Sheet/Sheet.types.d.ts.map +0 -1
- package/types/components/Sheet/hooks/index.d.ts +0 -3
- package/types/components/Sheet/hooks/index.d.ts.map +0 -1
- package/types/components/Sheet/hooks/useSheet.d.ts +0 -3
- package/types/components/Sheet/hooks/useSheet.d.ts.map +0 -1
- package/types/components/Sheet/hooks/useSheetSwipe.d.ts +0 -9
- package/types/components/Sheet/hooks/useSheetSwipe.d.ts.map +0 -1
- package/types/components/Sheet/index.d.ts +0 -4
- package/types/components/Sheet/index.d.ts.map +0 -1
- package/types/components/Sheet/utils/handleTransition.d.ts +0 -5
- package/types/components/Sheet/utils/handleTransition.d.ts.map +0 -1
- package/types/components/Sheet/utils/index.d.ts +0 -3
- package/types/components/Sheet/utils/index.d.ts.map +0 -1
- package/types/components/Sheet/variations/_view/base.d.ts +0 -2
- package/types/components/Sheet/variations/_view/base.d.ts.map +0 -1
- package/types/examples/plasma_b2c/components/Sheet/Sheet.config.d.ts +0 -11
- package/types/examples/plasma_b2c/components/Sheet/Sheet.config.d.ts.map +0 -1
- package/types/examples/plasma_b2c/components/Sheet/Sheet.d.ts +0 -8
- package/types/examples/plasma_b2c/components/Sheet/Sheet.d.ts.map +0 -1
- package/types/examples/plasma_web/components/Select/Select.config.d.ts +0 -23
- package/types/examples/plasma_web/components/Select/Select.config.d.ts.map +0 -1
- package/types/examples/plasma_web/components/Select/Select.d.ts +0 -66
- package/types/examples/plasma_web/components/Select/Select.d.ts.map +0 -1
- package/types/examples/plasma_web/components/Sheet/Sheet.config.d.ts +0 -11
- package/types/examples/plasma_web/components/Sheet/Sheet.config.d.ts.map +0 -1
- package/types/examples/plasma_web/components/Sheet/Sheet.d.ts +0 -8
- package/types/examples/plasma_web/components/Sheet/Sheet.d.ts.map +0 -1
- /package/cjs/components/{Select → Combobox}/hooks/useKeyNavigation.js +0 -0
- /package/es/components/{Select → Combobox}/hooks/useKeyNavigation.js +0 -0
- /package/styled-components/cjs/components/{Select/ui/SelectChip/SelectChip.types.js → Combobox/Select.types.js} +0 -0
- /package/styled-components/cjs/components/{Select → Combobox}/hooks/useKeyNavigation.js +0 -0
- /package/styled-components/cjs/components/Select/{ui/SelectDivider/SelectDivider.types.js → elements/Inner/Inner.type.js} +0 -0
- /package/styled-components/cjs/components/Select/{ui/SelectFooter/SelectFooter.type.js → elements/Inner/elements/Item/Item.types.js} +0 -0
- /package/styled-components/cjs/components/Select/{ui/SelectGroup/SelectGroup.type.js → elements/SelectNotFoundContent/SelectNotFoundContent.types.js} +0 -0
- /package/styled-components/cjs/components/Select/{ui/SelectHeader/SelectHeader.type.js → elements/Target/Target.types.js} +0 -0
- /package/styled-components/cjs/components/Select/{ui/SelectItem/SelectItem.type.js → elements/Target/elements/Button/Button.types.js} +0 -0
- /package/styled-components/cjs/components/Select/{ui/SelectTarget/SelectTarget.types.js → elements/Target/elements/Textfield/Textfield.types.js} +0 -0
- /package/styled-components/es/components/{Select/ui/SelectChip/SelectChip.types.js → Combobox/Select.types.js} +0 -0
- /package/styled-components/es/components/{Select → Combobox}/hooks/useKeyNavigation.js +0 -0
- /package/styled-components/es/components/Select/{ui/SelectDivider/SelectDivider.types.js → elements/Inner/Inner.type.js} +0 -0
- /package/styled-components/es/components/Select/{ui/SelectFooter/SelectFooter.type.js → elements/Inner/elements/Item/Item.types.js} +0 -0
- /package/styled-components/es/components/Select/{ui/SelectGroup/SelectGroup.type.js → elements/SelectNotFoundContent/SelectNotFoundContent.types.js} +0 -0
- /package/styled-components/es/components/Select/{ui/SelectHeader/SelectHeader.type.js → elements/Target/Target.types.js} +0 -0
- /package/styled-components/es/components/Select/{ui/SelectItem/SelectItem.type.js → elements/Target/elements/Button/Button.types.js} +0 -0
- /package/styled-components/es/components/Select/{ui/SelectTarget/SelectTarget.types.js → elements/Target/elements/Textfield/Textfield.types.js} +0 -0
- /package/types/components/{Select → Combobox}/hooks/useKeyNavigation.d.ts +0 -0
@@ -1,186 +1,92 @@
|
|
1
1
|
export var classes = {
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
dropdownItemIsFocused: 'dropdown-item-is-focused',
|
3
|
+
dropdownItemIsDisabled: 'dropdown-item-is-disabled',
|
4
|
+
dropdownItemIsActive: 'dropdown-item-is-active',
|
5
5
|
selectTargetArrow: 'select-target-arrow',
|
6
6
|
arrowInverse: 'arrow-inverse',
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
innerLabelUp: 'inner-label-up'
|
7
|
+
textfieldTarget: 'select-textfield-target',
|
8
|
+
selectChipIsFocused: 'select-chip-is-focused',
|
9
|
+
selectWithoutBoxShadow: 'select-without-box-shadow',
|
10
|
+
selectItemCheckbox: 'select-item-checkbox',
|
11
|
+
selectSpinner: 'select-spinner'
|
13
12
|
};
|
14
13
|
export var tokens = {
|
15
|
-
background: '--plasma-select-background',
|
16
|
-
boxShadow: '--plasma-select-box-shadow',
|
17
|
-
width: '--plasma-select-width',
|
18
|
-
height: '--plasma-select-height',
|
19
14
|
borderRadius: '--plasma-select-border-radius',
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
itemColorSelected: '--plasma-select-item-color-selected',
|
29
|
-
itemBackgroundSelectedHover: '--plasma-select-item-background-selected-hover',
|
30
|
-
itemColorSelectedHover: '--plasma-select-item-color-selected-hover',
|
31
|
-
itemWidth: '--plasma-select-item-width',
|
15
|
+
padding: '--plasma-select-padding',
|
16
|
+
focusOffset: '--plasma-select-focus-offset',
|
17
|
+
fontFamily: '--plasma-select-font-family',
|
18
|
+
fontSize: '--plasma-select-font-size',
|
19
|
+
fontStyle: '--plasma-select-font-style',
|
20
|
+
fontWeight: '--plasma-select-font-weight',
|
21
|
+
fontLetterSpacing: '--plasma-select-font-letter-spacing',
|
22
|
+
fontLineHeight: '--plasma-select-font-line-height',
|
32
23
|
itemHeight: '--plasma-select-item-height',
|
33
24
|
itemBorderRadius: '--plasma-select-item-border-radius',
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
footerFontWeightBold: '--plasma-select-footer-letter-spacing',
|
67
|
-
footerFontLetterSpacing: '--plasma-select-footer-line-height',
|
68
|
-
footerFontLineHeight: '--plasma-select-footer-font-weight',
|
69
|
-
headerBackground: '--plasma-select-header-background',
|
70
|
-
headerWidth: '--plasma-select-header-width',
|
71
|
-
headerHeight: '--plasma-select-header-height',
|
72
|
-
headerPaddingTop: '--plasma-select-header-padding-top',
|
73
|
-
headerPaddingRight: '--plasma-select-header-padding-right',
|
74
|
-
headerPaddingBottom: '--plasma-select-header-padding-bottom',
|
75
|
-
headerPaddingLeft: '--plasma-select-header-padding-left',
|
76
|
-
headerMarginTop: '--plasma-select-header-margin-top',
|
77
|
-
headerMarginRight: '--plasma-select-header-margin-right',
|
78
|
-
headerMarginBottom: '--plasma-select-header-margin-bottom',
|
79
|
-
headerMarginLeft: '--plasma-select-header-margin-left',
|
80
|
-
headerFontFamily: '--plasma-select-header-font-family',
|
81
|
-
headerFontSize: '--plasma-select-header-font-size',
|
82
|
-
headerFontStyle: '--plasma-select-header-font-style',
|
83
|
-
headerFontWeightBold: '--plasma-select-header-letter-spacing',
|
84
|
-
headerFontLetterSpacing: '--plasma-select-header-line-height',
|
85
|
-
headerFontLineHeight: '--plasma-select-header-font-weight',
|
86
|
-
dividerColor: '--plasma-select-divider-color',
|
87
|
-
dividerWidth: '--plasma-select-divider-width',
|
88
|
-
dividerHeight: '--plasma-select-divider-height',
|
89
|
-
dividerMarginTop: '--plasma-select-divider-margin-top',
|
90
|
-
dividerMarginRight: '--plasma-select-divider-margin-right',
|
91
|
-
dividerMarginBottom: '--plasma-select-divider-margin-bottom',
|
92
|
-
dividerMarginLeft: '--plasma-select-divider-margin-left',
|
93
|
-
groupBackground: '--plasma-select-group-background',
|
94
|
-
groupWidth: '--plasma-select-group-width',
|
95
|
-
groupHeight: '--plasma-select-group-height',
|
96
|
-
groupPaddingTop: '--plasma-select-group-padding-top',
|
97
|
-
groupPaddingRight: '--plasma-select-group-padding-right',
|
98
|
-
groupPaddingBottom: '--plasma-select-group-padding-bottom',
|
99
|
-
groupPaddingLeft: '--plasma-select-group-padding-left',
|
100
|
-
groupMarginTop: '--plasma-select-group-margin-top',
|
101
|
-
groupMarginRight: '--plasma-select-group-margin-right',
|
102
|
-
groupMarginBottom: '--plasma-select-group-margin-bottom',
|
103
|
-
groupMarginLeft: '--plasma-select-group-margin-left',
|
104
|
-
groupLabelColor: '--plasma-select-group-label-color',
|
105
|
-
groupLabelFontFamily: '--plasma-select-group-label-font-family',
|
106
|
-
groupLabelFontSize: '--plasma-select-group-label-font-size',
|
107
|
-
groupLabelFontStyle: '--plasma-select-group-label-font-style',
|
108
|
-
groupLabelFontWeight: '--plasma-select-group-label-font-weight',
|
109
|
-
groupLabelLetterSpacing: '--plasma-select-group-label-letter-spacing',
|
110
|
-
groupLabelLineHeight: '--plasma-select-group-label-line-height',
|
111
|
-
groupLabelPaddingTop: '--plasma-select-group-label-padding-top',
|
112
|
-
groupLabelPaddingRight: '--plasma-select-group-label-padding-right',
|
113
|
-
groupLabelPaddingBottom: '--plasma-select-group-label-padding-bottom',
|
114
|
-
groupLabelPaddingLeft: '--plasma-select-group-label-padding-left',
|
115
|
-
groupLabelMarginTop: '--plasma-select-group-label-margin-top',
|
116
|
-
groupLabelMarginRight: '--plasma-select-group-label-margin-right',
|
117
|
-
groupLabelMarginBottom: '--plasma-select-group-label-margin-bottom',
|
118
|
-
groupLabelMarginLeft: '--plasma-select-group-label-margin-left',
|
119
|
-
targetColor: '--plasma-select-target-color',
|
120
|
-
targetLabelColor: '--plasma-select-target-label-color',
|
121
|
-
targetArrowColor: '--plasma-select-target-arrow-color',
|
122
|
-
targetArrowRight: '--plasma-select-target-arrow-right',
|
123
|
-
targetBackgroundColor: '--plasma-select-target-background-color',
|
124
|
-
targetBackgroundColorHover: '--plasma-select-target-background-color-hover',
|
125
|
-
targetBackgroundColorActive: '--plasma-select-target-background-color-active',
|
126
|
-
targetBackgroundColorOpen: '--plasma-select-target-background-color-open',
|
127
|
-
targetBorderColor: '--plasma-select-target-border-color',
|
128
|
-
targetBorderColorHover: '--plasma-select-target-border-color-hover',
|
129
|
-
targetBorderColorActive: '--plasma-select-target-border-color-active',
|
130
|
-
targetBorderColorOpen: '--plasma-select-target-border-color-open',
|
131
|
-
targetInnerTop: '--plasma-select-target-inner-top',
|
132
|
-
targetPadding: '--plasma-select-target-padding',
|
133
|
-
targetPaddingWithInput: '--plasma-select-target-with-input',
|
134
|
-
targetPaddingHasChips: '--plasma-select-target-padding-has-chips',
|
25
|
+
itemPadding: '--plasma-select-item-padding',
|
26
|
+
itemPaddingTight: '--plasma-select-item-padding-tight',
|
27
|
+
itemIconSize: '--plasma-select-item-icon-size',
|
28
|
+
itemIconSizeTight: '--plasma-select-item-icon-size-tight',
|
29
|
+
itemIconMargin: '--plasma-select-item-icon-margin',
|
30
|
+
checkboxTriggerSize: '--plasma-select-checkbox-trigger-size',
|
31
|
+
checkboxTriggerSizeTight: '--plasma-select-checkbox-trigger-size-tight',
|
32
|
+
checkboxTriggerBorderRadius: '--plasma-select-checkbox-trigger-border-radius',
|
33
|
+
checkboxTriggerBorderRadiusTight: '--plasma-select-checkbox-trigger-border-radius-tight',
|
34
|
+
checkboxFillColor: '--plasma-select-checkbox-fill-color',
|
35
|
+
checkboxIconColor: '--plasma-select-checkbox-icon-color',
|
36
|
+
checkboxTriggerBorderColor: '--plasma-select-checkbox-trigger-border-color',
|
37
|
+
indicatorSize: '--plasma-select-indicator-size',
|
38
|
+
targetButtonColor: '--plasma-select-target-button-color',
|
39
|
+
targetButtonColorHover: '--plasma-select-target-button-color-hover',
|
40
|
+
targetButtonColorActive: '--plasma-select-target-button-color-active',
|
41
|
+
targetButtonArrowColor: '--plasma-select-target-button-arrow-color',
|
42
|
+
targetButtonArrowColorHover: '--plasma-select-target-button-arrow-color-hover',
|
43
|
+
targetButtonArrowColorActive: '--plasma-select-target-button-arrow-color-active',
|
44
|
+
targetTextfieldArrowColor: '--plasma-select-target-textfield-arrow-color',
|
45
|
+
targetTextfieldArrowColorHover: '--plasma-select-target-textfield-arrow-color-hover',
|
46
|
+
targetTextfieldArrowColorActive: '--plasma-select-target-textfield-arrow-color-active',
|
47
|
+
targetButtonArrowMargin: '--plasma-select-target-button-arrow-margin',
|
48
|
+
targetTextfieldArrowMargin: '--plasma-select-target-textfield-arrow-margin',
|
49
|
+
targetButtonBackgroundColor: '--plasma-select-target-button-background-color',
|
50
|
+
targetButtonBackgroundColorHover: '--plasma-select-target-button-background-color-hover',
|
51
|
+
targetButtonBackgroundColorActive: '--plasma-select-target-button-background-color-active',
|
52
|
+
targetTextfieldBackgroundColor: '--plasma-select-target-textfield-background-color',
|
53
|
+
targetTextfieldBackgroundColorOpened: '--plasma-select-target-textfield-background-color-opened',
|
54
|
+
targetButtonPadding: '--plasma-select-target-button-padding',
|
55
|
+
targetTextfieldPadding: '--plasma-select-target-textfield-padding',
|
56
|
+
targetTextfieldChipPadding: '--plasma-select-target-textfield-chip-padding',
|
135
57
|
targetHeight: '--plasma-select-target-height',
|
136
|
-
targetWidth: '--plasma-select-target-width',
|
137
|
-
targetRadius: '--plasma-select-target-radius',
|
138
|
-
targetFontFamily: '--plasma-select-target-font-family',
|
139
|
-
targetFontSize: '--plasma-select-target-font-size',
|
140
|
-
targetFontStyle: '--plasma-select-target-font-style',
|
141
|
-
targetFontWeight: '--plasma-select-target-font-weight',
|
142
|
-
targetLetterSpacing: '--plasma-select-target-letter-spacing',
|
143
|
-
targetLineHeight: '--plasma-select-target-line-height',
|
144
|
-
targetLabelInnerTop: '--plasma-select-target-label-inner-top',
|
145
|
-
targetLabelInnerFontFamily: '--plasma-select-target-label-inner-font-family',
|
146
|
-
targetLabelInnerFontSize: '--plasma-select-target-label-inner-font-family',
|
147
|
-
targetLabelInnerFontStyle: '--plasma-select-target-label-inner-font-style',
|
148
|
-
targetLabelInnerFontWeight: '--plasma-select-target-label-inner-font-weight',
|
149
|
-
targetLabelInnerLetterSpacing: '--plasma-select-target-label-inner-letter-spacing',
|
150
|
-
targetLabelInnerLineHeight: '--plasma-select-target-label-inner-line-height',
|
151
|
-
chipGap: '--plasma-select-chip-gap',
|
152
|
-
chipBackground: '--plasma-select-chip-background',
|
153
58
|
chipColor: '--plasma-select-chip-color',
|
59
|
+
chipBackground: '--plasma-select-chip-background',
|
154
60
|
chipBackgroundHover: '--plasma-select-chip-background-hover',
|
155
|
-
chipColorHover: '--plasma-select-chip-color-hover',
|
156
|
-
chipScaleHover: '--plasma-select-chip-scale-hover',
|
157
|
-
chipBackgroundReadOnly: '--plasma-select-chip-background-readonly',
|
158
|
-
chipColorReadOnly: '--plasma-select-chip-color-readonly',
|
159
|
-
chipBackgroundReadOnlyHover: '--plasma-select-chip-background-readonly-hover',
|
160
|
-
chipColorReadOnlyHover: '--plasma-select-chip-color-readonly-hover',
|
161
61
|
chipBackgroundActive: '--plasma-select-chip-background-active',
|
162
|
-
|
163
|
-
chipScaleActive: '--plasma-select-chip-scale-active',
|
164
|
-
chipFocusColor: '--plasma-select-chip-focus-color',
|
165
|
-
chipCloseIconColor: '--plasma-select-chip-close-icon-color',
|
166
|
-
chipOutlineSize: '--plasma-select-chip-outline-size',
|
62
|
+
chipGap: '--plasma-select-chip-gap',
|
167
63
|
chipBorderRadius: '--plasma-select-chip-border-radius',
|
168
|
-
chipWidth: '--plasma-select-chip-width',
|
169
64
|
chipHeight: '--plasma-select-chip-height',
|
170
|
-
chipPaddingTop: '--plasma-select-chip-padding-top',
|
171
65
|
chipPaddingRight: '--plasma-select-chip-padding-right',
|
172
|
-
chipPaddingBottom: '--plasma-select-chip-padding-bottom',
|
173
66
|
chipPaddingLeft: '--plasma-select-chip-padding-left',
|
174
67
|
chipCloseIconSize: '--plasma-select-chip-close-icon-size',
|
175
|
-
chipFontFamily: '--plasma-select-chip-font-family',
|
176
|
-
chipFontSize: '--plasma-select-chip-font-size',
|
177
|
-
chipFontStyle: '--plasma-select-chip-font-style',
|
178
|
-
chipFontWeight: '--plasma-select-chip-font-weight',
|
179
|
-
chipLetterSpacing: '--plasma-select-chip-letter-spacing',
|
180
|
-
chipLineHeight: '--plasma-select-chip-line-height',
|
181
68
|
chipClearContentMarginLeft: '--plasma-select-chip-clear-content-margin-left',
|
182
69
|
chipClearContentMarginRight: '--plasma-select-chip-clear-content-margin-right',
|
183
|
-
|
184
|
-
|
185
|
-
|
70
|
+
labelOffset: '--plasma-select-label-offset',
|
71
|
+
innerLabelGap: '--plasma-select-inner-label-gap',
|
72
|
+
helperTextColor: '--plasma-select-helper-text-color',
|
73
|
+
helperTextOffset: '--plasma-select-helper-text-offset',
|
74
|
+
spinnerSize: '--plasma-select-spinner-size',
|
75
|
+
spinnerSizeTight: '--plasma-select-spinner-size-tight',
|
76
|
+
notFoundContentPadding: '--plasma-select-not-found-content-padding',
|
77
|
+
notFoundContentGap: '--plasma-select-not-found-content-gap'
|
78
|
+
};
|
79
|
+
export var constants = {
|
80
|
+
focusColor: '--surface-accent',
|
81
|
+
focusSize: '0.0625rem',
|
82
|
+
background: '--surface-solid-card',
|
83
|
+
boxShadow: '--shadow-down-soft-s',
|
84
|
+
disclosureIconColor: '--text-secondary',
|
85
|
+
disclosureIconColorHover: '--text-secondary-hover',
|
86
|
+
itemBackground: '--plasma-colors-transparent',
|
87
|
+
itemBackgroundHover: '--surface-transparent-secondary',
|
88
|
+
textfieldTargetColor: '--text-primary',
|
89
|
+
textfieldOuterLabelColor: '--text-primary',
|
90
|
+
textfieldInnerLabelColor: '--text-secondary',
|
91
|
+
textfieldPlaceholderColor: '--text-secondary'
|
186
92
|
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { classes } from '../../Select.tokens';
|
3
|
+
import { StyledSpinner, Wrapper } from './InfiniteLoader.styles';
|
4
|
+
export var InfiniteLoader = function InfiniteLoader(_ref) {
|
5
|
+
var variant = _ref.variant;
|
6
|
+
return /*#__PURE__*/React.createElement(Wrapper, {
|
7
|
+
variant: variant
|
8
|
+
}, /*#__PURE__*/React.createElement(StyledSpinner, {
|
9
|
+
className: classes.selectSpinner
|
10
|
+
}), "\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430");
|
11
|
+
};
|
package/styled-components/es/components/Select/elements/InfiniteLoader/InfiniteLoader.styles.js
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
import styled from 'styled-components';
|
2
|
+
import { tokens, classes } from '../../Select.tokens';
|
3
|
+
import { component } from '../../../../engines';
|
4
|
+
import { spinnerConfig, spinnerTokens } from '../../../Spinner';
|
5
|
+
var Spinner = /*#__PURE__*/component(spinnerConfig);
|
6
|
+
export var StyledSpinner = /*#__PURE__*/styled(Spinner).withConfig({
|
7
|
+
componentId: "plasma-new-hope__sc-j1tfex-0"
|
8
|
+
})(["", ":var(--text-primary);", ":var(", ");"], spinnerTokens.color, spinnerTokens.size, tokens.spinnerSize);
|
9
|
+
export var Wrapper = /*#__PURE__*/styled.div.withConfig({
|
10
|
+
componentId: "plasma-new-hope__sc-j1tfex-1"
|
11
|
+
})(["display:flex;align-items:center;justify-content:center;gap:4px;height:var(", ");padding:", ";font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");user-select:none;& .", "{", ":", ";}"], tokens.itemHeight, function (_ref) {
|
12
|
+
var variant = _ref.variant;
|
13
|
+
return "var(".concat(variant === 'tight' ? tokens.itemPaddingTight : tokens.itemPadding, ")");
|
14
|
+
}, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.fontLetterSpacing, tokens.fontLineHeight, classes.selectSpinner, spinnerTokens.size, function (_ref2) {
|
15
|
+
var variant = _ref2.variant;
|
16
|
+
return "var(".concat(variant === 'tight' ? tokens.spinnerSizeTight : tokens.spinnerSize, ")");
|
17
|
+
});
|
@@ -0,0 +1,68 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { isEmpty } from '../../../../utils';
|
3
|
+
import { Ul, StyledPopover } from '../../Select.styles';
|
4
|
+
import { Item } from './elements/Item/Item';
|
5
|
+
export var Inner = function Inner(_ref) {
|
6
|
+
var item = _ref.item,
|
7
|
+
currentLevel = _ref.currentLevel,
|
8
|
+
path = _ref.path,
|
9
|
+
dispatchPath = _ref.dispatchPath,
|
10
|
+
index = _ref.index,
|
11
|
+
listWidth = _ref.listWidth;
|
12
|
+
var handleToggle = function handleToggle(opened) {
|
13
|
+
if (opened) {
|
14
|
+
dispatchPath({
|
15
|
+
type: 'changed_on_level',
|
16
|
+
value: item.value.toString(),
|
17
|
+
level: currentLevel + 1
|
18
|
+
});
|
19
|
+
} else {
|
20
|
+
dispatchPath({
|
21
|
+
type: 'cut_by_level',
|
22
|
+
level: currentLevel + 1
|
23
|
+
});
|
24
|
+
}
|
25
|
+
};
|
26
|
+
var isCurrentListOpen = path[currentLevel + 1] === item.value.toString();
|
27
|
+
var listId = "tree_level_".concat(currentLevel + 2);
|
28
|
+
var nextLevel = currentLevel + 1;
|
29
|
+
if (!isEmpty(item === null || item === void 0 ? void 0 : item.items)) {
|
30
|
+
var _item$items;
|
31
|
+
return /*#__PURE__*/React.createElement(StyledPopover, {
|
32
|
+
isOpen: isCurrentListOpen,
|
33
|
+
usePortal: false,
|
34
|
+
placement: "right-start",
|
35
|
+
trigger: "click",
|
36
|
+
target: /*#__PURE__*/React.createElement(Item, {
|
37
|
+
item: item,
|
38
|
+
path: path,
|
39
|
+
currentLevel: currentLevel,
|
40
|
+
index: index
|
41
|
+
}),
|
42
|
+
onToggle: handleToggle,
|
43
|
+
isFocusTrapped: false,
|
44
|
+
preventOverflow: false
|
45
|
+
}, /*#__PURE__*/React.createElement(Ul, {
|
46
|
+
role: "group",
|
47
|
+
id: listId,
|
48
|
+
isInnerUl: true,
|
49
|
+
listWidth: listWidth
|
50
|
+
}, (_item$items = item.items) === null || _item$items === void 0 ? void 0 : _item$items.map(function (innerItem, innerIndex) {
|
51
|
+
return /*#__PURE__*/React.createElement(Inner, {
|
52
|
+
key: "".concat(innerIndex, "/").concat(currentLevel),
|
53
|
+
item: innerItem,
|
54
|
+
currentLevel: nextLevel,
|
55
|
+
path: path,
|
56
|
+
dispatchPath: dispatchPath,
|
57
|
+
index: innerIndex,
|
58
|
+
listWidth: listWidth
|
59
|
+
});
|
60
|
+
})));
|
61
|
+
}
|
62
|
+
return /*#__PURE__*/React.createElement(Item, {
|
63
|
+
item: item,
|
64
|
+
path: path,
|
65
|
+
index: index,
|
66
|
+
currentLevel: currentLevel
|
67
|
+
});
|
68
|
+
};
|
@@ -0,0 +1,76 @@
|
|
1
|
+
var _StyledIndicator;
|
2
|
+
import React, { useEffect, useRef, useContext } from 'react';
|
3
|
+
import { sizeToIconSize } from '../../../../utils';
|
4
|
+
import { classes } from '../../../../Select.tokens';
|
5
|
+
import { cx, isEmpty } from '../../../../../../utils';
|
6
|
+
import { IconDisclosureRightCentered, IconDone } from '../../../../../_Icon';
|
7
|
+
import { Context } from '../../../../Select';
|
8
|
+
import { StyledContentLeft, StyledContentRight, StyledText, Wrapper, DisclosureIconWrapper, StyledCheckbox, IconWrapper, StyledIndicator } from './Item.styles';
|
9
|
+
export var Item = function Item(_ref) {
|
10
|
+
var item = _ref.item,
|
11
|
+
path = _ref.path,
|
12
|
+
currentLevel = _ref.currentLevel,
|
13
|
+
index = _ref.index;
|
14
|
+
var value = item.value,
|
15
|
+
label = item.label,
|
16
|
+
isDisabled = item.isDisabled,
|
17
|
+
contentLeft = item.contentLeft,
|
18
|
+
contentRight = item.contentRight;
|
19
|
+
var ref = useRef(null);
|
20
|
+
var _useContext = useContext(Context),
|
21
|
+
focusedPath = _useContext.focusedPath,
|
22
|
+
checked = _useContext.checked,
|
23
|
+
multiselect = _useContext.multiselect,
|
24
|
+
size = _useContext.size,
|
25
|
+
handleCheckboxChange = _useContext.handleCheckboxChange,
|
26
|
+
handleItemClick = _useContext.handleItemClick,
|
27
|
+
variant = _useContext.variant;
|
28
|
+
var isDisabledClassName = isDisabled ? classes.dropdownItemIsDisabled : undefined;
|
29
|
+
var focusedClass = currentLevel === focusedPath.length - 1 && index === (focusedPath === null || focusedPath === void 0 ? void 0 : focusedPath[currentLevel]) ? classes.dropdownItemIsFocused : undefined;
|
30
|
+
var activeClass = value === (path === null || path === void 0 ? void 0 : path[currentLevel + 1]) ? classes.dropdownItemIsActive : undefined;
|
31
|
+
useEffect(function () {
|
32
|
+
if (focusedClass && ref !== null && ref !== void 0 && ref.current) {
|
33
|
+
ref.current.scrollIntoView({
|
34
|
+
behavior: 'smooth',
|
35
|
+
block: 'center',
|
36
|
+
inline: 'center'
|
37
|
+
});
|
38
|
+
}
|
39
|
+
}, [focusedClass]);
|
40
|
+
var handleChange = function handleChange(e) {
|
41
|
+
if (isDisabled) return;
|
42
|
+
e.stopPropagation();
|
43
|
+
handleCheckboxChange(item);
|
44
|
+
};
|
45
|
+
var handleClick = function handleClick(e) {
|
46
|
+
if (isDisabled) return;
|
47
|
+
handleItemClick(item, e);
|
48
|
+
};
|
49
|
+
return /*#__PURE__*/React.createElement(Wrapper, {
|
50
|
+
className: cx(isDisabledClassName, focusedClass, activeClass),
|
51
|
+
id: value.toString(),
|
52
|
+
ref: ref,
|
53
|
+
onClick: handleClick,
|
54
|
+
variant: variant
|
55
|
+
}, /*#__PURE__*/React.createElement(IconWrapper, {
|
56
|
+
variant: variant
|
57
|
+
}, multiselect && /*#__PURE__*/React.createElement("span", {
|
58
|
+
onClick: function onClick(e) {
|
59
|
+
return e.stopPropagation();
|
60
|
+
}
|
61
|
+
}, /*#__PURE__*/React.createElement(StyledCheckbox, {
|
62
|
+
checked: Boolean(checked.get(item.value)),
|
63
|
+
indeterminate: checked.get(item.value) === 'indeterminate',
|
64
|
+
onChange: handleChange,
|
65
|
+
className: classes.selectItemCheckbox
|
66
|
+
})), !multiselect && checked.get(item.value) === 'dot' && (_StyledIndicator || (_StyledIndicator = /*#__PURE__*/React.createElement(StyledIndicator, {
|
67
|
+
size: "s",
|
68
|
+
view: "default"
|
69
|
+
}))), !multiselect && checked.get(item.value) === 'done' && /*#__PURE__*/React.createElement(IconDone, {
|
70
|
+
size: sizeToIconSize(size, variant),
|
71
|
+
color: "inherit"
|
72
|
+
})), contentLeft && /*#__PURE__*/React.createElement(StyledContentLeft, null, contentLeft), /*#__PURE__*/React.createElement(StyledText, null, label), contentRight && /*#__PURE__*/React.createElement(StyledContentRight, null, contentRight), !isEmpty(item.items) && /*#__PURE__*/React.createElement(DisclosureIconWrapper, null, /*#__PURE__*/React.createElement(IconDisclosureRightCentered, {
|
73
|
+
size: sizeToIconSize(size, variant),
|
74
|
+
color: "inherit"
|
75
|
+
})));
|
76
|
+
};
|
@@ -0,0 +1,56 @@
|
|
1
|
+
import styled from 'styled-components';
|
2
|
+
import { classes, tokens, constants } from '../../../../Select.tokens';
|
3
|
+
import { addFocus, applyEllipsis } from '../../../../../../mixins';
|
4
|
+
import { component, mergeConfig } from '../../../../../../engines';
|
5
|
+
import { checkboxConfig } from '../../../../../Checkbox';
|
6
|
+
import { indicatorConfig, indicatorTokens } from '../../../../../Indicator';
|
7
|
+
var mergedCheckboxConfig = /*#__PURE__*/mergeConfig(checkboxConfig);
|
8
|
+
var Checkbox = /*#__PURE__*/component(mergedCheckboxConfig);
|
9
|
+
export var StyledCheckbox = /*#__PURE__*/styled(Checkbox).withConfig({
|
10
|
+
componentId: "plasma-new-hope__sc-esps8l-0"
|
11
|
+
})(["--plasma-checkbox-trigger-size:var(", ");--plasma-checkbox-trigger-border-radius:var(", ");--plasma-checkbox-fill-color:var(", ");--plasma-checkbox-icon-color:var(", ");--plasma-checkbox-trigger-border-color:var(", ");"], tokens.checkboxTriggerSize, tokens.checkboxTriggerBorderRadius, tokens.checkboxFillColor, tokens.checkboxIconColor, tokens.checkboxTriggerBorderColor);
|
12
|
+
var mergedIndicatorConfig = /*#__PURE__*/mergeConfig(indicatorConfig);
|
13
|
+
var Indicator = /*#__PURE__*/component(mergedIndicatorConfig);
|
14
|
+
export var StyledIndicator = /*#__PURE__*/styled(Indicator).withConfig({
|
15
|
+
componentId: "plasma-new-hope__sc-esps8l-1"
|
16
|
+
})(["", ":var(", ");", ":var(", ");"], indicatorTokens.size, tokens.indicatorSize, indicatorTokens.color, tokens.checkboxFillColor);
|
17
|
+
export var StyledContentLeft = /*#__PURE__*/styled.div.withConfig({
|
18
|
+
componentId: "plasma-new-hope__sc-esps8l-2"
|
19
|
+
})(["display:inline-flex;"]);
|
20
|
+
export var StyledContentRight = /*#__PURE__*/styled.div.withConfig({
|
21
|
+
componentId: "plasma-new-hope__sc-esps8l-3"
|
22
|
+
})(["margin-left:auto;display:inline-flex;"]);
|
23
|
+
export var DisclosureIconWrapper = /*#__PURE__*/styled.div.withConfig({
|
24
|
+
componentId: "plasma-new-hope__sc-esps8l-4"
|
25
|
+
})(["line-height:0;color:var(", ");&:hover{color:var(", ");}"], constants.disclosureIconColor, constants.disclosureIconColorHover);
|
26
|
+
export var IconWrapper = /*#__PURE__*/styled.div.withConfig({
|
27
|
+
componentId: "plasma-new-hope__sc-esps8l-5"
|
28
|
+
})(["display:flex;align-items:center;justify-content:center;width:", ";height:", ";margin:var(", ");line-height:0;color:var(", ");& .", "{--plasma-checkbox-trigger-size:", ";--plasma-checkbox-trigger-border-radius:", ";}"], function (_ref) {
|
29
|
+
var variant = _ref.variant;
|
30
|
+
return "var(".concat(variant === 'tight' ? tokens.itemIconSizeTight : tokens.itemIconSize, ")");
|
31
|
+
}, function (_ref2) {
|
32
|
+
var variant = _ref2.variant;
|
33
|
+
return "var(".concat(variant === 'tight' ? tokens.itemIconSizeTight : tokens.itemIconSize, ")");
|
34
|
+
}, tokens.itemIconMargin, tokens.checkboxFillColor, classes.selectItemCheckbox, function (_ref3) {
|
35
|
+
var variant = _ref3.variant;
|
36
|
+
return "var(".concat(variant === 'tight' ? tokens.checkboxTriggerSizeTight : tokens.checkboxTriggerSize, ")");
|
37
|
+
}, function (_ref4) {
|
38
|
+
var variant = _ref4.variant;
|
39
|
+
return "var(".concat(variant === 'tight' ? tokens.checkboxTriggerBorderRadiusTight : tokens.checkboxTriggerBorderRadius, ")");
|
40
|
+
});
|
41
|
+
export var StyledText = /*#__PURE__*/styled.div.withConfig({
|
42
|
+
componentId: "plasma-new-hope__sc-esps8l-6"
|
43
|
+
})(["", ";flex:1;"], /*#__PURE__*/applyEllipsis());
|
44
|
+
export var Wrapper = /*#__PURE__*/styled.li.withConfig({
|
45
|
+
componentId: "plasma-new-hope__sc-esps8l-7"
|
46
|
+
})(["display:flex;align-items:center;min-height:var(", ");margin:0;box-sizing:content-box;padding:", ";font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");background:var(", ");color:var(--text-primary);border-radius:var(", ");user-select:none;&:hover:not(.", "){cursor:pointer;background:var(", ");}&.", "{background:var(", ");}&.", "{opacity:0.4;cursor:not-allowed;}:focus{outline:none;}", ";"], tokens.itemHeight, function (_ref5) {
|
47
|
+
var variant = _ref5.variant;
|
48
|
+
return "var(".concat(variant === 'tight' ? tokens.itemPaddingTight : tokens.itemPadding, ")");
|
49
|
+
}, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.fontLetterSpacing, tokens.fontLineHeight, constants.itemBackground, tokens.itemBorderRadius, classes.dropdownItemIsDisabled, constants.itemBackgroundHover, classes.dropdownItemIsActive, constants.itemBackgroundHover, classes.dropdownItemIsDisabled, /*#__PURE__*/addFocus({
|
50
|
+
outlineSize: '0.0625rem',
|
51
|
+
outlineOffset: '0',
|
52
|
+
outlineColor: /*#__PURE__*/"var(".concat(constants.focusColor, ")"),
|
53
|
+
outlineRadius: /*#__PURE__*/"var(".concat(tokens.itemBorderRadius, ")"),
|
54
|
+
hasTransition: false,
|
55
|
+
customFocusRules: /*#__PURE__*/"\n &.".concat(classes.dropdownItemIsFocused, ":before {\n outline: none;\n box-shadow: 0 0 0 0.0625rem var(").concat(constants.focusColor, ");\n }\n ")
|
56
|
+
}));
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { Wrapper, StyledButton, ContentWrapper, Description } from './SelectNotFoundContent.styles';
|
3
|
+
export var SelectNotFoundContent = function SelectNotFoundContent(_ref) {
|
4
|
+
var icon = _ref.icon,
|
5
|
+
description = _ref.description,
|
6
|
+
buttonText = _ref.buttonText,
|
7
|
+
buttonAction = _ref.buttonAction;
|
8
|
+
return /*#__PURE__*/React.createElement(Wrapper, null, /*#__PURE__*/React.createElement(ContentWrapper, null, icon, /*#__PURE__*/React.createElement(Description, null, description), buttonText && /*#__PURE__*/React.createElement(StyledButton, {
|
9
|
+
stretching: "filled",
|
10
|
+
onClick: buttonAction
|
11
|
+
}, buttonText)));
|
12
|
+
};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import styled from 'styled-components';
|
2
|
+
import { buttonConfig, buttonTokens } from '../../../Button';
|
3
|
+
import { tokens, constants } from '../../Select.tokens';
|
4
|
+
import { component, mergeConfig } from '../../../../engines';
|
5
|
+
var mergedButtonConfig = /*#__PURE__*/mergeConfig(buttonConfig);
|
6
|
+
var Button = /*#__PURE__*/component(mergedButtonConfig);
|
7
|
+
export var StyledButton = /*#__PURE__*/styled(Button).withConfig({
|
8
|
+
componentId: "plasma-new-hope__sc-rmrk0o-0"
|
9
|
+
})(["", ":var(--text-primary);", ":var(--text-primary-active);", ":var(--text-primary-hover);", ":none;", ":var(", ");", ":0;", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":600;", ":var(", ");", ":var(", ");"], buttonTokens.buttonColor, buttonTokens.buttonColorActive, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColor, buttonTokens.buttonHeight, tokens.targetHeight, buttonTokens.buttonPadding, buttonTokens.buttonRadius, tokens.borderRadius, buttonTokens.buttonFontFamily, tokens.fontFamily, buttonTokens.buttonFontSize, tokens.fontSize, buttonTokens.buttonFontStyle, tokens.fontStyle, buttonTokens.buttonFontWeight, buttonTokens.buttonLetterSpacing, tokens.fontLetterSpacing, buttonTokens.buttonLineHeight, tokens.fontLineHeight);
|
10
|
+
export var Wrapper = /*#__PURE__*/styled.div.withConfig({
|
11
|
+
componentId: "plasma-new-hope__sc-rmrk0o-1"
|
12
|
+
})(["background:var(", ");box-shadow:var(", ");border-radius:var(", ");padding:var(", ");"], constants.background, constants.boxShadow, tokens.borderRadius, tokens.padding);
|
13
|
+
export var ContentWrapper = /*#__PURE__*/styled.div.withConfig({
|
14
|
+
componentId: "plasma-new-hope__sc-rmrk0o-2"
|
15
|
+
})(["display:flex;flex-direction:column;align-items:center;width:100%;box-sizing:border-box;padding:var(", ");"], tokens.notFoundContentPadding);
|
16
|
+
export var Description = /*#__PURE__*/styled.div.withConfig({
|
17
|
+
componentId: "plasma-new-hope__sc-rmrk0o-3"
|
18
|
+
})(["margin-top:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");"], tokens.notFoundContentGap, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.fontLetterSpacing, tokens.fontLineHeight);
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { Button } from './elements/Button/Button';
|
3
|
+
import { Textfield } from './elements/Textfield/Textfield';
|
4
|
+
export var Target = function Target(_ref) {
|
5
|
+
var value = _ref.value,
|
6
|
+
multiselect = _ref.multiselect,
|
7
|
+
isTargetAmount = _ref.isTargetAmount,
|
8
|
+
target = _ref.target,
|
9
|
+
opened = _ref.opened,
|
10
|
+
valueToItemMap = _ref.valueToItemMap,
|
11
|
+
onChipClick = _ref.onChipClick,
|
12
|
+
label = _ref.label,
|
13
|
+
placeholder = _ref.placeholder,
|
14
|
+
onKeyDown = _ref.onKeyDown,
|
15
|
+
focusedChipIndex = _ref.focusedChipIndex,
|
16
|
+
labelPlacement = _ref.labelPlacement,
|
17
|
+
size = _ref.size,
|
18
|
+
contentLeft = _ref.contentLeft,
|
19
|
+
disabled = _ref.disabled,
|
20
|
+
renderTargetLabel = _ref.renderTargetLabel;
|
21
|
+
return target === 'button' ? /*#__PURE__*/React.createElement(Button, {
|
22
|
+
opened: opened,
|
23
|
+
value: value,
|
24
|
+
isTargetAmount: isTargetAmount,
|
25
|
+
multiselect: multiselect,
|
26
|
+
valueToItemMap: valueToItemMap,
|
27
|
+
onKeyDown: onKeyDown,
|
28
|
+
label: label,
|
29
|
+
size: size,
|
30
|
+
disabled: disabled,
|
31
|
+
renderTargetLabel: renderTargetLabel
|
32
|
+
}) : /*#__PURE__*/React.createElement(Textfield, {
|
33
|
+
opened: opened,
|
34
|
+
value: value,
|
35
|
+
isTargetAmount: isTargetAmount,
|
36
|
+
multiselect: multiselect,
|
37
|
+
valueToItemMap: valueToItemMap,
|
38
|
+
onChipClick: onChipClick,
|
39
|
+
label: label,
|
40
|
+
placeholder: placeholder,
|
41
|
+
onKeyDown: onKeyDown,
|
42
|
+
focusedChipIndex: focusedChipIndex,
|
43
|
+
labelPlacement: labelPlacement,
|
44
|
+
size: size,
|
45
|
+
contentLeft: contentLeft,
|
46
|
+
disabled: disabled,
|
47
|
+
renderTargetLabel: renderTargetLabel
|
48
|
+
});
|
49
|
+
};
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { cx, isEmpty } from '../../../../../../utils';
|
3
|
+
import { classes } from '../../../../Select.tokens';
|
4
|
+
import { StyledButton, StyledArrow, InnerWrapper, Label, ButtonWrapper, IconArrowWrapper } from './Button.styles';
|
5
|
+
var getLabel = function getLabel(_ref) {
|
6
|
+
var value = _ref.value,
|
7
|
+
label = _ref.label,
|
8
|
+
isTargetAmount = _ref.isTargetAmount,
|
9
|
+
multiselect = _ref.multiselect,
|
10
|
+
valueToItemMap = _ref.valueToItemMap;
|
11
|
+
if (isEmpty(value)) {
|
12
|
+
return label;
|
13
|
+
}
|
14
|
+
if (multiselect && isTargetAmount) {
|
15
|
+
return "\u0412\u044B\u0431\u0440\u0430\u043D\u043E: ".concat(value.length);
|
16
|
+
}
|
17
|
+
if (multiselect && Array.isArray(value)) {
|
18
|
+
return value.map(function (value) {
|
19
|
+
return valueToItemMap.get(value).label;
|
20
|
+
}).join(', ');
|
21
|
+
}
|
22
|
+
return valueToItemMap.get(value.toString()).label;
|
23
|
+
};
|
24
|
+
export var Button = function Button(_ref2) {
|
25
|
+
var opened = _ref2.opened,
|
26
|
+
value = _ref2.value,
|
27
|
+
isTargetAmount = _ref2.isTargetAmount,
|
28
|
+
multiselect = _ref2.multiselect,
|
29
|
+
valueToItemMap = _ref2.valueToItemMap,
|
30
|
+
onKeyDown = _ref2.onKeyDown,
|
31
|
+
label = _ref2.label,
|
32
|
+
size = _ref2.size,
|
33
|
+
disabled = _ref2.disabled;
|
34
|
+
var withArrowInverse = opened ? classes.arrowInverse : undefined;
|
35
|
+
var iconSize = size === 'xs' ? 'xs' : 's';
|
36
|
+
return /*#__PURE__*/React.createElement(ButtonWrapper, null, /*#__PURE__*/React.createElement(StyledButton, {
|
37
|
+
stretching: "filled",
|
38
|
+
onKeyDown: onKeyDown,
|
39
|
+
className: opened ? classes.selectWithoutBoxShadow : undefined,
|
40
|
+
disabled: disabled,
|
41
|
+
contentRight: /*#__PURE__*/React.createElement(IconArrowWrapper, null, /*#__PURE__*/React.createElement(StyledArrow, {
|
42
|
+
size: iconSize,
|
43
|
+
color: "inherit",
|
44
|
+
className: cx(classes.selectTargetArrow, withArrowInverse)
|
45
|
+
}))
|
46
|
+
}, /*#__PURE__*/React.createElement(InnerWrapper, null, /*#__PURE__*/React.createElement(Label, null, getLabel({
|
47
|
+
value: value,
|
48
|
+
isTargetAmount: isTargetAmount,
|
49
|
+
multiselect: multiselect,
|
50
|
+
valueToItemMap: valueToItemMap,
|
51
|
+
label: label
|
52
|
+
})))));
|
53
|
+
};
|