@alfalab/core-components 42.14.0-beta.0 → 42.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/calendar-input/Component-10db897e.d.ts +183 -3
- package/calendar-input/Component-69921c40.d.ts +12 -172
- package/calendar-input/Component.desktop-b5b4c59f.d.ts +5 -72
- package/calendar-input/components/calendar-input/Component.d.ts +1 -1
- package/calendar-input/index-89f0cb07.d.ts +1 -1
- package/calendar-input/index-ebda875c.d.ts +1 -1
- package/calendar-input/index-f034f741.d.ts +2 -80
- package/calendar-input/mobile-c219f8ca.d.ts +368 -1
- package/confirmation/component.desktop.js +1 -1
- package/confirmation/component.mobile.js +1 -1
- package/confirmation/component.responsive.js +1 -1
- package/confirmation/components/base-confirmation/component.js +1 -1
- package/confirmation/components/base-confirmation/index.js +1 -1
- package/confirmation/components/index.js +1 -1
- package/confirmation/components/screens/index.js +1 -1
- package/confirmation/components/screens/initial/component.js +1 -1
- package/confirmation/components/screens/initial/countdown-section.js +1 -1
- package/confirmation/components/screens/initial/index.js +1 -1
- package/confirmation/desktop.js +1 -1
- package/confirmation/esm/component.desktop.js +1 -1
- package/confirmation/esm/component.mobile.js +1 -1
- package/confirmation/esm/component.responsive.js +1 -1
- package/confirmation/esm/components/base-confirmation/component.js +1 -1
- package/confirmation/esm/components/base-confirmation/index.js +1 -1
- package/confirmation/esm/components/index.js +1 -1
- package/confirmation/esm/components/screens/index.js +1 -1
- package/confirmation/esm/components/screens/initial/component.js +1 -1
- package/confirmation/esm/components/screens/initial/countdown-section.js +1 -1
- package/confirmation/esm/components/screens/initial/index.js +1 -1
- package/confirmation/esm/desktop.js +1 -1
- package/confirmation/esm/index.js +1 -1
- package/confirmation/esm/mobile.js +1 -1
- package/confirmation/esm/shared.js +1 -1
- package/confirmation/index.js +1 -1
- package/confirmation/mobile.js +1 -1
- package/confirmation/modern/component.desktop.js +1 -1
- package/confirmation/modern/component.mobile.js +1 -1
- package/confirmation/modern/component.responsive.js +1 -1
- package/confirmation/modern/components/base-confirmation/component.js +1 -1
- package/confirmation/modern/components/base-confirmation/index.js +1 -1
- package/confirmation/modern/components/index.js +1 -1
- package/confirmation/modern/components/screens/index.js +1 -1
- package/confirmation/modern/components/screens/initial/component.js +1 -1
- package/confirmation/modern/components/screens/initial/countdown-section.js +1 -1
- package/confirmation/modern/components/screens/initial/index.js +1 -1
- package/confirmation/modern/desktop.js +1 -1
- package/confirmation/modern/index.js +1 -1
- package/confirmation/modern/mobile.js +1 -1
- package/confirmation/modern/shared.js +1 -1
- package/confirmation/shared.js +1 -1
- package/date-range-input/esm/Component-10db897e.d.ts +295 -4
- package/date-range-input/esm/Component-b5b4c59f.d.ts +1 -1
- package/date-range-input/esm/Component.desktop-b5b4c59f.d.ts +1 -8
- package/date-range-input/esm/index-ebda875c.d.ts +1 -34
- package/date-range-input/esm/index-f034f741.d.ts +5 -2
- package/date-time-input/esm/Component-10db897e.d.ts +4 -295
- package/date-time-input/esm/Component-69921c40.d.ts +172 -12
- package/date-time-input/esm/Component.desktop-b5b4c59f.d.ts +72 -5
- package/date-time-input/esm/components/date-time-input/Component.d.ts +1 -1
- package/date-time-input/esm/index-89f0cb07.d.ts +1 -1
- package/date-time-input/esm/index-ebda875c.d.ts +34 -1
- package/date-time-input/esm/index-f034f741.d.ts +80 -2
- package/date-time-input/esm/mobile-c219f8ca.d.ts +1 -368
- package/date-time-input/modern/Component-10db897e.d.ts +295 -4
- package/date-time-input/modern/Component-5684a67d.d.ts +23 -0
- package/date-time-input/modern/Component-69921c40.d.ts +12 -172
- package/date-time-input/modern/Component-e2b6c730.d.ts +76 -0
- package/date-time-input/modern/Component.desktop-b5b4c59f.d.ts +5 -72
- package/date-time-input/modern/components/date-time-input/Component.d.ts +1 -1
- package/date-time-input/modern/{desktop-69921c40.d.ts → desktop-89f0cb07.d.ts} +1 -1
- package/date-time-input/modern/index-89f0cb07.d.ts +1 -1
- package/date-time-input/modern/index-ebda875c.d.ts +1 -34
- package/date-time-input/modern/index-f034f741.d.ts +2 -80
- package/date-time-input/modern/mobile-c219f8ca.d.ts +368 -1
- package/date-time-input/modern/utils-e0a54580.d.ts +8 -0
- package/gallery/Component.js +2 -2
- package/gallery/components/header/Component.js +1 -1
- package/gallery/components/header/buttons.js +1 -1
- package/gallery/components/header/index.js +1 -1
- package/gallery/components/image-viewer/component.js +1 -1
- package/gallery/components/image-viewer/index.js +1 -1
- package/gallery/components/image-viewer/slide.js +1 -1
- package/gallery/components/index.js +2 -2
- package/gallery/esm/Component.js +2 -2
- package/gallery/esm/components/header/Component.js +1 -1
- package/gallery/esm/components/header/buttons.js +1 -1
- package/gallery/esm/components/header/index.js +1 -1
- package/gallery/esm/components/image-viewer/component.js +1 -1
- package/gallery/esm/components/image-viewer/index.js +1 -1
- package/gallery/esm/components/image-viewer/slide.js +1 -1
- package/gallery/esm/components/index.js +2 -2
- package/gallery/esm/index.js +2 -2
- package/gallery/index.js +2 -2
- package/gallery/modern/Component.js +2 -2
- package/gallery/modern/components/header/Component.js +1 -1
- package/gallery/modern/components/header/buttons.js +1 -1
- package/gallery/modern/components/header/index.js +1 -1
- package/gallery/modern/components/image-viewer/component.js +1 -1
- package/gallery/modern/components/image-viewer/index.js +1 -1
- package/gallery/modern/components/image-viewer/slide.js +1 -1
- package/gallery/modern/components/index.js +2 -2
- package/gallery/modern/index.js +2 -2
- package/input-autocomplete/esm/Component-0f4b9bed.d.ts +70 -3
- package/input-autocomplete/esm/Component-ebda875c.d.ts +8 -293
- package/input-autocomplete/esm/Component.desktop.d.ts +1 -1
- package/input-autocomplete/esm/Component.mobile.d.ts +2 -2
- package/input-autocomplete/esm/Component.modal.mobile.d.ts +3 -3
- package/input-autocomplete/esm/Component.responsive.d.ts +4 -4
- package/input-autocomplete/esm/hook-8abfea97.d.ts +4 -4
- package/input-autocomplete/esm/index-bdb4c6b9.d.ts +2 -180
- package/input-autocomplete/esm/index-c76d6398.d.ts +6 -184
- package/input-autocomplete/esm/index-ebda875c.d.ts +117 -190
- package/input-autocomplete/esm/index-f12ee135.d.ts +3 -275
- package/input-autocomplete/esm/shared-4cd3936b.d.ts +59 -1
- package/input-autocomplete/esm/types-72dda473.d.ts +276 -0
- package/international-phone-input/modern/Component-0f4b9bed.d.ts +3 -70
- package/international-phone-input/modern/Component-4cd3936b.d.ts +5 -17
- package/international-phone-input/modern/Component-8b2c2707.d.ts +1 -1
- package/international-phone-input/modern/Component-96988a65.d.ts +19 -0
- package/international-phone-input/modern/Component-ebda875c.d.ts +98 -9
- package/international-phone-input/modern/{Component.desktop-9cded6b9.d.ts → Component.desktop-4cd3936b.d.ts} +2 -2
- package/international-phone-input/modern/Component.desktop-ebda875c.d.ts +18 -0
- package/international-phone-input/modern/Component.responsive.d.ts +3 -3
- package/international-phone-input/modern/desktop-232828f7.d.ts +1 -1
- package/international-phone-input/modern/hook-8abfea97.d.ts +4 -4
- package/international-phone-input/modern/index-bdb4c6b9.d.ts +180 -2
- package/international-phone-input/modern/index-c44170fe.d.ts +1 -1
- package/international-phone-input/modern/index-c76d6398.d.ts +182 -4
- package/international-phone-input/modern/index-ebda875c.d.ts +1 -1
- package/international-phone-input/modern/mobile-4c19bc40.d.ts +121 -3
- package/international-phone-input/modern/mobile-96988a65.d.ts +2 -1
- package/international-phone-input/modern/shared-4cd3936b.d.ts +1 -59
- package/package.json +2 -2
- package/pure-cell/component.js +1 -1
- package/pure-cell/components/content/component.js +1 -1
- package/pure-cell/components/content/index.d.ts +1 -1
- package/pure-cell/components/content/index.js +1 -1
- package/pure-cell/components/main/component.js +1 -1
- package/pure-cell/components/main/index.d.ts +1 -1
- package/pure-cell/components/main/index.js +1 -1
- package/pure-cell/components/text/component.js +1 -1
- package/pure-cell/components/text/index.d.ts +1 -1
- package/pure-cell/components/text/index.js +1 -1
- package/pure-cell/esm/component.js +1 -1
- package/pure-cell/esm/components/content/component.js +1 -1
- package/pure-cell/esm/components/content/index.d.ts +1 -1
- package/pure-cell/esm/components/content/index.js +1 -1
- package/pure-cell/esm/components/main/component.js +1 -1
- package/pure-cell/esm/components/main/index.d.ts +1 -1
- package/pure-cell/esm/components/main/index.js +1 -1
- package/pure-cell/esm/components/text/component.js +1 -1
- package/pure-cell/esm/components/text/index.d.ts +1 -1
- package/pure-cell/esm/components/text/index.js +1 -1
- package/pure-cell/esm/index.js +1 -1
- package/pure-cell/index.js +1 -1
- package/pure-cell/modern/component.js +1 -1
- package/pure-cell/modern/components/content/component.js +1 -1
- package/pure-cell/modern/components/content/index.d.ts +1 -1
- package/pure-cell/modern/components/content/index.js +1 -1
- package/pure-cell/modern/components/main/component.js +1 -1
- package/pure-cell/modern/components/main/index.d.ts +1 -1
- package/pure-cell/modern/components/main/index.js +1 -1
- package/pure-cell/modern/components/text/component.js +1 -1
- package/pure-cell/modern/components/text/index.d.ts +1 -1
- package/pure-cell/modern/components/text/index.js +1 -1
- package/pure-cell/modern/index.js +1 -1
- package/select/Component.desktop.d.ts +0 -2
- package/select/Component.mobile-f1f15074.d.ts +2 -2
- package/select/Component.mobile.js +1 -1
- package/select/Component.modal.mobile.js +1 -1
- package/select/Component.responsive.js +1 -1
- package/select/esm/Component.mobile.js +1 -1
- package/select/esm/Component.modal.mobile.js +1 -1
- package/select/esm/Component.responsive.js +1 -1
- package/select/esm/index.js +1 -1
- package/select/esm/mobile.js +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.js +1 -1
- package/select/index.js +1 -1
- package/select/mobile-96988a65.d.ts +6 -2
- package/select/mobile.js +1 -1
- package/select/modern/Component.mobile.js +1 -1
- package/select/modern/Component.modal.mobile.js +1 -1
- package/select/modern/Component.responsive.js +1 -1
- package/select/modern/index.js +1 -1
- package/select/modern/mobile.js +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.js +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.js +1 -1
- package/select-with-tags/components/tag-list/component.js +1 -1
- package/select-with-tags/cssm/Component.desktop-0aa4e915.d.ts +1 -1
- package/select-with-tags/cssm/Component.mobile-16b1285a.d.ts +1 -1
- package/select-with-tags/cssm/Component.responsive-3109f463.d.ts +1 -1
- package/select-with-tags/cssm/components/tag-list/component.js +1 -1
- package/select-with-tags/esm/components/tag-list/component.js +1 -1
- package/select-with-tags/modern/components/tag-list/component.js +1 -1
- package/table/esm/desktop-69921c40.d.ts +1 -1
- package/table/esm/index-ebda875c.d.ts +1 -1
- package/table/esm/mobile-89f0cb07.d.ts +1 -1
- package/tabs/cssm/index-ebda875c.d.ts +86 -21
- package/tabs/modern/index-ebda875c.d.ts +86 -21
- package/themes/compiled/mobile-dark-bluetint.css +46 -46
- package/themes/dist/compiled/mobile-dark-bluetint.css +160 -160
- package/calendar-input/Component-ebda875c.d.ts +0 -35
- package/date-time-input/modern/Component-b5b4c59f.d.ts +0 -389
- package/input-autocomplete/esm/Component-72dda473.d.ts +0 -53
- package/international-phone-input/modern/Component-9cded6b9.d.ts +0 -7
- package/international-phone-input/modern/Component.mobile-4cd3936b.d.ts +0 -98
- package/international-phone-input/modern/Component.mobile-ebda875c.d.ts +0 -6
- package/international-phone-input/modern/Component.modal.mobile-4cd3936b.d.ts +0 -91
- /package/{date-time-input/esm → calendar-input}/Component-5684a67d.d.ts +0 -0
- /package/{date-time-input/esm → calendar-input}/Component-e2b6c730.d.ts +0 -0
- /package/{date-time-input/esm → calendar-input}/Component.desktop-89f0cb07.d.ts +0 -0
- /package/calendar-input/{Component.responsive-0aa4e915.d.ts → Component.responsive-16b1285a.d.ts} +0 -0
- /package/{date-time-input/esm → calendar-input}/desktop-89f0cb07.d.ts +0 -0
- /package/{date-time-input/esm → calendar-input}/desktop-b5b4c59f.d.ts +0 -0
- /package/calendar-input/{shared-f034f741.d.ts → shared-71d94e2b.d.ts} +0 -0
- /package/{date-time-input/esm → calendar-input}/utils-e0a54580.d.ts +0 -0
- /package/confirmation/{countdown-section-6c6108cc.d.ts → countdown-section-3dcecb18.d.ts} +0 -0
- /package/confirmation/{countdown-section-6c6108cc.js → countdown-section-3dcecb18.js} +0 -0
- /package/confirmation/esm/{countdown-section-d6bdbf45.d.ts → countdown-section-9f91f07f.d.ts} +0 -0
- /package/confirmation/esm/{countdown-section-d6bdbf45.js → countdown-section-9f91f07f.js} +0 -0
- /package/confirmation/modern/{countdown-section-3348e907.d.ts → countdown-section-f642a386.d.ts} +0 -0
- /package/confirmation/modern/{countdown-section-3348e907.js → countdown-section-f642a386.js} +0 -0
- /package/date-range-input/esm/{Component.mobile-16b1285a.d.ts → Component.mobile-89f0cb07.d.ts} +0 -0
- /package/{calendar-input → date-time-input/esm}/Component-b5b4c59f.d.ts +0 -0
- /package/{calendar-input → date-time-input/esm}/Component.desktop-0aa4e915.d.ts +0 -0
- /package/date-time-input/{modern → esm}/Component.mobile-ebda875c.d.ts +0 -0
- /package/date-time-input/{modern → esm}/Component.responsive-0aa4e915.d.ts +0 -0
- /package/date-time-input/{modern → esm}/Component.responsive-785df74d.d.ts +0 -0
- /package/{calendar-input → date-time-input/esm}/desktop-63dec22f.d.ts +0 -0
- /package/{calendar-input → date-time-input/esm}/desktop-69921c40.d.ts +0 -0
- /package/date-time-input/modern/{Component.desktop-0aa4e915.d.ts → Component.desktop-89f0cb07.d.ts} +0 -0
- /package/date-time-input/{esm → modern}/Component.desktop-ebda875c.d.ts +0 -0
- /package/date-time-input/{esm → modern}/Component.responsive-16b1285a.d.ts +0 -0
- /package/date-time-input/{esm → modern}/Component.responsive-d7e9f69d.d.ts +0 -0
- /package/date-time-input/modern/{desktop-63dec22f.d.ts → desktop-b5b4c59f.d.ts} +0 -0
- /package/gallery/{buttons-956df736.d.ts → buttons-ef2e58f2.d.ts} +0 -0
- /package/gallery/{buttons-956df736.js → buttons-ef2e58f2.js} +0 -0
- /package/gallery/esm/{buttons-aea7680d.d.ts → buttons-80a64e3d.d.ts} +0 -0
- /package/gallery/esm/{buttons-aea7680d.js → buttons-80a64e3d.js} +0 -0
- /package/gallery/esm/{slide-b35666e6.d.ts → slide-855e46a2.d.ts} +0 -0
- /package/gallery/esm/{slide-b35666e6.js → slide-855e46a2.js} +0 -0
- /package/gallery/modern/{buttons-1db6ece7.d.ts → buttons-9cfec478.d.ts} +0 -0
- /package/gallery/modern/{buttons-1db6ece7.js → buttons-9cfec478.js} +0 -0
- /package/gallery/modern/{slide-bfc856d6.d.ts → slide-11296bd8.d.ts} +0 -0
- /package/gallery/modern/{slide-bfc856d6.js → slide-11296bd8.js} +0 -0
- /package/gallery/{slide-cb28b058.d.ts → slide-53929d57.d.ts} +0 -0
- /package/gallery/{slide-cb28b058.js → slide-53929d57.js} +0 -0
- /package/{select → input/esm}/Component.mobile-ebda875c.d.ts +0 -0
- /package/{international-phone-input/modern → input-autocomplete/esm}/Component-69921c40.d.ts +0 -0
- /package/{international-phone-input/modern → input-autocomplete/esm}/Component.modal.mobile-0f4b9bed.d.ts +0 -0
- /package/input-autocomplete/esm/{desktop-89f0cb07.d.ts → desktop-69921c40.d.ts} +0 -0
- /package/input-autocomplete/esm/{mobile-511e54fa.d.ts → mobile-89f0cb07.d.ts} +0 -0
- /package/{international-phone-input/modern → input-autocomplete/esm}/mobile-f28cbba0.d.ts +0 -0
- /package/{international-phone-input/modern → input-autocomplete/esm}/useSkeleton-ebda875c.d.ts +0 -0
- /package/{international-phone-input/modern → input-autocomplete/esm}/utils-1574ad8b.d.ts +0 -0
- /package/{input-autocomplete/esm → international-phone-input/modern}/Component-511e54fa.d.ts +0 -0
- /package/{input-autocomplete/esm → international-phone-input/modern}/Component-aed0af6e.d.ts +0 -0
- /package/{input-autocomplete/esm → international-phone-input/modern}/Component-f12ee135.d.ts +0 -0
- /package/international-phone-input/modern/{Component.responsive-785df74d.d.ts → Component.responsive-d7e9f69d.d.ts} +0 -0
- /package/{input-autocomplete/esm → international-phone-input/modern}/hook-ebda875c.d.ts +0 -0
- /package/{input-autocomplete/esm → international-phone-input/modern}/mobile-45dc17c6.d.ts +0 -0
- /package/international-phone-input/modern/{mobile-89f0cb07.d.ts → mobile-511e54fa.d.ts} +0 -0
- /package/{input-autocomplete/esm → international-phone-input/modern}/useSkeleton-1b036d4b.d.ts +0 -0
- /package/pure-cell/{component-e27ea294.d.ts → component-0a51b9f9.d.ts} +0 -0
- /package/pure-cell/{component-e27ea294.js → component-0a51b9f9.js} +0 -0
- /package/pure-cell/esm/{component-91d54387.d.ts → component-47bb10a4.d.ts} +0 -0
- /package/pure-cell/esm/{component-91d54387.js → component-47bb10a4.js} +0 -0
- /package/pure-cell/modern/{component-b4d6f3df.d.ts → component-f7278cdd.d.ts} +0 -0
- /package/pure-cell/modern/{component-b4d6f3df.js → component-f7278cdd.js} +0 -0
- /package/{input/esm → select}/Component.desktop-ebda875c.d.ts +0 -0
- /package/select/esm/{hook-1e576b85.d.ts → hook-7cea01ed.d.ts} +0 -0
- /package/select/esm/{hook-1e576b85.js → hook-7cea01ed.js} +0 -0
- /package/select/{hook-ccde557f.d.ts → hook-26f637c3.d.ts} +0 -0
- /package/select/{hook-ccde557f.js → hook-26f637c3.js} +0 -0
- /package/select/modern/{hook-99a2fb1e.d.ts → hook-8fde8bd7.d.ts} +0 -0
- /package/select/modern/{hook-99a2fb1e.js → hook-8fde8bd7.js} +0 -0
|
@@ -1,2 +1,180 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react-transition-group" />
|
|
3
|
+
/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { FC, KeyboardEvent, MouseEvent, MutableRefObject, ReactNode, Ref } from "react";
|
|
6
|
+
import { TransitionProps } from "react-transition-group/Transition";
|
|
7
|
+
import { BackdropProps, PortalProps } from "./index-ebda875c";
|
|
8
|
+
type BaseModalProps = {
|
|
9
|
+
/**
|
|
10
|
+
* Контент
|
|
11
|
+
*/
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Компонент бэкдропа
|
|
15
|
+
*/
|
|
16
|
+
Backdrop?: FC<BackdropProps>;
|
|
17
|
+
/**
|
|
18
|
+
* Свойства для Бэкдропа
|
|
19
|
+
*/
|
|
20
|
+
backdropProps?: Partial<BackdropProps> & Record<string, unknown>;
|
|
21
|
+
/**
|
|
22
|
+
* Нода, компонент или функция возвращающая их
|
|
23
|
+
*
|
|
24
|
+
* Контейнер к которому будут добавляться порталы
|
|
25
|
+
*/
|
|
26
|
+
container?: PortalProps["getPortalContainer"];
|
|
27
|
+
/**
|
|
28
|
+
* Отключает автоматический перевод фокуса на модалку при открытии
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
disableAutoFocus?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Отключает ловушку фокуса
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
36
|
+
disableFocusLock?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Отключает восстановление фокуса на предыдущем элементе после закрытия модалки
|
|
39
|
+
* @default false
|
|
40
|
+
*/
|
|
41
|
+
disableRestoreFocus?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Отключает вызов `callback` при нажатии Escape
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
46
|
+
disableEscapeKeyDown?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Отключает вызов `callback` при клике на бэкдроп
|
|
49
|
+
* @default false
|
|
50
|
+
*/
|
|
51
|
+
disableBackdropClick?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Отключает блокировку скролла при открытии модального окна
|
|
54
|
+
* @default false
|
|
55
|
+
*/
|
|
56
|
+
disableBlockingScroll?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Содержимое модалки всегда в DOM
|
|
59
|
+
* @default false
|
|
60
|
+
*/
|
|
61
|
+
keepMounted?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Управление видимостью модалки
|
|
64
|
+
*/
|
|
65
|
+
open: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Дополнительный класс
|
|
68
|
+
*/
|
|
69
|
+
className?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Дополнительный класс
|
|
72
|
+
*/
|
|
73
|
+
contentClassName?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Дополнительные пропсы на обертку контента
|
|
76
|
+
*/
|
|
77
|
+
contentProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
78
|
+
/**
|
|
79
|
+
* Дополнительные пропсы на компонентную обертку контента
|
|
80
|
+
*/
|
|
81
|
+
componentDivProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
82
|
+
/**
|
|
83
|
+
* Дополнительный класс для обертки (Modal)
|
|
84
|
+
*/
|
|
85
|
+
wrapperClassName?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Обработчик скролла контента
|
|
88
|
+
*/
|
|
89
|
+
scrollHandler?: "wrapper" | "content" | MutableRefObject<HTMLDivElement | null>;
|
|
90
|
+
/**
|
|
91
|
+
* Пропсы для анимации (CSSTransition)
|
|
92
|
+
*/
|
|
93
|
+
transitionProps?: Partial<TransitionProps>;
|
|
94
|
+
/**
|
|
95
|
+
* Рендерить ли в контейнер через портал.
|
|
96
|
+
* @default true
|
|
97
|
+
*/
|
|
98
|
+
usePortal?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Обработчик события нажатия на бэкдроп
|
|
101
|
+
*/
|
|
102
|
+
onBackdropClick?: (event: MouseEvent) => void;
|
|
103
|
+
/**
|
|
104
|
+
* Обработчик события нажатия на Escape
|
|
105
|
+
*
|
|
106
|
+
* Если `disableEscapeKeyDown` - false и модальное окно в фокусе
|
|
107
|
+
*/
|
|
108
|
+
onEscapeKeyDown?: (event: KeyboardEvent) => void;
|
|
109
|
+
/**
|
|
110
|
+
* Обработчик закрытия
|
|
111
|
+
*/
|
|
112
|
+
onClose?: (event: MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>, reason?: "backdropClick" | "escapeKeyDown" | "closerClick") => void;
|
|
113
|
+
/**
|
|
114
|
+
* Обработчик события onEntered компонента Transition
|
|
115
|
+
*/
|
|
116
|
+
onMount?: () => void;
|
|
117
|
+
/**
|
|
118
|
+
* Обработчик события onExited компонента Transition
|
|
119
|
+
*/
|
|
120
|
+
onUnmount?: () => void;
|
|
121
|
+
/**
|
|
122
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
123
|
+
*/
|
|
124
|
+
dataTestId?: string;
|
|
125
|
+
/**
|
|
126
|
+
* z-index компонента
|
|
127
|
+
*/
|
|
128
|
+
zIndex?: number;
|
|
129
|
+
/**
|
|
130
|
+
* Реф, который должен быть установлен компонентной области
|
|
131
|
+
*/
|
|
132
|
+
componentRef?: MutableRefObject<HTMLDivElement | null>;
|
|
133
|
+
};
|
|
134
|
+
type BaseModalContext = {
|
|
135
|
+
parentRef: React.RefObject<HTMLDivElement>;
|
|
136
|
+
componentRef: React.RefObject<HTMLDivElement>;
|
|
137
|
+
hasFooter?: boolean;
|
|
138
|
+
hasHeader?: boolean;
|
|
139
|
+
hasScroll?: boolean;
|
|
140
|
+
headerHighlighted?: boolean;
|
|
141
|
+
footerHighlighted?: boolean;
|
|
142
|
+
headerOffset?: number;
|
|
143
|
+
setHeaderOffset: (offset: number) => void;
|
|
144
|
+
contentRef: Ref<HTMLElement>;
|
|
145
|
+
setHasHeader: (exists: boolean) => void;
|
|
146
|
+
setHasFooter: (exists: boolean) => void;
|
|
147
|
+
onClose: Required<BaseModalProps>["onClose"];
|
|
148
|
+
};
|
|
149
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
150
|
+
declare const BaseModalContext: React.Context<BaseModalContext>;
|
|
151
|
+
declare const BaseModal: React.ForwardRefExoticComponent<BaseModalProps & React.RefAttributes<HTMLDivElement>>;
|
|
152
|
+
declare function isScrolledToTop(target: HTMLElement): boolean;
|
|
153
|
+
declare function isScrolledToBottom(target: HTMLElement): boolean;
|
|
154
|
+
declare function hasScrollbar(target: HTMLElement): boolean;
|
|
155
|
+
declare const getScrollbarSize: () => number;
|
|
156
|
+
declare const restoreContainerStyles: (container: HTMLElement) => void;
|
|
157
|
+
declare const handleContainer: (container?: HTMLElement) => void;
|
|
158
|
+
type SavedStyle = {
|
|
159
|
+
value: string;
|
|
160
|
+
key: string;
|
|
161
|
+
el: HTMLElement;
|
|
162
|
+
};
|
|
163
|
+
type RestoreStyle = {
|
|
164
|
+
container: HTMLElement;
|
|
165
|
+
modals: number;
|
|
166
|
+
styles: SavedStyle[];
|
|
167
|
+
};
|
|
168
|
+
declare class ModalStore {
|
|
169
|
+
private readonly restoreStyles;
|
|
170
|
+
constructor();
|
|
171
|
+
getRestoreStyles: () => RestoreStyle[];
|
|
172
|
+
}
|
|
173
|
+
declare const getModalStore: () => ModalStore;
|
|
174
|
+
declare class GlobalStore {
|
|
175
|
+
private readonly modalStore;
|
|
176
|
+
constructor();
|
|
177
|
+
getModalStore: () => ModalStore;
|
|
178
|
+
}
|
|
179
|
+
export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, getScrollbarSize, restoreContainerStyles, handleContainer, getModalStore, GlobalStore };
|
|
180
|
+
export type { SavedStyle };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./Component.responsive-
|
|
1
|
+
export * from "./Component.responsive-d7e9f69d";
|
|
2
2
|
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
/* eslint-disable complexity */
|
|
3
3
|
import React from "react";
|
|
4
|
-
import { ReactNode, ButtonHTMLAttributes, ElementType } from "react";
|
|
4
|
+
import { ReactNode, ButtonHTMLAttributes, ElementType, FC, ForwardRefExoticComponent, RefAttributes, HTMLAttributes } from "react";
|
|
5
|
+
import { TextElementType, TextSkeletonProps } from "./types-1b036d4b";
|
|
5
6
|
interface CloserProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
6
7
|
/**
|
|
7
8
|
* Вид компонента
|
|
@@ -135,7 +136,184 @@ type NavigationBarProps = {
|
|
|
135
136
|
scrollableParentRef?: React.RefObject<HTMLDivElement>;
|
|
136
137
|
};
|
|
137
138
|
declare const NavigationBar: React.ForwardRefExoticComponent<NavigationBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
138
|
-
|
|
139
|
-
|
|
139
|
+
interface BackArrowAddonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
140
|
+
/**
|
|
141
|
+
* Текст после иконки
|
|
142
|
+
*/
|
|
143
|
+
text?: string;
|
|
144
|
+
/**
|
|
145
|
+
* Дополнительный класс
|
|
146
|
+
*/
|
|
147
|
+
className?: string;
|
|
148
|
+
/**
|
|
149
|
+
* Вид компонента
|
|
150
|
+
*/
|
|
151
|
+
view: "mobile" | "desktop";
|
|
152
|
+
/**
|
|
153
|
+
* Прозрачность текста
|
|
154
|
+
*/
|
|
155
|
+
textOpacity?: number;
|
|
156
|
+
/**
|
|
157
|
+
* Обработчик клика
|
|
158
|
+
*/
|
|
159
|
+
onClick?: () => void;
|
|
160
|
+
}
|
|
161
|
+
declare const BackArrowAddon: React.FC<BackArrowAddonProps>;
|
|
162
|
+
declare const colors: readonly [
|
|
163
|
+
"tertiary",
|
|
164
|
+
"disabled",
|
|
165
|
+
"accent",
|
|
166
|
+
"primary",
|
|
167
|
+
"attention",
|
|
168
|
+
"positive",
|
|
169
|
+
"secondary",
|
|
170
|
+
"tertiary-inverted",
|
|
171
|
+
"primary-inverted",
|
|
172
|
+
"secondary-inverted",
|
|
173
|
+
"link",
|
|
174
|
+
"negative",
|
|
175
|
+
"static-primary-light",
|
|
176
|
+
"static-secondary-light",
|
|
177
|
+
"static-tertiary-light",
|
|
178
|
+
"static-primary-dark",
|
|
179
|
+
"static-secondary-dark",
|
|
180
|
+
"static-tertiary-dark",
|
|
181
|
+
"static-accent"
|
|
182
|
+
];
|
|
183
|
+
type Color = (typeof colors)[number];
|
|
184
|
+
type NativeProps = HTMLAttributes<HTMLSpanElement>;
|
|
185
|
+
type TextBaseProps = {
|
|
186
|
+
/**
|
|
187
|
+
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/tokens-assets-типографика--docs)
|
|
188
|
+
*/
|
|
189
|
+
view?: "primary-large" | "primary-medium" | "primary-small" | "secondary-large" | "secondary-medium" | "secondary-small" | "component" | "caps";
|
|
190
|
+
/**
|
|
191
|
+
* Цвет текста
|
|
192
|
+
*/
|
|
193
|
+
color?: Color;
|
|
194
|
+
/**
|
|
195
|
+
* Толщина шрифта
|
|
196
|
+
*/
|
|
197
|
+
weight?: "regular" | "medium" | "bold";
|
|
198
|
+
/**
|
|
199
|
+
* Делает цифры моноширинными
|
|
200
|
+
*/
|
|
201
|
+
monospaceNumbers?: boolean;
|
|
202
|
+
/**
|
|
203
|
+
* HTML тег
|
|
204
|
+
*/
|
|
205
|
+
tag?: "span" | "div";
|
|
206
|
+
/**
|
|
207
|
+
* Css-класс для стилизации (native prop)
|
|
208
|
+
*/
|
|
209
|
+
className?: string;
|
|
210
|
+
/**
|
|
211
|
+
* Id компонента для тестов
|
|
212
|
+
*/
|
|
213
|
+
dataTestId?: string;
|
|
214
|
+
/**
|
|
215
|
+
* Контент (native prop)
|
|
216
|
+
*/
|
|
217
|
+
children?: React.ReactNode;
|
|
218
|
+
/**
|
|
219
|
+
* Добавляет отступы к тэгу 'p'
|
|
220
|
+
*/
|
|
221
|
+
defaultMargins?: never;
|
|
222
|
+
/**
|
|
223
|
+
* Количество строк (не поддерживает IE)
|
|
224
|
+
*/
|
|
225
|
+
rowLimit?: 1 | 2 | 3;
|
|
226
|
+
/**
|
|
227
|
+
* Показать скелетон
|
|
228
|
+
*/
|
|
229
|
+
showSkeleton?: boolean;
|
|
230
|
+
/**
|
|
231
|
+
* Пропы для скелетона
|
|
232
|
+
*/
|
|
233
|
+
skeletonProps?: TextSkeletonProps;
|
|
234
|
+
};
|
|
235
|
+
type TextPTagProps = Omit<TextBaseProps, "tag" | "defaultMargins"> & {
|
|
236
|
+
tag?: "p";
|
|
237
|
+
defaultMargins?: boolean;
|
|
238
|
+
};
|
|
239
|
+
type TextProps = Omit<NativeProps, "color"> & (TextBaseProps | TextPTagProps);
|
|
240
|
+
type NativeProps$0 = HTMLAttributes<HTMLHeadingElement>;
|
|
241
|
+
type TitleProps = Omit<NativeProps$0, "color"> & {
|
|
242
|
+
/**
|
|
243
|
+
* HTML тег
|
|
244
|
+
*/
|
|
245
|
+
tag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div";
|
|
246
|
+
/**
|
|
247
|
+
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
|
|
248
|
+
*/
|
|
249
|
+
view?: "xlarge" | "large" | "medium" | "small" | "xsmall";
|
|
250
|
+
/**
|
|
251
|
+
* Цвет текста
|
|
252
|
+
*/
|
|
253
|
+
color?: Color;
|
|
254
|
+
/**
|
|
255
|
+
* Толщина шрифта
|
|
256
|
+
*/
|
|
257
|
+
weight?: "regular" | "medium" | "bold";
|
|
258
|
+
/**
|
|
259
|
+
* Шрифт текста
|
|
260
|
+
*/
|
|
261
|
+
font?: "styrene" | "system";
|
|
262
|
+
/**
|
|
263
|
+
* Добавляет отступы
|
|
264
|
+
*/
|
|
265
|
+
defaultMargins?: boolean;
|
|
266
|
+
/**
|
|
267
|
+
* Css-класс для стилизации (native prop)
|
|
268
|
+
*/
|
|
269
|
+
className?: string;
|
|
270
|
+
/**
|
|
271
|
+
* Id компонента для тестов
|
|
272
|
+
*/
|
|
273
|
+
dataTestId?: string;
|
|
274
|
+
/**
|
|
275
|
+
* Контент (native prop)
|
|
276
|
+
*/
|
|
277
|
+
children?: React.ReactNode;
|
|
278
|
+
/**
|
|
279
|
+
* Количество строк (не поддерживает IE)
|
|
280
|
+
*/
|
|
281
|
+
rowLimit?: 1 | 2 | 3;
|
|
282
|
+
/**
|
|
283
|
+
* Показать скелетон
|
|
284
|
+
*/
|
|
285
|
+
showSkeleton?: boolean;
|
|
286
|
+
/**
|
|
287
|
+
* Пропы для скелетона
|
|
288
|
+
*/
|
|
289
|
+
skeletonProps?: TextSkeletonProps;
|
|
290
|
+
};
|
|
291
|
+
type TitleMobileProps = Omit<TitleProps, "defaultMargins">;
|
|
292
|
+
declare const Typography: {
|
|
293
|
+
Title: FC<TitleProps>;
|
|
294
|
+
Text: ForwardRefExoticComponent<TextProps & RefAttributes<TextElementType>>;
|
|
295
|
+
TitleResponsive: FC<TitleProps>;
|
|
296
|
+
TitleMobile: FC<TitleMobileProps>;
|
|
297
|
+
};
|
|
298
|
+
declare const typographyPresets: {
|
|
299
|
+
mobile: {
|
|
300
|
+
list: {
|
|
301
|
+
text: {
|
|
302
|
+
primary: {
|
|
303
|
+
tag: string;
|
|
304
|
+
view: string;
|
|
305
|
+
};
|
|
306
|
+
secondary: {
|
|
307
|
+
tag: string;
|
|
308
|
+
color: string;
|
|
309
|
+
view: string;
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
declare const TitleResponsive: FC<TitleProps>;
|
|
316
|
+
export { NavigationBar, BackArrowAddonProps, BackArrowAddon, Typography, typographyPresets, TitleResponsive };
|
|
317
|
+
export type { TitleProps, TextProps, Color, NavigationBarProps };
|
|
318
|
+
export * from "./useSkeleton-1b036d4b";
|
|
140
319
|
export * from "./Component-8b2c2707";
|
|
141
|
-
export type { NavigationBarProps };
|
|
@@ -1,3 +1,121 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { ChangeEvent, ElementType } from "react";
|
|
4
|
+
import { ButtonMobileProps } from "./mobile-511e54fa";
|
|
5
|
+
import { AdditionalMobileProps, BaseSelectChangePayload, BaseSelectProps } from "./shared-4cd3936b";
|
|
6
|
+
import { SelectModalMobileProps } from "./mobile-45dc17c6";
|
|
7
|
+
type InputAutocompleteMobileProps = Omit<BaseSelectProps, "OptionsList" | "Checkmark" | "onScroll" | "nativeSelect" | "autocomplete" | "valueRenderer" | "searchProps" | "showSearch" | "Search"> & {
|
|
8
|
+
/**
|
|
9
|
+
* Обработчик выбора
|
|
10
|
+
*/
|
|
11
|
+
onChange: (payload: string | BaseSelectChangePayload) => void;
|
|
12
|
+
/**
|
|
13
|
+
* Обработчик ввода фильтра.
|
|
14
|
+
*/
|
|
15
|
+
onFilter: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
16
|
+
/**
|
|
17
|
+
* Значение поля ввода
|
|
18
|
+
*/
|
|
19
|
+
value?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Значение фильтра.
|
|
22
|
+
*/
|
|
23
|
+
filter?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Обработчик нажатия на кнопку "Отмена".
|
|
26
|
+
*/
|
|
27
|
+
onCancel?: () => void;
|
|
28
|
+
/**
|
|
29
|
+
* Обработчик нажатия на крестик в инпуте фильтра.
|
|
30
|
+
*/
|
|
31
|
+
onClearFilter?: () => void;
|
|
32
|
+
/**
|
|
33
|
+
* Дополнительные пропсы компонента BottomSheet
|
|
34
|
+
*/
|
|
35
|
+
bottomSheetProps?: AdditionalMobileProps["bottomSheetProps"];
|
|
36
|
+
/**
|
|
37
|
+
* Дополнительные пропсы на слот под заголовком компонента BottomSheet
|
|
38
|
+
*/
|
|
39
|
+
bottomSheetHeaderAddonsProps?: Record<string, unknown>;
|
|
40
|
+
/**
|
|
41
|
+
* Дополнительные пропсы на кнопку "продолжить"
|
|
42
|
+
*/
|
|
43
|
+
continueButtonProps?: ButtonMobileProps;
|
|
44
|
+
/**
|
|
45
|
+
* Дополнительные пропсы на кнопку "отмена"
|
|
46
|
+
*/
|
|
47
|
+
cancelButtonProps?: ButtonMobileProps;
|
|
48
|
+
/**
|
|
49
|
+
* Кастомный инпут
|
|
50
|
+
*/
|
|
51
|
+
Input?: ElementType;
|
|
52
|
+
};
|
|
53
|
+
declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "onScroll" | "autocomplete" | "valueRenderer" | "Checkmark" | "nativeSelect" | "OptionsList" | "showSearch" | "Search" | "searchProps"> & {
|
|
54
|
+
onChange: (payload: string | BaseSelectChangePayload) => void;
|
|
55
|
+
onFilter: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
56
|
+
value?: string | undefined;
|
|
57
|
+
filter?: string | undefined;
|
|
58
|
+
onCancel?: (() => void) | undefined;
|
|
59
|
+
onClearFilter?: (() => void) | undefined;
|
|
60
|
+
bottomSheetProps?: AdditionalMobileProps["bottomSheetProps"];
|
|
61
|
+
bottomSheetHeaderAddonsProps?: Record<string, unknown> | undefined;
|
|
62
|
+
continueButtonProps?: ButtonMobileProps | undefined;
|
|
63
|
+
cancelButtonProps?: ButtonMobileProps | undefined;
|
|
64
|
+
Input?: React.ElementType<any> | undefined;
|
|
65
|
+
} & React.RefAttributes<unknown>>;
|
|
66
|
+
type InputAutocompleteModalMobileProps = Omit<SelectModalMobileProps, "OptionsList" | "Checkmark" | "onScroll" | "nativeSelect" | "autocomplete" | "valueRenderer"> & {
|
|
67
|
+
/**
|
|
68
|
+
* Обработчик выбора
|
|
69
|
+
*/
|
|
70
|
+
onChange: (payload: string | BaseSelectChangePayload) => void;
|
|
71
|
+
/**
|
|
72
|
+
* Обработчик ввода фильтра.
|
|
73
|
+
*/
|
|
74
|
+
onFilter: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
75
|
+
/**
|
|
76
|
+
* Значение поля ввода
|
|
77
|
+
*/
|
|
78
|
+
value?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Значение фильтра.
|
|
81
|
+
*/
|
|
82
|
+
filter?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Обработчик нажатия на кнопку "Отмена".
|
|
85
|
+
*/
|
|
86
|
+
onCancel?: () => void;
|
|
87
|
+
/**
|
|
88
|
+
* Обработчик нажатия на крестик в инпуте фильтра.
|
|
89
|
+
*/
|
|
90
|
+
onClearFilter?: () => void;
|
|
91
|
+
/**
|
|
92
|
+
* Дополнительные пропсы на слот под заголовком
|
|
93
|
+
*/
|
|
94
|
+
bottomAddonProps?: Record<string, unknown>;
|
|
95
|
+
/**
|
|
96
|
+
* Дополнительные пропсы на кнопку "продолжить"
|
|
97
|
+
*/
|
|
98
|
+
continueButtonProps?: ButtonMobileProps;
|
|
99
|
+
/**
|
|
100
|
+
* Дополнительные пропсы на кнопку "отмена"
|
|
101
|
+
*/
|
|
102
|
+
cancelButtonProps?: ButtonMobileProps;
|
|
103
|
+
/**
|
|
104
|
+
* Кастомный инпут
|
|
105
|
+
*/
|
|
106
|
+
Input?: ElementType;
|
|
107
|
+
};
|
|
108
|
+
declare const InputAutocompleteModalMobile: React.ForwardRefExoticComponent<Omit<SelectModalMobileProps, "onScroll" | "autocomplete" | "valueRenderer" | "Checkmark" | "nativeSelect" | "OptionsList"> & {
|
|
109
|
+
onChange: (payload: string | BaseSelectChangePayload) => void;
|
|
110
|
+
onFilter: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
111
|
+
value?: string | undefined;
|
|
112
|
+
filter?: string | undefined;
|
|
113
|
+
onCancel?: (() => void) | undefined;
|
|
114
|
+
onClearFilter?: (() => void) | undefined;
|
|
115
|
+
bottomAddonProps?: Record<string, unknown> | undefined;
|
|
116
|
+
continueButtonProps?: ButtonMobileProps | undefined;
|
|
117
|
+
cancelButtonProps?: ButtonMobileProps | undefined;
|
|
118
|
+
Input?: React.ElementType<any> | undefined;
|
|
119
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
120
|
+
export { InputAutocompleteMobileProps, InputAutocompleteMobile, InputAutocompleteModalMobileProps, InputAutocompleteModalMobile };
|
|
121
|
+
export * from "./Component-96988a65";
|
|
@@ -1,64 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { BaseSelectProps, OptionProps, OptionShape } from "./typings-0f4b9bed";
|
|
4
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
5
|
-
type useSelectWithLoadingProps = {
|
|
6
|
-
loading?: boolean;
|
|
7
|
-
visibleOptions?: BaseSelectProps["visibleOptions"];
|
|
8
|
-
Option?: React.FC<OptionProps>;
|
|
9
|
-
};
|
|
10
|
-
declare function useSelectWithLoading({ loading, visibleOptions, Option }: useSelectWithLoadingProps): {
|
|
11
|
-
Option: (props: OptionProps) => React.JSX.Element;
|
|
12
|
-
options: OptionShape[];
|
|
13
|
-
} | null;
|
|
14
|
-
type OptionsFetcherResponse = {
|
|
15
|
-
options: OptionShape[];
|
|
16
|
-
hasMore: boolean;
|
|
17
|
-
};
|
|
18
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
19
|
-
type useLazyLoadingProps = {
|
|
20
|
-
/** Количество элементов на "странице" */
|
|
21
|
-
limit?: number;
|
|
22
|
-
/** Начальный номер "страницы" */
|
|
23
|
-
initialOffset?: number;
|
|
24
|
-
/** Скелетон загружаемых элементов */
|
|
25
|
-
skeleton?: React.ReactNode;
|
|
26
|
-
/** Компонент пункта меню */
|
|
27
|
-
Option?: React.FC<OptionProps>;
|
|
28
|
-
/**
|
|
29
|
-
* Функция-загрузчик опций.
|
|
30
|
-
* @param offset - текущая страница
|
|
31
|
-
* @param limit - количество элементов на странице
|
|
32
|
-
* @param queryString - строчные данные, пробрасываемые для поиска из кастомного инпута, расположенного в заголовке OptionsList
|
|
33
|
-
* @returns Promise<{
|
|
34
|
-
* options - список опций следующей "страницы". Они аппендятся к предыдущим
|
|
35
|
-
* hasMore - указывает, есть ли еще незагруженные элементы (в случае false перестает загружать "следующую страницу")
|
|
36
|
-
* }>
|
|
37
|
-
*/
|
|
38
|
-
optionsFetcher(offset: number, limit: number, queryString?: string): Promise<OptionsFetcherResponse>;
|
|
39
|
-
};
|
|
40
|
-
declare function useLazyLoading({ limit, initialOffset, optionsFetcher, skeleton, Option }: useLazyLoadingProps): {
|
|
41
|
-
optionsProps: {
|
|
42
|
-
Option: (props: OptionProps) => React.JSX.Element;
|
|
43
|
-
options: OptionShape[];
|
|
44
|
-
optionsListProps: {
|
|
45
|
-
ref: React.RefObject<HTMLDivElement>;
|
|
46
|
-
inputProps: {
|
|
47
|
-
onChange: (event: React.ChangeEvent<HTMLInputElement>, payload: {
|
|
48
|
-
value: string;
|
|
49
|
-
}) => void;
|
|
50
|
-
value: string;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
onOpen: (payload: {
|
|
54
|
-
open?: boolean;
|
|
55
|
-
}) => void;
|
|
56
|
-
};
|
|
57
|
-
reset: () => void;
|
|
58
|
-
};
|
|
59
1
|
export * from "./index-ebda875c";
|
|
60
2
|
export * from "./Component-0f4b9bed";
|
|
61
|
-
export
|
|
3
|
+
export * from "./hook-ebda875c";
|
|
62
4
|
export * from "./hook-8abfea97";
|
|
63
5
|
export * from "./typings-0f4b9bed";
|
|
64
6
|
export * from "./utils-0f4b9bed";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components",
|
|
3
|
-
"version": "42.14.
|
|
3
|
+
"version": "42.14.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"react-canvas-pattern-lock": "^1.1.1",
|
|
82
82
|
"react-div-100vh": "^0.7.0",
|
|
83
83
|
"react-focus-lock": "^2.9.3",
|
|
84
|
-
"react-markdown": "
|
|
84
|
+
"react-markdown": "6.0.2",
|
|
85
85
|
"react-merge-refs": "^1.1.0",
|
|
86
86
|
"react-popper": "^2.3.0",
|
|
87
87
|
"react-swipeable": "^7.0.0",
|
package/pure-cell/component.js
CHANGED
|
@@ -10,7 +10,7 @@ require('./components/addon/component.js');
|
|
|
10
10
|
require('./components/amount/component.js');
|
|
11
11
|
require('./components/amount-title/component.js');
|
|
12
12
|
require('./components/category/component.js');
|
|
13
|
-
var components_content_component = require('./component-
|
|
13
|
+
var components_content_component = require('./component-0a51b9f9.js');
|
|
14
14
|
require('./components/footer/component.js');
|
|
15
15
|
require('./components/footer-button/component.js');
|
|
16
16
|
require('./components/footer-text/component.js');
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
3
3
|
require('react');
|
|
4
4
|
require('classnames');
|
|
5
5
|
require('../../../shared');
|
|
6
|
-
var components_content_component = require('../../component-
|
|
6
|
+
var components_content_component = require('../../component-0a51b9f9.js');
|
|
7
7
|
require('tslib');
|
|
8
8
|
require('react-merge-refs');
|
|
9
9
|
require('../../../comment');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../component-
|
|
1
|
+
export * from "../../component-0a51b9f9";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
|
|
3
|
-
var components_content_component = require('../../component-
|
|
3
|
+
var components_content_component = require('../../component-0a51b9f9.js');
|
|
4
4
|
require('tslib');
|
|
5
5
|
require('react');
|
|
6
6
|
require('react-merge-refs');
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
3
3
|
require('react');
|
|
4
4
|
require('classnames');
|
|
5
5
|
require('../../../shared');
|
|
6
|
-
var components_content_component = require('../../component-
|
|
6
|
+
var components_content_component = require('../../component-0a51b9f9.js');
|
|
7
7
|
require('tslib');
|
|
8
8
|
require('react-merge-refs');
|
|
9
9
|
require('../../../comment');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../component-
|
|
1
|
+
export * from "../../component-0a51b9f9";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
|
|
3
|
-
var components_content_component = require('../../component-
|
|
3
|
+
var components_content_component = require('../../component-0a51b9f9.js');
|
|
4
4
|
require('tslib');
|
|
5
5
|
require('react');
|
|
6
6
|
require('react-merge-refs');
|
|
@@ -4,7 +4,7 @@ require('react');
|
|
|
4
4
|
require('classnames');
|
|
5
5
|
require('../../../shared');
|
|
6
6
|
require('../../../typography');
|
|
7
|
-
var components_content_component = require('../../component-
|
|
7
|
+
var components_content_component = require('../../component-0a51b9f9.js');
|
|
8
8
|
require('tslib');
|
|
9
9
|
require('react-merge-refs');
|
|
10
10
|
require('../../../comment');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../component-
|
|
1
|
+
export * from "../../component-0a51b9f9";
|