@salutejs/plasma-new-hope 0.193.0-canary.1550.11805988388.0 → 0.193.0-canary.1558.11807380775.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 +22 -21
- package/cjs/components/Combobox/ComboboxNew/Combobox.js +1 -0
- 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/Inner/Inner.css +22 -21
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +22 -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/Modal/Modal.css +6 -0
- package/cjs/components/Modal/Modal.js +25 -13
- package/cjs/components/Modal/Modal.js.map +1 -1
- package/cjs/components/Modal/Modal.styles.js +27 -0
- package/cjs/components/Modal/Modal.styles.js.map +1 -0
- package/cjs/components/Modal/Modal.styles_1fjhyqd.css +3 -0
- package/cjs/components/Modal/Modal.tokens.js +5 -1
- package/cjs/components/Modal/Modal.tokens.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/getButtonLabel.js +1 -1
- package/cjs/components/Select/utils/getButtonLabel.js.map +1 -1
- 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 +2 -11
- 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/TextField.tokens.js +1 -2
- package/cjs/components/TextField/TextField.tokens.js.map +1 -1
- 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 +65 -46
- package/cjs/index.js +0 -2
- package/cjs/index.js.map +1 -1
- package/cjs/utils/index.js.map +1 -1
- 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 +1 -0
- 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/Modal/Modal.js +24 -12
- package/emotion/cjs/components/Modal/Modal.styles.js +30 -0
- package/emotion/cjs/components/Modal/Modal.template-doc.mdx +47 -0
- package/emotion/cjs/components/Modal/Modal.tokens.js +5 -1
- 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/getButtonLabel.js +1 -1
- 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 +3 -12
- package/emotion/cjs/components/TextField/TextField.styles.js +40 -36
- package/emotion/cjs/components/TextField/TextField.tokens.js +1 -2
- 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/Modal/Modal.config.js +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Modal/Modal.stories.tsx +90 -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/Modal/Modal.config.js +1 -1
- package/emotion/cjs/examples/plasma_web/components/Modal/Modal.stories.tsx +90 -1
- 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/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 +1 -0
- 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/Modal/Modal.js +24 -12
- package/emotion/es/components/Modal/Modal.styles.js +23 -0
- package/emotion/es/components/Modal/Modal.template-doc.mdx +47 -0
- package/emotion/es/components/Modal/Modal.tokens.js +5 -1
- 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/getButtonLabel.js +1 -1
- 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 +3 -12
- package/emotion/es/components/TextField/TextField.styles.js +40 -36
- package/emotion/es/components/TextField/TextField.tokens.js +1 -2
- 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/Modal/Modal.config.js +1 -1
- package/emotion/es/examples/plasma_b2c/components/Modal/Modal.stories.tsx +90 -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/Modal/Modal.config.js +1 -1
- package/emotion/es/examples/plasma_web/components/Modal/Modal.stories.tsx +90 -1
- 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/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 +22 -21
- package/es/components/Combobox/ComboboxNew/Combobox.js +1 -0
- 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/Inner/Inner.css +22 -21
- package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +22 -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/Modal/Modal.css +6 -0
- package/es/components/Modal/Modal.js +25 -13
- package/es/components/Modal/Modal.js.map +1 -1
- package/es/components/Modal/Modal.styles.js +21 -0
- package/es/components/Modal/Modal.styles.js.map +1 -0
- package/es/components/Modal/Modal.styles_1fjhyqd.css +3 -0
- package/es/components/Modal/Modal.tokens.js +5 -1
- package/es/components/Modal/Modal.tokens.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/getButtonLabel.js +1 -1
- package/es/components/Select/utils/getButtonLabel.js.map +1 -1
- 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 +2 -11
- 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/TextField.tokens.js +1 -2
- package/es/components/TextField/TextField.tokens.js.map +1 -1
- 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 +65 -46
- package/es/index.js +0 -1
- package/es/index.js.map +1 -1
- package/es/utils/index.js.map +1 -1
- 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 +1 -0
- 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/Modal/Modal.js +24 -12
- package/styled-components/cjs/components/Modal/Modal.styles.js +18 -0
- package/styled-components/cjs/components/Modal/Modal.template-doc.mdx +47 -0
- package/styled-components/cjs/components/Modal/Modal.tokens.js +5 -1
- 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/getButtonLabel.js +1 -1
- 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 +2 -11
- package/styled-components/cjs/components/TextField/TextField.styles.js +15 -12
- package/styled-components/cjs/components/TextField/TextField.tokens.js +1 -2
- 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/Modal/Modal.config.js +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Modal/Modal.stories.tsx +90 -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/Modal/Modal.config.js +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Modal/Modal.stories.tsx +90 -1
- 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/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 +1 -0
- 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/Modal/Modal.js +24 -12
- package/styled-components/es/components/Modal/Modal.styles.js +11 -0
- package/styled-components/es/components/Modal/Modal.template-doc.mdx +47 -0
- package/styled-components/es/components/Modal/Modal.tokens.js +5 -1
- 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/getButtonLabel.js +1 -1
- 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 +2 -11
- package/styled-components/es/components/TextField/TextField.styles.js +15 -12
- package/styled-components/es/components/TextField/TextField.tokens.js +1 -2
- 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/Modal/Modal.config.js +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Modal/Modal.stories.tsx +90 -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/Modal/Modal.config.js +1 -1
- package/styled-components/es/examples/plasma_web/components/Modal/Modal.stories.tsx +90 -1
- 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/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.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 +3 -4
- 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/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/Modal/Modal.d.ts.map +1 -1
- package/types/components/Modal/Modal.styles.d.ts +5 -0
- package/types/components/Modal/Modal.styles.d.ts.map +1 -0
- package/types/components/Modal/Modal.tokens.d.ts +4 -0
- package/types/components/Modal/Modal.tokens.d.ts.map +1 -1
- package/types/components/Modal/Modal.types.d.ts +21 -1
- package/types/components/Modal/Modal.types.d.ts.map +1 -1
- package/types/components/Modal/index.d.ts +1 -1
- package/types/components/Modal/index.d.ts.map +1 -1
- 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 +42 -42
- 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 +21 -42
- 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/TextField.tokens.d.ts +0 -1
- package/types/components/TextField/TextField.tokens.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 +24 -24
- 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/Modal/Modal.config.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Modal/Modal.d.ts +7 -1
- package/types/examples/plasma_b2c/components/Modal/Modal.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 +48 -55
- 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 +24 -24
- 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/Modal/Modal.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Modal/Modal.d.ts +7 -1
- package/types/examples/plasma_web/components/Modal/Modal.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 +48 -55
- 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/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_q4kc1p.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_q4kc1p.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() {
|
@@ -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);
|
@@ -301,6 +301,7 @@ export var comboboxRoot = function comboboxRoot(Root) {
|
|
301
301
|
focusedToValueMap: focusedToValueMap,
|
302
302
|
handleListToggle: handleListToggle,
|
303
303
|
handlePressDown: handlePressDown,
|
304
|
+
multiselect: multiple,
|
304
305
|
setTextValue: setTextValue
|
305
306
|
}),
|
306
307
|
onKeyDown = _useKeyNavigation.onKeyDown;
|
@@ -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]) {
|
@@ -1,4 +1,5 @@
|
|
1
|
-
var
|
1
|
+
var _IconClose;
|
2
|
+
var _excluded = ["id", "withAnimation", "onClose", "onOverlayClick", "onEscKeyDown", "closeOnEsc", "closeOnOverlayClick", "withBlur", "initialFocusRef", "focusAfterRef", "zIndex", "popupInfo", "children", "view", "opened", "isOpen", "hasBody", "hasClose"];
|
2
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
3
4
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
4
5
|
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; }
|
@@ -9,10 +10,12 @@ import { popupConfig, usePopupContext } from '../Popup';
|
|
9
10
|
import { Overlay } from '../Overlay';
|
10
11
|
import { DEFAULT_Z_INDEX } from '../Popup/utils';
|
11
12
|
import { useFocusTrap } from '../../hooks';
|
13
|
+
import { IconClose } from '../_Icon/Icons/IconClose';
|
12
14
|
import { classes, tokens } from './Modal.tokens';
|
13
15
|
import { useModal } from './hooks';
|
14
16
|
import { base as viewCSS } from './variations/_view/base';
|
15
17
|
import { getIdLastModal } from './ModalContext';
|
18
|
+
import { CloseButton, ModalBody, ModalContent } from './Modal.styles';
|
16
19
|
|
17
20
|
// issue #823
|
18
21
|
var Popup = /*#__PURE__*/component(popupConfig);
|
@@ -41,6 +44,8 @@ export var modalRoot = function modalRoot(Root) {
|
|
41
44
|
view = _ref.view,
|
42
45
|
opened = _ref.opened,
|
43
46
|
isOpen = _ref.isOpen,
|
47
|
+
hasBody = _ref.hasBody,
|
48
|
+
hasClose = _ref.hasClose,
|
44
49
|
rest = _objectWithoutProperties(_ref, _excluded);
|
45
50
|
var innerIsOpen = Boolean(isOpen || opened);
|
46
51
|
var trapRef = useFocusTrap(true, initialFocusRef, focusAfterRef, true);
|
@@ -70,6 +75,15 @@ export var modalRoot = function modalRoot(Root) {
|
|
70
75
|
onClose();
|
71
76
|
}
|
72
77
|
}, [closeOnOverlayClick, onOverlayClick, onClose]);
|
78
|
+
var overlayNode = /*#__PURE__*/React.createElement(Overlay, {
|
79
|
+
className: classes.overlay,
|
80
|
+
zIndex: zIndex || DEFAULT_Z_INDEX,
|
81
|
+
backgroundColorProperty: overlayBackgroundToken,
|
82
|
+
withBlur: withBlur,
|
83
|
+
transparent: transparent,
|
84
|
+
isClickable: closeOnOverlayClick,
|
85
|
+
onOverlayClick: onModalOverlayKeyDown
|
86
|
+
});
|
73
87
|
return /*#__PURE__*/React.createElement(Popup, _extends({
|
74
88
|
id: innerId,
|
75
89
|
opened: innerIsOpen,
|
@@ -77,18 +91,16 @@ export var modalRoot = function modalRoot(Root) {
|
|
77
91
|
popupInfo: modalInfo,
|
78
92
|
withAnimation: withAnimation,
|
79
93
|
zIndex: zIndex,
|
80
|
-
overlay: /*#__PURE__*/React.createElement(Root, {
|
94
|
+
overlay: hasBody ? overlayNode : /*#__PURE__*/React.createElement(Root, {
|
81
95
|
view: view
|
82
|
-
},
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
}))
|
91
|
-
}, rest), children);
|
96
|
+
}, overlayNode)
|
97
|
+
}, rest), hasBody ? /*#__PURE__*/React.createElement(Root, {
|
98
|
+
view: view
|
99
|
+
}, /*#__PURE__*/React.createElement(ModalBody, null, /*#__PURE__*/React.createElement(ModalContent, null, hasClose && /*#__PURE__*/React.createElement(CloseButton, {
|
100
|
+
onClick: onClose
|
101
|
+
}, _IconClose || (_IconClose = /*#__PURE__*/React.createElement(IconClose, {
|
102
|
+
size: "s"
|
103
|
+
}))), children))) : /*#__PURE__*/React.createElement(React.Fragment, null, children));
|
92
104
|
});
|
93
105
|
};
|
94
106
|
export var modalConfig = {
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import _styled from "@emotion/styled/base";
|
2
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
3
|
+
import { tokens } from './Modal.tokens';
|
4
|
+
export var ModalBody = /*#__PURE__*/_styled("div", {
|
5
|
+
target: "e1gvpqag2",
|
6
|
+
label: "plasma-new-hope__ModalBody"
|
7
|
+
})("border-radius:var(", tokens.modalBodyBorderRadius, ");padding:var(", tokens.modalBodyPadding, ");background:var(", tokens.modalBodyBackground, ");box-shadow:0px 60px 112px -8px #00000014;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTW9kYWwvTW9kYWwuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUltQyIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL01vZGFsL01vZGFsLnN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcblxuaW1wb3J0IHsgdG9rZW5zIH0gZnJvbSAnLi9Nb2RhbC50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgTW9kYWxCb2R5ID0gc3R5bGVkLmRpdmBcbiAgICBib3JkZXItcmFkaXVzOiB2YXIoJHt0b2tlbnMubW9kYWxCb2R5Qm9yZGVyUmFkaXVzfSk7XG4gICAgcGFkZGluZzogdmFyKCR7dG9rZW5zLm1vZGFsQm9keVBhZGRpbmd9KTtcbiAgICBiYWNrZ3JvdW5kOiB2YXIoJHt0b2tlbnMubW9kYWxCb2R5QmFja2dyb3VuZH0pO1xuICAgIGJveC1zaGFkb3c6IDBweCA2MHB4IDExMnB4IC04cHggIzAwMDAwMDE0O1xuYDtcblxuZXhwb3J0IGNvbnN0IE1vZGFsQ29udGVudCA9IHN0eWxlZC5kaXZgXG4gICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgIHBhZGRpbmc6IHZhcigke3Rva2Vucy5tb2RhbENvbnRlbnRQYWRkaW5nfSk7XG5gO1xuXG5leHBvcnQgY29uc3QgQ2xvc2VCdXR0b24gPSBzdHlsZWQuYnV0dG9uYFxuICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICB0b3A6IDA7XG4gICAgcmlnaHQ6IDA7XG5cbiAgICBwYWRkaW5nOiAwO1xuICAgIG1hcmdpbjogMDtcbiAgICBib3JkZXI6IG5vbmU7XG4gICAgb3V0bGluZTogbm9uZTtcblxuICAgIGN1cnNvcjogcG9pbnRlcjtcblxuICAgIGJhY2tncm91bmQ6IHRyYW5zcGFyZW50O1xuYDtcbiJdfQ== */"));
|
8
|
+
export var ModalContent = /*#__PURE__*/_styled("div", {
|
9
|
+
target: "e1gvpqag1",
|
10
|
+
label: "plasma-new-hope__ModalContent"
|
11
|
+
})("position:relative;padding:var(", tokens.modalContentPadding, ");" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTW9kYWwvTW9kYWwuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVdzQyIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL01vZGFsL01vZGFsLnN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcblxuaW1wb3J0IHsgdG9rZW5zIH0gZnJvbSAnLi9Nb2RhbC50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgTW9kYWxCb2R5ID0gc3R5bGVkLmRpdmBcbiAgICBib3JkZXItcmFkaXVzOiB2YXIoJHt0b2tlbnMubW9kYWxCb2R5Qm9yZGVyUmFkaXVzfSk7XG4gICAgcGFkZGluZzogdmFyKCR7dG9rZW5zLm1vZGFsQm9keVBhZGRpbmd9KTtcbiAgICBiYWNrZ3JvdW5kOiB2YXIoJHt0b2tlbnMubW9kYWxCb2R5QmFja2dyb3VuZH0pO1xuICAgIGJveC1zaGFkb3c6IDBweCA2MHB4IDExMnB4IC04cHggIzAwMDAwMDE0O1xuYDtcblxuZXhwb3J0IGNvbnN0IE1vZGFsQ29udGVudCA9IHN0eWxlZC5kaXZgXG4gICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgIHBhZGRpbmc6IHZhcigke3Rva2Vucy5tb2RhbENvbnRlbnRQYWRkaW5nfSk7XG5gO1xuXG5leHBvcnQgY29uc3QgQ2xvc2VCdXR0b24gPSBzdHlsZWQuYnV0dG9uYFxuICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICB0b3A6IDA7XG4gICAgcmlnaHQ6IDA7XG5cbiAgICBwYWRkaW5nOiAwO1xuICAgIG1hcmdpbjogMDtcbiAgICBib3JkZXI6IG5vbmU7XG4gICAgb3V0bGluZTogbm9uZTtcblxuICAgIGN1cnNvcjogcG9pbnRlcjtcblxuICAgIGJhY2tncm91bmQ6IHRyYW5zcGFyZW50O1xuYDtcbiJdfQ== */"));
|
12
|
+
export var CloseButton = /*#__PURE__*/_styled("button", {
|
13
|
+
target: "e1gvpqag0",
|
14
|
+
label: "plasma-new-hope__CloseButton"
|
15
|
+
})(process.env.NODE_ENV === "production" ? {
|
16
|
+
name: "30g3ga",
|
17
|
+
styles: "position:absolute;top:0;right:0;padding:0;margin:0;border:none;outline:none;cursor:pointer;background:transparent"
|
18
|
+
} : {
|
19
|
+
name: "30g3ga",
|
20
|
+
styles: "position:absolute;top:0;right:0;padding:0;margin:0;border:none;outline:none;cursor:pointer;background:transparent",
|
21
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTW9kYWwvTW9kYWwuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWdCd0MiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9Nb2RhbC9Nb2RhbC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmltcG9ydCB7IHRva2VucyB9IGZyb20gJy4vTW9kYWwudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IE1vZGFsQm9keSA9IHN0eWxlZC5kaXZgXG4gICAgYm9yZGVyLXJhZGl1czogdmFyKCR7dG9rZW5zLm1vZGFsQm9keUJvcmRlclJhZGl1c30pO1xuICAgIHBhZGRpbmc6IHZhcigke3Rva2Vucy5tb2RhbEJvZHlQYWRkaW5nfSk7XG4gICAgYmFja2dyb3VuZDogdmFyKCR7dG9rZW5zLm1vZGFsQm9keUJhY2tncm91bmR9KTtcbiAgICBib3gtc2hhZG93OiAwcHggNjBweCAxMTJweCAtOHB4ICMwMDAwMDAxNDtcbmA7XG5cbmV4cG9ydCBjb25zdCBNb2RhbENvbnRlbnQgPSBzdHlsZWQuZGl2YFxuICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgICBwYWRkaW5nOiB2YXIoJHt0b2tlbnMubW9kYWxDb250ZW50UGFkZGluZ30pO1xuYDtcblxuZXhwb3J0IGNvbnN0IENsb3NlQnV0dG9uID0gc3R5bGVkLmJ1dHRvbmBcbiAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgdG9wOiAwO1xuICAgIHJpZ2h0OiAwO1xuXG4gICAgcGFkZGluZzogMDtcbiAgICBtYXJnaW46IDA7XG4gICAgYm9yZGVyOiBub25lO1xuICAgIG91dGxpbmU6IG5vbmU7XG5cbiAgICBjdXJzb3I6IHBvaW50ZXI7XG5cbiAgICBiYWNrZ3JvdW5kOiB0cmFuc3BhcmVudDtcbmA7XG4iXX0= */",
|
22
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
23
|
+
});
|
@@ -62,6 +62,53 @@ export function App() {
|
|
62
62
|
}
|
63
63
|
```
|
64
64
|
|
65
|
+
## Использование стилизованной обертки
|
66
|
+
|
67
|
+
Для использования стилизованного мобального окна с отступами и крестиком для закрытия, добавьте свойство `hasBody`.
|
68
|
+
```tsx live
|
69
|
+
import React, { useState } from 'react';
|
70
|
+
import { SSRProvider, Button, Modal, PopupProvider } from '@salutejs/{{ package }}';
|
71
|
+
|
72
|
+
export function App() {
|
73
|
+
const [isOpenA, setIsOpenA] = useState(false);
|
74
|
+
const [isOpenB, setIsOpenB] = useState(false);
|
75
|
+
|
76
|
+
return (
|
77
|
+
<SSRProvider>
|
78
|
+
<PopupProvider>
|
79
|
+
<div style=\{{ height: "300px" }}>
|
80
|
+
<div style=\{{ display: 'flex', flexDirection: 'column' }}>
|
81
|
+
<Button text="Открыть A" onClick={() => setIsOpenA(true)} />
|
82
|
+
</div>
|
83
|
+
<Modal
|
84
|
+
id="modalA"
|
85
|
+
onClose={() => setIsOpenA(false)}
|
86
|
+
opened={isOpenA}
|
87
|
+
placement="center"
|
88
|
+
offset={[0, 0]}
|
89
|
+
hasBody
|
90
|
+
>
|
91
|
+
<Button onClick={() => setIsOpenA(false)}>Close</Button>
|
92
|
+
<Button text="Открыть B" onClick={() => setIsOpenB(true)} />
|
93
|
+
Content
|
94
|
+
<Modal
|
95
|
+
id="modalB"
|
96
|
+
onClose={() => setIsOpenB(false)}
|
97
|
+
opened={isOpenB}
|
98
|
+
placement="right"
|
99
|
+
offset={[0, 0]}
|
100
|
+
>
|
101
|
+
<Button onClick={() => setIsOpenB(false)}>Close</Button>
|
102
|
+
Content
|
103
|
+
</Modal>
|
104
|
+
</Modal>
|
105
|
+
</div>
|
106
|
+
</PopupProvider>
|
107
|
+
</SSRProvider>
|
108
|
+
);
|
109
|
+
}
|
110
|
+
```
|
111
|
+
|
65
112
|
## Подключение анимации
|
66
113
|
Подключение анимации аналогично тому, как это происходит в `Popup` - через свойство `withAnimation`(управление через `popupClasses`, `modalClasses`).
|
67
114
|
Для добавления анимации в оверлей необходимо использовать класс `.modal-overlay` через переменную `modalClasses.overlay` из пакета.
|
@@ -6,5 +6,9 @@ export var classes = {
|
|
6
6
|
};
|
7
7
|
export var tokens = {
|
8
8
|
modalOverlayWithBlurColor: '--plasma-modal-overlay-with-blur-color',
|
9
|
-
modalOverlayColor: '--plasma-modal-overlay-color'
|
9
|
+
modalOverlayColor: '--plasma-modal-overlay-color',
|
10
|
+
modalBodyBackground: '--plasma-modal-body-background',
|
11
|
+
modalBodyBorderRadius: '--plasma-modal-body-border-radius',
|
12
|
+
modalBodyPadding: '--plasma-modal-body-padding',
|
13
|
+
modalContentPadding: '--plasma-modal-content-padding'
|
10
14
|
};
|