@salutejs/plasma-new-hope 0.110.0-canary.1307.10059399396.0 → 0.110.1-canary.1233.10062283292.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.js.map +1 -1
- package/cjs/components/Button/Button.styles.js.map +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.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/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/Dropdown/hooks/useKeyboardNavigation.js +63 -24
- package/cjs/components/Dropdown/hooks/useKeyboardNavigation.js.map +1 -1
- package/cjs/components/Pagination/Pagination.css +56 -48
- 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 +74 -66
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +20 -26
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js.map +1 -1
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +2 -22
- 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/Select/Select.css +71 -62
- package/cjs/components/Select/Select.js +265 -193
- package/cjs/components/Select/Select.js.map +1 -1
- package/cjs/components/Select/Select.styles.js +51 -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 +57 -166
- package/cjs/components/Select/Select.tokens.js.map +1 -1
- package/cjs/components/Select/hooks/useKeyboardNavigation.js +353 -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/ui/Inner/Inner.css +110 -0
- package/cjs/components/Select/ui/Inner/Inner.js +82 -0
- package/cjs/components/Select/ui/Inner/Inner.js.map +1 -0
- package/cjs/components/Select/ui/Inner/ui/Item/Item.css +110 -0
- package/cjs/components/Select/ui/Inner/ui/Item/Item.js +97 -0
- package/cjs/components/Select/ui/Inner/ui/Item/Item.js.map +1 -0
- package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +110 -0
- package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -0
- package/cjs/components/Select/ui/Inner/ui/Item/Item.styles_y3jg1m.css +9 -0
- package/cjs/components/Select/ui/Target/Target.css +66 -0
- package/cjs/components/Select/ui/Target/Target.js +63 -0
- package/cjs/components/Select/ui/Target/Target.js.map +1 -0
- package/cjs/components/Select/ui/Target/ui/Button/Button.css +33 -0
- package/cjs/components/Select/ui/Target/ui/Button/Button.js +59 -0
- package/cjs/components/Select/ui/Target/ui/Button/Button.js.map +1 -0
- package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +52 -0
- package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -0
- package/cjs/components/Select/ui/Target/ui/Button/Button.styles_nn6pg.css +5 -0
- package/{es/components/Select/ui/SelectTarget/SelectTarget.css → cjs/components/Select/ui/Target/ui/Textfield/Textfield.css} +13 -7
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +113 -0
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -0
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +113 -0
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -0
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles_16d02b7.css +12 -0
- package/cjs/components/Select/ui/{SelectChip/SelectChip.css → Target/ui/Textfield/ui/Chip/Chip.css} +1 -1
- package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +36 -0
- package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js.map +1 -0
- package/cjs/components/Select/ui/{SelectChip/SelectChip.styles.js → Target/ui/Textfield/ui/Chip/Chip.styles.js} +5 -8
- package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js.map +1 -0
- package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles_1a752pa.css +1 -0
- package/cjs/components/Select/utils/getButtonLabel.js +47 -0
- package/cjs/components/Select/utils/getButtonLabel.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/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 +34 -0
- package/cjs/components/Select/utils/updateAncestors.js.map +1 -0
- package/cjs/components/Select/utils/updateDescendants.js +18 -0
- package/cjs/components/Select/utils/updateDescendants.js.map +1 -0
- package/cjs/components/Select/utils/updateSingleAncestors.js +15 -0
- package/cjs/components/Select/utils/updateSingleAncestors.js.map +1 -0
- 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/index.css +42 -27
- package/cjs/index.js +2 -18
- 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/emotion/cjs/components/Button/Button.styles.js +9 -9
- package/emotion/cjs/components/Chip/Chip.tokens.js +2 -0
- package/emotion/cjs/components/Combobox/Combobox.js +6 -6
- package/emotion/cjs/components/Combobox/hooks/index.js +14 -1
- package/emotion/cjs/components/Combobox/ui/ComboboxTarget/ComboboxTarget.js +4 -5
- package/emotion/cjs/components/Combobox/utils/index.js +105 -1
- package/emotion/cjs/components/Dropdown/Dropdown.tokens.js +32 -18
- package/emotion/cjs/components/Dropdown/hooks/useKeyboardNavigation.js +63 -24
- package/emotion/cjs/components/Pagination/Pagination.js +12 -5
- package/emotion/cjs/components/Pagination/Pagination.styles.js +8 -8
- package/emotion/cjs/components/Pagination/Pagination.tokens.js +9 -11
- package/emotion/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +22 -35
- package/emotion/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +6 -12
- package/emotion/cjs/components/Select/Select.js +255 -187
- package/emotion/cjs/components/Select/Select.styles.js +29 -25
- package/emotion/cjs/components/Select/Select.tokens.js +80 -167
- package/emotion/cjs/components/Select/hooks/useKeyboardNavigation.js +355 -0
- package/emotion/cjs/components/Select/hooks/usePathMaps.js +33 -0
- package/emotion/cjs/components/Select/index.js +1 -25
- package/emotion/cjs/components/Select/reducers/focusedChipIndexReducer.js +38 -0
- package/emotion/cjs/components/Select/reducers/focusedPathReducer.js +40 -0
- package/emotion/cjs/components/Select/reducers/index.js +38 -0
- package/emotion/cjs/components/Select/reducers/pathReducer.js +44 -0
- package/emotion/cjs/components/Select/ui/InfiniteLoader/InfiniteLoader.js +18 -0
- package/emotion/cjs/components/Select/ui/InfiniteLoader/InfiniteLoader.styles.js +26 -0
- package/emotion/cjs/components/Select/ui/Inner/Inner.js +80 -0
- package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.js +95 -0
- package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +92 -0
- package/emotion/cjs/components/Select/ui/Inner/ui/index.js +16 -0
- package/emotion/cjs/components/Select/ui/Target/Target.js +61 -0
- package/emotion/cjs/components/Select/ui/Target/ui/Button/Button.js +57 -0
- package/emotion/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +44 -0
- package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +111 -0
- package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +84 -0
- package/{styled-components/cjs/components/Select/ui/SelectChip/SelectChip.js → emotion/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js} +24 -27
- package/emotion/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +22 -0
- package/emotion/cjs/components/Select/ui/Target/ui/Textfield/ui/index.js +16 -0
- package/emotion/cjs/components/Select/ui/Target/ui/index.js +27 -0
- package/emotion/cjs/components/Select/ui/index.js +33 -72
- package/emotion/cjs/components/Select/utils/getButtonLabel.js +43 -0
- package/emotion/cjs/components/Select/utils/getCorrectHeight.js +12 -0
- package/emotion/cjs/components/Select/utils/index.js +44 -102
- package/emotion/cjs/components/Select/utils/initialItemsTransform.js +18 -0
- package/emotion/cjs/components/Select/utils/sizeToIconSize.js +10 -0
- package/emotion/cjs/components/Select/utils/updateAncestors.js +33 -0
- package/emotion/cjs/components/Select/utils/updateDescendants.js +17 -0
- package/emotion/cjs/components/Select/utils/updateSingleAncestors.js +14 -0
- package/emotion/cjs/components/_Icon/Icon.assets/DisclosureDownCentered.js +32 -0
- package/emotion/cjs/components/_Icon/Icon.assets/DisclosureRightCentered.js +30 -0
- package/emotion/cjs/components/_Icon/Icons/IconDisclosureDownCentered.js +22 -0
- package/emotion/cjs/components/_Icon/Icons/IconDisclosureRightCentered.js +22 -0
- package/emotion/cjs/components/_Icon/index.js +14 -0
- package/emotion/cjs/examples/_helpers.js +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Pagination/Pagination.config.js +12 -12
- package/emotion/cjs/examples/plasma_b2c/components/Pagination/Pagination.stories.tsx +1 -0
- package/emotion/cjs/examples/plasma_b2c/components/Select/Select.config.js +21 -11
- package/emotion/cjs/examples/plasma_b2c/components/Select/Select.js +5 -15
- package/emotion/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +753 -204
- package/emotion/cjs/examples/plasma_b2c/components/Select/style.css +36 -0
- package/emotion/cjs/examples/plasma_web/components/Pagination/Pagination.config.js +12 -12
- package/emotion/cjs/examples/plasma_web/components/Select/Select.config.js +21 -11
- package/emotion/cjs/examples/plasma_web/components/Select/Select.js +5 -15
- package/emotion/cjs/examples/plasma_web/components/Select/Select.stories.tsx +753 -200
- package/emotion/cjs/examples/plasma_web/components/Select/style.css +37 -0
- package/emotion/cjs/utils/index.js +9 -1
- package/emotion/cjs/utils/isEmpty.js +47 -0
- package/emotion/es/components/Button/Button.styles.js +9 -9
- package/emotion/es/components/Chip/Chip.tokens.js +2 -0
- package/emotion/es/components/Combobox/Combobox.js +2 -2
- package/emotion/es/components/Combobox/hooks/index.js +2 -1
- package/emotion/es/components/Combobox/ui/ComboboxTarget/ComboboxTarget.js +1 -2
- package/emotion/es/components/Combobox/utils/index.js +105 -1
- package/emotion/es/components/Dropdown/Dropdown.tokens.js +32 -18
- package/emotion/es/components/Dropdown/hooks/useKeyboardNavigation.js +63 -24
- package/emotion/es/components/Pagination/Pagination.js +12 -5
- package/emotion/es/components/Pagination/Pagination.styles.js +8 -8
- package/emotion/es/components/Pagination/Pagination.tokens.js +9 -11
- package/emotion/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +22 -33
- package/emotion/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +6 -12
- package/emotion/es/components/Select/Select.js +252 -185
- package/emotion/es/components/Select/Select.styles.js +29 -25
- package/emotion/es/components/Select/Select.tokens.js +79 -166
- package/emotion/es/components/Select/hooks/useKeyboardNavigation.js +349 -0
- package/emotion/es/components/Select/hooks/usePathMaps.js +27 -0
- package/emotion/es/components/Select/index.js +1 -2
- package/emotion/es/components/Select/reducers/focusedChipIndexReducer.js +32 -0
- package/emotion/es/components/Select/reducers/focusedPathReducer.js +34 -0
- package/emotion/es/components/Select/reducers/index.js +3 -0
- package/emotion/es/components/Select/reducers/pathReducer.js +38 -0
- package/emotion/es/components/Select/ui/InfiniteLoader/InfiniteLoader.js +11 -0
- package/emotion/es/components/Select/ui/InfiniteLoader/InfiniteLoader.styles.js +19 -0
- package/emotion/es/components/Select/ui/Inner/Inner.js +73 -0
- package/emotion/es/components/Select/ui/Inner/ui/Item/Item.js +86 -0
- package/emotion/es/components/Select/ui/Inner/ui/Item/Item.styles.js +85 -0
- package/emotion/es/components/Select/ui/Inner/ui/index.js +1 -0
- package/emotion/es/components/Select/ui/Target/Target.js +54 -0
- package/emotion/es/components/Select/ui/Target/ui/Button/Button.js +50 -0
- package/emotion/es/components/Select/ui/Target/ui/Button/Button.styles.js +37 -0
- package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.js +104 -0
- package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +77 -0
- package/emotion/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +28 -0
- package/emotion/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +15 -0
- package/emotion/es/components/Select/ui/Target/ui/Textfield/ui/index.js +1 -0
- package/emotion/es/components/Select/ui/Target/ui/index.js +2 -0
- package/emotion/es/components/Select/ui/index.js +3 -6
- package/emotion/es/components/Select/utils/getButtonLabel.js +37 -0
- package/emotion/es/components/Select/utils/getCorrectHeight.js +6 -0
- package/emotion/es/components/Select/utils/index.js +7 -106
- package/emotion/es/components/Select/utils/initialItemsTransform.js +12 -0
- package/emotion/es/components/Select/utils/sizeToIconSize.js +4 -0
- package/emotion/es/components/Select/utils/updateAncestors.js +27 -0
- package/emotion/es/components/Select/utils/updateDescendants.js +11 -0
- package/emotion/es/components/Select/utils/updateSingleAncestors.js +8 -0
- package/emotion/es/components/_Icon/Icon.assets/DisclosureDownCentered.js +25 -0
- package/emotion/es/components/_Icon/Icon.assets/DisclosureRightCentered.js +23 -0
- package/emotion/es/components/_Icon/Icons/IconDisclosureDownCentered.js +15 -0
- package/emotion/es/components/_Icon/Icons/IconDisclosureRightCentered.js +15 -0
- package/emotion/es/components/_Icon/index.js +2 -0
- package/emotion/es/examples/_helpers.js +1 -1
- package/emotion/es/examples/plasma_b2c/components/Pagination/Pagination.config.js +12 -12
- package/emotion/es/examples/plasma_b2c/components/Pagination/Pagination.stories.tsx +1 -0
- package/emotion/es/examples/plasma_b2c/components/Select/Select.config.js +21 -11
- package/emotion/es/examples/plasma_b2c/components/Select/Select.js +3 -12
- package/emotion/es/examples/plasma_b2c/components/Select/Select.stories.tsx +753 -204
- package/emotion/es/examples/plasma_b2c/components/Select/style.css +36 -0
- package/emotion/es/examples/plasma_web/components/Pagination/Pagination.config.js +12 -12
- package/emotion/es/examples/plasma_web/components/Select/Select.config.js +21 -11
- package/emotion/es/examples/plasma_web/components/Select/Select.js +3 -12
- package/emotion/es/examples/plasma_web/components/Select/Select.stories.tsx +753 -200
- package/emotion/es/examples/plasma_web/components/Select/style.css +37 -0
- package/emotion/es/utils/index.js +1 -0
- package/emotion/es/utils/isEmpty.js +42 -0
- package/es/components/Accordion/ui/AccordionItem/AccordionItem.js.map +1 -1
- package/es/components/Button/Button.styles.js.map +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.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/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/Dropdown/hooks/useKeyboardNavigation.js +63 -24
- package/es/components/Dropdown/hooks/useKeyboardNavigation.js.map +1 -1
- package/es/components/Pagination/Pagination.css +56 -48
- 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 +74 -66
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +23 -29
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js.map +1 -1
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +3 -21
- 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/Select/Select.css +71 -62
- package/es/components/Select/Select.js +264 -193
- package/es/components/Select/Select.js.map +1 -1
- package/es/components/Select/Select.styles.js +48 -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 +57 -166
- package/es/components/Select/Select.tokens.js.map +1 -1
- package/es/components/Select/hooks/useKeyboardNavigation.js +348 -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/ui/Inner/Inner.css +110 -0
- package/es/components/Select/ui/Inner/Inner.js +78 -0
- package/es/components/Select/ui/Inner/Inner.js.map +1 -0
- package/es/components/Select/ui/Inner/ui/Item/Item.css +110 -0
- package/es/components/Select/ui/Inner/ui/Item/Item.js +93 -0
- package/es/components/Select/ui/Inner/ui/Item/Item.js.map +1 -0
- package/es/components/Select/ui/Inner/ui/Item/Item.styles.js +98 -0
- package/es/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -0
- package/es/components/Select/ui/Inner/ui/Item/Item.styles_y3jg1m.css +9 -0
- package/es/components/Select/ui/Target/Target.css +66 -0
- package/es/components/Select/ui/Target/Target.js +59 -0
- package/es/components/Select/ui/Target/Target.js.map +1 -0
- package/es/components/Select/ui/Target/ui/Button/Button.css +33 -0
- package/es/components/Select/ui/Target/ui/Button/Button.js +55 -0
- package/es/components/Select/ui/Target/ui/Button/Button.js.map +1 -0
- package/es/components/Select/ui/Target/ui/Button/Button.styles.js +44 -0
- package/es/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -0
- package/es/components/Select/ui/Target/ui/Button/Button.styles_nn6pg.css +5 -0
- package/{cjs/components/Select/ui/SelectTarget/SelectTarget.css → es/components/Select/ui/Target/ui/Textfield/Textfield.css} +13 -7
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +109 -0
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -0
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +98 -0
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -0
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles_16d02b7.css +12 -0
- package/es/components/Select/ui/{SelectChip/SelectChip.css → Target/ui/Textfield/ui/Chip/Chip.css} +1 -1
- package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +32 -0
- package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js.map +1 -0
- package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +19 -0
- package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js.map +1 -0
- package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles_1a752pa.css +1 -0
- package/es/components/Select/utils/getButtonLabel.js +43 -0
- package/es/components/Select/utils/getButtonLabel.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/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 +30 -0
- package/es/components/Select/utils/updateAncestors.js.map +1 -0
- package/es/components/Select/utils/updateDescendants.js +14 -0
- package/es/components/Select/utils/updateDescendants.js.map +1 -0
- package/es/components/Select/utils/updateSingleAncestors.js +11 -0
- package/es/components/Select/utils/updateSingleAncestors.js.map +1 -0
- 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/index.css +42 -27
- package/es/index.js +2 -7
- 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 +4 -4
- package/styled-components/cjs/components/Button/Button.styles.js +2 -2
- 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/Dropdown/hooks/useKeyboardNavigation.js +63 -24
- 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 +22 -35
- package/styled-components/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +3 -8
- package/styled-components/cjs/components/Select/Select.js +255 -187
- package/styled-components/cjs/components/Select/Select.styles.js +28 -23
- package/styled-components/cjs/components/Select/Select.tokens.js +80 -167
- package/styled-components/cjs/components/Select/hooks/useKeyboardNavigation.js +355 -0
- package/styled-components/cjs/components/Select/hooks/usePathMaps.js +33 -0
- package/styled-components/cjs/components/Select/index.js +1 -25
- 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/ui/InfiniteLoader/InfiniteLoader.js +18 -0
- package/styled-components/cjs/components/Select/ui/InfiniteLoader/InfiniteLoader.styles.js +24 -0
- package/styled-components/cjs/components/Select/ui/Inner/Inner.js +80 -0
- package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.js +95 -0
- package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +66 -0
- package/styled-components/cjs/components/Select/ui/Inner/ui/index.js +16 -0
- package/styled-components/cjs/components/Select/ui/Target/Target.js +61 -0
- package/styled-components/cjs/components/Select/ui/Target/ui/Button/Button.js +57 -0
- package/styled-components/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +30 -0
- package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +111 -0
- package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +63 -0
- package/{emotion/cjs/components/Select/ui/SelectChip/SelectChip.js → styled-components/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js} +24 -27
- package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +21 -0
- package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/ui/index.js +16 -0
- package/styled-components/cjs/components/Select/ui/Target/ui/index.js +27 -0
- package/styled-components/cjs/components/Select/ui/index.js +33 -72
- package/styled-components/cjs/components/Select/utils/getButtonLabel.js +43 -0
- package/styled-components/cjs/components/Select/utils/getCorrectHeight.js +12 -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 +33 -0
- package/styled-components/cjs/components/Select/utils/updateDescendants.js +17 -0
- package/styled-components/cjs/components/Select/utils/updateSingleAncestors.js +14 -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 +14 -0
- 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 +21 -11
- package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.js +5 -15
- package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +753 -204
- package/styled-components/cjs/examples/plasma_b2c/components/Select/style.css +36 -0
- package/styled-components/cjs/examples/plasma_web/components/Pagination/Pagination.config.js +7 -7
- package/styled-components/cjs/examples/plasma_web/components/Select/Select.config.js +21 -11
- package/styled-components/cjs/examples/plasma_web/components/Select/Select.js +5 -15
- package/styled-components/cjs/examples/plasma_web/components/Select/Select.stories.tsx +753 -200
- package/styled-components/cjs/examples/plasma_web/components/Select/style.css +37 -0
- package/styled-components/cjs/utils/index.js +9 -1
- 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.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/Dropdown/hooks/useKeyboardNavigation.js +63 -24
- 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 +22 -33
- package/styled-components/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +3 -8
- package/styled-components/es/components/Select/Select.js +252 -185
- package/styled-components/es/components/Select/Select.styles.js +25 -21
- package/styled-components/es/components/Select/Select.tokens.js +79 -166
- package/styled-components/es/components/Select/hooks/useKeyboardNavigation.js +349 -0
- package/styled-components/es/components/Select/hooks/usePathMaps.js +27 -0
- package/styled-components/es/components/Select/index.js +1 -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/ui/InfiniteLoader/InfiniteLoader.js +11 -0
- package/styled-components/es/components/Select/ui/InfiniteLoader/InfiniteLoader.styles.js +17 -0
- package/styled-components/es/components/Select/ui/Inner/Inner.js +73 -0
- package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.js +86 -0
- package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.styles.js +59 -0
- package/styled-components/es/components/Select/ui/Inner/ui/index.js +1 -0
- package/styled-components/es/components/Select/ui/Target/Target.js +54 -0
- package/styled-components/es/components/Select/ui/Target/ui/Button/Button.js +50 -0
- package/styled-components/es/components/Select/ui/Target/ui/Button/Button.styles.js +23 -0
- package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.js +104 -0
- package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +56 -0
- package/styled-components/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +28 -0
- package/styled-components/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +14 -0
- package/styled-components/es/components/Select/ui/Target/ui/Textfield/ui/index.js +1 -0
- package/styled-components/es/components/Select/ui/Target/ui/index.js +2 -0
- package/styled-components/es/components/Select/ui/index.js +3 -6
- package/styled-components/es/components/Select/utils/getButtonLabel.js +37 -0
- package/styled-components/es/components/Select/utils/getCorrectHeight.js +6 -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 +27 -0
- package/styled-components/es/components/Select/utils/updateDescendants.js +11 -0
- package/styled-components/es/components/Select/utils/updateSingleAncestors.js +8 -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 +2 -0
- 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 +21 -11
- package/styled-components/es/examples/plasma_b2c/components/Select/Select.js +3 -12
- package/styled-components/es/examples/plasma_b2c/components/Select/Select.stories.tsx +753 -204
- package/styled-components/es/examples/plasma_b2c/components/Select/style.css +36 -0
- package/styled-components/es/examples/plasma_web/components/Pagination/Pagination.config.js +7 -7
- package/styled-components/es/examples/plasma_web/components/Select/Select.config.js +21 -11
- package/styled-components/es/examples/plasma_web/components/Select/Select.js +3 -12
- package/styled-components/es/examples/plasma_web/components/Select/Select.stories.tsx +753 -200
- package/styled-components/es/examples/plasma_web/components/Select/style.css +37 -0
- package/styled-components/es/utils/index.js +1 -0
- package/styled-components/es/utils/isEmpty.js +42 -0
- package/types/components/Accordion/ui/AccordionItem/AccordionItem.d.ts +2 -2
- package/types/components/Accordion/ui/AccordionItem/AccordionItem.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/Combobox.types.d.ts +21 -0
- package/types/components/Combobox/Combobox.types.d.ts.map +1 -1
- package/types/components/Combobox/hooks/index.d.ts +1 -0
- package/types/components/Combobox/hooks/index.d.ts.map +1 -1
- package/types/components/{Select → Combobox}/hooks/useKeyNavigation.d.ts +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/Dropdown/hooks/useKeyboardNavigation.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 +53 -43
- 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 +7 -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 +78 -165
- package/types/components/Select/Select.tokens.d.ts.map +1 -1
- package/types/components/Select/Select.types.d.ts +104 -67
- package/types/components/Select/Select.types.d.ts.map +1 -1
- 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 +2 -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/ui/InfiniteLoader/InfiniteLoader.d.ts +6 -0
- package/types/components/Select/ui/InfiniteLoader/InfiniteLoader.d.ts.map +1 -0
- package/types/components/Select/ui/InfiniteLoader/InfiniteLoader.styles.d.ts +29 -0
- package/types/components/Select/ui/InfiniteLoader/InfiniteLoader.styles.d.ts.map +1 -0
- package/types/components/Select/ui/Inner/Inner.d.ts +4 -0
- package/types/components/Select/ui/Inner/Inner.d.ts.map +1 -0
- package/types/components/Select/ui/Inner/Inner.type.d.ts +13 -0
- package/types/components/Select/ui/Inner/Inner.type.d.ts.map +1 -0
- package/types/components/Select/ui/Inner/ui/Item/Item.d.ts +4 -0
- package/types/components/Select/ui/Inner/ui/Item/Item.d.ts.map +1 -0
- package/types/components/Select/ui/Inner/ui/Item/Item.styles.d.ts +19 -0
- package/types/components/Select/ui/Inner/ui/Item/Item.styles.d.ts.map +1 -0
- package/types/components/Select/ui/Inner/ui/Item/Item.types.d.ts +42 -0
- package/types/components/Select/ui/Inner/ui/Item/Item.types.d.ts.map +1 -0
- package/types/components/Select/ui/Inner/ui/index.d.ts +2 -0
- package/types/components/Select/ui/Inner/ui/index.d.ts.map +1 -0
- package/types/components/Select/ui/Target/Target.d.ts +4 -0
- package/types/components/Select/ui/Target/Target.d.ts.map +1 -0
- package/types/components/Select/ui/Target/Target.types.d.ts +15 -0
- package/types/components/Select/ui/Target/Target.types.d.ts.map +1 -0
- package/types/components/Select/ui/Target/ui/Button/Button.d.ts +4 -0
- package/types/components/Select/ui/Target/ui/Button/Button.d.ts.map +1 -0
- package/types/components/Select/ui/{SelectTarget/SelectTarget.styles.d.ts → Target/ui/Button/Button.styles.d.ts} +8 -13
- package/types/components/Select/ui/Target/ui/Button/Button.styles.d.ts.map +1 -0
- package/types/components/Select/ui/Target/ui/Button/Button.types.d.ts +4 -0
- package/types/components/Select/ui/Target/ui/Button/Button.types.d.ts.map +1 -0
- package/types/components/Select/ui/Target/ui/Textfield/Textfield.d.ts +4 -0
- package/types/components/Select/ui/Target/ui/Textfield/Textfield.d.ts.map +1 -0
- package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts +60 -0
- package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts.map +1 -0
- package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts +4 -0
- package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts.map +1 -0
- package/types/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.d.ts +9 -0
- package/types/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.d.ts.map +1 -0
- package/types/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.d.ts +3 -0
- package/types/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.d.ts.map +1 -0
- package/types/components/Select/ui/Target/ui/Textfield/ui/index.d.ts +2 -0
- package/types/components/Select/ui/Target/ui/Textfield/ui/index.d.ts.map +1 -0
- package/types/components/Select/ui/Target/ui/index.d.ts +3 -0
- package/types/components/Select/ui/Target/ui/index.d.ts.map +1 -0
- package/types/components/Select/ui/index.d.ts +3 -6
- package/types/components/Select/ui/index.d.ts.map +1 -1
- package/types/components/Select/utils/getButtonLabel.d.ts +3 -0
- package/types/components/Select/utils/getButtonLabel.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/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 +3 -3
- package/types/engines/common.d.ts.map +1 -1
- package/types/engines/types.d.ts +3 -3
- package/types/engines/types.d.ts.map +1 -1
- package/types/examples/_helpers.d.ts +2 -2
- package/types/examples/_helpers.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 +15 -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 +69 -55
- 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/examples/plasma_web/components/Select/Select.config.d.ts +15 -5
- package/types/examples/plasma_web/components/Select/Select.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Select/Select.d.ts +69 -55
- package/types/examples/plasma_web/components/Select/Select.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/emotion/cjs/components/Select/Select.template-doc.mdx +0 -115
- package/emotion/cjs/components/Select/hooks/index.js +0 -12
- package/emotion/cjs/components/Select/ui/SelectChip/SelectChip.styles.js +0 -26
- package/emotion/cjs/components/Select/ui/SelectDivider/SelectDivider.js +0 -29
- package/emotion/cjs/components/Select/ui/SelectDivider/SelectDivider.styles.js +0 -12
- package/emotion/cjs/components/Select/ui/SelectDivider/variations/_size/base.js +0 -8
- package/emotion/cjs/components/Select/ui/SelectDivider/variations/_size/tokens.json +0 -8
- package/emotion/cjs/components/Select/ui/SelectDivider/variations/_view/base.js +0 -8
- package/emotion/cjs/components/Select/ui/SelectDivider/variations/_view/tokens.json +0 -1
- package/emotion/cjs/components/Select/ui/SelectFooter/SelectFooter.js +0 -29
- package/emotion/cjs/components/Select/ui/SelectFooter/SelectFooter.styles.js +0 -12
- package/emotion/cjs/components/Select/ui/SelectFooter/variations/_size/base.js +0 -8
- package/emotion/cjs/components/Select/ui/SelectFooter/variations/_size/tokens.json +0 -12
- package/emotion/cjs/components/Select/ui/SelectFooter/variations/_view/base.js +0 -8
- package/emotion/cjs/components/Select/ui/SelectFooter/variations/_view/tokens.json +0 -9
- package/emotion/cjs/components/Select/ui/SelectGroup/SelectGroup.js +0 -29
- package/emotion/cjs/components/Select/ui/SelectGroup/SelectGroup.styles.js +0 -12
- package/emotion/cjs/components/Select/ui/SelectGroup/variations/_size/base.js +0 -8
- package/emotion/cjs/components/Select/ui/SelectGroup/variations/_size/tokens.json +0 -20
- package/emotion/cjs/components/Select/ui/SelectGroup/variations/_view/base.js +0 -8
- package/emotion/cjs/components/Select/ui/SelectGroup/variations/_view/tokens.json +0 -10
- package/emotion/cjs/components/Select/ui/SelectHeader/SelectHeader.js +0 -29
- package/emotion/cjs/components/Select/ui/SelectHeader/SelectHeader.styles.js +0 -12
- package/emotion/cjs/components/Select/ui/SelectHeader/variations/_size/base.js +0 -8
- package/emotion/cjs/components/Select/ui/SelectHeader/variations/_size/tokens.json +0 -12
- package/emotion/cjs/components/Select/ui/SelectHeader/variations/_view/base.js +0 -8
- package/emotion/cjs/components/Select/ui/SelectHeader/variations/_view/tokens.json +0 -9
- package/emotion/cjs/components/Select/ui/SelectItem/SelectItem.js +0 -29
- package/emotion/cjs/components/Select/ui/SelectItem/SelectItem.styles.js +0 -13
- package/emotion/cjs/components/Select/ui/SelectItem/variations/_size/base.js +0 -8
- package/emotion/cjs/components/Select/ui/SelectItem/variations/_size/tokens.json +0 -19
- package/emotion/cjs/components/Select/ui/SelectItem/variations/_view/base.js +0 -8
- package/emotion/cjs/components/Select/ui/SelectItem/variations/_view/tokens.json +0 -9
- package/emotion/cjs/components/Select/ui/SelectTarget/SelectTarget.js +0 -157
- package/emotion/cjs/components/Select/ui/SelectTarget/SelectTarget.styles.js +0 -75
- package/emotion/cjs/components/Select/variations/_target/base.js +0 -8
- package/emotion/cjs/components/Select/variations/_target/tokens.json +0 -1
- package/emotion/es/components/Select/Select.template-doc.mdx +0 -115
- package/emotion/es/components/Select/hooks/index.js +0 -1
- package/emotion/es/components/Select/ui/SelectChip/SelectChip.js +0 -31
- package/emotion/es/components/Select/ui/SelectChip/SelectChip.styles.js +0 -20
- package/emotion/es/components/Select/ui/SelectDivider/SelectDivider.js +0 -23
- package/emotion/es/components/Select/ui/SelectDivider/SelectDivider.styles.js +0 -7
- package/emotion/es/components/Select/ui/SelectDivider/variations/_size/base.js +0 -2
- package/emotion/es/components/Select/ui/SelectDivider/variations/_size/tokens.json +0 -8
- package/emotion/es/components/Select/ui/SelectDivider/variations/_view/base.js +0 -2
- package/emotion/es/components/Select/ui/SelectDivider/variations/_view/tokens.json +0 -1
- package/emotion/es/components/Select/ui/SelectFooter/SelectFooter.js +0 -23
- package/emotion/es/components/Select/ui/SelectFooter/SelectFooter.styles.js +0 -7
- package/emotion/es/components/Select/ui/SelectFooter/variations/_size/base.js +0 -2
- package/emotion/es/components/Select/ui/SelectFooter/variations/_size/tokens.json +0 -12
- package/emotion/es/components/Select/ui/SelectFooter/variations/_view/base.js +0 -2
- package/emotion/es/components/Select/ui/SelectFooter/variations/_view/tokens.json +0 -9
- package/emotion/es/components/Select/ui/SelectGroup/SelectGroup.js +0 -23
- package/emotion/es/components/Select/ui/SelectGroup/SelectGroup.styles.js +0 -7
- package/emotion/es/components/Select/ui/SelectGroup/variations/_size/base.js +0 -2
- package/emotion/es/components/Select/ui/SelectGroup/variations/_size/tokens.json +0 -20
- package/emotion/es/components/Select/ui/SelectGroup/variations/_view/base.js +0 -2
- package/emotion/es/components/Select/ui/SelectGroup/variations/_view/tokens.json +0 -10
- package/emotion/es/components/Select/ui/SelectHeader/SelectHeader.js +0 -23
- package/emotion/es/components/Select/ui/SelectHeader/SelectHeader.styles.js +0 -7
- package/emotion/es/components/Select/ui/SelectHeader/variations/_size/base.js +0 -2
- package/emotion/es/components/Select/ui/SelectHeader/variations/_size/tokens.json +0 -12
- package/emotion/es/components/Select/ui/SelectHeader/variations/_view/base.js +0 -2
- package/emotion/es/components/Select/ui/SelectHeader/variations/_view/tokens.json +0 -9
- package/emotion/es/components/Select/ui/SelectItem/SelectItem.js +0 -23
- package/emotion/es/components/Select/ui/SelectItem/SelectItem.styles.js +0 -8
- package/emotion/es/components/Select/ui/SelectItem/variations/_size/base.js +0 -2
- package/emotion/es/components/Select/ui/SelectItem/variations/_size/tokens.json +0 -19
- package/emotion/es/components/Select/ui/SelectItem/variations/_view/base.js +0 -2
- package/emotion/es/components/Select/ui/SelectItem/variations/_view/tokens.json +0 -9
- package/emotion/es/components/Select/ui/SelectTarget/SelectTarget.js +0 -148
- package/emotion/es/components/Select/ui/SelectTarget/SelectTarget.styles.js +0 -68
- package/emotion/es/components/Select/variations/_target/base.js +0 -2
- package/emotion/es/components/Select/variations/_target/tokens.json +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/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/SelectGroup.type.js +0 -5
- 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/SelectHeader.type.js +0 -5
- 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/SelectItem.type.js +0 -5
- 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/SelectTarget/SelectTarget.types.js +0 -5
- 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/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/SelectGroup.type.js +0 -1
- 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/SelectHeader.type.js +0 -1
- 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/SelectItem.type.js +0 -1
- 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/SelectTarget/SelectTarget.types.js +0 -1
- 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/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/variations/_target/base.d.ts +0 -2
- package/types/components/Select/variations/_target/base.d.ts.map +0 -1
- /package/cjs/components/{Select → Combobox}/hooks/useKeyNavigation.js +0 -0
- /package/emotion/cjs/components/{Select → Combobox}/hooks/useKeyNavigation.js +0 -0
- /package/emotion/cjs/components/Select/ui/{SelectChip/SelectChip.types.js → Inner/Inner.type.js} +0 -0
- /package/emotion/cjs/components/Select/ui/{SelectDivider/SelectDivider.types.js → Inner/ui/Item/Item.types.js} +0 -0
- /package/emotion/cjs/components/Select/ui/{SelectFooter/SelectFooter.type.js → Target/Target.types.js} +0 -0
- /package/emotion/cjs/components/Select/ui/{SelectGroup/SelectGroup.type.js → Target/ui/Button/Button.types.js} +0 -0
- /package/emotion/cjs/components/Select/ui/{SelectHeader/SelectHeader.type.js → Target/ui/Textfield/Textfield.types.js} +0 -0
- /package/emotion/es/components/{Select → Combobox}/hooks/useKeyNavigation.js +0 -0
- /package/emotion/es/components/Select/ui/{SelectChip/SelectChip.types.js → Inner/Inner.type.js} +0 -0
- /package/emotion/es/components/Select/ui/{SelectDivider/SelectDivider.types.js → Inner/ui/Item/Item.types.js} +0 -0
- /package/emotion/es/components/Select/ui/{SelectFooter/SelectFooter.type.js → Target/Target.types.js} +0 -0
- /package/emotion/es/components/Select/ui/{SelectGroup/SelectGroup.type.js → Target/ui/Button/Button.types.js} +0 -0
- /package/emotion/es/components/Select/ui/{SelectHeader/SelectHeader.type.js → Target/ui/Textfield/Textfield.types.js} +0 -0
- /package/es/components/{Select → Combobox}/hooks/useKeyNavigation.js +0 -0
- /package/styled-components/cjs/components/{Select → Combobox}/hooks/useKeyNavigation.js +0 -0
- /package/{emotion/cjs/components/Select/ui/SelectItem/SelectItem.type.js → styled-components/cjs/components/Select/ui/Inner/Inner.type.js} +0 -0
- /package/{emotion/cjs/components/Select/ui/SelectTarget/SelectTarget.types.js → styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.types.js} +0 -0
- /package/styled-components/cjs/components/Select/ui/{SelectChip/SelectChip.types.js → Target/Target.types.js} +0 -0
- /package/styled-components/cjs/components/Select/ui/{SelectDivider/SelectDivider.types.js → Target/ui/Button/Button.types.js} +0 -0
- /package/styled-components/cjs/components/Select/ui/{SelectFooter/SelectFooter.type.js → Target/ui/Textfield/Textfield.types.js} +0 -0
- /package/styled-components/es/components/{Select → Combobox}/hooks/useKeyNavigation.js +0 -0
- /package/{emotion/es/components/Select/ui/SelectItem/SelectItem.type.js → styled-components/es/components/Select/ui/Inner/Inner.type.js} +0 -0
- /package/{emotion/es/components/Select/ui/SelectTarget/SelectTarget.types.js → styled-components/es/components/Select/ui/Inner/ui/Item/Item.types.js} +0 -0
- /package/styled-components/es/components/Select/ui/{SelectChip/SelectChip.types.js → Target/Target.types.js} +0 -0
- /package/styled-components/es/components/Select/ui/{SelectDivider/SelectDivider.types.js → Target/ui/Button/Button.types.js} +0 -0
- /package/styled-components/es/components/Select/ui/{SelectFooter/SelectFooter.type.js → Target/ui/Textfield/Textfield.types.js} +0 -0
@@ -1,276 +1,825 @@
|
|
1
1
|
import React, { useState } from 'react';
|
2
2
|
import type { ComponentProps } from 'react';
|
3
3
|
import type { Meta, StoryObj } from '@storybook/react';
|
4
|
-
import { action } from '@storybook/addon-actions';
|
5
4
|
|
6
|
-
import
|
7
|
-
import { Checkbox } from '../Checkbox/Checkbox';
|
8
|
-
import { Button } from '../Button/Button';
|
9
|
-
import { SelectPrimitiveValue, selectConfig } from '../../../../components/Select';
|
10
|
-
import { WithTheme, argTypesFromConfig } from '../../../_helpers';
|
11
|
-
import { IconDone, IconClose } from '../../../../components/_Icon';
|
5
|
+
import './style.css';
|
12
6
|
|
13
|
-
import {
|
14
|
-
import {
|
7
|
+
import { WithTheme } from '../../../_helpers';
|
8
|
+
import { IconDone } from '../../../../components/_Icon';
|
15
9
|
|
16
|
-
|
17
|
-
const enumerations: Array<string> = ['comma', 'chip'];
|
10
|
+
import { Select } from './Select';
|
18
11
|
|
19
|
-
type
|
20
|
-
|
21
|
-
distance?: number;
|
12
|
+
type StorySelectProps = ComponentProps<typeof Select> & {
|
13
|
+
enableContentLeft?: boolean;
|
22
14
|
};
|
23
15
|
|
24
|
-
|
16
|
+
const view = ['default', 'accent', 'secondary', 'clear', 'positive', 'warning', 'negative', 'dark', 'black', 'white'];
|
17
|
+
const size = ['xs', 's', 'm', 'l'];
|
18
|
+
const labelPlacement = ['inner', 'outer'];
|
19
|
+
const chip = ['default', 'secondary', 'accent'];
|
20
|
+
const variant = ['normal', 'tight'];
|
25
21
|
|
26
22
|
const meta: Meta<StorySelectProps> = {
|
27
23
|
title: 'plasma_b2c/Select',
|
28
24
|
decorators: [WithTheme],
|
29
25
|
component: Select,
|
30
26
|
argTypes: {
|
31
|
-
|
32
|
-
options:
|
27
|
+
target: {
|
28
|
+
options: ['button-like', 'textfield-like'],
|
33
29
|
control: {
|
34
30
|
type: 'select',
|
35
31
|
},
|
36
32
|
},
|
37
|
-
|
38
|
-
options:
|
33
|
+
size: {
|
34
|
+
options: size,
|
35
|
+
control: {
|
36
|
+
type: 'select',
|
37
|
+
},
|
38
|
+
},
|
39
|
+
view: {
|
40
|
+
options: view,
|
41
|
+
control: {
|
42
|
+
type: 'select',
|
43
|
+
},
|
44
|
+
},
|
45
|
+
labelPlacement: {
|
46
|
+
options: labelPlacement,
|
47
|
+
control: {
|
48
|
+
type: 'select',
|
49
|
+
},
|
50
|
+
},
|
51
|
+
chipView: {
|
52
|
+
options: chip,
|
53
|
+
control: {
|
54
|
+
type: 'select',
|
55
|
+
},
|
56
|
+
},
|
57
|
+
variant: {
|
58
|
+
options: variant,
|
39
59
|
control: {
|
40
60
|
type: 'select',
|
41
61
|
},
|
42
62
|
},
|
43
|
-
...argTypesFromConfig(mergeConfig(selectConfig, config)),
|
44
63
|
},
|
45
64
|
args: {
|
46
|
-
|
47
|
-
|
48
|
-
readOnly: false,
|
65
|
+
multiselect: false,
|
66
|
+
target: 'textfield-like',
|
49
67
|
label: 'Label',
|
50
|
-
|
51
|
-
|
68
|
+
labelPlacement: 'outer',
|
69
|
+
placeholder: 'Placeholder',
|
70
|
+
helperText: 'Helper text',
|
52
71
|
size: 'm',
|
53
72
|
view: 'default',
|
54
|
-
|
73
|
+
chipView: 'default',
|
74
|
+
enableContentLeft: false,
|
75
|
+
isTargetAmount: false,
|
76
|
+
variant: 'normal',
|
77
|
+
disabled: false,
|
78
|
+
separator: '',
|
55
79
|
},
|
56
80
|
};
|
57
81
|
|
58
82
|
export default meta;
|
59
83
|
|
60
|
-
const
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
84
|
+
const items = [
|
85
|
+
{
|
86
|
+
value: 'north_america',
|
87
|
+
label: 'Северная Америка',
|
88
|
+
},
|
89
|
+
{
|
90
|
+
value: 'south_america',
|
91
|
+
label: 'Южная Америка',
|
92
|
+
items: [
|
93
|
+
{
|
94
|
+
value: 'brazil',
|
95
|
+
label: 'Бразилия',
|
96
|
+
items: [
|
97
|
+
{
|
98
|
+
value: 'rio_de_janeiro',
|
99
|
+
label: 'Рио-де-Жанейро',
|
100
|
+
},
|
101
|
+
{
|
102
|
+
value: 'sao_paulo',
|
103
|
+
label: 'Сан-Паулу',
|
104
|
+
},
|
105
|
+
],
|
106
|
+
},
|
107
|
+
{
|
108
|
+
value: 'argentina',
|
109
|
+
label: 'Аргентина',
|
110
|
+
items: [
|
111
|
+
{
|
112
|
+
value: 'buenos_aires',
|
113
|
+
label: 'Буэнос-Айрес',
|
114
|
+
},
|
115
|
+
{
|
116
|
+
value: 'cordoba',
|
117
|
+
label: 'Кордова',
|
118
|
+
},
|
119
|
+
],
|
120
|
+
},
|
121
|
+
{
|
122
|
+
value: 'colombia',
|
123
|
+
label: 'Колумбия',
|
124
|
+
items: [
|
125
|
+
{
|
126
|
+
value: 'bogota',
|
127
|
+
label: 'Богота',
|
128
|
+
},
|
129
|
+
{
|
130
|
+
value: 'medellin',
|
131
|
+
label: 'Медельин',
|
132
|
+
},
|
133
|
+
],
|
134
|
+
},
|
135
|
+
],
|
136
|
+
},
|
137
|
+
{
|
138
|
+
value: 'europe',
|
139
|
+
label: 'Европа',
|
140
|
+
items: [
|
141
|
+
{
|
142
|
+
value: 'france',
|
143
|
+
label: 'Франция',
|
144
|
+
items: [
|
145
|
+
{
|
146
|
+
value: 'paris',
|
147
|
+
label: 'Париж',
|
148
|
+
},
|
149
|
+
{
|
150
|
+
value: 'lyon',
|
151
|
+
label: 'Лион',
|
152
|
+
},
|
153
|
+
],
|
154
|
+
},
|
155
|
+
{
|
156
|
+
value: 'germany',
|
157
|
+
label: 'Германия',
|
158
|
+
items: [
|
159
|
+
{
|
160
|
+
value: 'berlin',
|
161
|
+
label: 'Берлин',
|
162
|
+
},
|
163
|
+
{
|
164
|
+
value: 'munich',
|
165
|
+
label: 'Мюнхен',
|
166
|
+
},
|
167
|
+
],
|
168
|
+
},
|
169
|
+
{
|
170
|
+
value: 'italy',
|
171
|
+
label: 'Италия',
|
172
|
+
items: [
|
173
|
+
{
|
174
|
+
value: 'rome',
|
175
|
+
label: 'Рим',
|
176
|
+
},
|
177
|
+
{
|
178
|
+
value: 'milan',
|
179
|
+
label: 'Милан',
|
180
|
+
},
|
181
|
+
],
|
182
|
+
},
|
183
|
+
{
|
184
|
+
value: 'spain',
|
185
|
+
label: 'Испания',
|
186
|
+
items: [
|
187
|
+
{
|
188
|
+
value: 'madrid',
|
189
|
+
label: 'Мадрид',
|
190
|
+
},
|
191
|
+
{
|
192
|
+
value: 'barcelona',
|
193
|
+
label: 'Барселона',
|
194
|
+
},
|
195
|
+
],
|
196
|
+
},
|
197
|
+
{
|
198
|
+
value: 'united_kingdom',
|
199
|
+
label: 'Великобритания',
|
200
|
+
items: [
|
201
|
+
{
|
202
|
+
value: 'london',
|
203
|
+
label: 'Лондон',
|
204
|
+
},
|
205
|
+
{
|
206
|
+
value: 'manchester',
|
207
|
+
label: 'Манчестер',
|
208
|
+
},
|
209
|
+
],
|
210
|
+
},
|
211
|
+
],
|
212
|
+
},
|
213
|
+
{
|
214
|
+
value: 'asia',
|
215
|
+
label: 'Азия',
|
216
|
+
items: [
|
217
|
+
{
|
218
|
+
value: 'china',
|
219
|
+
label: 'Китай',
|
220
|
+
items: [
|
221
|
+
{
|
222
|
+
value: 'beijing',
|
223
|
+
label: 'Пекин',
|
224
|
+
},
|
225
|
+
{
|
226
|
+
value: 'shanghai',
|
227
|
+
label: 'Шанхай',
|
228
|
+
},
|
229
|
+
],
|
230
|
+
},
|
231
|
+
{
|
232
|
+
value: 'japan',
|
233
|
+
label: 'Япония',
|
234
|
+
items: [
|
235
|
+
{
|
236
|
+
value: 'tokyo',
|
237
|
+
label: 'Токио',
|
238
|
+
},
|
239
|
+
{
|
240
|
+
value: 'osaka',
|
241
|
+
label: 'Осака',
|
242
|
+
},
|
243
|
+
],
|
244
|
+
},
|
245
|
+
{
|
246
|
+
value: 'india',
|
247
|
+
label: 'Индия',
|
248
|
+
items: [
|
249
|
+
{
|
250
|
+
value: 'delhi',
|
251
|
+
label: 'Дели',
|
252
|
+
},
|
253
|
+
{
|
254
|
+
value: 'mumbai',
|
255
|
+
label: 'Мумбаи',
|
256
|
+
},
|
257
|
+
],
|
258
|
+
},
|
259
|
+
{
|
260
|
+
value: 'south_korea',
|
261
|
+
label: 'Южная Корея',
|
262
|
+
items: [
|
263
|
+
{
|
264
|
+
value: 'seoul',
|
265
|
+
label: 'Сеул',
|
266
|
+
},
|
267
|
+
{
|
268
|
+
value: 'busan',
|
269
|
+
label: 'Пусан',
|
270
|
+
},
|
271
|
+
],
|
272
|
+
},
|
273
|
+
{
|
274
|
+
value: 'thailand',
|
275
|
+
label: 'Таиланд',
|
276
|
+
items: [
|
277
|
+
{
|
278
|
+
value: 'bangkok',
|
279
|
+
label: 'Бангкок',
|
280
|
+
},
|
281
|
+
{
|
282
|
+
value: 'phuket',
|
283
|
+
label: 'Пхукет',
|
284
|
+
},
|
285
|
+
],
|
286
|
+
},
|
287
|
+
],
|
288
|
+
},
|
289
|
+
{
|
290
|
+
value: 'africa',
|
291
|
+
label: 'Африка',
|
292
|
+
isDisabled: true,
|
293
|
+
},
|
294
|
+
];
|
86
295
|
|
87
|
-
|
88
|
-
|
89
|
-
onChangeAction(newValue);
|
90
|
-
};
|
296
|
+
const SingleStory = (args: StorySelectProps) => {
|
297
|
+
const [value, setValue] = useState('');
|
91
298
|
|
92
299
|
return (
|
93
|
-
<div style={{ width: '
|
300
|
+
<div style={{ width: '300px' }}>
|
94
301
|
<Select
|
95
|
-
|
96
|
-
|
97
|
-
valueType="single"
|
302
|
+
{...args}
|
303
|
+
items={items}
|
98
304
|
value={value}
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
view={view}
|
103
|
-
target={target}
|
104
|
-
disabled={disabled}
|
105
|
-
readOnly={readOnly}
|
106
|
-
onChangeValue={onChangeValue}
|
107
|
-
>
|
108
|
-
<SelectItem value={undefined} text="Clear" />
|
109
|
-
{getSelectItems('item', 6).map((item) => (
|
110
|
-
<SelectItem
|
111
|
-
key={item.value}
|
112
|
-
contentLeft={
|
113
|
-
item.value === value ? (
|
114
|
-
<IconDone size={iconDoneToSelectSizeMap[size]} color="inherit" />
|
115
|
-
) : undefined
|
116
|
-
}
|
117
|
-
value={item.value}
|
118
|
-
text={item.child}
|
119
|
-
/>
|
120
|
-
))}
|
121
|
-
</Select>
|
305
|
+
onChange={setValue}
|
306
|
+
contentLeft={args.enableContentLeft ? <IconDone size="s" /> : undefined}
|
307
|
+
/>
|
122
308
|
</div>
|
123
309
|
);
|
124
310
|
};
|
125
311
|
|
126
312
|
export const Single: StoryObj<StorySelectProps> = {
|
127
|
-
render: (args) => <
|
313
|
+
render: (args) => <SingleStory {...args} />,
|
128
314
|
};
|
129
315
|
|
130
|
-
const
|
131
|
-
const
|
132
|
-
|
133
|
-
const [value, setValue] = useState<Array<SelectPrimitiveValue> | undefined>(['item_2', 'item_3']);
|
134
|
-
|
135
|
-
const onChangeValue = (newValue?: Array<SelectPrimitiveValue>) => {
|
136
|
-
setValue(newValue);
|
137
|
-
onChangeAction(newValue);
|
138
|
-
};
|
316
|
+
const MultiselectStory = (args: StorySelectProps) => {
|
317
|
+
const [value, setValue] = useState<Array<string>>([]);
|
139
318
|
|
140
319
|
return (
|
141
|
-
<div style={{ width: '
|
320
|
+
<div style={{ width: '300px' }}>
|
142
321
|
<Select
|
143
|
-
|
144
|
-
|
145
|
-
valueType="multiple"
|
322
|
+
{...args}
|
323
|
+
items={items}
|
146
324
|
value={value}
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
view={view}
|
151
|
-
target={target}
|
152
|
-
enumerationType={enumerationType}
|
153
|
-
disabled={disabled}
|
154
|
-
readOnly={readOnly}
|
155
|
-
onChangeValue={onChangeValue}
|
156
|
-
>
|
157
|
-
{getSelectItems('item', 6).map((item) => (
|
158
|
-
<SelectItem
|
159
|
-
key={item.value}
|
160
|
-
contentLeft={<Checkbox size={checkboxToSelectSizeMap[size]} />}
|
161
|
-
value={item.value}
|
162
|
-
text={item.child}
|
163
|
-
/>
|
164
|
-
))}
|
165
|
-
</Select>
|
325
|
+
onChange={setValue}
|
326
|
+
contentLeft={args.enableContentLeft ? <IconDone size="s" /> : undefined}
|
327
|
+
/>
|
166
328
|
</div>
|
167
329
|
);
|
168
330
|
};
|
169
331
|
|
170
|
-
export const
|
171
|
-
|
332
|
+
export const Multiselect: StoryObj<StorySelectProps> = {
|
333
|
+
args: {
|
334
|
+
multiselect: true,
|
335
|
+
},
|
336
|
+
render: (args) => <MultiselectStory {...args} />,
|
172
337
|
};
|
173
338
|
|
174
|
-
const
|
175
|
-
const
|
339
|
+
const PredefinedStory = (args: StorySelectProps) => {
|
340
|
+
const [valueSingle, setValueSingle] = useState('paris');
|
341
|
+
const [valueMultiple, setValueMultiple] = useState(['paris', 'north_america']);
|
176
342
|
|
177
|
-
|
343
|
+
return (
|
344
|
+
<div style={{ width: '300px' }}>
|
345
|
+
<Select
|
346
|
+
{...args}
|
347
|
+
items={items}
|
348
|
+
value={valueSingle}
|
349
|
+
onChange={setValueSingle}
|
350
|
+
contentLeft={args.enableContentLeft ? <IconDone size="s" /> : undefined}
|
351
|
+
/>
|
178
352
|
|
179
|
-
|
180
|
-
setValue(newValue);
|
181
|
-
onChangeAction(newValue);
|
182
|
-
};
|
353
|
+
<br />
|
183
354
|
|
184
|
-
return (
|
185
|
-
<div style={{ width: '50%' }}>
|
186
355
|
<Select
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
value={
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
view={view}
|
195
|
-
target={target}
|
196
|
-
disabled={disabled}
|
197
|
-
readOnly={readOnly}
|
198
|
-
onChangeValue={onChangeValue}
|
199
|
-
>
|
200
|
-
{getSelectItems('item', 6).map((item) => (
|
201
|
-
<option key={item.value} value={item.value}>
|
202
|
-
{item.child}
|
203
|
-
</option>
|
204
|
-
))}
|
205
|
-
</Select>
|
356
|
+
{...args}
|
357
|
+
multiselect
|
358
|
+
items={items}
|
359
|
+
value={valueMultiple}
|
360
|
+
onChange={setValueMultiple}
|
361
|
+
contentLeft={args.enableContentLeft ? <IconDone size="s" /> : undefined}
|
362
|
+
/>
|
206
363
|
</div>
|
207
364
|
);
|
208
365
|
};
|
209
366
|
|
210
|
-
export const
|
211
|
-
|
367
|
+
export const Predefined: StoryObj<StorySelectProps> = {
|
368
|
+
parameters: {
|
369
|
+
controls: {
|
370
|
+
exclude: ['multiselect'],
|
371
|
+
},
|
372
|
+
},
|
373
|
+
render: (args) => <PredefinedStory {...args} />,
|
212
374
|
};
|
213
375
|
|
214
|
-
const
|
215
|
-
const
|
216
|
-
|
217
|
-
const [opened, setOpened] = useState(true);
|
218
|
-
const [iconColor, setIconColor] = useState('green');
|
219
|
-
const [value, setV] = useState<string | number | boolean | undefined>('item_0');
|
376
|
+
const CommonStory = (args: StorySelectProps) => {
|
377
|
+
const [value, setValue] = useState('');
|
378
|
+
const [valueMultiple, setValueMultiple] = useState<Array<string>>([]);
|
220
379
|
|
221
|
-
const
|
222
|
-
setV(newValue);
|
223
|
-
onChangeAction(newValue);
|
224
|
-
};
|
225
|
-
const onToggle = (openValue: boolean) => setOpened(openValue);
|
226
|
-
const onOpen = () => setOpened((v) => !v);
|
227
|
-
const onMouseEnter = () => setIconColor('red');
|
228
|
-
const onMouseLeave = () => setIconColor('green');
|
380
|
+
const { enableContentLeft } = args;
|
229
381
|
|
230
382
|
return (
|
231
|
-
|
232
|
-
<
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
383
|
+
<div className="container">
|
384
|
+
<table>
|
385
|
+
<thead>
|
386
|
+
<tr>
|
387
|
+
<th>View ↓</th>
|
388
|
+
<th>Single Button</th>
|
389
|
+
<th>Multiple Button</th>
|
390
|
+
<th>Single Textfield</th>
|
391
|
+
<th>Multiple Textfield</th>
|
392
|
+
</tr>
|
393
|
+
</thead>
|
394
|
+
|
395
|
+
<tbody>
|
396
|
+
<tr>
|
397
|
+
<td>Default</td>
|
398
|
+
<td>
|
399
|
+
<div style={{ width: '200px' }}>
|
400
|
+
<Select
|
401
|
+
{...args}
|
402
|
+
items={items}
|
403
|
+
value={value}
|
404
|
+
onChange={setValue}
|
405
|
+
view="default"
|
406
|
+
target="button-like"
|
407
|
+
/>
|
408
|
+
</div>
|
409
|
+
</td>
|
410
|
+
<td>
|
411
|
+
<div style={{ width: '200px' }}>
|
412
|
+
<Select
|
413
|
+
{...args}
|
414
|
+
multiselect
|
415
|
+
items={items}
|
416
|
+
value={valueMultiple}
|
417
|
+
onChange={setValueMultiple}
|
418
|
+
view="default"
|
419
|
+
target="button-like"
|
420
|
+
/>
|
421
|
+
</div>
|
422
|
+
</td>
|
423
|
+
<td>
|
424
|
+
<div style={{ width: '200px' }}>
|
425
|
+
<Select
|
426
|
+
{...args}
|
427
|
+
items={items}
|
428
|
+
value={value}
|
429
|
+
onChange={setValue}
|
430
|
+
view="default"
|
431
|
+
contentLeft={enableContentLeft ? <IconDone size="s" /> : undefined}
|
432
|
+
/>
|
433
|
+
</div>
|
434
|
+
</td>
|
435
|
+
<td>
|
436
|
+
<div style={{ width: '200px' }}>
|
437
|
+
<Select
|
438
|
+
{...args}
|
439
|
+
multiselect
|
440
|
+
items={items}
|
441
|
+
value={valueMultiple}
|
442
|
+
onChange={setValueMultiple}
|
443
|
+
view="default"
|
444
|
+
contentLeft={enableContentLeft ? <IconDone size="s" /> : undefined}
|
445
|
+
/>
|
446
|
+
</div>
|
447
|
+
</td>
|
448
|
+
</tr>
|
449
|
+
<tr>
|
450
|
+
<td>Accent</td>
|
451
|
+
<td>
|
452
|
+
<div style={{ width: '200px' }}>
|
453
|
+
<Select
|
454
|
+
{...args}
|
455
|
+
items={items}
|
456
|
+
value={value}
|
457
|
+
onChange={setValue}
|
458
|
+
view="accent"
|
459
|
+
target="button-like"
|
460
|
+
/>
|
461
|
+
</div>
|
462
|
+
</td>
|
463
|
+
<td>
|
464
|
+
<div style={{ width: '200px' }}>
|
465
|
+
<Select
|
466
|
+
{...args}
|
467
|
+
multiselect
|
468
|
+
items={items}
|
469
|
+
value={valueMultiple}
|
470
|
+
onChange={setValueMultiple}
|
471
|
+
view="accent"
|
472
|
+
target="button-like"
|
473
|
+
/>
|
474
|
+
</div>
|
475
|
+
</td>
|
476
|
+
<td />
|
477
|
+
<td />
|
478
|
+
</tr>
|
479
|
+
<tr>
|
480
|
+
<td>Secondary</td>
|
481
|
+
<td>
|
482
|
+
<div style={{ width: '200px' }}>
|
483
|
+
<Select
|
484
|
+
{...args}
|
485
|
+
items={items}
|
486
|
+
value={value}
|
487
|
+
onChange={setValue}
|
488
|
+
view="secondary"
|
489
|
+
target="button-like"
|
490
|
+
/>
|
491
|
+
</div>
|
492
|
+
</td>
|
493
|
+
<td>
|
494
|
+
<div style={{ width: '200px' }}>
|
495
|
+
<Select
|
496
|
+
{...args}
|
497
|
+
multiselect
|
498
|
+
items={items}
|
499
|
+
value={valueMultiple}
|
500
|
+
onChange={setValueMultiple}
|
501
|
+
view="secondary"
|
502
|
+
target="button-like"
|
503
|
+
/>
|
504
|
+
</div>
|
505
|
+
</td>
|
506
|
+
<td />
|
507
|
+
<td />
|
508
|
+
</tr>
|
509
|
+
<tr>
|
510
|
+
<td>Clear</td>
|
511
|
+
|
512
|
+
<td>
|
513
|
+
<div style={{ width: '200px' }}>
|
514
|
+
<Select
|
515
|
+
{...args}
|
516
|
+
items={items}
|
517
|
+
value={value}
|
518
|
+
onChange={setValue}
|
519
|
+
view="clear"
|
520
|
+
target="button-like"
|
521
|
+
/>
|
522
|
+
</div>
|
523
|
+
</td>
|
524
|
+
<td>
|
525
|
+
<div style={{ width: '200px' }}>
|
526
|
+
<Select
|
527
|
+
{...args}
|
528
|
+
multiselect
|
529
|
+
items={items}
|
530
|
+
value={valueMultiple}
|
531
|
+
onChange={setValueMultiple}
|
532
|
+
view="clear"
|
533
|
+
target="button-like"
|
534
|
+
/>
|
535
|
+
</div>
|
536
|
+
</td>
|
537
|
+
<td />
|
538
|
+
<td />
|
539
|
+
</tr>
|
540
|
+
<tr>
|
541
|
+
<td>Positive</td>
|
542
|
+
<td>
|
543
|
+
<div style={{ width: '200px' }}>
|
544
|
+
<Select
|
545
|
+
{...args}
|
546
|
+
items={items}
|
547
|
+
value={value}
|
548
|
+
onChange={setValue}
|
549
|
+
view="positive"
|
550
|
+
target="button-like"
|
551
|
+
/>
|
552
|
+
</div>
|
553
|
+
</td>
|
554
|
+
<td>
|
555
|
+
<div style={{ width: '200px' }}>
|
556
|
+
<Select
|
557
|
+
{...args}
|
558
|
+
multiselect
|
559
|
+
items={items}
|
560
|
+
value={valueMultiple}
|
561
|
+
onChange={setValueMultiple}
|
562
|
+
view="positive"
|
563
|
+
target="button-like"
|
564
|
+
/>
|
565
|
+
</div>
|
566
|
+
</td>
|
567
|
+
<td>
|
568
|
+
<div style={{ width: '200px' }}>
|
569
|
+
<Select
|
570
|
+
{...args}
|
571
|
+
items={items}
|
572
|
+
value={value}
|
573
|
+
onChange={setValue}
|
574
|
+
view="positive"
|
575
|
+
contentLeft={enableContentLeft ? <IconDone size="s" /> : undefined}
|
576
|
+
/>
|
577
|
+
</div>
|
578
|
+
</td>
|
579
|
+
<td>
|
580
|
+
<div style={{ width: '200px' }}>
|
581
|
+
<Select
|
582
|
+
{...args}
|
583
|
+
multiselect
|
584
|
+
items={items}
|
585
|
+
value={valueMultiple}
|
586
|
+
onChange={setValueMultiple}
|
587
|
+
view="positive"
|
588
|
+
contentLeft={enableContentLeft ? <IconDone size="s" /> : undefined}
|
589
|
+
/>
|
590
|
+
</div>
|
591
|
+
</td>
|
592
|
+
</tr>
|
593
|
+
<tr>
|
594
|
+
<td>Warning</td>
|
595
|
+
<td>
|
596
|
+
<div style={{ width: '200px' }}>
|
597
|
+
<Select
|
598
|
+
{...args}
|
599
|
+
items={items}
|
600
|
+
value={value}
|
601
|
+
onChange={setValue}
|
602
|
+
view="warning"
|
603
|
+
target="button-like"
|
604
|
+
/>
|
605
|
+
</div>
|
606
|
+
</td>
|
607
|
+
<td>
|
608
|
+
<div style={{ width: '200px' }}>
|
609
|
+
<Select
|
610
|
+
{...args}
|
611
|
+
multiselect
|
612
|
+
items={items}
|
613
|
+
value={valueMultiple}
|
614
|
+
onChange={setValueMultiple}
|
615
|
+
view="warning"
|
616
|
+
target="button-like"
|
617
|
+
/>
|
618
|
+
</div>
|
619
|
+
</td>
|
620
|
+
<td>
|
621
|
+
<div style={{ width: '200px' }}>
|
622
|
+
<Select
|
623
|
+
{...args}
|
624
|
+
items={items}
|
625
|
+
value={value}
|
626
|
+
onChange={setValue}
|
627
|
+
view="warning"
|
628
|
+
contentLeft={enableContentLeft ? <IconDone size="s" /> : undefined}
|
629
|
+
/>
|
630
|
+
</div>
|
631
|
+
</td>
|
632
|
+
<td>
|
633
|
+
<div style={{ width: '200px' }}>
|
634
|
+
<Select
|
635
|
+
{...args}
|
636
|
+
multiselect
|
637
|
+
items={items}
|
638
|
+
value={valueMultiple}
|
639
|
+
onChange={setValueMultiple}
|
640
|
+
view="warning"
|
641
|
+
contentLeft={enableContentLeft ? <IconDone size="s" /> : undefined}
|
642
|
+
/>
|
643
|
+
</div>
|
644
|
+
</td>
|
645
|
+
</tr>
|
646
|
+
<tr>
|
647
|
+
<td>Negative</td>
|
648
|
+
<td>
|
649
|
+
<div style={{ width: '200px' }}>
|
650
|
+
<Select
|
651
|
+
{...args}
|
652
|
+
items={items}
|
653
|
+
value={value}
|
654
|
+
onChange={setValue}
|
655
|
+
view="negative"
|
656
|
+
target="button-like"
|
657
|
+
/>
|
658
|
+
</div>
|
659
|
+
</td>
|
660
|
+
<td>
|
661
|
+
<div style={{ width: '200px' }}>
|
662
|
+
<Select
|
663
|
+
{...args}
|
664
|
+
multiselect
|
665
|
+
items={items}
|
666
|
+
value={valueMultiple}
|
667
|
+
onChange={setValueMultiple}
|
668
|
+
view="negative"
|
669
|
+
target="button-like"
|
670
|
+
/>
|
671
|
+
</div>
|
672
|
+
</td>
|
673
|
+
<td>
|
674
|
+
<div style={{ width: '200px' }}>
|
675
|
+
<Select
|
676
|
+
{...args}
|
677
|
+
items={items}
|
678
|
+
value={value}
|
679
|
+
onChange={setValue}
|
680
|
+
view="negative"
|
681
|
+
contentLeft={enableContentLeft ? <IconDone size="s" /> : undefined}
|
682
|
+
/>
|
683
|
+
</div>
|
684
|
+
</td>
|
685
|
+
<td>
|
686
|
+
<div style={{ width: '200px' }}>
|
687
|
+
<Select
|
688
|
+
{...args}
|
689
|
+
multiselect
|
690
|
+
items={items}
|
691
|
+
value={valueMultiple}
|
692
|
+
onChange={setValueMultiple}
|
693
|
+
view="negative"
|
694
|
+
contentLeft={enableContentLeft ? <IconDone size="s" /> : undefined}
|
695
|
+
/>
|
696
|
+
</div>
|
697
|
+
</td>
|
698
|
+
</tr>
|
699
|
+
<tr>
|
700
|
+
<td>Dark</td>
|
701
|
+
<td>
|
702
|
+
<div style={{ width: '200px' }}>
|
703
|
+
<Select
|
704
|
+
{...args}
|
705
|
+
items={items}
|
706
|
+
value={value}
|
707
|
+
onChange={setValue}
|
708
|
+
view="dark"
|
709
|
+
target="button-like"
|
710
|
+
/>
|
711
|
+
</div>
|
712
|
+
</td>
|
713
|
+
<td>
|
714
|
+
<div style={{ width: '200px' }}>
|
715
|
+
<Select
|
716
|
+
{...args}
|
717
|
+
multiselect
|
718
|
+
items={items}
|
719
|
+
value={valueMultiple}
|
720
|
+
onChange={setValueMultiple}
|
721
|
+
view="dark"
|
722
|
+
target="button-like"
|
723
|
+
/>
|
724
|
+
</div>
|
725
|
+
</td>
|
726
|
+
<td />
|
727
|
+
<td />
|
728
|
+
</tr>
|
729
|
+
<tr>
|
730
|
+
<td>Black</td>
|
731
|
+
<td>
|
732
|
+
<div style={{ width: '200px' }}>
|
733
|
+
<Select
|
734
|
+
{...args}
|
735
|
+
items={items}
|
736
|
+
value={value}
|
737
|
+
onChange={setValue}
|
738
|
+
view="black"
|
739
|
+
target="button-like"
|
740
|
+
/>
|
741
|
+
</div>
|
742
|
+
</td>
|
743
|
+
<td>
|
744
|
+
<div style={{ width: '200px' }}>
|
745
|
+
<Select
|
746
|
+
{...args}
|
747
|
+
multiselect
|
748
|
+
items={items}
|
749
|
+
value={valueMultiple}
|
750
|
+
onChange={setValueMultiple}
|
751
|
+
view="black"
|
752
|
+
target="button-like"
|
753
|
+
/>
|
754
|
+
</div>
|
755
|
+
</td>
|
756
|
+
<td />
|
757
|
+
<td />
|
758
|
+
</tr>
|
759
|
+
<tr>
|
760
|
+
<td>White</td>
|
761
|
+
<td>
|
762
|
+
<div style={{ width: '200px' }}>
|
763
|
+
<Select
|
764
|
+
{...args}
|
765
|
+
items={items}
|
766
|
+
value={value}
|
767
|
+
onChange={setValue}
|
768
|
+
view="white"
|
769
|
+
target="button-like"
|
770
|
+
/>
|
771
|
+
</div>
|
772
|
+
</td>
|
773
|
+
<td>
|
774
|
+
<div style={{ width: '200px' }}>
|
775
|
+
<Select
|
776
|
+
{...args}
|
777
|
+
multiselect
|
778
|
+
items={items}
|
779
|
+
value={valueMultiple}
|
780
|
+
onChange={setValueMultiple}
|
781
|
+
view="white"
|
782
|
+
target="button-like"
|
783
|
+
/>
|
784
|
+
</div>
|
785
|
+
</td>
|
786
|
+
<td />
|
787
|
+
<td />
|
788
|
+
</tr>
|
789
|
+
</tbody>
|
790
|
+
</table>
|
791
|
+
</div>
|
271
792
|
);
|
272
793
|
};
|
273
794
|
|
274
|
-
export const
|
275
|
-
|
795
|
+
export const Common: StoryObj<StorySelectProps> = {
|
796
|
+
parameters: {
|
797
|
+
controls: {
|
798
|
+
include: [
|
799
|
+
'size',
|
800
|
+
'enableContentLeft',
|
801
|
+
'chipView',
|
802
|
+
'label',
|
803
|
+
'labelPlacement',
|
804
|
+
'placeholder',
|
805
|
+
'helperText',
|
806
|
+
'isTargetAmount',
|
807
|
+
'variant',
|
808
|
+
'disabled',
|
809
|
+
'separator',
|
810
|
+
],
|
811
|
+
},
|
812
|
+
},
|
813
|
+
argTypes: {
|
814
|
+
size: {
|
815
|
+
options: size,
|
816
|
+
control: {
|
817
|
+
type: 'select',
|
818
|
+
},
|
819
|
+
},
|
820
|
+
},
|
821
|
+
args: {
|
822
|
+
size: 'm',
|
823
|
+
},
|
824
|
+
render: (args) => <CommonStory {...args} />,
|
276
825
|
};
|