@alfalab/core-components 40.0.0 → 40.2.0-beta.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/calendar/Component.responsive.js +1 -1
- package/calendar/components/calendar-mobile/Component.js +1 -1
- package/calendar/components/calendar-mobile/index.d.ts +1 -1
- package/calendar/components/calendar-mobile/index.js +1 -1
- package/calendar/esm/Component.responsive.js +1 -1
- package/calendar/esm/components/calendar-mobile/Component.js +1 -1
- package/calendar/esm/components/calendar-mobile/index.d.ts +1 -1
- package/calendar/esm/components/calendar-mobile/index.js +1 -1
- package/calendar/esm/index.js +1 -1
- package/calendar/esm/mobile.js +1 -1
- package/calendar/esm/responsive.d.ts +1 -1
- package/calendar/esm/responsive.js +1 -1
- package/calendar/index.js +1 -1
- package/calendar/mobile.js +1 -1
- package/calendar/modern/Component.responsive.js +1 -1
- package/calendar/modern/components/calendar-mobile/Component.js +1 -1
- package/calendar/modern/components/calendar-mobile/index.d.ts +1 -1
- package/calendar/modern/components/calendar-mobile/index.js +1 -1
- package/calendar/modern/index.js +1 -1
- package/calendar/modern/mobile.js +1 -1
- package/calendar/modern/responsive.d.ts +1 -1
- package/calendar/modern/responsive.js +1 -1
- package/calendar/responsive.d.ts +1 -1
- package/calendar/responsive.js +1 -1
- package/confirmation/component.desktop.js +1 -1
- package/confirmation/component.mobile.js +1 -1
- package/confirmation/component.responsive.js +1 -1
- package/confirmation/components/base-confirmation/component.js +1 -1
- package/confirmation/components/base-confirmation/index.js +1 -1
- package/confirmation/components/index.js +1 -1
- package/confirmation/components/screens/index.js +1 -1
- package/confirmation/components/screens/initial/component.js +1 -1
- package/confirmation/components/screens/initial/countdown-section.js +1 -1
- package/confirmation/components/screens/initial/index.js +1 -1
- package/confirmation/desktop.js +1 -1
- package/confirmation/esm/component.desktop.js +1 -1
- package/confirmation/esm/component.mobile.js +1 -1
- package/confirmation/esm/component.responsive.js +1 -1
- package/confirmation/esm/components/base-confirmation/component.js +1 -1
- package/confirmation/esm/components/base-confirmation/index.js +1 -1
- package/confirmation/esm/components/index.js +1 -1
- package/confirmation/esm/components/screens/index.js +1 -1
- package/confirmation/esm/components/screens/initial/component.js +1 -1
- package/confirmation/esm/components/screens/initial/countdown-section.js +1 -1
- package/confirmation/esm/components/screens/initial/index.js +1 -1
- package/confirmation/esm/desktop.js +1 -1
- package/confirmation/esm/index.js +1 -1
- package/confirmation/esm/mobile.js +1 -1
- package/confirmation/esm/responsive.js +1 -1
- package/confirmation/index.js +1 -1
- package/confirmation/mobile.js +1 -1
- package/confirmation/modern/component.desktop.js +1 -1
- package/confirmation/modern/component.mobile.js +1 -1
- package/confirmation/modern/component.responsive.js +1 -1
- package/confirmation/modern/components/base-confirmation/component.js +1 -1
- package/confirmation/modern/components/base-confirmation/index.js +1 -1
- package/confirmation/modern/components/index.js +1 -1
- package/confirmation/modern/components/screens/index.js +1 -1
- package/confirmation/modern/components/screens/initial/component.js +1 -1
- package/confirmation/modern/components/screens/initial/countdown-section.js +1 -1
- package/confirmation/modern/components/screens/initial/index.js +1 -1
- package/confirmation/modern/desktop.js +1 -1
- package/confirmation/modern/index.js +1 -1
- package/confirmation/modern/mobile.js +1 -1
- package/confirmation/modern/responsive.js +1 -1
- package/confirmation/responsive.js +1 -1
- package/gallery/Component.js +1 -1
- package/gallery/components/image-viewer/component.js +1 -1
- package/gallery/components/image-viewer/index.js +1 -1
- package/gallery/components/image-viewer/slide.js +1 -1
- package/gallery/components/index.js +1 -1
- package/gallery/esm/Component.js +1 -1
- package/gallery/esm/components/image-viewer/component.js +1 -1
- package/gallery/esm/components/image-viewer/index.js +1 -1
- package/gallery/esm/components/image-viewer/slide.js +1 -1
- package/gallery/esm/components/index.js +1 -1
- package/gallery/esm/index.js +1 -1
- package/gallery/index.js +1 -1
- package/gallery/modern/Component.js +1 -1
- package/gallery/modern/components/image-viewer/component.js +1 -1
- package/gallery/modern/components/image-viewer/index.js +1 -1
- package/gallery/modern/components/image-viewer/slide.js +1 -1
- package/gallery/modern/components/index.js +1 -1
- package/gallery/modern/index.js +1 -1
- package/package.json +1 -1
- package/picker-button/cssm/field/Component.d.ts +1 -1
- package/picker-button/cssm/option/Component.d.ts +2 -2
- package/picker-button/{esm/typings-f9462675.d.ts → cssm/typings-5e1b8383.d.ts} +1 -1
- package/picker-button/esm/field/Component.d.ts +1 -1
- package/picker-button/esm/option/Component.d.ts +2 -2
- package/picker-button/{modern/typings-f9462675.d.ts → esm/typings-5e1b8383.d.ts} +1 -1
- package/picker-button/field/Component.d.ts +1 -1
- package/picker-button/modern/field/Component.d.ts +1 -1
- package/picker-button/modern/option/Component.d.ts +2 -2
- package/picker-button/{typings-f9462675.d.ts → modern/typings-5e1b8383.d.ts} +1 -1
- package/picker-button/option/Component.d.ts +2 -2
- package/picker-button/{cssm/typings-f9462675.d.ts → typings-5e1b8383.d.ts} +1 -1
- package/pure-cell/{component-caed4c0d.js → component-537711f1.js} +1 -1
- package/pure-cell/component.js +2 -2
- package/pure-cell/components/addon/component.js +1 -1
- package/pure-cell/components/addon/index.js +1 -1
- package/pure-cell/components/amount/component.js +1 -1
- package/pure-cell/components/amount/index.js +1 -1
- package/pure-cell/components/amount-title/component.js +1 -1
- package/pure-cell/components/amount-title/index.js +1 -1
- package/pure-cell/components/category/component.js +1 -1
- package/pure-cell/components/category/index.js +1 -1
- package/pure-cell/components/content/component.js +2 -2
- package/pure-cell/components/content/index.d.ts +1 -1
- package/pure-cell/components/content/index.js +2 -2
- package/pure-cell/components/footer/component.js +1 -1
- package/pure-cell/components/footer/index.js +1 -1
- package/pure-cell/components/footer-button/component.js +1 -1
- package/pure-cell/components/footer-button/index.js +1 -1
- package/pure-cell/components/footer-text/component.js +1 -1
- package/pure-cell/components/footer-text/index.js +1 -1
- package/pure-cell/components/graphics/component.js +1 -1
- package/pure-cell/components/graphics/index.js +1 -1
- package/pure-cell/components/main/component.js +2 -2
- package/pure-cell/components/main/index.d.ts +1 -1
- package/pure-cell/components/main/index.js +2 -2
- package/pure-cell/components/text/component.js +2 -2
- package/pure-cell/components/text/index.d.ts +1 -1
- package/pure-cell/components/text/index.js +2 -2
- package/pure-cell/esm/{component-8c8b31a1.js → component-8a70d238.js} +1 -1
- package/pure-cell/esm/component.js +2 -2
- package/pure-cell/esm/components/addon/component.js +1 -1
- package/pure-cell/esm/components/addon/index.js +1 -1
- package/pure-cell/esm/components/amount/component.js +1 -1
- package/pure-cell/esm/components/amount/index.js +1 -1
- package/pure-cell/esm/components/amount-title/component.js +1 -1
- package/pure-cell/esm/components/amount-title/index.js +1 -1
- package/pure-cell/esm/components/category/component.js +1 -1
- package/pure-cell/esm/components/category/index.js +1 -1
- package/pure-cell/esm/components/content/component.js +2 -2
- package/pure-cell/esm/components/content/index.d.ts +1 -1
- package/pure-cell/esm/components/content/index.js +2 -2
- package/pure-cell/esm/components/footer/component.js +1 -1
- package/pure-cell/esm/components/footer/index.js +1 -1
- package/pure-cell/esm/components/footer-button/component.js +1 -1
- package/pure-cell/esm/components/footer-button/index.js +1 -1
- package/pure-cell/esm/components/footer-text/component.js +1 -1
- package/pure-cell/esm/components/footer-text/index.js +1 -1
- package/pure-cell/esm/components/graphics/component.js +1 -1
- package/pure-cell/esm/components/graphics/index.js +1 -1
- package/pure-cell/esm/components/main/component.js +2 -2
- package/pure-cell/esm/components/main/index.d.ts +1 -1
- package/pure-cell/esm/components/main/index.js +2 -2
- package/pure-cell/esm/components/text/component.js +2 -2
- package/pure-cell/esm/components/text/index.d.ts +1 -1
- package/pure-cell/esm/components/text/index.js +2 -2
- package/pure-cell/esm/index.js +2 -2
- package/pure-cell/index.js +2 -2
- package/pure-cell/modern/{component-3c343e94.js → component-eed177b3.js} +1 -1
- package/pure-cell/modern/component.js +2 -2
- package/pure-cell/modern/components/addon/component.js +1 -1
- package/pure-cell/modern/components/addon/index.js +1 -1
- package/pure-cell/modern/components/amount/component.js +1 -1
- package/pure-cell/modern/components/amount/index.js +1 -1
- package/pure-cell/modern/components/amount-title/component.js +1 -1
- package/pure-cell/modern/components/amount-title/index.js +1 -1
- package/pure-cell/modern/components/category/component.js +1 -1
- package/pure-cell/modern/components/category/index.js +1 -1
- package/pure-cell/modern/components/content/component.js +2 -2
- package/pure-cell/modern/components/content/index.d.ts +1 -1
- package/pure-cell/modern/components/content/index.js +2 -2
- package/pure-cell/modern/components/footer/component.js +1 -1
- package/pure-cell/modern/components/footer/index.js +1 -1
- package/pure-cell/modern/components/footer-button/component.js +1 -1
- package/pure-cell/modern/components/footer-button/index.js +1 -1
- package/pure-cell/modern/components/footer-text/component.js +1 -1
- package/pure-cell/modern/components/footer-text/index.js +1 -1
- package/pure-cell/modern/components/graphics/component.js +1 -1
- package/pure-cell/modern/components/graphics/index.js +1 -1
- package/pure-cell/modern/components/main/component.js +2 -2
- package/pure-cell/modern/components/main/index.d.ts +1 -1
- package/pure-cell/modern/components/main/index.js +2 -2
- package/pure-cell/modern/components/text/component.js +2 -2
- package/pure-cell/modern/components/text/index.d.ts +1 -1
- package/pure-cell/modern/components/text/index.js +2 -2
- package/pure-cell/modern/index.js +2 -2
- package/select/Component-06f4d707.d.ts +61 -0
- package/select/Component-06f4d707.js +156 -0
- package/select/Component.js +4 -3
- package/select/Component.responsive.js +14 -13
- package/select/components/base-select/Component.d.ts +5 -0
- package/select/components/base-select/Component.js +242 -12
- package/select/components/base-select/index.d.ts +1 -1
- package/select/components/base-select/index.js +2 -1
- package/select/components/base-select-mobile/Component.d.ts +46 -0
- package/select/components/base-select-mobile/Component.js +209 -33
- package/select/components/base-select-mobile/footer/Component.d.ts +8 -0
- package/select/components/base-select-mobile/footer/Component.js +32 -0
- package/select/components/base-select-mobile/footer/index.css +42 -0
- package/select/components/base-select-mobile/footer/index.js +11 -0
- package/select/components/base-select-mobile/index.css +0 -9
- package/select/components/base-select-mobile/index.d.ts +1 -1
- package/select/components/base-select-mobile/index.js +9 -22
- package/select/{cssm/components/base-select-mobile/checkmark → components/checkmark-mobile}/Component.d.ts +1 -1
- package/select/components/{base-select-mobile/checkmark → checkmark-mobile}/Component.js +1 -1
- package/select/{modern/components/base-select-mobile/checkmark → components/checkmark-mobile}/index.css +6 -6
- package/select/components/checkmark-mobile/index.js +10 -0
- package/select/components/index.js +15 -13
- package/select/components/option/Component.js +3 -3
- package/select/components/option/index.js +2 -2
- package/select/components/options-list/Component.d.ts +1 -1
- package/select/components/options-list/index.css +3 -1
- package/select/components/select-mobile/Component.js +19 -18
- package/select/components/select-mobile/index.d.ts +1 -1
- package/select/components/select-mobile/index.js +16 -15
- package/select/components/select-modal-mobile/Component.js +19 -18
- package/select/components/select-modal-mobile/index.d.ts +1 -1
- package/select/components/select-modal-mobile/index.js +16 -15
- package/select/components/virtual-options-list/Component.d.ts +2 -7
- package/select/components/virtual-options-list/Component.js +30 -18
- package/select/components/virtual-options-list/index.css +4 -1
- package/select/components/virtual-options-list/index.js +1 -0
- package/select/cssm/Component-610b3743.d.ts +61 -0
- package/select/cssm/Component-610b3743.js +166 -0
- package/select/cssm/Component.js +5 -4
- package/select/cssm/Component.responsive.js +18 -18
- package/select/cssm/components/base-select/Component.d.ts +5 -0
- package/select/cssm/components/base-select/Component.js +241 -13
- package/select/cssm/components/base-select/index.d.ts +1 -1
- package/select/cssm/components/base-select/index.js +2 -1
- package/select/cssm/components/base-select-mobile/Component.d.ts +46 -0
- package/select/cssm/components/base-select-mobile/Component.js +209 -44
- package/select/cssm/components/base-select-mobile/footer/Component.d.ts +8 -0
- package/select/cssm/components/base-select-mobile/footer/Component.js +31 -0
- package/select/cssm/components/base-select-mobile/footer/index.js +12 -0
- package/select/cssm/components/base-select-mobile/footer/index.module.css +41 -0
- package/select/cssm/components/base-select-mobile/index.d.ts +1 -1
- package/select/cssm/components/base-select-mobile/index.js +11 -33
- package/select/cssm/components/base-select-mobile/index.module.css +0 -9
- package/select/{components/base-select-mobile/checkmark → cssm/components/checkmark-mobile}/Component.d.ts +1 -1
- package/select/cssm/components/{base-select-mobile/checkmark → checkmark-mobile}/index.js +2 -2
- package/select/cssm/components/index.js +22 -21
- package/select/cssm/components/option/Component.js +4 -4
- package/select/cssm/components/option/index.js +3 -3
- package/select/cssm/components/options-list/Component.d.ts +1 -1
- package/select/cssm/components/options-list/index.module.css +3 -1
- package/select/cssm/components/select-mobile/Component.js +26 -26
- package/select/cssm/components/select-mobile/index.d.ts +1 -1
- package/select/cssm/components/select-mobile/index.js +19 -19
- package/select/cssm/components/select-modal-mobile/Component.js +26 -26
- package/select/cssm/components/select-modal-mobile/index.d.ts +1 -1
- package/select/cssm/components/select-modal-mobile/index.js +19 -19
- package/select/cssm/components/virtual-options-list/Component.d.ts +2 -7
- package/select/cssm/components/virtual-options-list/Component.js +30 -18
- package/select/cssm/components/virtual-options-list/index.js +1 -0
- package/select/cssm/components/virtual-options-list/index.module.css +4 -1
- package/select/{esm/hook-edac5428.d.ts → cssm/hook-4b555174.d.ts} +11 -6
- package/select/cssm/index-3885b0d7.d.ts +1 -1
- package/select/cssm/index.js +21 -20
- package/select/cssm/presets/index.d.ts +1 -1
- package/select/cssm/presets/index.js +19 -19
- package/select/cssm/presets/useLazyLoading/hook.js +3 -3
- package/select/cssm/presets/useSelectWithApply/hook.js +17 -17
- package/select/cssm/presets/useSelectWithApply/options-list-with-apply/Component.js +35 -35
- package/select/cssm/presets/useSelectWithApply/options-list-with-apply/footer/Component.d.ts +10 -0
- package/select/cssm/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +21 -0
- package/select/cssm/presets/useSelectWithApply/options-list-with-apply/{index.module.css → footer/index.module.css} +1 -1
- package/select/cssm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/select/cssm/presets/useSelectWithApply/options-list-with-apply/index.js +19 -19
- package/select/cssm/presets/useSelectWithLoading/hook.js +3 -3
- package/select/cssm/responsive.js +15 -15
- package/select/cssm/typings.d.ts +1 -1
- package/select/esm/Component-f4ea409c.d.ts +61 -0
- package/select/esm/Component-f4ea409c.js +162 -0
- package/select/esm/Component.js +4 -3
- package/select/esm/Component.responsive.js +14 -13
- package/select/esm/components/base-select/Component.d.ts +5 -0
- package/select/esm/components/base-select/Component.js +239 -11
- package/select/esm/components/base-select/index.d.ts +1 -1
- package/select/esm/components/base-select/index.js +2 -1
- package/select/esm/components/base-select-mobile/Component.d.ts +46 -0
- package/select/esm/components/base-select-mobile/Component.js +206 -32
- package/select/esm/components/base-select-mobile/footer/Component.d.ts +8 -0
- package/select/esm/components/base-select-mobile/footer/Component.js +25 -0
- package/select/esm/components/base-select-mobile/footer/index.css +42 -0
- package/select/esm/components/base-select-mobile/footer/index.js +5 -0
- package/select/esm/components/base-select-mobile/index.css +0 -9
- package/select/esm/components/base-select-mobile/index.d.ts +1 -1
- package/select/esm/components/base-select-mobile/index.js +8 -21
- package/select/esm/components/{base-select-mobile/checkmark → checkmark-mobile}/Component.d.ts +1 -1
- package/select/esm/components/{base-select-mobile/checkmark → checkmark-mobile}/Component.js +1 -1
- package/select/{components/base-select-mobile/checkmark → esm/components/checkmark-mobile}/index.css +6 -6
- package/select/esm/components/index.js +15 -13
- package/select/esm/components/option/Component.js +2 -2
- package/select/esm/components/option/index.js +2 -2
- package/select/esm/components/options-list/Component.d.ts +1 -1
- package/select/esm/components/options-list/index.css +3 -1
- package/select/esm/components/select-mobile/Component.js +19 -18
- package/select/esm/components/select-mobile/index.d.ts +1 -1
- package/select/esm/components/select-mobile/index.js +16 -15
- package/select/esm/components/select-modal-mobile/Component.js +19 -18
- package/select/esm/components/select-modal-mobile/index.d.ts +1 -1
- package/select/esm/components/select-modal-mobile/index.js +16 -15
- package/select/esm/components/virtual-options-list/Component.d.ts +2 -7
- package/select/esm/components/virtual-options-list/Component.js +30 -19
- package/select/esm/components/virtual-options-list/index.css +4 -1
- package/select/esm/components/virtual-options-list/index.js +1 -0
- package/select/{cssm/hook-edac5428.d.ts → esm/hook-4b555174.d.ts} +11 -6
- package/select/esm/index-3885b0d7.d.ts +1 -1
- package/select/esm/index.js +14 -12
- package/select/esm/presets/index.d.ts +1 -1
- package/select/esm/presets/index.js +16 -15
- package/select/esm/presets/useLazyLoading/hook.js +3 -3
- package/select/esm/presets/useSelectWithApply/hook.js +13 -12
- package/select/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +26 -25
- package/select/esm/presets/useSelectWithApply/options-list-with-apply/footer/Component.d.ts +10 -0
- package/select/esm/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +16 -0
- package/select/esm/presets/useSelectWithApply/options-list-with-apply/{index.css → footer/index.css} +4 -4
- package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.js +16 -15
- package/select/esm/presets/useSelectWithLoading/hook.js +2 -2
- package/select/esm/responsive.js +12 -11
- package/select/esm/typings.d.ts +1 -1
- package/select/getDataTestId-913da9a4.js +6 -0
- package/select/{hook-edac5428.d.ts → hook-4b555174.d.ts} +11 -6
- package/select/index-3885b0d7.d.ts +1 -1
- package/select/index.js +14 -12
- package/select/modern/Component-4d5dba68.d.ts +61 -0
- package/select/modern/Component-4d5dba68.js +176 -0
- package/select/modern/Component.js +4 -3
- package/select/modern/Component.responsive.js +14 -13
- package/select/modern/components/base-select/Component.d.ts +5 -0
- package/select/modern/components/base-select/Component.js +251 -10
- package/select/modern/components/base-select/index.d.ts +1 -1
- package/select/modern/components/base-select/index.js +2 -1
- package/select/modern/components/base-select-mobile/Component.d.ts +46 -0
- package/select/modern/components/base-select-mobile/Component.js +220 -31
- package/select/modern/components/base-select-mobile/footer/Component.d.ts +8 -0
- package/select/modern/components/base-select-mobile/footer/Component.js +23 -0
- package/select/modern/components/base-select-mobile/footer/index.css +42 -0
- package/select/modern/components/base-select-mobile/{options-list → footer}/index.js +1 -3
- package/select/modern/components/base-select-mobile/index.css +0 -9
- package/select/modern/components/base-select-mobile/index.d.ts +1 -1
- package/select/modern/components/base-select-mobile/index.js +8 -21
- package/select/modern/components/{base-select-mobile/checkmark → checkmark-mobile}/Component.d.ts +1 -1
- package/select/modern/components/{base-select-mobile/checkmark → checkmark-mobile}/Component.js +1 -1
- package/select/{esm/components/base-select-mobile/checkmark → modern/components/checkmark-mobile}/index.css +6 -6
- package/select/modern/components/index.js +15 -13
- package/select/modern/components/option/Component.js +2 -2
- package/select/modern/components/option/index.js +2 -2
- package/select/modern/components/options-list/Component.d.ts +1 -1
- package/select/modern/components/options-list/index.css +3 -1
- package/select/modern/components/select-mobile/Component.js +19 -18
- package/select/modern/components/select-mobile/index.d.ts +1 -1
- package/select/modern/components/select-mobile/index.js +16 -15
- package/select/modern/components/select-modal-mobile/Component.js +19 -18
- package/select/modern/components/select-modal-mobile/index.d.ts +1 -1
- package/select/modern/components/select-modal-mobile/index.js +16 -15
- package/select/modern/components/virtual-options-list/Component.d.ts +2 -7
- package/select/modern/components/virtual-options-list/Component.js +28 -17
- package/select/modern/components/virtual-options-list/index.css +4 -1
- package/select/modern/components/virtual-options-list/index.js +1 -0
- package/select/modern/getDataTestId-c6fd39a7.d.ts +2 -0
- package/select/modern/{hook-edac5428.d.ts → hook-4b555174.d.ts} +11 -6
- package/select/modern/index-3885b0d7.d.ts +1 -1
- package/select/modern/index.js +14 -12
- package/select/modern/presets/index.d.ts +1 -1
- package/select/modern/presets/index.js +16 -15
- package/select/modern/presets/useLazyLoading/hook.js +3 -3
- package/select/modern/presets/useSelectWithApply/hook.js +13 -12
- package/select/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +26 -25
- package/select/modern/presets/useSelectWithApply/options-list-with-apply/footer/Component.d.ts +10 -0
- package/select/modern/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +13 -0
- package/select/{presets/useSelectWithApply/options-list-with-apply → modern/presets/useSelectWithApply/options-list-with-apply/footer}/index.css +4 -4
- package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.js +16 -15
- package/select/modern/presets/useSelectWithLoading/hook.js +2 -2
- package/select/modern/responsive.js +12 -11
- package/select/modern/typings.d.ts +1 -1
- package/select/presets/index.d.ts +1 -1
- package/select/presets/index.js +16 -15
- package/select/presets/useLazyLoading/hook.js +3 -3
- package/select/presets/useSelectWithApply/hook.js +13 -12
- package/select/presets/useSelectWithApply/options-list-with-apply/Component.js +27 -26
- package/select/presets/useSelectWithApply/options-list-with-apply/footer/Component.d.ts +10 -0
- package/select/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +22 -0
- package/select/{modern/presets/useSelectWithApply/options-list-with-apply → presets/useSelectWithApply/options-list-with-apply/footer}/index.css +4 -4
- package/select/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/select/presets/useSelectWithApply/options-list-with-apply/index.js +16 -15
- package/select/presets/useSelectWithLoading/hook.js +2 -2
- package/select/responsive.js +12 -11
- package/select/typings.d.ts +1 -1
- package/sortable-list/Component.js +1 -1
- package/sortable-list/components/item/Components.js +1 -1
- package/sortable-list/esm/Component.js +1 -1
- package/sortable-list/esm/components/item/Components.js +1 -1
- package/sortable-list/esm/index-3885b0d7.d.ts +1 -1
- package/sortable-list/esm/index.js +1 -1
- package/sortable-list/index-3885b0d7.d.ts +1 -1
- package/sortable-list/index.js +1 -1
- package/sortable-list/modern/Component.js +1 -1
- package/sortable-list/modern/components/item/Components.js +1 -1
- package/sortable-list/modern/index-3885b0d7.d.ts +1 -1
- package/sortable-list/modern/index.js +1 -1
- package/system-message/Component.desktop.js +1 -1
- package/system-message/Component.mobile.js +1 -1
- package/system-message/Components.responsive.js +1 -1
- package/system-message/components/caption/Component.js +1 -1
- package/system-message/components/caption/index.js +1 -1
- package/system-message/components/controls/Component.js +1 -1
- package/system-message/components/controls/index.js +1 -1
- package/system-message/components/graphic/Component.js +1 -1
- package/system-message/components/graphic/index.js +1 -1
- package/system-message/components/subtitle/Component.js +1 -1
- package/system-message/components/subtitle/index.js +1 -1
- package/system-message/components/title/Component.js +1 -1
- package/system-message/components/title/index.js +1 -1
- package/system-message/desktop.js +1 -1
- package/system-message/esm/Component.desktop.js +1 -1
- package/system-message/esm/Component.mobile.js +1 -1
- package/system-message/esm/Components.responsive.js +1 -1
- package/system-message/esm/components/caption/Component.js +1 -1
- package/system-message/esm/components/caption/index.js +1 -1
- package/system-message/esm/components/controls/Component.js +1 -1
- package/system-message/esm/components/controls/index.js +1 -1
- package/system-message/esm/components/graphic/Component.js +1 -1
- package/system-message/esm/components/graphic/index.js +1 -1
- package/system-message/esm/components/subtitle/Component.js +1 -1
- package/system-message/esm/components/subtitle/index.js +1 -1
- package/system-message/esm/components/title/Component.js +1 -1
- package/system-message/esm/components/title/index.js +1 -1
- package/system-message/esm/desktop.js +1 -1
- package/system-message/esm/getDataTestId-d5de4007.d.ts +2 -0
- package/system-message/esm/getDataTestId-d5de4007.js +6 -0
- package/system-message/esm/index-3885b0d7.d.ts +1 -1
- package/system-message/esm/index.js +1 -1
- package/system-message/esm/mobile.js +1 -1
- package/system-message/esm/responsive.js +1 -1
- package/system-message/esm/utils.js +1 -1
- package/system-message/getDataTestId-782f17f9.d.ts +2 -0
- package/system-message/getDataTestId-782f17f9.js +6 -0
- package/system-message/index-3885b0d7.d.ts +1 -1
- package/system-message/index.js +1 -1
- package/system-message/mobile.js +1 -1
- package/system-message/modern/Component.desktop.js +1 -1
- package/system-message/modern/Component.mobile.js +1 -1
- package/system-message/modern/Components.responsive.js +1 -1
- package/system-message/modern/components/caption/Component.js +1 -1
- package/system-message/modern/components/caption/index.js +1 -1
- package/system-message/modern/components/controls/Component.js +1 -1
- package/system-message/modern/components/controls/index.js +1 -1
- package/system-message/modern/components/graphic/Component.js +1 -1
- package/system-message/modern/components/graphic/index.js +1 -1
- package/system-message/modern/components/subtitle/Component.js +1 -1
- package/system-message/modern/components/subtitle/index.js +1 -1
- package/system-message/modern/components/title/Component.js +1 -1
- package/system-message/modern/components/title/index.js +1 -1
- package/system-message/modern/desktop.js +1 -1
- package/system-message/modern/getDataTestId-1b43b622.d.ts +2 -0
- package/system-message/modern/getDataTestId-1b43b622.js +6 -0
- package/system-message/modern/index-3885b0d7.d.ts +1 -1
- package/system-message/modern/index.js +1 -1
- package/system-message/modern/mobile.js +1 -1
- package/system-message/modern/responsive.js +1 -1
- package/system-message/modern/utils.js +1 -1
- package/system-message/responsive.js +1 -1
- package/system-message/utils.js +1 -1
- package/tabs/Component-3e68f8db.d.ts +2 -2
- package/tabs/Component-5e1b8383.d.ts +4 -0
- package/tabs/cssm/Component-3e68f8db.d.ts +2 -2
- package/tabs/cssm/Component-5e1b8383.d.ts +4 -0
- package/tabs/cssm/{hook-edac5428.d.ts → hook-3e68f8db.d.ts} +12 -6
- package/tabs/cssm/index-3e68f8db.d.ts +6 -5
- package/tabs/cssm/index-ebda875c.d.ts +35 -1
- package/tabs/cssm/{typings-f9462675.d.ts → typings-5e1b8383.d.ts} +1 -1
- package/tabs/{esm/utils-f9462675.d.ts → cssm/utils-5e1b8383.d.ts} +1 -1
- package/tabs/esm/Component-3e68f8db.d.ts +2 -2
- package/tabs/esm/Component-5e1b8383.d.ts +4 -0
- package/tabs/esm/{hook-edac5428.d.ts → hook-3e68f8db.d.ts} +12 -6
- package/tabs/esm/index-3e68f8db.d.ts +6 -5
- package/tabs/esm/index-ebda875c.d.ts +35 -1
- package/tabs/esm/{typings-f9462675.d.ts → typings-5e1b8383.d.ts} +1 -1
- package/tabs/{cssm/utils-f9462675.d.ts → esm/utils-5e1b8383.d.ts} +1 -1
- package/tabs/{hook-edac5428.d.ts → hook-3e68f8db.d.ts} +12 -6
- package/tabs/index-3e68f8db.d.ts +6 -5
- package/tabs/index-ebda875c.d.ts +35 -1
- package/tabs/modern/Component-3e68f8db.d.ts +2 -2
- package/tabs/modern/Component-5e1b8383.d.ts +4 -0
- package/tabs/modern/{hook-edac5428.d.ts → hook-3e68f8db.d.ts} +12 -6
- package/tabs/modern/index-3e68f8db.d.ts +6 -5
- package/tabs/modern/index-ebda875c.d.ts +35 -1
- package/tabs/modern/{typings-f9462675.d.ts → typings-5e1b8383.d.ts} +1 -1
- package/tabs/{utils-f9462675.d.ts → modern/utils-5e1b8383.d.ts} +1 -1
- package/tabs/{typings-f9462675.d.ts → typings-5e1b8383.d.ts} +1 -1
- package/tabs/{modern/utils-f9462675.d.ts → utils-5e1b8383.d.ts} +1 -1
- package/tag/cssm/index.module.css +0 -1
- package/tag/esm/index.css +0 -1
- package/tag/index.css +0 -1
- package/tag/modern/index.css +0 -1
- package/textarea/Component.d.ts +1 -1
- package/themes/compiled/mobile-dark-bluetint.css +7 -7
- package/themes/dist/compiled/mobile-dark-bluetint.css +32 -46
- package/select/Component-67e36290.d.ts +0 -6
- package/select/Component-67e36290.js +0 -250
- package/select/Component-86fe0799.d.ts +0 -142
- package/select/Component-86fe0799.js +0 -371
- package/select/components/base-select-mobile/checkmark/index.js +0 -10
- package/select/components/base-select-mobile/options-list/Component.d.ts +0 -4
- package/select/components/base-select-mobile/options-list/Component.js +0 -49
- package/select/components/base-select-mobile/options-list/index.css +0 -60
- package/select/components/base-select-mobile/options-list/index.js +0 -14
- package/select/components/base-select-mobile/virtual-options-list/Component.d.ts +0 -5
- package/select/components/base-select-mobile/virtual-options-list/Component.js +0 -112
- package/select/components/base-select-mobile/virtual-options-list/index.css +0 -89
- package/select/components/base-select-mobile/virtual-options-list/index.js +0 -16
- package/select/cssm/Component-e0df017c.d.ts +0 -6
- package/select/cssm/Component-e0df017c.js +0 -249
- package/select/cssm/Component-e4ef870b.d.ts +0 -142
- package/select/cssm/Component-e4ef870b.js +0 -380
- package/select/cssm/components/base-select-mobile/options-list/Component.d.ts +0 -4
- package/select/cssm/components/base-select-mobile/options-list/Component.js +0 -49
- package/select/cssm/components/base-select-mobile/options-list/index.js +0 -16
- package/select/cssm/components/base-select-mobile/options-list/index.module.css +0 -59
- package/select/cssm/components/base-select-mobile/virtual-options-list/Component.d.ts +0 -5
- package/select/cssm/components/base-select-mobile/virtual-options-list/Component.js +0 -112
- package/select/cssm/components/base-select-mobile/virtual-options-list/index.js +0 -18
- package/select/cssm/components/base-select-mobile/virtual-options-list/index.module.css +0 -88
- package/select/esm/Component-c79b7ae7.d.ts +0 -142
- package/select/esm/Component-c79b7ae7.js +0 -365
- package/select/esm/Component-fdfce5e1.d.ts +0 -6
- package/select/esm/Component-fdfce5e1.js +0 -243
- package/select/esm/components/base-select-mobile/options-list/Component.d.ts +0 -4
- package/select/esm/components/base-select-mobile/options-list/Component.js +0 -42
- package/select/esm/components/base-select-mobile/options-list/index.css +0 -60
- package/select/esm/components/base-select-mobile/options-list/index.js +0 -8
- package/select/esm/components/base-select-mobile/virtual-options-list/Component.d.ts +0 -5
- package/select/esm/components/base-select-mobile/virtual-options-list/Component.js +0 -105
- package/select/esm/components/base-select-mobile/virtual-options-list/index.css +0 -89
- package/select/esm/components/base-select-mobile/virtual-options-list/index.d.ts +0 -1
- package/select/esm/components/base-select-mobile/virtual-options-list/index.js +0 -10
- package/select/modern/Component-4c4a3ab4.d.ts +0 -142
- package/select/modern/Component-4c4a3ab4.js +0 -375
- package/select/modern/Component-979388ae.d.ts +0 -6
- package/select/modern/Component-979388ae.js +0 -255
- package/select/modern/components/base-select-mobile/checkmark/index.d.ts +0 -1
- package/select/modern/components/base-select-mobile/options-list/Component.d.ts +0 -4
- package/select/modern/components/base-select-mobile/options-list/Component.js +0 -37
- package/select/modern/components/base-select-mobile/options-list/index.css +0 -60
- package/select/modern/components/base-select-mobile/options-list/index.d.ts +0 -1
- package/select/modern/components/base-select-mobile/virtual-options-list/Component.d.ts +0 -5
- package/select/modern/components/base-select-mobile/virtual-options-list/Component.js +0 -99
- package/select/modern/components/base-select-mobile/virtual-options-list/index.css +0 -89
- package/select/modern/components/base-select-mobile/virtual-options-list/index.d.ts +0 -1
- package/select/modern/components/base-select-mobile/virtual-options-list/index.js +0 -9
- package/tabs/Component-f9462675.d.ts +0 -5
- package/tabs/cssm/Component-f9462675.d.ts +0 -5
- package/tabs/cssm/index-48646db0.d.ts +0 -2
- package/tabs/esm/Component-f9462675.d.ts +0 -5
- package/tabs/esm/index-48646db0.d.ts +0 -2
- package/tabs/index-48646db0.d.ts +0 -2
- package/tabs/modern/Component-f9462675.d.ts +0 -5
- package/tabs/modern/index-48646db0.d.ts +0 -2
- /package/calendar/{Component.responsive-287ec8f7.d.ts → Component.responsive-0040ed8f.d.ts} +0 -0
- /package/calendar/{Component.responsive-287ec8f7.js → Component.responsive-0040ed8f.js} +0 -0
- /package/calendar/esm/{Component.responsive-9fb8d154.d.ts → Component.responsive-97584ac1.d.ts} +0 -0
- /package/calendar/esm/{Component.responsive-9fb8d154.js → Component.responsive-97584ac1.js} +0 -0
- /package/calendar/modern/{Component.responsive-e530e848.d.ts → Component.responsive-36fabdc1.d.ts} +0 -0
- /package/calendar/modern/{Component.responsive-e530e848.js → Component.responsive-36fabdc1.js} +0 -0
- /package/confirmation/{countdown-section-eeb2aaea.d.ts → countdown-section-601f560f.d.ts} +0 -0
- /package/confirmation/{countdown-section-eeb2aaea.js → countdown-section-601f560f.js} +0 -0
- /package/confirmation/esm/{countdown-section-11874006.d.ts → countdown-section-dc0c895e.d.ts} +0 -0
- /package/confirmation/esm/{countdown-section-11874006.js → countdown-section-dc0c895e.js} +0 -0
- /package/confirmation/modern/{countdown-section-a44bf760.d.ts → countdown-section-624b2fdc.d.ts} +0 -0
- /package/confirmation/modern/{countdown-section-a44bf760.js → countdown-section-624b2fdc.js} +0 -0
- /package/gallery/esm/{slide-a43275f6.d.ts → slide-c1c85c30.d.ts} +0 -0
- /package/gallery/esm/{slide-a43275f6.js → slide-c1c85c30.js} +0 -0
- /package/gallery/modern/{slide-930dfda7.d.ts → slide-d3f625a6.d.ts} +0 -0
- /package/gallery/modern/{slide-930dfda7.js → slide-d3f625a6.js} +0 -0
- /package/gallery/{slide-3041629a.d.ts → slide-d53a138a.d.ts} +0 -0
- /package/gallery/{slide-3041629a.js → slide-d53a138a.js} +0 -0
- /package/pure-cell/{component-caed4c0d.d.ts → component-537711f1.d.ts} +0 -0
- /package/pure-cell/esm/{component-8c8b31a1.d.ts → component-8a70d238.d.ts} +0 -0
- /package/pure-cell/esm/{getDataTestId-5f5492ab.d.ts → getDataTestId-233de4f1.d.ts} +0 -0
- /package/pure-cell/esm/{getDataTestId-5f5492ab.js → getDataTestId-233de4f1.js} +0 -0
- /package/pure-cell/{getDataTestId-699334e2.d.ts → getDataTestId-b85185da.d.ts} +0 -0
- /package/pure-cell/{getDataTestId-699334e2.js → getDataTestId-b85185da.js} +0 -0
- /package/pure-cell/modern/{component-3c343e94.d.ts → component-eed177b3.d.ts} +0 -0
- /package/pure-cell/modern/{getDataTestId-e3f7ffe0.d.ts → getDataTestId-2c691000.d.ts} +0 -0
- /package/pure-cell/modern/{getDataTestId-e3f7ffe0.js → getDataTestId-2c691000.js} +0 -0
- /package/select/components/base-select-mobile/{checkmark → footer}/index.d.ts +0 -0
- /package/select/components/{base-select-mobile/options-list → checkmark-mobile}/index.d.ts +0 -0
- /package/select/{components/base-select-mobile/virtual-options-list → cssm/components/base-select-mobile/footer}/index.d.ts +0 -0
- /package/select/cssm/components/{base-select-mobile/checkmark → checkmark-mobile}/Component.js +0 -0
- /package/select/cssm/components/{base-select-mobile/checkmark → checkmark-mobile}/index.d.ts +0 -0
- /package/select/cssm/components/{base-select-mobile/checkmark → checkmark-mobile}/index.module.css +0 -0
- /package/{system-message/esm/getDataTestId-cc03e290.d.ts → select/cssm/getDataTestId-5c876d98.d.ts} +0 -0
- /package/{system-message/getDataTestId-f5b5752a.js → select/cssm/getDataTestId-5c876d98.js} +0 -0
- /package/select/{cssm/components/base-select-mobile/options-list → esm/components/base-select-mobile/footer}/index.d.ts +0 -0
- /package/select/{cssm/components/base-select-mobile/virtual-options-list → esm/components/checkmark-mobile}/index.d.ts +0 -0
- /package/select/esm/components/{base-select-mobile/checkmark → checkmark-mobile}/index.js +0 -0
- /package/{system-message/getDataTestId-f5b5752a.d.ts → select/esm/getDataTestId-34d22933.d.ts} +0 -0
- /package/{system-message/esm/getDataTestId-cc03e290.js → select/esm/getDataTestId-34d22933.js} +0 -0
- /package/select/esm/{intersection-observer-be15dad5.d.ts → intersection-observer-d4da4352.d.ts} +0 -0
- /package/select/esm/{intersection-observer-be15dad5.js → intersection-observer-d4da4352.js} +0 -0
- /package/{system-message/modern/getDataTestId-a01c01be.d.ts → select/getDataTestId-913da9a4.d.ts} +0 -0
- /package/select/{intersection-observer-de1426cf.d.ts → intersection-observer-e38bcceb.d.ts} +0 -0
- /package/select/{intersection-observer-de1426cf.js → intersection-observer-e38bcceb.js} +0 -0
- /package/select/{esm/components/base-select-mobile/checkmark → modern/components/base-select-mobile/footer}/index.d.ts +0 -0
- /package/select/{esm/components/base-select-mobile/options-list → modern/components/checkmark-mobile}/index.d.ts +0 -0
- /package/select/modern/components/{base-select-mobile/checkmark → checkmark-mobile}/index.js +0 -0
- /package/{system-message/modern/getDataTestId-a01c01be.js → select/modern/getDataTestId-c6fd39a7.js} +0 -0
- /package/select/modern/{intersection-observer-be15dad5.d.ts → intersection-observer-d4da4352.d.ts} +0 -0
- /package/select/modern/{intersection-observer-be15dad5.js → intersection-observer-d4da4352.js} +0 -0
- /package/sortable-list/{Components-1931adf7.d.ts → Components-3d4ec89c.d.ts} +0 -0
- /package/sortable-list/{Components-1931adf7.js → Components-3d4ec89c.js} +0 -0
- /package/sortable-list/esm/{Components-164d6737.d.ts → Components-961404da.d.ts} +0 -0
- /package/sortable-list/esm/{Components-164d6737.js → Components-961404da.js} +0 -0
- /package/sortable-list/modern/{Components-8596a174.d.ts → Components-bb87c189.d.ts} +0 -0
- /package/sortable-list/modern/{Components-8596a174.js → Components-bb87c189.js} +0 -0
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Footer } from './Component.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '../../../../../base-modal/modern';
|
|
5
5
|
import '../../../../../button/modern';
|
|
6
|
-
import '../../optgroup/Component.js';
|
|
7
|
-
import '../../../utils.js';
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
} :root {
|
|
22
22
|
|
|
23
23
|
/* options list */
|
|
24
|
-
--select-options-list-offset: var(--gap-2xs);
|
|
25
24
|
|
|
26
25
|
/* option */
|
|
27
26
|
|
|
@@ -32,14 +31,6 @@
|
|
|
32
31
|
width: max-content;
|
|
33
32
|
position: relative;
|
|
34
33
|
outline: 0;
|
|
35
|
-
} .select__popoverInner_1lci1 {
|
|
36
|
-
padding-top: var(--select-options-list-offset);
|
|
37
|
-
padding-bottom: var(--select-options-list-offset);
|
|
38
|
-
box-shadow: none;
|
|
39
|
-
border: none;
|
|
40
|
-
background: transparent;
|
|
41
|
-
border-radius: 0;
|
|
42
|
-
position: relative;
|
|
43
34
|
} .select__sheet_1lci1 {
|
|
44
35
|
overflow: hidden;
|
|
45
36
|
} .select__sheetContent_1lci1 {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "
|
|
1
|
+
export * from "./Component";
|
|
@@ -1,37 +1,24 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { BaseSelectMobile } from './Component.js';
|
|
2
2
|
import 'react';
|
|
3
|
-
import '../arrow/Component.js';
|
|
4
|
-
import 'classnames';
|
|
5
|
-
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
6
3
|
import 'react-merge-refs';
|
|
4
|
+
import 'classnames';
|
|
7
5
|
import 'downshift';
|
|
8
6
|
import '../../../../bottom-sheet/modern';
|
|
9
7
|
import '../../../../modal/modern/mobile';
|
|
10
|
-
import '
|
|
11
|
-
import '
|
|
12
|
-
import '@juggle/resize-observer';
|
|
13
|
-
import '../../../../popover/modern';
|
|
14
|
-
import '@alfalab/hooks';
|
|
15
|
-
import '../native-select/Component.js';
|
|
8
|
+
import '../arrow/Component.js';
|
|
9
|
+
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
16
10
|
import '../field/Component.js';
|
|
17
11
|
import '../../../../form-control/modern';
|
|
12
|
+
import '@alfalab/hooks';
|
|
18
13
|
import '../optgroup/Component.js';
|
|
19
14
|
import '../option/Component.js';
|
|
20
|
-
import './checkmark/Component.js';
|
|
21
|
-
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
22
15
|
import '../checkmark/Component.js';
|
|
23
16
|
import '../../../../badge/modern';
|
|
24
17
|
import '../../../../checkbox/modern';
|
|
25
18
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
19
|
+
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
20
|
+
import '../checkmark-mobile/Component.js';
|
|
26
21
|
import '../options-list/Component.js';
|
|
27
22
|
import '../../../../scrollbar/modern';
|
|
28
|
-
import '
|
|
29
|
-
import '../base-option/Component.js';
|
|
30
|
-
import '../base-checkmark/Component.js';
|
|
31
|
-
import '../../../../skeleton/modern';
|
|
32
|
-
import '../../intersection-observer-be15dad5.js';
|
|
33
|
-
import '../../../../button/modern';
|
|
34
|
-
import './options-list/Component.js';
|
|
35
|
-
import '../../../../base-modal/modern';
|
|
36
|
-
import './virtual-options-list/Component.js';
|
|
23
|
+
import '../../getDataTestId-c6fd39a7.js';
|
|
37
24
|
import '../../utils.js';
|
package/select/modern/components/{base-select-mobile/checkmark → checkmark-mobile}/Component.js
RENAMED
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { CheckmarkMIcon } from '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
4
4
|
|
|
5
|
-
const styles = {"checkmark":"
|
|
5
|
+
const styles = {"checkmark":"select__checkmark_1c2mc","selected":"select__selected_1c2mc","displayIcon":"select__displayIcon_1c2mc","displayBadge":"select__displayBadge_1c2mc"};
|
|
6
6
|
require('./index.css');
|
|
7
7
|
|
|
8
8
|
const Checkmark = ({ selected, className }) => (React.createElement("div", { className: cn(styles.checkmark, className, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: jwk8c */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
4
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
--select-mobile-checkmark-display-badge: none;
|
|
26
26
|
|
|
27
27
|
/* optgroup */
|
|
28
|
-
} .
|
|
28
|
+
} .select__checkmark_1c2mc {
|
|
29
29
|
flex-shrink: 0;
|
|
30
30
|
display: flex;
|
|
31
31
|
align-items: center;
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
width: 24px;
|
|
34
34
|
height: 24px;
|
|
35
35
|
opacity: 0
|
|
36
|
-
} .
|
|
36
|
+
} .select__checkmark_1c2mc:first-child {
|
|
37
37
|
display: none;
|
|
38
|
-
} .
|
|
38
|
+
} .select__checkmark_1c2mc.select__selected_1c2mc {
|
|
39
39
|
opacity: 1;
|
|
40
|
-
} .
|
|
40
|
+
} .select__displayIcon_1c2mc {
|
|
41
41
|
display: var(--select-mobile-checkmark-display-icon);
|
|
42
|
-
} .
|
|
42
|
+
} .select__displayBadge_1c2mc {
|
|
43
43
|
display: var(--select-mobile-checkmark-display-badge);
|
|
44
44
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { Arrow } from './arrow/Component.js';
|
|
2
|
-
export {
|
|
3
|
-
export { S as SelectMobile, a as SelectModalMobile } from '../Component-
|
|
2
|
+
export { BaseSelect } from './base-select/Component.js';
|
|
3
|
+
export { S as SelectMobile, a as SelectModalMobile } from '../Component-4d5dba68.js';
|
|
4
4
|
export { Field } from './field/Component.js';
|
|
5
5
|
export { Optgroup } from './optgroup/Component.js';
|
|
6
6
|
export { Option } from './option/Component.js';
|
|
@@ -16,23 +16,25 @@ import 'downshift';
|
|
|
16
16
|
import '../../../popover/modern';
|
|
17
17
|
import '@alfalab/hooks';
|
|
18
18
|
import './native-select/Component.js';
|
|
19
|
+
import '../Component.js';
|
|
20
|
+
import './base-select-mobile/Component.js';
|
|
19
21
|
import '../../../bottom-sheet/modern';
|
|
20
22
|
import '../../../modal/modern/mobile';
|
|
21
|
-
import '
|
|
22
|
-
import '
|
|
23
|
-
import '../../../scrollbar/modern';
|
|
24
|
-
import '../../../skeleton/modern';
|
|
25
|
-
import '../intersection-observer-be15dad5.js';
|
|
23
|
+
import './base-select-mobile/footer/Component.js';
|
|
24
|
+
import '../../../base-modal/modern';
|
|
26
25
|
import '../../../button/modern';
|
|
27
26
|
import '../../../form-control/modern';
|
|
28
|
-
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
29
27
|
import '../../../badge/modern';
|
|
30
28
|
import '../../../checkbox/modern';
|
|
31
29
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
32
|
-
import '
|
|
33
|
-
import '
|
|
34
|
-
import '
|
|
35
|
-
import '
|
|
36
|
-
import './base-select-mobile/virtual-options-list/Component.js';
|
|
30
|
+
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
31
|
+
import '../../../skeleton/modern';
|
|
32
|
+
import '../intersection-observer-d4da4352.js';
|
|
33
|
+
import '../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
37
34
|
import './checkmark/Component.js';
|
|
35
|
+
import './checkmark-mobile/Component.js';
|
|
36
|
+
import '../../../scrollbar/modern';
|
|
37
|
+
import 'react-virtual';
|
|
38
|
+
import './base-checkmark/Component.js';
|
|
39
|
+
import '../getDataTestId-c6fd39a7.js';
|
|
38
40
|
import '../utils.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { isValidElement } from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import { Checkmark } from '../base-select-mobile/checkmark/Component.js';
|
|
4
3
|
import { Checkmark as Checkmark$1 } from '../checkmark/Component.js';
|
|
5
|
-
import '
|
|
4
|
+
import { Checkmark } from '../checkmark-mobile/Component.js';
|
|
6
5
|
import '../../../../badge/modern';
|
|
7
6
|
import '../../../../checkbox/modern';
|
|
8
7
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
8
|
+
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
9
9
|
|
|
10
10
|
const styles = {"option":"select__option_1qr13","disabled":"select__disabled_1qr13","s":"select__s_1qr13","m":"select__m_1qr13","l":"select__l_1qr13","xl":"select__xl_1qr13","selected":"select__selected_1qr13","highlighted":"select__highlighted_1qr13","content":"select__content_1qr13","textContent":"select__textContent_1qr13"};
|
|
11
11
|
require('./index.css');
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { Option } from './Component.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
|
-
import '../base-select-mobile/checkmark/Component.js';
|
|
5
|
-
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
6
4
|
import '../checkmark/Component.js';
|
|
7
5
|
import '../../../../badge/modern';
|
|
8
6
|
import '../../../../checkbox/modern';
|
|
9
7
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
8
|
+
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
9
|
+
import '../checkmark-mobile/Component.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { OptionsListProps } from "../../typings";
|
|
4
|
-
declare const OptionsList: React.ForwardRefExoticComponent<OptionsListProps & React.RefAttributes<
|
|
4
|
+
declare const OptionsList: React.ForwardRefExoticComponent<OptionsListProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export { OptionsList };
|
|
@@ -30,14 +30,16 @@
|
|
|
30
30
|
|
|
31
31
|
/* optgroup */
|
|
32
32
|
} .select__optionsList_rlqgn {
|
|
33
|
-
overflow: auto;
|
|
34
33
|
width: 100%;
|
|
35
34
|
outline: none;
|
|
36
35
|
box-sizing: border-box;
|
|
36
|
+
position: relative;
|
|
37
37
|
} .select__optionsListHeader_rlqgn {
|
|
38
38
|
box-sizing: border-box;
|
|
39
39
|
border-bottom: 1px solid var(--color-light-border-secondary);
|
|
40
40
|
} .select__optionsListFooter_rlqgn {
|
|
41
|
+
position: sticky;
|
|
42
|
+
bottom: 0;
|
|
41
43
|
box-sizing: border-box;
|
|
42
44
|
border-top: 1px solid transparent
|
|
43
45
|
} .select__optionsListFooter_rlqgn.select__withBorder_rlqgn {
|
|
@@ -1,37 +1,38 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
+
export { S as SelectMobile } from '../../Component-4d5dba68.js';
|
|
2
3
|
import '../arrow/Component.js';
|
|
3
|
-
|
|
4
|
+
import '../base-select-mobile/Component.js';
|
|
5
|
+
import '../base-select-mobile/footer/Component.js';
|
|
4
6
|
import '../field/Component.js';
|
|
5
7
|
import '../optgroup/Component.js';
|
|
6
8
|
import '../option/Component.js';
|
|
7
|
-
import '
|
|
8
|
-
import '
|
|
9
|
-
import 'react-merge-refs';
|
|
10
|
-
import 'downshift';
|
|
11
|
-
import '../../../../bottom-sheet/modern';
|
|
12
|
-
import '../../../../modal/modern/mobile';
|
|
9
|
+
import '../options-list/Component.js';
|
|
10
|
+
import '../virtual-options-list/Component.js';
|
|
13
11
|
import '../../Component.js';
|
|
14
|
-
import '
|
|
12
|
+
import '../base-select/Component.js';
|
|
13
|
+
import 'react-merge-refs';
|
|
15
14
|
import '@juggle/resize-observer';
|
|
15
|
+
import 'classnames';
|
|
16
|
+
import 'downshift';
|
|
16
17
|
import '../../../../popover/modern';
|
|
17
18
|
import '@alfalab/hooks';
|
|
18
19
|
import '../native-select/Component.js';
|
|
19
|
-
import '
|
|
20
|
-
import '../../../../scrollbar/modern';
|
|
20
|
+
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
21
21
|
import '../../../../form-control/modern';
|
|
22
|
-
import '../base-select-mobile/checkmark/Component.js';
|
|
23
|
-
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
24
22
|
import '../checkmark/Component.js';
|
|
25
23
|
import '../../../../badge/modern';
|
|
26
24
|
import '../../../../checkbox/modern';
|
|
27
25
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
28
|
-
import '
|
|
29
|
-
import '../
|
|
30
|
-
import '
|
|
26
|
+
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
27
|
+
import '../checkmark-mobile/Component.js';
|
|
28
|
+
import '../../../../scrollbar/modern';
|
|
31
29
|
import '../../../../skeleton/modern';
|
|
32
|
-
import '../../intersection-observer-
|
|
30
|
+
import '../../intersection-observer-d4da4352.js';
|
|
31
|
+
import '../../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
33
32
|
import '../../../../button/modern';
|
|
34
|
-
import '
|
|
33
|
+
import '../../../../bottom-sheet/modern';
|
|
34
|
+
import '../../../../modal/modern/mobile';
|
|
35
35
|
import '../../../../base-modal/modern';
|
|
36
|
-
import '
|
|
36
|
+
import 'react-virtual';
|
|
37
37
|
import '../../utils.js';
|
|
38
|
+
import '../../getDataTestId-c6fd39a7.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../Component-
|
|
1
|
+
export * from "../../Component-4d5dba68";
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
export { S as SelectMobile } from '../../Component-
|
|
1
|
+
export { S as SelectMobile } from '../../Component-4d5dba68.js';
|
|
2
2
|
import 'react';
|
|
3
|
+
import '../../Component.js';
|
|
3
4
|
import '../arrow/Component.js';
|
|
4
5
|
import 'classnames';
|
|
5
6
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
7
|
+
import '../base-select/Component.js';
|
|
6
8
|
import 'react-merge-refs';
|
|
7
|
-
import 'downshift';
|
|
8
|
-
import '../../../../bottom-sheet/modern';
|
|
9
|
-
import '../../../../modal/modern/mobile';
|
|
10
|
-
import '../../Component.js';
|
|
11
|
-
import '../../Component-979388ae.js';
|
|
12
9
|
import '@juggle/resize-observer';
|
|
10
|
+
import 'downshift';
|
|
13
11
|
import '../../../../popover/modern';
|
|
14
12
|
import '@alfalab/hooks';
|
|
15
13
|
import '../native-select/Component.js';
|
|
@@ -17,21 +15,24 @@ import '../field/Component.js';
|
|
|
17
15
|
import '../../../../form-control/modern';
|
|
18
16
|
import '../optgroup/Component.js';
|
|
19
17
|
import '../option/Component.js';
|
|
20
|
-
import '../base-select-mobile/checkmark/Component.js';
|
|
21
|
-
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
22
18
|
import '../checkmark/Component.js';
|
|
23
19
|
import '../../../../badge/modern';
|
|
24
20
|
import '../../../../checkbox/modern';
|
|
25
21
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
22
|
+
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
23
|
+
import '../checkmark-mobile/Component.js';
|
|
26
24
|
import '../options-list/Component.js';
|
|
27
25
|
import '../../../../scrollbar/modern';
|
|
26
|
+
import '../base-select-mobile/Component.js';
|
|
27
|
+
import '../../../../bottom-sheet/modern';
|
|
28
|
+
import '../../../../modal/modern/mobile';
|
|
29
|
+
import '../base-select-mobile/footer/Component.js';
|
|
30
|
+
import '../../../../base-modal/modern';
|
|
31
|
+
import '../../../../button/modern';
|
|
32
|
+
import '../virtual-options-list/Component.js';
|
|
28
33
|
import 'react-virtual';
|
|
29
|
-
import '../base-option/Component.js';
|
|
30
|
-
import '../base-checkmark/Component.js';
|
|
31
34
|
import '../../../../skeleton/modern';
|
|
32
|
-
import '../../intersection-observer-
|
|
33
|
-
import '
|
|
34
|
-
import '../base-select-mobile/options-list/Component.js';
|
|
35
|
-
import '../../../../base-modal/modern';
|
|
36
|
-
import '../base-select-mobile/virtual-options-list/Component.js';
|
|
35
|
+
import '../../intersection-observer-d4da4352.js';
|
|
36
|
+
import '../../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
37
37
|
import '../../utils.js';
|
|
38
|
+
import '../../getDataTestId-c6fd39a7.js';
|
|
@@ -1,37 +1,38 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
+
export { a as SelectModalMobile } from '../../Component-4d5dba68.js';
|
|
2
3
|
import '../arrow/Component.js';
|
|
3
|
-
|
|
4
|
+
import '../base-select-mobile/Component.js';
|
|
5
|
+
import '../base-select-mobile/footer/Component.js';
|
|
4
6
|
import '../field/Component.js';
|
|
5
7
|
import '../optgroup/Component.js';
|
|
6
8
|
import '../option/Component.js';
|
|
7
|
-
import '
|
|
8
|
-
import '
|
|
9
|
-
import 'react-merge-refs';
|
|
10
|
-
import 'downshift';
|
|
11
|
-
import '../../../../bottom-sheet/modern';
|
|
12
|
-
import '../../../../modal/modern/mobile';
|
|
9
|
+
import '../options-list/Component.js';
|
|
10
|
+
import '../virtual-options-list/Component.js';
|
|
13
11
|
import '../../Component.js';
|
|
14
|
-
import '
|
|
12
|
+
import '../base-select/Component.js';
|
|
13
|
+
import 'react-merge-refs';
|
|
15
14
|
import '@juggle/resize-observer';
|
|
15
|
+
import 'classnames';
|
|
16
|
+
import 'downshift';
|
|
16
17
|
import '../../../../popover/modern';
|
|
17
18
|
import '@alfalab/hooks';
|
|
18
19
|
import '../native-select/Component.js';
|
|
19
|
-
import '
|
|
20
|
-
import '../../../../scrollbar/modern';
|
|
20
|
+
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
21
21
|
import '../../../../form-control/modern';
|
|
22
|
-
import '../base-select-mobile/checkmark/Component.js';
|
|
23
|
-
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
24
22
|
import '../checkmark/Component.js';
|
|
25
23
|
import '../../../../badge/modern';
|
|
26
24
|
import '../../../../checkbox/modern';
|
|
27
25
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
28
|
-
import '
|
|
29
|
-
import '../
|
|
30
|
-
import '
|
|
26
|
+
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
27
|
+
import '../checkmark-mobile/Component.js';
|
|
28
|
+
import '../../../../scrollbar/modern';
|
|
31
29
|
import '../../../../skeleton/modern';
|
|
32
|
-
import '../../intersection-observer-
|
|
30
|
+
import '../../intersection-observer-d4da4352.js';
|
|
31
|
+
import '../../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
33
32
|
import '../../../../button/modern';
|
|
34
|
-
import '
|
|
33
|
+
import '../../../../bottom-sheet/modern';
|
|
34
|
+
import '../../../../modal/modern/mobile';
|
|
35
35
|
import '../../../../base-modal/modern';
|
|
36
|
-
import '
|
|
36
|
+
import 'react-virtual';
|
|
37
37
|
import '../../utils.js';
|
|
38
|
+
import '../../getDataTestId-c6fd39a7.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../Component-
|
|
1
|
+
export * from "../../Component-4d5dba68";
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
export { a as SelectModalMobile } from '../../Component-
|
|
1
|
+
export { a as SelectModalMobile } from '../../Component-4d5dba68.js';
|
|
2
2
|
import 'react';
|
|
3
|
+
import '../../Component.js';
|
|
3
4
|
import '../arrow/Component.js';
|
|
4
5
|
import 'classnames';
|
|
5
6
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
7
|
+
import '../base-select/Component.js';
|
|
6
8
|
import 'react-merge-refs';
|
|
7
|
-
import 'downshift';
|
|
8
|
-
import '../../../../bottom-sheet/modern';
|
|
9
|
-
import '../../../../modal/modern/mobile';
|
|
10
|
-
import '../../Component.js';
|
|
11
|
-
import '../../Component-979388ae.js';
|
|
12
9
|
import '@juggle/resize-observer';
|
|
10
|
+
import 'downshift';
|
|
13
11
|
import '../../../../popover/modern';
|
|
14
12
|
import '@alfalab/hooks';
|
|
15
13
|
import '../native-select/Component.js';
|
|
@@ -17,21 +15,24 @@ import '../field/Component.js';
|
|
|
17
15
|
import '../../../../form-control/modern';
|
|
18
16
|
import '../optgroup/Component.js';
|
|
19
17
|
import '../option/Component.js';
|
|
20
|
-
import '../base-select-mobile/checkmark/Component.js';
|
|
21
|
-
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
22
18
|
import '../checkmark/Component.js';
|
|
23
19
|
import '../../../../badge/modern';
|
|
24
20
|
import '../../../../checkbox/modern';
|
|
25
21
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
22
|
+
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
23
|
+
import '../checkmark-mobile/Component.js';
|
|
26
24
|
import '../options-list/Component.js';
|
|
27
25
|
import '../../../../scrollbar/modern';
|
|
26
|
+
import '../base-select-mobile/Component.js';
|
|
27
|
+
import '../../../../bottom-sheet/modern';
|
|
28
|
+
import '../../../../modal/modern/mobile';
|
|
29
|
+
import '../base-select-mobile/footer/Component.js';
|
|
30
|
+
import '../../../../base-modal/modern';
|
|
31
|
+
import '../../../../button/modern';
|
|
32
|
+
import '../virtual-options-list/Component.js';
|
|
28
33
|
import 'react-virtual';
|
|
29
|
-
import '../base-option/Component.js';
|
|
30
|
-
import '../base-checkmark/Component.js';
|
|
31
34
|
import '../../../../skeleton/modern';
|
|
32
|
-
import '../../intersection-observer-
|
|
33
|
-
import '
|
|
34
|
-
import '../base-select-mobile/options-list/Component.js';
|
|
35
|
-
import '../../../../base-modal/modern';
|
|
36
|
-
import '../base-select-mobile/virtual-options-list/Component.js';
|
|
35
|
+
import '../../intersection-observer-d4da4352.js';
|
|
36
|
+
import '../../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
37
37
|
import '../../utils.js';
|
|
38
|
+
import '../../getDataTestId-c6fd39a7.js';
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import { OptionsListProps } from "../../typings";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Число отрисованных пунктов до\после видимого окна
|
|
6
|
-
*/
|
|
7
|
-
overscan?: number;
|
|
8
|
-
};
|
|
9
|
-
declare const VirtualOptionsList: ({ size, flatOptions, highlightedIndex, className, getOptionProps, Option, open, options, overscan, Optgroup, dataTestId, emptyPlaceholder, visibleOptions, onScroll, header, footer, nativeScrollbar: nativeScrollbarProp, }: VirtualOptionsList) => JSX.Element;
|
|
4
|
+
declare const VirtualOptionsList: React.ForwardRefExoticComponent<OptionsListProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
5
|
export { VirtualOptionsList };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React, { useRef, useState, useEffect, useMemo } from 'react';
|
|
1
|
+
import React, { forwardRef, useRef, useState, useEffect, useMemo } from 'react';
|
|
2
|
+
import mergeRefs from 'react-merge-refs';
|
|
2
3
|
import { useVirtual } from 'react-virtual';
|
|
3
4
|
import cn from 'classnames';
|
|
4
5
|
import { Scrollbar } from '../../../../scrollbar/modern';
|
|
@@ -9,26 +10,26 @@ import { Optgroup } from '../optgroup/Component.js';
|
|
|
9
10
|
const styles = {"virtualOptionsList":"select__virtualOptionsList_1dpez","virtualOptionsListHeader":"select__virtualOptionsListHeader_1dpez","virtualOptionsListFooter":"select__virtualOptionsListFooter_1dpez","withBorder":"select__withBorder_1dpez","scrollable":"select__scrollable_1dpez","inner":"select__inner_1dpez","virtualRow":"select__virtualRow_1dpez","highlighted":"select__highlighted_1dpez","emptyPlaceholder":"select__emptyPlaceholder_1dpez","l":"select__l_1dpez","xl":"select__xl_1dpez"};
|
|
10
11
|
require('./index.css');
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
14
|
-
const VirtualOptionsList = ({ size = 's', flatOptions = [], highlightedIndex = -1, className, getOptionProps, Option, open, options = [], overscan = 10, Optgroup: Optgroup$1 = Optgroup, dataTestId, emptyPlaceholder, visibleOptions = 5, onScroll, header, footer, nativeScrollbar: nativeScrollbarProp, }) => {
|
|
13
|
+
const VirtualOptionsList = forwardRef(({ size = 's', flatOptions = [], highlightedIndex = -1, className, getOptionProps, Option, open, options = [], Optgroup: Optgroup$1 = Optgroup, dataTestId, emptyPlaceholder, visibleOptions = 5, header, footer, optionsListWidth, onScroll, nativeScrollbar: nativeScrollbarProp, }, ref) => {
|
|
15
14
|
const listRef = useRef(null);
|
|
16
15
|
const parentRef = useRef(null);
|
|
17
16
|
const scrollbarRef = useRef(null);
|
|
18
17
|
const [visibleOptionsInvalidateKey, setVisibleOptionsInvalidateKey] = useState(0);
|
|
19
18
|
const prevHighlightedIndex = usePrevious(highlightedIndex) || -1;
|
|
19
|
+
let [nativeScrollbar] = useMedia([[true, '(max-width: 1023px)']], false);
|
|
20
20
|
const rowVirtualizer = useVirtual({
|
|
21
21
|
size: flatOptions.length,
|
|
22
|
-
parentRef,
|
|
23
|
-
overscan,
|
|
22
|
+
parentRef: (ref || parentRef),
|
|
23
|
+
overscan: 15,
|
|
24
24
|
});
|
|
25
|
-
|
|
25
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
26
26
|
nativeScrollbar = Boolean(nativeScrollbarProp ?? nativeScrollbar);
|
|
27
27
|
// Сколл к выбранному пункту при открытии меню
|
|
28
28
|
useEffect(() => {
|
|
29
29
|
if (open) {
|
|
30
30
|
rowVirtualizer.scrollToIndex(highlightedIndex, { align: 'end' });
|
|
31
31
|
}
|
|
32
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
32
33
|
}, [open]);
|
|
33
34
|
// Скролл к пункту, которого нет на экране
|
|
34
35
|
useEffect(() => {
|
|
@@ -37,6 +38,7 @@ const VirtualOptionsList = ({ size = 's', flatOptions = [], highlightedIndex = -
|
|
|
37
38
|
if (!rowVirtualizer.virtualItems.some((option) => option.index === highlightedIndex)) {
|
|
38
39
|
rowVirtualizer.scrollToIndex(highlightedIndex, { align: 'end' });
|
|
39
40
|
}
|
|
41
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
40
42
|
}, [highlightedIndex]);
|
|
41
43
|
// Циклическая навигация
|
|
42
44
|
useEffect(() => {
|
|
@@ -50,6 +52,7 @@ const VirtualOptionsList = ({ size = 's', flatOptions = [], highlightedIndex = -
|
|
|
50
52
|
if (prevHighlightedIndex >= lastNonDisabled && highlightedIndex === 0) {
|
|
51
53
|
rowVirtualizer.scrollToIndex(0);
|
|
52
54
|
}
|
|
55
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
53
56
|
}, [prevHighlightedIndex, highlightedIndex]);
|
|
54
57
|
useEffect(() => {
|
|
55
58
|
setVisibleOptionsInvalidateKey(
|
|
@@ -81,11 +84,6 @@ const VirtualOptionsList = ({ size = 's', flatOptions = [], highlightedIndex = -
|
|
|
81
84
|
return acc;
|
|
82
85
|
}, {});
|
|
83
86
|
}, [options]);
|
|
84
|
-
const contentNodeProps = {
|
|
85
|
-
className: styles.inner,
|
|
86
|
-
style: { height: `${rowVirtualizer.totalSize}px` },
|
|
87
|
-
ref: listRef,
|
|
88
|
-
};
|
|
89
87
|
const renderList = () => rowVirtualizer.virtualItems.map((virtualRow) => {
|
|
90
88
|
const option = flatOptions[virtualRow.index];
|
|
91
89
|
const group = options[groupStartIndexes[virtualRow.index]];
|
|
@@ -95,11 +93,24 @@ const VirtualOptionsList = ({ size = 's', flatOptions = [], highlightedIndex = -
|
|
|
95
93
|
transform: `translateY(${virtualRow.start}px)`,
|
|
96
94
|
} },
|
|
97
95
|
group && React.createElement(Optgroup$1, { label: group.label }),
|
|
98
|
-
!isGroup(option) && React.createElement(Option, { ...getOptionProps(option, virtualRow.index) })));
|
|
96
|
+
!isGroup(option) && (React.createElement(Option, { ...getOptionProps(option, virtualRow.index) }))));
|
|
99
97
|
});
|
|
100
|
-
const
|
|
101
|
-
|
|
102
|
-
|
|
98
|
+
const contentNodeProps = {
|
|
99
|
+
className: styles.inner,
|
|
100
|
+
style: { height: `${rowVirtualizer.totalSize}px` },
|
|
101
|
+
ref: listRef,
|
|
102
|
+
};
|
|
103
|
+
const renderWithCustomScrollbar = () => (React.createElement(Scrollbar, { className: styles.scrollable, ref: scrollbarRef, horizontalAutoStretch: optionsListWidth === 'content', scrollableNodeProps: { onScroll, ref: parentRef }, contentNodeProps: contentNodeProps }, renderList()));
|
|
104
|
+
const renderWithNativeScrollbar = () => {
|
|
105
|
+
if (visibleOptions) {
|
|
106
|
+
return (React.createElement("div", { className: styles.scrollable, ref: mergeRefs([parentRef, ref]), onScroll: onScroll },
|
|
107
|
+
React.createElement("div", { ...contentNodeProps }, renderList())));
|
|
108
|
+
}
|
|
109
|
+
return React.createElement("div", { ...contentNodeProps }, renderList());
|
|
110
|
+
};
|
|
111
|
+
if (options.length === 0 && !emptyPlaceholder) {
|
|
112
|
+
return null;
|
|
113
|
+
}
|
|
103
114
|
return (React.createElement("div", { className: cn(styles.virtualOptionsList, styles[size], className), "data-test-id": dataTestId },
|
|
104
115
|
header && React.createElement("div", { className: styles.virtualOptionsListHeader }, header),
|
|
105
116
|
nativeScrollbar ? renderWithNativeScrollbar() : renderWithCustomScrollbar(),
|
|
@@ -107,6 +118,6 @@ const VirtualOptionsList = ({ size = 's', flatOptions = [], highlightedIndex = -
|
|
|
107
118
|
footer && (React.createElement("div", { className: cn(styles.virtualOptionsListFooter, {
|
|
108
119
|
[styles.withBorder]: visibleOptions && flatOptions.length > visibleOptions,
|
|
109
120
|
}) }, footer))));
|
|
110
|
-
};
|
|
121
|
+
});
|
|
111
122
|
|
|
112
123
|
export { VirtualOptionsList };
|
|
@@ -39,16 +39,19 @@
|
|
|
39
39
|
width: 100%;
|
|
40
40
|
outline: none;
|
|
41
41
|
box-sizing: border-box;
|
|
42
|
-
position:
|
|
42
|
+
position: sticky;
|
|
43
43
|
} .select__virtualOptionsListHeader_1dpez {
|
|
44
44
|
box-sizing: border-box;
|
|
45
45
|
border-bottom: 1px solid var(--color-light-border-secondary);
|
|
46
46
|
} .select__virtualOptionsListFooter_1dpez {
|
|
47
|
+
position: sticky;
|
|
48
|
+
bottom: 0;
|
|
47
49
|
box-sizing: border-box;
|
|
48
50
|
border-top: 1px solid transparent
|
|
49
51
|
} .select__virtualOptionsListFooter_1dpez.select__withBorder_1dpez {
|
|
50
52
|
border-top: 1px solid var(--color-light-border-secondary);
|
|
51
53
|
} .select__scrollable_1dpez {
|
|
54
|
+
position: relative;
|
|
52
55
|
overflow: auto;
|
|
53
56
|
width: 100%;
|
|
54
57
|
} .select__inner_1dpez {
|