@salutejs/plasma-new-hope 0.190.0-canary.1550.11795356464.0 → 0.190.0-canary.1552.11794692529.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Autocomplete/Autocomplete.css +22 -21
- package/cjs/components/Cell/Cell.js +1 -3
- package/cjs/components/Cell/Cell.js.map +1 -1
- package/cjs/components/Cell/ui/CellTextbox/CellTextbox.js +1 -7
- package/cjs/components/Cell/ui/CellTextbox/CellTextbox.js.map +1 -1
- package/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +1 -4
- package/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js.map +1 -1
- package/cjs/components/Chip/Chip.js +1 -3
- package/cjs/components/Chip/Chip.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/Combobox.css +24 -21
- package/cjs/components/Combobox/ComboboxNew/Combobox.js +32 -6
- package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
- package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/FloatingPopover.js +4 -18
- package/cjs/components/Combobox/ComboboxNew/FloatingPopover.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/hooks/getPathMaps.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +50 -1
- package/cjs/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/ui/Form/Form.css +1 -0
- package/cjs/components/Combobox/ComboboxNew/ui/Form/Form.js +37 -0
- package/cjs/components/Combobox/ComboboxNew/ui/Form/Form.js.map +1 -0
- package/cjs/components/Combobox/ComboboxNew/ui/Form/Form.styles.js +15 -0
- package/cjs/components/Combobox/ComboboxNew/ui/Form/Form.styles.js.map +1 -0
- package/cjs/components/Combobox/ComboboxNew/ui/Form/Form.styles_22v2s5.css +1 -0
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +24 -21
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +24 -21
- package/cjs/components/DatePicker/RangeDate/RangeDate.css +22 -21
- package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +22 -21
- package/cjs/components/DatePicker/SingleDate/SingleDate.css +22 -21
- package/cjs/components/Dropdown/FloatingPopover.js.map +1 -1
- package/cjs/components/Pagination/Pagination.css +37 -86
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +37 -86
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_1fesyfv.css +3 -0
- package/cjs/components/Range/Range.css +22 -21
- package/cjs/components/Select/Select.css +34 -83
- package/cjs/components/Select/Select.js +139 -179
- package/cjs/components/Select/Select.js.map +1 -1
- package/cjs/components/Select/Select.styles.js +50 -17
- package/cjs/components/Select/Select.styles.js.map +1 -1
- package/cjs/components/Select/Select.styles_768h42.css +5 -0
- package/cjs/components/Select/Select.tokens.js +78 -122
- package/cjs/components/Select/Select.tokens.js.map +1 -1
- package/cjs/components/Select/hooks/useKeyboardNavigation.js +72 -19
- package/cjs/components/Select/hooks/useKeyboardNavigation.js.map +1 -1
- package/cjs/components/Select/hooks/usePathMaps.js +1 -4
- package/cjs/components/Select/hooks/usePathMaps.js.map +1 -1
- package/cjs/components/Select/reducers/focusedChipIndexReducer.js +39 -0
- package/cjs/components/Select/reducers/focusedChipIndexReducer.js.map +1 -0
- package/cjs/components/Select/ui/Inner/Inner.css +34 -83
- package/cjs/components/Select/ui/Inner/Inner.js +9 -9
- package/cjs/components/Select/ui/Inner/Inner.js.map +1 -1
- package/cjs/components/Select/ui/Inner/ui/Item/Item.css +34 -83
- package/cjs/components/Select/ui/Inner/ui/Item/Item.js +12 -20
- package/cjs/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
- package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +51 -34
- package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
- package/cjs/components/Select/ui/Inner/ui/Item/Item.styles_8oe5oy.css +9 -0
- package/cjs/components/Select/ui/Target/Target.css +17 -58
- package/cjs/components/Select/ui/Target/Target.js +16 -34
- package/cjs/components/Select/ui/Target/Target.js.map +1 -1
- package/cjs/components/Select/ui/Target/ui/Button/Button.css +5 -5
- package/cjs/components/Select/ui/Target/ui/Button/Button.js +14 -10
- package/cjs/components/Select/ui/Target/ui/Button/Button.js.map +1 -1
- package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +1 -1
- package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -1
- package/cjs/components/Select/ui/Target/ui/Button/Button.styles_lxxm4p.css +5 -0
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.css +38 -53
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +97 -84
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +103 -38
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles_1damf5p.css +12 -0
- package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.css +21 -0
- 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/Target/ui/Textfield/ui/Chip/Chip.styles.js +22 -0
- 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/getView.js +2 -2
- package/cjs/components/Select/utils/getView.js.map +1 -1
- package/cjs/components/Select/variations/_size/base.js +9 -0
- package/cjs/components/Select/variations/_size/base.js.map +1 -0
- package/cjs/components/Select/variations/_size/base_x642ct.css +1 -0
- package/cjs/components/Select/variations/_view/base.js +9 -0
- package/cjs/components/Select/variations/_view/base.js.map +1 -0
- package/cjs/components/Select/variations/_view/base_x642ct.css +1 -0
- package/cjs/components/Slider/Slider.css +22 -21
- package/cjs/components/Slider/components/Double/Double.css +22 -21
- package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +22 -21
- package/cjs/components/TextField/TextField.js +0 -7
- package/cjs/components/TextField/TextField.js.map +1 -1
- package/cjs/components/TextField/TextField.styles.js +22 -14
- package/cjs/components/TextField/TextField.styles.js.map +1 -1
- package/{es/components/TextField/TextField.styles_j7dqpn.css → cjs/components/TextField/TextField.styles_grgg7q.css} +7 -6
- package/cjs/components/TextField/ui/Hint/Hint.css +21 -20
- package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +1 -7
- package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +1 -1
- package/cjs/components/TextField/variations/_clear/base.js +1 -1
- package/cjs/components/TextField/variations/_clear/{base_1396md2.css → base_1i91sjp.css} +1 -1
- package/cjs/components/TextField/variations/_label-placement/base.js +1 -1
- package/cjs/components/TextField/variations/_label-placement/base_3domm.css +1 -0
- package/cjs/components/TextField/variations/_read-only/base.js +1 -1
- package/cjs/components/TextField/variations/_read-only/{base_1jvcf9a.css → base_17ypmu7.css} +1 -1
- package/cjs/components/TextField/variations/_size/base.js +1 -1
- package/cjs/components/TextField/variations/_size/{base_1tei47x.css → base_1xdmaqh.css} +1 -1
- package/cjs/components/TextField/variations/_view/base.js +1 -1
- package/cjs/components/TextField/variations/_view/{base_8ogww5.css → base_qhyte8.css} +1 -1
- package/cjs/index.css +63 -46
- package/cjs/index.js +0 -2
- package/cjs/index.js.map +1 -1
- package/cjs/utils/index.js.map +1 -1
- package/cjs/utils/syntheticEvent.js +55 -0
- package/cjs/utils/syntheticEvent.js.map +1 -0
- package/emotion/cjs/components/Cell/Cell.js +1 -3
- package/emotion/cjs/components/Cell/ui/CellTextbox/CellTextbox.js +1 -7
- package/emotion/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +1 -4
- package/emotion/cjs/components/Chip/Chip.js +1 -3
- package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +33 -7
- package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
- package/emotion/cjs/components/Combobox/ComboboxNew/FloatingPopover.js +5 -19
- package/emotion/cjs/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +50 -1
- package/emotion/cjs/components/Combobox/ComboboxNew/ui/Form/Form.js +38 -0
- package/emotion/cjs/components/Combobox/ComboboxNew/ui/Form/Form.styles.js +13 -0
- package/emotion/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +3 -3
- package/emotion/cjs/components/Select/Select.js +136 -177
- package/emotion/cjs/components/Select/Select.styles.js +31 -13
- package/emotion/cjs/components/Select/Select.tokens.js +60 -125
- package/emotion/cjs/components/Select/hooks/useKeyboardNavigation.js +73 -19
- package/emotion/cjs/components/Select/hooks/usePathMaps.js +1 -4
- package/emotion/cjs/components/Select/reducers/focusedChipIndexReducer.js +38 -0
- package/emotion/cjs/components/Select/reducers/index.js +11 -0
- package/emotion/cjs/components/Select/ui/Inner/Inner.js +9 -9
- package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.js +12 -19
- package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +50 -27
- package/emotion/cjs/components/Select/ui/Target/Target.js +18 -38
- package/emotion/cjs/components/Select/ui/Target/ui/Button/Button.js +16 -13
- package/emotion/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +6 -6
- package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +99 -88
- package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +74 -27
- package/emotion/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +37 -0
- 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/utils/getView.js +2 -2
- package/emotion/cjs/components/Select/utils/index.js +1 -22
- package/emotion/cjs/components/Select/variations/_size/base.js +8 -0
- package/emotion/cjs/components/Select/variations/_size/tokens.json +9 -0
- package/emotion/cjs/components/Select/variations/_view/base.js +8 -0
- package/emotion/cjs/components/Select/variations/_view/tokens.json +1 -0
- package/emotion/cjs/components/TextField/TextField.js +1 -8
- package/emotion/cjs/components/TextField/TextField.styles.js +40 -36
- package/emotion/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +1 -7
- package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +12 -12
- package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Select/Select.config.js +20 -28
- package/emotion/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +40 -47
- package/emotion/cjs/examples/plasma_web/components/Select/Select.config.js +20 -28
- package/emotion/cjs/examples/plasma_web/components/Select/Select.stories.tsx +40 -47
- package/emotion/cjs/index.js +0 -11
- package/emotion/cjs/utils/index.js +1 -9
- package/emotion/cjs/utils/syntheticEvent.js +53 -0
- package/emotion/es/components/Cell/Cell.js +1 -3
- package/emotion/es/components/Cell/ui/CellTextbox/CellTextbox.js +1 -7
- package/emotion/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +1 -4
- package/emotion/es/components/Chip/Chip.js +1 -3
- package/emotion/es/components/Combobox/ComboboxNew/Combobox.js +34 -7
- package/emotion/es/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
- package/emotion/es/components/Combobox/ComboboxNew/FloatingPopover.js +4 -18
- package/emotion/es/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +50 -1
- package/emotion/es/components/Combobox/ComboboxNew/ui/Form/Form.js +29 -0
- package/emotion/es/components/Combobox/ComboboxNew/ui/Form/Form.styles.js +6 -0
- package/emotion/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +3 -3
- package/emotion/es/components/Select/Select.js +141 -182
- package/emotion/es/components/Select/Select.styles.js +30 -12
- package/emotion/es/components/Select/Select.tokens.js +60 -125
- package/emotion/es/components/Select/hooks/useKeyboardNavigation.js +72 -18
- package/emotion/es/components/Select/hooks/usePathMaps.js +1 -4
- package/emotion/es/components/Select/reducers/focusedChipIndexReducer.js +32 -0
- package/emotion/es/components/Select/reducers/index.js +2 -1
- package/emotion/es/components/Select/ui/Inner/Inner.js +10 -10
- package/emotion/es/components/Select/ui/Inner/ui/Item/Item.js +15 -22
- package/emotion/es/components/Select/ui/Inner/ui/Item/Item.styles.js +49 -26
- package/emotion/es/components/Select/ui/Target/Target.js +17 -35
- package/emotion/es/components/Select/ui/Target/ui/Button/Button.js +16 -11
- package/emotion/es/components/Select/ui/Target/ui/Button/Button.styles.js +6 -6
- package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.js +99 -86
- package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +74 -27
- 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/utils/getView.js +2 -2
- package/emotion/es/components/Select/utils/index.js +1 -4
- package/emotion/es/components/Select/variations/_size/base.js +2 -0
- package/emotion/es/components/Select/variations/_size/tokens.json +9 -0
- package/emotion/es/components/Select/variations/_view/base.js +2 -0
- package/emotion/es/components/Select/variations/_view/tokens.json +1 -0
- package/emotion/es/components/TextField/TextField.js +1 -8
- package/emotion/es/components/TextField/TextField.styles.js +40 -36
- package/emotion/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +1 -7
- package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +12 -12
- package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Select/Select.config.js +21 -29
- package/emotion/es/examples/plasma_b2c/components/Select/Select.stories.tsx +40 -47
- package/emotion/es/examples/plasma_web/components/Select/Select.config.js +21 -29
- package/emotion/es/examples/plasma_web/components/Select/Select.stories.tsx +40 -47
- package/emotion/es/index.js +0 -1
- package/emotion/es/utils/index.js +1 -2
- package/emotion/es/utils/syntheticEvent.js +47 -0
- package/es/components/Autocomplete/Autocomplete.css +22 -21
- package/es/components/Cell/Cell.js +1 -3
- package/es/components/Cell/Cell.js.map +1 -1
- package/es/components/Cell/ui/CellTextbox/CellTextbox.js +1 -7
- package/es/components/Cell/ui/CellTextbox/CellTextbox.js.map +1 -1
- package/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +1 -4
- package/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js.map +1 -1
- package/es/components/Chip/Chip.js +1 -3
- package/es/components/Chip/Chip.js.map +1 -1
- package/es/components/Combobox/ComboboxNew/Combobox.css +24 -21
- package/es/components/Combobox/ComboboxNew/Combobox.js +34 -8
- package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
- package/es/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
- package/es/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
- package/es/components/Combobox/ComboboxNew/FloatingPopover.js +4 -18
- package/es/components/Combobox/ComboboxNew/FloatingPopover.js.map +1 -1
- package/es/components/Combobox/ComboboxNew/hooks/getPathMaps.js.map +1 -1
- package/es/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +50 -1
- package/es/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js.map +1 -1
- package/es/components/Combobox/ComboboxNew/ui/Form/Form.css +1 -0
- package/es/components/Combobox/ComboboxNew/ui/Form/Form.js +33 -0
- package/es/components/Combobox/ComboboxNew/ui/Form/Form.js.map +1 -0
- package/es/components/Combobox/ComboboxNew/ui/Form/Form.styles.js +11 -0
- package/es/components/Combobox/ComboboxNew/ui/Form/Form.styles.js.map +1 -0
- package/es/components/Combobox/ComboboxNew/ui/Form/Form.styles_22v2s5.css +1 -0
- package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +24 -21
- package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +24 -21
- package/es/components/DatePicker/RangeDate/RangeDate.css +22 -21
- package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +22 -21
- package/es/components/DatePicker/SingleDate/SingleDate.css +22 -21
- package/es/components/Dropdown/FloatingPopover.js.map +1 -1
- package/es/components/Pagination/Pagination.css +37 -86
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +37 -86
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_1fesyfv.css +3 -0
- package/es/components/Range/Range.css +22 -21
- package/es/components/Select/Select.css +34 -83
- package/es/components/Select/Select.js +142 -182
- package/es/components/Select/Select.js.map +1 -1
- package/es/components/Select/Select.styles.js +48 -18
- package/es/components/Select/Select.styles.js.map +1 -1
- package/es/components/Select/Select.styles_768h42.css +5 -0
- package/es/components/Select/Select.tokens.js +78 -123
- package/es/components/Select/Select.tokens.js.map +1 -1
- package/es/components/Select/hooks/useKeyboardNavigation.js +73 -19
- package/es/components/Select/hooks/useKeyboardNavigation.js.map +1 -1
- package/es/components/Select/hooks/usePathMaps.js +1 -4
- package/es/components/Select/hooks/usePathMaps.js.map +1 -1
- package/es/components/Select/reducers/focusedChipIndexReducer.js +35 -0
- package/es/components/Select/reducers/focusedChipIndexReducer.js.map +1 -0
- package/es/components/Select/ui/Inner/Inner.css +34 -83
- package/es/components/Select/ui/Inner/Inner.js +10 -10
- package/es/components/Select/ui/Inner/Inner.js.map +1 -1
- package/es/components/Select/ui/Inner/ui/Item/Item.css +34 -83
- package/es/components/Select/ui/Inner/ui/Item/Item.js +14 -22
- package/es/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
- package/es/components/Select/ui/Inner/ui/Item/Item.styles.js +50 -33
- package/es/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
- package/es/components/Select/ui/Inner/ui/Item/Item.styles_8oe5oy.css +9 -0
- package/es/components/Select/ui/Target/Target.css +17 -58
- package/es/components/Select/ui/Target/Target.js +17 -35
- package/es/components/Select/ui/Target/Target.js.map +1 -1
- package/es/components/Select/ui/Target/ui/Button/Button.css +5 -5
- package/es/components/Select/ui/Target/ui/Button/Button.js +15 -11
- package/es/components/Select/ui/Target/ui/Button/Button.js.map +1 -1
- package/es/components/Select/ui/Target/ui/Button/Button.styles.js +1 -1
- package/es/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -1
- package/es/components/Select/ui/Target/ui/Button/Button.styles_lxxm4p.css +5 -0
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.css +38 -53
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +99 -86
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +95 -39
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles_1damf5p.css +12 -0
- package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.css +21 -0
- 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 +18 -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/getView.js +2 -2
- package/es/components/Select/utils/getView.js.map +1 -1
- package/es/components/Select/variations/_size/base.js +5 -0
- package/es/components/Select/variations/_size/base.js.map +1 -0
- package/es/components/Select/variations/_size/base_x642ct.css +1 -0
- package/es/components/Select/variations/_view/base.js +5 -0
- package/es/components/Select/variations/_view/base.js.map +1 -0
- package/es/components/Select/variations/_view/base_x642ct.css +1 -0
- package/es/components/Slider/Slider.css +22 -21
- package/es/components/Slider/components/Double/Double.css +22 -21
- package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +22 -21
- package/es/components/TextField/TextField.js +0 -7
- package/es/components/TextField/TextField.js.map +1 -1
- package/es/components/TextField/TextField.styles.js +22 -14
- package/es/components/TextField/TextField.styles.js.map +1 -1
- package/{cjs/components/TextField/TextField.styles_j7dqpn.css → es/components/TextField/TextField.styles_grgg7q.css} +7 -6
- package/es/components/TextField/ui/Hint/Hint.css +21 -20
- package/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +1 -7
- package/es/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +1 -1
- package/es/components/TextField/variations/_clear/base.js +1 -1
- package/es/components/TextField/variations/_clear/{base_1396md2.css → base_1i91sjp.css} +1 -1
- package/es/components/TextField/variations/_label-placement/base.js +1 -1
- package/es/components/TextField/variations/_label-placement/base_3domm.css +1 -0
- package/es/components/TextField/variations/_read-only/base.js +1 -1
- package/es/components/TextField/variations/_read-only/{base_1jvcf9a.css → base_17ypmu7.css} +1 -1
- package/es/components/TextField/variations/_size/base.js +1 -1
- package/es/components/TextField/variations/_size/{base_1tei47x.css → base_1xdmaqh.css} +1 -1
- package/es/components/TextField/variations/_view/base.js +1 -1
- package/es/components/TextField/variations/_view/{base_8ogww5.css → base_qhyte8.css} +1 -1
- package/es/index.css +63 -46
- package/es/index.js +0 -1
- package/es/index.js.map +1 -1
- package/es/utils/index.js.map +1 -1
- package/es/utils/syntheticEvent.js +50 -0
- package/es/utils/syntheticEvent.js.map +1 -0
- package/package.json +2 -2
- package/styled-components/cjs/components/Cell/Cell.js +1 -3
- package/styled-components/cjs/components/Cell/ui/CellTextbox/CellTextbox.js +1 -7
- package/styled-components/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +1 -4
- package/styled-components/cjs/components/Chip/Chip.js +1 -3
- package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +33 -7
- package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
- package/styled-components/cjs/components/Combobox/ComboboxNew/FloatingPopover.js +5 -19
- package/styled-components/cjs/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +50 -1
- package/styled-components/cjs/components/Combobox/ComboboxNew/ui/Form/Form.js +38 -0
- package/styled-components/cjs/components/Combobox/ComboboxNew/ui/Form/Form.styles.js +12 -0
- package/styled-components/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
- package/styled-components/cjs/components/Select/Select.js +136 -177
- package/styled-components/cjs/components/Select/Select.styles.js +27 -12
- package/styled-components/cjs/components/Select/Select.tokens.js +60 -125
- package/styled-components/cjs/components/Select/hooks/useKeyboardNavigation.js +73 -19
- package/styled-components/cjs/components/Select/hooks/usePathMaps.js +1 -4
- package/styled-components/cjs/components/Select/reducers/focusedChipIndexReducer.js +38 -0
- package/styled-components/cjs/components/Select/reducers/index.js +11 -0
- package/styled-components/cjs/components/Select/ui/Inner/Inner.js +9 -9
- package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.js +12 -19
- package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +26 -20
- package/styled-components/cjs/components/Select/ui/Target/Target.js +18 -38
- package/styled-components/cjs/components/Select/ui/Target/ui/Button/Button.js +16 -13
- package/styled-components/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +3 -3
- package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +99 -88
- package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +61 -23
- package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +37 -0
- 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/utils/getView.js +2 -2
- package/styled-components/cjs/components/Select/utils/index.js +1 -22
- package/styled-components/cjs/components/Select/variations/_size/base.js +8 -0
- package/styled-components/cjs/components/Select/variations/_size/tokens.json +9 -0
- package/styled-components/cjs/components/Select/variations/_view/base.js +8 -0
- package/styled-components/cjs/components/Select/variations/_view/tokens.json +1 -0
- package/styled-components/cjs/components/TextField/TextField.js +0 -7
- package/styled-components/cjs/components/TextField/TextField.styles.js +15 -12
- package/styled-components/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +1 -7
- package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.config.js +20 -28
- package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +40 -47
- package/styled-components/cjs/examples/plasma_web/components/Select/Select.config.js +20 -28
- package/styled-components/cjs/examples/plasma_web/components/Select/Select.stories.tsx +40 -47
- package/styled-components/cjs/index.js +0 -11
- package/styled-components/cjs/utils/index.js +1 -9
- package/styled-components/cjs/utils/syntheticEvent.js +53 -0
- package/styled-components/es/components/Cell/Cell.js +1 -3
- package/styled-components/es/components/Cell/ui/CellTextbox/CellTextbox.js +1 -7
- package/styled-components/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +1 -4
- package/styled-components/es/components/Chip/Chip.js +1 -3
- package/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +34 -7
- package/styled-components/es/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
- package/styled-components/es/components/Combobox/ComboboxNew/FloatingPopover.js +4 -18
- package/styled-components/es/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +50 -1
- package/styled-components/es/components/Combobox/ComboboxNew/ui/Form/Form.js +29 -0
- package/styled-components/es/components/Combobox/ComboboxNew/ui/Form/Form.styles.js +5 -0
- package/styled-components/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
- package/styled-components/es/components/Select/Select.js +141 -182
- package/styled-components/es/components/Select/Select.styles.js +26 -11
- package/styled-components/es/components/Select/Select.tokens.js +60 -125
- package/styled-components/es/components/Select/hooks/useKeyboardNavigation.js +72 -18
- package/styled-components/es/components/Select/hooks/usePathMaps.js +1 -4
- package/styled-components/es/components/Select/reducers/focusedChipIndexReducer.js +32 -0
- package/styled-components/es/components/Select/reducers/index.js +2 -1
- package/styled-components/es/components/Select/ui/Inner/Inner.js +10 -10
- package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.js +15 -22
- package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.styles.js +25 -19
- package/styled-components/es/components/Select/ui/Target/Target.js +17 -35
- package/styled-components/es/components/Select/ui/Target/ui/Button/Button.js +16 -11
- package/styled-components/es/components/Select/ui/Target/ui/Button/Button.styles.js +3 -3
- package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.js +99 -86
- package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +61 -23
- 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/utils/getView.js +2 -2
- package/styled-components/es/components/Select/utils/index.js +1 -4
- package/styled-components/es/components/Select/variations/_size/base.js +2 -0
- package/styled-components/es/components/Select/variations/_size/tokens.json +9 -0
- package/styled-components/es/components/Select/variations/_view/base.js +2 -0
- package/styled-components/es/components/Select/variations/_view/tokens.json +1 -0
- package/styled-components/es/components/TextField/TextField.js +0 -7
- package/styled-components/es/components/TextField/TextField.styles.js +15 -12
- package/styled-components/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +1 -7
- package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Select/Select.config.js +21 -29
- package/styled-components/es/examples/plasma_b2c/components/Select/Select.stories.tsx +40 -47
- package/styled-components/es/examples/plasma_web/components/Select/Select.config.js +21 -29
- package/styled-components/es/examples/plasma_web/components/Select/Select.stories.tsx +40 -47
- package/styled-components/es/index.js +0 -1
- package/styled-components/es/utils/index.js +1 -2
- package/styled-components/es/utils/syntheticEvent.js +47 -0
- package/types/components/Attach/ui/Button/Button.styles.d.ts +2 -2
- package/types/components/Attach/ui/IconButton/IconButton.styles.d.ts +4 -4
- package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts +16 -16
- package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
- package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts +2 -2
- package/types/components/Cell/Cell.d.ts.map +1 -1
- package/types/components/Cell/ui/CellTextbox/CellTextbox.d.ts.map +1 -1
- package/types/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.d.ts.map +1 -1
- package/types/components/Chip/Chip.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/Combobox.d.ts +2 -2
- package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts +1 -0
- package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +25 -3
- package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/FloatingPopover.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.d.ts +3 -1
- package/types/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/ui/Form/Form.d.ts +6 -0
- package/types/components/Combobox/ComboboxNew/ui/Form/Form.d.ts.map +1 -0
- package/types/components/Combobox/ComboboxNew/ui/Form/Form.styles.d.ts +3 -0
- package/types/components/Combobox/ComboboxNew/ui/Form/Form.styles.d.ts.map +1 -0
- package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts +16 -16
- package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts.map +1 -1
- package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts +16 -16
- package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
- package/types/components/EmptyState/EmptyState.styles.d.ts +2 -2
- package/types/components/Notification/Notification.styles.d.ts +2 -2
- package/types/components/NumberInput/ui/ActionButton/ActionButton.styles.d.ts +2 -2
- package/types/components/Pagination/Pagination.styles.d.ts +4 -4
- package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts +40 -40
- package/types/components/Panel/ui/PanelHeader/PanelHeader.styles.d.ts +2 -2
- package/types/components/Range/Range.styles.d.ts +16 -16
- package/types/components/Range/Range.styles.d.ts.map +1 -1
- package/types/components/Select/Select.d.ts +11 -5
- package/types/components/Select/Select.d.ts.map +1 -1
- package/types/components/Select/Select.styles.d.ts +9 -0
- package/types/components/Select/Select.styles.d.ts.map +1 -1
- package/types/components/Select/Select.tokens.d.ts +58 -121
- package/types/components/Select/Select.tokens.d.ts.map +1 -1
- package/types/components/Select/Select.types.d.ts +20 -41
- package/types/components/Select/Select.types.d.ts.map +1 -1
- package/types/components/Select/hooks/useKeyboardNavigation.d.ts +11 -5
- package/types/components/Select/hooks/useKeyboardNavigation.d.ts.map +1 -1
- package/types/components/Select/hooks/usePathMaps.d.ts +1 -2
- package/types/components/Select/hooks/usePathMaps.d.ts.map +1 -1
- package/types/components/Select/index.d.ts +1 -1
- 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/index.d.ts +1 -0
- package/types/components/Select/reducers/index.d.ts.map +1 -1
- package/types/components/Select/ui/Inner/Inner.d.ts.map +1 -1
- package/types/components/Select/ui/Inner/ui/Item/Item.d.ts.map +1 -1
- package/types/components/Select/ui/Inner/ui/Item/Item.styles.d.ts +2 -32
- package/types/components/Select/ui/Inner/ui/Item/Item.styles.d.ts.map +1 -1
- package/types/components/Select/ui/Inner/ui/Item/Item.types.d.ts +0 -9
- package/types/components/Select/ui/Inner/ui/Item/Item.types.d.ts.map +1 -1
- package/types/components/Select/ui/Target/Target.d.ts +2 -14
- package/types/components/Select/ui/Target/Target.d.ts.map +1 -1
- package/types/components/Select/ui/Target/Target.types.d.ts +9 -10
- package/types/components/Select/ui/Target/Target.types.d.ts.map +1 -1
- package/types/components/Select/ui/Target/ui/Button/Button.d.ts +1 -1
- package/types/components/Select/ui/Target/ui/Button/Button.d.ts.map +1 -1
- package/types/components/Select/ui/Target/ui/Button/Button.styles.d.ts +2 -2
- package/types/components/Select/ui/Target/ui/Button/Button.types.d.ts +1 -1
- package/types/components/Select/ui/Target/ui/Button/Button.types.d.ts.map +1 -1
- package/types/components/Select/ui/Target/ui/Textfield/Textfield.d.ts +1 -1
- package/types/components/Select/ui/Target/ui/Textfield/Textfield.d.ts.map +1 -1
- package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts +60 -628
- package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts.map +1 -1
- package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts +4 -1
- package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts.map +1 -1
- 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/utils/getView.d.ts +1 -1
- package/types/components/Select/utils/getView.d.ts.map +1 -1
- package/types/components/Select/utils/index.d.ts +0 -3
- package/types/components/Select/utils/index.d.ts.map +1 -1
- package/types/components/Select/variations/_size/base.d.ts +2 -0
- package/types/components/Select/variations/_size/base.d.ts.map +1 -0
- package/types/components/Select/variations/_view/base.d.ts +2 -0
- package/types/components/Select/variations/_view/base.d.ts.map +1 -0
- package/types/components/Slider/components/Double/Double.styles.d.ts +16 -16
- package/types/components/Slider/components/Double/Double.styles.d.ts.map +1 -1
- package/types/components/TextField/TextField.d.ts.map +1 -1
- package/types/components/TextField/TextField.styles.d.ts +3 -1
- package/types/components/TextField/TextField.styles.d.ts.map +1 -1
- package/types/components/TextField/ui/TextFieldChip/TextFieldChip.d.ts +1 -3
- package/types/components/TextField/ui/TextFieldChip/TextFieldChip.d.ts.map +1 -1
- package/types/components/Toast/Toast.styles.d.ts +2 -2
- package/types/components/Toast/utils.d.ts +2 -2
- package/types/examples/plasma_b2c/components/Attach/Attach.d.ts +8 -8
- package/types/examples/plasma_b2c/components/Button/Button.d.ts +2 -2
- package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts +1100 -140
- package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/IconButton/IconButton.d.ts +2 -2
- package/types/examples/plasma_b2c/components/Mask/Mask.d.ts +16 -16
- package/types/examples/plasma_b2c/components/Mask/Mask.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Radiobox/Radiobox.d.ts +1 -1
- package/types/examples/plasma_b2c/components/Radiobox/Radiobox.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Select/Select.config.d.ts +7 -15
- package/types/examples/plasma_b2c/components/Select/Select.config.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Select/Select.d.ts +46 -53
- package/types/examples/plasma_b2c/components/Select/Select.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/TextArea/TextArea.d.ts +16 -16
- package/types/examples/plasma_b2c/components/TextField/TextField.d.ts +16 -16
- package/types/examples/plasma_b2c/components/TextField/TextField.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Attach/Attach.d.ts +8 -8
- package/types/examples/plasma_web/components/Button/Button.d.ts +2 -2
- package/types/examples/plasma_web/components/Combobox/Combobox.d.ts +1100 -140
- package/types/examples/plasma_web/components/Combobox/Combobox.d.ts.map +1 -1
- package/types/examples/plasma_web/components/IconButton/IconButton.d.ts +2 -2
- package/types/examples/plasma_web/components/Mask/Mask.d.ts +16 -16
- package/types/examples/plasma_web/components/Mask/Mask.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Radiobox/Radiobox.d.ts +1 -1
- package/types/examples/plasma_web/components/Radiobox/Radiobox.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Select/Select.config.d.ts +7 -15
- package/types/examples/plasma_web/components/Select/Select.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Select/Select.d.ts +46 -53
- package/types/examples/plasma_web/components/Select/Select.d.ts.map +1 -1
- package/types/examples/plasma_web/components/TextArea/TextArea.d.ts +16 -16
- package/types/examples/plasma_web/components/TextField/TextField.d.ts +16 -16
- package/types/examples/plasma_web/components/TextField/TextField.d.ts.map +1 -1
- package/types/index.d.ts +0 -1
- package/types/index.d.ts.map +1 -1
- package/types/types/index.d.ts +0 -2
- package/types/types/index.d.ts.map +1 -1
- package/types/utils/index.d.ts +0 -1
- package/types/utils/index.d.ts.map +1 -1
- package/types/utils/syntheticEvent.d.ts +4 -0
- package/types/utils/syntheticEvent.d.ts.map +1 -0
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_10zfeps.css +0 -3
- package/cjs/components/Select/FloatingPopover.js +0 -87
- package/cjs/components/Select/FloatingPopover.js.map +0 -1
- package/cjs/components/Select/Select.styles_1p5c9p3.css +0 -2
- package/cjs/components/Select/ui/Inner/ui/Item/Item.styles_1x4bzlm.css +0 -9
- package/cjs/components/Select/ui/Target/ui/Button/Button.styles_10g64me.css +0 -5
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles_lu1i4v.css +0 -3
- package/cjs/components/Select/utils/getFallbackPlacements.js +0 -15
- package/cjs/components/Select/utils/getFallbackPlacements.js.map +0 -1
- package/cjs/components/Select/utils/getItemId.js +0 -10
- package/cjs/components/Select/utils/getItemId.js.map +0 -1
- package/cjs/components/Select/utils/getPlacement.js +0 -13
- package/cjs/components/Select/utils/getPlacement.js.map +0 -1
- package/cjs/components/TextField/variations/_label-placement/base_gttvto.css +0 -1
- package/cjs/utils/fixedForwardRef.js +0 -12
- package/cjs/utils/fixedForwardRef.js.map +0 -1
- package/emotion/cjs/components/Select/FloatingPopover.js +0 -91
- package/emotion/cjs/components/Select/utils/getFallbackPlacements.js +0 -14
- package/emotion/cjs/components/Select/utils/getItemId.js +0 -9
- package/emotion/cjs/components/Select/utils/getPlacement.js +0 -12
- package/emotion/cjs/types/DistributiveOmit.js +0 -5
- package/emotion/cjs/types/DistributivePick.js +0 -5
- package/emotion/cjs/utils/fixedForwardRef.js +0 -11
- package/emotion/es/components/Select/FloatingPopover.js +0 -84
- package/emotion/es/components/Select/utils/getFallbackPlacements.js +0 -8
- package/emotion/es/components/Select/utils/getItemId.js +0 -3
- package/emotion/es/components/Select/utils/getPlacement.js +0 -6
- package/emotion/es/types/DistributiveOmit.js +0 -1
- package/emotion/es/types/DistributivePick.js +0 -1
- package/emotion/es/utils/fixedForwardRef.js +0 -4
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_10zfeps.css +0 -3
- package/es/components/Select/FloatingPopover.js +0 -83
- package/es/components/Select/FloatingPopover.js.map +0 -1
- package/es/components/Select/Select.styles_1p5c9p3.css +0 -2
- package/es/components/Select/ui/Inner/ui/Item/Item.styles_1x4bzlm.css +0 -9
- package/es/components/Select/ui/Target/ui/Button/Button.styles_10g64me.css +0 -5
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles_lu1i4v.css +0 -3
- package/es/components/Select/utils/getFallbackPlacements.js +0 -11
- package/es/components/Select/utils/getFallbackPlacements.js.map +0 -1
- package/es/components/Select/utils/getItemId.js +0 -6
- package/es/components/Select/utils/getItemId.js.map +0 -1
- package/es/components/Select/utils/getPlacement.js +0 -9
- package/es/components/Select/utils/getPlacement.js.map +0 -1
- package/es/components/TextField/variations/_label-placement/base_gttvto.css +0 -1
- package/es/utils/fixedForwardRef.js +0 -8
- package/es/utils/fixedForwardRef.js.map +0 -1
- package/styled-components/cjs/components/Select/FloatingPopover.js +0 -91
- package/styled-components/cjs/components/Select/utils/getFallbackPlacements.js +0 -14
- package/styled-components/cjs/components/Select/utils/getItemId.js +0 -9
- package/styled-components/cjs/components/Select/utils/getPlacement.js +0 -12
- package/styled-components/cjs/types/DistributiveOmit.js +0 -5
- package/styled-components/cjs/types/DistributivePick.js +0 -5
- package/styled-components/cjs/utils/fixedForwardRef.js +0 -11
- package/styled-components/es/components/Select/FloatingPopover.js +0 -84
- package/styled-components/es/components/Select/utils/getFallbackPlacements.js +0 -8
- package/styled-components/es/components/Select/utils/getItemId.js +0 -3
- package/styled-components/es/components/Select/utils/getPlacement.js +0 -6
- package/styled-components/es/types/DistributiveOmit.js +0 -1
- package/styled-components/es/types/DistributivePick.js +0 -1
- package/styled-components/es/utils/fixedForwardRef.js +0 -4
- package/types/components/Select/FloatingPopover.d.ts +0 -5
- package/types/components/Select/FloatingPopover.d.ts.map +0 -1
- package/types/components/Select/utils/getFallbackPlacements.d.ts +0 -4
- package/types/components/Select/utils/getFallbackPlacements.d.ts.map +0 -1
- package/types/components/Select/utils/getItemId.d.ts +0 -2
- package/types/components/Select/utils/getItemId.d.ts.map +0 -1
- package/types/components/Select/utils/getPlacement.d.ts +0 -4
- package/types/components/Select/utils/getPlacement.d.ts.map +0 -1
- package/types/types/DistributiveOmit.d.ts +0 -2
- package/types/types/DistributiveOmit.d.ts.map +0 -1
- package/types/types/DistributivePick.d.ts +0 -2
- package/types/types/DistributivePick.d.ts.map +0 -1
- package/types/utils/fixedForwardRef.d.ts +0 -3
- package/types/utils/fixedForwardRef.d.ts.map +0 -1
@@ -25,58 +25,54 @@ const meta: Meta<StorySelectProps> = {
|
|
25
25
|
component: Select,
|
26
26
|
argTypes: {
|
27
27
|
target: {
|
28
|
-
control: 'select',
|
29
28
|
options: ['button-like', 'textfield-like'],
|
29
|
+
control: {
|
30
|
+
type: 'select',
|
31
|
+
},
|
30
32
|
},
|
31
33
|
size: {
|
32
|
-
control: 'select',
|
33
34
|
options: size,
|
35
|
+
control: {
|
36
|
+
type: 'select',
|
37
|
+
},
|
34
38
|
},
|
35
39
|
view: {
|
36
|
-
control: 'select',
|
37
40
|
options: view,
|
41
|
+
control: {
|
42
|
+
type: 'select',
|
43
|
+
},
|
38
44
|
},
|
39
45
|
labelPlacement: {
|
40
|
-
control: 'select',
|
41
46
|
options: labelPlacement,
|
42
|
-
|
43
|
-
|
44
|
-
eq: 'textfield-like',
|
47
|
+
control: {
|
48
|
+
type: 'select',
|
45
49
|
},
|
46
50
|
},
|
47
51
|
chipView: {
|
48
|
-
control: 'select',
|
49
52
|
options: chip,
|
50
|
-
|
51
|
-
|
52
|
-
eq: 'textfield-like',
|
53
|
+
control: {
|
54
|
+
type: 'select',
|
53
55
|
},
|
54
56
|
},
|
55
57
|
variant: {
|
56
|
-
control: 'select',
|
57
58
|
options: variant,
|
59
|
+
control: {
|
60
|
+
type: 'select',
|
61
|
+
},
|
58
62
|
},
|
59
63
|
listWidth: {
|
60
|
-
control:
|
64
|
+
control: {
|
65
|
+
type: 'text',
|
66
|
+
},
|
61
67
|
},
|
62
68
|
listOverflow: {
|
63
|
-
control:
|
64
|
-
|
65
|
-
listHeight: {
|
66
|
-
control: 'text',
|
67
|
-
},
|
68
|
-
helperText: {
|
69
|
-
control: 'text',
|
70
|
-
if: {
|
71
|
-
arg: 'target',
|
72
|
-
eq: 'textfield-like',
|
69
|
+
control: {
|
70
|
+
type: 'text',
|
73
71
|
},
|
74
72
|
},
|
75
|
-
|
76
|
-
control:
|
77
|
-
|
78
|
-
arg: 'target',
|
79
|
-
eq: 'textfield-like',
|
73
|
+
listHeight: {
|
74
|
+
control: {
|
75
|
+
type: 'text',
|
80
76
|
},
|
81
77
|
},
|
82
78
|
},
|
@@ -88,7 +84,7 @@ const meta: Meta<StorySelectProps> = {
|
|
88
84
|
helperText: 'Helper text',
|
89
85
|
size: 'm',
|
90
86
|
view: 'default',
|
91
|
-
chipView: '
|
87
|
+
chipView: 'default',
|
92
88
|
enableContentLeft: false,
|
93
89
|
isTargetAmount: false,
|
94
90
|
variant: 'normal',
|
@@ -342,18 +338,13 @@ const SingleStory = (args: StorySelectProps) => {
|
|
342
338
|
items={items}
|
343
339
|
value={value}
|
344
340
|
onChange={setValue}
|
345
|
-
contentLeft={args.enableContentLeft ? <IconDone size="s"
|
341
|
+
contentLeft={args.enableContentLeft ? <IconDone size="s" /> : undefined}
|
346
342
|
/>
|
347
343
|
</div>
|
348
344
|
);
|
349
345
|
};
|
350
346
|
|
351
347
|
export const Single: StoryObj<StorySelectProps> = {
|
352
|
-
parameters: {
|
353
|
-
controls: {
|
354
|
-
exclude: ['chipView', 'isTargetAmount'],
|
355
|
-
},
|
356
|
-
},
|
357
348
|
render: (args) => <SingleStory {...args} />,
|
358
349
|
args: {
|
359
350
|
closeAfterSelect: true,
|
@@ -370,7 +361,7 @@ const MultiselectStory = (args: StorySelectProps) => {
|
|
370
361
|
items={items}
|
371
362
|
value={value}
|
372
363
|
onChange={setValue}
|
373
|
-
contentLeft={args.enableContentLeft ? <IconDone size="s"
|
364
|
+
contentLeft={args.enableContentLeft ? <IconDone size="s" /> : undefined}
|
374
365
|
/>
|
375
366
|
</div>
|
376
367
|
);
|
@@ -395,7 +386,7 @@ const PredefinedStory = (args: StorySelectProps) => {
|
|
395
386
|
items={items}
|
396
387
|
value={valueSingle}
|
397
388
|
onChange={setValueSingle}
|
398
|
-
contentLeft={args.enableContentLeft ? <IconDone size="s"
|
389
|
+
contentLeft={args.enableContentLeft ? <IconDone size="s" /> : undefined}
|
399
390
|
/>
|
400
391
|
|
401
392
|
<br />
|
@@ -406,7 +397,7 @@ const PredefinedStory = (args: StorySelectProps) => {
|
|
406
397
|
multiselect
|
407
398
|
value={valueMultiple}
|
408
399
|
onChange={setValueMultiple}
|
409
|
-
contentLeft={args.enableContentLeft ? <IconDone size="s"
|
400
|
+
contentLeft={args.enableContentLeft ? <IconDone size="s" /> : undefined}
|
410
401
|
/>
|
411
402
|
</div>
|
412
403
|
);
|
@@ -471,7 +462,7 @@ const CommonStory = (args: StorySelectProps) => {
|
|
471
462
|
value={value}
|
472
463
|
onChange={setValue}
|
473
464
|
view="default"
|
474
|
-
contentLeft={enableContentLeft ? <IconDone size="s"
|
465
|
+
contentLeft={enableContentLeft ? <IconDone size="s" /> : undefined}
|
475
466
|
/>
|
476
467
|
</div>
|
477
468
|
</td>
|
@@ -484,7 +475,7 @@ const CommonStory = (args: StorySelectProps) => {
|
|
484
475
|
value={valueMultiple}
|
485
476
|
onChange={setValueMultiple}
|
486
477
|
view="default"
|
487
|
-
contentLeft={enableContentLeft ? <IconDone size="s"
|
478
|
+
contentLeft={enableContentLeft ? <IconDone size="s" /> : undefined}
|
488
479
|
/>
|
489
480
|
</div>
|
490
481
|
</td>
|
@@ -615,7 +606,7 @@ const CommonStory = (args: StorySelectProps) => {
|
|
615
606
|
value={value}
|
616
607
|
onChange={setValue}
|
617
608
|
view="positive"
|
618
|
-
contentLeft={enableContentLeft ? <IconDone size="s"
|
609
|
+
contentLeft={enableContentLeft ? <IconDone size="s" /> : undefined}
|
619
610
|
/>
|
620
611
|
</div>
|
621
612
|
</td>
|
@@ -628,7 +619,7 @@ const CommonStory = (args: StorySelectProps) => {
|
|
628
619
|
value={valueMultiple}
|
629
620
|
onChange={setValueMultiple}
|
630
621
|
view="positive"
|
631
|
-
contentLeft={enableContentLeft ? <IconDone size="s"
|
622
|
+
contentLeft={enableContentLeft ? <IconDone size="s" /> : undefined}
|
632
623
|
/>
|
633
624
|
</div>
|
634
625
|
</td>
|
@@ -668,7 +659,7 @@ const CommonStory = (args: StorySelectProps) => {
|
|
668
659
|
value={value}
|
669
660
|
onChange={setValue}
|
670
661
|
view="warning"
|
671
|
-
contentLeft={enableContentLeft ? <IconDone size="s"
|
662
|
+
contentLeft={enableContentLeft ? <IconDone size="s" /> : undefined}
|
672
663
|
/>
|
673
664
|
</div>
|
674
665
|
</td>
|
@@ -681,7 +672,7 @@ const CommonStory = (args: StorySelectProps) => {
|
|
681
672
|
value={valueMultiple}
|
682
673
|
onChange={setValueMultiple}
|
683
674
|
view="warning"
|
684
|
-
contentLeft={enableContentLeft ? <IconDone size="s"
|
675
|
+
contentLeft={enableContentLeft ? <IconDone size="s" /> : undefined}
|
685
676
|
/>
|
686
677
|
</div>
|
687
678
|
</td>
|
@@ -721,7 +712,7 @@ const CommonStory = (args: StorySelectProps) => {
|
|
721
712
|
value={value}
|
722
713
|
onChange={setValue}
|
723
714
|
view="negative"
|
724
|
-
contentLeft={enableContentLeft ? <IconDone size="s"
|
715
|
+
contentLeft={enableContentLeft ? <IconDone size="s" /> : undefined}
|
725
716
|
/>
|
726
717
|
</div>
|
727
718
|
</td>
|
@@ -734,7 +725,7 @@ const CommonStory = (args: StorySelectProps) => {
|
|
734
725
|
value={valueMultiple}
|
735
726
|
onChange={setValueMultiple}
|
736
727
|
view="negative"
|
737
|
-
contentLeft={enableContentLeft ? <IconDone size="s"
|
728
|
+
contentLeft={enableContentLeft ? <IconDone size="s" /> : undefined}
|
738
729
|
/>
|
739
730
|
</div>
|
740
731
|
</td>
|
@@ -844,7 +835,9 @@ export const Common: StoryObj<StorySelectProps> = {
|
|
844
835
|
argTypes: {
|
845
836
|
size: {
|
846
837
|
options: size,
|
847
|
-
control:
|
838
|
+
control: {
|
839
|
+
type: 'select',
|
840
|
+
},
|
848
841
|
},
|
849
842
|
},
|
850
843
|
args: {
|
package/emotion/cjs/index.js
CHANGED
@@ -47,17 +47,6 @@ Object.keys(_utils).forEach(function (key) {
|
|
47
47
|
}
|
48
48
|
});
|
49
49
|
});
|
50
|
-
var _types = /*#__PURE__*/require("./types");
|
51
|
-
Object.keys(_types).forEach(function (key) {
|
52
|
-
if (key === "default" || key === "__esModule") return;
|
53
|
-
if (key in exports && exports[key] === _types[key]) return;
|
54
|
-
Object.defineProperty(exports, key, {
|
55
|
-
enumerable: true,
|
56
|
-
get: function get() {
|
57
|
-
return _types[key];
|
58
|
-
}
|
59
|
-
});
|
60
|
-
});
|
61
50
|
var _Button = /*#__PURE__*/require("./components/Button");
|
62
51
|
Object.keys(_Button).forEach(function (key) {
|
63
52
|
if (key === "default" || key === "__esModule") return;
|
@@ -17,8 +17,7 @@ var _exportNames = {
|
|
17
17
|
setRefList: true,
|
18
18
|
isEmpty: true,
|
19
19
|
constants: true,
|
20
|
-
noop: true
|
21
|
-
fixedForwardRef: true
|
20
|
+
noop: true
|
22
21
|
};
|
23
22
|
Object.defineProperty(exports, "IS_REACT_18", {
|
24
23
|
enumerable: true,
|
@@ -39,12 +38,6 @@ Object.defineProperty(exports, "extractTextFrom", {
|
|
39
38
|
return _extractTextFrom.extractTextFrom;
|
40
39
|
}
|
41
40
|
});
|
42
|
-
Object.defineProperty(exports, "fixedForwardRef", {
|
43
|
-
enumerable: true,
|
44
|
-
get: function get() {
|
45
|
-
return _fixedForwardRef.fixedForwardRef;
|
46
|
-
}
|
47
|
-
});
|
48
41
|
Object.defineProperty(exports, "getSizeValueFromProp", {
|
49
42
|
enumerable: true,
|
50
43
|
get: function get() {
|
@@ -109,7 +102,6 @@ Object.keys(_getPopoverPlacement).forEach(function (key) {
|
|
109
102
|
});
|
110
103
|
});
|
111
104
|
var _noop = /*#__PURE__*/require("./noop");
|
112
|
-
var _fixedForwardRef = /*#__PURE__*/require("./fixedForwardRef");
|
113
105
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
114
106
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
115
107
|
var cx = exports.cx = function cx() {
|
@@ -0,0 +1,53 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.createSyntheticEvent = exports.createEvent = void 0;
|
7
|
+
var createEvent = exports.createEvent = function createEvent(ref) {
|
8
|
+
if (ref.current) {
|
9
|
+
var event = new Event('change', {
|
10
|
+
bubbles: true
|
11
|
+
});
|
12
|
+
Object.defineProperty(event, 'target', {
|
13
|
+
writable: false,
|
14
|
+
value: ref.current
|
15
|
+
});
|
16
|
+
var syntheticEvent = createSyntheticEvent(event);
|
17
|
+
return syntheticEvent;
|
18
|
+
}
|
19
|
+
return null;
|
20
|
+
};
|
21
|
+
var createSyntheticEvent = exports.createSyntheticEvent = function createSyntheticEvent(event) {
|
22
|
+
var _isDefaultPrevented = false;
|
23
|
+
var _isPropagationStopped = false;
|
24
|
+
var preventDefault = function preventDefault() {
|
25
|
+
_isDefaultPrevented = true;
|
26
|
+
event.preventDefault();
|
27
|
+
};
|
28
|
+
var stopPropagation = function stopPropagation() {
|
29
|
+
_isPropagationStopped = true;
|
30
|
+
event.stopPropagation();
|
31
|
+
};
|
32
|
+
return {
|
33
|
+
nativeEvent: event,
|
34
|
+
currentTarget: event.currentTarget,
|
35
|
+
target: event.target,
|
36
|
+
bubbles: event.bubbles,
|
37
|
+
cancelable: event.cancelable,
|
38
|
+
defaultPrevented: event.defaultPrevented,
|
39
|
+
eventPhase: event.eventPhase,
|
40
|
+
isTrusted: event.isTrusted,
|
41
|
+
preventDefault: preventDefault,
|
42
|
+
isDefaultPrevented: function isDefaultPrevented() {
|
43
|
+
return _isDefaultPrevented;
|
44
|
+
},
|
45
|
+
stopPropagation: stopPropagation,
|
46
|
+
isPropagationStopped: function isPropagationStopped() {
|
47
|
+
return _isPropagationStopped;
|
48
|
+
},
|
49
|
+
persist: function persist() {},
|
50
|
+
timeStamp: event.timeStamp,
|
51
|
+
type: event.type
|
52
|
+
};
|
53
|
+
};
|
@@ -36,9 +36,7 @@ export var cellRoot = function cellRoot(Root) {
|
|
36
36
|
className: cx(stretchingClass, classes.cellRoot, className)
|
37
37
|
}, contentLeftDeprecated && /*#__PURE__*/React.createElement(CellLeft, {
|
38
38
|
align: alignContentLeft
|
39
|
-
}, contentLeftDeprecated), /*#__PURE__*/React.createElement(CellContentWrapper, null, /*#__PURE__*/React.createElement(CellContent, {
|
40
|
-
className: "cell-content"
|
41
|
-
}, titleText || subtitle || label ? /*#__PURE__*/React.createElement(CellTextbox, {
|
39
|
+
}, contentLeftDeprecated), /*#__PURE__*/React.createElement(CellContentWrapper, null, /*#__PURE__*/React.createElement(CellContent, null, titleText || subtitle || label ? /*#__PURE__*/React.createElement(CellTextbox, {
|
42
40
|
label: label,
|
43
41
|
title: titleText,
|
44
42
|
subtitle: subtitle
|
@@ -8,11 +8,5 @@ export var CellTextbox = function CellTextbox(_ref) {
|
|
8
8
|
title = _ref.title,
|
9
9
|
subtitle = _ref.subtitle,
|
10
10
|
children = _ref.children;
|
11
|
-
return (
|
12
|
-
/*#__PURE__*/
|
13
|
-
// TODO: #1548
|
14
|
-
React.createElement(CellTextboxStyled, {
|
15
|
-
className: "cell-textbox"
|
16
|
-
}, label || title || subtitle ? /*#__PURE__*/React.createElement(React.Fragment, null, label && /*#__PURE__*/React.createElement(CellTextboxLabel, null, label), title && /*#__PURE__*/React.createElement(CellTextboxTitle, null, title), subtitle && /*#__PURE__*/React.createElement(CellTextboxSubtitle, null, subtitle)) : children)
|
17
|
-
);
|
11
|
+
return /*#__PURE__*/React.createElement(CellTextboxStyled, null, label || title || subtitle ? /*#__PURE__*/React.createElement(React.Fragment, null, label && /*#__PURE__*/React.createElement(CellTextboxLabel, null, label), title && /*#__PURE__*/React.createElement(CellTextboxTitle, null, title), subtitle && /*#__PURE__*/React.createElement(CellTextboxSubtitle, null, subtitle)) : children);
|
18
12
|
};
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { StyledTextboxTitle } from './CellTextboxTitle.styles';
|
3
3
|
export var CellTextboxTitle = function CellTextboxTitle(props) {
|
4
|
-
|
5
|
-
return /*#__PURE__*/React.createElement(StyledTextboxTitle, {
|
6
|
-
className: "cell-textbox-title"
|
7
|
-
}, props.children);
|
4
|
+
return /*#__PURE__*/React.createElement(StyledTextboxTitle, null, props.children);
|
8
5
|
};
|
@@ -37,9 +37,7 @@ export var chipRoot = function chipRoot(Root) {
|
|
37
37
|
var txt = !text && typeof children === 'string' ? children : text;
|
38
38
|
var pilledClass = pilled ? classes.pilled : undefined;
|
39
39
|
var handleClick = function handleClick(event) {
|
40
|
-
|
41
|
-
// eslint-disable-next-line no-underscore-dangle
|
42
|
-
if (disabled || readOnly && !rest._forceChipManipulationWithReadonly) {
|
40
|
+
if (disabled || readOnly) {
|
43
41
|
return;
|
44
42
|
}
|
45
43
|
onClick === null || onClick === void 0 || onClick(event);
|
@@ -1,5 +1,6 @@
|
|
1
|
-
var _excluded = ["multiple", "value", "onChange", "isTargetAmount", "targetAmount", "items", "placement", "label", "placeholder", "helperText", "contentLeft", "textBefore", "textAfter", "variant", "listOverflow", "listHeight", "listWidth", "portal", "renderItem", "view", "size", "labelPlacement", "readOnly", "disabled", "alwaysOpened", "filter", "closeAfterSelect", "renderValue"];
|
1
|
+
var _excluded = ["name", "multiple", "value", "onChange", "defaultValue", "isTargetAmount", "targetAmount", "items", "placement", "label", "placeholder", "helperText", "contentLeft", "textBefore", "textAfter", "variant", "listOverflow", "listHeight", "listWidth", "portal", "renderItem", "view", "size", "labelPlacement", "readOnly", "disabled", "alwaysOpened", "filter", "closeAfterSelect", "renderValue"];
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
3
4
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
4
5
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
5
6
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
@@ -8,7 +9,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
8
9
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
9
10
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
10
11
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
11
|
-
import React, { forwardRef, useState, useReducer, useMemo, createContext, useLayoutEffect, useRef } from 'react';
|
12
|
+
import React, { forwardRef, useState, useReducer, useMemo, createContext, useLayoutEffect, useRef, useEffect } from 'react';
|
12
13
|
import { safeUseId, useForkRef } from '@salutejs/plasma-core';
|
13
14
|
import { isEmpty } from '../../../utils';
|
14
15
|
import { useOutsideClick } from '../../../hooks';
|
@@ -23,17 +24,21 @@ import { getPathMap, getTreeMaps } from './hooks/getPathMaps';
|
|
23
24
|
import { Ul, base, StyledArrow, IconArrowWrapper, StyledEmptyState } from './Combobox.styles';
|
24
25
|
import { base as viewCSS } from './variations/_view/base';
|
25
26
|
import { base as sizeCSS } from './variations/_size/base';
|
27
|
+
import { Form } from './ui/Form/Form';
|
26
28
|
export var Context = /*#__PURE__*/createContext({});
|
27
29
|
|
28
30
|
/**
|
29
31
|
* Поле ввода с выпадающим списком и возможностью фильтрации и выбора элементов.
|
30
32
|
*/
|
33
|
+
|
31
34
|
export var comboboxRoot = function comboboxRoot(Root) {
|
32
35
|
return /*#__PURE__*/forwardRef(function (props, ref) {
|
33
36
|
var _valueToItemMap$get, _valueToItemMap$get2, _getItemByFocused;
|
34
|
-
var
|
37
|
+
var name = props.name,
|
38
|
+
multiple = props.multiple,
|
35
39
|
outerValue = props.value,
|
36
40
|
outerOnChange = props.onChange,
|
41
|
+
defaultValue = props.defaultValue,
|
37
42
|
isTargetAmount = props.isTargetAmount,
|
38
43
|
targetAmount = props.targetAmount,
|
39
44
|
items = props.items,
|
@@ -142,9 +147,19 @@ export var comboboxRoot = function comboboxRoot(Root) {
|
|
142
147
|
}, floatingPopoverRef);
|
143
148
|
var onChange = function onChange(newValue) {
|
144
149
|
if (outerOnChange) {
|
145
|
-
|
150
|
+
if (!name && !multiple && typeof newValue === 'string') {
|
151
|
+
outerOnChange(newValue);
|
152
|
+
}
|
153
|
+
if (!name && multiple && Array.isArray(newValue)) {
|
154
|
+
outerOnChange(newValue);
|
155
|
+
}
|
156
|
+
if (name && _typeof(newValue) === 'object' && !Array.isArray(newValue)) {
|
157
|
+
outerOnChange(newValue);
|
158
|
+
}
|
159
|
+
}
|
160
|
+
if (typeof newValue === 'string' || Array.isArray(newValue)) {
|
161
|
+
setInternalValue(newValue);
|
146
162
|
}
|
147
|
-
setInternalValue(newValue);
|
148
163
|
};
|
149
164
|
var handleClickArrow = function handleClickArrow() {
|
150
165
|
if (disabled || readOnly) {
|
@@ -301,6 +316,7 @@ export var comboboxRoot = function comboboxRoot(Root) {
|
|
301
316
|
focusedToValueMap: focusedToValueMap,
|
302
317
|
handleListToggle: handleListToggle,
|
303
318
|
handlePressDown: handlePressDown,
|
319
|
+
multiselect: multiple,
|
304
320
|
setTextValue: setTextValue
|
305
321
|
}),
|
306
322
|
onKeyDown = _useKeyNavigation.onKeyDown;
|
@@ -332,13 +348,24 @@ export var comboboxRoot = function comboboxRoot(Root) {
|
|
332
348
|
// Т.к. вначале нужно отфильтровать и провалидировать outerValue и результат положить в переменную.
|
333
349
|
// А переменную, содержащую сложные типы данных, нельзя помещать в deps.
|
334
350
|
}, [outerValue, internalValue, items]);
|
351
|
+
useEffect(function () {
|
352
|
+
if (defaultValue) {
|
353
|
+
setInternalValue(defaultValue);
|
354
|
+
}
|
355
|
+
}, [defaultValue]);
|
335
356
|
return /*#__PURE__*/React.createElement(Root, {
|
336
357
|
size: size,
|
337
358
|
view: view,
|
338
359
|
labelPlacement: labelPlacement,
|
339
360
|
disabled: disabled,
|
340
361
|
readOnly: readOnly
|
341
|
-
},
|
362
|
+
}, name && /*#__PURE__*/React.createElement(Form, {
|
363
|
+
name: name,
|
364
|
+
value: internalValue,
|
365
|
+
multiple: multiple,
|
366
|
+
onChange: onChange,
|
367
|
+
ref: ref
|
368
|
+
}), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Context.Provider, {
|
342
369
|
value: {
|
343
370
|
focusedPath: focusedPath,
|
344
371
|
checked: checked,
|
@@ -362,7 +389,7 @@ export var comboboxRoot = function comboboxRoot(Root) {
|
|
362
389
|
listWidth: listWidth,
|
363
390
|
target: function target(referenceRef) {
|
364
391
|
return /*#__PURE__*/React.createElement(StyledTextField, _extends({
|
365
|
-
ref: inputForkRef,
|
392
|
+
ref: name ? inputRef : inputForkRef,
|
366
393
|
inputWrapperRef: referenceRef,
|
367
394
|
value: textValue,
|
368
395
|
onChange: handleTextValueChange,
|
@@ -51,6 +51,7 @@ export var tokens = {
|
|
51
51
|
checkboxIconColor: '--plasma-combobox-checkbox-icon-color',
|
52
52
|
checkboxTriggerBorderColor: '--plasma-combobox-checkbox-trigger-border-color',
|
53
53
|
indicatorSize: '--plasma-combobox-indicator-size',
|
54
|
+
targetHeight: '--plasma-combobox-target-height',
|
54
55
|
// Токены для TextField
|
55
56
|
textFieldColor: '--plasma-combobox-new-textfield-color',
|
56
57
|
textFieldClearColor: '--plasma-combobox-new-textfield-clear-color',
|
@@ -56,28 +56,14 @@ var FloatingPopover = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
56
56
|
/*#__PURE__*/
|
57
57
|
// root - принимает ref контейнера портала.
|
58
58
|
// id - если есть портал - не используется, если портала нет - подставляется 'wrappedId'.
|
59
|
-
React.createElement(FloatingPortal,
|
59
|
+
React.createElement(FloatingPortal, {
|
60
|
+
root: portal,
|
61
|
+
id: portal ? undefined : wrappedId
|
62
|
+
}, /*#__PURE__*/React.createElement("div", {
|
60
63
|
ref: refs.setFloating,
|
61
64
|
style: _objectSpread(_objectSpread({}, floatingStyles), {}, {
|
62
65
|
zIndex: 1
|
63
66
|
})
|
64
67
|
}, children)));
|
65
68
|
});
|
66
|
-
// root - принимает ref контейнера портала.
|
67
|
-
// id - если есть портал - не используется, если портала нет - подставляется 'wrappedId'.
|
68
|
-
var getFloatingPortalProps = function getFloatingPortalProps(portal, wrappedId) {
|
69
|
-
if (!portal) {
|
70
|
-
return {
|
71
|
-
id: wrappedId
|
72
|
-
};
|
73
|
-
}
|
74
|
-
if (typeof portal === 'string') {
|
75
|
-
return {
|
76
|
-
id: portal
|
77
|
-
};
|
78
|
-
}
|
79
|
-
return {
|
80
|
-
root: portal
|
81
|
-
};
|
82
|
-
};
|
83
69
|
export { FloatingPopover };
|
@@ -29,6 +29,7 @@ export var useKeyNavigation = function useKeyNavigation(_ref) {
|
|
29
29
|
focusedToValueMap = _ref.focusedToValueMap,
|
30
30
|
handleListToggle = _ref.handleListToggle,
|
31
31
|
handlePressDown = _ref.handlePressDown,
|
32
|
+
multiselect = _ref.multiselect,
|
32
33
|
setTextValue = _ref.setTextValue;
|
33
34
|
var currentIndex = (focusedPath === null || focusedPath === void 0 ? void 0 : focusedPath[focusedPath.length - 1]) || 0;
|
34
35
|
var currentLength = pathMap.get(path === null || path === void 0 ? void 0 : path[focusedPath.length - 1]) || 0;
|
@@ -123,6 +124,7 @@ export var useKeyNavigation = function useKeyNavigation(_ref) {
|
|
123
124
|
break;
|
124
125
|
}
|
125
126
|
var currentItem = getItemByFocused(focusedPath, focusedToValueMap);
|
127
|
+
console.log('currentItem', currentItem, focusedPath, focusedToValueMap);
|
126
128
|
if (currentItem !== null && currentItem !== void 0 && currentItem.items) {
|
127
129
|
if (path.length > focusedPath.length) {
|
128
130
|
dispatchFocusedPath({
|
@@ -139,6 +141,32 @@ export var useKeyNavigation = function useKeyNavigation(_ref) {
|
|
139
141
|
}
|
140
142
|
break;
|
141
143
|
}
|
144
|
+
case keys.Backspace:
|
145
|
+
{
|
146
|
+
if (!multiselect) break;
|
147
|
+
break;
|
148
|
+
}
|
149
|
+
|
150
|
+
// case keys.Space: {
|
151
|
+
// event.preventDefault();
|
152
|
+
//
|
153
|
+
// const currentItem = getItemByFocused(focusedPath, focusedToValueMap);
|
154
|
+
//
|
155
|
+
// if (!path[0]) {
|
156
|
+
// dispatchPath({ type: 'opened_first_level' });
|
157
|
+
// dispatchFocusedPath({ type: 'set_initial_focus' });
|
158
|
+
// break;
|
159
|
+
// }
|
160
|
+
//
|
161
|
+
// if (!currentItem || currentItem?.disabled) {
|
162
|
+
// break;
|
163
|
+
// }
|
164
|
+
//
|
165
|
+
// handlePressDown(currentItem);
|
166
|
+
//
|
167
|
+
// break;
|
168
|
+
// }
|
169
|
+
|
142
170
|
case keys.Enter:
|
143
171
|
{
|
144
172
|
event.preventDefault();
|
@@ -155,13 +183,23 @@ export var useKeyNavigation = function useKeyNavigation(_ref) {
|
|
155
183
|
});
|
156
184
|
break;
|
157
185
|
}
|
186
|
+
|
187
|
+
// if (currentItem?.items) {
|
188
|
+
// if (path.length > focusedPath.length) {
|
189
|
+
// dispatchFocusedPath({ type: 'add_focus', value: 0 });
|
190
|
+
// } else {
|
191
|
+
// dispatchPath({ type: 'added_next_level', value: currentItem.value.toString() });
|
192
|
+
// }
|
193
|
+
//
|
194
|
+
// break;
|
195
|
+
// }
|
196
|
+
|
158
197
|
if (_currentItem) {
|
159
198
|
handlePressDown(_currentItem);
|
160
199
|
}
|
161
200
|
break;
|
162
201
|
}
|
163
202
|
case keys.Tab:
|
164
|
-
case keys.Escape:
|
165
203
|
{
|
166
204
|
dispatchPath({
|
167
205
|
type: 'reset'
|
@@ -173,6 +211,17 @@ export var useKeyNavigation = function useKeyNavigation(_ref) {
|
|
173
211
|
setTextValue('');
|
174
212
|
break;
|
175
213
|
}
|
214
|
+
case keys.Escape:
|
215
|
+
{
|
216
|
+
dispatchPath({
|
217
|
+
type: 'reset'
|
218
|
+
});
|
219
|
+
dispatchFocusedPath({
|
220
|
+
type: 'reset'
|
221
|
+
});
|
222
|
+
handleListToggle(false);
|
223
|
+
break;
|
224
|
+
}
|
176
225
|
case keys.Home:
|
177
226
|
{
|
178
227
|
if (path[0]) {
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import React, { forwardRef, useEffect, useRef } from 'react';
|
2
|
+
import { useForkRef } from '@salutejs/plasma-core';
|
3
|
+
import { createEvent } from '../../../../../utils/syntheticEvent';
|
4
|
+
import { SelectHidden } from './Form.styles';
|
5
|
+
export var Form = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
6
|
+
var name = _ref.name,
|
7
|
+
multiple = _ref.multiple,
|
8
|
+
value = _ref.value,
|
9
|
+
onChange = _ref.onChange;
|
10
|
+
var values = multiple ? value : [value];
|
11
|
+
var selectRef = useRef(null);
|
12
|
+
var forkRef = useForkRef(selectRef, ref);
|
13
|
+
useEffect(function () {
|
14
|
+
var event = createEvent(selectRef);
|
15
|
+
onChange && onChange(event);
|
16
|
+
}, [values]);
|
17
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SelectHidden, {
|
18
|
+
ref: forkRef,
|
19
|
+
multiple: multiple,
|
20
|
+
name: name,
|
21
|
+
hidden: true,
|
22
|
+
value: multiple ? values : values[0]
|
23
|
+
}, values.map(function (v) {
|
24
|
+
return /*#__PURE__*/React.createElement("option", {
|
25
|
+
key: v,
|
26
|
+
value: v
|
27
|
+
}, v);
|
28
|
+
})));
|
29
|
+
});
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _styled from "@emotion/styled/base";
|
2
|
+
import { applyHidden } from '../../../../../mixins';
|
3
|
+
export var SelectHidden = /*#__PURE__*/_styled("select", {
|
4
|
+
target: "e10p9ksh0",
|
5
|
+
label: "plasma-new-hope__SelectHidden"
|
6
|
+
})( /*#__PURE__*/applyHidden(), ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ29tYm9ib3gvQ29tYm9ib3hOZXcvdWkvRm9ybS9Gb3JtLnN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJeUMiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9Db21ib2JveC9Db21ib2JveE5ldy91aS9Gb3JtL0Zvcm0uc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuXG5pbXBvcnQgeyBhcHBseUhpZGRlbiB9IGZyb20gJy4uLy4uLy4uLy4uLy4uL21peGlucyc7XG5cbmV4cG9ydCBjb25zdCBTZWxlY3RIaWRkZW4gPSBzdHlsZWQuc2VsZWN0YFxuICAgICR7YXBwbHlIaWRkZW4oKX07XG5gO1xuIl19 */"));
|