@salutejs/plasma-new-hope 0.77.1-canary.1201.8930079977.0 → 0.77.1-canary.1202.8938243709.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Combobox/Combobox.css +7 -17
- package/cjs/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +6 -15
- package/cjs/components/Combobox/ui/ComboboxDivider/ComboboxDivider.js +2 -2
- package/cjs/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +6 -15
- package/cjs/components/Combobox/ui/ComboboxFooter/ComboboxFooter.js +2 -2
- package/cjs/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +6 -15
- package/cjs/components/Combobox/ui/ComboboxGroup/ComboboxGroup.js +2 -2
- package/cjs/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +6 -15
- package/cjs/components/Combobox/ui/ComboboxHeader/ComboboxHeader.js +2 -2
- package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.css +23 -4
- package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.js +10 -81
- package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.js.map +1 -1
- package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js +9 -21
- package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js.map +1 -1
- package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles_936wgl.css +1 -0
- package/cjs/components/Dropdown/Dropdown.css +2 -25
- package/cjs/components/Dropdown/Dropdown.js +54 -138
- package/cjs/components/Dropdown/Dropdown.js.map +1 -1
- package/cjs/components/Dropdown/Dropdown.styles.js +7 -40
- package/cjs/components/Dropdown/Dropdown.styles.js.map +1 -1
- package/cjs/components/Dropdown/Dropdown.styles_1daxhqh.css +2 -0
- package/cjs/components/Dropdown/Dropdown.tokens.js +23 -26
- package/cjs/components/Dropdown/Dropdown.tokens.js.map +1 -1
- package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.css +4 -7
- package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +100 -79
- package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
- package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +5 -90
- package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
- package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles_1juhjtq.css +4 -0
- package/cjs/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_size/base.js +1 -1
- package/cjs/components/Dropdown/ui/DropdownItem/variations/_size/base.js.map +1 -0
- package/cjs/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_view/base.js +1 -1
- package/cjs/components/Dropdown/ui/DropdownItem/variations/_view/base.js.map +1 -0
- package/cjs/components/Dropdown/utils/index.js +0 -16
- package/cjs/components/Dropdown/utils/index.js.map +1 -1
- package/cjs/components/Pagination/Pagination.css +7 -14
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +7 -14
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
- package/cjs/components/Select/Select.css +7 -14
- package/cjs/components/Select/ui/SelectDivider/SelectDivider.css +6 -15
- package/cjs/components/Select/ui/SelectDivider/SelectDivider.js +2 -2
- package/cjs/components/Select/ui/SelectFooter/SelectFooter.css +6 -15
- package/cjs/components/Select/ui/SelectFooter/SelectFooter.js +2 -2
- package/cjs/components/Select/ui/SelectGroup/SelectGroup.css +6 -15
- package/cjs/components/Select/ui/SelectGroup/SelectGroup.js +2 -2
- package/cjs/components/Select/ui/SelectHeader/SelectHeader.css +6 -15
- package/cjs/components/Select/ui/SelectHeader/SelectHeader.js +2 -2
- package/cjs/components/Select/ui/SelectItem/SelectItem.css +7 -16
- package/cjs/components/Select/ui/SelectItem/SelectItem.js +3 -3
- package/cjs/components/Select/ui/SelectItem/SelectItem.js.map +1 -1
- package/cjs/components/Select/ui/SelectItem/SelectItem.styles.js +2 -2
- package/cjs/components/Select/ui/SelectItem/SelectItem.styles.js.map +1 -1
- package/cjs/components/Select/ui/SelectItem/{SelectItem.styles_vk39mp.css → SelectItem.styles_6h17aw.css} +1 -1
- package/cjs/components/_Icon/Icon.assets/DisclosureRight.js +2 -1
- package/cjs/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
- package/cjs/index.css +8 -18
- package/cjs/index.js +2 -8
- package/cjs/index.js.map +1 -1
- package/es/components/Combobox/Combobox.css +7 -17
- package/es/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +6 -15
- package/es/components/Combobox/ui/ComboboxDivider/ComboboxDivider.js +2 -2
- package/es/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +6 -15
- package/es/components/Combobox/ui/ComboboxFooter/ComboboxFooter.js +2 -2
- package/es/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +6 -15
- package/es/components/Combobox/ui/ComboboxGroup/ComboboxGroup.js +2 -2
- package/es/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +6 -15
- package/es/components/Combobox/ui/ComboboxHeader/ComboboxHeader.js +2 -2
- package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.css +23 -4
- package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.js +11 -82
- package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.js.map +1 -1
- package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js +10 -19
- package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js.map +1 -1
- package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles_936wgl.css +1 -0
- package/es/components/Dropdown/Dropdown.css +2 -25
- package/es/components/Dropdown/Dropdown.js +60 -144
- package/es/components/Dropdown/Dropdown.js.map +1 -1
- package/es/components/Dropdown/Dropdown.styles.js +7 -39
- package/es/components/Dropdown/Dropdown.styles.js.map +1 -1
- package/es/components/Dropdown/Dropdown.styles_1daxhqh.css +2 -0
- package/es/components/Dropdown/Dropdown.tokens.js +23 -26
- package/es/components/Dropdown/Dropdown.tokens.js.map +1 -1
- package/es/components/Dropdown/ui/DropdownItem/DropdownItem.css +4 -7
- package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +100 -80
- package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
- package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +5 -89
- package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
- package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles_1juhjtq.css +4 -0
- package/es/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_size/base.js +1 -1
- package/es/components/Dropdown/ui/DropdownItem/variations/_size/base.js.map +1 -0
- package/es/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_view/base.js +1 -1
- package/es/components/Dropdown/ui/DropdownItem/variations/_view/base.js.map +1 -0
- package/es/components/Dropdown/utils/index.js +2 -16
- package/es/components/Dropdown/utils/index.js.map +1 -1
- package/es/components/Pagination/Pagination.css +7 -14
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +7 -14
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
- package/es/components/Select/Select.css +7 -14
- package/es/components/Select/ui/SelectDivider/SelectDivider.css +6 -15
- package/es/components/Select/ui/SelectDivider/SelectDivider.js +2 -2
- package/es/components/Select/ui/SelectFooter/SelectFooter.css +6 -15
- package/es/components/Select/ui/SelectFooter/SelectFooter.js +2 -2
- package/es/components/Select/ui/SelectGroup/SelectGroup.css +6 -15
- package/es/components/Select/ui/SelectGroup/SelectGroup.js +2 -2
- package/es/components/Select/ui/SelectHeader/SelectHeader.css +6 -15
- package/es/components/Select/ui/SelectHeader/SelectHeader.js +2 -2
- package/es/components/Select/ui/SelectItem/SelectItem.css +7 -16
- package/es/components/Select/ui/SelectItem/SelectItem.js +3 -3
- package/es/components/Select/ui/SelectItem/SelectItem.js.map +1 -1
- package/es/components/Select/ui/SelectItem/SelectItem.styles.js +2 -2
- package/es/components/Select/ui/SelectItem/SelectItem.styles.js.map +1 -1
- package/es/components/Select/ui/SelectItem/{SelectItem.styles_vk39mp.css → SelectItem.styles_6h17aw.css} +1 -1
- package/es/components/_Icon/Icon.assets/DisclosureRight.js +2 -1
- package/es/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
- package/es/index.css +8 -18
- package/es/index.js +1 -4
- package/es/index.js.map +1 -1
- package/package.json +2 -2
- package/styled-components/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.js +2 -91
- package/styled-components/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js +7 -27
- package/styled-components/cjs/components/Dropdown/Dropdown.js +54 -140
- package/styled-components/cjs/components/Dropdown/Dropdown.styles.js +7 -22
- package/styled-components/cjs/components/Dropdown/Dropdown.template-doc.mdx +80 -0
- package/styled-components/cjs/components/Dropdown/Dropdown.tokens.js +23 -26
- package/styled-components/cjs/components/Dropdown/index.js +1 -9
- package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +105 -77
- package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +18 -83
- package/styled-components/cjs/components/Dropdown/ui/DropdownItem/variations/_size/tokens.json +19 -0
- package/styled-components/cjs/components/Dropdown/ui/DropdownItem/variations/_view/tokens.json +9 -0
- package/styled-components/cjs/components/Dropdown/ui/index.js +5 -19
- package/styled-components/cjs/components/Dropdown/utils/index.js +1 -15
- package/styled-components/cjs/components/Dropdown/variations/_size/tokens.json +9 -1
- package/styled-components/cjs/components/Dropdown/variations/_view/tokens.json +1 -1
- package/styled-components/cjs/components/Select/ui/SelectItem/SelectItem.js +1 -1
- package/styled-components/cjs/components/Select/ui/SelectItem/SelectItem.styles.js +1 -1
- package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureRight.js +2 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.config.js +27 -0
- package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.js +13 -0
- package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.stories.tsx +194 -0
- package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.config.js +27 -0
- package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.js +13 -0
- package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.stories.tsx +195 -0
- package/styled-components/cjs/examples/plasma_web/components/Dropdown/Normal/Dropdown.config.js +27 -0
- package/styled-components/cjs/examples/plasma_web/components/Dropdown/Normal/Dropdown.js +13 -0
- package/styled-components/cjs/examples/plasma_web/components/Dropdown/Normal/Dropdown.stories.tsx +195 -0
- package/styled-components/cjs/examples/plasma_web/components/Dropdown/Tight/Dropdown.config.js +27 -0
- package/styled-components/cjs/examples/plasma_web/components/Dropdown/Tight/Dropdown.js +13 -0
- package/styled-components/cjs/examples/plasma_web/components/Dropdown/Tight/Dropdown.stories.tsx +195 -0
- package/styled-components/cjs/examples/sds_engineer/components/Dropdown/Dropdown.config.js +22 -0
- package/styled-components/cjs/examples/sds_engineer/components/Dropdown/Dropdown.js +21 -0
- package/styled-components/cjs/examples/sds_engineer/components/Dropdown/Dropdown.stories.tsx +277 -0
- package/styled-components/es/components/Combobox/ui/ComboboxItem/ComboboxItem.js +3 -90
- package/styled-components/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js +6 -23
- package/styled-components/es/components/Dropdown/Dropdown.js +55 -142
- package/styled-components/es/components/Dropdown/Dropdown.styles.js +5 -18
- package/styled-components/es/components/Dropdown/Dropdown.template-doc.mdx +80 -0
- package/styled-components/es/components/Dropdown/Dropdown.tokens.js +23 -26
- package/styled-components/es/components/Dropdown/index.js +0 -1
- package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +107 -78
- package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +14 -80
- package/styled-components/es/components/Dropdown/ui/DropdownItem/variations/_size/tokens.json +19 -0
- package/styled-components/es/components/Dropdown/ui/DropdownItem/variations/_view/tokens.json +9 -0
- package/styled-components/es/components/Dropdown/ui/index.js +1 -3
- package/styled-components/es/components/Dropdown/utils/index.js +1 -15
- package/styled-components/es/components/Dropdown/variations/_size/tokens.json +9 -1
- package/styled-components/es/components/Dropdown/variations/_view/tokens.json +1 -1
- package/styled-components/es/components/Select/ui/SelectItem/SelectItem.js +2 -2
- package/styled-components/es/components/Select/ui/SelectItem/SelectItem.styles.js +1 -1
- package/styled-components/es/components/_Icon/Icon.assets/DisclosureRight.js +2 -1
- package/styled-components/es/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.config.js +21 -0
- package/styled-components/es/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.js +7 -0
- package/styled-components/es/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.stories.tsx +194 -0
- package/styled-components/es/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.config.js +21 -0
- package/styled-components/es/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.js +7 -0
- package/styled-components/es/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.stories.tsx +195 -0
- package/styled-components/es/examples/plasma_web/components/Dropdown/Normal/Dropdown.config.js +21 -0
- package/styled-components/es/examples/plasma_web/components/Dropdown/Normal/Dropdown.js +7 -0
- package/styled-components/es/examples/plasma_web/components/Dropdown/Normal/Dropdown.stories.tsx +195 -0
- package/styled-components/es/examples/plasma_web/components/Dropdown/Tight/Dropdown.config.js +21 -0
- package/styled-components/es/examples/plasma_web/components/Dropdown/Tight/Dropdown.js +7 -0
- package/styled-components/es/examples/plasma_web/components/Dropdown/Tight/Dropdown.stories.tsx +195 -0
- package/styled-components/es/examples/sds_engineer/components/Dropdown/Dropdown.config.js +16 -0
- package/styled-components/es/examples/sds_engineer/components/Dropdown/Dropdown.js +15 -0
- package/styled-components/es/examples/sds_engineer/components/Dropdown/Dropdown.stories.tsx +277 -0
- package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.d.ts +13 -15
- package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.d.ts.map +1 -1
- package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.d.ts +1 -5
- package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.d.ts.map +1 -1
- package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.type.d.ts +2 -59
- package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.type.d.ts.map +1 -1
- package/types/components/Dropdown/Dropdown.d.ts +4 -4
- package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/types/components/Dropdown/Dropdown.styles.d.ts +1 -8
- package/types/components/Dropdown/Dropdown.styles.d.ts.map +1 -1
- package/types/components/Dropdown/Dropdown.tokens.d.ts +22 -24
- package/types/components/Dropdown/Dropdown.tokens.d.ts.map +1 -1
- package/types/components/Dropdown/Dropdown.types.d.ts +40 -64
- package/types/components/Dropdown/Dropdown.types.d.ts.map +1 -1
- package/types/components/Dropdown/index.d.ts +1 -3
- package/types/components/Dropdown/index.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownItem/DropdownItem.d.ts +56 -2
- package/types/components/Dropdown/ui/DropdownItem/DropdownItem.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts +2 -5
- package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts +38 -44
- package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownItem/variations/_size/base.d.ts.map +1 -0
- package/types/components/Dropdown/ui/DropdownItem/variations/_view/base.d.ts.map +1 -0
- package/types/components/Dropdown/ui/index.d.ts +1 -3
- package/types/components/Dropdown/ui/index.d.ts.map +1 -1
- package/types/components/Dropdown/utils/index.d.ts +2 -5
- package/types/components/Dropdown/utils/index.d.ts.map +1 -1
- package/types/components/Select/ui/SelectItem/SelectItem.d.ts +2 -2
- package/types/components/Select/ui/SelectItem/SelectItem.d.ts.map +1 -1
- package/types/components/Select/ui/SelectItem/SelectItem.type.d.ts +2 -2
- package/types/components/Select/utils/index.d.ts +1 -1
- package/types/components/_Icon/Icon.assets/DisclosureRight.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.config.d.ts.map +1 -0
- package/types/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.d.ts +30 -0
- package/types/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.d.ts.map +1 -0
- package/types/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.config.d.ts +18 -0
- package/types/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.config.d.ts.map +1 -0
- package/types/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.d.ts +30 -0
- package/types/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.d.ts.map +1 -0
- package/types/examples/plasma_web/components/Dropdown/Normal/Dropdown.config.d.ts +18 -0
- package/types/examples/plasma_web/components/Dropdown/Normal/Dropdown.config.d.ts.map +1 -0
- package/types/examples/plasma_web/components/Dropdown/Normal/Dropdown.d.ts +30 -0
- package/types/examples/plasma_web/components/Dropdown/Normal/Dropdown.d.ts.map +1 -0
- package/types/examples/plasma_web/components/Dropdown/Tight/Dropdown.config.d.ts +18 -0
- package/types/examples/plasma_web/components/Dropdown/Tight/Dropdown.config.d.ts.map +1 -0
- package/types/examples/plasma_web/components/Dropdown/Tight/Dropdown.d.ts +30 -0
- package/types/examples/plasma_web/components/Dropdown/Tight/Dropdown.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Dropdown/Dropdown.config.d.ts +15 -0
- package/types/examples/sds_engineer/components/Dropdown/Dropdown.config.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Dropdown/Dropdown.d.ts +51 -0
- package/types/examples/sds_engineer/components/Dropdown/Dropdown.d.ts.map +1 -0
- package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles_s4sk53.css +0 -4
- package/cjs/components/Combobox/utils/index.js +0 -23
- package/cjs/components/Combobox/utils/index.js.map +0 -1
- package/cjs/components/Dropdown/Dropdown.styles_1tihqkp.css +0 -3
- package/cjs/components/Dropdown/hooks/useHashMaps.js +0 -31
- package/cjs/components/Dropdown/hooks/useHashMaps.js.map +0 -1
- package/cjs/components/Dropdown/hooks/useKeyboardNavigation.js +0 -200
- package/cjs/components/Dropdown/hooks/useKeyboardNavigation.js.map +0 -1
- package/cjs/components/Dropdown/reducers/focusedPathReducer.js +0 -37
- package/cjs/components/Dropdown/reducers/focusedPathReducer.js.map +0 -1
- package/cjs/components/Dropdown/reducers/pathReducer.js +0 -41
- package/cjs/components/Dropdown/reducers/pathReducer.js.map +0 -1
- package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +0 -119
- package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +0 -1
- package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles_1o4szyu.css +0 -5
- package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +0 -30
- package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js.map +0 -1
- package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles_12e50g5.css +0 -4
- package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.css +0 -4
- package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js +0 -112
- package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js.map +0 -1
- package/cjs/components/Dropdown/ui/DropdownItemOld/variations/_size/base.js.map +0 -1
- package/cjs/components/Dropdown/ui/DropdownItemOld/variations/_view/base.js.map +0 -1
- package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles_s4sk53.css +0 -4
- package/es/components/Combobox/utils/index.js +0 -19
- package/es/components/Combobox/utils/index.js.map +0 -1
- package/es/components/Dropdown/Dropdown.styles_1tihqkp.css +0 -3
- package/es/components/Dropdown/hooks/useHashMaps.js +0 -27
- package/es/components/Dropdown/hooks/useHashMaps.js.map +0 -1
- package/es/components/Dropdown/hooks/useKeyboardNavigation.js +0 -196
- package/es/components/Dropdown/hooks/useKeyboardNavigation.js.map +0 -1
- package/es/components/Dropdown/reducers/focusedPathReducer.js +0 -33
- package/es/components/Dropdown/reducers/focusedPathReducer.js.map +0 -1
- package/es/components/Dropdown/reducers/pathReducer.js +0 -37
- package/es/components/Dropdown/reducers/pathReducer.js.map +0 -1
- package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +0 -115
- package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +0 -1
- package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles_1o4szyu.css +0 -5
- package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +0 -23
- package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js.map +0 -1
- package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles_12e50g5.css +0 -4
- package/es/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.css +0 -4
- package/es/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js +0 -107
- package/es/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js.map +0 -1
- package/es/components/Dropdown/ui/DropdownItemOld/variations/_size/base.js.map +0 -1
- package/es/components/Dropdown/ui/DropdownItemOld/variations/_view/base.js.map +0 -1
- package/styled-components/cjs/components/Combobox/utils/index.js +0 -23
- package/styled-components/cjs/components/Dropdown/hooks/useHashMaps.js +0 -29
- package/styled-components/cjs/components/Dropdown/hooks/useKeyboardNavigation.js +0 -199
- package/styled-components/cjs/components/Dropdown/reducers/focusedPathReducer.js +0 -40
- package/styled-components/cjs/components/Dropdown/reducers/pathReducer.js +0 -44
- package/styled-components/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +0 -114
- package/styled-components/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.type.js +0 -5
- package/styled-components/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +0 -33
- package/styled-components/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.type.js +0 -5
- package/styled-components/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js +0 -119
- package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +0 -25
- package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.js +0 -11
- package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +0 -292
- package/styled-components/es/components/Combobox/utils/index.js +0 -15
- package/styled-components/es/components/Dropdown/hooks/useHashMaps.js +0 -23
- package/styled-components/es/components/Dropdown/hooks/useKeyboardNavigation.js +0 -193
- package/styled-components/es/components/Dropdown/reducers/focusedPathReducer.js +0 -34
- package/styled-components/es/components/Dropdown/reducers/pathReducer.js +0 -38
- package/styled-components/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +0 -108
- package/styled-components/es/components/Dropdown/ui/DropdownInner/DropdownInner.type.js +0 -1
- package/styled-components/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +0 -25
- package/styled-components/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.type.js +0 -1
- package/styled-components/es/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js +0 -111
- package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +0 -19
- package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.js +0 -5
- package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +0 -292
- package/types/components/Combobox/utils/index.d.ts +0 -4
- package/types/components/Combobox/utils/index.d.ts.map +0 -1
- package/types/components/Dropdown/hooks/useHashMaps.d.ts +0 -6
- package/types/components/Dropdown/hooks/useHashMaps.d.ts.map +0 -1
- package/types/components/Dropdown/hooks/useKeyboardNavigation.d.ts +0 -23
- package/types/components/Dropdown/hooks/useKeyboardNavigation.d.ts.map +0 -1
- package/types/components/Dropdown/reducers/focusedPathReducer.d.ts +0 -16
- package/types/components/Dropdown/reducers/focusedPathReducer.d.ts.map +0 -1
- package/types/components/Dropdown/reducers/pathReducer.d.ts +0 -20
- package/types/components/Dropdown/reducers/pathReducer.d.ts.map +0 -1
- package/types/components/Dropdown/ui/DropdownInner/DropdownInner.d.ts +0 -5
- package/types/components/Dropdown/ui/DropdownInner/DropdownInner.d.ts.map +0 -1
- package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts +0 -26
- package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts.map +0 -1
- package/types/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.d.ts +0 -7
- package/types/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.d.ts.map +0 -1
- package/types/components/Dropdown/ui/DropdownItemOld/DropdownItem.type.d.ts +0 -60
- package/types/components/Dropdown/ui/DropdownItemOld/DropdownItem.type.d.ts.map +0 -1
- package/types/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.d.ts +0 -58
- package/types/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.d.ts.map +0 -1
- package/types/components/Dropdown/ui/DropdownItemOld/variations/_size/base.d.ts.map +0 -1
- package/types/components/Dropdown/ui/DropdownItemOld/variations/_view/base.d.ts.map +0 -1
- package/types/examples/plasma_b2c/components/Dropdown/Dropdown.config.d.ts.map +0 -1
- package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts +0 -13
- package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts.map +0 -1
- /package/cjs/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_size/base_x642ct.css +0 -0
- /package/cjs/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_view/base_x642ct.css +0 -0
- /package/es/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_size/base_x642ct.css +0 -0
- /package/es/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_view/base_x642ct.css +0 -0
- /package/styled-components/cjs/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_size/base.js +0 -0
- /package/styled-components/cjs/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_view/base.js +0 -0
- /package/styled-components/es/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_size/base.js +0 -0
- /package/styled-components/es/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_view/base.js +0 -0
- /package/types/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_size/base.d.ts +0 -0
- /package/types/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_view/base.d.ts +0 -0
- /package/types/examples/plasma_b2c/components/Dropdown/{Dropdown.config.d.ts → Normal/Dropdown.config.d.ts} +0 -0
@@ -1,108 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { DropdownItem } from '..';
|
3
|
-
import { Ul, StyledPopover } from '../../Dropdown.styles';
|
4
|
-
var DropdownInner = function DropdownInner(_ref) {
|
5
|
-
var item = _ref.item,
|
6
|
-
currentLevel = _ref.currentLevel,
|
7
|
-
focusedPath = _ref.focusedPath,
|
8
|
-
path = _ref.path,
|
9
|
-
dispatchPath = _ref.dispatchPath,
|
10
|
-
index = _ref.index,
|
11
|
-
trigger = _ref.trigger,
|
12
|
-
itemRole = _ref.itemRole,
|
13
|
-
listHeight = _ref.listHeight,
|
14
|
-
listOverflow = _ref.listOverflow,
|
15
|
-
handleGlobalToggle = _ref.handleGlobalToggle,
|
16
|
-
closeOnSelect = _ref.closeOnSelect,
|
17
|
-
onHover = _ref.onHover,
|
18
|
-
onItemSelect = _ref.onItemSelect,
|
19
|
-
onItemClick = _ref.onItemClick,
|
20
|
-
listWidth = _ref.listWidth,
|
21
|
-
variant = _ref.variant,
|
22
|
-
hasArrow = _ref.hasArrow;
|
23
|
-
var handleToggle = function handleToggle(opened) {
|
24
|
-
if (opened) {
|
25
|
-
dispatchPath({
|
26
|
-
type: 'changed_on_level',
|
27
|
-
value: item.value.toString(),
|
28
|
-
level: currentLevel + 1
|
29
|
-
});
|
30
|
-
} else {
|
31
|
-
dispatchPath({
|
32
|
-
type: 'cut_by_level',
|
33
|
-
level: currentLevel + 1
|
34
|
-
});
|
35
|
-
}
|
36
|
-
};
|
37
|
-
var isCurrentListOpen = path[currentLevel + 1] === item.value.toString();
|
38
|
-
if (item !== null && item !== void 0 && item.items) {
|
39
|
-
return /*#__PURE__*/React.createElement(StyledPopover, {
|
40
|
-
isOpen: isCurrentListOpen,
|
41
|
-
usePortal: false,
|
42
|
-
placement: "right-start",
|
43
|
-
trigger: trigger,
|
44
|
-
target: /*#__PURE__*/React.createElement(DropdownItem, {
|
45
|
-
item: item,
|
46
|
-
index: index,
|
47
|
-
path: path,
|
48
|
-
focusedPath: focusedPath,
|
49
|
-
currentLevel: currentLevel,
|
50
|
-
onHover: onHover,
|
51
|
-
onItemSelect: onItemSelect,
|
52
|
-
onItemClick: onItemClick,
|
53
|
-
variant: variant,
|
54
|
-
hasArrow: hasArrow,
|
55
|
-
ariaControls: "listbox".concat(currentLevel + 2),
|
56
|
-
ariaExpanded: isCurrentListOpen,
|
57
|
-
ariaHasPopup: "listbox",
|
58
|
-
ariaLevel: currentLevel + 1,
|
59
|
-
ariaLabel: item.label
|
60
|
-
}),
|
61
|
-
onToggle: handleToggle,
|
62
|
-
isFocusTrapped: false
|
63
|
-
}, /*#__PURE__*/React.createElement(Ul, {
|
64
|
-
listHeight: listHeight,
|
65
|
-
listOverflow: listOverflow,
|
66
|
-
role: "listbox",
|
67
|
-
id: "listbox".concat(currentLevel + 2),
|
68
|
-
listWidth: listWidth,
|
69
|
-
isInnerUl: true
|
70
|
-
}, item.items.map(function (innerItem, innerIndex) {
|
71
|
-
return /*#__PURE__*/React.createElement(DropdownInner, {
|
72
|
-
key: "".concat(innerIndex, "/currentLevel"),
|
73
|
-
item: innerItem,
|
74
|
-
currentLevel: currentLevel + 1,
|
75
|
-
focusedPath: focusedPath,
|
76
|
-
path: path,
|
77
|
-
dispatchPath: dispatchPath,
|
78
|
-
index: innerIndex,
|
79
|
-
trigger: trigger,
|
80
|
-
itemRole: itemRole,
|
81
|
-
listHeight: listHeight,
|
82
|
-
listOverflow: listOverflow,
|
83
|
-
handleGlobalToggle: handleGlobalToggle,
|
84
|
-
closeOnSelect: closeOnSelect,
|
85
|
-
onHover: onHover,
|
86
|
-
onItemSelect: onItemSelect,
|
87
|
-
onItemClick: onItemClick,
|
88
|
-
listWidth: listWidth,
|
89
|
-
variant: variant,
|
90
|
-
hasArrow: hasArrow
|
91
|
-
});
|
92
|
-
})));
|
93
|
-
}
|
94
|
-
return /*#__PURE__*/React.createElement(DropdownItem, {
|
95
|
-
item: item,
|
96
|
-
index: index,
|
97
|
-
focusedPath: focusedPath,
|
98
|
-
currentLevel: currentLevel,
|
99
|
-
itemRole: itemRole,
|
100
|
-
handleGlobalToggle: handleGlobalToggle,
|
101
|
-
closeOnSelect: closeOnSelect,
|
102
|
-
onHover: onHover,
|
103
|
-
onItemSelect: onItemSelect,
|
104
|
-
onItemClick: onItemClick,
|
105
|
-
variant: variant
|
106
|
-
});
|
107
|
-
};
|
108
|
-
export { DropdownInner };
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,25 +0,0 @@
|
|
1
|
-
var _templateObject;
|
2
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
3
|
-
import { css } from 'styled-components';
|
4
|
-
import styled from 'styled-components';
|
5
|
-
import { classes, tokens } from '../../Dropdown.tokens';
|
6
|
-
import { addFocus, applyEllipsis } from '../../../../mixins';
|
7
|
-
export var StyledContentLeft = /*#__PURE__*/styled.div.withConfig({
|
8
|
-
componentId: "plasma-new-hope__sc-17ya3ay-0"
|
9
|
-
})(["display:inline-flex;min-width:var(", ");color:var(", ");"], tokens.itemContentLeftWidth, tokens.itemContentLeftColor);
|
10
|
-
export var StyledContentRight = /*#__PURE__*/styled.div.withConfig({
|
11
|
-
componentId: "plasma-new-hope__sc-17ya3ay-1"
|
12
|
-
})(["margin-left:auto;display:inline-flex;min-width:var(", ");color:var(", ");"], tokens.itemContentRightWidth, tokens.itemContentRightColor);
|
13
|
-
export var StyledText = /*#__PURE__*/styled.div.withConfig({
|
14
|
-
componentId: "plasma-new-hope__sc-17ya3ay-2"
|
15
|
-
})(["", ";"], /*#__PURE__*/applyEllipsis());
|
16
|
-
|
17
|
-
// INFO: Для возможности переиспользования стилей в других компонентах
|
18
|
-
export var baseContent = /*#__PURE__*/"\n box-sizing: content-box;\n display: flex;\n align-items: center;\n user-select: none;\n\n :focus {\n outline: none;\n }\n\n ".concat(addFocus({
|
19
|
-
outlineSize: '0.0625rem',
|
20
|
-
outlineOffset: '0',
|
21
|
-
outlineColor: "var(".concat(tokens.focusColor, ")"),
|
22
|
-
outlineRadius: "var(".concat(tokens.itemBorderRadius, ")"),
|
23
|
-
hasTransition: false
|
24
|
-
}), ";\n\n width: auto;\n\n font-family: var(").concat(tokens.itemFontFamily, ");\n font-size: var(").concat(tokens.itemFontSize, ");\n font-style: var(").concat(tokens.itemFontStyle, ");\n font-weight: var(").concat(tokens.itemFontWeightBold, ");\n letter-spacing: var(").concat(tokens.itemFontLetterSpacing, ");\n line-height: var(").concat(tokens.itemFontLineHeight, ");\n\n background: var(").concat(tokens.itemBackground, ");\n color: var(").concat(tokens.itemColor, ");\n border-radius: var(").concat(tokens.itemBorderRadius, ");\n\n width: var(").concat(tokens.itemWidth, ");\n height: var(").concat(tokens.itemHeight, ");\n\n padding: var(").concat(tokens.itemPaddingTop, ") var(").concat(tokens.itemPaddingRight, ") var(").concat(tokens.itemPaddingBottom, ")\n var(").concat(tokens.itemPaddingLeft, ");\n\n margin: var(").concat(tokens.itemMarginTop, ") var(").concat(tokens.itemMarginRight, ") var(").concat(tokens.itemMarginBottom, ")\n var(").concat(tokens.itemMarginLeft, ");\n\n &:hover:not(.").concat(classes.dropdownItemIsDisabled, ") {\n cursor: pointer;\n background: var(").concat(tokens.itemBackgroundHover, ");\n }\n\n &.").concat(String(classes.dropdownItemIsSelected), " {\n color: var(").concat(tokens.itemColorSelected, ");\n background: var(").concat(tokens.itemBackgroundSelected, ");\n\n &:hover:not(.").concat(classes.dropdownItemIsDisabled, ") {\n background: var(").concat(tokens.itemBackgroundSelectedHover, ");\n }\n }\n\n &.").concat(classes.dropdownItemIsDisabled, " {\n opacity: var(").concat(tokens.disabledOpacity, ");\n cursor: not-allowed;\n }\n");
|
25
|
-
export var base = /*#__PURE__*/css(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ";\n"])), baseContent);
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,111 +0,0 @@
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
2
|
-
var _excluded = ["id", "className", "children", "text", "isSelected", "name", "checked", "value", "role", "view", "size", "disabled", "contentLeft", "contentRight", "onSelect", "onClick", "onChange"];
|
3
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
4
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
5
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
6
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
7
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
8
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
9
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
10
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
11
|
-
import React, { forwardRef, useCallback, useMemo } from 'react';
|
12
|
-
import { safeUseId } from '@salutejs/plasma-core';
|
13
|
-
import { classes } from '../../Dropdown.tokens';
|
14
|
-
import { cx } from '../../../../utils';
|
15
|
-
import { getValidComponent } from '../../utils';
|
16
|
-
import { base as viewCSS } from './variations/_view/base';
|
17
|
-
import { base as sizeCSS } from './variations/_size/base';
|
18
|
-
import { StyledContentLeft, StyledContentRight, StyledText, base } from './DropdownItem.styles';
|
19
|
-
/**
|
20
|
-
* Элемент выпадающего списка
|
21
|
-
*/
|
22
|
-
export var dropdownItemOldRoot = function dropdownItemOldRoot(Root) {
|
23
|
-
return /*#__PURE__*/forwardRef(function (_ref, outerRootRef) {
|
24
|
-
var id = _ref.id,
|
25
|
-
className = _ref.className,
|
26
|
-
children = _ref.children,
|
27
|
-
text = _ref.text,
|
28
|
-
isSelected = _ref.isSelected,
|
29
|
-
name = _ref.name,
|
30
|
-
checked = _ref.checked,
|
31
|
-
value = _ref.value,
|
32
|
-
role = _ref.role,
|
33
|
-
view = _ref.view,
|
34
|
-
size = _ref.size,
|
35
|
-
disabled = _ref.disabled,
|
36
|
-
ContentLeftComponent = _ref.contentLeft,
|
37
|
-
ContentRightComponent = _ref.contentRight,
|
38
|
-
onSelect = _ref.onSelect,
|
39
|
-
onClick = _ref.onClick,
|
40
|
-
onChange = _ref.onChange,
|
41
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
42
|
-
var uniqId = safeUseId();
|
43
|
-
var innerId = id || uniqId;
|
44
|
-
var withDropdownItemIsSelected = checked || isSelected ? classes.dropdownItemIsSelected : undefined;
|
45
|
-
var withDropdownItemIsDisabled = disabled ? classes.dropdownItemIsDisabled : undefined;
|
46
|
-
var handleOnClick = useCallback(function (event) {
|
47
|
-
if (disabled) {
|
48
|
-
return;
|
49
|
-
}
|
50
|
-
onClick === null || onClick === void 0 || onClick(event);
|
51
|
-
if (onSelect && !ContentLeftComponent) {
|
52
|
-
onSelect(value, text);
|
53
|
-
}
|
54
|
-
}, [onSelect, disabled]);
|
55
|
-
var handleOnChange = useCallback(function (event) {
|
56
|
-
if (disabled) {
|
57
|
-
return;
|
58
|
-
}
|
59
|
-
onChange === null || onChange === void 0 || onChange(event);
|
60
|
-
if (onSelect && ContentLeftComponent) {
|
61
|
-
onSelect(value, text);
|
62
|
-
}
|
63
|
-
}, [onSelect, disabled]);
|
64
|
-
var contentProps = _objectSpread({
|
65
|
-
name: name,
|
66
|
-
value: value,
|
67
|
-
checked: checked || isSelected,
|
68
|
-
disabled: disabled,
|
69
|
-
tabIndex: 0
|
70
|
-
}, !disabled && {
|
71
|
-
onChange: handleOnChange
|
72
|
-
});
|
73
|
-
var ContentLeft = useMemo(function () {
|
74
|
-
return getValidComponent(ContentLeftComponent, contentProps);
|
75
|
-
}, [ContentRightComponent, contentProps]);
|
76
|
-
var ContentRight = useMemo(function () {
|
77
|
-
return getValidComponent(ContentRightComponent, contentProps);
|
78
|
-
}, [ContentRightComponent, contentProps]);
|
79
|
-
return /*#__PURE__*/React.createElement(Root, _extends({
|
80
|
-
className: cx(withDropdownItemIsSelected, withDropdownItemIsDisabled, className),
|
81
|
-
view: view,
|
82
|
-
size: size,
|
83
|
-
id: innerId,
|
84
|
-
isSelected: isSelected,
|
85
|
-
role: role,
|
86
|
-
ref: outerRootRef,
|
87
|
-
tabIndex: 0,
|
88
|
-
"aria-disabled": disabled,
|
89
|
-
onClick: handleOnClick,
|
90
|
-
"data-value": value
|
91
|
-
}, rest), text ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledContentLeft, null, ContentLeftComponent && ContentLeft), /*#__PURE__*/React.createElement(StyledText, null, text), /*#__PURE__*/React.createElement(StyledContentRight, null, ContentRightComponent && ContentRight)) : children);
|
92
|
-
});
|
93
|
-
};
|
94
|
-
export var dropdownItemOldConfig = {
|
95
|
-
name: 'DropdownItem',
|
96
|
-
tag: 'div',
|
97
|
-
layout: dropdownItemOldRoot,
|
98
|
-
base: base,
|
99
|
-
variations: {
|
100
|
-
view: {
|
101
|
-
css: viewCSS
|
102
|
-
},
|
103
|
-
size: {
|
104
|
-
css: sizeCSS
|
105
|
-
}
|
106
|
-
},
|
107
|
-
defaults: {
|
108
|
-
view: 'primary',
|
109
|
-
size: 'm'
|
110
|
-
}
|
111
|
-
};
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { css } from 'styled-components';
|
2
|
-
import { dropdownTokens } from '../../../../components/Dropdown';
|
3
|
-
export var config = {
|
4
|
-
defaults: {
|
5
|
-
view: 'default',
|
6
|
-
size: 'm'
|
7
|
-
},
|
8
|
-
variations: {
|
9
|
-
size: {
|
10
|
-
xs: /*#__PURE__*/css(["", ":0.125rem;", ":10rem;", ":0.5rem;", ":0.5625rem;", ":0.5rem;", ":0.5625rem;", ":0.5rem;", ":0.375rem;", ":0.3125rem;", ":0.3125rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);"], dropdownTokens.padding, dropdownTokens.width, dropdownTokens.borderRadius, dropdownTokens.itemPaddingTop, dropdownTokens.itemPaddingRight, dropdownTokens.itemPaddingBottom, dropdownTokens.itemPaddingLeft, dropdownTokens.itemBorderRadius, dropdownTokens.itemPaddingTopTight, dropdownTokens.itemPaddingBottomTight, dropdownTokens.itemFontFamily, dropdownTokens.itemFontSize, dropdownTokens.itemFontStyle, dropdownTokens.itemFontWeightBold, dropdownTokens.itemFontLetterSpacing, dropdownTokens.itemFontLineHeight),
|
11
|
-
s: /*#__PURE__*/css(["", ":0.125rem;", ":12.5rem;", ":0.625rem;", ":0.6875rem;", ":0.75rem;", ":0.6875rem;", ":0.75rem;", ":0.5rem;", ":0.4375rem;", ":0.4375rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);"], dropdownTokens.padding, dropdownTokens.width, dropdownTokens.borderRadius, dropdownTokens.itemPaddingTop, dropdownTokens.itemPaddingRight, dropdownTokens.itemPaddingBottom, dropdownTokens.itemPaddingLeft, dropdownTokens.itemBorderRadius, dropdownTokens.itemPaddingTopTight, dropdownTokens.itemPaddingBottomTight, dropdownTokens.itemFontFamily, dropdownTokens.itemFontSize, dropdownTokens.itemFontStyle, dropdownTokens.itemFontWeightBold, dropdownTokens.itemFontLetterSpacing, dropdownTokens.itemFontLineHeight),
|
12
|
-
m: /*#__PURE__*/css(["", ":0.125rem;", ":15rem;", ":0.75rem;", ":0.875rem;", ":0.875rem;", ":0.875rem;", ":0.875rem;", ":0.625rem;", ":0.625rem;", ":0.625rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);"], dropdownTokens.padding, dropdownTokens.width, dropdownTokens.borderRadius, dropdownTokens.itemPaddingTop, dropdownTokens.itemPaddingRight, dropdownTokens.itemPaddingBottom, dropdownTokens.itemPaddingLeft, dropdownTokens.itemBorderRadius, dropdownTokens.itemPaddingTopTight, dropdownTokens.itemPaddingBottomTight, dropdownTokens.itemFontFamily, dropdownTokens.itemFontSize, dropdownTokens.itemFontStyle, dropdownTokens.itemFontWeightBold, dropdownTokens.itemFontLetterSpacing, dropdownTokens.itemFontLineHeight),
|
13
|
-
l: /*#__PURE__*/css(["", ":0.125rem;", ":17.5rem;", ":0.875rem;", ":1.0625rem;", ":1rem;", ":1.0625rem;", ":1rem;", ":0.75rem;", ":0.8125rem;", ":0.8125rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);"], dropdownTokens.padding, dropdownTokens.width, dropdownTokens.borderRadius, dropdownTokens.itemPaddingTop, dropdownTokens.itemPaddingRight, dropdownTokens.itemPaddingBottom, dropdownTokens.itemPaddingLeft, dropdownTokens.itemBorderRadius, dropdownTokens.itemPaddingTopTight, dropdownTokens.itemPaddingBottomTight, dropdownTokens.itemFontFamily, dropdownTokens.itemFontSize, dropdownTokens.itemFontStyle, dropdownTokens.itemFontWeightBold, dropdownTokens.itemFontLetterSpacing, dropdownTokens.itemFontLineHeight)
|
14
|
-
},
|
15
|
-
view: {
|
16
|
-
"default": /*#__PURE__*/css(["", ":0.4;", ":var(--surface-accent);", ":var(--surface-solid-card);", ":var(--shadow-down-soft-s);", ":var(--text-secondary);", ":var(--plasma-colors-transparent);", ":var(--surface-transparent-secondary);", ":var(--text-primary);"], dropdownTokens.disabledOpacity, dropdownTokens.focusColor, dropdownTokens.background, dropdownTokens.boxShadow, dropdownTokens.disclosureIconColor, dropdownTokens.itemBackground, dropdownTokens.itemBackgroundHover, dropdownTokens.itemColor)
|
17
|
-
}
|
18
|
-
}
|
19
|
-
};
|
@@ -1,5 +0,0 @@
|
|
1
|
-
import { dropdownConfig } from '../../../../components/Dropdown';
|
2
|
-
import { component, mergeConfig } from '../../../../engines';
|
3
|
-
import { config } from './Dropdown.config';
|
4
|
-
var mergedConfig = /*#__PURE__*/mergeConfig(dropdownConfig, config);
|
5
|
-
export var Dropdown = /*#__PURE__*/component(mergedConfig);
|
@@ -1,292 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import type { ComponentProps } from 'react';
|
3
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
4
|
-
import { action } from '@storybook/addon-actions';
|
5
|
-
|
6
|
-
import { WithTheme } from '../../../_helpers';
|
7
|
-
import { Button } from '../Button/Button';
|
8
|
-
import type { DropdownPlacement, DropdownTrigger } from '../../../../components/Dropdown/Dropdown.types';
|
9
|
-
|
10
|
-
import { Dropdown } from './Dropdown';
|
11
|
-
|
12
|
-
type StoryDropdownProps = ComponentProps<typeof Dropdown>;
|
13
|
-
|
14
|
-
const placements: Array<DropdownPlacement> = ['top', 'bottom', 'right', 'left', 'auto'];
|
15
|
-
const triggers: Array<DropdownTrigger> = ['click', 'hover'];
|
16
|
-
const size = ['xs', 's', 'm', 'l'];
|
17
|
-
const variant = ['normal', 'tight'];
|
18
|
-
|
19
|
-
const meta: Meta<StoryDropdownProps> = {
|
20
|
-
title: 'plasma_b2c/Dropdown',
|
21
|
-
decorators: [WithTheme],
|
22
|
-
component: Dropdown,
|
23
|
-
argTypes: {
|
24
|
-
placement: {
|
25
|
-
options: placements,
|
26
|
-
control: {
|
27
|
-
type: 'select',
|
28
|
-
},
|
29
|
-
},
|
30
|
-
trigger: {
|
31
|
-
options: triggers,
|
32
|
-
control: {
|
33
|
-
type: 'select',
|
34
|
-
},
|
35
|
-
},
|
36
|
-
size: {
|
37
|
-
options: size,
|
38
|
-
control: {
|
39
|
-
type: 'select',
|
40
|
-
},
|
41
|
-
},
|
42
|
-
variant: {
|
43
|
-
options: variant,
|
44
|
-
control: {
|
45
|
-
type: 'select',
|
46
|
-
},
|
47
|
-
},
|
48
|
-
},
|
49
|
-
args: {
|
50
|
-
trigger: 'click',
|
51
|
-
offset: [0, 0],
|
52
|
-
listWidth: 'auto',
|
53
|
-
hasArrow: true,
|
54
|
-
closeOnOverlayClick: true,
|
55
|
-
closeOnSelect: true,
|
56
|
-
size: 'm',
|
57
|
-
variant: 'normal',
|
58
|
-
},
|
59
|
-
};
|
60
|
-
|
61
|
-
export default meta;
|
62
|
-
|
63
|
-
const items = [
|
64
|
-
{
|
65
|
-
value: 'north_america',
|
66
|
-
label: 'Северная Америка',
|
67
|
-
},
|
68
|
-
{
|
69
|
-
value: 'south_america',
|
70
|
-
label: 'Южная Америка',
|
71
|
-
items: [
|
72
|
-
{
|
73
|
-
value: 'brazil',
|
74
|
-
label: 'Бразилия',
|
75
|
-
items: [
|
76
|
-
{
|
77
|
-
value: 'rio_de_janeiro',
|
78
|
-
label: 'Рио-де-Жанейро',
|
79
|
-
},
|
80
|
-
{
|
81
|
-
value: 'sao_paulo',
|
82
|
-
label: 'Сан-Паулу',
|
83
|
-
},
|
84
|
-
],
|
85
|
-
},
|
86
|
-
{
|
87
|
-
value: 'argentina',
|
88
|
-
label: 'Аргентина',
|
89
|
-
items: [
|
90
|
-
{
|
91
|
-
value: 'buenos_aires',
|
92
|
-
label: 'Буэнос-Айрес',
|
93
|
-
},
|
94
|
-
{
|
95
|
-
value: 'cordoba',
|
96
|
-
label: 'Кордова',
|
97
|
-
},
|
98
|
-
],
|
99
|
-
},
|
100
|
-
{
|
101
|
-
value: 'colombia',
|
102
|
-
label: 'Колумбия',
|
103
|
-
items: [
|
104
|
-
{
|
105
|
-
value: 'bogota',
|
106
|
-
label: 'Богота',
|
107
|
-
},
|
108
|
-
{
|
109
|
-
value: 'medellin',
|
110
|
-
label: 'Медельин',
|
111
|
-
},
|
112
|
-
],
|
113
|
-
},
|
114
|
-
],
|
115
|
-
},
|
116
|
-
{
|
117
|
-
value: 'europe',
|
118
|
-
label: 'Европа',
|
119
|
-
items: [
|
120
|
-
{
|
121
|
-
value: 'france',
|
122
|
-
label: 'Франция',
|
123
|
-
items: [
|
124
|
-
{
|
125
|
-
value: 'paris',
|
126
|
-
label: 'Париж',
|
127
|
-
},
|
128
|
-
{
|
129
|
-
value: 'lyon',
|
130
|
-
label: 'Лион',
|
131
|
-
},
|
132
|
-
],
|
133
|
-
},
|
134
|
-
{
|
135
|
-
value: 'germany',
|
136
|
-
label: 'Германия',
|
137
|
-
items: [
|
138
|
-
{
|
139
|
-
value: 'berlin',
|
140
|
-
label: 'Берлин',
|
141
|
-
},
|
142
|
-
{
|
143
|
-
value: 'munich',
|
144
|
-
label: 'Мюнхен',
|
145
|
-
},
|
146
|
-
],
|
147
|
-
},
|
148
|
-
{
|
149
|
-
value: 'italy',
|
150
|
-
label: 'Италия',
|
151
|
-
items: [
|
152
|
-
{
|
153
|
-
value: 'rome',
|
154
|
-
label: 'Рим',
|
155
|
-
},
|
156
|
-
{
|
157
|
-
value: 'milan',
|
158
|
-
label: 'Милан',
|
159
|
-
},
|
160
|
-
],
|
161
|
-
},
|
162
|
-
{
|
163
|
-
value: 'spain',
|
164
|
-
label: 'Испания',
|
165
|
-
items: [
|
166
|
-
{
|
167
|
-
value: 'madrid',
|
168
|
-
label: 'Мадрид',
|
169
|
-
},
|
170
|
-
{
|
171
|
-
value: 'barcelona',
|
172
|
-
label: 'Барселона',
|
173
|
-
},
|
174
|
-
],
|
175
|
-
},
|
176
|
-
{
|
177
|
-
value: 'united_kingdom',
|
178
|
-
label: 'Великобритания',
|
179
|
-
items: [
|
180
|
-
{
|
181
|
-
value: 'london',
|
182
|
-
label: 'Лондон',
|
183
|
-
},
|
184
|
-
{
|
185
|
-
value: 'manchester',
|
186
|
-
label: 'Манчестер',
|
187
|
-
},
|
188
|
-
],
|
189
|
-
},
|
190
|
-
],
|
191
|
-
},
|
192
|
-
{
|
193
|
-
value: 'asia',
|
194
|
-
label: 'Азия',
|
195
|
-
items: [
|
196
|
-
{
|
197
|
-
value: 'china',
|
198
|
-
label: 'Китай',
|
199
|
-
items: [
|
200
|
-
{
|
201
|
-
value: 'beijing',
|
202
|
-
label: 'Пекин',
|
203
|
-
},
|
204
|
-
{
|
205
|
-
value: 'shanghai',
|
206
|
-
label: 'Шанхай',
|
207
|
-
},
|
208
|
-
],
|
209
|
-
},
|
210
|
-
{
|
211
|
-
value: 'japan',
|
212
|
-
label: 'Япония',
|
213
|
-
items: [
|
214
|
-
{
|
215
|
-
value: 'tokyo',
|
216
|
-
label: 'Токио',
|
217
|
-
},
|
218
|
-
{
|
219
|
-
value: 'osaka',
|
220
|
-
label: 'Осака',
|
221
|
-
},
|
222
|
-
],
|
223
|
-
},
|
224
|
-
{
|
225
|
-
value: 'india',
|
226
|
-
label: 'Индия',
|
227
|
-
items: [
|
228
|
-
{
|
229
|
-
value: 'delhi',
|
230
|
-
label: 'Дели',
|
231
|
-
},
|
232
|
-
{
|
233
|
-
value: 'mumbai',
|
234
|
-
label: 'Мумбаи',
|
235
|
-
},
|
236
|
-
],
|
237
|
-
},
|
238
|
-
{
|
239
|
-
value: 'south_korea',
|
240
|
-
label: 'Южная Корея',
|
241
|
-
items: [
|
242
|
-
{
|
243
|
-
value: 'seoul',
|
244
|
-
label: 'Сеул',
|
245
|
-
},
|
246
|
-
{
|
247
|
-
value: 'busan',
|
248
|
-
label: 'Пусан',
|
249
|
-
},
|
250
|
-
],
|
251
|
-
},
|
252
|
-
{
|
253
|
-
value: 'thailand',
|
254
|
-
label: 'Таиланд',
|
255
|
-
items: [
|
256
|
-
{
|
257
|
-
value: 'bangkok',
|
258
|
-
label: 'Бангкок',
|
259
|
-
},
|
260
|
-
{
|
261
|
-
value: 'phuket',
|
262
|
-
label: 'Пхукет',
|
263
|
-
},
|
264
|
-
],
|
265
|
-
},
|
266
|
-
],
|
267
|
-
},
|
268
|
-
{
|
269
|
-
value: 'africa',
|
270
|
-
label: 'Африка',
|
271
|
-
disabled: true,
|
272
|
-
},
|
273
|
-
];
|
274
|
-
|
275
|
-
const StoryNormal = (args: StoryDropdownProps) => {
|
276
|
-
return (
|
277
|
-
<Dropdown
|
278
|
-
{...args}
|
279
|
-
items={items}
|
280
|
-
onToggle={action('onToggle')}
|
281
|
-
onHover={action('onHover')}
|
282
|
-
onItemSelect={action('onItemSelect')}
|
283
|
-
onItemClick={action('onItemClick')}
|
284
|
-
>
|
285
|
-
<Button text="Список стран" />
|
286
|
-
</Dropdown>
|
287
|
-
);
|
288
|
-
};
|
289
|
-
|
290
|
-
export const Default: StoryObj<StoryDropdownProps> = {
|
291
|
-
render: (args) => <StoryNormal {...args} />,
|
292
|
-
};
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import type { ElementType, ReactNode } from 'react';
|
3
|
-
export declare const getValidComponent: (element: ElementType | ReactNode, props: object) => string | number | boolean | React.ReactFragment | JSX.Element | null | undefined;
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/utils/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMpD,eAAO,MAAM,iBAAiB,YAAa,WAAW,GAAG,SAAS,SAAS,MAAM,qFAYhF,CAAC"}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import { DropdownProps } from '../Dropdown.types';
|
2
|
-
import { DropdownItemOption } from '../ui/DropdownItem/DropdownItem.type';
|
3
|
-
export declare type PathMapType = Map<string | number, number>;
|
4
|
-
export declare type FocusedToValueMapType = Map<string, DropdownItemOption>;
|
5
|
-
export declare const useHashMaps: (items: DropdownProps['items']) => [PathMapType, FocusedToValueMapType];
|
6
|
-
//# sourceMappingURL=useHashMaps.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"useHashMaps.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/hooks/useHashMaps.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE1E,oBAAY,WAAW,GAAG,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,MAAM,CAAC,CAAC;AACvD,oBAAY,qBAAqB,GAAG,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;AAEpE,eAAO,MAAM,WAAW,UAAW,aAAa,CAAC,OAAO,CAAC,yCAwBxD,CAAC"}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
import type { Dispatch } from 'react';
|
2
|
-
import { PathAction, PathState } from '../reducers/pathReducer';
|
3
|
-
import { FocusedPathAction, FocusedPathState } from '../reducers/focusedPathReducer';
|
4
|
-
import { HandleGlobalToggleType, DropdownProps } from '../Dropdown.types';
|
5
|
-
import { PathMapType, FocusedToValueMapType } from './useHashMaps';
|
6
|
-
interface Props {
|
7
|
-
focusedPath: FocusedPathState;
|
8
|
-
dispatchFocusedPath: Dispatch<FocusedPathAction>;
|
9
|
-
path: PathState;
|
10
|
-
dispatchPath: Dispatch<PathAction>;
|
11
|
-
pathMap: PathMapType;
|
12
|
-
focusedToValueMap: FocusedToValueMapType;
|
13
|
-
handleGlobalToggle: HandleGlobalToggleType;
|
14
|
-
closeOnSelect: DropdownProps['closeOnSelect'];
|
15
|
-
onItemSelect: DropdownProps['onItemSelect'];
|
16
|
-
onItemClick: DropdownProps['onItemClick'];
|
17
|
-
}
|
18
|
-
interface ReturnedProps {
|
19
|
-
onKeyDown: (event: React.KeyboardEvent<HTMLElement>) => void;
|
20
|
-
}
|
21
|
-
export declare const useKeyNavigation: ({ focusedPath, dispatchFocusedPath, path, dispatchPath, pathMap, focusedToValueMap, handleGlobalToggle, closeOnSelect, onItemSelect, onItemClick, }: Props) => ReturnedProps;
|
22
|
-
export {};
|
23
|
-
//# sourceMappingURL=useKeyboardNavigation.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"useKeyboardNavigation.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/hooks/useKeyboardNavigation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AACrF,OAAO,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE1E,OAAO,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAQnE,UAAU,KAAK;IACX,WAAW,EAAE,gBAAgB,CAAC;IAC9B,mBAAmB,EAAE,QAAQ,CAAC,iBAAiB,CAAC,CAAC;IACjD,IAAI,EAAE,SAAS,CAAC;IAChB,YAAY,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC;IACnC,OAAO,EAAE,WAAW,CAAC;IACrB,iBAAiB,EAAE,qBAAqB,CAAC;IACzC,kBAAkB,EAAE,sBAAsB,CAAC;IAC3C,aAAa,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IAC9C,YAAY,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;IAC5C,WAAW,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;CAC7C;AAED,UAAU,aAAa;IACnB,SAAS,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;CAChE;AAED,eAAO,MAAM,gBAAgB,wJAW1B,KAAK,KAAG,aAoIV,CAAC"}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
export declare type FocusedPathState = Array<number>;
|
2
|
-
export declare type FocusedPathAction = {
|
3
|
-
type: 'reset';
|
4
|
-
} | {
|
5
|
-
type: 'set_initial_focus';
|
6
|
-
} | {
|
7
|
-
type: 'change_last_focus';
|
8
|
-
value: number;
|
9
|
-
} | {
|
10
|
-
type: 'add_focus';
|
11
|
-
value: number;
|
12
|
-
} | {
|
13
|
-
type: 'return_prev_focus';
|
14
|
-
};
|
15
|
-
export declare function focusedPathReducer(state: FocusedPathState, action: FocusedPathAction): FocusedPathState;
|
16
|
-
//# sourceMappingURL=focusedPathReducer.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"focusedPathReducer.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/reducers/focusedPathReducer.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AAE7C,oBAAY,iBAAiB,GACvB;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GACjB;IAAE,IAAI,EAAE,mBAAmB,CAAA;CAAE,GAC7B;IAAE,IAAI,EAAE,mBAAmB,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC5C;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACpC;IAAE,IAAI,EAAE,mBAAmB,CAAA;CAAE,CAAC;AAEpC,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,gBAAgB,EAAE,MAAM,EAAE,iBAAiB,GAAG,gBAAgB,CA0BvG"}
|