@alfalab/core-components 46.1.0-beta.0 → 46.1.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/confirmation/components/screens/initial/component.js +1 -1
- package/confirmation/components/screens/initial/countdown-section.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/component.desktop.js +1 -1
- package/confirmation/esm/desktop/index.js +1 -1
- package/confirmation/esm/index.js +1 -1
- package/confirmation/esm/mobile/component.mobile.js +1 -1
- package/confirmation/esm/mobile/index.js +1 -1
- package/confirmation/esm/shared/index.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/component.desktop.js +1 -1
- package/confirmation/modern/desktop/index.js +1 -1
- package/confirmation/modern/index.js +1 -1
- package/confirmation/modern/mobile/component.mobile.js +1 -1
- package/confirmation/modern/mobile/index.js +1 -1
- package/confirmation/modern/shared/index.js +1 -1
- package/international-phone-input/{Component-3bf42d5b.d.ts → Component-1fe708ea.d.ts} +1 -1
- package/international-phone-input/Component.responsive.d.ts +4 -4
- package/international-phone-input/components/base-international-phone-input/Component.d.ts +1 -1
- package/international-phone-input/cssm/{Component-3bf42d5b.d.ts → Component-1fe708ea.d.ts} +1 -1
- package/international-phone-input/cssm/Component.responsive.d.ts +4 -4
- package/international-phone-input/cssm/components/base-international-phone-input/Component.d.ts +1 -1
- package/international-phone-input/cssm/types.d.ts +1 -1
- package/international-phone-input/cssm/{typings-3bf42d5b.d.ts → typings-1fe708ea.d.ts} +0 -20
- package/international-phone-input/cssm/utils-89376c31.d.ts +1 -1
- package/international-phone-input/esm/{Component-3bf42d5b.d.ts → Component-1fe708ea.d.ts} +1 -1
- package/international-phone-input/esm/Component.responsive.d.ts +4 -4
- package/international-phone-input/esm/components/base-international-phone-input/Component.d.ts +1 -1
- package/international-phone-input/esm/types.d.ts +1 -1
- package/international-phone-input/esm/{typings-3bf42d5b.d.ts → typings-1fe708ea.d.ts} +0 -20
- package/international-phone-input/esm/utils-89376c31.d.ts +1 -1
- package/international-phone-input/modern/{Component-3bf42d5b.d.ts → Component-1fe708ea.d.ts} +1 -1
- package/international-phone-input/modern/Component.responsive.d.ts +4 -4
- package/international-phone-input/modern/components/base-international-phone-input/Component.d.ts +1 -1
- package/international-phone-input/modern/types.d.ts +1 -1
- package/international-phone-input/modern/{typings-3bf42d5b.d.ts → typings-1fe708ea.d.ts} +0 -20
- package/international-phone-input/modern/utils-89376c31.d.ts +1 -1
- package/international-phone-input/types.d.ts +1 -1
- package/international-phone-input/{typings-3bf42d5b.d.ts → typings-1fe708ea.d.ts} +0 -20
- package/international-phone-input/utils-89376c31.d.ts +1 -1
- package/modal/components/controls/Component.js +1 -1
- package/modal/components/footer/Component.js +1 -1
- package/modal/esm/Component.responsive.js +1 -1
- package/modal/esm/components/controls/Component.js +1 -1
- package/modal/esm/components/controls/index.js +1 -1
- package/modal/esm/components/footer/Component.js +1 -1
- package/modal/esm/desktop/Component.desktop.js +1 -1
- package/modal/esm/desktop/index.js +1 -1
- package/modal/esm/index.js +1 -1
- package/modal/esm/mobile/Component.mobile.js +1 -1
- package/modal/esm/mobile/index.js +1 -1
- package/modal/modern/Component.responsive.js +1 -1
- package/modal/modern/components/controls/Component.js +1 -1
- package/modal/modern/components/controls/index.js +1 -1
- package/modal/modern/components/footer/Component.js +1 -1
- package/modal/modern/desktop/Component.desktop.js +1 -1
- package/modal/modern/desktop/index.js +1 -1
- package/modal/modern/index.js +1 -1
- package/modal/modern/mobile/Component.mobile.js +1 -1
- package/modal/modern/mobile/index.js +1 -1
- package/package.json +1 -1
- package/picker-button/Component-1fe708ea.d.ts +5 -0
- package/picker-button/cssm/Component-1fe708ea.d.ts +5 -0
- package/picker-button/cssm/field/Component.d.ts +1 -1
- package/picker-button/cssm/{typings-3bf42d5b.d.ts → typings-1fe708ea.d.ts} +0 -20
- package/picker-button/cssm/utils-89376c31.d.ts +1 -1
- package/picker-button/esm/Component-1fe708ea.d.ts +5 -0
- package/picker-button/esm/field/Component.d.ts +1 -1
- package/picker-button/esm/{typings-3bf42d5b.d.ts → typings-1fe708ea.d.ts} +0 -20
- package/picker-button/esm/utils-89376c31.d.ts +1 -1
- package/picker-button/field/Component.d.ts +1 -1
- package/picker-button/modern/Component-1fe708ea.d.ts +5 -0
- package/picker-button/modern/field/Component.d.ts +1 -1
- package/picker-button/modern/{typings-3bf42d5b.d.ts → typings-1fe708ea.d.ts} +0 -20
- package/picker-button/modern/utils-89376c31.d.ts +1 -1
- package/picker-button/{typings-3bf42d5b.d.ts → typings-1fe708ea.d.ts} +0 -20
- package/picker-button/utils-89376c31.d.ts +1 -1
- package/select/components/base-select/Component.js +1 -1
- package/select/components/options-list/Component.js +2 -11
- package/select/components/virtual-options-list/Component.js +3 -15
- package/select/cssm/components/base-select/Component.js +1 -1
- package/select/cssm/components/options-list/Component.js +2 -11
- package/select/cssm/components/virtual-options-list/Component.js +3 -15
- package/select/cssm/{hook-e079d36e.d.ts → hook-aae7b381.d.ts} +0 -1
- package/select/cssm/{hook-e079d36e.js → hook-aae7b381.js} +3 -6
- package/select/cssm/{hook-e97e6ebb.d.ts → hook-d4f77aed.d.ts} +0 -2
- package/select/cssm/mobile/Component.mobile.js +1 -1
- package/select/cssm/presets/index.d.ts +1 -1
- package/select/cssm/presets/index.js +1 -1
- package/select/cssm/presets/useSelectWithApply/hook.js +1 -1
- package/select/cssm/presets/useSelectWithApply/options-list-with-apply/Component.js +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 +1 -1
- package/select/cssm/shared/index.js +1 -1
- package/select/cssm/typings.d.ts +1 -21
- package/select/esm/Component.responsive.js +1 -1
- package/select/esm/components/base-select/Component.js +1 -1
- package/select/esm/components/options-list/Component.js +2 -11
- package/select/esm/components/virtual-options-list/Component.js +3 -15
- package/select/esm/{hook-25460541.d.ts → hook-4b5056da.d.ts} +0 -1
- package/select/esm/{hook-25460541.js → hook-4b5056da.js} +3 -6
- package/select/{hook-e97e6ebb.d.ts → esm/hook-d4f77aed.d.ts} +0 -2
- package/select/esm/index.js +1 -1
- package/select/esm/mobile/Component.mobile.js +1 -1
- package/select/esm/mobile/Component.modal.mobile.js +1 -1
- package/select/esm/mobile/index.js +1 -1
- package/select/esm/presets/index.d.ts +1 -1
- package/select/esm/presets/index.js +1 -1
- package/select/esm/presets/useSelectWithApply/hook.js +1 -1
- package/select/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- 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 +1 -1
- package/select/esm/shared/index.js +1 -1
- package/select/esm/typings.d.ts +1 -21
- package/select/{modern/hook-e97e6ebb.d.ts → hook-d4f77aed.d.ts} +0 -2
- package/select/{hook-a65146fb.d.ts → hook-e36ef109.d.ts} +0 -1
- package/select/{hook-a65146fb.js → hook-e36ef109.js} +3 -6
- package/select/mobile/Component.mobile.js +1 -1
- package/select/modern/Component.responsive.js +1 -1
- package/select/modern/components/base-select/Component.js +1 -1
- package/select/modern/components/options-list/Component.js +2 -8
- package/select/modern/components/virtual-options-list/Component.js +3 -12
- package/select/modern/{hook-6a49b1bd.d.ts → hook-2747b02b.d.ts} +0 -1
- package/select/modern/{hook-6a49b1bd.js → hook-2747b02b.js} +2 -6
- package/select/{esm/hook-e97e6ebb.d.ts → modern/hook-d4f77aed.d.ts} +0 -2
- package/select/modern/index.js +1 -1
- package/select/modern/mobile/Component.mobile.js +1 -1
- package/select/modern/mobile/Component.modal.mobile.js +1 -1
- package/select/modern/mobile/index.js +1 -1
- package/select/modern/presets/index.d.ts +1 -1
- package/select/modern/presets/index.js +1 -1
- package/select/modern/presets/useSelectWithApply/hook.js +1 -1
- package/select/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- 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 +1 -1
- package/select/modern/shared/index.js +1 -1
- package/select/modern/typings.d.ts +1 -21
- package/select/presets/index.d.ts +1 -1
- package/select/presets/index.js +1 -1
- package/select/presets/useSelectWithApply/hook.js +1 -1
- package/select/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/select/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/select/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/select/shared/index.js +1 -1
- package/select/typings.d.ts +1 -21
- package/side-panel/components/controls/Component.js +1 -1
- package/side-panel/components/footer/Component.js +1 -1
- package/side-panel/esm/Component.responsive.js +1 -1
- package/side-panel/esm/components/controls/Component.js +1 -1
- package/side-panel/esm/components/controls/index.js +1 -1
- package/side-panel/esm/components/footer/Component.desktop.js +1 -1
- package/side-panel/esm/components/footer/Component.js +1 -1
- package/side-panel/esm/components/footer/Component.mobile.js +1 -1
- package/side-panel/esm/desktop/Component.desktop.js +1 -1
- package/side-panel/esm/desktop/index.js +1 -1
- package/side-panel/esm/index.js +1 -1
- package/side-panel/esm/mobile/Component.mobile.js +1 -1
- package/side-panel/esm/mobile/index.js +1 -1
- package/side-panel/modern/Component.responsive.js +1 -1
- package/side-panel/modern/components/controls/Component.js +1 -1
- package/side-panel/modern/components/controls/index.js +1 -1
- package/side-panel/modern/components/footer/Component.desktop.js +1 -1
- package/side-panel/modern/components/footer/Component.js +1 -1
- package/side-panel/modern/components/footer/Component.mobile.js +1 -1
- package/side-panel/modern/desktop/Component.desktop.js +1 -1
- package/side-panel/modern/desktop/index.js +1 -1
- package/side-panel/modern/index.js +1 -1
- package/side-panel/modern/mobile/Component.mobile.js +1 -1
- package/side-panel/modern/mobile/index.js +1 -1
- package/tabs/components/primary-tablist/Component.collapsible.js +1 -1
- package/tabs/components/primary-tablist/Component.desktop.js +1 -1
- package/tabs/components/primary-tablist/Component.mobile.js +1 -1
- package/tabs/components/secondary-tablist/Component.desktop.js +1 -1
- package/tabs/components/secondary-tablist/Component.mobile.js +1 -1
- package/tabs/esm/collapsible/index.js +1 -1
- package/tabs/esm/components/primary-tablist/Component.collapsible.js +1 -1
- package/tabs/esm/components/primary-tablist/Component.desktop.js +1 -1
- package/tabs/esm/components/primary-tablist/Component.mobile.js +1 -1
- package/tabs/esm/components/primary-tablist/Component.responsive.js +1 -1
- package/tabs/esm/components/secondary-tablist/Component.desktop.js +1 -1
- package/tabs/esm/components/secondary-tablist/Component.mobile.js +1 -1
- package/tabs/esm/components/secondary-tablist/Component.responsive.js +1 -1
- package/tabs/esm/components/tabs/Component.collapsible.js +1 -1
- package/tabs/esm/components/tabs/Component.desktop.js +2 -2
- package/tabs/esm/components/tabs/Component.mobile.js +2 -2
- package/tabs/esm/components/tabs/Component.responsive.js +2 -2
- package/tabs/esm/desktop/index.js +2 -2
- package/tabs/esm/index.js +2 -2
- package/tabs/esm/mobile/index.js +2 -2
- package/tabs/modern/collapsible/index.js +1 -1
- package/tabs/modern/components/primary-tablist/Component.collapsible.js +1 -1
- package/tabs/modern/components/primary-tablist/Component.desktop.js +1 -1
- package/tabs/modern/components/primary-tablist/Component.mobile.js +1 -1
- package/tabs/modern/components/primary-tablist/Component.responsive.js +1 -1
- package/tabs/modern/components/secondary-tablist/Component.desktop.js +1 -1
- package/tabs/modern/components/secondary-tablist/Component.mobile.js +1 -1
- package/tabs/modern/components/secondary-tablist/Component.responsive.js +1 -1
- package/tabs/modern/components/tabs/Component.collapsible.js +1 -1
- package/tabs/modern/components/tabs/Component.desktop.js +2 -2
- package/tabs/modern/components/tabs/Component.mobile.js +2 -2
- package/tabs/modern/components/tabs/Component.responsive.js +2 -2
- package/tabs/modern/desktop/index.js +2 -2
- package/tabs/modern/index.js +2 -2
- package/tabs/modern/mobile/index.js +2 -2
- package/textarea/Component.js +1 -1
- package/textarea/components/PseudoTextArea.js +1 -1
- package/textarea/components/index.d.ts +1 -1
- package/textarea/components/index.js +1 -1
- package/textarea/esm/Component.js +1 -1
- package/textarea/esm/components/PseudoTextArea.js +1 -1
- package/textarea/esm/components/index.d.ts +1 -1
- package/textarea/esm/components/index.js +1 -1
- package/textarea/esm/index.js +1 -1
- package/textarea/modern/Component.js +1 -1
- package/textarea/modern/components/PseudoTextArea.js +1 -1
- package/textarea/modern/components/index.d.ts +1 -1
- package/textarea/modern/components/index.js +1 -1
- package/textarea/modern/index.js +1 -1
- package/themes/compiled/mobile-dark-bluetint.css +38 -38
- package/toast-plate/components/base-toast-plate/component.js +1 -1
- package/toast-plate/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +1 -1
- package/toast-plate/esm/Component.responsive.js +1 -1
- package/toast-plate/esm/components/base-toast-plate/component.js +1 -1
- package/toast-plate/esm/components/base-toast-plate/index.js +1 -1
- package/toast-plate/esm/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +1 -1
- package/toast-plate/esm/desktop/Component.desktop.js +1 -1
- package/toast-plate/esm/desktop/index.js +1 -1
- package/toast-plate/esm/index-307da6d7.d.ts +1 -1
- package/toast-plate/esm/index.js +1 -1
- package/toast-plate/esm/mobile/Component.mobile.js +1 -1
- package/toast-plate/esm/mobile/index.js +1 -1
- package/toast-plate/index-307da6d7.d.ts +1 -1
- package/toast-plate/modern/Component.responsive.js +1 -1
- package/toast-plate/modern/components/base-toast-plate/component.js +1 -1
- package/toast-plate/modern/components/base-toast-plate/index.js +1 -1
- package/toast-plate/modern/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +1 -1
- package/toast-plate/modern/desktop/Component.desktop.js +1 -1
- package/toast-plate/modern/desktop/index.js +1 -1
- package/toast-plate/modern/index-307da6d7.d.ts +1 -1
- package/toast-plate/modern/index.js +1 -1
- package/toast-plate/modern/mobile/Component.mobile.js +1 -1
- package/toast-plate/modern/mobile/index.js +1 -1
- package/picker-button/Component-3bf42d5b.d.ts +0 -5
- package/picker-button/cssm/Component-3bf42d5b.d.ts +0 -5
- package/picker-button/esm/Component-3bf42d5b.d.ts +0 -5
- package/picker-button/modern/Component-3bf42d5b.d.ts +0 -5
- /package/confirmation/{countdown-section-4af035ec.d.ts → countdown-section-7962be6f.d.ts} +0 -0
- /package/confirmation/{countdown-section-4af035ec.js → countdown-section-7962be6f.js} +0 -0
- /package/confirmation/esm/{countdown-section-5d2b06f3.d.ts → countdown-section-8aee6c83.d.ts} +0 -0
- /package/confirmation/esm/{countdown-section-5d2b06f3.js → countdown-section-8aee6c83.js} +0 -0
- /package/confirmation/modern/{countdown-section-c95617f5.d.ts → countdown-section-289469ab.d.ts} +0 -0
- /package/confirmation/modern/{countdown-section-c95617f5.js → countdown-section-289469ab.js} +0 -0
- /package/modal/esm/{layout.module-c9a0297c.js → layout.module-8c2ad581.js} +0 -0
- /package/modal/{layout.module-c1cd980a.js → layout.module-9c7f42a7.js} +0 -0
- /package/modal/modern/{layout.module-a5c6e8e4.js → layout.module-7b9f84d6.js} +0 -0
- /package/side-panel/esm/{layout.module-534c455a.js → layout.module-72cc1a7a.js} +0 -0
- /package/side-panel/{layout.module-4d28e3c9.js → layout.module-cfb65ab1.js} +0 -0
- /package/side-panel/modern/{layout.module-e0dbd825.js → layout.module-3503b091.js} +0 -0
- /package/tabs/esm/{index.module-ba7b2cb2.js → index.module-0479b8df.js} +0 -0
- /package/tabs/esm/{index.module-5a0e55b4.js → index.module-8bfeca4d.js} +0 -0
- /package/tabs/{index.module-cbc6d7c7.js → index.module-9020d7b5.js} +0 -0
- /package/tabs/{index.module-d6f111ab.js → index.module-e9bc9a5f.js} +0 -0
- /package/tabs/modern/{index.module-a08c8cf9.js → index.module-087edae9.js} +0 -0
- /package/tabs/modern/{index.module-ff97782f.js → index.module-f6f9b889.js} +0 -0
- /package/textarea/{PseudoTextArea-6644730b.d.ts → PseudoTextArea-8f7db792.d.ts} +0 -0
- /package/textarea/{PseudoTextArea-6644730b.js → PseudoTextArea-8f7db792.js} +0 -0
- /package/textarea/esm/{PseudoTextArea-8b632b20.d.ts → PseudoTextArea-0b11bb3d.d.ts} +0 -0
- /package/textarea/esm/{PseudoTextArea-8b632b20.js → PseudoTextArea-0b11bb3d.js} +0 -0
- /package/textarea/modern/{PseudoTextArea-e91a70e8.d.ts → PseudoTextArea-f5cf6868.d.ts} +0 -0
- /package/textarea/modern/{PseudoTextArea-e91a70e8.js → PseudoTextArea-f5cf6868.js} +0 -0
- /package/toast-plate/esm/{getDataTestId-32d52205.d.ts → getDataTestId-185adec6.d.ts} +0 -0
- /package/toast-plate/esm/{getDataTestId-32d52205.js → getDataTestId-185adec6.js} +0 -0
- /package/toast-plate/{getDataTestId-1de39d74.d.ts → getDataTestId-3138baed.d.ts} +0 -0
- /package/toast-plate/{getDataTestId-1de39d74.js → getDataTestId-3138baed.js} +0 -0
- /package/toast-plate/modern/{getDataTestId-dd00ab19.d.ts → getDataTestId-3a028081.d.ts} +0 -0
- /package/toast-plate/modern/{getDataTestId-dd00ab19.js → getDataTestId-3a028081.js} +0 -0
|
@@ -55,7 +55,6 @@ declare function useSelectWithApply({ options, selected, onChange, OptionsList,
|
|
|
55
55
|
Header?: import("react").FC<import("./presets/useSelectWithApply/options-list-with-apply/header/Component").HeaderProps> | undefined;
|
|
56
56
|
headerProps?: import("./presets/useSelectWithApply/options-list-with-apply/header/Component").HeaderProps | undefined;
|
|
57
57
|
showHeaderWithSelectAll?: boolean | undefined;
|
|
58
|
-
setSelectedDraft?: ((selectedDraft: OptionShape[]) => void) | undefined;
|
|
59
58
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
60
59
|
optionsListProps: {
|
|
61
60
|
OptionsList: import("react").ComponentType<import("./typings").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
@@ -64,7 +63,6 @@ declare function useSelectWithApply({ options, selected, onChange, OptionsList,
|
|
|
64
63
|
onApply: () => void;
|
|
65
64
|
onClose: () => void;
|
|
66
65
|
selectedDraft: OptionShape[];
|
|
67
|
-
setSelectedDraft: import("react").Dispatch<import("react").SetStateAction<OptionShape[]>>;
|
|
68
66
|
showHeaderWithSelectAll: boolean;
|
|
69
67
|
headerProps: {
|
|
70
68
|
indeterminate: boolean;
|
|
@@ -12,6 +12,5 @@ declare const OptionsListWithApply: React.ForwardRefExoticComponent<OptionsListP
|
|
|
12
12
|
Header?: React.FC<HeaderProps> | undefined;
|
|
13
13
|
headerProps?: HeaderProps | undefined;
|
|
14
14
|
showHeaderWithSelectAll?: boolean | undefined;
|
|
15
|
-
setSelectedDraft?: ((selectedDraft: OptionShape[]) => void) | undefined;
|
|
16
15
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
17
16
|
export { OptionsListWithApply };
|
|
@@ -11,7 +11,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
12
12
|
|
|
13
13
|
var OptionsListWithApply = React.forwardRef(function (_a, ref) {
|
|
14
|
-
var toggleMenu = _a.toggleMenu, defaultGetOptionProps = _a.getOptionProps, _b = _a.showClear, showClear = _b === void 0 ? true : _b, showHeaderWithSelectAll = _a.showHeaderWithSelectAll, _c = _a.selectedDraft, selectedDraft = _c === void 0 ? [] : _c, _d = _a.flatOptions, flatOptions = _d === void 0 ? [] : _d, _e = _a.OptionsList, OptionsList = _e === void 0 ? components_optionsList_Component.OptionsList : _e, _f = _a.onApply, onApply = _f === void 0 ? function () { return null; } : _f, _g = _a.onClear, onClear = _g === void 0 ? function () { return null; } : _g, _h = _a.onClose, onClose = _h === void 0 ? function () { return null; } : _h, _j = _a.visibleOptions, visibleOptions = _j === void 0 ? consts.DEFAULT_VISIBLE_OPTIONS : _j, _k = _a.Footer, Footer = _k === void 0 ? presets_useSelectWithApply_optionsListWithApply_footer_Component.Footer : _k, _l = _a.Header, Header = _l === void 0 ? presets_useSelectWithApply_optionsListWithApply_header_Component.Header : _l, header = _a.header, headerProps = _a.headerProps,
|
|
14
|
+
var toggleMenu = _a.toggleMenu, defaultGetOptionProps = _a.getOptionProps, _b = _a.showClear, showClear = _b === void 0 ? true : _b, showHeaderWithSelectAll = _a.showHeaderWithSelectAll, _c = _a.selectedDraft, selectedDraft = _c === void 0 ? [] : _c, _d = _a.flatOptions, flatOptions = _d === void 0 ? [] : _d, _e = _a.OptionsList, OptionsList = _e === void 0 ? components_optionsList_Component.OptionsList : _e, _f = _a.onApply, onApply = _f === void 0 ? function () { return null; } : _f, _g = _a.onClear, onClear = _g === void 0 ? function () { return null; } : _g, _h = _a.onClose, onClose = _h === void 0 ? function () { return null; } : _h, _j = _a.visibleOptions, visibleOptions = _j === void 0 ? consts.DEFAULT_VISIBLE_OPTIONS : _j, _k = _a.Footer, Footer = _k === void 0 ? presets_useSelectWithApply_optionsListWithApply_footer_Component.Footer : _k, _l = _a.Header, Header = _l === void 0 ? presets_useSelectWithApply_optionsListWithApply_header_Component.Header : _l, header = _a.header, headerProps = _a.headerProps, restProps = tslib.__rest(_a, ["toggleMenu", "getOptionProps", "showClear", "showHeaderWithSelectAll", "selectedDraft", "flatOptions", "OptionsList", "onApply", "onClear", "onClose", "visibleOptions", "Footer", "Header", "header", "headerProps"]);
|
|
15
15
|
var getOptionProps = React.useCallback(function (option, index) {
|
|
16
16
|
var optionProps = defaultGetOptionProps(option, index);
|
|
17
17
|
var selected = option.key === SELECT_ALL_KEY
|
|
@@ -30,9 +30,6 @@ var OptionsListWithApply = React.forwardRef(function (_a, ref) {
|
|
|
30
30
|
onClear();
|
|
31
31
|
toggleMenu();
|
|
32
32
|
}, [onClear, toggleMenu]);
|
|
33
|
-
var handleSelectedItems = React.useCallback(function (items) {
|
|
34
|
-
setSelectedDraft === null || setSelectedDraft === void 0 ? void 0 : setSelectedDraft(items);
|
|
35
|
-
}, [setSelectedDraft]);
|
|
36
33
|
React.useEffect(function () {
|
|
37
34
|
var activeElement = document.activeElement;
|
|
38
35
|
return function () {
|
|
@@ -50,7 +47,7 @@ var OptionsListWithApply = React.forwardRef(function (_a, ref) {
|
|
|
50
47
|
header,
|
|
51
48
|
showHeaderWithSelectAll && React__default.default.createElement(Header, tslib.__assign({}, headerProps))));
|
|
52
49
|
};
|
|
53
|
-
return (React__default.default.createElement(OptionsList, tslib.__assign({}, restProps, { ref: ref, visibleOptions: visibleOptions, toggleMenu: toggleMenu, flatOptions: flatOptions, getOptionProps: getOptionProps, onApply: handleApply, onClear: handleClear, header: renderHeader(),
|
|
50
|
+
return (React__default.default.createElement(OptionsList, tslib.__assign({}, restProps, { ref: ref, visibleOptions: visibleOptions, toggleMenu: toggleMenu, flatOptions: flatOptions, getOptionProps: getOptionProps, onApply: handleApply, onClear: handleClear, header: renderHeader(), footer: React__default.default.createElement(Footer, { handleApply: handleApply, handleClear: handleClear, showClear: showClear, selectedDraft: selectedDraft, dataTestId: restProps === null || restProps === void 0 ? void 0 : restProps.dataTestId }) })));
|
|
54
51
|
});
|
|
55
52
|
|
|
56
53
|
var SELECT_ALL_KEY = 'select_all';
|
|
@@ -111,7 +108,7 @@ function useSelectWithApply(_a) {
|
|
|
111
108
|
var memoizedOptions = React.useMemo(function () { return (showSelectAll ? tslib.__spreadArray([selectAllOption], options, true) : options); }, [options, showSelectAll]);
|
|
112
109
|
return {
|
|
113
110
|
OptionsList: OptionsListWithApply,
|
|
114
|
-
optionsListProps: tslib.__assign(tslib.__assign({}, optionsListProps), { OptionsList: OptionsList, showClear: showClear, onClear: handleClear, onApply: handleApply, onClose: handleClose, selectedDraft: selectedDraft,
|
|
111
|
+
optionsListProps: tslib.__assign(tslib.__assign({}, optionsListProps), { OptionsList: OptionsList, showClear: showClear, onClear: handleClear, onApply: handleApply, onClose: handleClose, selectedDraft: selectedDraft, showHeaderWithSelectAll: showHeaderWithSelectAll, headerProps: {
|
|
115
112
|
indeterminate: !!selectedDraft.length && selectedDraft.length < flatOptions.length,
|
|
116
113
|
checked: selectedDraft.length === flatOptions.length,
|
|
117
114
|
onChange: handleToggleAll,
|
|
@@ -14,7 +14,7 @@ var components_option_Component = require('../components/option/Component.js');
|
|
|
14
14
|
var components_optionsList_Component = require('../components/options-list/Component.js');
|
|
15
15
|
var components_search_Component = require('../components/search/Component.js');
|
|
16
16
|
var components_virtualOptionsList_Component = require('../components/virtual-options-list/Component.js');
|
|
17
|
-
var presets_useSelectWithApply_optionsListWithApply_Component = require('../hook-
|
|
17
|
+
var presets_useSelectWithApply_optionsListWithApply_Component = require('../hook-e36ef109.js');
|
|
18
18
|
var presets_useSelectWithApply_optionsListWithApply_header_Component = require('../presets/useSelectWithApply/options-list-with-apply/header/Component.js');
|
|
19
19
|
|
|
20
20
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
@@ -40,7 +40,7 @@ import '../../base-modal/modern';
|
|
|
40
40
|
import '../../button/modern/mobile';
|
|
41
41
|
import './components/virtual-options-list/Component.js';
|
|
42
42
|
import 'react-virtual';
|
|
43
|
-
import './hook-
|
|
43
|
+
import './hook-2747b02b.js';
|
|
44
44
|
import './presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
45
45
|
import '../../button/modern/desktop';
|
|
46
46
|
import './presets/useSelectWithApply/options-list-with-apply/header/Component.js';
|
|
@@ -350,7 +350,7 @@ const BaseSelect = forwardRef(
|
|
|
350
350
|
return (React.createElement("div", { ...menuProps, ref: view === 'desktop' ? menuRef : undefined, className: cn(optionsListClassName, view === 'mobile' && mobileStyles.optionsListWrapper, view === 'desktop' && styles.optionsListWrapper) },
|
|
351
351
|
React.createElement(OptionsList, { ...listProps, ref: view === 'desktop' ? listProps.ref : scrollableContainerRef, setHighlightedIndex: view === 'desktop' ? setHighlightedIndex : undefined, className: cn({ [mobileStyles.optionsList]: view === 'mobile' }), scrollbarClassName: cn({ [mobileStyles.scrollbar]: view === 'mobile' }), optionsListWidth: optionsListWidth, flatOptions: flatOptions, highlightedIndex: highlightedIndex, open: open, size: size, options: filteredOptions, Optgroup: Optgroup, Option: Option, selectedItems: selectedItems, setSelectedItems: setSelectedItems, toggleMenu: toggleMenu, getOptionProps: getOptionProps, visibleOptions: view === 'desktop' ? visibleOptions : 0, dataTestId: getDataTestId(dataTestId, 'options-list'), header: renderOptionsListHeader(), optionGroupClassName: cn(optionGroupClassName, {
|
|
352
352
|
[mobileStyles.optionGroup]: view === 'mobile',
|
|
353
|
-
}), emptyPlaceholder: renderEmptyPlaceholder(), onScroll: onScroll
|
|
353
|
+
}), emptyPlaceholder: renderEmptyPlaceholder(), onScroll: onScroll }),
|
|
354
354
|
view === 'desktop' && React.createElement("div", { className: styles.optionsListBorder })));
|
|
355
355
|
};
|
|
356
356
|
const renderInPopover = () => {
|
|
@@ -16,7 +16,7 @@ const createCounter = () => {
|
|
|
16
16
|
// eslint-disable-next-line no-plusplus
|
|
17
17
|
return () => count++;
|
|
18
18
|
};
|
|
19
|
-
const OptionsList = forwardRef(({ size = 48, className, optionGroupClassName, scrollbarClassName, Option, getOptionProps, options = [], Optgroup: Optgroup$1 = Optgroup, dataTestId, emptyPlaceholder, visibleOptions = DEFAULT_VISIBLE_OPTIONS, onScroll, open, header, footer, showFooter = true, optionsListWidth, nativeScrollbar: nativeScrollbarProp, flatOptions = [], setHighlightedIndex,
|
|
19
|
+
const OptionsList = forwardRef(({ size = 48, className, optionGroupClassName, scrollbarClassName, Option, getOptionProps, options = [], Optgroup: Optgroup$1 = Optgroup, dataTestId, emptyPlaceholder, visibleOptions = DEFAULT_VISIBLE_OPTIONS, onScroll, open, header, footer, showFooter = true, optionsListWidth, nativeScrollbar: nativeScrollbarProp, flatOptions = [], setHighlightedIndex, }, ref) => {
|
|
20
20
|
const [scrollTop, setScrollTop] = useState(true);
|
|
21
21
|
const [scrollBottom, setScrollBottom] = useState(false);
|
|
22
22
|
const query = '(max-width: 1023px)';
|
|
@@ -34,13 +34,7 @@ const OptionsList = forwardRef(({ size = 48, className, optionGroupClassName, sc
|
|
|
34
34
|
const listRef = useRef(null);
|
|
35
35
|
const scrollbarRef = useRef(null);
|
|
36
36
|
const counter = createCounter();
|
|
37
|
-
const renderGroup = (group) => {
|
|
38
|
-
const groupSelectedItems = selectedItems?.filter((item) => group.options.includes(item));
|
|
39
|
-
const handleSelectedItems = (items) => {
|
|
40
|
-
setSelectedItems((selectedItems?.filter((item) => !group.options.includes(item)) ?? []).concat(items));
|
|
41
|
-
};
|
|
42
|
-
return (React.createElement(Optgroup$1, { className: optionGroupClassName, label: group.label, key: group.label, size: size, options: group.options, selectedItems: groupSelectedItems, setSelectedItems: handleSelectedItems, search: search }, group.options.map((option) => renderOption(option, counter()))));
|
|
43
|
-
};
|
|
37
|
+
const renderGroup = (group) => (React.createElement(Optgroup$1, { className: optionGroupClassName, label: group.label, key: group.label, size: size }, group.options.map((option) => renderOption(option, counter()))));
|
|
44
38
|
useVisibleOptions({
|
|
45
39
|
...(!nativeScrollbar && { styleTargetRef: scrollbarRef }),
|
|
46
40
|
visibleOptions,
|
|
@@ -12,7 +12,7 @@ import { Optgroup } from '../optgroup/Component.js';
|
|
|
12
12
|
const styles = {"virtualOptionsList":"select__virtualOptionsList_p60lz","virtualOptionsListHeader":"select__virtualOptionsListHeader_p60lz","virtualOptionsListFooter":"select__virtualOptionsListFooter_p60lz","withBorder":"select__withBorder_p60lz","scrollable":"select__scrollable_p60lz","inner":"select__inner_p60lz","virtualRow":"select__virtualRow_p60lz","highlighted":"select__highlighted_p60lz","emptyPlaceholder":"select__emptyPlaceholder_p60lz","size-64":"select__size-64_p60lz","size-72":"select__size-72_p60lz"};
|
|
13
13
|
require('./index.css');
|
|
14
14
|
|
|
15
|
-
const VirtualOptionsList = forwardRef(({ size = 48, flatOptions = [], highlightedIndex = -1, optionGroupClassName, className, getOptionProps, Option, open, options = [], Optgroup: Optgroup$1 = Optgroup, dataTestId, emptyPlaceholder, visibleOptions = DEFAULT_VISIBLE_OPTIONS, header, footer, showFooter = true, optionsListWidth, onScroll, nativeScrollbar: nativeScrollbarProp, setHighlightedIndex,
|
|
15
|
+
const VirtualOptionsList = forwardRef(({ size = 48, flatOptions = [], highlightedIndex = -1, optionGroupClassName, className, getOptionProps, Option, open, options = [], Optgroup: Optgroup$1 = Optgroup, dataTestId, emptyPlaceholder, visibleOptions = DEFAULT_VISIBLE_OPTIONS, header, footer, showFooter = true, optionsListWidth, onScroll, nativeScrollbar: nativeScrollbarProp, setHighlightedIndex, }, ref) => {
|
|
16
16
|
const listRef = useRef(null);
|
|
17
17
|
const parentRef = useRef(null);
|
|
18
18
|
const scrollbarRef = useRef(null);
|
|
@@ -93,22 +93,13 @@ const VirtualOptionsList = forwardRef(({ size = 48, flatOptions = [], highlighte
|
|
|
93
93
|
}, [options]);
|
|
94
94
|
const renderList = () => rowVirtualizer.virtualItems.map((virtualRow) => {
|
|
95
95
|
const option = flatOptions[virtualRow.index];
|
|
96
|
-
const
|
|
97
|
-
const group = options[groupStartIndexes[virtualRow.index]];
|
|
98
|
-
if (!group)
|
|
99
|
-
return null;
|
|
100
|
-
const groupSelectedItems = selectedItems?.filter((item) => group.options.includes(item));
|
|
101
|
-
const handleSelectedItems = (items) => {
|
|
102
|
-
setSelectedItems((selectedItems?.filter((item) => !group.options.includes(item)) ?? []).concat(items));
|
|
103
|
-
};
|
|
104
|
-
return (React.createElement(Optgroup$1, { label: group.label, size: size, className: optionGroupClassName, options: group.options, selectedItems: groupSelectedItems, setSelectedItems: handleSelectedItems, search: search }));
|
|
105
|
-
};
|
|
96
|
+
const group = options[groupStartIndexes[virtualRow.index]];
|
|
106
97
|
return (React.createElement("div", { key: virtualRow.index, ref: virtualRow.measureRef, className: cn(styles.virtualRow, {
|
|
107
98
|
[styles.highlighted]: highlightedIndex === virtualRow.index,
|
|
108
99
|
}), style: {
|
|
109
100
|
transform: `translateY(${virtualRow.start}px)`,
|
|
110
101
|
} },
|
|
111
|
-
|
|
102
|
+
group && (React.createElement(Optgroup$1, { label: group.label, size: size, className: optionGroupClassName })),
|
|
112
103
|
!isGroup(option) && (React.createElement(Option, { ...getOptionProps(option, virtualRow.index) }))));
|
|
113
104
|
});
|
|
114
105
|
const contentNodeProps = {
|
|
@@ -12,6 +12,5 @@ declare const OptionsListWithApply: React.ForwardRefExoticComponent<OptionsListP
|
|
|
12
12
|
Header?: React.FC<HeaderProps> | undefined;
|
|
13
13
|
headerProps?: HeaderProps | undefined;
|
|
14
14
|
showHeaderWithSelectAll?: boolean | undefined;
|
|
15
|
-
setSelectedDraft?: ((selectedDraft: OptionShape[]) => void) | undefined;
|
|
16
15
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
17
16
|
export { OptionsListWithApply };
|
|
@@ -13,7 +13,7 @@ import './components/optgroup/Component.js';
|
|
|
13
13
|
import '../../button/modern/desktop';
|
|
14
14
|
import '../../checkbox/modern';
|
|
15
15
|
|
|
16
|
-
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, header, headerProps,
|
|
16
|
+
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, header, headerProps, ...restProps }, ref) => {
|
|
17
17
|
const getOptionProps = useCallback((option, index) => {
|
|
18
18
|
const optionProps = defaultGetOptionProps(option, index);
|
|
19
19
|
const selected = option.key === SELECT_ALL_KEY
|
|
@@ -32,9 +32,6 @@ const OptionsListWithApply = forwardRef(({ toggleMenu, getOptionProps: defaultGe
|
|
|
32
32
|
onClear();
|
|
33
33
|
toggleMenu();
|
|
34
34
|
}, [onClear, toggleMenu]);
|
|
35
|
-
const handleSelectedItems = useCallback((items) => {
|
|
36
|
-
setSelectedDraft?.(items);
|
|
37
|
-
}, [setSelectedDraft]);
|
|
38
35
|
useEffect(() => {
|
|
39
36
|
const activeElement = document.activeElement;
|
|
40
37
|
return () => {
|
|
@@ -52,7 +49,7 @@ const OptionsListWithApply = forwardRef(({ toggleMenu, getOptionProps: defaultGe
|
|
|
52
49
|
header,
|
|
53
50
|
showHeaderWithSelectAll && React.createElement(Header$1, { ...headerProps })));
|
|
54
51
|
};
|
|
55
|
-
return (React.createElement(OptionsList$1, { ...restProps, ref: ref, visibleOptions: visibleOptions, toggleMenu: toggleMenu, flatOptions: flatOptions, getOptionProps: getOptionProps, onApply: handleApply, onClear: handleClear, header: renderHeader(),
|
|
52
|
+
return (React.createElement(OptionsList$1, { ...restProps, ref: ref, visibleOptions: visibleOptions, toggleMenu: toggleMenu, flatOptions: flatOptions, getOptionProps: getOptionProps, onApply: handleApply, onClear: handleClear, header: renderHeader(), footer: React.createElement(Footer$1, { handleApply: handleApply, handleClear: handleClear, showClear: showClear, selectedDraft: selectedDraft, dataTestId: restProps?.dataTestId }) }));
|
|
56
53
|
});
|
|
57
54
|
|
|
58
55
|
const SELECT_ALL_KEY = 'select_all';
|
|
@@ -120,7 +117,6 @@ function useSelectWithApply({ options, selected, onChange = () => null, OptionsL
|
|
|
120
117
|
onApply: handleApply,
|
|
121
118
|
onClose: handleClose,
|
|
122
119
|
selectedDraft,
|
|
123
|
-
setSelectedDraft,
|
|
124
120
|
showHeaderWithSelectAll,
|
|
125
121
|
headerProps: {
|
|
126
122
|
indeterminate: !!selectedDraft.length && selectedDraft.length < flatOptions.length,
|
|
@@ -55,7 +55,6 @@ declare function useSelectWithApply({ options, selected, onChange, OptionsList,
|
|
|
55
55
|
Header?: import("react").FC<import("./presets/useSelectWithApply/options-list-with-apply/header/Component").HeaderProps> | undefined;
|
|
56
56
|
headerProps?: import("./presets/useSelectWithApply/options-list-with-apply/header/Component").HeaderProps | undefined;
|
|
57
57
|
showHeaderWithSelectAll?: boolean | undefined;
|
|
58
|
-
setSelectedDraft?: ((selectedDraft: OptionShape[]) => void) | undefined;
|
|
59
58
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
60
59
|
optionsListProps: {
|
|
61
60
|
OptionsList: import("react").ComponentType<import("./typings").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
@@ -64,7 +63,6 @@ declare function useSelectWithApply({ options, selected, onChange, OptionsList,
|
|
|
64
63
|
onApply: () => void;
|
|
65
64
|
onClose: () => void;
|
|
66
65
|
selectedDraft: OptionShape[];
|
|
67
|
-
setSelectedDraft: import("react").Dispatch<import("react").SetStateAction<OptionShape[]>>;
|
|
68
66
|
showHeaderWithSelectAll: boolean;
|
|
69
67
|
headerProps: {
|
|
70
68
|
indeterminate: boolean;
|
package/select/modern/index.js
CHANGED
|
@@ -40,7 +40,7 @@ import '../../base-modal/modern';
|
|
|
40
40
|
import '../../button/modern/mobile';
|
|
41
41
|
import './components/virtual-options-list/Component.js';
|
|
42
42
|
import 'react-virtual';
|
|
43
|
-
import './hook-
|
|
43
|
+
import './hook-2747b02b.js';
|
|
44
44
|
import './presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
45
45
|
import '../../button/modern/desktop';
|
|
46
46
|
import './presets/useSelectWithApply/options-list-with-apply/header/Component.js';
|
|
@@ -11,7 +11,7 @@ import { Option } from '../components/option/Component.js';
|
|
|
11
11
|
import { OptionsList } from '../components/options-list/Component.js';
|
|
12
12
|
import { Search } from '../components/search/Component.js';
|
|
13
13
|
import { VirtualOptionsList } from '../components/virtual-options-list/Component.js';
|
|
14
|
-
import { u as useSelectWithApply } from '../hook-
|
|
14
|
+
import { u as useSelectWithApply } from '../hook-2747b02b.js';
|
|
15
15
|
import { Header } from '../presets/useSelectWithApply/options-list-with-apply/header/Component.js';
|
|
16
16
|
import 'classnames';
|
|
17
17
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
@@ -36,7 +36,7 @@ import '../../../input/modern';
|
|
|
36
36
|
import '@alfalab/icons-glyph/MagnifierMIcon';
|
|
37
37
|
import '../components/virtual-options-list/Component.js';
|
|
38
38
|
import 'react-virtual';
|
|
39
|
-
import '../hook-
|
|
39
|
+
import '../hook-2747b02b.js';
|
|
40
40
|
import '../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
41
41
|
import '../../../button/modern/desktop';
|
|
42
42
|
import '../presets/useSelectWithApply/options-list-with-apply/header/Component.js';
|
|
@@ -37,7 +37,7 @@ import '../../../input/modern';
|
|
|
37
37
|
import '@alfalab/icons-glyph/MagnifierMIcon';
|
|
38
38
|
import '../components/virtual-options-list/Component.js';
|
|
39
39
|
import 'react-virtual';
|
|
40
|
-
import '../hook-
|
|
40
|
+
import '../hook-2747b02b.js';
|
|
41
41
|
import '../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
42
42
|
import '../../../button/modern/desktop';
|
|
43
43
|
import '../presets/useSelectWithApply/options-list-with-apply/header/Component.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { useSelectWithLoading } from './useSelectWithLoading/hook.js';
|
|
2
2
|
export { useLazyLoading } from './useLazyLoading/hook.js';
|
|
3
|
-
export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-
|
|
3
|
+
export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-2747b02b.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '../../../skeleton/modern';
|
|
6
6
|
import '../components/option/Component.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import '../../../../shared/modern';
|
|
3
|
-
export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../../hook-
|
|
3
|
+
export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../../hook-2747b02b.js';
|
|
4
4
|
import '../../utils.js';
|
|
5
5
|
import '../../components/options-list/Component.js';
|
|
6
6
|
import 'react-merge-refs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import '../../../components/options-list/Component.js';
|
|
3
|
-
export { O as OptionsListWithApply } from '../../../hook-
|
|
3
|
+
export { O as OptionsListWithApply } from '../../../hook-2747b02b.js';
|
|
4
4
|
import './footer/Component.js';
|
|
5
5
|
import './header/Component.js';
|
|
6
6
|
import 'react-merge-refs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../../hook-
|
|
1
|
+
export * from "../../../hook-2747b02b";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { useSelectWithLoading } from '../presets/useSelectWithLoading/hook.js';
|
|
2
2
|
export { useLazyLoading } from '../presets/useLazyLoading/hook.js';
|
|
3
|
-
export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-
|
|
3
|
+
export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-2747b02b.js';
|
|
4
4
|
export { defaultAccessor, defaultFilterFn, getSelectTestIds, isGroup, isOptionShape, joinOptions, lastIndexOf, processOptions, usePrevious, useVisibleOptions } from '../utils.js';
|
|
5
5
|
export { Option } from '../components/option/Component.js';
|
|
6
6
|
export { BaseOption } from '../components/base-option/Component.js';
|
|
@@ -5,7 +5,7 @@ import { InputProps } from "../../input";
|
|
|
5
5
|
import { ModalProps } from "../../modal";
|
|
6
6
|
import { ModalFooterProps, ModalHeaderProps } from "../../modal/shared";
|
|
7
7
|
import { PopoverProps } from "../../popover";
|
|
8
|
-
import { UseSelectWithApplyProps } from "./hook-
|
|
8
|
+
import { UseSelectWithApplyProps } from "./hook-d4f77aed";
|
|
9
9
|
type AnyObject = Record<string, any>;
|
|
10
10
|
type OptionShape = {
|
|
11
11
|
/**
|
|
@@ -479,10 +479,6 @@ type OptionsListProps = {
|
|
|
479
479
|
* Указать индекс пункта для hover состояния
|
|
480
480
|
*/
|
|
481
481
|
setHighlightedIndex?: (index: number) => void;
|
|
482
|
-
/**
|
|
483
|
-
* Значение поиска
|
|
484
|
-
*/
|
|
485
|
-
search?: string;
|
|
486
482
|
};
|
|
487
483
|
type OptgroupProps = {
|
|
488
484
|
/**
|
|
@@ -502,22 +498,6 @@ type OptgroupProps = {
|
|
|
502
498
|
* Дочерние элементы
|
|
503
499
|
*/
|
|
504
500
|
children?: ReactNode;
|
|
505
|
-
/**
|
|
506
|
-
* Список вариантов выбора в группе
|
|
507
|
-
*/
|
|
508
|
-
options?: OptionShape[];
|
|
509
|
-
/**
|
|
510
|
-
* Список выбранных вариантов в группе
|
|
511
|
-
*/
|
|
512
|
-
selectedItems?: OptionShape[];
|
|
513
|
-
/**
|
|
514
|
-
* Обработчик выбранных вариантов
|
|
515
|
-
*/
|
|
516
|
-
setSelectedItems?: (items: OptionShape[]) => void;
|
|
517
|
-
/**
|
|
518
|
-
* Значение поиска
|
|
519
|
-
*/
|
|
520
|
-
search?: string;
|
|
521
501
|
};
|
|
522
502
|
type OptionProps = {
|
|
523
503
|
/**
|
package/select/presets/index.js
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
2
2
|
|
|
3
3
|
var presets_useSelectWithLoading_hook = require('./useSelectWithLoading/hook.js');
|
|
4
4
|
var presets_useLazyLoading_hook = require('./useLazyLoading/hook.js');
|
|
5
|
-
var presets_useSelectWithApply_optionsListWithApply_Component = require('../hook-
|
|
5
|
+
var presets_useSelectWithApply_optionsListWithApply_Component = require('../hook-e36ef109.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
3
3
|
require('tslib');
|
|
4
4
|
require('react');
|
|
5
5
|
require('../../utils.js');
|
|
6
|
-
var presets_useSelectWithApply_optionsListWithApply_Component = require('../../hook-
|
|
6
|
+
var presets_useSelectWithApply_optionsListWithApply_Component = require('../../hook-e36ef109.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -4,7 +4,7 @@ require('tslib');
|
|
|
4
4
|
require('react');
|
|
5
5
|
require('../../../components/options-list/Component.js');
|
|
6
6
|
require('../../../consts.js');
|
|
7
|
-
var presets_useSelectWithApply_optionsListWithApply_Component = require('../../../hook-
|
|
7
|
+
var presets_useSelectWithApply_optionsListWithApply_Component = require('../../../hook-e36ef109.js');
|
|
8
8
|
require('./footer/Component.js');
|
|
9
9
|
require('./header/Component.js');
|
|
10
10
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../../hook-
|
|
1
|
+
export * from "../../../hook-e36ef109";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
|
|
3
|
-
var presets_useSelectWithApply_optionsListWithApply_Component = require('../../../hook-
|
|
3
|
+
var presets_useSelectWithApply_optionsListWithApply_Component = require('../../../hook-e36ef109.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
package/select/shared/index.js
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
2
2
|
|
|
3
3
|
var presets_useSelectWithLoading_hook = require('../presets/useSelectWithLoading/hook.js');
|
|
4
4
|
var presets_useLazyLoading_hook = require('../presets/useLazyLoading/hook.js');
|
|
5
|
-
var presets_useSelectWithApply_optionsListWithApply_Component = require('../hook-
|
|
5
|
+
var presets_useSelectWithApply_optionsListWithApply_Component = require('../hook-e36ef109.js');
|
|
6
6
|
var utils = require('../utils.js');
|
|
7
7
|
var components_option_Component = require('../components/option/Component.js');
|
|
8
8
|
var components_baseOption_Component = require('../components/base-option/Component.js');
|
package/select/typings.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { InputProps } from "../input";
|
|
|
5
5
|
import { ModalProps } from "../modal";
|
|
6
6
|
import { ModalFooterProps, ModalHeaderProps } from "../modal/shared";
|
|
7
7
|
import { PopoverProps } from "../popover";
|
|
8
|
-
import { UseSelectWithApplyProps } from "./hook-
|
|
8
|
+
import { UseSelectWithApplyProps } from "./hook-d4f77aed";
|
|
9
9
|
type AnyObject = Record<string, any>;
|
|
10
10
|
type OptionShape = {
|
|
11
11
|
/**
|
|
@@ -479,10 +479,6 @@ type OptionsListProps = {
|
|
|
479
479
|
* Указать индекс пункта для hover состояния
|
|
480
480
|
*/
|
|
481
481
|
setHighlightedIndex?: (index: number) => void;
|
|
482
|
-
/**
|
|
483
|
-
* Значение поиска
|
|
484
|
-
*/
|
|
485
|
-
search?: string;
|
|
486
482
|
};
|
|
487
483
|
type OptgroupProps = {
|
|
488
484
|
/**
|
|
@@ -502,22 +498,6 @@ type OptgroupProps = {
|
|
|
502
498
|
* Дочерние элементы
|
|
503
499
|
*/
|
|
504
500
|
children?: ReactNode;
|
|
505
|
-
/**
|
|
506
|
-
* Список вариантов выбора в группе
|
|
507
|
-
*/
|
|
508
|
-
options?: OptionShape[];
|
|
509
|
-
/**
|
|
510
|
-
* Список выбранных вариантов в группе
|
|
511
|
-
*/
|
|
512
|
-
selectedItems?: OptionShape[];
|
|
513
|
-
/**
|
|
514
|
-
* Обработчик выбранных вариантов
|
|
515
|
-
*/
|
|
516
|
-
setSelectedItems?: (items: OptionShape[]) => void;
|
|
517
|
-
/**
|
|
518
|
-
* Значение поиска
|
|
519
|
-
*/
|
|
520
|
-
search?: string;
|
|
521
501
|
};
|
|
522
502
|
type OptionProps = {
|
|
523
503
|
/**
|
|
@@ -4,7 +4,7 @@ var React = require('react');
|
|
|
4
4
|
var cn = require('classnames');
|
|
5
5
|
var coreComponentsShared = require('../../../shared');
|
|
6
6
|
var ResponsiveContext = require('../../ResponsiveContext.js');
|
|
7
|
-
var layout_module = require('../../layout.module-
|
|
7
|
+
var layout_module = require('../../layout.module-cfb65ab1.js');
|
|
8
8
|
|
|
9
9
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
10
10
|
|
|
@@ -5,7 +5,7 @@ var cn = require('classnames');
|
|
|
5
5
|
var coreComponentsShared = require('../../../shared');
|
|
6
6
|
var Context = require('../../Context.js');
|
|
7
7
|
var ResponsiveContext = require('../../ResponsiveContext.js');
|
|
8
|
-
var layout_module = require('../../layout.module-
|
|
8
|
+
var layout_module = require('../../layout.module-cfb65ab1.js');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
11
11
|
|
|
@@ -8,7 +8,7 @@ import { SidePanelDesktop } from './desktop/Component.desktop.js';
|
|
|
8
8
|
import { SidePanelMobile } from './mobile/Component.mobile.js';
|
|
9
9
|
import { ResponsiveContext } from './ResponsiveContext.js';
|
|
10
10
|
import 'classnames';
|
|
11
|
-
import './layout.module-
|
|
11
|
+
import './layout.module-72cc1a7a.js';
|
|
12
12
|
import '../../navigation-bar-private/esm';
|
|
13
13
|
import './consts.js';
|
|
14
14
|
import './Context.js';
|
|
@@ -2,7 +2,7 @@ import React, { useContext } from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { getDataTestId } from '../../../../shared/esm';
|
|
4
4
|
import { ResponsiveContext } from '../../ResponsiveContext.js';
|
|
5
|
-
import { l as layoutStyles } from '../../layout.module-
|
|
5
|
+
import { l as layoutStyles } from '../../layout.module-72cc1a7a.js';
|
|
6
6
|
|
|
7
7
|
var styles = {"component":"side-panel__component_w9q3j"};
|
|
8
8
|
require('./index.css');
|
|
@@ -7,7 +7,7 @@ import '../../../../shared/esm';
|
|
|
7
7
|
import '../../Context.js';
|
|
8
8
|
import '../../../../base-modal/esm';
|
|
9
9
|
import '../../ResponsiveContext.js';
|
|
10
|
-
import '../../layout.module-
|
|
10
|
+
import '../../layout.module-72cc1a7a.js';
|
|
11
11
|
|
|
12
12
|
var styles = {"sticky":"side-panel__sticky_13w0c","size-500":"side-panel__size-500_13w0c"};
|
|
13
13
|
require('./desktop.css');
|
|
@@ -3,7 +3,7 @@ import cn from 'classnames';
|
|
|
3
3
|
import { getDataTestId } from '../../../../shared/esm';
|
|
4
4
|
import { ModalContext } from '../../Context.js';
|
|
5
5
|
import { ResponsiveContext } from '../../ResponsiveContext.js';
|
|
6
|
-
import { l as layoutStyles } from '../../layout.module-
|
|
6
|
+
import { l as layoutStyles } from '../../layout.module-72cc1a7a.js';
|
|
7
7
|
import '../../../../base-modal/esm';
|
|
8
8
|
|
|
9
9
|
var styles = {"footer":"side-panel__footer_11ctg","sticky":"side-panel__sticky_11ctg","highlighted":"side-panel__highlighted_11ctg"};
|
|
@@ -6,7 +6,7 @@ import '../../../../shared/esm';
|
|
|
6
6
|
import '../../Context.js';
|
|
7
7
|
import '../../../../base-modal/esm';
|
|
8
8
|
import '../../ResponsiveContext.js';
|
|
9
|
-
import '../../layout.module-
|
|
9
|
+
import '../../layout.module-72cc1a7a.js';
|
|
10
10
|
|
|
11
11
|
var styles = {"footer":"side-panel__footer_ezvfb","sticky":"side-panel__sticky_ezvfb"};
|
|
12
12
|
require('./mobile.css');
|
|
@@ -13,7 +13,7 @@ import '../components/content/Component.js';
|
|
|
13
13
|
import '../../../shared/esm';
|
|
14
14
|
import '../Context.js';
|
|
15
15
|
import '../../../base-modal/esm';
|
|
16
|
-
import '../layout.module-
|
|
16
|
+
import '../layout.module-72cc1a7a.js';
|
|
17
17
|
import '../components/footer/Component.js';
|
|
18
18
|
import '../../../navigation-bar-private/esm';
|
|
19
19
|
|
|
@@ -12,7 +12,7 @@ import '../Context.js';
|
|
|
12
12
|
import '../../../base-modal/esm';
|
|
13
13
|
import '../ResponsiveContext.js';
|
|
14
14
|
import '../components/controls/Component.js';
|
|
15
|
-
import '../layout.module-
|
|
15
|
+
import '../layout.module-72cc1a7a.js';
|
|
16
16
|
import '../components/footer/Component.desktop.js';
|
|
17
17
|
import '../components/footer/Component.js';
|
|
18
18
|
import '../components/header/Component.js';
|
package/side-panel/esm/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import '../../shared/esm';
|
|
|
6
6
|
import './components/controls/Component.js';
|
|
7
7
|
import 'classnames';
|
|
8
8
|
import './ResponsiveContext.js';
|
|
9
|
-
import './layout.module-
|
|
9
|
+
import './layout.module-72cc1a7a.js';
|
|
10
10
|
import './components/header/Component.js';
|
|
11
11
|
import '../../navigation-bar-private/esm';
|
|
12
12
|
import './consts.js';
|
|
@@ -10,7 +10,7 @@ import { ResponsiveContext } from '../ResponsiveContext.js';
|
|
|
10
10
|
import '../components/content/Component.js';
|
|
11
11
|
import '../../../shared/esm';
|
|
12
12
|
import '../Context.js';
|
|
13
|
-
import '../layout.module-
|
|
13
|
+
import '../layout.module-72cc1a7a.js';
|
|
14
14
|
import '../components/footer/Component.js';
|
|
15
15
|
import '../../../navigation-bar-private/esm';
|
|
16
16
|
import '../consts.js';
|
|
@@ -9,7 +9,7 @@ import '../../../shared/esm';
|
|
|
9
9
|
import '../Context.js';
|
|
10
10
|
import '../ResponsiveContext.js';
|
|
11
11
|
import '../components/controls/Component.js';
|
|
12
|
-
import '../layout.module-
|
|
12
|
+
import '../layout.module-72cc1a7a.js';
|
|
13
13
|
import '../components/footer/Component.mobile.js';
|
|
14
14
|
import '../components/footer/Component.js';
|
|
15
15
|
import '../components/header/Component.js';
|
|
@@ -7,7 +7,7 @@ import { SidePanelDesktop } from './desktop/Component.desktop.js';
|
|
|
7
7
|
import { SidePanelMobile } from './mobile/Component.mobile.js';
|
|
8
8
|
import { ResponsiveContext } from './ResponsiveContext.js';
|
|
9
9
|
import 'classnames';
|
|
10
|
-
import './layout.module-
|
|
10
|
+
import './layout.module-3503b091.js';
|
|
11
11
|
import '../../navigation-bar-private/modern';
|
|
12
12
|
import './consts.js';
|
|
13
13
|
import './Context.js';
|