@salutejs/plasma-new-hope 0.336.0-canary.2214.17665690388.0 → 0.336.0-canary.2214.17729218564.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/components/Autocomplete/Autocomplete.css +3 -0
- package/cjs/components/CodeField/CodeField.css +7 -6
- package/cjs/components/CodeField/CodeField.js +63 -27
- package/cjs/components/CodeField/CodeField.js.map +1 -1
- package/cjs/components/CodeField/CodeField.styles.js +7 -1
- package/cjs/components/CodeField/CodeField.styles.js.map +1 -1
- package/cjs/components/CodeField/{CodeField.styles_ebdpd0.css → CodeField.styles_14p25hi.css} +1 -0
- package/cjs/components/CodeField/hooks/useWebOTP.js +95 -0
- package/cjs/components/CodeField/hooks/useWebOTP.js.map +1 -0
- package/cjs/components/CodeField/utils/handleCodeError.js +2 -2
- package/cjs/components/CodeField/utils/handleCodeError.js.map +1 -1
- package/cjs/components/CodeField/utils/handleItemError.js +14 -4
- package/cjs/components/CodeField/utils/handleItemError.js.map +1 -1
- package/cjs/components/CodeField/utils/isWebOTPSupported.js +10 -0
- package/cjs/components/CodeField/utils/isWebOTPSupported.js.map +1 -0
- package/cjs/components/Combobox/ComboboxNew/Combobox.css +3 -0
- package/cjs/components/Combobox/ComboboxNew/Combobox.js +54 -56
- package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/hooks/getPathMaps.js +1 -4
- package/cjs/components/Combobox/ComboboxNew/hooks/getPathMaps.js.map +1 -1
- package/cjs/components/DatePicker/RangeDate/RangeDate.css +3 -0
- package/cjs/components/DatePicker/RangeDate/RangeDate.js +30 -22
- package/cjs/components/DatePicker/RangeDate/RangeDate.js.map +1 -1
- package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +3 -0
- package/cjs/components/DatePicker/SingleDate/SingleDate.css +3 -0
- package/cjs/components/Pagination/Pagination.css +15 -10
- package/cjs/components/Pagination/Pagination.js +57 -5
- package/cjs/components/Pagination/Pagination.js.map +1 -1
- package/cjs/components/Pagination/Pagination.styles.js +19 -7
- package/cjs/components/Pagination/Pagination.styles.js.map +1 -1
- package/{es/components/Pagination/Pagination.styles_ska0td.css → cjs/components/Pagination/Pagination.styles_qhyqps.css} +5 -3
- package/cjs/components/Pagination/Pagination.tokens.js +3 -0
- package/cjs/components/Pagination/Pagination.tokens.js.map +1 -1
- package/cjs/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.css +3 -3
- package/cjs/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.styles.js +1 -1
- package/cjs/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.styles.js.map +1 -1
- package/cjs/components/Pagination/ui/PaginationQuickJumpToPage/{PaginationQuickJumpToPage.styles_89ax1q.css → PaginationQuickJumpToPage.styles_1sw6ww1.css} +2 -2
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +3 -0
- package/cjs/components/Popover/Popover.js +4 -1
- package/cjs/components/Popover/Popover.js.map +1 -1
- package/cjs/components/Range/Range.css +3 -0
- package/cjs/components/Select/Select.css +3 -0
- package/cjs/components/Select/Select.js +23 -11
- package/cjs/components/Select/Select.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/ui/Target/Target.css +3 -0
- package/cjs/components/Select/ui/Target/Target.js +0 -2
- package/cjs/components/Select/ui/Target/Target.js.map +1 -1
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.css +3 -0
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +32 -49
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
- package/cjs/components/Slider/Slider.css +3 -0
- package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +3 -0
- package/cjs/components/Switch/Switch.css +6 -6
- package/cjs/components/Switch/Switch.js +5 -2
- package/cjs/components/Switch/Switch.js.map +1 -1
- package/cjs/components/Switch/Switch.styles.js +1 -1
- package/cjs/components/Switch/Switch.styles.js.map +1 -1
- package/cjs/components/Switch/{Switch.styles_qjefea.css → Switch.styles_158fwwl.css} +1 -1
- package/cjs/components/Switch/Switch.tokens.js +2 -1
- package/cjs/components/Switch/Switch.tokens.js.map +1 -1
- package/cjs/components/Table/Table.css +3 -0
- package/cjs/components/Table/ui/Cell/Cell.css +3 -0
- package/cjs/components/Table/ui/EditableCell/EditableCell.css +3 -0
- package/cjs/components/Table/ui/HeadCell/HeadCell.css +3 -0
- package/cjs/components/Table/ui/HeadCell/ui/Filter/Filter.css +3 -0
- package/cjs/components/TextField/TextField.js +19 -3
- package/cjs/components/TextField/TextField.js.map +1 -1
- package/cjs/components/TextField/ui/TextFieldChipNew/TextFieldChipNew.css +58 -0
- package/cjs/components/TextField/ui/TextFieldChipNew/TextFieldChipNew.js +86 -0
- package/cjs/components/TextField/ui/TextFieldChipNew/TextFieldChipNew.js.map +1 -0
- package/cjs/components/TextField/ui/TextFieldChipNew/TextFieldChipNew.styles.js +25 -0
- package/cjs/components/TextField/ui/TextFieldChipNew/TextFieldChipNew.styles.js.map +1 -0
- package/cjs/components/TextField/ui/TextFieldChipNew/TextFieldChipNew.styles_y9tozi.css +2 -0
- package/cjs/components/Tree/Tree.css +7 -7
- package/cjs/components/Tree/Tree.styles.js +1 -1
- package/cjs/components/Tree/Tree.styles.js.map +1 -1
- package/cjs/components/Tree/Tree.styles_1bw3k0r.css +8 -0
- package/cjs/index.css +35 -29
- package/emotion/cjs/components/CodeField/CodeField.js +61 -23
- package/emotion/cjs/components/CodeField/CodeField.styles.js +18 -11
- package/emotion/cjs/components/CodeField/hooks/useWebOTP.js +246 -0
- package/emotion/cjs/components/CodeField/utils/handleCodeError.js +2 -2
- package/emotion/cjs/components/CodeField/utils/handleItemError.js +12 -3
- package/emotion/cjs/components/CodeField/utils/index.js +4 -0
- package/emotion/cjs/components/CodeField/utils/isWebOTPSupported.js +13 -0
- package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +57 -64
- package/emotion/cjs/components/Combobox/ComboboxNew/hooks/getPathMaps.js +2 -5
- package/emotion/cjs/components/Combobox/ComboboxNew/utils/index.js +0 -4
- package/emotion/cjs/components/DatePicker/RangeDate/RangeDate.js +24 -22
- package/emotion/cjs/components/Pagination/Pagination.js +53 -5
- package/emotion/cjs/components/Pagination/Pagination.styles.js +28 -14
- package/emotion/cjs/components/Pagination/Pagination.tokens.js +3 -0
- package/emotion/cjs/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.styles.js +6 -6
- package/emotion/cjs/components/Popover/Popover.js +3 -1
- package/emotion/cjs/components/Select/Select.js +26 -9
- package/emotion/cjs/components/Select/hooks/usePathMaps.js +2 -5
- package/emotion/cjs/components/Select/ui/Target/Target.js +1 -2
- package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +32 -71
- package/emotion/cjs/components/Select/utils/index.js +0 -4
- package/emotion/cjs/components/Switch/Switch.js +4 -2
- package/emotion/cjs/components/Switch/Switch.styles.js +11 -11
- package/emotion/cjs/components/Switch/Switch.tokens.js +2 -1
- package/emotion/cjs/components/TextField/TextField.js +20 -4
- package/emotion/cjs/components/TextField/ui/TextFieldChipNew/TextFieldChipNew.js +78 -0
- package/emotion/cjs/components/TextField/ui/TextFieldChipNew/TextFieldChipNew.styles.js +49 -0
- package/emotion/cjs/components/TextField/ui/index.js +12 -3
- package/emotion/cjs/components/Tree/Tree.styles.js +15 -15
- package/emotion/cjs/examples/components/Combobox/Combobox.js +0 -15
- package/emotion/cjs/examples/components/Pagination/Pagination.config.js +12 -12
- package/emotion/cjs/examples/components/Range/Range.config.js +8 -7
- package/emotion/es/components/CodeField/CodeField.js +64 -26
- package/emotion/es/components/CodeField/CodeField.styles.js +15 -11
- package/emotion/es/components/CodeField/hooks/useWebOTP.js +236 -0
- package/emotion/es/components/CodeField/utils/handleCodeError.js +2 -2
- package/emotion/es/components/CodeField/utils/handleItemError.js +12 -3
- package/emotion/es/components/CodeField/utils/index.js +1 -0
- package/emotion/es/components/CodeField/utils/isWebOTPSupported.js +3 -0
- package/emotion/es/components/Combobox/ComboboxNew/Combobox.js +58 -65
- package/emotion/es/components/Combobox/ComboboxNew/hooks/getPathMaps.js +2 -5
- package/emotion/es/components/Combobox/ComboboxNew/utils/index.js +0 -1
- package/emotion/es/components/DatePicker/RangeDate/RangeDate.js +24 -22
- package/emotion/es/components/Pagination/Pagination.js +55 -7
- package/emotion/es/components/Pagination/Pagination.styles.js +23 -15
- package/emotion/es/components/Pagination/Pagination.tokens.js +3 -0
- package/emotion/es/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.styles.js +6 -6
- package/emotion/es/components/Popover/Popover.js +4 -2
- package/emotion/es/components/Select/Select.js +26 -9
- package/emotion/es/components/Select/hooks/usePathMaps.js +2 -5
- package/emotion/es/components/Select/ui/Target/Target.js +1 -2
- package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.js +33 -72
- package/emotion/es/components/Select/utils/index.js +0 -1
- package/emotion/es/components/Switch/Switch.js +4 -2
- package/emotion/es/components/Switch/Switch.styles.js +11 -11
- package/emotion/es/components/Switch/Switch.tokens.js +2 -1
- package/emotion/es/components/TextField/TextField.js +21 -5
- package/emotion/es/components/TextField/ui/TextFieldChipNew/TextFieldChipNew.js +63 -0
- package/emotion/es/components/TextField/ui/TextFieldChipNew/TextFieldChipNew.styles.js +27 -0
- package/emotion/es/components/TextField/ui/index.js +1 -0
- package/emotion/es/components/Tree/Tree.styles.js +15 -15
- package/emotion/es/examples/components/Combobox/Combobox.js +0 -7
- package/emotion/es/examples/components/Pagination/Pagination.config.js +12 -12
- package/emotion/es/examples/components/Range/Range.config.js +8 -7
- package/es/components/Autocomplete/Autocomplete.css +3 -0
- package/es/components/CodeField/CodeField.css +7 -6
- package/es/components/CodeField/CodeField.js +66 -30
- package/es/components/CodeField/CodeField.js.map +1 -1
- package/es/components/CodeField/CodeField.styles.js +7 -2
- package/es/components/CodeField/CodeField.styles.js.map +1 -1
- package/es/components/CodeField/{CodeField.styles_ebdpd0.css → CodeField.styles_14p25hi.css} +1 -0
- package/es/components/CodeField/hooks/useWebOTP.js +91 -0
- package/es/components/CodeField/hooks/useWebOTP.js.map +1 -0
- package/es/components/CodeField/utils/handleCodeError.js +2 -2
- package/es/components/CodeField/utils/handleCodeError.js.map +1 -1
- package/es/components/CodeField/utils/handleItemError.js +14 -4
- package/es/components/CodeField/utils/handleItemError.js.map +1 -1
- package/es/components/CodeField/utils/isWebOTPSupported.js +6 -0
- package/es/components/CodeField/utils/isWebOTPSupported.js.map +1 -0
- package/es/components/Combobox/ComboboxNew/Combobox.css +3 -0
- package/es/components/Combobox/ComboboxNew/Combobox.js +55 -57
- package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
- package/es/components/Combobox/ComboboxNew/hooks/getPathMaps.js +1 -4
- package/es/components/Combobox/ComboboxNew/hooks/getPathMaps.js.map +1 -1
- package/es/components/DatePicker/RangeDate/RangeDate.css +3 -0
- package/es/components/DatePicker/RangeDate/RangeDate.js +30 -22
- package/es/components/DatePicker/RangeDate/RangeDate.js.map +1 -1
- package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +3 -0
- package/es/components/DatePicker/SingleDate/SingleDate.css +3 -0
- package/es/components/Pagination/Pagination.css +15 -10
- package/es/components/Pagination/Pagination.js +59 -7
- package/es/components/Pagination/Pagination.js.map +1 -1
- package/es/components/Pagination/Pagination.styles.js +18 -8
- package/es/components/Pagination/Pagination.styles.js.map +1 -1
- package/{cjs/components/Pagination/Pagination.styles_ska0td.css → es/components/Pagination/Pagination.styles_qhyqps.css} +5 -3
- package/es/components/Pagination/Pagination.tokens.js +3 -0
- package/es/components/Pagination/Pagination.tokens.js.map +1 -1
- package/es/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.css +3 -3
- package/es/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.styles.js +1 -1
- package/es/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.styles.js.map +1 -1
- package/es/components/Pagination/ui/PaginationQuickJumpToPage/{PaginationQuickJumpToPage.styles_89ax1q.css → PaginationQuickJumpToPage.styles_1sw6ww1.css} +2 -2
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +3 -0
- package/es/components/Popover/Popover.js +4 -1
- package/es/components/Popover/Popover.js.map +1 -1
- package/es/components/Range/Range.css +3 -0
- package/es/components/Select/Select.css +3 -0
- package/es/components/Select/Select.js +23 -11
- package/es/components/Select/Select.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/ui/Target/Target.css +3 -0
- package/es/components/Select/ui/Target/Target.js +0 -2
- package/es/components/Select/ui/Target/Target.js.map +1 -1
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.css +3 -0
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +33 -50
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
- package/es/components/Slider/Slider.css +3 -0
- package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +3 -0
- package/es/components/Switch/Switch.css +6 -6
- package/es/components/Switch/Switch.js +5 -2
- package/es/components/Switch/Switch.js.map +1 -1
- package/es/components/Switch/Switch.styles.js +1 -1
- package/es/components/Switch/Switch.styles.js.map +1 -1
- package/es/components/Switch/{Switch.styles_qjefea.css → Switch.styles_158fwwl.css} +1 -1
- package/es/components/Switch/Switch.tokens.js +2 -1
- package/es/components/Switch/Switch.tokens.js.map +1 -1
- package/es/components/Table/Table.css +3 -0
- package/es/components/Table/ui/Cell/Cell.css +3 -0
- package/es/components/Table/ui/EditableCell/EditableCell.css +3 -0
- package/es/components/Table/ui/HeadCell/HeadCell.css +3 -0
- package/es/components/Table/ui/HeadCell/ui/Filter/Filter.css +3 -0
- package/es/components/TextField/TextField.js +19 -3
- package/es/components/TextField/TextField.js.map +1 -1
- package/es/components/TextField/ui/TextFieldChipNew/TextFieldChipNew.css +58 -0
- package/es/components/TextField/ui/TextFieldChipNew/TextFieldChipNew.js +78 -0
- package/es/components/TextField/ui/TextFieldChipNew/TextFieldChipNew.js.map +1 -0
- package/es/components/TextField/ui/TextFieldChipNew/TextFieldChipNew.styles.js +21 -0
- package/es/components/TextField/ui/TextFieldChipNew/TextFieldChipNew.styles.js.map +1 -0
- package/es/components/TextField/ui/TextFieldChipNew/TextFieldChipNew.styles_y9tozi.css +2 -0
- package/es/components/Tree/Tree.css +7 -7
- package/es/components/Tree/Tree.styles.js +1 -1
- package/es/components/Tree/Tree.styles.js.map +1 -1
- package/es/components/Tree/Tree.styles_1bw3k0r.css +8 -0
- package/es/index.css +35 -29
- package/package.json +2 -2
- package/styled-components/cjs/components/CodeField/CodeField.js +61 -23
- package/styled-components/cjs/components/CodeField/CodeField.styles.js +14 -5
- package/styled-components/cjs/components/CodeField/hooks/useWebOTP.js +246 -0
- package/styled-components/cjs/components/CodeField/utils/handleCodeError.js +2 -2
- package/styled-components/cjs/components/CodeField/utils/handleItemError.js +12 -3
- package/styled-components/cjs/components/CodeField/utils/index.js +4 -0
- package/styled-components/cjs/components/CodeField/utils/isWebOTPSupported.js +13 -0
- package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +57 -64
- package/styled-components/cjs/components/Combobox/ComboboxNew/hooks/getPathMaps.js +2 -5
- package/styled-components/cjs/components/Combobox/ComboboxNew/utils/index.js +0 -4
- package/styled-components/cjs/components/DatePicker/RangeDate/RangeDate.js +24 -22
- package/styled-components/cjs/components/Pagination/Pagination.js +53 -5
- package/styled-components/cjs/components/Pagination/Pagination.styles.js +39 -12
- package/styled-components/cjs/components/Pagination/Pagination.tokens.js +3 -0
- package/styled-components/cjs/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.styles.js +5 -5
- package/styled-components/cjs/components/Popover/Popover.js +3 -1
- package/styled-components/cjs/components/Select/Select.js +26 -9
- package/styled-components/cjs/components/Select/hooks/usePathMaps.js +2 -5
- package/styled-components/cjs/components/Select/ui/Target/Target.js +1 -2
- package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +32 -71
- package/styled-components/cjs/components/Select/utils/index.js +0 -4
- package/styled-components/cjs/components/Switch/Switch.js +4 -2
- package/styled-components/cjs/components/Switch/Switch.styles.js +9 -8
- package/styled-components/cjs/components/Switch/Switch.tokens.js +2 -1
- package/styled-components/cjs/components/TextField/TextField.js +19 -3
- package/styled-components/cjs/components/TextField/ui/TextFieldChipNew/TextFieldChipNew.js +78 -0
- package/styled-components/cjs/components/TextField/ui/TextFieldChipNew/TextFieldChipNew.styles.js +114 -0
- package/styled-components/cjs/components/TextField/ui/index.js +12 -3
- package/styled-components/cjs/components/Tree/Tree.styles.js +9 -9
- package/styled-components/cjs/examples/components/Combobox/Combobox.js +15 -0
- package/styled-components/cjs/examples/components/Pagination/Pagination.config.js +18 -11
- package/styled-components/cjs/examples/components/Range/Range.config.js +46 -0
- package/styled-components/es/components/CodeField/CodeField.js +64 -26
- package/styled-components/es/components/CodeField/CodeField.styles.js +11 -5
- package/styled-components/es/components/CodeField/hooks/useWebOTP.js +236 -0
- package/styled-components/es/components/CodeField/utils/handleCodeError.js +2 -2
- package/styled-components/es/components/CodeField/utils/handleItemError.js +12 -3
- package/styled-components/es/components/CodeField/utils/index.js +1 -0
- package/styled-components/es/components/CodeField/utils/isWebOTPSupported.js +3 -0
- package/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +58 -65
- package/styled-components/es/components/Combobox/ComboboxNew/hooks/getPathMaps.js +2 -5
- package/styled-components/es/components/Combobox/ComboboxNew/utils/index.js +0 -1
- package/styled-components/es/components/DatePicker/RangeDate/RangeDate.js +24 -22
- package/styled-components/es/components/Pagination/Pagination.js +55 -7
- package/styled-components/es/components/Pagination/Pagination.styles.js +34 -13
- package/styled-components/es/components/Pagination/Pagination.tokens.js +3 -0
- package/styled-components/es/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.styles.js +5 -5
- package/styled-components/es/components/Popover/Popover.js +4 -2
- package/styled-components/es/components/Select/Select.js +26 -9
- package/styled-components/es/components/Select/hooks/usePathMaps.js +2 -5
- package/styled-components/es/components/Select/ui/Target/Target.js +1 -2
- package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.js +33 -72
- package/styled-components/es/components/Select/utils/index.js +0 -1
- package/styled-components/es/components/Switch/Switch.js +4 -2
- package/styled-components/es/components/Switch/Switch.styles.js +9 -8
- package/styled-components/es/components/Switch/Switch.tokens.js +2 -1
- package/styled-components/es/components/TextField/TextField.js +20 -4
- package/styled-components/es/components/TextField/ui/TextFieldChipNew/TextFieldChipNew.js +63 -0
- package/styled-components/es/components/TextField/ui/TextFieldChipNew/TextFieldChipNew.styles.js +92 -0
- package/styled-components/es/components/TextField/ui/index.js +1 -0
- package/styled-components/es/components/Tree/Tree.styles.js +9 -9
- package/styled-components/es/examples/components/Combobox/Combobox.js +0 -7
- package/styled-components/es/examples/components/Pagination/Pagination.config.js +18 -11
- package/styled-components/es/examples/components/Range/Range.config.js +46 -0
- package/types/components/CodeField/CodeField.d.ts.map +1 -1
- package/types/components/CodeField/CodeField.styles.d.ts +1 -0
- package/types/components/CodeField/CodeField.styles.d.ts.map +1 -1
- package/types/components/CodeField/hooks/useWebOTP.d.ts +20 -0
- package/types/components/CodeField/hooks/useWebOTP.d.ts.map +1 -0
- package/types/components/CodeField/utils/handleCodeError.d.ts +2 -2
- package/types/components/CodeField/utils/handleCodeError.d.ts.map +1 -1
- package/types/components/CodeField/utils/handleItemError.d.ts +3 -2
- package/types/components/CodeField/utils/handleItemError.d.ts.map +1 -1
- package/types/components/CodeField/utils/index.d.ts +1 -0
- package/types/components/CodeField/utils/index.d.ts.map +1 -1
- package/types/components/CodeField/utils/isWebOTPSupported.d.ts +2 -0
- package/types/components/CodeField/utils/isWebOTPSupported.d.ts.map +1 -0
- package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/hooks/getPathMaps.d.ts +1 -2
- package/types/components/Combobox/ComboboxNew/hooks/getPathMaps.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/utils/index.d.ts +0 -1
- package/types/components/Combobox/ComboboxNew/utils/index.d.ts.map +1 -1
- package/types/components/DatePicker/RangeDate/RangeDate.d.ts.map +1 -1
- package/types/components/Pagination/Pagination.d.ts.map +1 -1
- package/types/components/Pagination/Pagination.styles.d.ts +2 -0
- package/types/components/Pagination/Pagination.styles.d.ts.map +1 -1
- package/types/components/Pagination/Pagination.tokens.d.ts +3 -0
- package/types/components/Pagination/Pagination.tokens.d.ts.map +1 -1
- package/types/components/Pagination/Pagination.types.d.ts +6 -0
- package/types/components/Pagination/Pagination.types.d.ts.map +1 -1
- package/types/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.styles.d.ts.map +1 -1
- package/types/components/Popover/Popover.d.ts.map +1 -1
- package/types/components/Select/Select.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/ui/Target/Target.d.ts +0 -1
- package/types/components/Select/ui/Target/Target.d.ts.map +1 -1
- package/types/components/Select/ui/Target/Target.types.d.ts +1 -2
- package/types/components/Select/ui/Target/Target.types.d.ts.map +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.types.d.ts +1 -1
- package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts.map +1 -1
- package/types/components/Select/utils/index.d.ts +0 -1
- package/types/components/Select/utils/index.d.ts.map +1 -1
- package/types/components/Switch/Switch.d.ts.map +1 -1
- package/types/components/Switch/Switch.styles.d.ts.map +1 -1
- package/types/components/Switch/Switch.tokens.d.ts +1 -0
- package/types/components/Switch/Switch.tokens.d.ts.map +1 -1
- package/types/components/Switch/Switch.types.d.ts +5 -0
- package/types/components/Switch/Switch.types.d.ts.map +1 -1
- package/types/components/TextField/TextField.d.ts.map +1 -1
- package/types/components/TextField/ui/TextFieldChipNew/TextFieldChipNew.d.ts +21 -0
- package/types/components/TextField/ui/TextFieldChipNew/TextFieldChipNew.d.ts.map +1 -0
- package/types/components/TextField/ui/TextFieldChipNew/TextFieldChipNew.styles.d.ts +3 -0
- package/types/components/TextField/ui/TextFieldChipNew/TextFieldChipNew.styles.d.ts.map +1 -0
- package/types/components/TextField/ui/index.d.ts +1 -0
- package/types/components/TextField/ui/index.d.ts.map +1 -1
- package/types/examples/components/Pagination/Pagination.config.d.ts.map +1 -1
- package/types/examples/components/Range/Range.config.d.ts +1 -0
- package/types/examples/components/Range/Range.config.d.ts.map +1 -1
- package/types/examples/components/Range/Range.d.ts +1 -0
- package/types/examples/components/Range/Range.d.ts.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/utils/getRemovedElement.js +0 -17
- package/cjs/components/Combobox/ComboboxNew/utils/getRemovedElement.js.map +0 -1
- package/cjs/components/Select/utils/getRemovedElement.js +0 -17
- package/cjs/components/Select/utils/getRemovedElement.js.map +0 -1
- package/cjs/components/Tree/Tree.styles_1dzmptg.css +0 -8
- package/emotion/cjs/components/Combobox/ComboboxNew/utils/getRemovedElement.js +0 -20
- package/emotion/cjs/components/Select/utils/getRemovedElement.js +0 -20
- package/emotion/es/components/Combobox/ComboboxNew/utils/getRemovedElement.js +0 -10
- package/emotion/es/components/Select/utils/getRemovedElement.js +0 -10
- package/es/components/Combobox/ComboboxNew/utils/getRemovedElement.js +0 -13
- package/es/components/Combobox/ComboboxNew/utils/getRemovedElement.js.map +0 -1
- package/es/components/Select/utils/getRemovedElement.js +0 -13
- package/es/components/Select/utils/getRemovedElement.js.map +0 -1
- package/es/components/Tree/Tree.styles_1dzmptg.css +0 -8
- package/styled-components/cjs/components/Combobox/ComboboxNew/utils/getRemovedElement.js +0 -20
- package/styled-components/cjs/components/Select/utils/getRemovedElement.js +0 -20
- package/styled-components/es/components/Combobox/ComboboxNew/utils/getRemovedElement.js +0 -10
- package/styled-components/es/components/Select/utils/getRemovedElement.js +0 -10
- package/types/components/Combobox/ComboboxNew/utils/getRemovedElement.d.ts +0 -2
- package/types/components/Combobox/ComboboxNew/utils/getRemovedElement.d.ts.map +0 -1
- package/types/components/Select/utils/getRemovedElement.d.ts +0 -2
- package/types/components/Select/utils/getRemovedElement.d.ts.map +0 -1
|
@@ -17,6 +17,7 @@ _export(exports, {
|
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
var _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
20
|
+
var _plasmacore = require("@salutejs/plasma-core");
|
|
20
21
|
var _utils = require("../../utils");
|
|
21
22
|
var _Paginationstyles = require("./Pagination.styles");
|
|
22
23
|
var _utils1 = require("./utils");
|
|
@@ -170,9 +171,11 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
170
171
|
}
|
|
171
172
|
var paginationRoot = function(Root) {
|
|
172
173
|
return /*#__PURE__*/ (0, _react.forwardRef)(function(_param, ref) {
|
|
173
|
-
var outerValue = _param.value, defaultValue = _param.defaultValue, outerPerPage = _param.perPage, defaultPerPage = _param.defaultPerPage, _param_slots = _param.slots, slots = _param_slots === void 0 ? _utils1.defaultValues.slots : _param_slots, view = _param.view, viewCurrentPage = _param.viewCurrentPage, _param_type = _param.type, type = _param_type === void 0 ? _utils1.defaultValues.type : _param_type, size = _param.size, _param_pilled = _param.pilled, pilled = _param_pilled === void 0 ? _utils1.defaultValues.pilled : _param_pilled, _param_square = _param.square, square = _param_square === void 0 ? _utils1.defaultValues.square : _param_square, _param_disabledPages = _param.disabledPages, disabledPages = _param_disabledPages === void 0 ? _utils1.defaultValues.disabledPages : _param_disabledPages, _param_count = _param.count, count = _param_count === void 0 ? _utils1.defaultValues.value : _param_count, _param_hasQuickJump = _param.hasQuickJump, hasQuickJump = _param_hasQuickJump === void 0 ? _utils1.defaultValues.hasQuickJump : _param_hasQuickJump, _param_hasPerPage = _param.hasPerPage, hasPerPage = _param_hasPerPage === void 0 ? _utils1.defaultValues.hasPerPage : _param_hasPerPage, _param_perPageList = _param.perPageList, perPageList = _param_perPageList === void 0 ? _utils1.defaultValues.perPageList : _param_perPageList, _param_isCommonButtonStyles = _param.isCommonButtonStyles, isCommonButtonStyles = _param_isCommonButtonStyles === void 0 ? _utils1.defaultValues.isCommonButtonStyles : _param_isCommonButtonStyles, _param_placeholderQuickJump = _param.placeholderQuickJump, placeholderQuickJump = _param_placeholderQuickJump === void 0 ? _utils1.defaultValues.placeholderQuickJump : _param_placeholderQuickJump, _param_textQuickJump = _param.textQuickJump, textQuickJump = _param_textQuickJump === void 0 ? _utils1.defaultValues.textQuickJump : _param_textQuickJump, _param_textPerPage = _param.textPerPage, textPerPage = _param_textPerPage === void 0 ? _utils1.defaultValues.textPerPage : _param_textPerPage, leftContent = _param.leftContent, rightContent = _param.rightContent, _param_listWidth = _param.listWidth, listWidth = _param_listWidth === void 0 ? 'fit-content' : _param_listWidth, onChangePageValue = _param.onChangePageValue, onChangePerPageValue = _param.onChangePerPageValue, onChange = _param.onChange, rest = _object_without_properties(_param, [
|
|
174
|
+
var outerValue = _param.value, defaultValue = _param.defaultValue, helperText = _param.helperText, singleLine = _param.singleLine, outerPerPage = _param.perPage, defaultPerPage = _param.defaultPerPage, _param_slots = _param.slots, slots = _param_slots === void 0 ? _utils1.defaultValues.slots : _param_slots, view = _param.view, viewCurrentPage = _param.viewCurrentPage, _param_type = _param.type, type = _param_type === void 0 ? _utils1.defaultValues.type : _param_type, size = _param.size, _param_pilled = _param.pilled, pilled = _param_pilled === void 0 ? _utils1.defaultValues.pilled : _param_pilled, _param_square = _param.square, square = _param_square === void 0 ? _utils1.defaultValues.square : _param_square, _param_disabledPages = _param.disabledPages, disabledPages = _param_disabledPages === void 0 ? _utils1.defaultValues.disabledPages : _param_disabledPages, _param_count = _param.count, count = _param_count === void 0 ? _utils1.defaultValues.value : _param_count, _param_hasQuickJump = _param.hasQuickJump, hasQuickJump = _param_hasQuickJump === void 0 ? _utils1.defaultValues.hasQuickJump : _param_hasQuickJump, _param_hasPerPage = _param.hasPerPage, hasPerPage = _param_hasPerPage === void 0 ? _utils1.defaultValues.hasPerPage : _param_hasPerPage, _param_perPageList = _param.perPageList, perPageList = _param_perPageList === void 0 ? _utils1.defaultValues.perPageList : _param_perPageList, _param_isCommonButtonStyles = _param.isCommonButtonStyles, isCommonButtonStyles = _param_isCommonButtonStyles === void 0 ? _utils1.defaultValues.isCommonButtonStyles : _param_isCommonButtonStyles, _param_placeholderQuickJump = _param.placeholderQuickJump, placeholderQuickJump = _param_placeholderQuickJump === void 0 ? _utils1.defaultValues.placeholderQuickJump : _param_placeholderQuickJump, _param_textQuickJump = _param.textQuickJump, textQuickJump = _param_textQuickJump === void 0 ? _utils1.defaultValues.textQuickJump : _param_textQuickJump, _param_textPerPage = _param.textPerPage, textPerPage = _param_textPerPage === void 0 ? _utils1.defaultValues.textPerPage : _param_textPerPage, leftContent = _param.leftContent, rightContent = _param.rightContent, _param_listWidth = _param.listWidth, listWidth = _param_listWidth === void 0 ? 'fit-content' : _param_listWidth, onChangePageValue = _param.onChangePageValue, onChangePerPageValue = _param.onChangePerPageValue, onChange = _param.onChange, rest = _object_without_properties(_param, [
|
|
174
175
|
"value",
|
|
175
176
|
"defaultValue",
|
|
177
|
+
"helperText",
|
|
178
|
+
"singleLine",
|
|
176
179
|
"perPage",
|
|
177
180
|
"defaultPerPage",
|
|
178
181
|
"slots",
|
|
@@ -202,11 +205,16 @@ var paginationRoot = function(Root) {
|
|
|
202
205
|
var pageValue = outerValue !== null && outerValue !== void 0 ? outerValue : pageInner;
|
|
203
206
|
var _useState1 = _sliced_to_array((0, _react.useState)(hasPerPage ? defaultPerPage || _utils1.defaultValues.perPage : undefined), 2), perPageInner = _useState1[0], setPerPageInner = _useState1[1];
|
|
204
207
|
var perPageValue = outerPerPage !== null && outerPerPage !== void 0 ? outerPerPage : perPageInner;
|
|
208
|
+
var pagesRef = (0, _react.useRef)(null);
|
|
209
|
+
var _useState2 = _sliced_to_array((0, _react.useState)(0), 2), pagesWidth = _useState2[0], setPagesWidth = _useState2[1];
|
|
210
|
+
var _useState3 = _sliced_to_array((0, _react.useState)(0), 2), rootWidth = _useState3[0], setRootWidth = _useState3[1];
|
|
211
|
+
var rootRef = (0, _react.useRef)(null);
|
|
212
|
+
var forkRef = (0, _plasmacore.useForkRef)(rootRef, ref);
|
|
205
213
|
var pages = Math.ceil(count / (perPageValue || 1));
|
|
206
214
|
var sections = (0, _utils1.getSections)(pageValue, pages, slots);
|
|
207
215
|
var typeClass = _Paginationtokens.classes["".concat(type, "Type")];
|
|
208
216
|
var roundedClass = pilled ? 'circle-circle' : 'square-square';
|
|
209
|
-
var withHasPerPageSelect = hasPerPage ? _Paginationtokens.classes.withHasPerPageSelect : undefined;
|
|
217
|
+
var withHasPerPageSelect = hasPerPage && !helperText ? _Paginationtokens.classes.withHasPerPageSelect : undefined;
|
|
210
218
|
var withHasQuickJump = hasQuickJump ? _Paginationtokens.classes.withHasQuickJump : undefined;
|
|
211
219
|
var disabled = disabledPages.map(function(el) {
|
|
212
220
|
return (0, _utils.isNumber)(el) ? Number(el) : null;
|
|
@@ -244,15 +252,43 @@ var paginationRoot = function(Root) {
|
|
|
244
252
|
var isActiveButton = function(checkPage) {
|
|
245
253
|
return pageValue === checkPage ? _Paginationtokens.classes.paginationPageButtonActive : '';
|
|
246
254
|
};
|
|
255
|
+
(0, _react.useEffect)(function() {
|
|
256
|
+
var observers = [];
|
|
257
|
+
if (pagesRef.current) {
|
|
258
|
+
var pagesObserver = new ResizeObserver(function(entries) {
|
|
259
|
+
var newWidth = entries[0].contentRect.width;
|
|
260
|
+
setPagesWidth(newWidth);
|
|
261
|
+
});
|
|
262
|
+
pagesObserver.observe(pagesRef.current);
|
|
263
|
+
observers.push(pagesObserver);
|
|
264
|
+
}
|
|
265
|
+
if (rootRef.current) {
|
|
266
|
+
var rootObserver = new ResizeObserver(function(entries) {
|
|
267
|
+
var newWidth = entries[0].contentRect.width;
|
|
268
|
+
setRootWidth(newWidth);
|
|
269
|
+
});
|
|
270
|
+
rootObserver.observe(rootRef.current);
|
|
271
|
+
observers.push(rootObserver);
|
|
272
|
+
}
|
|
273
|
+
return function() {
|
|
274
|
+
observers.forEach(function(observer) {
|
|
275
|
+
return observer.disconnect();
|
|
276
|
+
});
|
|
277
|
+
};
|
|
278
|
+
}, [
|
|
279
|
+
type
|
|
280
|
+
]);
|
|
247
281
|
return /*#__PURE__*/ _react.default.createElement(Root, _object_spread({
|
|
248
282
|
size: size,
|
|
249
283
|
view: view,
|
|
250
284
|
viewCurrentPage: viewCurrentPage,
|
|
251
285
|
className: (0, _utils.cx)(_Paginationtokens.classes.wrapper, typeClass),
|
|
252
|
-
ref:
|
|
286
|
+
ref: forkRef
|
|
253
287
|
}, rest), /*#__PURE__*/ _react.default.createElement(_Paginationstyles.PaginationRoot, {
|
|
254
288
|
className: typeClass
|
|
255
|
-
}, /*#__PURE__*/ _react.default.createElement(_Paginationstyles.PaginationPages,
|
|
289
|
+
}, /*#__PURE__*/ _react.default.createElement(_Paginationstyles.PaginationPages, {
|
|
290
|
+
ref: pagesRef
|
|
291
|
+
}, leftContent && /*#__PURE__*/ _react.default.createElement(_Paginationstyles.PaginationButtonGroup, {
|
|
256
292
|
isCommonButtonStyles: isCommonButtonStyles
|
|
257
293
|
}, leftContent), sections && sections.map(function(section, indexSection) {
|
|
258
294
|
return /*#__PURE__*/ _react.default.createElement(_react.Fragment, {
|
|
@@ -276,12 +312,24 @@ var paginationRoot = function(Root) {
|
|
|
276
312
|
}), rightContent && /*#__PURE__*/ _react.default.createElement(_Paginationstyles.PaginationButtonGroup, {
|
|
277
313
|
isCommonButtonStyles: isCommonButtonStyles
|
|
278
314
|
}, rightContent)), /*#__PURE__*/ _react.default.createElement(_Paginationstyles.PaginationActions, {
|
|
315
|
+
style: type === 'compact' ? {
|
|
316
|
+
minWidth: '0px'
|
|
317
|
+
} : {
|
|
318
|
+
width: "calc(100% - ".concat(pagesWidth, "px)")
|
|
319
|
+
},
|
|
279
320
|
className: (0, _utils.cx)(_Paginationtokens.classes.actions, typeClass, withHasPerPageSelect, withHasQuickJump)
|
|
321
|
+
}, /*#__PURE__*/ _react.default.createElement(_Paginationstyles.PaginationActionsLeft, {
|
|
322
|
+
className: typeClass
|
|
280
323
|
}, hasQuickJump && /*#__PURE__*/ _react.default.createElement(_PaginationQuickJumpToPage.PaginationQuickJumpToPage, {
|
|
281
324
|
placeholderQuickJump: placeholderQuickJump,
|
|
282
325
|
textQuickJump: textQuickJump,
|
|
283
326
|
onChangeValue: handleSetPage
|
|
284
|
-
}),
|
|
327
|
+
}), helperText && /*#__PURE__*/ _react.default.createElement(_Paginationstyles.PaginationHelperText, {
|
|
328
|
+
className: (0, _utils.cx)(typeClass, singleLine ? _Paginationtokens.classes.ellipsisText : ''),
|
|
329
|
+
style: {
|
|
330
|
+
maxWidth: rootWidth
|
|
331
|
+
}
|
|
332
|
+
}, helperText)), hasPerPage && /*#__PURE__*/ _react.default.createElement(_PaginationSelectPerPage.PaginationSelectPerPage, {
|
|
285
333
|
textPerPage: textPerPage,
|
|
286
334
|
perPageValue: perPageValue,
|
|
287
335
|
perPageList: perPageList,
|
|
@@ -12,12 +12,18 @@ _export(exports, {
|
|
|
12
12
|
get PaginationActions () {
|
|
13
13
|
return PaginationActions;
|
|
14
14
|
},
|
|
15
|
+
get PaginationActionsLeft () {
|
|
16
|
+
return PaginationActionsLeft;
|
|
17
|
+
},
|
|
15
18
|
get PaginationButton () {
|
|
16
19
|
return PaginationButton;
|
|
17
20
|
},
|
|
18
21
|
get PaginationButtonGroup () {
|
|
19
22
|
return PaginationButtonGroup;
|
|
20
23
|
},
|
|
24
|
+
get PaginationHelperText () {
|
|
25
|
+
return PaginationHelperText;
|
|
26
|
+
},
|
|
21
27
|
get PaginationPages () {
|
|
22
28
|
return PaginationPages;
|
|
23
29
|
},
|
|
@@ -48,37 +54,39 @@ var mergedButtonGroupConfig = (0, _engines.mergeConfig)(_ButtonGroup.buttonGroup
|
|
|
48
54
|
var ButtonGroup = (0, _engines.component)(mergedButtonGroupConfig);
|
|
49
55
|
var PaginationRoot = _styledcomponents.default.div.withConfig({
|
|
50
56
|
displayName: "Pagination.styles__PaginationRoot",
|
|
51
|
-
componentId: "sc-
|
|
57
|
+
componentId: "sc-ec0762a3-0"
|
|
52
58
|
})([
|
|
53
59
|
"display:flex;color:var(",
|
|
54
60
|
");&.",
|
|
55
|
-
"{
|
|
56
|
-
"{
|
|
61
|
+
"{flex-direction:column;gap:0.5rem;justify-content:flex-start;}&.",
|
|
62
|
+
"{width:100%;justify-content:space-between;flex:0 0 100%;gap:1rem;flex-wrap:nowrap;}"
|
|
57
63
|
], _Paginationtokens.tokens.paginationColor, _Paginationtokens.classes.compactType, _Paginationtokens.classes.defaultType);
|
|
58
64
|
var PaginationPages = _styledcomponents.default.div.withConfig({
|
|
59
65
|
displayName: "Pagination.styles__PaginationPages",
|
|
60
|
-
componentId: "sc-
|
|
66
|
+
componentId: "sc-ec0762a3-1"
|
|
61
67
|
})([
|
|
62
|
-
"display:flex;align-items:center;gap:0.25rem;
|
|
68
|
+
"display:flex;align-items:center;gap:0.25rem;flex-shrink:0;"
|
|
63
69
|
]);
|
|
64
70
|
var PaginationActions = _styledcomponents.default.div.withConfig({
|
|
65
71
|
displayName: "Pagination.styles__PaginationActions",
|
|
66
|
-
componentId: "sc-
|
|
72
|
+
componentId: "sc-ec0762a3-2"
|
|
67
73
|
})([
|
|
68
|
-
"display:flex;justify-content:space-between;flex-grow:1;gap:
|
|
74
|
+
"display:flex;justify-content:space-between;flex-grow:1;align-items:center;gap:var(",
|
|
75
|
+
");flex-shrink:1;&.",
|
|
76
|
+
"{flex-direction:row;width:100%;flex-wrap:wrap;}&.",
|
|
69
77
|
"{flex-direction:row;}&.",
|
|
70
78
|
"{flex-direction:row-reverse;}&.",
|
|
71
79
|
"{flex-direction:row;}"
|
|
72
|
-
], _Paginationtokens.classes.compactType, _Paginationtokens.classes.withHasPerPageSelect, _Paginationtokens.classes.withHasQuickJump);
|
|
80
|
+
], _Paginationtokens.tokens.paginationHelperTextGap, _Paginationtokens.classes.compactType, _Paginationtokens.classes.defaultType, _Paginationtokens.classes.withHasPerPageSelect, _Paginationtokens.classes.withHasQuickJump);
|
|
73
81
|
var PaginationSection = _styledcomponents.default.div.withConfig({
|
|
74
82
|
displayName: "Pagination.styles__PaginationSection",
|
|
75
|
-
componentId: "sc-
|
|
83
|
+
componentId: "sc-ec0762a3-3"
|
|
76
84
|
})([
|
|
77
85
|
"display:flex;gap:0.125rem;"
|
|
78
86
|
]);
|
|
79
87
|
var PaginationButtonGroup = (0, _styledcomponents.default)(ButtonGroup).withConfig({
|
|
80
88
|
displayName: "Pagination.styles__PaginationButtonGroup",
|
|
81
|
-
componentId: "sc-
|
|
89
|
+
componentId: "sc-ec0762a3-4"
|
|
82
90
|
})([
|
|
83
91
|
"",
|
|
84
92
|
":var(",
|
|
@@ -120,7 +128,7 @@ var PaginationButtonGroup = (0, _styledcomponents.default)(ButtonGroup).withConf
|
|
|
120
128
|
], _ButtonGroup.buttonGroupTokens.buttonColor, _Paginationtokens.tokens.buttonColor, _ButtonGroup.buttonGroupTokens.buttonBackgroundColor, _Paginationtokens.tokens.buttonBackgroundColor, _ButtonGroup.buttonGroupTokens.buttonColorHover, _Paginationtokens.tokens.buttonHoverColor, _ButtonGroup.buttonGroupTokens.buttonBackgroundColorHover, _Paginationtokens.tokens.buttonBackgroundColorHover, _ButtonGroup.buttonGroupTokens.buttonColorActive, _Paginationtokens.tokens.buttonActiveColor, _ButtonGroup.buttonGroupTokens.buttonBackgroundColorActive, _Paginationtokens.tokens.buttonBackgroundColorActive, _ButtonGroup.buttonGroupTokens.buttonFontFamily, _Paginationtokens.tokens.paginationFontFamily, _ButtonGroup.buttonGroupTokens.buttonFontSize, _Paginationtokens.tokens.paginationFontSize, _ButtonGroup.buttonGroupTokens.buttonFontStyle, _Paginationtokens.tokens.paginationFontStyle, _ButtonGroup.buttonGroupTokens.buttonFontWeight, _Paginationtokens.tokens.paginationFontWeight, _ButtonGroup.buttonGroupTokens.buttonLetterSpacing, _Paginationtokens.tokens.paginationLetterSpacing, _ButtonGroup.buttonGroupTokens.buttonLineHeight, _Paginationtokens.tokens.paginationLineHeight, _ButtonGroup.buttonGroupTokens.buttonWidth, _Paginationtokens.tokens.buttonWidth, _ButtonGroup.buttonGroupTokens.buttonHeight, _Paginationtokens.tokens.buttonHeight, _ButtonGroup.buttonGroupTokens.buttonDefaultRadius, _Paginationtokens.tokens.buttonRadius, _ButtonGroup.buttonGroupTokens.buttonSideRadius, _Paginationtokens.tokens.buttonRadius, _ButtonGroup.buttonGroupTokens.buttonSegmentedRadius, _Paginationtokens.tokens.buttonRadius, _ButtonGroup.buttonGroupTokens.buttonRadiusCircle, _Paginationtokens.tokens.buttonRadius);
|
|
121
129
|
var PaginationButton = (0, _styledcomponents.default)(Button).withConfig({
|
|
122
130
|
displayName: "Pagination.styles__PaginationButton",
|
|
123
|
-
componentId: "sc-
|
|
131
|
+
componentId: "sc-ec0762a3-5"
|
|
124
132
|
})([
|
|
125
133
|
"",
|
|
126
134
|
":var(",
|
|
@@ -186,10 +194,29 @@ var PaginationButton = (0, _styledcomponents.default)(Button).withConfig({
|
|
|
186
194
|
}));
|
|
187
195
|
var PaginationShorter = (0, _styledcomponents.default)(PaginationButton).withConfig({
|
|
188
196
|
displayName: "Pagination.styles__PaginationShorter",
|
|
189
|
-
componentId: "sc-
|
|
197
|
+
componentId: "sc-ec0762a3-6"
|
|
190
198
|
})([
|
|
191
199
|
"",
|
|
192
200
|
":var(",
|
|
193
201
|
");",
|
|
194
202
|
":0;"
|
|
195
203
|
], _Button.buttonTokens.buttonWidth, _Paginationtokens.tokens.buttonWidthShorter, _Button.buttonTokens.buttonPadding);
|
|
204
|
+
var PaginationActionsLeft = _styledcomponents.default.div.withConfig({
|
|
205
|
+
displayName: "Pagination.styles__PaginationActionsLeft",
|
|
206
|
+
componentId: "sc-ec0762a3-7"
|
|
207
|
+
})([
|
|
208
|
+
"display:flex;align-items:center;flex-wrap:wrap;gap:var(",
|
|
209
|
+
");.",
|
|
210
|
+
" &{min-width:0;flex-wrap:nowrap;flex-shrink:1;}"
|
|
211
|
+
], _Paginationtokens.tokens.paginationHelperTextGap, _Paginationtokens.classes.defaultType);
|
|
212
|
+
var PaginationHelperText = _styledcomponents.default.div.withConfig({
|
|
213
|
+
displayName: "Pagination.styles__PaginationHelperText",
|
|
214
|
+
componentId: "sc-ec0762a3-8"
|
|
215
|
+
})([
|
|
216
|
+
"color:var(",
|
|
217
|
+
");&.",
|
|
218
|
+
"{min-width:0;",
|
|
219
|
+
" flex-shrink:1;}&.",
|
|
220
|
+
"{",
|
|
221
|
+
"}"
|
|
222
|
+
], _Paginationtokens.tokens.paginationHelperTextColor, _Paginationtokens.classes.defaultType, (0, _mixins.applyEllipsis)(), _Paginationtokens.classes.ellipsisText, (0, _mixins.applyEllipsis)());
|
|
@@ -22,6 +22,7 @@ var classes = {
|
|
|
22
22
|
actions: 'pagination-actions',
|
|
23
23
|
perPage: 'pagination-perpage-select',
|
|
24
24
|
quickJump: 'pagination-quick-jump-page',
|
|
25
|
+
ellipsisText: 'pagination-ellipsis-text',
|
|
25
26
|
selectWrapper: 'pagination-select-wrapper',
|
|
26
27
|
defaultType: 'pagination-type-default',
|
|
27
28
|
compactType: 'pagination-type-compact',
|
|
@@ -35,6 +36,8 @@ var classes = {
|
|
|
35
36
|
var tokens = {
|
|
36
37
|
paginationWidth: '--plasma-pagination-width',
|
|
37
38
|
paginationColor: '--plasma-pagination-color',
|
|
39
|
+
paginationHelperTextColor: '--plasma-pagination-helper-text-color',
|
|
40
|
+
paginationHelperTextGap: '--plasma-pagination-helper-text-gap',
|
|
38
41
|
buttonBackgroundColor: '--plasma-pagination-button-bg-color',
|
|
39
42
|
buttonBackgroundColorHover: '--plasma-pagination-button-bg-color-hover',
|
|
40
43
|
buttonBackgroundColorActive: '--plasma-pagination-button-bg-color-active',
|
|
@@ -28,9 +28,9 @@ function _interop_require_default(obj) {
|
|
|
28
28
|
}
|
|
29
29
|
var QuickJumpToPageRoot = _styledcomponents.default.div.withConfig({
|
|
30
30
|
displayName: "PaginationQuickJumpToPage.styles__QuickJumpToPageRoot",
|
|
31
|
-
componentId: "sc-
|
|
31
|
+
componentId: "sc-d437c7e1-0"
|
|
32
32
|
})([
|
|
33
|
-
"display:flex;align-items:center;gap:0.5rem;font-family:var(",
|
|
33
|
+
"display:flex;align-items:center;gap:0.5rem;flex-shrink:0;font-family:var(",
|
|
34
34
|
");font-size:var(",
|
|
35
35
|
");font-style:var(",
|
|
36
36
|
");font-weight:var(",
|
|
@@ -40,13 +40,13 @@ var QuickJumpToPageRoot = _styledcomponents.default.div.withConfig({
|
|
|
40
40
|
], _Paginationtokens.tokens.paginationFontFamily, _Paginationtokens.tokens.paginationFontSize, _Paginationtokens.tokens.paginationFontStyle, _Paginationtokens.tokens.paginationFontWeight, _Paginationtokens.tokens.paginationLetterSpacing, _Paginationtokens.tokens.paginationLineHeight);
|
|
41
41
|
var QuickJumpToPageTypography = _styledcomponents.default.div.withConfig({
|
|
42
42
|
displayName: "PaginationQuickJumpToPage.styles__QuickJumpToPageTypography",
|
|
43
|
-
componentId: "sc-
|
|
43
|
+
componentId: "sc-d437c7e1-1"
|
|
44
44
|
})([
|
|
45
|
-
""
|
|
45
|
+
"white-space:nowrap;"
|
|
46
46
|
]);
|
|
47
47
|
var QuickJumpToPageInput = _styledcomponents.default.input.withConfig({
|
|
48
48
|
displayName: "PaginationQuickJumpToPage.styles__QuickJumpToPageInput",
|
|
49
|
-
componentId: "sc-
|
|
49
|
+
componentId: "sc-d437c7e1-2"
|
|
50
50
|
})([
|
|
51
51
|
"background:var(",
|
|
52
52
|
");color:var(",
|
|
@@ -238,6 +238,7 @@ var popoverRoot = function(Root) {
|
|
|
238
238
|
var portalRef = (0, _react.useRef)(null);
|
|
239
239
|
var targetRef = (0, _react.useRef)(null);
|
|
240
240
|
var trapRef = (0, _hooks.useFocusTrap)(innerIsOpen && isFocusTrapped);
|
|
241
|
+
var uuid = (0, _utils.safeUseId)();
|
|
241
242
|
var popoverForkRef = (0, _plasmacore.useForkRef)(popoverRef, trapRef);
|
|
242
243
|
var _useState = _sliced_to_array((0, _react.useState)(null), 2), arrowElement = _useState[0], setArrowElement = _useState[1];
|
|
243
244
|
var _useState1 = _sliced_to_array((0, _react.useState)(false), 2), forceRender = _useState1[1];
|
|
@@ -388,8 +389,9 @@ var popoverRoot = function(Root) {
|
|
|
388
389
|
portal = rootRef.current;
|
|
389
390
|
}
|
|
390
391
|
if (!portal) {
|
|
392
|
+
var portalId = "".concat(POPOVER_PORTAL_ID, "-").concat(uuid);
|
|
391
393
|
portal = document.createElement('div');
|
|
392
|
-
portal.setAttribute('id',
|
|
394
|
+
portal.setAttribute('id', portalId);
|
|
393
395
|
if (typeof frame === 'string' && frame !== 'document') {
|
|
394
396
|
var _document_getElementById;
|
|
395
397
|
(_document_getElementById = document.getElementById(frame)) === null || _document_getElementById === void 0 ? void 0 : _document_getElementById.appendChild(portal);
|
|
@@ -256,7 +256,7 @@ var selectRoot = function(Root) {
|
|
|
256
256
|
items
|
|
257
257
|
]);
|
|
258
258
|
// Создаем структуры для быстрой работы с деревом
|
|
259
|
-
var _usePathMaps1 = _sliced_to_array((0, _usePathMaps.usePathMaps)(transformedItems),
|
|
259
|
+
var _usePathMaps1 = _sliced_to_array((0, _usePathMaps.usePathMaps)(transformedItems), 4), pathMap = _usePathMaps1[0], focusedToValueMap = _usePathMaps1[1], valueToCheckedMap = _usePathMaps1[2], valueToItemMap = _usePathMaps1[3];
|
|
260
260
|
var _useState = _sliced_to_array((0, _react.useState)(props.multiselect ? [] : ''), 2), internalValue = _useState[0], setInternalValue = _useState[1];
|
|
261
261
|
var value = outerValue !== null && outerValue !== undefined ? outerValue : internalValue;
|
|
262
262
|
var floatingPopoverRef = (0, _react.useRef)(null);
|
|
@@ -344,14 +344,32 @@ var selectRoot = function(Root) {
|
|
|
344
344
|
return;
|
|
345
345
|
}
|
|
346
346
|
var checkedCopy = new Map(checked);
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
347
|
+
switch(checkedCopy.get(item.value)){
|
|
348
|
+
// Если чекбокс в состоянии indeterminate
|
|
349
|
+
case 'indeterminate':
|
|
350
|
+
{
|
|
351
|
+
(0, _utils1.updateDescendants)(item, checkedCopy, true, valueToItemMap);
|
|
352
|
+
break;
|
|
353
|
+
}
|
|
354
|
+
// Если чекбокс в состоянии checked
|
|
355
|
+
case true:
|
|
356
|
+
{
|
|
357
|
+
(0, _utils1.updateDescendants)(item, checkedCopy, false, valueToItemMap);
|
|
358
|
+
checkedCopy.set(item.value, false);
|
|
359
|
+
break;
|
|
360
|
+
}
|
|
361
|
+
// Если чекбокс в состоянии unchecked
|
|
362
|
+
case false:
|
|
363
|
+
{
|
|
364
|
+
(0, _utils1.updateDescendants)(item, checkedCopy, true, valueToItemMap);
|
|
365
|
+
checkedCopy.set(item.value, true);
|
|
366
|
+
break;
|
|
367
|
+
}
|
|
368
|
+
default:
|
|
369
|
+
{
|
|
370
|
+
break;
|
|
371
|
+
}
|
|
353
372
|
}
|
|
354
|
-
(0, _utils1.updateAncestors)(item, checkedCopy);
|
|
355
373
|
var newValues = [];
|
|
356
374
|
valueToItemMap.forEach(function(item, key) {
|
|
357
375
|
if (checkedCopy.get(key)) {
|
|
@@ -542,7 +560,6 @@ var selectRoot = function(Root) {
|
|
|
542
560
|
activeDescendantItemValue: activeDescendantItemValue,
|
|
543
561
|
isTargetAmount: isTargetAmount,
|
|
544
562
|
onChange: onChange,
|
|
545
|
-
labelToItemMap: labelToItemMap,
|
|
546
563
|
chipView: chipView,
|
|
547
564
|
separator: separator,
|
|
548
565
|
requiredProps: requiredProps,
|
|
@@ -14,18 +14,16 @@ var usePathMaps = function(items) {
|
|
|
14
14
|
var focusedToValueMap = new Map();
|
|
15
15
|
var valueToCheckedMap = new Map();
|
|
16
16
|
var valueToItemMap = new Map();
|
|
17
|
-
var labelToItemMap = new Map();
|
|
18
17
|
pathMap.set('root', (items === null || items === void 0 ? void 0 : items.length) || 0);
|
|
19
18
|
var rec = function(items) {
|
|
20
19
|
var prevIndex = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : '';
|
|
21
20
|
items === null || items === void 0 ? void 0 : items.forEach(function(item, index) {
|
|
22
|
-
var value = item.value,
|
|
21
|
+
var value = item.value, innerItems = item.items;
|
|
23
22
|
var currIndex = "".concat(prevIndex, "/").concat(index).replace(/^(\/)/, '');
|
|
24
23
|
focusedToValueMap.set(currIndex, item);
|
|
25
24
|
valueToCheckedMap.set(value, false);
|
|
26
25
|
if ((0, _utils.isEmpty)(innerItems) || !innerItems) {
|
|
27
26
|
valueToItemMap.set(value, item);
|
|
28
|
-
labelToItemMap.set(label, item);
|
|
29
27
|
} else {
|
|
30
28
|
pathMap.set(value, innerItems.length);
|
|
31
29
|
rec(innerItems, currIndex);
|
|
@@ -37,7 +35,6 @@ var usePathMaps = function(items) {
|
|
|
37
35
|
pathMap,
|
|
38
36
|
focusedToValueMap,
|
|
39
37
|
valueToCheckedMap,
|
|
40
|
-
valueToItemMap
|
|
41
|
-
labelToItemMap
|
|
38
|
+
valueToItemMap
|
|
42
39
|
];
|
|
43
40
|
};
|
|
@@ -53,7 +53,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
53
53
|
return newObj;
|
|
54
54
|
}
|
|
55
55
|
var Target = /*#__PURE__*/ (0, _react.forwardRef)(function(param, ref) {
|
|
56
|
-
var value = param.value, opened = param.opened, valueToItemMap = param.valueToItemMap, label = param.label, placeholder = param.placeholder, onKeyDown = param.onKeyDown, labelPlacement = param.labelPlacement, size = param.size, contentLeft = param.contentLeft, disabled = param.disabled, readOnly = param.readOnly, renderValue = param.renderValue, selectProps = param.selectProps, inputWrapperRef = param.inputWrapperRef, multiselect = param.multiselect, view = param.view, helperText = param.helperText, treeId = param.treeId, activeDescendantItemValue = param.activeDescendantItemValue, isTargetAmount = param.isTargetAmount, onChange = param.onChange,
|
|
56
|
+
var value = param.value, opened = param.opened, valueToItemMap = param.valueToItemMap, label = param.label, placeholder = param.placeholder, onKeyDown = param.onKeyDown, labelPlacement = param.labelPlacement, size = param.size, contentLeft = param.contentLeft, disabled = param.disabled, readOnly = param.readOnly, renderValue = param.renderValue, selectProps = param.selectProps, inputWrapperRef = param.inputWrapperRef, multiselect = param.multiselect, view = param.view, helperText = param.helperText, treeId = param.treeId, activeDescendantItemValue = param.activeDescendantItemValue, isTargetAmount = param.isTargetAmount, onChange = param.onChange, chipView = param.chipView, separator = param.separator, requiredProps = param.requiredProps, hintProps = param.hintProps;
|
|
57
57
|
var buttonRef = (0, _plasmacore.useForkRef)(ref, inputWrapperRef);
|
|
58
58
|
if (selectProps.renderTarget) {
|
|
59
59
|
return /*#__PURE__*/ _react.default.createElement("div", {
|
|
@@ -98,7 +98,6 @@ var Target = /*#__PURE__*/ (0, _react.forwardRef)(function(param, ref) {
|
|
|
98
98
|
valueToItemMap: valueToItemMap,
|
|
99
99
|
renderValue: renderValue,
|
|
100
100
|
onChange: onChange,
|
|
101
|
-
labelToItemMap: labelToItemMap,
|
|
102
101
|
chipView: chipView,
|
|
103
102
|
requiredProps: requiredProps,
|
|
104
103
|
hintProps: hintProps,
|
|
@@ -12,14 +12,6 @@ var _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
|
12
12
|
var _utils = require("../../../../utils");
|
|
13
13
|
var _Selecttokens = require("../../../../Select.tokens");
|
|
14
14
|
var _Textfieldstyles = require("./Textfield.styles");
|
|
15
|
-
function _array_like_to_array(arr, len) {
|
|
16
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
17
|
-
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
18
|
-
return arr2;
|
|
19
|
-
}
|
|
20
|
-
function _array_without_holes(arr) {
|
|
21
|
-
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
22
|
-
}
|
|
23
15
|
function _define_property(obj, key, value) {
|
|
24
16
|
if (key in obj) {
|
|
25
17
|
Object.defineProperty(obj, key, {
|
|
@@ -81,12 +73,6 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
81
73
|
}
|
|
82
74
|
return newObj;
|
|
83
75
|
}
|
|
84
|
-
function _iterable_to_array(iter) {
|
|
85
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
86
|
-
}
|
|
87
|
-
function _non_iterable_spread() {
|
|
88
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
89
|
-
}
|
|
90
76
|
function _object_spread(target) {
|
|
91
77
|
for(var i = 1; i < arguments.length; i++){
|
|
92
78
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -126,19 +112,8 @@ function _object_spread_props(target, source) {
|
|
|
126
112
|
}
|
|
127
113
|
return target;
|
|
128
114
|
}
|
|
129
|
-
function _to_consumable_array(arr) {
|
|
130
|
-
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
131
|
-
}
|
|
132
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
133
|
-
if (!o) return;
|
|
134
|
-
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
135
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
136
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
137
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
138
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
139
|
-
}
|
|
140
115
|
var Textfield = /*#__PURE__*/ (0, _react.forwardRef)(function(param, ref) {
|
|
141
|
-
var inputWrapperRef = param.inputWrapperRef, opened = param.opened, multiselect = param.multiselect, value = param.value, label = param.label, labelPlacement = param.labelPlacement, keepPlaceholder = param.keepPlaceholder, placeholder = param.placeholder, onKeyDown = param.onKeyDown, size = param.size, view = param.view, contentLeft = param.contentLeft, helperText = param.helperText, treeId = param.treeId, activeDescendantItemValue = param.activeDescendantItemValue, disabled = param.disabled, readOnly = param.readOnly, isTargetAmount = param.isTargetAmount, valueToItemMap = param.valueToItemMap, renderValue = param.renderValue, onChange = param.onChange,
|
|
116
|
+
var inputWrapperRef = param.inputWrapperRef, opened = param.opened, multiselect = param.multiselect, value = param.value, label = param.label, labelPlacement = param.labelPlacement, keepPlaceholder = param.keepPlaceholder, placeholder = param.placeholder, onKeyDown = param.onKeyDown, size = param.size, view = param.view, contentLeft = param.contentLeft, helperText = param.helperText, treeId = param.treeId, activeDescendantItemValue = param.activeDescendantItemValue, disabled = param.disabled, readOnly = param.readOnly, isTargetAmount = param.isTargetAmount, valueToItemMap = param.valueToItemMap, renderValue = param.renderValue, onChange = param.onChange, chipView = param.chipView, requiredProps = param.requiredProps, chipType = param.chipType, hintProps = param.hintProps;
|
|
142
117
|
var withArrowInverse = opened ? _Selecttokens.classes.arrowInverse : undefined;
|
|
143
118
|
var getValue = function() {
|
|
144
119
|
var _valueToItemMap_get;
|
|
@@ -158,58 +133,44 @@ var Textfield = /*#__PURE__*/ (0, _react.forwardRef)(function(param, ref) {
|
|
|
158
133
|
if (value.length === 0) return [];
|
|
159
134
|
if (isTargetAmount) {
|
|
160
135
|
return [
|
|
161
|
-
|
|
136
|
+
{
|
|
137
|
+
value: '_removeAll',
|
|
138
|
+
label: "Выбрано ".concat(value.length),
|
|
139
|
+
disabled: value.every(function(val) {
|
|
140
|
+
var _valueToItemMap_get;
|
|
141
|
+
return valueToItemMap === null || valueToItemMap === void 0 ? void 0 : (_valueToItemMap_get = valueToItemMap.get(val)) === null || _valueToItemMap_get === void 0 ? void 0 : _valueToItemMap_get.disabled;
|
|
142
|
+
})
|
|
143
|
+
}
|
|
162
144
|
];
|
|
163
145
|
}
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
146
|
+
return value.map(function(value) {
|
|
147
|
+
var _valueToItemMap_get, _valueToItemMap_get1;
|
|
148
|
+
var currentLabel = renderValue ? renderValue(valueToItemMap.get(value) || {
|
|
149
|
+
value: value,
|
|
150
|
+
label: value.toString()
|
|
151
|
+
}) : ((_valueToItemMap_get = valueToItemMap.get(value)) === null || _valueToItemMap_get === void 0 ? void 0 : _valueToItemMap_get.label) || value.toString();
|
|
152
|
+
return {
|
|
153
|
+
value: value,
|
|
154
|
+
label: currentLabel,
|
|
155
|
+
disabled: ((_valueToItemMap_get1 = valueToItemMap.get(value)) === null || _valueToItemMap_get1 === void 0 ? void 0 : _valueToItemMap_get1.disabled) || false
|
|
156
|
+
};
|
|
157
|
+
});
|
|
175
158
|
}
|
|
176
159
|
return [];
|
|
177
160
|
};
|
|
178
161
|
// Обработчик чипов
|
|
179
|
-
var
|
|
162
|
+
var handleChipClick = function(chip) {
|
|
180
163
|
if (!Array.isArray(value)) return;
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
var resultValues = _to_consumable_array(value);
|
|
185
|
-
value.forEach(function(_, index) {
|
|
164
|
+
if (isTargetAmount) {
|
|
165
|
+
// При закрытии чипа в режиме isTargetAmount в value оставляем только disabled-элементы
|
|
166
|
+
onChange(value.filter(function(val) {
|
|
186
167
|
var _valueToItemMap_get;
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
var labelAfterRenderValue = renderValue(label ? labelToItemMap.get(label) : {
|
|
190
|
-
value: stringValue,
|
|
191
|
-
label: stringValue.toString()
|
|
192
|
-
});
|
|
193
|
-
if (!chipLabels.includes(labelAfterRenderValue)) {
|
|
194
|
-
resultValues.splice(index, 1);
|
|
195
|
-
}
|
|
196
|
-
});
|
|
197
|
-
var removedItemValue = (0, _utils.getRemovedElement)(value, resultValues, isTargetAmount);
|
|
198
|
-
onChange(resultValues, removedItemValue ? valueToItemMap.get(removedItemValue) || {
|
|
199
|
-
value: removedItemValue,
|
|
200
|
-
label: removedItemValue.toString()
|
|
201
|
-
} : null);
|
|
168
|
+
return valueToItemMap === null || valueToItemMap === void 0 ? void 0 : (_valueToItemMap_get = valueToItemMap.get(val)) === null || _valueToItemMap_get === void 0 ? void 0 : _valueToItemMap_get.disabled;
|
|
169
|
+
}));
|
|
202
170
|
} else {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
});
|
|
207
|
-
var removedItemValue1 = (0, _utils.getRemovedElement)(value, newValues, isTargetAmount);
|
|
208
|
-
var item = removedItemValue1 ? valueToItemMap.get(removedItemValue1) || {
|
|
209
|
-
value: removedItemValue1,
|
|
210
|
-
label: removedItemValue1.toString()
|
|
211
|
-
} : null;
|
|
212
|
-
onChange(newValues, item);
|
|
171
|
+
onChange(value.filter(function(val) {
|
|
172
|
+
return val !== chip.value;
|
|
173
|
+
}), valueToItemMap.get(chip.value) || null);
|
|
213
174
|
}
|
|
214
175
|
};
|
|
215
176
|
var helperTextStopPropagation = function(event) {
|
|
@@ -248,8 +209,8 @@ var Textfield = /*#__PURE__*/ (0, _react.forwardRef)(function(param, ref) {
|
|
|
248
209
|
"aria-activedescendant": activeDescendantItemValue ? (0, _utils.getItemId)(treeId, activeDescendantItemValue) : ''
|
|
249
210
|
}, multiselect ? {
|
|
250
211
|
enumerationType: 'chip',
|
|
251
|
-
|
|
252
|
-
|
|
212
|
+
_chips: getChips(),
|
|
213
|
+
_onChipClick: handleChipClick,
|
|
253
214
|
chipType: chipType,
|
|
254
215
|
chipView: chipView
|
|
255
216
|
} : {
|
|
@@ -24,9 +24,6 @@ _export(exports, {
|
|
|
24
24
|
get getPlacement () {
|
|
25
25
|
return _getPlacement.getPlacement;
|
|
26
26
|
},
|
|
27
|
-
get getRemovedElement () {
|
|
28
|
-
return _getRemovedElement.getRemovedElement;
|
|
29
|
-
},
|
|
30
27
|
get getView () {
|
|
31
28
|
return _getView.getView;
|
|
32
29
|
},
|
|
@@ -57,4 +54,3 @@ var _getView = require("./getView");
|
|
|
57
54
|
var _getPlacement = require("./getPlacement");
|
|
58
55
|
var _getFallbackPlacements = require("./getFallbackPlacements");
|
|
59
56
|
var _getItemId = require("./getItemId");
|
|
60
|
-
var _getRemovedElement = require("./getRemovedElement");
|
|
@@ -147,7 +147,7 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
147
147
|
}
|
|
148
148
|
var switchRoot = function(Root) {
|
|
149
149
|
return /*#__PURE__*/ (0, _react.forwardRef)(function(props, ref) {
|
|
150
|
-
var size = props.size, toggleSize = props.toggleSize, view = props.view, focused = props.focused, outlined = props.outlined, disabled = props.disabled, labelPosition = props.labelPosition, label = props.label, description = props.description, id = props.id, style = props.style, className = props.className, // singleLine,
|
|
150
|
+
var size = props.size, toggleSize = props.toggleSize, view = props.view, focused = props.focused, outlined = props.outlined, disabled = props.disabled, labelPosition = props.labelPosition, label = props.label, description = props.description, _props_singleLine = props.singleLine, singleLine = _props_singleLine === void 0 ? true : _props_singleLine, id = props.id, style = props.style, className = props.className, // singleLine,
|
|
151
151
|
checked = props.checked, pressed = props.pressed, defaultChecked = props.defaultChecked, rest = _object_without_properties(props, [
|
|
152
152
|
"size",
|
|
153
153
|
"toggleSize",
|
|
@@ -158,6 +158,7 @@ var switchRoot = function(Root) {
|
|
|
158
158
|
"labelPosition",
|
|
159
159
|
"label",
|
|
160
160
|
"description",
|
|
161
|
+
"singleLine",
|
|
161
162
|
"id",
|
|
162
163
|
"style",
|
|
163
164
|
"className",
|
|
@@ -187,7 +188,8 @@ var switchRoot = function(Root) {
|
|
|
187
188
|
defaultChecked: defaultChecked,
|
|
188
189
|
disabled: disabled
|
|
189
190
|
})), /*#__PURE__*/ _react.default.createElement(_Switchstyles.StyledLabel, {
|
|
190
|
-
tabIndex: -1
|
|
191
|
+
tabIndex: -1,
|
|
192
|
+
className: singleLine ? _Switchtokens.classes.singleLine : ''
|
|
191
193
|
}, label), /*#__PURE__*/ _react.default.createElement(_Switchstyles.StyledTrigger, {
|
|
192
194
|
"aria-hidden": true
|
|
193
195
|
})), description && /*#__PURE__*/ _react.default.createElement(_Switchstyles.StyledDescription, null, description));
|