@salutejs/plasma-new-hope 0.336.0-canary.2220.17673344609.0 → 0.336.0-canary.2222.17762952669.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/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.js +11 -10
- package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
- package/cjs/components/DatePicker/RangeDate/RangeDate.js +30 -22
- package/cjs/components/DatePicker/RangeDate/RangeDate.js.map +1 -1
- package/cjs/components/Drawer/Drawer.css +2 -2
- package/cjs/components/Drawer/Drawer.js +10 -7
- package/cjs/components/Drawer/Drawer.js.map +1 -1
- package/cjs/components/Drawer/Drawer.styles.js +10 -2
- package/cjs/components/Drawer/Drawer.styles.js.map +1 -1
- package/{es/components/Drawer/Drawer.styles_h5od79.css → cjs/components/Drawer/Drawer.styles_pltzxq.css} +1 -1
- package/cjs/components/Drawer/Drawer.tokens.js +10 -0
- package/cjs/components/Drawer/Drawer.tokens.js.map +1 -1
- package/cjs/components/Pagination/Pagination.css +12 -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/{es/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.styles_89ax1q.css → cjs/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.styles_1sw6ww1.css} +2 -2
- package/cjs/components/Popover/Popover.js +4 -1
- package/cjs/components/Popover/Popover.js.map +1 -1
- package/cjs/components/Select/Select.js +12 -10
- package/cjs/components/Select/Select.js.map +1 -1
- 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/TextField/TextField.js +1 -1
- package/cjs/components/TextField/TextField.js.map +1 -1
- package/cjs/components/TextField/TextField.tokens.js +1 -0
- package/cjs/components/TextField/TextField.tokens.js.map +1 -1
- package/cjs/components/Tree/Tree.css +7 -6
- package/cjs/components/Tree/Tree.js +42 -1
- package/cjs/components/Tree/Tree.js.map +1 -1
- package/cjs/components/Tree/Tree.styles.js +17 -2
- package/cjs/components/Tree/Tree.styles.js.map +1 -1
- package/cjs/components/Tree/Tree.styles_1bw3k0r.css +8 -0
- package/cjs/components/Tree/Tree.tokens.js +5 -2
- package/cjs/components/Tree/Tree.tokens.js.map +1 -1
- package/cjs/components/Tree/utils/traverseTree.js +3 -3
- package/cjs/components/Tree/utils/traverseTree.js.map +1 -1
- package/cjs/engines/common.js.map +1 -1
- package/cjs/engines/index.js.map +1 -1
- package/cjs/index.css +34 -30
- 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 +10 -10
- package/emotion/cjs/components/DatePicker/RangeDate/RangeDate.js +24 -22
- package/emotion/cjs/components/Drawer/Drawer.js +13 -4
- package/emotion/cjs/components/Drawer/Drawer.styles.js +7 -4
- package/emotion/cjs/components/Drawer/Drawer.tokens.js +12 -0
- 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 +10 -10
- 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 +2 -2
- package/emotion/cjs/components/TextField/TextField.tokens.js +1 -0
- package/emotion/cjs/components/Tree/Tree.js +31 -1
- package/emotion/cjs/components/Tree/Tree.styles.js +23 -13
- package/emotion/cjs/components/Tree/Tree.tokens.js +5 -2
- package/emotion/cjs/components/Tree/utils/traverseTree.js +3 -3
- package/emotion/cjs/examples/components/Combobox/Combobox.js +15 -0
- package/emotion/cjs/examples/components/Pagination/Pagination.config.js +12 -12
- package/emotion/cjs/examples/components/Range/Range.config.js +8 -7
- package/emotion/cjs/examples/components/Tree/Tree.config.js +5 -5
- 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 +10 -10
- package/emotion/es/components/DatePicker/RangeDate/RangeDate.js +24 -22
- package/emotion/es/components/Drawer/Drawer.js +9 -5
- package/emotion/es/components/Drawer/Drawer.styles.js +8 -5
- package/emotion/es/components/Drawer/Drawer.tokens.js +9 -0
- 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 +10 -10
- 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 +2 -2
- package/emotion/es/components/TextField/TextField.tokens.js +1 -0
- package/emotion/es/components/Tree/Tree.js +32 -2
- package/emotion/es/components/Tree/Tree.styles.js +20 -13
- package/emotion/es/components/Tree/Tree.tokens.js +5 -2
- package/emotion/es/components/Tree/utils/traverseTree.js +3 -3
- 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/emotion/es/examples/components/Tree/Tree.config.js +5 -5
- 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.js +11 -10
- package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
- package/es/components/DatePicker/RangeDate/RangeDate.js +30 -22
- package/es/components/DatePicker/RangeDate/RangeDate.js.map +1 -1
- package/es/components/Drawer/Drawer.css +2 -2
- package/es/components/Drawer/Drawer.js +8 -6
- package/es/components/Drawer/Drawer.js.map +1 -1
- package/es/components/Drawer/Drawer.styles.js +10 -2
- package/es/components/Drawer/Drawer.styles.js.map +1 -1
- package/{cjs/components/Drawer/Drawer.styles_h5od79.css → es/components/Drawer/Drawer.styles_pltzxq.css} +1 -1
- package/es/components/Drawer/Drawer.tokens.js +10 -1
- package/es/components/Drawer/Drawer.tokens.js.map +1 -1
- package/es/components/Pagination/Pagination.css +12 -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/{cjs/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.styles_89ax1q.css → es/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.styles_1sw6ww1.css} +2 -2
- package/es/components/Popover/Popover.js +4 -1
- package/es/components/Popover/Popover.js.map +1 -1
- package/es/components/Select/Select.js +12 -10
- package/es/components/Select/Select.js.map +1 -1
- 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/TextField/TextField.js +1 -1
- package/es/components/TextField/TextField.js.map +1 -1
- package/es/components/TextField/TextField.tokens.js +1 -0
- package/es/components/TextField/TextField.tokens.js.map +1 -1
- package/es/components/Tree/Tree.css +7 -6
- package/es/components/Tree/Tree.js +43 -2
- package/es/components/Tree/Tree.js.map +1 -1
- package/es/components/Tree/Tree.styles.js +17 -3
- package/es/components/Tree/Tree.styles.js.map +1 -1
- package/es/components/Tree/Tree.styles_1bw3k0r.css +8 -0
- package/es/components/Tree/Tree.tokens.js +5 -2
- package/es/components/Tree/Tree.tokens.js.map +1 -1
- package/es/components/Tree/utils/traverseTree.js +3 -3
- package/es/components/Tree/utils/traverseTree.js.map +1 -1
- package/es/engines/common.js.map +1 -1
- package/es/engines/index.js.map +1 -1
- package/es/index.css +34 -30
- package/package.json +4 -4
- 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 +10 -10
- package/styled-components/cjs/components/DatePicker/RangeDate/RangeDate.js +24 -22
- package/styled-components/cjs/components/Drawer/Drawer.js +13 -4
- package/styled-components/cjs/components/Drawer/Drawer.styles.js +14 -4
- package/styled-components/cjs/components/Drawer/Drawer.tokens.js +12 -0
- 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 +10 -10
- 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 +1 -1
- package/styled-components/cjs/components/TextField/TextField.tokens.js +1 -0
- package/styled-components/cjs/components/Tree/Tree.js +31 -1
- package/styled-components/cjs/components/Tree/Tree.styles.js +24 -8
- package/styled-components/cjs/components/Tree/Tree.tokens.js +5 -2
- package/styled-components/cjs/components/Tree/utils/traverseTree.js +3 -3
- 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/cjs/examples/components/Tree/Tree.config.js +6 -2
- 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 +10 -10
- package/styled-components/es/components/DatePicker/RangeDate/RangeDate.js +24 -22
- package/styled-components/es/components/Drawer/Drawer.js +9 -5
- package/styled-components/es/components/Drawer/Drawer.styles.js +15 -5
- package/styled-components/es/components/Drawer/Drawer.tokens.js +9 -0
- 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 +10 -10
- 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 +1 -1
- package/styled-components/es/components/TextField/TextField.tokens.js +1 -0
- package/styled-components/es/components/Tree/Tree.js +32 -2
- package/styled-components/es/components/Tree/Tree.styles.js +21 -8
- package/styled-components/es/components/Tree/Tree.tokens.js +5 -2
- package/styled-components/es/components/Tree/utils/traverseTree.js +3 -3
- package/styled-components/es/examples/components/Combobox/Combobox.js +7 -0
- 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/styled-components/es/examples/components/Tree/Tree.config.js +6 -2
- 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/DatePicker/RangeDate/RangeDate.d.ts.map +1 -1
- package/types/components/Drawer/Drawer.d.ts +2 -0
- package/types/components/Drawer/Drawer.d.ts.map +1 -1
- package/types/components/Drawer/Drawer.styles.d.ts +2 -1
- package/types/components/Drawer/Drawer.styles.d.ts.map +1 -1
- package/types/components/Drawer/Drawer.tokens.d.ts +9 -0
- package/types/components/Drawer/Drawer.tokens.d.ts.map +1 -1
- package/types/components/Drawer/Drawer.types.d.ts +16 -0
- package/types/components/Drawer/Drawer.types.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/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.tokens.d.ts +1 -0
- package/types/components/TextField/TextField.tokens.d.ts.map +1 -1
- package/types/components/Tree/Tree.d.ts +3 -3
- package/types/components/Tree/Tree.d.ts.map +1 -1
- package/types/components/Tree/Tree.styles.d.ts +3 -0
- package/types/components/Tree/Tree.styles.d.ts.map +1 -1
- package/types/components/Tree/Tree.tokens.d.ts +3 -0
- package/types/components/Tree/Tree.tokens.d.ts.map +1 -1
- package/types/components/Tree/Tree.types.d.ts +50 -1
- package/types/components/Tree/Tree.types.d.ts.map +1 -1
- package/types/components/Tree/utils/traverseTree.d.ts.map +1 -1
- package/types/engines/common.d.ts +3 -3
- package/types/engines/common.d.ts.map +1 -1
- package/types/engines/index.d.ts +1 -1
- package/types/engines/index.d.ts.map +1 -1
- package/types/engines/types.d.ts +4 -0
- package/types/engines/types.d.ts.map +1 -1
- package/types/examples/components/Drawer/Drawer.d.ts +1 -0
- package/types/examples/components/Drawer/Drawer.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/types/examples/components/Tree/Tree.config.d.ts.map +1 -1
- package/types/examples/components/Tree/Tree.d.ts.map +1 -1
- package/cjs/components/Tree/Tree.styles_6sla5y.css +0 -7
- package/es/components/Tree/Tree.styles_6sla5y.css +0 -7
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
2
|
+
try {
|
|
3
|
+
var info = gen[key](arg);
|
|
4
|
+
var value = info.value;
|
|
5
|
+
} catch (error) {
|
|
6
|
+
reject(error);
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
if (info.done) {
|
|
10
|
+
resolve(value);
|
|
11
|
+
} else {
|
|
12
|
+
Promise.resolve(value).then(_next, _throw);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
function _async_to_generator(fn) {
|
|
16
|
+
return function() {
|
|
17
|
+
var self = this, args = arguments;
|
|
18
|
+
return new Promise(function(resolve, reject) {
|
|
19
|
+
var gen = fn.apply(self, args);
|
|
20
|
+
function _next(value) {
|
|
21
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
22
|
+
}
|
|
23
|
+
function _throw(err) {
|
|
24
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
25
|
+
}
|
|
26
|
+
_next(undefined);
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function _instanceof(left, right) {
|
|
31
|
+
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
32
|
+
return !!right[Symbol.hasInstance](left);
|
|
33
|
+
} else {
|
|
34
|
+
return left instanceof right;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function _ts_generator(thisArg, body) {
|
|
38
|
+
var f, y, t, _ = {
|
|
39
|
+
label: 0,
|
|
40
|
+
sent: function() {
|
|
41
|
+
if (t[0] & 1) throw t[1];
|
|
42
|
+
return t[1];
|
|
43
|
+
},
|
|
44
|
+
trys: [],
|
|
45
|
+
ops: []
|
|
46
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
47
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
48
|
+
return this;
|
|
49
|
+
}), g;
|
|
50
|
+
function verb(n) {
|
|
51
|
+
return function(v) {
|
|
52
|
+
return step([
|
|
53
|
+
n,
|
|
54
|
+
v
|
|
55
|
+
]);
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function step(op) {
|
|
59
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
60
|
+
while(g && (g = 0, op[0] && (_ = 0)), _)try {
|
|
61
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
62
|
+
if (y = 0, t) op = [
|
|
63
|
+
op[0] & 2,
|
|
64
|
+
t.value
|
|
65
|
+
];
|
|
66
|
+
switch(op[0]){
|
|
67
|
+
case 0:
|
|
68
|
+
case 1:
|
|
69
|
+
t = op;
|
|
70
|
+
break;
|
|
71
|
+
case 4:
|
|
72
|
+
_.label++;
|
|
73
|
+
return {
|
|
74
|
+
value: op[1],
|
|
75
|
+
done: false
|
|
76
|
+
};
|
|
77
|
+
case 5:
|
|
78
|
+
_.label++;
|
|
79
|
+
y = op[1];
|
|
80
|
+
op = [
|
|
81
|
+
0
|
|
82
|
+
];
|
|
83
|
+
continue;
|
|
84
|
+
case 7:
|
|
85
|
+
op = _.ops.pop();
|
|
86
|
+
_.trys.pop();
|
|
87
|
+
continue;
|
|
88
|
+
default:
|
|
89
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
90
|
+
_ = 0;
|
|
91
|
+
continue;
|
|
92
|
+
}
|
|
93
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
94
|
+
_.label = op[1];
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
98
|
+
_.label = t[1];
|
|
99
|
+
t = op;
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
if (t && _.label < t[2]) {
|
|
103
|
+
_.label = t[2];
|
|
104
|
+
_.ops.push(op);
|
|
105
|
+
break;
|
|
106
|
+
}
|
|
107
|
+
if (t[2]) _.ops.pop();
|
|
108
|
+
_.trys.pop();
|
|
109
|
+
continue;
|
|
110
|
+
}
|
|
111
|
+
op = body.call(thisArg, _);
|
|
112
|
+
} catch (e) {
|
|
113
|
+
op = [
|
|
114
|
+
6,
|
|
115
|
+
e
|
|
116
|
+
];
|
|
117
|
+
y = 0;
|
|
118
|
+
} finally{
|
|
119
|
+
f = t = 0;
|
|
120
|
+
}
|
|
121
|
+
if (op[0] & 5) throw op[1];
|
|
122
|
+
return {
|
|
123
|
+
value: op[0] ? op[1] : void 0,
|
|
124
|
+
done: true
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
import { useCallback, useEffect, useRef } from "react";
|
|
129
|
+
import { getCodeValue, isWebOTPSupported } from "../utils";
|
|
130
|
+
var isOTPCredential = function(credential) {
|
|
131
|
+
return credential !== null && 'code' in credential;
|
|
132
|
+
};
|
|
133
|
+
export var useWebOTP = function(param) {
|
|
134
|
+
var codeString = param.codeString, enableSMSAutoRead = param.enableSMSAutoRead, disabled = param.disabled, codeLength = param.codeLength, codeSetter = param.codeSetter, onFullCodeEnter = param.onFullCodeEnter;
|
|
135
|
+
var abortControllerRef = useRef(null);
|
|
136
|
+
var startWebOTPListener = useCallback(function() {
|
|
137
|
+
return _async_to_generator(function() {
|
|
138
|
+
var otp, otpCode, newCode, err;
|
|
139
|
+
return _ts_generator(this, function(_state) {
|
|
140
|
+
switch(_state.label){
|
|
141
|
+
case 0:
|
|
142
|
+
if (!enableSMSAutoRead || disabled || !isWebOTPSupported()) {
|
|
143
|
+
return [
|
|
144
|
+
2
|
|
145
|
+
];
|
|
146
|
+
}
|
|
147
|
+
if (abortControllerRef.current) {
|
|
148
|
+
abortControllerRef.current.abort();
|
|
149
|
+
}
|
|
150
|
+
abortControllerRef.current = new AbortController();
|
|
151
|
+
_state.label = 1;
|
|
152
|
+
case 1:
|
|
153
|
+
_state.trys.push([
|
|
154
|
+
1,
|
|
155
|
+
3,
|
|
156
|
+
,
|
|
157
|
+
4
|
|
158
|
+
]);
|
|
159
|
+
return [
|
|
160
|
+
4,
|
|
161
|
+
navigator.credentials.get({
|
|
162
|
+
otp: {
|
|
163
|
+
transport: [
|
|
164
|
+
'sms'
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
signal: abortControllerRef.current.signal
|
|
168
|
+
})
|
|
169
|
+
];
|
|
170
|
+
case 2:
|
|
171
|
+
otp = _state.sent();
|
|
172
|
+
if (otp && isOTPCredential(otp) && otp.code) {
|
|
173
|
+
otpCode = otp.code;
|
|
174
|
+
if (otpCode.length === codeLength) {
|
|
175
|
+
newCode = getCodeValue(codeLength, otpCode);
|
|
176
|
+
codeSetter(newCode);
|
|
177
|
+
if (onFullCodeEnter) {
|
|
178
|
+
onFullCodeEnter(otpCode);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
return [
|
|
183
|
+
3,
|
|
184
|
+
4
|
|
185
|
+
];
|
|
186
|
+
case 3:
|
|
187
|
+
err = _state.sent();
|
|
188
|
+
if (_instanceof(err, DOMException)) {
|
|
189
|
+
if (err.name !== 'AbortError' && err.name !== 'NotAllowedError') {
|
|
190
|
+
console.warn('Web OTP API error:', err);
|
|
191
|
+
}
|
|
192
|
+
} else if (_instanceof(err, Error)) {
|
|
193
|
+
console.warn('Web OTP API error:', err);
|
|
194
|
+
} else {
|
|
195
|
+
console.warn('Unknown Web OTP API error:', err);
|
|
196
|
+
}
|
|
197
|
+
return [
|
|
198
|
+
3,
|
|
199
|
+
4
|
|
200
|
+
];
|
|
201
|
+
case 4:
|
|
202
|
+
return [
|
|
203
|
+
2
|
|
204
|
+
];
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
})();
|
|
208
|
+
}, [
|
|
209
|
+
enableSMSAutoRead,
|
|
210
|
+
disabled,
|
|
211
|
+
codeLength,
|
|
212
|
+
onFullCodeEnter
|
|
213
|
+
]);
|
|
214
|
+
var stopWebOTPListener = useCallback(function() {
|
|
215
|
+
if (abortControllerRef.current) {
|
|
216
|
+
abortControllerRef.current.abort();
|
|
217
|
+
abortControllerRef.current = null;
|
|
218
|
+
}
|
|
219
|
+
}, []);
|
|
220
|
+
useEffect(function() {
|
|
221
|
+
if (isWebOTPSupported() && codeString === '' && enableSMSAutoRead && !disabled) {
|
|
222
|
+
startWebOTPListener();
|
|
223
|
+
} else {
|
|
224
|
+
stopWebOTPListener();
|
|
225
|
+
}
|
|
226
|
+
return function() {
|
|
227
|
+
stopWebOTPListener();
|
|
228
|
+
};
|
|
229
|
+
}, [
|
|
230
|
+
codeString,
|
|
231
|
+
enableSMSAutoRead,
|
|
232
|
+
disabled,
|
|
233
|
+
startWebOTPListener,
|
|
234
|
+
stopWebOTPListener
|
|
235
|
+
]);
|
|
236
|
+
};
|
|
@@ -27,7 +27,7 @@ import { classes } from "../CodeField.tokens";
|
|
|
27
27
|
import { ANIMATION_TIMEOUT } from "./constants";
|
|
28
28
|
import { getCodeValue } from "./initialValuesHelper";
|
|
29
29
|
export var handleCodeError = function(param) {
|
|
30
|
-
var codeLength = param.codeLength, codeErrorBehavior = param.codeErrorBehavior, currentCode = param.currentCode, inputRefs = param.inputRefs, inputContainerRef = param.inputContainerRef, captionRef = param.captionRef,
|
|
30
|
+
var codeLength = param.codeLength, codeErrorBehavior = param.codeErrorBehavior, currentCode = param.currentCode, inputRefs = param.inputRefs, inputContainerRef = param.inputContainerRef, captionRef = param.captionRef, setInnerValue = param.setInnerValue, codeSetter = param.codeSetter;
|
|
31
31
|
if (!inputContainerRef.current) {
|
|
32
32
|
return;
|
|
33
33
|
}
|
|
@@ -41,7 +41,7 @@ export var handleCodeError = function(param) {
|
|
|
41
41
|
var newCode = _to_consumable_array(currentCode);
|
|
42
42
|
newCode.pop();
|
|
43
43
|
codeSetter(newCode);
|
|
44
|
-
|
|
44
|
+
setInnerValue(currentCode);
|
|
45
45
|
(_inputContainerRef_current = inputContainerRef.current) === null || _inputContainerRef_current === void 0 ? void 0 : _inputContainerRef_current.classList.remove(classes.codeErrorAnimation);
|
|
46
46
|
setTimeout(function() {
|
|
47
47
|
var _inputRefs_current_, _inputRefs_current_1;
|
|
@@ -26,14 +26,17 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
26
26
|
import { classes } from "../CodeField.tokens";
|
|
27
27
|
import { ANIMATION_TIMEOUT } from "./constants";
|
|
28
28
|
export var handleItemError = function(param) {
|
|
29
|
-
var currentSymbol = param.currentSymbol, itemErrorBehavior = param.itemErrorBehavior, index = param.index, newCode = param.newCode, inputRefs = param.inputRefs,
|
|
29
|
+
var currentSymbol = param.currentSymbol, itemErrorBehavior = param.itemErrorBehavior, index = param.index, newCode = param.newCode, inputRefs = param.inputRefs, setInnerValue = param.setInnerValue, codeSetter = param.codeSetter, onChange = param.onChange;
|
|
30
30
|
if (!inputRefs.current[index] || currentSymbol === ' ') {
|
|
31
31
|
return;
|
|
32
32
|
}
|
|
33
33
|
switch(itemErrorBehavior){
|
|
34
34
|
case 'keep':
|
|
35
35
|
var _inputRefs_current_index;
|
|
36
|
-
|
|
36
|
+
setInnerValue(newCode);
|
|
37
|
+
if (onChange) {
|
|
38
|
+
onChange(newCode.join(''));
|
|
39
|
+
}
|
|
37
40
|
(_inputRefs_current_index = inputRefs.current[index]) === null || _inputRefs_current_index === void 0 ? void 0 : _inputRefs_current_index.classList.add(classes.itemError, classes.itemErrorAnimation);
|
|
38
41
|
setTimeout(function() {
|
|
39
42
|
var _inputRefs_current_index;
|
|
@@ -47,11 +50,17 @@ export var handleItemError = function(param) {
|
|
|
47
50
|
case 'forbid-enter':
|
|
48
51
|
newCode[index] = '';
|
|
49
52
|
codeSetter(newCode);
|
|
53
|
+
if (onChange) {
|
|
54
|
+
onChange(newCode.join(''));
|
|
55
|
+
}
|
|
50
56
|
break;
|
|
51
57
|
case 'remove-symbol':
|
|
52
58
|
default:
|
|
53
59
|
var _inputRefs_current_index1;
|
|
54
|
-
|
|
60
|
+
setInnerValue(newCode);
|
|
61
|
+
if (onChange) {
|
|
62
|
+
onChange(newCode.join(''));
|
|
63
|
+
}
|
|
55
64
|
(_inputRefs_current_index1 = inputRefs.current[index]) === null || _inputRefs_current_index1 === void 0 ? void 0 : _inputRefs_current_index1.classList.add(classes.itemError, classes.itemErrorFade, classes.itemErrorAnimation);
|
|
56
65
|
setTimeout(function() {
|
|
57
66
|
var _inputRefs_current_index;
|
|
@@ -210,6 +210,7 @@ import { Context } from "./Combobox.context";
|
|
|
210
210
|
var _useState = _sliced_to_array(useState(getTextValue(multiple, outerValue, valueToItemMap, renderValue)), 2), textValue = _useState[0], setTextValue = _useState[1];
|
|
211
211
|
var _useState1 = _sliced_to_array(useState(multiple ? [] : ''), 2), internalValue = _useState1[0], setInternalValue = _useState1[1];
|
|
212
212
|
var value = outerValue !== null && outerValue !== undefined ? outerValue : internalValue;
|
|
213
|
+
var rootRef = useRef(null);
|
|
213
214
|
var inputRef = useRef(null);
|
|
214
215
|
var floatingPopoverRef = useRef(null);
|
|
215
216
|
var inputForkRef = useForkRef(inputRef, ref);
|
|
@@ -244,15 +245,7 @@ import { Context } from "./Combobox.context";
|
|
|
244
245
|
if (!isCurrentListOpen || alwaysOpened) {
|
|
245
246
|
return;
|
|
246
247
|
}
|
|
247
|
-
|
|
248
|
-
type: 'reset'
|
|
249
|
-
});
|
|
250
|
-
dispatchFocusedPath({
|
|
251
|
-
type: 'reset'
|
|
252
|
-
});
|
|
253
|
-
if (onToggle) {
|
|
254
|
-
onToggle(false);
|
|
255
|
-
}
|
|
248
|
+
handleListToggle(false);
|
|
256
249
|
// Возвращаем актуальное значение поля ввода после закрытия выпадающего списка.
|
|
257
250
|
setTextValue(getTextValue(multiple, value, valueToItemMap, renderValue));
|
|
258
251
|
}, floatingPopoverRef);
|
|
@@ -318,12 +311,18 @@ import { Context } from "./Combobox.context";
|
|
|
318
311
|
type: 'opened_first_level'
|
|
319
312
|
});
|
|
320
313
|
} else {
|
|
314
|
+
var _rootRef_current;
|
|
321
315
|
dispatchFocusedPath({
|
|
322
316
|
type: 'reset'
|
|
323
317
|
});
|
|
324
318
|
dispatchPath({
|
|
325
319
|
type: 'reset'
|
|
326
320
|
});
|
|
321
|
+
// Скроллим чипы к левому краю при закрытии компонента
|
|
322
|
+
var el = rootRef === null || rootRef === void 0 ? void 0 : (_rootRef_current = rootRef.current) === null || _rootRef_current === void 0 ? void 0 : _rootRef_current.querySelector('.input-scrollable-wrapper');
|
|
323
|
+
if (multiple && value.length > 0 && el) {
|
|
324
|
+
el.scrollLeft = 0;
|
|
325
|
+
}
|
|
327
326
|
}
|
|
328
327
|
if (onToggle) {
|
|
329
328
|
onToggle(opened);
|
|
@@ -534,7 +533,8 @@ import { Context } from "./Combobox.context";
|
|
|
534
533
|
readOnly: readOnly,
|
|
535
534
|
name: name,
|
|
536
535
|
hintView: hintView,
|
|
537
|
-
hintSize: hintSize
|
|
536
|
+
hintSize: hintSize,
|
|
537
|
+
ref: rootRef
|
|
538
538
|
}, name && /*#__PURE__*/ React.createElement(SelectNative, {
|
|
539
539
|
items: valueToItemMap,
|
|
540
540
|
name: name,
|
|
@@ -325,16 +325,6 @@ export var datePickerRangeRoot = function(Root) {
|
|
|
325
325
|
return;
|
|
326
326
|
}
|
|
327
327
|
var isCalendarOpen = ((firstInputRef === null || firstInputRef === void 0 ? void 0 : (_firstInputRef_current = firstInputRef.current) === null || _firstInputRef_current === void 0 ? void 0 : _firstInputRef_current.contains((event === null || event === void 0 ? void 0 : event.target) || null)) || (secondInputRef === null || secondInputRef === void 0 ? void 0 : (_secondInputRef_current = secondInputRef.current) === null || _secondInputRef_current === void 0 ? void 0 : _secondInputRef_current.contains((event === null || event === void 0 ? void 0 : event.target) || null))) && (event === null || event === void 0 ? void 0 : event.code) !== keys.Escape ? true : currentOpened;
|
|
328
|
-
if (!isCalendarOpen) {
|
|
329
|
-
if (calendarFirstValue && !calendarSecondValue) {
|
|
330
|
-
var _secondInputRef_current1;
|
|
331
|
-
secondInputRef === null || secondInputRef === void 0 ? void 0 : (_secondInputRef_current1 = secondInputRef.current) === null || _secondInputRef_current1 === void 0 ? void 0 : _secondInputRef_current1.focus();
|
|
332
|
-
}
|
|
333
|
-
if (calendarSecondValue && !calendarFirstValue) {
|
|
334
|
-
var _firstInputRef_current1;
|
|
335
|
-
firstInputRef === null || firstInputRef === void 0 ? void 0 : (_firstInputRef_current1 = firstInputRef.current) === null || _firstInputRef_current1 === void 0 ? void 0 : _firstInputRef_current1.focus();
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
328
|
if (!isCalendarOpen) {
|
|
339
329
|
setSecondTextFieldClicked(false);
|
|
340
330
|
}
|
|
@@ -373,28 +363,40 @@ export var datePickerRangeRoot = function(Root) {
|
|
|
373
363
|
}, commonArgs)), endOriginalDate = _getFormattedDates1.originalDate;
|
|
374
364
|
if (!calendarFirstValue && correctStartDates.calendar) {
|
|
375
365
|
startOriginalDate = new Date(correctStartDates.calendar);
|
|
366
|
+
}
|
|
367
|
+
if (!calendarSecondValue && correctEndDates.calendar) {
|
|
368
|
+
endOriginalDate = new Date(correctEndDates.calendar);
|
|
369
|
+
}
|
|
370
|
+
var _getSortedValues = _sliced_to_array(getSortedValues([
|
|
371
|
+
startOriginalDate,
|
|
372
|
+
endOriginalDate
|
|
373
|
+
]), 2), startValue = _getSortedValues[0], endValue = _getSortedValues[1];
|
|
374
|
+
var _getFormattedDates2 = getFormattedDates(_object_spread({
|
|
375
|
+
value: startValue,
|
|
376
|
+
delimiter: dateFormatDelimiter
|
|
377
|
+
}, commonArgs)), formattedFirstDate = _getFormattedDates2.formattedDate, originalFirstDate = _getFormattedDates2.originalDate, isoFirstDate = _getFormattedDates2.isoDate;
|
|
378
|
+
var _getFormattedDates3 = getFormattedDates(_object_spread({
|
|
379
|
+
value: endValue,
|
|
380
|
+
delimiter: dateFormatDelimiter
|
|
381
|
+
}, commonArgs)), formattedSecondDate = _getFormattedDates3.formattedDate, originalSecondDate = _getFormattedDates3.originalDate, isoSecondDate = _getFormattedDates3.isoDate;
|
|
382
|
+
if (formattedFirstDate !== inputFirstValue) {
|
|
376
383
|
if (onChangeFirstValue) {
|
|
377
|
-
onChangeFirstValue(event,
|
|
384
|
+
onChangeFirstValue(event, formattedFirstDate, originalFirstDate, isoFirstDate);
|
|
378
385
|
}
|
|
379
386
|
if (onCommitFirstDate) {
|
|
380
|
-
var dateInfo = getFirstQuarterInfo(
|
|
381
|
-
onCommitFirstDate(
|
|
387
|
+
var dateInfo = originalFirstDate ? getFirstQuarterInfo(originalFirstDate) : undefined;
|
|
388
|
+
onCommitFirstDate(formattedFirstDate, false, true, dateInfo, originalFirstDate, isoFirstDate);
|
|
382
389
|
}
|
|
383
390
|
}
|
|
384
|
-
if (
|
|
385
|
-
endOriginalDate = new Date(correctEndDates.calendar);
|
|
391
|
+
if (formattedSecondDate !== inputSecondValue) {
|
|
386
392
|
if (onChangeSecondValue) {
|
|
387
|
-
onChangeSecondValue(event,
|
|
393
|
+
onChangeSecondValue(event, formattedSecondDate, originalSecondDate, isoSecondDate);
|
|
388
394
|
}
|
|
389
395
|
if (onCommitSecondDate) {
|
|
390
|
-
var dateInfo1 = getSecondQuarterInfo(
|
|
391
|
-
onCommitSecondDate(
|
|
396
|
+
var dateInfo1 = originalSecondDate ? getSecondQuarterInfo(originalSecondDate) : undefined;
|
|
397
|
+
onCommitSecondDate(formattedSecondDate, false, true, dateInfo1, originalSecondDate, isoSecondDate);
|
|
392
398
|
}
|
|
393
399
|
}
|
|
394
|
-
var _getSortedValues = _sliced_to_array(getSortedValues([
|
|
395
|
-
startOriginalDate,
|
|
396
|
-
endOriginalDate
|
|
397
|
-
]), 2), startValue = _getSortedValues[0], endValue = _getSortedValues[1];
|
|
398
400
|
setFirstInputValue(startValue);
|
|
399
401
|
setSecondInputValue(endValue);
|
|
400
402
|
outerHandler === null || outerHandler === void 0 ? void 0 : outerHandler(event);
|
|
@@ -54,8 +54,9 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
54
54
|
return target;
|
|
55
55
|
}
|
|
56
56
|
import React, { forwardRef, useMemo } from "react";
|
|
57
|
+
import cls from "classnames";
|
|
57
58
|
import { useForkRef } from "@salutejs/plasma-core";
|
|
58
|
-
import {
|
|
59
|
+
import { getSizeValueFromProp, safeUseId } from "../../utils";
|
|
59
60
|
import { usePopupContext } from "../Popup";
|
|
60
61
|
import { Overlay } from "../Overlay";
|
|
61
62
|
import { DEFAULT_Z_INDEX } from "../Popup/utils";
|
|
@@ -70,7 +71,7 @@ import { useDrawer } from "./hooks";
|
|
|
70
71
|
// issue #823
|
|
71
72
|
export var drawerRoot = function(Root) {
|
|
72
73
|
return /*#__PURE__*/ forwardRef(function(_param, outerRef) {
|
|
73
|
-
var id = _param.id, zIndex = _param.zIndex, popupInfo = _param.popupInfo, withBlur = _param.withBlur, children = _param.children, view = _param.view, size = _param.size, width = _param.width, height = _param.height, isOpen = _param.isOpen, opened = _param.opened, initialFocusRef = _param.initialFocusRef, focusAfterRef = _param.focusAfterRef, className = _param.className, customBackgroundColor = _param.customBackgroundColor, customContentBackgroundColor = _param.customContentBackgroundColor, onClose = _param.onClose, onOverlayClick = _param.onOverlayClick, onEscKeyDown = _param.onEscKeyDown, offset = _param.offset, frame = _param.frame, _param_borderRadius = _param.borderRadius, borderRadius = _param_borderRadius === void 0 ? 'none' : _param_borderRadius, _param_placement = _param.placement, placement = _param_placement === void 0 ? 'right' : _param_placement, _param_closeOnEsc = _param.closeOnEsc, closeOnEsc = _param_closeOnEsc === void 0 ? true : _param_closeOnEsc, _param_closeOnOverlayClick = _param.closeOnOverlayClick, closeOnOverlayClick = _param_closeOnOverlayClick === void 0 ? true : _param_closeOnOverlayClick, _param_asModal = _param.asModal, asModal = _param_asModal === void 0 ? true : _param_asModal, draggable = _param.draggable, rest = _object_without_properties(_param, [
|
|
74
|
+
var id = _param.id, zIndex = _param.zIndex, popupInfo = _param.popupInfo, withBlur = _param.withBlur, children = _param.children, view = _param.view, size = _param.size, width = _param.width, height = _param.height, isOpen = _param.isOpen, opened = _param.opened, initialFocusRef = _param.initialFocusRef, focusAfterRef = _param.focusAfterRef, animationInfo = _param.animationInfo, className = _param.className, customBackgroundColor = _param.customBackgroundColor, customContentBackgroundColor = _param.customContentBackgroundColor, onClose = _param.onClose, onOverlayClick = _param.onOverlayClick, onEscKeyDown = _param.onEscKeyDown, offset = _param.offset, frame = _param.frame, _param_borderRadius = _param.borderRadius, borderRadius = _param_borderRadius === void 0 ? 'none' : _param_borderRadius, _param_placement = _param.placement, placement = _param_placement === void 0 ? 'right' : _param_placement, _param_closeOnEsc = _param.closeOnEsc, closeOnEsc = _param_closeOnEsc === void 0 ? true : _param_closeOnEsc, _param_closeOnOverlayClick = _param.closeOnOverlayClick, closeOnOverlayClick = _param_closeOnOverlayClick === void 0 ? true : _param_closeOnOverlayClick, _param_asModal = _param.asModal, asModal = _param_asModal === void 0 ? true : _param_asModal, draggable = _param.draggable, rest = _object_without_properties(_param, [
|
|
74
75
|
"id",
|
|
75
76
|
"zIndex",
|
|
76
77
|
"popupInfo",
|
|
@@ -84,6 +85,7 @@ export var drawerRoot = function(Root) {
|
|
|
84
85
|
"opened",
|
|
85
86
|
"initialFocusRef",
|
|
86
87
|
"focusAfterRef",
|
|
88
|
+
"animationInfo",
|
|
87
89
|
"className",
|
|
88
90
|
"customBackgroundColor",
|
|
89
91
|
"customContentBackgroundColor",
|
|
@@ -133,10 +135,11 @@ export var drawerRoot = function(Root) {
|
|
|
133
135
|
onClose();
|
|
134
136
|
}
|
|
135
137
|
};
|
|
138
|
+
var _obj;
|
|
136
139
|
return /*#__PURE__*/ React.createElement(StyledPopup, _object_spread({
|
|
137
140
|
id: innerId,
|
|
138
141
|
ref: asModal ? innerRef : outerRef,
|
|
139
|
-
className:
|
|
142
|
+
className: cls(placementClass, className, (_obj = {}, _define_property(_obj, classes.enterCustomAnimation, animationInfo === null || animationInfo === void 0 ? void 0 : animationInfo.enter), _define_property(_obj, classes.exitCustomAnimation, animationInfo === null || animationInfo === void 0 ? void 0 : animationInfo.exit), _obj)),
|
|
140
143
|
opened: innerIsOpen,
|
|
141
144
|
zIndex: zIndex,
|
|
142
145
|
placement: placement,
|
|
@@ -146,6 +149,7 @@ export var drawerRoot = function(Root) {
|
|
|
146
149
|
height: innerHeight,
|
|
147
150
|
offset: offset,
|
|
148
151
|
withAnimation: true,
|
|
152
|
+
drawerAnimationInfo: animationInfo,
|
|
149
153
|
overlay: asModal && /*#__PURE__*/ React.createElement(Root, {
|
|
150
154
|
view: view
|
|
151
155
|
}, /*#__PURE__*/ React.createElement(Overlay, {
|
|
@@ -158,6 +162,7 @@ export var drawerRoot = function(Root) {
|
|
|
158
162
|
onOverlayClick: onDrawerOverlayKeyDown
|
|
159
163
|
}))
|
|
160
164
|
}, rest), /*#__PURE__*/ React.createElement(Root, {
|
|
165
|
+
className: classes.panel,
|
|
161
166
|
view: view,
|
|
162
167
|
size: size,
|
|
163
168
|
style: {
|
|
@@ -169,8 +174,7 @@ export var drawerRoot = function(Root) {
|
|
|
169
174
|
width: innerWidth,
|
|
170
175
|
height: innerHeight,
|
|
171
176
|
customBackgroundColor: customBackgroundColor,
|
|
172
|
-
customContentBackgroundColor: customContentBackgroundColor
|
|
173
|
-
className: className
|
|
177
|
+
customContentBackgroundColor: customContentBackgroundColor
|
|
174
178
|
}, children)));
|
|
175
179
|
});
|
|
176
180
|
};
|
|
@@ -2,7 +2,7 @@ import styled from "@emotion/styled";
|
|
|
2
2
|
import { component, mergeConfig } from "../../engines";
|
|
3
3
|
import { popupClasses, popupConfig } from "../Popup";
|
|
4
4
|
import { panelTokens, panelConfig } from "../Panel";
|
|
5
|
-
import { classes, tokens } from "./Drawer.tokens";
|
|
5
|
+
import { classes, privateTokens, tokens } from "./Drawer.tokens";
|
|
6
6
|
var mergedPanelConfig = mergeConfig(panelConfig);
|
|
7
7
|
var Panel = component(mergedPanelConfig);
|
|
8
8
|
var Popup = component(popupConfig);
|
|
@@ -58,11 +58,11 @@ var getAnimationStyles = function() {
|
|
|
58
58
|
}, '');
|
|
59
59
|
};
|
|
60
60
|
export var StyledPanel = /*#__PURE__*/ styled(Panel, {
|
|
61
|
-
target: "
|
|
61
|
+
target: "e1sh23y70",
|
|
62
62
|
label: "StyledPanel"
|
|
63
|
-
})(panelTokens.closeColor, ":var(", tokens.closeIconColor, ");", "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
63
|
+
})(panelTokens.closeColor, ":var(", tokens.closeIconColor, ");", "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3JjLWVtb3Rpb24vY29tcG9uZW50cy9EcmF3ZXIvRHJhd2VyLnN0eWxlcy50cyIsInNvdXJjZXMiOlsic3JjLWVtb3Rpb24vY29tcG9uZW50cy9EcmF3ZXIvRHJhd2VyLnN0eWxlcy50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmltcG9ydCB7IGNvbXBvbmVudCwgbWVyZ2VDb25maWcgfSBmcm9tICcuLi8uLi9lbmdpbmVzJztcbmltcG9ydCB7IHBvcHVwQ2xhc3NlcywgcG9wdXBDb25maWcgfSBmcm9tICcuLi9Qb3B1cCc7XG5pbXBvcnQgeyBwYW5lbFRva2VucywgcGFuZWxDb25maWcgfSBmcm9tICcuLi9QYW5lbCc7XG5cbmltcG9ydCB0eXBlIHsgRHJhd2VyQW5pbWF0aW9uSW5mbywgRHJh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cndhcmRzO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBAa2V5ZnJhbWVzICR7cGxhY2VtZW50fVNob3dBbmltYXRpb24ge1xuICAgICAgICAgICAgICAgIDAlIHtcbiAgICAgICAgICAgICAgICAgICAgdHJhbnNmb3JtOiAke2FuaW1hdGlvblZhcmlhbnRzW3BsYWNlbWVudF0uc2hvdy5zdGFydH07XG4gICAgICAgICAgICAgICAgICAgIG9wYWNpdHk6IDA7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgMTAwJSB7XG4gICAgICAgICAgICAgICAgICAgIHRyYW5zZm9ybTogJHthbmltYXRpb25WYXJpYW50c1twbGFjZW1lbnRdLnNob3cuZW5kfTtcbiAgICAgICAgICAgICAgICAgICAgb3BhY2l0eTogMTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIEBrZXlmcmFtZXMgJHtwbGFjZW1lbnR9SGlkZUFuaW1hdGlvbiB7XG4gICAgICAgICAgICAgICAgMCUge1xuICAgICAgICAgICAgICAgICAgICB0cmFuc2Zvcm06ICR7YW5pbWF0aW9uVmFyaWFudHNbcGxhY2VtZW50XS5oaWRlLnN0YXJ0fTtcbiAgICAgICAgICAgICAgICAgICAgb3BhY2l0eTogMTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAxMDAlIHtcbiAgICAgICAgICAgICAgICAgICAgdHJhbnNmb3JtOiAke2FuaW1hdGlvblZhcmlhbnRzW3BsYWNlbWVudF0uaGlkZS5lbmR9O1xuICAgICAgICAgICAgICAgICAgICBvcGFjaXR5OiAwO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIGA7XG5cbmNvbnN0IGdldEFuaW1hdGlvblN0eWxlcyA9ICgpID0+IHtcbiAgICByZXR1cm4gT2JqZWN0LmtleXMoYW5pbWF0aW9uVmFyaWFudHMpLnJlZHVjZSgoYW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|
65
|
-
target: "
|
|
65
|
+
target: "e1sh23y71",
|
|
66
66
|
label: "StyledPopup"
|
|
67
67
|
})("&&.", classes.overlay, "{animation:fadeIn 0.2s forwards;scrollbar-gutter:stable;}&&.", popupClasses.endAnimation, " .", classes.overlay, "{animation:fadeOut 0.2s forwards;}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}@keyframes fadeOut{from{opacity:1;}to{opacity:0;}}&& .", popupClasses.root, ",&& .", popupClasses.root, " > div{width:", function(param) {
|
|
68
68
|
var width = param.width;
|
|
@@ -70,4 +70,7 @@ export var StyledPopup = /*#__PURE__*/ styled(Popup, {
|
|
|
70
70
|
}, ";height:", function(param) {
|
|
71
71
|
var height = param.height;
|
|
72
72
|
return height || 'auto';
|
|
73
|
-
}, ";}", getAnimationStyles(), "
|
|
73
|
+
}, ";}", getAnimationStyles(), " &.", classes.enterCustomAnimation, "{&& .", popupClasses.root, "{animation:", function(param) {
|
|
74
|
+
var drawerAnimationInfo = param.drawerAnimationInfo;
|
|
75
|
+
return (drawerAnimationInfo === null || drawerAnimationInfo === void 0 ? void 0 : drawerAnimationInfo.enter) || "var(".concat(privateTokens.enterAnimation, ")");
|
|
76
|
+
}, ";}}&.", classes.exitCustomAnimation, "{&&.", popupClasses.endAnimation, " .", popupClasses.root, "{animation:var(", privateTokens.customExitAnimation, ");}}", "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3JjLWVtb3Rpb24vY29tcG9uZW50cy9EcmF3ZXIvRHJhd2VyLnN0eWxlcy50cyIsInNvdXJjZXMiOlsic3JjLWVtb3Rpb24vY29tcG9uZW50cy9EcmF3ZXIvRHJhd2VyLnN0eWxlcy50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmltcG9ydCB7IGNvbXBvbmVudCwgbWVyZ2VDb25maWcgfSBmcm9tICcuLi8uLi9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b24gMC4ycyBmb3J3YXJkcztcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgJiYuJHtwb3B1cENsYXNzZXMuZW5kQW5pbWF0aW9ufSAuJHtwb3B1cENsYXNzZXMucm9vdH0ge1xuICAgICAgICAgICAgICAgIGFuaW1hdGlvbjogJHtwbGFjZW1lbnR9SGlkZUFuaW1hdGlvbiAwLjJzIGZvcndhcmRzO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBAa2V5ZnJhbWVzICR7cGxhY2VtZW50fVNob3dBbmltYXRpb24ge1xuICAgICAgICAgICAgICAgIDAlIHtcbiAgICAgICAgICAgICAgICAgICAgdHJhbnNmb3JtOiAke2FuaW1hdGlvblZhcmlhbnRzW3BsYWNlbWVudF0uc2hvdy5zdGFydH07XG4gICAgICAgICAgICAgICAgICAgIG9wYWNpdHk6IDA7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgMTAwJSB7XG4gICAgICAgICAgICAgICAgICAgIHRyYW5zZm9ybTogJHthbmltYXRpb25WYXJpYW50c1twbGFjZW1lbnRdLnNob3cuZW5kfTtcbiAgICAgICAgICAgICAgICAgICAgb3BhY2l0eTogMTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIEBrZXlmcmFtZXMgJHtwbGFjZW1lbnR9SGlkZUFuaW1hdGlvbiB7XG4gICAgICAgICAgICAgICAgMCUge1xuICAgICAgICAgICAgICAgICAgICB0cmFuc2Zvcm06ICR7YW5pbWF0aW9uVmFyaWFudHNbcGxhY2VtZW50XS5oaWRlLnN0YXJ0fTtcbiAgICAgICAgICAgICAgICAgICAgb3BhY2l0eTogMTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAxMDAlIHtcbiAgICAgICAgICAgICAgICAgICAgdHJhbnNmb3JtOiAke2FuaW1hdGlvblZhcmlhbnRzW3BsYWNlbWVudF0uaGlkZS5lbmR9O1xuICAgICAgICA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iAgICAgICAgICAgIGFuaW1hdGlvbjogdmFyKCR7cHJpdmF0ZVRva2Vucy5jdXN0b21FeGl0QW5pbWF0aW9ufSk7XG4gICAgICAgIH1cbiAgICB9XG5gO1xuIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXdHMkIifQ== */");
|
|
@@ -3,6 +3,9 @@ export var classes = {
|
|
|
3
3
|
header: 'drawer-header',
|
|
4
4
|
footer: 'drawer-footer',
|
|
5
5
|
overlay: 'drawer-overlay',
|
|
6
|
+
panel: 'drawer-panel',
|
|
7
|
+
enterCustomAnimation: 'drawer-enter-custom-animation',
|
|
8
|
+
exitCustomAnimation: 'drawer-exit-custom-animation',
|
|
6
9
|
horizontal: 'drawer-horizontal',
|
|
7
10
|
hasHeader: 'drawer-has-header',
|
|
8
11
|
isRightClose: 'drawer-right-close-button',
|
|
@@ -11,6 +14,12 @@ export var classes = {
|
|
|
11
14
|
rightPlacement: 'drawer-right-placement',
|
|
12
15
|
leftPlacement: 'drawer-left-placement'
|
|
13
16
|
};
|
|
17
|
+
export var privateTokens = {
|
|
18
|
+
enterAnimation: '--plasma__private-drawer-enter-animation',
|
|
19
|
+
exitAnimation: '--plasma__private-drawer-exit-animation',
|
|
20
|
+
customEnterAnimation: '--plasma__private-drawer-custom-enter-animation',
|
|
21
|
+
customExitAnimation: '--plasma__private-drawer-custom-exit-animation'
|
|
22
|
+
};
|
|
14
23
|
export var tokens = {
|
|
15
24
|
drawerOverlayWithBlurColor: '--plasma-drawer-overlay-with-blur-color',
|
|
16
25
|
drawerOverlayColor: '--plasma-drawer-overlay-color',
|