@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
|
@@ -5,7 +5,7 @@ import { InputMobileProps } from "../../input/mobile";
|
|
|
5
5
|
import { InputAutocompleteProps } from "../../input-autocomplete";
|
|
6
6
|
import { InputAutocompleteDesktopProps } from "../../input-autocomplete/desktop";
|
|
7
7
|
import { InputAutocompleteMobileProps } from "../../input-autocomplete/mobile";
|
|
8
|
-
import { OptionShape } from "./typings-
|
|
8
|
+
import { OptionShape } from "./typings-1fe708ea";
|
|
9
9
|
import { SharedCountrySelectProps } from "./components/country-select/index";
|
|
10
10
|
type Country = {
|
|
11
11
|
name: string;
|
|
@@ -1425,10 +1425,6 @@ type OptionsListProps = {
|
|
|
1425
1425
|
* Указать индекс пункта для hover состояния
|
|
1426
1426
|
*/
|
|
1427
1427
|
setHighlightedIndex?: (index: number) => void;
|
|
1428
|
-
/**
|
|
1429
|
-
* Значение поиска
|
|
1430
|
-
*/
|
|
1431
|
-
search?: string;
|
|
1432
1428
|
};
|
|
1433
1429
|
type OptgroupProps = {
|
|
1434
1430
|
/**
|
|
@@ -1448,22 +1444,6 @@ type OptgroupProps = {
|
|
|
1448
1444
|
* Дочерние элементы
|
|
1449
1445
|
*/
|
|
1450
1446
|
children?: ReactNode;
|
|
1451
|
-
/**
|
|
1452
|
-
* Список вариантов выбора в группе
|
|
1453
|
-
*/
|
|
1454
|
-
options?: OptionShape[];
|
|
1455
|
-
/**
|
|
1456
|
-
* Список выбранных вариантов в группе
|
|
1457
|
-
*/
|
|
1458
|
-
selectedItems?: OptionShape[];
|
|
1459
|
-
/**
|
|
1460
|
-
* Обработчик выбранных вариантов
|
|
1461
|
-
*/
|
|
1462
|
-
setSelectedItems?: (items: OptionShape[]) => void;
|
|
1463
|
-
/**
|
|
1464
|
-
* Значение поиска
|
|
1465
|
-
*/
|
|
1466
|
-
search?: string;
|
|
1467
1447
|
};
|
|
1468
1448
|
type OptionProps = {
|
|
1469
1449
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode, RefObject } from 'react';
|
|
2
|
-
import { BaseSelectProps, GroupShape, OptionShape } from "./typings-
|
|
2
|
+
import { BaseSelectProps, GroupShape, OptionShape } from "./typings-1fe708ea";
|
|
3
3
|
declare const isGroup: (item: OptionShape | GroupShape) => item is GroupShape;
|
|
4
4
|
declare const isOptionShape: (item: OptionShape | string | null) => item is OptionShape;
|
|
5
5
|
declare const joinOptions: ({ selected, selectedMultiple, }: {
|
|
@@ -5,7 +5,7 @@ import { InputMobileProps } from "../input/mobile";
|
|
|
5
5
|
import { InputAutocompleteProps } from "../input-autocomplete";
|
|
6
6
|
import { InputAutocompleteDesktopProps } from "../input-autocomplete/desktop";
|
|
7
7
|
import { InputAutocompleteMobileProps } from "../input-autocomplete/mobile";
|
|
8
|
-
import { OptionShape } from "./typings-
|
|
8
|
+
import { OptionShape } from "./typings-1fe708ea";
|
|
9
9
|
import { SharedCountrySelectProps } from "./components/country-select/index";
|
|
10
10
|
type Country = {
|
|
11
11
|
name: string;
|
|
@@ -1425,10 +1425,6 @@ type OptionsListProps = {
|
|
|
1425
1425
|
* Указать индекс пункта для hover состояния
|
|
1426
1426
|
*/
|
|
1427
1427
|
setHighlightedIndex?: (index: number) => void;
|
|
1428
|
-
/**
|
|
1429
|
-
* Значение поиска
|
|
1430
|
-
*/
|
|
1431
|
-
search?: string;
|
|
1432
1428
|
};
|
|
1433
1429
|
type OptgroupProps = {
|
|
1434
1430
|
/**
|
|
@@ -1448,22 +1444,6 @@ type OptgroupProps = {
|
|
|
1448
1444
|
* Дочерние элементы
|
|
1449
1445
|
*/
|
|
1450
1446
|
children?: ReactNode;
|
|
1451
|
-
/**
|
|
1452
|
-
* Список вариантов выбора в группе
|
|
1453
|
-
*/
|
|
1454
|
-
options?: OptionShape[];
|
|
1455
|
-
/**
|
|
1456
|
-
* Список выбранных вариантов в группе
|
|
1457
|
-
*/
|
|
1458
|
-
selectedItems?: OptionShape[];
|
|
1459
|
-
/**
|
|
1460
|
-
* Обработчик выбранных вариантов
|
|
1461
|
-
*/
|
|
1462
|
-
setSelectedItems?: (items: OptionShape[]) => void;
|
|
1463
|
-
/**
|
|
1464
|
-
* Значение поиска
|
|
1465
|
-
*/
|
|
1466
|
-
search?: string;
|
|
1467
1447
|
};
|
|
1468
1448
|
type OptionProps = {
|
|
1469
1449
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode, RefObject } from 'react';
|
|
2
|
-
import { BaseSelectProps, GroupShape, OptionShape } from "./typings-
|
|
2
|
+
import { BaseSelectProps, GroupShape, OptionShape } from "./typings-1fe708ea";
|
|
3
3
|
declare const isGroup: (item: OptionShape | GroupShape) => item is GroupShape;
|
|
4
4
|
declare const isOptionShape: (item: OptionShape | string | null) => item is OptionShape;
|
|
5
5
|
declare const joinOptions: ({ selected, selectedMultiple, }: {
|
|
@@ -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-9c7f42a7.js');
|
|
8
8
|
|
|
9
9
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
10
10
|
|
|
@@ -6,7 +6,7 @@ var coreComponentsShared = require('../../../shared');
|
|
|
6
6
|
var consts = require('../../consts.js');
|
|
7
7
|
var Context = require('../../Context.js');
|
|
8
8
|
var ResponsiveContext = require('../../ResponsiveContext.js');
|
|
9
|
-
var layout_module = require('../../layout.module-
|
|
9
|
+
var layout_module = require('../../layout.module-9c7f42a7.js');
|
|
10
10
|
|
|
11
11
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
12
12
|
|
|
@@ -12,7 +12,7 @@ import './consts.js';
|
|
|
12
12
|
import './Context.js';
|
|
13
13
|
import '../../base-modal/esm';
|
|
14
14
|
import './ResponsiveContext.js';
|
|
15
|
-
import './layout.module-
|
|
15
|
+
import './layout.module-8c2ad581.js';
|
|
16
16
|
import '../../navigation-bar-private/esm';
|
|
17
17
|
import 'react-merge-refs';
|
|
18
18
|
|
|
@@ -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-8c2ad581.js';
|
|
6
6
|
|
|
7
7
|
var styles = {"component":"modal__component_6629a"};
|
|
8
8
|
require('./index.css');
|
|
@@ -4,7 +4,7 @@ import { getDataTestId } from '../../../../shared/esm';
|
|
|
4
4
|
import { SIZE_TO_CLASSNAME_MAP } from '../../consts.js';
|
|
5
5
|
import { ModalContext } from '../../Context.js';
|
|
6
6
|
import { ResponsiveContext } from '../../ResponsiveContext.js';
|
|
7
|
-
import { l as layoutStyles } from '../../layout.module-
|
|
7
|
+
import { l as layoutStyles } from '../../layout.module-8c2ad581.js';
|
|
8
8
|
import '../../../../base-modal/esm';
|
|
9
9
|
|
|
10
10
|
var desktopStyles = {"footer":"modal__footer_e5vdf","sticky":"modal__sticky_e5vdf","fullscreen":"modal__fullscreen_e5vdf","size-500":"modal__size-500_e5vdf","size-600":"modal__size-600_e5vdf","size-800":"modal__size-800_e5vdf","size-1140":"modal__size-1140_e5vdf"};
|
|
@@ -12,7 +12,7 @@ import '../consts.js';
|
|
|
12
12
|
import '../ResponsiveContext.js';
|
|
13
13
|
import '../../../shared/esm';
|
|
14
14
|
import '../Context.js';
|
|
15
|
-
import '../layout.module-
|
|
15
|
+
import '../layout.module-8c2ad581.js';
|
|
16
16
|
import '../../../navigation-bar-private/esm';
|
|
17
17
|
|
|
18
18
|
var ModalDesktopComponent = forwardRef(function (props, ref) { return (React.createElement(Modal, __assign({}, props, { ref: ref, view: 'desktop' }))); });
|
|
@@ -11,7 +11,7 @@ import '../components/content/Component.js';
|
|
|
11
11
|
import '../../../shared/esm';
|
|
12
12
|
import '../Context.js';
|
|
13
13
|
import '../components/controls/Component.js';
|
|
14
|
-
import '../layout.module-
|
|
14
|
+
import '../layout.module-8c2ad581.js';
|
|
15
15
|
import '../components/footer/Component.js';
|
|
16
16
|
import '../components/header/Component.js';
|
|
17
17
|
import '../../../navigation-bar-private/esm';
|
package/modal/esm/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import './Context.js';
|
|
|
10
10
|
import '../../base-modal/esm';
|
|
11
11
|
import './ResponsiveContext.js';
|
|
12
12
|
import './components/controls/Component.js';
|
|
13
|
-
import './layout.module-
|
|
13
|
+
import './layout.module-8c2ad581.js';
|
|
14
14
|
import './components/footer/Component.js';
|
|
15
15
|
import './components/header/Component.js';
|
|
16
16
|
import '../../navigation-bar-private/esm';
|
|
@@ -12,7 +12,7 @@ import '../consts.js';
|
|
|
12
12
|
import '../ResponsiveContext.js';
|
|
13
13
|
import '../../../shared/esm';
|
|
14
14
|
import '../Context.js';
|
|
15
|
-
import '../layout.module-
|
|
15
|
+
import '../layout.module-8c2ad581.js';
|
|
16
16
|
import '../../../navigation-bar-private/esm';
|
|
17
17
|
|
|
18
18
|
var ModalMobileComponent = forwardRef(function (props, ref) { return (React.createElement(Modal, __assign({}, props, { ref: ref, view: 'mobile' }))); });
|
|
@@ -11,7 +11,7 @@ import '../components/content/Component.js';
|
|
|
11
11
|
import '../../../shared/esm';
|
|
12
12
|
import '../Context.js';
|
|
13
13
|
import '../components/controls/Component.js';
|
|
14
|
-
import '../layout.module-
|
|
14
|
+
import '../layout.module-8c2ad581.js';
|
|
15
15
|
import '../components/footer/Component.js';
|
|
16
16
|
import '../components/header/Component.js';
|
|
17
17
|
import '../../../navigation-bar-private/esm';
|
|
@@ -11,7 +11,7 @@ import './consts.js';
|
|
|
11
11
|
import './Context.js';
|
|
12
12
|
import '../../base-modal/modern';
|
|
13
13
|
import './ResponsiveContext.js';
|
|
14
|
-
import './layout.module-
|
|
14
|
+
import './layout.module-7b9f84d6.js';
|
|
15
15
|
import '../../navigation-bar-private/modern';
|
|
16
16
|
import 'react-merge-refs';
|
|
17
17
|
|
|
@@ -2,7 +2,7 @@ import React, { useContext } from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { getDataTestId } from '../../../../shared/modern';
|
|
4
4
|
import { ResponsiveContext } from '../../ResponsiveContext.js';
|
|
5
|
-
import { l as layoutStyles } from '../../layout.module-
|
|
5
|
+
import { l as layoutStyles } from '../../layout.module-7b9f84d6.js';
|
|
6
6
|
|
|
7
7
|
const styles = {"component":"modal__component_6629a"};
|
|
8
8
|
require('./index.css');
|
|
@@ -4,7 +4,7 @@ import { getDataTestId } from '../../../../shared/modern';
|
|
|
4
4
|
import { SIZE_TO_CLASSNAME_MAP } from '../../consts.js';
|
|
5
5
|
import { ModalContext } from '../../Context.js';
|
|
6
6
|
import { ResponsiveContext } from '../../ResponsiveContext.js';
|
|
7
|
-
import { l as layoutStyles } from '../../layout.module-
|
|
7
|
+
import { l as layoutStyles } from '../../layout.module-7b9f84d6.js';
|
|
8
8
|
import '../../../../base-modal/modern';
|
|
9
9
|
|
|
10
10
|
const desktopStyles = {"footer":"modal__footer_e5vdf","sticky":"modal__sticky_e5vdf","fullscreen":"modal__fullscreen_e5vdf","size-500":"modal__size-500_e5vdf","size-600":"modal__size-600_e5vdf","size-800":"modal__size-800_e5vdf","size-1140":"modal__size-1140_e5vdf"};
|
|
@@ -11,7 +11,7 @@ import '../consts.js';
|
|
|
11
11
|
import '../ResponsiveContext.js';
|
|
12
12
|
import '../../../shared/modern';
|
|
13
13
|
import '../Context.js';
|
|
14
|
-
import '../layout.module-
|
|
14
|
+
import '../layout.module-7b9f84d6.js';
|
|
15
15
|
import '../../../navigation-bar-private/modern';
|
|
16
16
|
|
|
17
17
|
const ModalDesktopComponent = forwardRef((props, ref) => (React.createElement(Modal, { ...props, ref: ref, view: 'desktop' })));
|
|
@@ -10,7 +10,7 @@ import '../components/content/Component.js';
|
|
|
10
10
|
import '../../../shared/modern';
|
|
11
11
|
import '../Context.js';
|
|
12
12
|
import '../components/controls/Component.js';
|
|
13
|
-
import '../layout.module-
|
|
13
|
+
import '../layout.module-7b9f84d6.js';
|
|
14
14
|
import '../components/footer/Component.js';
|
|
15
15
|
import '../components/header/Component.js';
|
|
16
16
|
import '../../../navigation-bar-private/modern';
|
package/modal/modern/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import './Context.js';
|
|
|
9
9
|
import '../../base-modal/modern';
|
|
10
10
|
import './ResponsiveContext.js';
|
|
11
11
|
import './components/controls/Component.js';
|
|
12
|
-
import './layout.module-
|
|
12
|
+
import './layout.module-7b9f84d6.js';
|
|
13
13
|
import './components/footer/Component.js';
|
|
14
14
|
import './components/header/Component.js';
|
|
15
15
|
import '../../navigation-bar-private/modern';
|
|
@@ -11,7 +11,7 @@ import '../consts.js';
|
|
|
11
11
|
import '../ResponsiveContext.js';
|
|
12
12
|
import '../../../shared/modern';
|
|
13
13
|
import '../Context.js';
|
|
14
|
-
import '../layout.module-
|
|
14
|
+
import '../layout.module-7b9f84d6.js';
|
|
15
15
|
import '../../../navigation-bar-private/modern';
|
|
16
16
|
|
|
17
17
|
const ModalMobileComponent = forwardRef((props, ref) => (React.createElement(Modal, { ...props, ref: ref, view: 'mobile' })));
|
|
@@ -10,7 +10,7 @@ import '../components/content/Component.js';
|
|
|
10
10
|
import '../../../shared/modern';
|
|
11
11
|
import '../Context.js';
|
|
12
12
|
import '../components/controls/Component.js';
|
|
13
|
-
import '../layout.module-
|
|
13
|
+
import '../layout.module-7b9f84d6.js';
|
|
14
14
|
import '../components/footer/Component.js';
|
|
15
15
|
import '../components/header/Component.js';
|
|
16
16
|
import '../../../navigation-bar-private/modern';
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ComponentType, SVGProps } from "react";
|
|
4
4
|
import { ButtonProps } from "../../../button";
|
|
5
|
-
import { FieldProps as BaseFieldProps } from "../typings-
|
|
5
|
+
import { FieldProps as BaseFieldProps } from "../typings-1fe708ea";
|
|
6
6
|
import { PickerButtonSize, PickerButtonVariant } from "../types";
|
|
7
7
|
type FieldProps = Omit<BaseFieldProps, 'size' | 'hint' | 'success' | 'error' | 'placeholder'> & ButtonProps & {
|
|
8
8
|
buttonSize?: PickerButtonSize;
|
|
@@ -881,10 +881,6 @@ type OptionsListProps = {
|
|
|
881
881
|
* Указать индекс пункта для hover состояния
|
|
882
882
|
*/
|
|
883
883
|
setHighlightedIndex?: (index: number) => void;
|
|
884
|
-
/**
|
|
885
|
-
* Значение поиска
|
|
886
|
-
*/
|
|
887
|
-
search?: string;
|
|
888
884
|
};
|
|
889
885
|
type OptgroupProps = {
|
|
890
886
|
/**
|
|
@@ -904,22 +900,6 @@ type OptgroupProps = {
|
|
|
904
900
|
* Дочерние элементы
|
|
905
901
|
*/
|
|
906
902
|
children?: ReactNode;
|
|
907
|
-
/**
|
|
908
|
-
* Список вариантов выбора в группе
|
|
909
|
-
*/
|
|
910
|
-
options?: OptionShape[];
|
|
911
|
-
/**
|
|
912
|
-
* Список выбранных вариантов в группе
|
|
913
|
-
*/
|
|
914
|
-
selectedItems?: OptionShape[];
|
|
915
|
-
/**
|
|
916
|
-
* Обработчик выбранных вариантов
|
|
917
|
-
*/
|
|
918
|
-
setSelectedItems?: (items: OptionShape[]) => void;
|
|
919
|
-
/**
|
|
920
|
-
* Значение поиска
|
|
921
|
-
*/
|
|
922
|
-
search?: string;
|
|
923
903
|
};
|
|
924
904
|
type OptionProps = {
|
|
925
905
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode, RefObject } from 'react';
|
|
2
|
-
import { BaseSelectProps, GroupShape, OptionShape } from "./typings-
|
|
2
|
+
import { BaseSelectProps, GroupShape, OptionShape } from "./typings-1fe708ea";
|
|
3
3
|
declare const isGroup: (item: OptionShape | GroupShape) => item is GroupShape;
|
|
4
4
|
declare const isOptionShape: (item: OptionShape | string | null) => item is OptionShape;
|
|
5
5
|
declare const joinOptions: ({ selected, selectedMultiple, }: {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ComponentType, SVGProps } from "react";
|
|
4
4
|
import { ButtonProps } from "../../../button";
|
|
5
|
-
import { FieldProps as BaseFieldProps } from "../typings-
|
|
5
|
+
import { FieldProps as BaseFieldProps } from "../typings-1fe708ea";
|
|
6
6
|
import { PickerButtonSize, PickerButtonVariant } from "../types";
|
|
7
7
|
type FieldProps = Omit<BaseFieldProps, 'size' | 'hint' | 'success' | 'error' | 'placeholder'> & ButtonProps & {
|
|
8
8
|
buttonSize?: PickerButtonSize;
|
|
@@ -881,10 +881,6 @@ type OptionsListProps = {
|
|
|
881
881
|
* Указать индекс пункта для hover состояния
|
|
882
882
|
*/
|
|
883
883
|
setHighlightedIndex?: (index: number) => void;
|
|
884
|
-
/**
|
|
885
|
-
* Значение поиска
|
|
886
|
-
*/
|
|
887
|
-
search?: string;
|
|
888
884
|
};
|
|
889
885
|
type OptgroupProps = {
|
|
890
886
|
/**
|
|
@@ -904,22 +900,6 @@ type OptgroupProps = {
|
|
|
904
900
|
* Дочерние элементы
|
|
905
901
|
*/
|
|
906
902
|
children?: ReactNode;
|
|
907
|
-
/**
|
|
908
|
-
* Список вариантов выбора в группе
|
|
909
|
-
*/
|
|
910
|
-
options?: OptionShape[];
|
|
911
|
-
/**
|
|
912
|
-
* Список выбранных вариантов в группе
|
|
913
|
-
*/
|
|
914
|
-
selectedItems?: OptionShape[];
|
|
915
|
-
/**
|
|
916
|
-
* Обработчик выбранных вариантов
|
|
917
|
-
*/
|
|
918
|
-
setSelectedItems?: (items: OptionShape[]) => void;
|
|
919
|
-
/**
|
|
920
|
-
* Значение поиска
|
|
921
|
-
*/
|
|
922
|
-
search?: string;
|
|
923
903
|
};
|
|
924
904
|
type OptionProps = {
|
|
925
905
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode, RefObject } from 'react';
|
|
2
|
-
import { BaseSelectProps, GroupShape, OptionShape } from "./typings-
|
|
2
|
+
import { BaseSelectProps, GroupShape, OptionShape } from "./typings-1fe708ea";
|
|
3
3
|
declare const isGroup: (item: OptionShape | GroupShape) => item is GroupShape;
|
|
4
4
|
declare const isOptionShape: (item: OptionShape | string | null) => item is OptionShape;
|
|
5
5
|
declare const joinOptions: ({ selected, selectedMultiple, }: {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ComponentType, SVGProps } from "react";
|
|
4
4
|
import { ButtonProps } from "../../button";
|
|
5
|
-
import { FieldProps as BaseFieldProps } from "../typings-
|
|
5
|
+
import { FieldProps as BaseFieldProps } from "../typings-1fe708ea";
|
|
6
6
|
import { PickerButtonSize, PickerButtonVariant } from "../types";
|
|
7
7
|
type FieldProps = Omit<BaseFieldProps, 'size' | 'hint' | 'success' | 'error' | 'placeholder'> & ButtonProps & {
|
|
8
8
|
buttonSize?: PickerButtonSize;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ComponentType, SVGProps } from "react";
|
|
4
4
|
import { ButtonProps } from "../../../button";
|
|
5
|
-
import { FieldProps as BaseFieldProps } from "../typings-
|
|
5
|
+
import { FieldProps as BaseFieldProps } from "../typings-1fe708ea";
|
|
6
6
|
import { PickerButtonSize, PickerButtonVariant } from "../types";
|
|
7
7
|
type FieldProps = Omit<BaseFieldProps, 'size' | 'hint' | 'success' | 'error' | 'placeholder'> & ButtonProps & {
|
|
8
8
|
buttonSize?: PickerButtonSize;
|
|
@@ -881,10 +881,6 @@ type OptionsListProps = {
|
|
|
881
881
|
* Указать индекс пункта для hover состояния
|
|
882
882
|
*/
|
|
883
883
|
setHighlightedIndex?: (index: number) => void;
|
|
884
|
-
/**
|
|
885
|
-
* Значение поиска
|
|
886
|
-
*/
|
|
887
|
-
search?: string;
|
|
888
884
|
};
|
|
889
885
|
type OptgroupProps = {
|
|
890
886
|
/**
|
|
@@ -904,22 +900,6 @@ type OptgroupProps = {
|
|
|
904
900
|
* Дочерние элементы
|
|
905
901
|
*/
|
|
906
902
|
children?: ReactNode;
|
|
907
|
-
/**
|
|
908
|
-
* Список вариантов выбора в группе
|
|
909
|
-
*/
|
|
910
|
-
options?: OptionShape[];
|
|
911
|
-
/**
|
|
912
|
-
* Список выбранных вариантов в группе
|
|
913
|
-
*/
|
|
914
|
-
selectedItems?: OptionShape[];
|
|
915
|
-
/**
|
|
916
|
-
* Обработчик выбранных вариантов
|
|
917
|
-
*/
|
|
918
|
-
setSelectedItems?: (items: OptionShape[]) => void;
|
|
919
|
-
/**
|
|
920
|
-
* Значение поиска
|
|
921
|
-
*/
|
|
922
|
-
search?: string;
|
|
923
903
|
};
|
|
924
904
|
type OptionProps = {
|
|
925
905
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode, RefObject } from 'react';
|
|
2
|
-
import { BaseSelectProps, GroupShape, OptionShape } from "./typings-
|
|
2
|
+
import { BaseSelectProps, GroupShape, OptionShape } from "./typings-1fe708ea";
|
|
3
3
|
declare const isGroup: (item: OptionShape | GroupShape) => item is GroupShape;
|
|
4
4
|
declare const isOptionShape: (item: OptionShape | string | null) => item is OptionShape;
|
|
5
5
|
declare const joinOptions: ({ selected, selectedMultiple, }: {
|
|
@@ -881,10 +881,6 @@ type OptionsListProps = {
|
|
|
881
881
|
* Указать индекс пункта для hover состояния
|
|
882
882
|
*/
|
|
883
883
|
setHighlightedIndex?: (index: number) => void;
|
|
884
|
-
/**
|
|
885
|
-
* Значение поиска
|
|
886
|
-
*/
|
|
887
|
-
search?: string;
|
|
888
884
|
};
|
|
889
885
|
type OptgroupProps = {
|
|
890
886
|
/**
|
|
@@ -904,22 +900,6 @@ type OptgroupProps = {
|
|
|
904
900
|
* Дочерние элементы
|
|
905
901
|
*/
|
|
906
902
|
children?: ReactNode;
|
|
907
|
-
/**
|
|
908
|
-
* Список вариантов выбора в группе
|
|
909
|
-
*/
|
|
910
|
-
options?: OptionShape[];
|
|
911
|
-
/**
|
|
912
|
-
* Список выбранных вариантов в группе
|
|
913
|
-
*/
|
|
914
|
-
selectedItems?: OptionShape[];
|
|
915
|
-
/**
|
|
916
|
-
* Обработчик выбранных вариантов
|
|
917
|
-
*/
|
|
918
|
-
setSelectedItems?: (items: OptionShape[]) => void;
|
|
919
|
-
/**
|
|
920
|
-
* Значение поиска
|
|
921
|
-
*/
|
|
922
|
-
search?: string;
|
|
923
903
|
};
|
|
924
904
|
type OptionProps = {
|
|
925
905
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode, RefObject } from 'react';
|
|
2
|
-
import { BaseSelectProps, GroupShape, OptionShape } from "./typings-
|
|
2
|
+
import { BaseSelectProps, GroupShape, OptionShape } from "./typings-1fe708ea";
|
|
3
3
|
declare const isGroup: (item: OptionShape | GroupShape) => item is GroupShape;
|
|
4
4
|
declare const isOptionShape: (item: OptionShape | string | null) => item is OptionShape;
|
|
5
5
|
declare const joinOptions: ({ selected, selectedMultiple, }: {
|
|
@@ -363,7 +363,7 @@ function (_a, ref) {
|
|
|
363
363
|
return (React__default.default.createElement("div", tslib.__assign({}, menuProps, { ref: view === 'desktop' ? menuRef : undefined, className: cn__default.default(optionsListClassName, view === 'mobile' && mobileStyles.optionsListWrapper, view === 'desktop' && styles.optionsListWrapper) }),
|
|
364
364
|
React__default.default.createElement(OptionsList, tslib.__assign({}, listProps, { ref: view === 'desktop' ? listProps.ref : scrollableContainerRef, setHighlightedIndex: view === 'desktop' ? setHighlightedIndex : undefined, className: cn__default.default((_a = {}, _a[mobileStyles.optionsList] = view === 'mobile', _a)), scrollbarClassName: cn__default.default((_b = {}, _b[mobileStyles.scrollbar] = view === 'mobile', _b)), 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: coreComponentsShared.getDataTestId(dataTestId, 'options-list'), header: renderOptionsListHeader(), optionGroupClassName: cn__default.default(optionGroupClassName, (_c = {},
|
|
365
365
|
_c[mobileStyles.optionGroup] = view === 'mobile',
|
|
366
|
-
_c)), emptyPlaceholder: renderEmptyPlaceholder(), onScroll: onScroll
|
|
366
|
+
_c)), emptyPlaceholder: renderEmptyPlaceholder(), onScroll: onScroll })),
|
|
367
367
|
view === 'desktop' && React__default.default.createElement("div", { className: styles.optionsListBorder })));
|
|
368
368
|
};
|
|
369
369
|
var renderInPopover = function () {
|
|
@@ -27,7 +27,7 @@ var createCounter = function () {
|
|
|
27
27
|
};
|
|
28
28
|
var OptionsList = React.forwardRef(function (_a, ref) {
|
|
29
29
|
var _b, _c;
|
|
30
|
-
var _d = _a.size, size = _d === void 0 ? 48 : _d, className = _a.className, optionGroupClassName = _a.optionGroupClassName, scrollbarClassName = _a.scrollbarClassName, Option = _a.Option, getOptionProps = _a.getOptionProps, _e = _a.options, options = _e === void 0 ? [] : _e, _f = _a.Optgroup, Optgroup = _f === void 0 ? components_optgroup_Component.Optgroup : _f, dataTestId = _a.dataTestId, emptyPlaceholder = _a.emptyPlaceholder, _g = _a.visibleOptions, visibleOptions = _g === void 0 ? consts.DEFAULT_VISIBLE_OPTIONS : _g, onScroll = _a.onScroll, open = _a.open, header = _a.header, footer = _a.footer, _h = _a.showFooter, showFooter = _h === void 0 ? true : _h, optionsListWidth = _a.optionsListWidth, nativeScrollbarProp = _a.nativeScrollbar, _j = _a.flatOptions, flatOptions = _j === void 0 ? [] : _j, setHighlightedIndex = _a.setHighlightedIndex
|
|
30
|
+
var _d = _a.size, size = _d === void 0 ? 48 : _d, className = _a.className, optionGroupClassName = _a.optionGroupClassName, scrollbarClassName = _a.scrollbarClassName, Option = _a.Option, getOptionProps = _a.getOptionProps, _e = _a.options, options = _e === void 0 ? [] : _e, _f = _a.Optgroup, Optgroup = _f === void 0 ? components_optgroup_Component.Optgroup : _f, dataTestId = _a.dataTestId, emptyPlaceholder = _a.emptyPlaceholder, _g = _a.visibleOptions, visibleOptions = _g === void 0 ? consts.DEFAULT_VISIBLE_OPTIONS : _g, onScroll = _a.onScroll, open = _a.open, header = _a.header, footer = _a.footer, _h = _a.showFooter, showFooter = _h === void 0 ? true : _h, optionsListWidth = _a.optionsListWidth, nativeScrollbarProp = _a.nativeScrollbar, _j = _a.flatOptions, flatOptions = _j === void 0 ? [] : _j, setHighlightedIndex = _a.setHighlightedIndex;
|
|
31
31
|
var _k = React.useState(true), scrollTop = _k[0], setScrollTop = _k[1];
|
|
32
32
|
var _l = React.useState(false), scrollBottom = _l[0], setScrollBottom = _l[1];
|
|
33
33
|
var query = '(max-width: 1023px)';
|
|
@@ -47,16 +47,7 @@ var OptionsList = React.forwardRef(function (_a, ref) {
|
|
|
47
47
|
var listRef = React.useRef(null);
|
|
48
48
|
var scrollbarRef = React.useRef(null);
|
|
49
49
|
var counter = createCounter();
|
|
50
|
-
var renderGroup = function (group) {
|
|
51
|
-
var groupSelectedItems = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.filter(function (item) {
|
|
52
|
-
return group.options.includes(item);
|
|
53
|
-
});
|
|
54
|
-
var handleSelectedItems = function (items) {
|
|
55
|
-
var _a;
|
|
56
|
-
setSelectedItems(((_a = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.filter(function (item) { return !group.options.includes(item); })) !== null && _a !== void 0 ? _a : []).concat(items));
|
|
57
|
-
};
|
|
58
|
-
return (React__default.default.createElement(Optgroup, { className: optionGroupClassName, label: group.label, key: group.label, size: size, options: group.options, selectedItems: groupSelectedItems, setSelectedItems: handleSelectedItems, search: search }, group.options.map(function (option) { return renderOption(option, counter()); })));
|
|
59
|
-
};
|
|
50
|
+
var renderGroup = function (group) { return (React__default.default.createElement(Optgroup, { className: optionGroupClassName, label: group.label, key: group.label, size: size }, group.options.map(function (option) { return renderOption(option, counter()); }))); };
|
|
60
51
|
utils.useVisibleOptions(tslib.__assign(tslib.__assign({}, (!nativeScrollbar && { styleTargetRef: scrollbarRef })), { visibleOptions: visibleOptions, listRef: listRef, open: open, invalidate: options }));
|
|
61
52
|
if (options.length === 0 && !emptyPlaceholder && !header && !footer) {
|
|
62
53
|
return null;
|