@alfalab/core-components-select 14.3.4 → 15.0.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/Component.desktop.d.ts +19 -0
- package/{Component.js → Component.desktop.js} +6 -6
- package/Component.mobile-ebda875c.d.ts +6 -0
- package/Component.mobile-f1f15074.d.ts +387 -0
- package/Component.mobile.d.ts +41 -0
- package/Component.mobile.js +62 -0
- package/Component.modal.mobile.d.ts +60 -0
- package/Component.modal.mobile.js +62 -0
- package/Component.responsive.d.ts +1 -1
- package/Component.responsive.js +26 -25
- package/components/arrow/Component.d.ts +2 -1
- package/components/arrow/Component.js +1 -1
- package/components/arrow/index.css +3 -3
- package/components/base-checkmark/Component.d.ts +2 -1
- package/components/base-checkmark/Component.js +1 -1
- package/components/base-checkmark/index.css +4 -4
- package/components/base-option/Component.js +1 -1
- package/components/base-option/index.css +13 -13
- package/components/base-select/Component.js +6 -6
- package/components/base-select/index.css +8 -8
- package/components/base-select/index.js +1 -1
- package/components/base-select-mobile/Component.d.ts +3 -3
- package/components/base-select-mobile/Component.js +13 -9
- package/components/base-select-mobile/footer/Component.d.ts +2 -1
- package/components/base-select-mobile/footer/Component.js +4 -4
- package/components/base-select-mobile/footer/index.css +5 -5
- package/components/base-select-mobile/footer/index.js +1 -1
- package/components/base-select-mobile/index.css +13 -11
- package/components/base-select-mobile/index.js +1 -2
- package/components/checkmark/Component.d.ts +2 -1
- package/components/checkmark/Component.js +1 -1
- package/components/checkmark/index.css +10 -10
- package/components/checkmark-mobile/Component.d.ts +2 -1
- package/components/checkmark-mobile/Component.js +1 -1
- package/components/checkmark-mobile/index.css +6 -6
- package/components/field/Component.d.ts +9 -1
- package/components/field/Component.js +19 -16
- package/components/field/index.css +38 -11
- package/components/field/index.js +0 -1
- package/components/index.d.ts +0 -2
- package/components/index.js +4 -19
- package/components/optgroup/Component.d.ts +2 -1
- package/components/optgroup/Component.js +1 -1
- package/components/optgroup/index.css +6 -6
- package/components/option/Component.js +1 -1
- package/components/option/index.css +20 -20
- package/components/options-list/Component.js +1 -1
- package/components/options-list/index.css +9 -9
- package/components/virtual-options-list/Component.js +1 -1
- package/components/virtual-options-list/index.css +15 -15
- package/cssm/Component.desktop.d.ts +19 -0
- package/cssm/{Component.js → Component.desktop.js} +6 -6
- package/cssm/Component.mobile-ebda875c.d.ts +6 -0
- package/cssm/Component.mobile-f1f15074.d.ts +387 -0
- package/cssm/Component.mobile.d.ts +41 -0
- package/cssm/Component.mobile.js +74 -0
- package/cssm/Component.modal.mobile.d.ts +60 -0
- package/cssm/Component.modal.mobile.js +74 -0
- package/cssm/Component.responsive.d.ts +1 -1
- package/cssm/Component.responsive.js +30 -33
- package/cssm/components/arrow/Component.d.ts +2 -1
- package/cssm/components/base-checkmark/Component.d.ts +2 -1
- package/cssm/components/base-select/Component.js +5 -5
- package/cssm/components/base-select/index.js +1 -1
- package/cssm/components/base-select-mobile/Component.d.ts +3 -3
- package/cssm/components/base-select-mobile/Component.js +12 -8
- package/cssm/components/base-select-mobile/footer/Component.d.ts +2 -1
- package/cssm/components/base-select-mobile/footer/Component.js +3 -3
- package/cssm/components/base-select-mobile/footer/index.js +1 -1
- package/cssm/components/base-select-mobile/index.js +1 -2
- package/cssm/components/base-select-mobile/index.module.css +4 -2
- package/cssm/components/checkmark/Component.d.ts +2 -1
- package/cssm/components/checkmark-mobile/Component.d.ts +2 -1
- package/cssm/components/field/Component.d.ts +9 -1
- package/cssm/components/field/Component.js +18 -15
- package/cssm/components/field/index.js +0 -1
- package/cssm/components/field/index.module.css +31 -4
- package/cssm/components/index.d.ts +0 -2
- package/cssm/components/index.js +7 -28
- package/cssm/components/optgroup/Component.d.ts +2 -1
- package/cssm/desktop-63dec22f.d.ts +6 -0
- package/cssm/desktop.d.ts +2 -0
- package/cssm/desktop.js +44 -0
- package/cssm/hook-97e6e688.d.ts +16 -0
- package/cssm/hook-97e6e688.js +110 -0
- package/{esm/hook-b4e70cb0.d.ts → cssm/hook-9ea9e32c.d.ts} +9 -7
- package/cssm/index-ebda875c.d.ts +20 -60
- package/cssm/index.d.ts +2 -5
- package/cssm/index.js +34 -61
- package/cssm/mobile-96988a65.d.ts +2 -0
- package/cssm/mobile.d.ts +5 -4
- package/cssm/mobile.js +15 -24
- package/cssm/presets/index.d.ts +1 -1
- package/cssm/presets/index.js +8 -36
- package/cssm/presets/useLazyLoading/hook.d.ts +1 -1
- package/cssm/presets/useLazyLoading/hook.js +900 -4
- package/cssm/presets/useSelectWithApply/hook.js +9 -48
- package/cssm/presets/useSelectWithApply/options-list-with-apply/Component.js +3 -42
- package/cssm/presets/useSelectWithApply/options-list-with-apply/footer/Component.d.ts +2 -1
- package/cssm/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +3 -3
- package/cssm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/cssm/presets/useSelectWithApply/options-list-with-apply/index.js +10 -49
- package/cssm/presets/useSelectWithLoading/hook.d.ts +1 -1
- package/cssm/shared.d.ts +5 -0
- package/cssm/shared.js +77 -0
- package/cssm/typings-9211a437.d.ts +95 -0
- package/cssm/typings-baf4875b.d.ts +52 -0
- package/desktop-63dec22f.d.ts +6 -0
- package/desktop.d.ts +2 -0
- package/{responsive.js → desktop.js} +5 -19
- package/esm/Component.desktop.d.ts +19 -0
- package/esm/{Component.js → Component.desktop.js} +6 -6
- package/esm/Component.mobile-ebda875c.d.ts +6 -0
- package/esm/Component.mobile-f1f15074.d.ts +387 -0
- package/esm/Component.mobile.d.ts +41 -0
- package/esm/Component.mobile.js +54 -0
- package/esm/Component.modal.mobile.d.ts +60 -0
- package/esm/Component.modal.mobile.js +54 -0
- package/esm/Component.responsive.d.ts +1 -1
- package/esm/Component.responsive.js +26 -25
- package/esm/components/arrow/Component.d.ts +2 -1
- package/esm/components/arrow/Component.js +1 -1
- package/esm/components/arrow/index.css +3 -3
- package/esm/components/base-checkmark/Component.d.ts +2 -1
- package/esm/components/base-checkmark/Component.js +1 -1
- package/esm/components/base-checkmark/index.css +4 -4
- package/esm/components/base-option/Component.js +1 -1
- package/esm/components/base-option/index.css +13 -13
- package/esm/components/base-select/Component.js +2 -2
- package/esm/components/base-select/index.css +8 -8
- package/esm/components/base-select/index.js +1 -1
- package/esm/components/base-select-mobile/Component.d.ts +3 -3
- package/esm/components/base-select-mobile/Component.js +9 -5
- package/esm/components/base-select-mobile/footer/Component.d.ts +2 -1
- package/esm/components/base-select-mobile/footer/Component.js +4 -4
- package/esm/components/base-select-mobile/footer/index.css +5 -5
- package/esm/components/base-select-mobile/footer/index.js +1 -1
- package/esm/components/base-select-mobile/index.css +13 -11
- package/esm/components/base-select-mobile/index.js +1 -2
- package/esm/components/checkmark/Component.d.ts +2 -1
- package/esm/components/checkmark/Component.js +1 -1
- package/esm/components/checkmark/index.css +10 -10
- package/esm/components/checkmark-mobile/Component.d.ts +2 -1
- package/esm/components/checkmark-mobile/Component.js +1 -1
- package/esm/components/checkmark-mobile/index.css +6 -6
- package/esm/components/field/Component.d.ts +9 -1
- package/esm/components/field/Component.js +19 -16
- package/esm/components/field/index.css +38 -11
- package/esm/components/field/index.js +0 -1
- package/esm/components/index.d.ts +0 -2
- package/esm/components/index.js +4 -17
- package/esm/components/optgroup/Component.d.ts +2 -1
- package/esm/components/optgroup/Component.js +1 -1
- package/esm/components/optgroup/index.css +6 -6
- package/esm/components/option/Component.js +1 -1
- package/esm/components/option/index.css +20 -20
- package/esm/components/options-list/Component.js +1 -1
- package/esm/components/options-list/index.css +9 -9
- package/esm/components/virtual-options-list/Component.js +1 -1
- package/esm/components/virtual-options-list/index.css +15 -15
- package/esm/desktop-63dec22f.d.ts +6 -0
- package/esm/desktop.d.ts +2 -0
- package/esm/{responsive.js → desktop.js} +4 -18
- package/esm/hook-326a5cea.d.ts +16 -0
- package/esm/hook-326a5cea.js +102 -0
- package/{cssm/hook-b4e70cb0.d.ts → esm/hook-9ea9e32c.d.ts} +9 -7
- package/esm/index-ebda875c.d.ts +20 -60
- package/esm/index.d.ts +2 -5
- package/esm/index.js +27 -29
- package/esm/mobile-96988a65.d.ts +2 -0
- package/esm/mobile.d.ts +5 -4
- package/esm/mobile.js +12 -16
- package/esm/presets/index.d.ts +1 -1
- package/esm/presets/index.js +6 -25
- package/esm/presets/useLazyLoading/hook.d.ts +1 -1
- package/esm/presets/useLazyLoading/hook.js +899 -4
- package/esm/presets/useSelectWithApply/hook.js +7 -33
- package/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +2 -28
- package/esm/presets/useSelectWithApply/options-list-with-apply/footer/Component.d.ts +2 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +4 -4
- package/esm/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
- package/esm/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/header/index.css +3 -3
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.js +8 -34
- package/esm/presets/useSelectWithLoading/hook.d.ts +1 -1
- package/esm/presets/useSelectWithLoading/hook.js +1 -1
- package/esm/presets/useSelectWithLoading/index.css +2 -2
- package/esm/shared.d.ts +5 -0
- package/esm/shared.js +37 -0
- package/esm/typings-9211a437.d.ts +95 -0
- package/esm/typings-baf4875b.d.ts +52 -0
- package/hook-6e94be9c.d.ts +16 -0
- package/hook-6e94be9c.js +110 -0
- package/{hook-b4e70cb0.d.ts → hook-9ea9e32c.d.ts} +9 -7
- package/index-ebda875c.d.ts +20 -60
- package/index.d.ts +2 -5
- package/index.js +28 -51
- package/mobile-96988a65.d.ts +2 -0
- package/mobile.d.ts +5 -4
- package/mobile.js +14 -18
- package/modern/Component.desktop.d.ts +19 -0
- package/modern/{Component.js → Component.desktop.js} +7 -4
- package/modern/Component.mobile-ebda875c.d.ts +6 -0
- package/modern/Component.mobile-f1f15074.d.ts +387 -0
- package/modern/Component.mobile.d.ts +41 -0
- package/modern/Component.mobile.js +61 -0
- package/modern/Component.modal.mobile.d.ts +60 -0
- package/modern/Component.modal.mobile.js +61 -0
- package/modern/Component.responsive.d.ts +1 -1
- package/modern/Component.responsive.js +26 -25
- package/modern/components/arrow/Component.d.ts +2 -1
- package/modern/components/arrow/Component.js +1 -1
- package/modern/components/arrow/index.css +3 -3
- package/modern/components/base-checkmark/Component.d.ts +2 -1
- package/modern/components/base-checkmark/Component.js +1 -1
- package/modern/components/base-checkmark/index.css +4 -4
- package/modern/components/base-option/Component.js +1 -1
- package/modern/components/base-option/index.css +13 -13
- package/modern/components/base-select/Component.js +2 -2
- package/modern/components/base-select/index.css +8 -8
- package/modern/components/base-select/index.js +1 -1
- package/modern/components/base-select-mobile/Component.d.ts +3 -3
- package/modern/components/base-select-mobile/Component.js +9 -5
- package/modern/components/base-select-mobile/footer/Component.d.ts +2 -1
- package/modern/components/base-select-mobile/footer/Component.js +4 -4
- package/modern/components/base-select-mobile/footer/index.css +5 -5
- package/modern/components/base-select-mobile/footer/index.js +1 -1
- package/modern/components/base-select-mobile/index.css +13 -11
- package/modern/components/base-select-mobile/index.js +1 -2
- package/modern/components/checkmark/Component.d.ts +2 -1
- package/modern/components/checkmark/Component.js +1 -1
- package/modern/components/checkmark/index.css +10 -10
- package/modern/components/checkmark-mobile/Component.d.ts +2 -1
- package/modern/components/checkmark-mobile/Component.js +1 -1
- package/modern/components/checkmark-mobile/index.css +6 -6
- package/modern/components/field/Component.d.ts +9 -1
- package/modern/components/field/Component.js +17 -14
- package/modern/components/field/index.css +38 -11
- package/modern/components/field/index.js +0 -1
- package/modern/components/index.d.ts +0 -2
- package/modern/components/index.js +4 -17
- package/modern/components/optgroup/Component.d.ts +2 -1
- package/modern/components/optgroup/Component.js +1 -1
- package/modern/components/optgroup/index.css +6 -6
- package/modern/components/option/Component.js +1 -1
- package/modern/components/option/index.css +20 -20
- package/modern/components/options-list/Component.js +1 -1
- package/modern/components/options-list/index.css +9 -9
- package/modern/components/virtual-options-list/Component.js +1 -1
- package/modern/components/virtual-options-list/index.css +15 -15
- package/modern/desktop-63dec22f.d.ts +6 -0
- package/modern/desktop.d.ts +2 -0
- package/modern/{responsive.js → desktop.js} +4 -18
- package/modern/{hook-b4e70cb0.d.ts → hook-9ea9e32c.d.ts} +9 -7
- package/modern/hook-e0fd0350.d.ts +16 -0
- package/modern/{Component-ecb2a41a.js → hook-e0fd0350.js} +3 -66
- package/modern/index-ebda875c.d.ts +20 -60
- package/modern/index.d.ts +2 -5
- package/modern/index.js +27 -29
- package/modern/mobile-96988a65.d.ts +2 -0
- package/modern/mobile.d.ts +5 -4
- package/modern/mobile.js +12 -16
- package/modern/presets/index.d.ts +1 -1
- package/modern/presets/index.js +6 -25
- package/modern/presets/useLazyLoading/hook.d.ts +1 -1
- package/modern/presets/useLazyLoading/hook.js +899 -4
- package/modern/presets/useSelectWithApply/hook.js +7 -33
- package/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +2 -28
- package/modern/presets/useSelectWithApply/options-list-with-apply/footer/Component.d.ts +2 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +4 -4
- package/modern/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
- package/modern/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/header/index.css +3 -3
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.js +8 -34
- package/modern/presets/useSelectWithLoading/hook.d.ts +1 -1
- package/modern/presets/useSelectWithLoading/hook.js +1 -1
- package/modern/presets/useSelectWithLoading/index.css +2 -2
- package/modern/shared.d.ts +5 -0
- package/modern/shared.js +36 -0
- package/modern/typings-9211a437.d.ts +95 -0
- package/modern/typings-baf4875b.d.ts +52 -0
- package/package.json +37 -12
- package/presets/index.d.ts +1 -1
- package/presets/index.js +6 -25
- package/presets/useLazyLoading/hook.d.ts +1 -1
- package/presets/useLazyLoading/hook.js +899 -4
- package/presets/useSelectWithApply/hook.js +7 -33
- package/presets/useSelectWithApply/options-list-with-apply/Component.js +2 -28
- package/presets/useSelectWithApply/options-list-with-apply/footer/Component.d.ts +2 -1
- package/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +4 -4
- package/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
- package/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/header/index.css +3 -3
- package/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/index.js +8 -34
- package/presets/useSelectWithLoading/hook.d.ts +1 -1
- package/presets/useSelectWithLoading/hook.js +1 -1
- package/presets/useSelectWithLoading/index.css +2 -2
- package/shared.d.ts +5 -0
- package/shared.js +63 -0
- package/src/Component.desktop.tsx +52 -0
- package/src/Component.mobile.tsx +149 -0
- package/src/Component.modal.mobile.tsx +144 -0
- package/src/Component.responsive.tsx +59 -0
- package/src/components/arrow/Component.tsx +12 -0
- package/src/components/arrow/index.module.css +15 -0
- package/src/components/arrow/index.ts +1 -0
- package/src/components/base-checkmark/Component.tsx +33 -0
- package/src/components/base-checkmark/index.module.css +18 -0
- package/src/components/base-checkmark/index.ts +1 -0
- package/src/components/base-option/Component.tsx +57 -0
- package/src/components/base-option/index.module.css +67 -0
- package/src/components/base-option/index.ts +1 -0
- package/src/components/base-select/Component.tsx +478 -0
- package/src/components/base-select/index.module.css +68 -0
- package/src/components/base-select/index.ts +1 -0
- package/src/components/base-select-mobile/Component.tsx +486 -0
- package/src/components/base-select-mobile/footer/Component.tsx +46 -0
- package/src/components/base-select-mobile/footer/index.module.css +23 -0
- package/src/components/base-select-mobile/footer/index.ts +1 -0
- package/src/components/base-select-mobile/index.module.css +48 -0
- package/src/components/base-select-mobile/index.ts +1 -0
- package/src/components/checkmark/Component.tsx +56 -0
- package/src/components/checkmark/index.module.css +48 -0
- package/src/components/checkmark/index.ts +1 -0
- package/src/components/checkmark-mobile/Component.tsx +18 -0
- package/src/components/checkmark-mobile/index.module.css +28 -0
- package/src/components/checkmark-mobile/index.ts +1 -0
- package/src/components/field/Component.tsx +110 -0
- package/src/components/field/index.module.css +60 -0
- package/src/components/field/index.ts +1 -0
- package/src/components/index.ts +8 -0
- package/src/components/native-select/Component.tsx +60 -0
- package/src/components/native-select/index.ts +1 -0
- package/src/components/optgroup/Component.tsx +15 -0
- package/src/components/optgroup/index.module.css +30 -0
- package/src/components/optgroup/index.ts +1 -0
- package/src/components/option/Component.tsx +65 -0
- package/src/components/option/index.module.css +108 -0
- package/src/components/option/index.ts +1 -0
- package/src/components/options-list/Component.tsx +140 -0
- package/src/components/options-list/index.module.css +40 -0
- package/src/components/options-list/index.ts +1 -0
- package/src/components/virtual-options-list/Component.tsx +217 -0
- package/src/components/virtual-options-list/index.module.css +76 -0
- package/src/components/virtual-options-list/index.ts +1 -0
- package/src/consts.ts +1 -0
- package/src/desktop.ts +1 -0
- package/src/index.ts +4 -0
- package/src/mobile.ts +5 -0
- package/src/presets/index.ts +3 -0
- package/src/presets/useLazyLoading/hook.tsx +309 -0
- package/src/presets/useSelectWithApply/hook.tsx +154 -0
- package/src/presets/useSelectWithApply/options-list-with-apply/Component.tsx +106 -0
- package/src/presets/useSelectWithApply/options-list-with-apply/footer/Component.tsx +37 -0
- package/src/presets/useSelectWithApply/options-list-with-apply/footer/index.module.css +11 -0
- package/src/presets/useSelectWithApply/options-list-with-apply/header/Component.tsx +26 -0
- package/src/presets/useSelectWithApply/options-list-with-apply/header/index.module.css +9 -0
- package/src/presets/useSelectWithApply/options-list-with-apply/index.ts +1 -0
- package/src/presets/useSelectWithLoading/hook.tsx +40 -0
- package/src/shared.ts +5 -0
- package/src/typings.ts +691 -0
- package/src/utils.ts +154 -0
- package/src/vars.css +57 -0
- package/typings-9211a437.d.ts +95 -0
- package/typings-baf4875b.d.ts +52 -0
- package/Component-01f08370.d.ts +0 -108
- package/Component-01f08370.js +0 -165
- package/Component-3885b0d7.d.ts +0 -169
- package/Component.d.ts +0 -104
- package/Component.mobile-b2c0420d.d.ts +0 -93
- package/components/select-mobile/Component.d.ts +0 -0
- package/components/select-mobile/Component.js +0 -49
- package/components/select-mobile/index.d.ts +0 -1
- package/components/select-mobile/index.js +0 -49
- package/components/select-modal-mobile/Component.d.ts +0 -0
- package/components/select-modal-mobile/Component.js +0 -49
- package/components/select-modal-mobile/index.d.ts +0 -1
- package/components/select-modal-mobile/index.js +0 -49
- package/cssm/Component-3885b0d7.d.ts +0 -169
- package/cssm/Component-4727d474.d.ts +0 -108
- package/cssm/Component-4727d474.js +0 -175
- package/cssm/Component.d.ts +0 -104
- package/cssm/Component.mobile-b2c0420d.d.ts +0 -93
- package/cssm/components/select-mobile/Component.d.ts +0 -0
- package/cssm/components/select-mobile/Component.js +0 -66
- package/cssm/components/select-mobile/index.d.ts +0 -1
- package/cssm/components/select-mobile/index.js +0 -66
- package/cssm/components/select-modal-mobile/Component.d.ts +0 -0
- package/cssm/components/select-modal-mobile/Component.js +0 -66
- package/cssm/components/select-modal-mobile/index.d.ts +0 -1
- package/cssm/components/select-modal-mobile/index.js +0 -66
- package/cssm/getDataTestId-5c876d98.d.ts +0 -2
- package/cssm/getDataTestId-5c876d98.js +0 -8
- package/cssm/index-3885b0d7.d.ts +0 -3
- package/cssm/intersection-observer-9ec5cf59.d.ts +0 -1
- package/cssm/intersection-observer-9ec5cf59.js +0 -893
- package/cssm/responsive.d.ts +0 -2
- package/cssm/responsive.js +0 -67
- package/cssm/types-ebda875c.d.ts +0 -113
- package/esm/Component-3885b0d7.d.ts +0 -169
- package/esm/Component-5e2bc757.d.ts +0 -108
- package/esm/Component-5e2bc757.js +0 -155
- package/esm/Component.d.ts +0 -104
- package/esm/Component.mobile-b2c0420d.d.ts +0 -93
- package/esm/components/select-mobile/Component.d.ts +0 -0
- package/esm/components/select-mobile/Component.js +0 -41
- package/esm/components/select-mobile/index.d.ts +0 -1
- package/esm/components/select-mobile/index.js +0 -41
- package/esm/components/select-modal-mobile/Component.d.ts +0 -0
- package/esm/components/select-modal-mobile/Component.js +0 -41
- package/esm/components/select-modal-mobile/index.d.ts +0 -1
- package/esm/components/select-modal-mobile/index.js +0 -41
- package/esm/getDataTestId-fc7d4653.d.ts +0 -2
- package/esm/getDataTestId-fc7d4653.js +0 -6
- package/esm/index-3885b0d7.d.ts +0 -3
- package/esm/intersection-observer-6768cbd0.d.ts +0 -1
- package/esm/intersection-observer-6768cbd0.js +0 -891
- package/esm/presets/useLazyLoading/index.css +0 -8
- package/esm/responsive.d.ts +0 -2
- package/esm/types-ebda875c.d.ts +0 -113
- package/getDataTestId-18fbdb35.d.ts +0 -2
- package/getDataTestId-18fbdb35.js +0 -8
- package/index-3885b0d7.d.ts +0 -3
- package/intersection-observer-0413a170.d.ts +0 -1
- package/intersection-observer-0413a170.js +0 -893
- package/modern/Component-3885b0d7.d.ts +0 -169
- package/modern/Component-ecb2a41a.d.ts +0 -108
- package/modern/Component.d.ts +0 -104
- package/modern/Component.mobile-b2c0420d.d.ts +0 -93
- package/modern/components/select-mobile/Component.d.ts +0 -0
- package/modern/components/select-mobile/Component.js +0 -40
- package/modern/components/select-mobile/index.d.ts +0 -1
- package/modern/components/select-mobile/index.js +0 -40
- package/modern/components/select-modal-mobile/Component.d.ts +0 -0
- package/modern/components/select-modal-mobile/Component.js +0 -40
- package/modern/components/select-modal-mobile/index.d.ts +0 -1
- package/modern/components/select-modal-mobile/index.js +0 -40
- package/modern/getDataTestId-6120c308.d.ts +0 -2
- package/modern/getDataTestId-6120c308.js +0 -6
- package/modern/index-3885b0d7.d.ts +0 -3
- package/modern/intersection-observer-6768cbd0.d.ts +0 -1
- package/modern/intersection-observer-6768cbd0.js +0 -891
- package/modern/presets/useLazyLoading/index.css +0 -8
- package/modern/responsive.d.ts +0 -2
- package/modern/types-ebda875c.d.ts +0 -113
- package/presets/useLazyLoading/index.css +0 -8
- package/responsive.d.ts +0 -2
- package/types-ebda875c.d.ts +0 -113
- /package/{cssm/presets/useLazyLoading → src/presets/useSelectWithLoading}/index.module.css +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseSelectProps, OptionShape } from "./
|
|
2
|
+
import { BaseSelectProps, OptionShape } from "./typings";
|
|
3
3
|
type UseSelectWithApplyProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Список выбранных пунктов
|
|
@@ -36,18 +36,20 @@ type UseSelectWithApplyProps = {
|
|
|
36
36
|
};
|
|
37
37
|
declare const SELECT_ALL_KEY = "select_all";
|
|
38
38
|
declare function useSelectWithApply({ options, selected, onChange, OptionsList, optionsListProps, showClear, showSelectAll, showHeaderWithSelectAll, }: UseSelectWithApplyProps): {
|
|
39
|
-
OptionsList: import("react").ForwardRefExoticComponent<import("./
|
|
39
|
+
OptionsList: import("react").ForwardRefExoticComponent<import("./typings").OptionsListProps & {
|
|
40
40
|
showClear?: boolean | undefined;
|
|
41
41
|
onClose?: (() => void) | undefined;
|
|
42
42
|
selectedDraft?: OptionShape[] | undefined;
|
|
43
|
-
OptionsList?: import("react").FC<import("./
|
|
43
|
+
OptionsList?: import("react").FC<import("./typings").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
44
44
|
Footer?: import("react").FC<import("./presets/useSelectWithApply/options-list-with-apply/footer/Component").FooterProps> | undefined;
|
|
45
45
|
Header?: import("react").FC<import("./presets/useSelectWithApply/options-list-with-apply/header/Component").HeaderProps> | undefined;
|
|
46
|
-
headerProps?: import("./presets/useSelectWithApply/options-list-with-apply/header/Component").HeaderProps | undefined;
|
|
46
|
+
headerProps?: import("./presets/useSelectWithApply/options-list-with-apply/header/Component").HeaderProps | undefined; /**
|
|
47
|
+
* Показывать кнопку очистки
|
|
48
|
+
*/
|
|
47
49
|
showHeaderWithSelectAll?: boolean | undefined;
|
|
48
50
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
49
51
|
optionsListProps: {
|
|
50
|
-
OptionsList: import("react").FC<import("./
|
|
52
|
+
OptionsList: import("react").FC<import("./typings").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
51
53
|
showClear: boolean;
|
|
52
54
|
onClear: () => void;
|
|
53
55
|
onApply: () => void;
|
|
@@ -62,11 +64,11 @@ declare function useSelectWithApply({ options, selected, onChange, OptionsList,
|
|
|
62
64
|
};
|
|
63
65
|
allowUnselect: boolean;
|
|
64
66
|
multiple: boolean;
|
|
65
|
-
options: (OptionShape | import("./
|
|
67
|
+
options: (OptionShape | import("./typings").GroupShape | {
|
|
66
68
|
key: string;
|
|
67
69
|
content: string;
|
|
68
70
|
})[];
|
|
69
|
-
onChange: (payload: import("./
|
|
71
|
+
onChange: (payload: import("./typings").BaseSelectChangePayload) => void;
|
|
70
72
|
selected: string | OptionShape | (string | OptionShape)[] | null | undefined;
|
|
71
73
|
};
|
|
72
74
|
export { UseSelectWithApplyProps, SELECT_ALL_KEY, useSelectWithApply };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { OptionShape, OptionsListProps } from "./typings";
|
|
4
|
+
import { FooterProps } from "./presets/useSelectWithApply/options-list-with-apply/footer/Component";
|
|
5
|
+
import { HeaderProps } from "./presets/useSelectWithApply/options-list-with-apply/header/Component";
|
|
6
|
+
declare const OptionsListWithApply: React.ForwardRefExoticComponent<OptionsListProps & {
|
|
7
|
+
showClear?: boolean | undefined;
|
|
8
|
+
onClose?: (() => void) | undefined;
|
|
9
|
+
selectedDraft?: OptionShape[] | undefined;
|
|
10
|
+
OptionsList?: React.FC<OptionsListProps & React.RefAttributes<HTMLDivElement>> | undefined;
|
|
11
|
+
Footer?: React.FC<FooterProps> | undefined;
|
|
12
|
+
Header?: React.FC<HeaderProps> | undefined;
|
|
13
|
+
headerProps?: HeaderProps | undefined;
|
|
14
|
+
showHeaderWithSelectAll?: boolean | undefined;
|
|
15
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
export { OptionsListWithApply };
|
|
@@ -1,28 +1,9 @@
|
|
|
1
1
|
import React, { forwardRef, useCallback, useEffect, useMemo, useState, useRef } from 'react';
|
|
2
|
-
import './Component.js';
|
|
3
|
-
import 'classnames';
|
|
4
|
-
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
5
|
-
import './components/base-select/Component.js';
|
|
6
|
-
import { Header } from './presets/useSelectWithApply/options-list-with-apply/header/Component.js';
|
|
7
|
-
import { Arrow } from './components/arrow/Component.js';
|
|
8
|
-
import { BaseSelectMobile } from './components/base-select-mobile/Component.js';
|
|
9
|
-
import { Footer as Footer$1 } from './components/base-select-mobile/footer/Component.js';
|
|
10
|
-
import { Field } from './components/field/Component.js';
|
|
11
|
-
import { Optgroup } from './components/optgroup/Component.js';
|
|
12
|
-
import { Option } from './components/option/Component.js';
|
|
13
|
-
import { OptionsList } from './components/options-list/Component.js';
|
|
14
|
-
import { VirtualOptionsList } from './components/virtual-options-list/Component.js';
|
|
15
|
-
import '@alfalab/core-components-form-control/modern';
|
|
16
|
-
import '@alfalab/hooks';
|
|
17
2
|
import { processOptions } from './utils.js';
|
|
18
|
-
import '
|
|
19
|
-
import '@alfalab/core-components-checkbox/modern';
|
|
20
|
-
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
21
|
-
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
22
|
-
import '@alfalab/core-components-skeleton/modern';
|
|
23
|
-
import './intersection-observer-6768cbd0.js';
|
|
3
|
+
import { OptionsList } from './components/options-list/Component.js';
|
|
24
4
|
import { DEFAULT_VISIBLE_OPTIONS } from './consts.js';
|
|
25
5
|
import { Footer } from './presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
6
|
+
import { Header } from './presets/useSelectWithApply/options-list-with-apply/header/Component.js';
|
|
26
7
|
|
|
27
8
|
const OptionsListWithApply = forwardRef(({ toggleMenu, getOptionProps: defaultGetOptionProps, showClear = true, showHeaderWithSelectAll, selectedDraft = [], flatOptions = [], OptionsList: OptionsList$1 = OptionsList, onApply = () => null, onClear = () => null, onClose = () => null, visibleOptions = DEFAULT_VISIBLE_OPTIONS, Footer: Footer$1 = Footer, Header: Header$1 = Header, headerProps, ...restProps }, ref) => {
|
|
28
9
|
const getOptionProps = useCallback((option, index) => {
|
|
@@ -130,48 +111,4 @@ function useSelectWithApply({ options, selected, onChange = () => null, OptionsL
|
|
|
130
111
|
};
|
|
131
112
|
}
|
|
132
113
|
|
|
133
|
-
|
|
134
|
-
const SelectMobile = forwardRef(({ autocomplete = false, multiple = false, allowUnselect = false, disabled = false, closeOnSelect = !multiple, circularNavigation = false, defaultOpen = false, open: openProp, size = 'm', optionsSize = 'm', fieldProps = {}, optionProps = {}, optionsListProps = {}, Arrow: Arrow$1 = Arrow, Field: Field$1 = Field, Optgroup: Optgroup$1 = Optgroup, Option: Option$1 = Option, selected, options, OptionsList: OptionsList$1 = options.length > VIRTUAL_OPTIONS_LIST_THRESHOLD$1
|
|
135
|
-
? VirtualOptionsList
|
|
136
|
-
: OptionsList, onChange, bottomSheetProps, showClear = true, showSelectAll, showHeaderWithSelectAll, useWithApplyHook = multiple, ...restProps }, ref) => {
|
|
137
|
-
const applyProps = useSelectWithApply({
|
|
138
|
-
optionsListProps: {
|
|
139
|
-
...optionsListProps,
|
|
140
|
-
Footer: Footer$1,
|
|
141
|
-
},
|
|
142
|
-
OptionsList: OptionsList$1,
|
|
143
|
-
selected,
|
|
144
|
-
options,
|
|
145
|
-
onChange,
|
|
146
|
-
showClear,
|
|
147
|
-
showSelectAll,
|
|
148
|
-
});
|
|
149
|
-
return (React.createElement(BaseSelectMobile, { ref: ref, autocomplete: autocomplete, multiple: multiple, allowUnselect: allowUnselect, disabled: disabled, closeOnSelect: closeOnSelect, circularNavigation: circularNavigation, defaultOpen: defaultOpen, open: openProp, size: size, optionsSize: optionsSize, fieldProps: fieldProps, optionProps: optionProps, Arrow: Arrow$1, Field: Field$1, Optgroup: Optgroup$1, Option: Option$1, isBottomSheet: true, options: options, selected: selected, onChange: onChange, OptionsList: OptionsList$1, bottomSheetProps: {
|
|
150
|
-
bottomAddons: useWithApplyHook && showHeaderWithSelectAll && (React.createElement(Header, { ...applyProps.optionsListProps.headerProps, mobile: true })),
|
|
151
|
-
...bottomSheetProps,
|
|
152
|
-
}, optionsListProps: optionsListProps, ...restProps, ...(useWithApplyHook && applyProps) }));
|
|
153
|
-
});
|
|
154
|
-
|
|
155
|
-
const VIRTUAL_OPTIONS_LIST_THRESHOLD = 30;
|
|
156
|
-
const SelectModalMobile = forwardRef(({ autocomplete = false, multiple = false, allowUnselect = false, disabled = false, closeOnSelect = !multiple, circularNavigation = false, defaultOpen = false, open: openProp, size = 'm', optionsSize = 'm', fieldProps = {}, optionProps = {}, optionsListProps = {}, Arrow: Arrow$1 = Arrow, Field: Field$1 = Field, Optgroup: Optgroup$1 = Optgroup, Option: Option$1 = Option, selected, options, OptionsList: OptionsList$1 = options.length > VIRTUAL_OPTIONS_LIST_THRESHOLD
|
|
157
|
-
? VirtualOptionsList
|
|
158
|
-
: OptionsList, onChange, showClear = true, showSelectAll, useWithApplyHook = multiple, modalHeaderProps, showHeaderWithSelectAll, ...restProps }, ref) => {
|
|
159
|
-
const applyProps = useSelectWithApply({
|
|
160
|
-
optionsListProps: {
|
|
161
|
-
...optionsListProps,
|
|
162
|
-
Footer: Footer$1,
|
|
163
|
-
},
|
|
164
|
-
OptionsList: OptionsList$1,
|
|
165
|
-
selected,
|
|
166
|
-
options,
|
|
167
|
-
onChange,
|
|
168
|
-
showClear,
|
|
169
|
-
showSelectAll,
|
|
170
|
-
});
|
|
171
|
-
return (React.createElement(BaseSelectMobile, { ref: ref, autocomplete: autocomplete, multiple: multiple, allowUnselect: allowUnselect, disabled: disabled, closeOnSelect: closeOnSelect, circularNavigation: circularNavigation, defaultOpen: defaultOpen, open: openProp, size: size, optionsSize: optionsSize, fieldProps: fieldProps, optionProps: optionProps, Arrow: Arrow$1, Field: Field$1, Optgroup: Optgroup$1, Option: Option$1, isBottomSheet: false, options: options, selected: selected, onChange: onChange, OptionsList: OptionsList$1, optionsListProps: optionsListProps, modalHeaderProps: {
|
|
172
|
-
bottomAddons: useWithApplyHook && showHeaderWithSelectAll && (React.createElement(Header, { ...applyProps.optionsListProps.headerProps, mobile: true })),
|
|
173
|
-
...modalHeaderProps,
|
|
174
|
-
}, ...restProps, ...(useWithApplyHook && applyProps) }));
|
|
175
|
-
});
|
|
176
|
-
|
|
177
|
-
export { OptionsListWithApply as O, SelectMobile as S, SelectModalMobile as a, SELECT_ALL_KEY as b, useSelectWithApply as u };
|
|
114
|
+
export { OptionsListWithApply as O, SELECT_ALL_KEY as S, useSelectWithApply as u };
|
|
@@ -1,80 +1,40 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
// TODO Вид кнопок зависит от порядка импорта стилей.
|
|
3
|
+
/* eslint-disable simple-import-sort/imports */
|
|
2
4
|
import React from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
5
|
+
import { FC } from "react";
|
|
6
|
+
import { BaseButtonProps } from "./typings-9211a437";
|
|
7
|
+
/**
|
|
8
|
+
* Минимальное время отображения лоадера - 500мс,
|
|
9
|
+
* чтобы при быстрых ответах от сервера кнопка не «моргала».
|
|
10
|
+
*/
|
|
11
|
+
declare const LOADER_MIN_DISPLAY_INTERVAL = 500;
|
|
12
|
+
declare const BaseButton: React.ForwardRefExoticComponent<BaseButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
13
|
+
type SpinnerProps = {
|
|
6
14
|
/**
|
|
7
|
-
*
|
|
15
|
+
* Управление видимостью компонента
|
|
8
16
|
*/
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Дополнительный класс
|
|
12
|
-
*/
|
|
13
|
-
className?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Позиция крестика
|
|
16
|
-
*/
|
|
17
|
-
align?: "left" | "right";
|
|
18
|
-
/**
|
|
19
|
-
* Фиксирует крестик
|
|
20
|
-
*/
|
|
21
|
-
sticky?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Иконка
|
|
24
|
-
*/
|
|
25
|
-
icon?: ElementType;
|
|
26
|
-
/**
|
|
27
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
28
|
-
*/
|
|
29
|
-
dataTestId?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Коллбэк закрытия.
|
|
32
|
-
*/
|
|
33
|
-
onClose?: (event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>, reason?: "backdropClick" | "escapeKeyDown" | "closerClick") => void;
|
|
34
|
-
}
|
|
35
|
-
declare const Closer: FC<CloserProps>;
|
|
36
|
-
type IconButtonProps = {
|
|
37
|
-
/**
|
|
38
|
-
* Компонент иконки
|
|
39
|
-
*/
|
|
40
|
-
icon: ElementType<{
|
|
41
|
-
className?: string;
|
|
42
|
-
}>;
|
|
43
|
-
/**
|
|
44
|
-
* Тип кнопки
|
|
45
|
-
*/
|
|
46
|
-
view?: "primary" | "secondary" | "transparent" | "tertiary" | "negative";
|
|
17
|
+
visible?: boolean;
|
|
47
18
|
/**
|
|
48
19
|
* Размер компонента
|
|
49
20
|
*/
|
|
50
|
-
size?: "
|
|
21
|
+
size?: "xs" | "s" | "m";
|
|
51
22
|
/**
|
|
52
23
|
* Дополнительный класс
|
|
53
24
|
*/
|
|
54
25
|
className?: string;
|
|
55
26
|
/**
|
|
56
|
-
*
|
|
57
|
-
* @default 'center'
|
|
27
|
+
* Идентификатор компонента в DOM
|
|
58
28
|
*/
|
|
59
|
-
|
|
29
|
+
id?: string;
|
|
60
30
|
/**
|
|
61
31
|
* Идентификатор для систем автоматизированного тестирования
|
|
62
32
|
*/
|
|
63
33
|
dataTestId?: string;
|
|
64
34
|
/**
|
|
65
|
-
*
|
|
35
|
+
* Палитра, в контексте которой используется спиннер
|
|
66
36
|
*/
|
|
67
37
|
colors?: "default" | "inverted";
|
|
68
|
-
}
|
|
69
|
-
declare const
|
|
70
|
-
|
|
71
|
-
className?: string;
|
|
72
|
-
}>;
|
|
73
|
-
view?: "primary" | "secondary" | "tertiary" | "negative" | "transparent" | undefined;
|
|
74
|
-
size?: "s" | "xs" | "xxs" | undefined;
|
|
75
|
-
className?: string | undefined;
|
|
76
|
-
alignIcon?: "right" | "left" | "center" | undefined;
|
|
77
|
-
dataTestId?: string | undefined;
|
|
78
|
-
colors?: "default" | "inverted" | undefined;
|
|
79
|
-
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "loading"> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "download" | "target"> & React.RefAttributes<HTMLButtonElement>>;
|
|
80
|
-
export { CloserProps, Closer, IconButtonProps, IconButton };
|
|
38
|
+
};
|
|
39
|
+
declare const Spinner: FC<SpinnerProps>;
|
|
40
|
+
export { LOADER_MIN_DISPLAY_INTERVAL, BaseButton, SpinnerProps, Spinner };
|
package/modern/index.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export * from "./presets/index";
|
|
4
|
-
export * from "./typings";
|
|
5
|
-
export * from "./utils";
|
|
1
|
+
export { SelectResponsive as Select, SelectResponsiveProps as SelectProps } from "./Component.responsive";
|
|
2
|
+
export {};
|
package/modern/index.js
CHANGED
|
@@ -1,44 +1,42 @@
|
|
|
1
|
-
export { Select } from './Component.js';
|
|
2
|
-
export { Arrow } from './components/arrow/Component.js';
|
|
3
|
-
export { BaseSelect } from './components/base-select/Component.js';
|
|
4
|
-
export { b as SELECT_ALL_KEY, S as SelectMobile, a as SelectModalMobile, u as useSelectWithApply } from './Component-ecb2a41a.js';
|
|
5
|
-
export { Field } from './components/field/Component.js';
|
|
6
|
-
export { Optgroup } from './components/optgroup/Component.js';
|
|
7
|
-
export { Option } from './components/option/Component.js';
|
|
8
|
-
export { OptionsList } from './components/options-list/Component.js';
|
|
9
|
-
export { VirtualOptionsList } from './components/virtual-options-list/Component.js';
|
|
10
|
-
export { BaseOption } from './components/base-option/Component.js';
|
|
11
|
-
export { useSelectWithLoading } from './presets/useSelectWithLoading/hook.js';
|
|
12
|
-
export { useLazyLoading } from './presets/useLazyLoading/hook.js';
|
|
13
|
-
export { isGroup, isOptionShape, joinOptions, lastIndexOf, processOptions, usePrevious, useVisibleOptions } from './utils.js';
|
|
1
|
+
export { SelectResponsive as Select } from './Component.responsive.js';
|
|
14
2
|
import 'react';
|
|
3
|
+
import '@alfalab/hooks';
|
|
4
|
+
import './Component.desktop.js';
|
|
5
|
+
import '@alfalab/core-components-form-control/modern/desktop';
|
|
6
|
+
import './components/arrow/Component.js';
|
|
15
7
|
import 'classnames';
|
|
16
8
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
9
|
+
import './components/base-select/Component.js';
|
|
17
10
|
import 'react-merge-refs';
|
|
18
11
|
import '@juggle/resize-observer';
|
|
19
12
|
import 'downshift';
|
|
20
13
|
import '@alfalab/core-components-popover/modern';
|
|
21
|
-
import '@alfalab/
|
|
22
|
-
import './
|
|
14
|
+
import '@alfalab/core-components-shared/modern';
|
|
15
|
+
import './utils.js';
|
|
23
16
|
import './components/native-select/Component.js';
|
|
24
|
-
import './
|
|
17
|
+
import './components/field/Component.js';
|
|
18
|
+
import './components/optgroup/Component.js';
|
|
19
|
+
import './components/option/Component.js';
|
|
20
|
+
import './components/checkmark/Component.js';
|
|
21
|
+
import '@alfalab/core-components-badge/modern';
|
|
25
22
|
import '@alfalab/core-components-checkbox/modern';
|
|
23
|
+
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
24
|
+
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
25
|
+
import './components/checkmark-mobile/Component.js';
|
|
26
|
+
import './components/options-list/Component.js';
|
|
27
|
+
import '@alfalab/core-components-scrollbar/modern';
|
|
28
|
+
import './consts.js';
|
|
29
|
+
import './Component.mobile.js';
|
|
30
|
+
import '@alfalab/core-components-form-control/modern/mobile';
|
|
26
31
|
import './components/base-select-mobile/Component.js';
|
|
27
32
|
import '@alfalab/core-components-bottom-sheet/modern';
|
|
28
33
|
import '@alfalab/core-components-modal/modern/mobile';
|
|
29
34
|
import './components/base-select-mobile/footer/Component.js';
|
|
30
35
|
import '@alfalab/core-components-base-modal/modern';
|
|
31
|
-
import '@alfalab/core-components-button/modern';
|
|
32
|
-
import '
|
|
33
|
-
import '@alfalab/core-components-badge/modern';
|
|
34
|
-
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
35
|
-
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
36
|
-
import '@alfalab/core-components-skeleton/modern';
|
|
37
|
-
import './intersection-observer-6768cbd0.js';
|
|
38
|
-
import './consts.js';
|
|
39
|
-
import './presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
40
|
-
import './components/checkmark/Component.js';
|
|
41
|
-
import './components/checkmark-mobile/Component.js';
|
|
42
|
-
import '@alfalab/core-components-scrollbar/modern';
|
|
36
|
+
import '@alfalab/core-components-button/modern/mobile';
|
|
37
|
+
import './components/virtual-options-list/Component.js';
|
|
43
38
|
import 'react-virtual';
|
|
44
|
-
import './
|
|
39
|
+
import './hook-e0fd0350.js';
|
|
40
|
+
import './presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
41
|
+
import '@alfalab/core-components-button/modern/desktop';
|
|
42
|
+
import './presets/useSelectWithApply/options-list-with-apply/header/Component.js';
|
package/modern/mobile.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { SelectMobile } from "./
|
|
2
|
-
export { SelectModalMobile } from "./
|
|
3
|
-
export type { SelectMobileProps } from "./
|
|
4
|
-
export type { SelectModalMobileProps } from "./
|
|
1
|
+
export { SelectMobile } from "./Component.mobile";
|
|
2
|
+
export { SelectModalMobile } from "./Component.modal.mobile";
|
|
3
|
+
export type { SelectMobileProps } from "./Component.mobile";
|
|
4
|
+
export type { SelectModalMobileProps } from "./Component.modal.mobile";
|
|
5
|
+
export {};
|
package/modern/mobile.js
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { SelectMobile } from './Component.mobile.js';
|
|
2
|
+
export { SelectModalMobile } from './Component.modal.mobile.js';
|
|
2
3
|
import 'react';
|
|
3
|
-
import '
|
|
4
|
+
import '@alfalab/core-components-form-control/modern/mobile';
|
|
4
5
|
import './components/arrow/Component.js';
|
|
5
6
|
import 'classnames';
|
|
6
7
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
7
|
-
import './components/base-select/Component.js';
|
|
8
|
+
import './components/base-select-mobile/Component.js';
|
|
8
9
|
import 'react-merge-refs';
|
|
9
|
-
import '@juggle/resize-observer';
|
|
10
10
|
import 'downshift';
|
|
11
|
-
import '@alfalab/core-components-
|
|
12
|
-
import '@alfalab/
|
|
13
|
-
import '
|
|
11
|
+
import '@alfalab/core-components-bottom-sheet/modern';
|
|
12
|
+
import '@alfalab/core-components-modal/modern/mobile';
|
|
13
|
+
import '@alfalab/core-components-shared/modern';
|
|
14
14
|
import './utils.js';
|
|
15
|
-
import './components/native-select/Component.js';
|
|
16
15
|
import './components/field/Component.js';
|
|
17
|
-
import '@alfalab/
|
|
16
|
+
import '@alfalab/hooks';
|
|
18
17
|
import './components/optgroup/Component.js';
|
|
19
18
|
import './components/option/Component.js';
|
|
20
19
|
import './components/checkmark/Component.js';
|
|
@@ -26,15 +25,12 @@ import './components/checkmark-mobile/Component.js';
|
|
|
26
25
|
import './components/options-list/Component.js';
|
|
27
26
|
import '@alfalab/core-components-scrollbar/modern';
|
|
28
27
|
import './consts.js';
|
|
29
|
-
import './presets/useSelectWithApply/options-list-with-apply/header/Component.js';
|
|
30
|
-
import './components/base-select-mobile/Component.js';
|
|
31
|
-
import '@alfalab/core-components-bottom-sheet/modern';
|
|
32
|
-
import '@alfalab/core-components-modal/modern/mobile';
|
|
33
28
|
import './components/base-select-mobile/footer/Component.js';
|
|
34
29
|
import '@alfalab/core-components-base-modal/modern';
|
|
35
|
-
import '@alfalab/core-components-button/modern';
|
|
30
|
+
import '@alfalab/core-components-button/modern/mobile';
|
|
36
31
|
import './components/virtual-options-list/Component.js';
|
|
37
32
|
import 'react-virtual';
|
|
38
|
-
import '
|
|
39
|
-
import './intersection-observer-6768cbd0.js';
|
|
33
|
+
import './hook-e0fd0350.js';
|
|
40
34
|
import './presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
35
|
+
import '@alfalab/core-components-button/modern/desktop';
|
|
36
|
+
import './presets/useSelectWithApply/options-list-with-apply/header/Component.js';
|
package/modern/presets/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { useSelectWithLoading } from './useSelectWithLoading/hook.js';
|
|
2
2
|
export { useLazyLoading } from './useLazyLoading/hook.js';
|
|
3
|
-
export {
|
|
3
|
+
export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-e0fd0350.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@alfalab/core-components-skeleton/modern';
|
|
6
6
|
import '../components/option/Component.js';
|
|
@@ -11,32 +11,13 @@ import '@alfalab/core-components-checkbox/modern';
|
|
|
11
11
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
12
12
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
13
13
|
import '../components/checkmark-mobile/Component.js';
|
|
14
|
-
import '../intersection-observer-6768cbd0.js';
|
|
15
|
-
import '../Component.js';
|
|
16
|
-
import '../components/arrow/Component.js';
|
|
17
|
-
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
18
|
-
import '../components/base-select/Component.js';
|
|
19
|
-
import 'react-merge-refs';
|
|
20
|
-
import '@juggle/resize-observer';
|
|
21
|
-
import 'downshift';
|
|
22
|
-
import '@alfalab/core-components-popover/modern';
|
|
23
|
-
import '@alfalab/hooks';
|
|
24
|
-
import '../getDataTestId-6120c308.js';
|
|
25
14
|
import '../utils.js';
|
|
26
|
-
import '../components/native-select/Component.js';
|
|
27
|
-
import '../components/field/Component.js';
|
|
28
|
-
import '@alfalab/core-components-form-control/modern';
|
|
29
|
-
import '../components/optgroup/Component.js';
|
|
30
15
|
import '../components/options-list/Component.js';
|
|
16
|
+
import 'react-merge-refs';
|
|
31
17
|
import '@alfalab/core-components-scrollbar/modern';
|
|
18
|
+
import '@alfalab/hooks';
|
|
32
19
|
import '../consts.js';
|
|
33
|
-
import '
|
|
34
|
-
import '../components/base-select-mobile/Component.js';
|
|
35
|
-
import '@alfalab/core-components-bottom-sheet/modern';
|
|
36
|
-
import '@alfalab/core-components-modal/modern/mobile';
|
|
37
|
-
import '../components/base-select-mobile/footer/Component.js';
|
|
38
|
-
import '@alfalab/core-components-base-modal/modern';
|
|
39
|
-
import '@alfalab/core-components-button/modern';
|
|
40
|
-
import '../components/virtual-options-list/Component.js';
|
|
41
|
-
import 'react-virtual';
|
|
20
|
+
import '../components/optgroup/Component.js';
|
|
42
21
|
import './useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
22
|
+
import '@alfalab/core-components-button/modern/desktop';
|
|
23
|
+
import './useSelectWithApply/options-list-with-apply/header/Component.js';
|
|
@@ -28,7 +28,7 @@ type useLazyLoadingProps = {
|
|
|
28
28
|
};
|
|
29
29
|
declare function useLazyLoading({ limit, initialOffset, optionsFetcher, skeleton, Option, }: useLazyLoadingProps): {
|
|
30
30
|
optionsProps: {
|
|
31
|
-
Option: (props: OptionProps) => JSX.Element;
|
|
31
|
+
Option: (props: OptionProps) => React.JSX.Element;
|
|
32
32
|
options: OptionShape[];
|
|
33
33
|
optionsListProps: {
|
|
34
34
|
ref: React.RefObject<HTMLDivElement>;
|