@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,219 +1,146 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
/// <reference types="react-transition-group" />
|
|
3
3
|
import React from "react";
|
|
4
|
-
import { HTMLAttributes } from "react";
|
|
5
|
-
type
|
|
4
|
+
import { HTMLAttributes, ReactNode } from "react";
|
|
5
|
+
type StyleColors = {
|
|
6
|
+
default: {
|
|
7
|
+
[key: string]: string;
|
|
8
|
+
};
|
|
9
|
+
inverted: {
|
|
10
|
+
[key: string]: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
type BaseFormControlProps = HTMLAttributes<HTMLDivElement> & {
|
|
6
14
|
/**
|
|
7
|
-
*
|
|
15
|
+
* Растягивает компонент на ширину контейнера
|
|
8
16
|
*/
|
|
9
|
-
|
|
17
|
+
block?: boolean;
|
|
10
18
|
/**
|
|
11
|
-
*
|
|
19
|
+
* Размер компонента
|
|
12
20
|
*/
|
|
13
|
-
|
|
21
|
+
size?: "s" | "m" | "l" | "xl";
|
|
14
22
|
/**
|
|
15
23
|
* Набор цветов для компонента
|
|
16
24
|
*/
|
|
17
25
|
colors?: "default" | "inverted";
|
|
18
26
|
/**
|
|
19
|
-
*
|
|
27
|
+
* Заблокированное состояние
|
|
20
28
|
*/
|
|
21
|
-
|
|
29
|
+
disabled?: boolean;
|
|
22
30
|
/**
|
|
23
|
-
*
|
|
31
|
+
* Cостояние только для чтения
|
|
24
32
|
*/
|
|
25
|
-
|
|
33
|
+
readOnly?: boolean;
|
|
26
34
|
/**
|
|
27
|
-
*
|
|
35
|
+
* Заполненное состояние
|
|
28
36
|
*/
|
|
29
|
-
|
|
37
|
+
filled?: boolean;
|
|
30
38
|
/**
|
|
31
|
-
*
|
|
39
|
+
* Выбранное (фокус) состояние
|
|
32
40
|
*/
|
|
33
|
-
|
|
41
|
+
focused?: boolean;
|
|
34
42
|
/**
|
|
35
|
-
*
|
|
43
|
+
* Отображение ошибки
|
|
36
44
|
*/
|
|
37
|
-
|
|
45
|
+
error?: ReactNode | boolean;
|
|
38
46
|
/**
|
|
39
|
-
*
|
|
40
|
-
* Если true, то будет выполняться прокрутка к месту клика.
|
|
47
|
+
* Текст подсказки
|
|
41
48
|
*/
|
|
42
|
-
|
|
49
|
+
hint?: ReactNode;
|
|
43
50
|
/**
|
|
44
|
-
*
|
|
51
|
+
* Лейбл компонента
|
|
45
52
|
*/
|
|
46
|
-
|
|
53
|
+
label?: ReactNode;
|
|
47
54
|
/**
|
|
48
|
-
*
|
|
55
|
+
* Вид лейбла внутри / снаружи
|
|
49
56
|
*/
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
options: any;
|
|
105
|
-
classNames: any;
|
|
106
|
-
axis: {
|
|
107
|
-
x: {
|
|
108
|
-
scrollOffsetAttr: string;
|
|
109
|
-
sizeAttr: string;
|
|
110
|
-
scrollSizeAttr: string;
|
|
111
|
-
offsetSizeAttr: string;
|
|
112
|
-
offsetAttr: string;
|
|
113
|
-
overflowAttr: string;
|
|
114
|
-
dragOffset: number;
|
|
115
|
-
isOverflowing: boolean;
|
|
116
|
-
isVisible: boolean;
|
|
117
|
-
forceVisible: boolean;
|
|
118
|
-
track: {};
|
|
119
|
-
scrollbar: {};
|
|
120
|
-
};
|
|
121
|
-
y: {
|
|
122
|
-
scrollOffsetAttr: string;
|
|
123
|
-
sizeAttr: string;
|
|
124
|
-
scrollSizeAttr: string;
|
|
125
|
-
offsetSizeAttr: string;
|
|
126
|
-
offsetAttr: string;
|
|
127
|
-
overflowAttr: string;
|
|
128
|
-
dragOffset: number;
|
|
129
|
-
isOverflowing: boolean;
|
|
130
|
-
isVisible: boolean;
|
|
131
|
-
forceVisible: boolean;
|
|
132
|
-
track: {};
|
|
133
|
-
scrollbar: {};
|
|
134
|
-
};
|
|
57
|
+
labelView?: "inner" | "outer";
|
|
58
|
+
/**
|
|
59
|
+
* Слот слева
|
|
60
|
+
*/
|
|
61
|
+
leftAddons?: ReactNode;
|
|
62
|
+
/**
|
|
63
|
+
* Слот справа
|
|
64
|
+
*/
|
|
65
|
+
rightAddons?: ReactNode;
|
|
66
|
+
/**
|
|
67
|
+
* Слот под полем
|
|
68
|
+
*/
|
|
69
|
+
bottomAddons?: ReactNode;
|
|
70
|
+
/**
|
|
71
|
+
* Дополнительный класс
|
|
72
|
+
*/
|
|
73
|
+
className?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Дополнительный класс для поля
|
|
76
|
+
*/
|
|
77
|
+
fieldClassName?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Дополнительный класс для поля
|
|
80
|
+
*/
|
|
81
|
+
inputWrapperClassName?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Дополнительный класс для лейбла
|
|
84
|
+
*/
|
|
85
|
+
labelClassName?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Дополнительный класс для аддонов
|
|
88
|
+
*/
|
|
89
|
+
addonsClassName?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Свойства для обертки левых аддонов
|
|
92
|
+
*/
|
|
93
|
+
leftAddonsProps?: HTMLAttributes<HTMLDivElement>;
|
|
94
|
+
/**
|
|
95
|
+
* Свойства для обертки правых аддонов
|
|
96
|
+
*/
|
|
97
|
+
rightAddonsProps?: HTMLAttributes<HTMLDivElement>;
|
|
98
|
+
/**
|
|
99
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
100
|
+
*/
|
|
101
|
+
dataTestId?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Компонент поля (инпут, textarea и пр.)
|
|
104
|
+
*/
|
|
105
|
+
children?: ReactNode;
|
|
106
|
+
/**
|
|
107
|
+
* Основные стили компонента.
|
|
108
|
+
*/
|
|
109
|
+
styles: {
|
|
110
|
+
[key: string]: string;
|
|
135
111
|
};
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
onMouseEnter: () => void;
|
|
168
|
-
mouseX: any;
|
|
169
|
-
mouseY: any;
|
|
170
|
-
onMouseMoveForAxis(axis?: string): void;
|
|
171
|
-
onMouseLeave: () => void;
|
|
172
|
-
onMouseLeaveForAxis(axis?: string): void;
|
|
173
|
-
showScrollbar(axis?: string): void;
|
|
174
|
-
onPointerEvent: (e: any) => void;
|
|
175
|
-
onDragStart(e: any, axis?: string): void;
|
|
176
|
-
draggedAxis: string | undefined;
|
|
177
|
-
drag: (e: any) => void;
|
|
178
|
-
onEndDrag: (e: any) => void;
|
|
179
|
-
preventClick: (e: any) => void;
|
|
180
|
-
onTrackClick(e: any, axis?: string): void;
|
|
181
|
-
getContentElement(): any;
|
|
182
|
-
getScrollElement(): any;
|
|
183
|
-
getScrollbarWidth(): any;
|
|
184
|
-
removeListeners(): void;
|
|
185
|
-
unMount(): void;
|
|
186
|
-
isWithinBounds(bbox: any): boolean;
|
|
187
|
-
findChild(el: any, query: any): any;
|
|
188
|
-
}
|
|
189
|
-
declare function memoize(func: Function, resolver?: Function | undefined): Function;
|
|
190
|
-
declare namespace memoize$0 {
|
|
191
|
-
export { MapCache as Cache };
|
|
192
|
-
}
|
|
193
|
-
declare function MapCache(entries?: any[] | undefined): void;
|
|
194
|
-
declare class MapCache {
|
|
195
|
-
private constructor();
|
|
196
|
-
clear: typeof mapCacheClear;
|
|
197
|
-
delete: typeof mapCacheDelete;
|
|
198
|
-
get: typeof mapCacheGet;
|
|
199
|
-
has: typeof mapCacheHas;
|
|
200
|
-
set: typeof mapCacheSet;
|
|
201
|
-
}
|
|
202
|
-
declare function mapCacheClear(): void;
|
|
203
|
-
declare class mapCacheClear {
|
|
204
|
-
__data__: {
|
|
205
|
-
hash: Hash;
|
|
206
|
-
map: any;
|
|
207
|
-
string: Hash;
|
|
112
|
+
/**
|
|
113
|
+
* Стили компонента для default и inverted режима.
|
|
114
|
+
*/
|
|
115
|
+
colorStyles?: StyleColors;
|
|
116
|
+
};
|
|
117
|
+
declare const BaseFormControl: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
118
|
+
block?: boolean | undefined;
|
|
119
|
+
size?: "s" | "m" | "l" | "xl" | undefined;
|
|
120
|
+
colors?: "default" | "inverted" | undefined;
|
|
121
|
+
disabled?: boolean | undefined;
|
|
122
|
+
readOnly?: boolean | undefined;
|
|
123
|
+
filled?: boolean | undefined;
|
|
124
|
+
focused?: boolean | undefined;
|
|
125
|
+
error?: ReactNode | boolean;
|
|
126
|
+
hint?: ReactNode;
|
|
127
|
+
label?: ReactNode;
|
|
128
|
+
labelView?: "inner" | "outer" | undefined;
|
|
129
|
+
leftAddons?: ReactNode;
|
|
130
|
+
rightAddons?: ReactNode;
|
|
131
|
+
bottomAddons?: ReactNode;
|
|
132
|
+
className?: string | undefined;
|
|
133
|
+
fieldClassName?: string | undefined;
|
|
134
|
+
inputWrapperClassName?: string | undefined;
|
|
135
|
+
labelClassName?: string | undefined;
|
|
136
|
+
addonsClassName?: string | undefined;
|
|
137
|
+
leftAddonsProps?: React.HTMLAttributes<HTMLDivElement> | undefined;
|
|
138
|
+
rightAddonsProps?: React.HTMLAttributes<HTMLDivElement> | undefined;
|
|
139
|
+
dataTestId?: string | undefined;
|
|
140
|
+
children?: ReactNode;
|
|
141
|
+
styles: {
|
|
142
|
+
[key: string]: string;
|
|
208
143
|
};
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
declare function mapCacheHas(key: string): boolean;
|
|
213
|
-
declare function mapCacheSet(key: string, value: any): Object;
|
|
214
|
-
declare var canUseDOM: boolean;
|
|
215
|
-
declare function scrollbarWidth(el: any): any;
|
|
216
|
-
declare function getElementWindow(element: any): any;
|
|
217
|
-
declare function getElementDocument(element: any): any;
|
|
218
|
-
declare function getOptions(obj: any): unknown;
|
|
219
|
-
export { memoize as default, ScrollbarProps, Scrollbar, getElementWindow, getElementDocument, getOptions };
|
|
144
|
+
colorStyles?: StyleColors | undefined;
|
|
145
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
146
|
+
export { StyleColors, BaseFormControlProps, BaseFormControl };
|
|
@@ -1,282 +1,10 @@
|
|
|
1
|
-
/// <reference types="react-transition-group" />
|
|
2
1
|
/// <reference types="react" />
|
|
3
2
|
import React from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { TransitionProps } from "react-transition-group/Transition";
|
|
7
|
-
import { BaseModalProps } from "./index-bdb4c6b9";
|
|
3
|
+
import { FC, ReactNode, RefObject } from "react";
|
|
4
|
+
import { BottomSheetProps } from "./types-72dda473";
|
|
8
5
|
import { NavigationBarProps } from "./index-c76d6398";
|
|
9
|
-
import { BackgroundColorType } from "./index-72dda473";
|
|
10
6
|
import { SwipeableHandlers } from "react-swipeable";
|
|
11
7
|
import { BackdropProps } from "./index-ebda875c";
|
|
12
|
-
type BottomSheetTitleAlign = "center" | "left";
|
|
13
|
-
type BottomSheetProps = {
|
|
14
|
-
/**
|
|
15
|
-
* Контент
|
|
16
|
-
*/
|
|
17
|
-
children?: ReactNode;
|
|
18
|
-
/**
|
|
19
|
-
* Управление видимостью
|
|
20
|
-
*/
|
|
21
|
-
open: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Заголовок
|
|
24
|
-
*/
|
|
25
|
-
title?: ReactNode;
|
|
26
|
-
/**
|
|
27
|
-
* Размер заголовка
|
|
28
|
-
*/
|
|
29
|
-
titleSize?: NavigationBarProps["titleSize"];
|
|
30
|
-
/**
|
|
31
|
-
* Подзаголовок.
|
|
32
|
-
*/
|
|
33
|
-
subtitle?: NavigationBarProps["subtitle"];
|
|
34
|
-
/**
|
|
35
|
-
* Кнопка действия (обычно, это кнопка закрытия)
|
|
36
|
-
*/
|
|
37
|
-
actionButton?: ReactNode;
|
|
38
|
-
/**
|
|
39
|
-
* Нода, компонент или функция возвращающая их
|
|
40
|
-
*
|
|
41
|
-
* Контейнер к которому будут добавляться порталы
|
|
42
|
-
*/
|
|
43
|
-
container?: BaseModalProps["container"];
|
|
44
|
-
/**
|
|
45
|
-
* Рендерить ли в контейнер через портал.
|
|
46
|
-
*/
|
|
47
|
-
usePortal?: BaseModalProps["usePortal"];
|
|
48
|
-
/**
|
|
49
|
-
* Дополнительный класс
|
|
50
|
-
*/
|
|
51
|
-
className?: string;
|
|
52
|
-
/**
|
|
53
|
-
* Дополнительный класс
|
|
54
|
-
*/
|
|
55
|
-
contentClassName?: string;
|
|
56
|
-
/**
|
|
57
|
-
* Дополнительные пропсы на контейнер.
|
|
58
|
-
*/
|
|
59
|
-
containerProps?: HTMLAttributes<HTMLDivElement>;
|
|
60
|
-
/**
|
|
61
|
-
* Дополнительный класс
|
|
62
|
-
*/
|
|
63
|
-
containerClassName?: string;
|
|
64
|
-
/**
|
|
65
|
-
* Цвет фона
|
|
66
|
-
*/
|
|
67
|
-
backgroundColor?: Extract<BackgroundColorType, "primary" | "secondary">;
|
|
68
|
-
/**
|
|
69
|
-
* Дополнительный класс шапки
|
|
70
|
-
*/
|
|
71
|
-
headerClassName?: string;
|
|
72
|
-
/**
|
|
73
|
-
* Дополнительный класс футера
|
|
74
|
-
*/
|
|
75
|
-
footerClassName?: string;
|
|
76
|
-
/**
|
|
77
|
-
* Дополнительный класс для аддонов
|
|
78
|
-
*/
|
|
79
|
-
addonClassName?: string;
|
|
80
|
-
/**
|
|
81
|
-
* Дополнительный класс для компонента крестика
|
|
82
|
-
*/
|
|
83
|
-
closerClassName?: string;
|
|
84
|
-
/**
|
|
85
|
-
* Дополнительный класс для компонента стрелки назад
|
|
86
|
-
*/
|
|
87
|
-
backerClassName?: string;
|
|
88
|
-
/**
|
|
89
|
-
* Дополнительный класс для компонента модального окна
|
|
90
|
-
*/
|
|
91
|
-
modalClassName?: string;
|
|
92
|
-
/**
|
|
93
|
-
* Дополнительный класс для обертки модального окна
|
|
94
|
-
*/
|
|
95
|
-
modalWrapperClassName?: string;
|
|
96
|
-
/**
|
|
97
|
-
* Дополнительный класс для маркера
|
|
98
|
-
*/
|
|
99
|
-
swipeableMarkerClassName?: string;
|
|
100
|
-
/**
|
|
101
|
-
* Кастомный маркер
|
|
102
|
-
*/
|
|
103
|
-
swipeableMarker?: ReactElement;
|
|
104
|
-
/**
|
|
105
|
-
* TransitionProps, прокидываются в компонент CSSTransitionProps.
|
|
106
|
-
*/
|
|
107
|
-
transitionProps?: Partial<TransitionProps>;
|
|
108
|
-
/**
|
|
109
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
110
|
-
*/
|
|
111
|
-
dataTestId?: string;
|
|
112
|
-
/**
|
|
113
|
-
* z-index компонента
|
|
114
|
-
*/
|
|
115
|
-
zIndex?: number;
|
|
116
|
-
/**
|
|
117
|
-
* Будет ли свайпаться шторка
|
|
118
|
-
* @default true
|
|
119
|
-
*/
|
|
120
|
-
swipeable?: boolean;
|
|
121
|
-
/**
|
|
122
|
-
* Будет ли свайпаться контент
|
|
123
|
-
*/
|
|
124
|
-
swipeableContent?: boolean;
|
|
125
|
-
/**
|
|
126
|
-
* Порог свайпа
|
|
127
|
-
*/
|
|
128
|
-
swipeThreshold?: number;
|
|
129
|
-
/**
|
|
130
|
-
* Слот слева
|
|
131
|
-
*/
|
|
132
|
-
leftAddons?: ReactNode;
|
|
133
|
-
/**
|
|
134
|
-
* Слот справа
|
|
135
|
-
*/
|
|
136
|
-
rightAddons?: ReactNode;
|
|
137
|
-
/**
|
|
138
|
-
* Слот снизу
|
|
139
|
-
*/
|
|
140
|
-
bottomAddons?: ReactNode;
|
|
141
|
-
/**
|
|
142
|
-
* Наличие компонента крестика
|
|
143
|
-
*/
|
|
144
|
-
hasCloser?: boolean;
|
|
145
|
-
/**
|
|
146
|
-
* Наличие компонента стрелки назад
|
|
147
|
-
*/
|
|
148
|
-
hasBacker?: boolean;
|
|
149
|
-
/**
|
|
150
|
-
* Выравнивание заголовка
|
|
151
|
-
*/
|
|
152
|
-
titleAlign?: BottomSheetTitleAlign;
|
|
153
|
-
/**
|
|
154
|
-
* Фиксирует шапку
|
|
155
|
-
*/
|
|
156
|
-
stickyHeader?: boolean;
|
|
157
|
-
/**
|
|
158
|
-
* Фиксирует футер
|
|
159
|
-
*/
|
|
160
|
-
stickyFooter?: boolean;
|
|
161
|
-
/**
|
|
162
|
-
* Высота шторки
|
|
163
|
-
*/
|
|
164
|
-
initialHeight?: "default" | "full";
|
|
165
|
-
/**
|
|
166
|
-
* Будет ли виден оверлэй
|
|
167
|
-
*/
|
|
168
|
-
hideOverlay?: boolean;
|
|
169
|
-
/**
|
|
170
|
-
* Будет ли видна шапка
|
|
171
|
-
*/
|
|
172
|
-
hideHeader?: boolean;
|
|
173
|
-
/**
|
|
174
|
-
* Будет ли обрезан заголовок
|
|
175
|
-
*/
|
|
176
|
-
trimTitle?: boolean;
|
|
177
|
-
/**
|
|
178
|
-
* Запретить закрытие шторки кликом на оверлэй
|
|
179
|
-
*/
|
|
180
|
-
disableOverlayClick?: boolean;
|
|
181
|
-
/**
|
|
182
|
-
* Отключает блокировку скролла при открытии модального окна
|
|
183
|
-
*/
|
|
184
|
-
disableBlockingScroll?: boolean;
|
|
185
|
-
/**
|
|
186
|
-
* Отключает ловушку фокуса
|
|
187
|
-
*/
|
|
188
|
-
disableFocusLock?: boolean;
|
|
189
|
-
/**
|
|
190
|
-
* @deprecated данный проп больше не используется, временно оставлен для обратной совместимости
|
|
191
|
-
* Не анимировать шторку при изменении размера вьюпорта
|
|
192
|
-
*/
|
|
193
|
-
ignoreScreenChange?: boolean;
|
|
194
|
-
/**
|
|
195
|
-
* Свойства для Бэкдропа
|
|
196
|
-
*/
|
|
197
|
-
backdropProps?: BaseModalProps["backdropProps"];
|
|
198
|
-
/**
|
|
199
|
-
* Реф на контейнер, в котором происходит скролл
|
|
200
|
-
*/
|
|
201
|
-
scrollableContainerRef?: RefObject<HTMLElement>;
|
|
202
|
-
/**
|
|
203
|
-
* Реф для управления компонентом.
|
|
204
|
-
*/
|
|
205
|
-
bottomSheetInstanceRef?: RefObject<{
|
|
206
|
-
scrollToArea: (idx: number) => void;
|
|
207
|
-
}>;
|
|
208
|
-
/**
|
|
209
|
-
* Реф на контейнер, в котором находится шторка
|
|
210
|
-
*/
|
|
211
|
-
sheetContainerRef?: RefObject<HTMLElement>;
|
|
212
|
-
/**
|
|
213
|
-
* Магнитные области видимой высоты шторки.
|
|
214
|
-
* Можно использовать значения в пикселях - 10(число), либо в процентах - 10%(строка).
|
|
215
|
-
* По-умолчанию -[0, window.innerHeight - '24px']
|
|
216
|
-
* массив должен состоять минимум из 2 элементов
|
|
217
|
-
*/
|
|
218
|
-
magneticAreas?: Array<number | string>;
|
|
219
|
-
/**
|
|
220
|
-
* Индекс точки из magneticAreas, к которому нужно примагнититься при первом открытии шторки.
|
|
221
|
-
*/
|
|
222
|
-
initialActiveAreaIndex?: number;
|
|
223
|
-
/**
|
|
224
|
-
* Отключает скролл контентной области.
|
|
225
|
-
*/
|
|
226
|
-
scrollLocked?: boolean;
|
|
227
|
-
/**
|
|
228
|
-
* Скрыть скроллбар внутри шторки
|
|
229
|
-
*/
|
|
230
|
-
hideScrollbar?: boolean;
|
|
231
|
-
/**
|
|
232
|
-
* Верхний отступ шторки, если она открыта на максимальную высоту
|
|
233
|
-
*/
|
|
234
|
-
headerOffset?: number;
|
|
235
|
-
/**
|
|
236
|
-
* Содержимое bottom-sheet всегда в DOM
|
|
237
|
-
*/
|
|
238
|
-
keepMounted?: boolean;
|
|
239
|
-
/**
|
|
240
|
-
* Отключает автоматический перевод фокуса на bottom-sheet при открытии
|
|
241
|
-
*/
|
|
242
|
-
disableAutoFocus?: boolean;
|
|
243
|
-
/**
|
|
244
|
-
* Отключает восстановление фокуса на предыдущем элементе после закрытия bottom-sheet
|
|
245
|
-
*/
|
|
246
|
-
disableRestoreFocus?: boolean;
|
|
247
|
-
/**
|
|
248
|
-
* Отключает вызов `onClose` при нажатии Escape
|
|
249
|
-
*/
|
|
250
|
-
disableEscapeKeyDown?: boolean;
|
|
251
|
-
/**
|
|
252
|
-
* Обработчик закрытия
|
|
253
|
-
*/
|
|
254
|
-
onClose: () => void;
|
|
255
|
-
/**
|
|
256
|
-
* Обработчик нажатия на стрелку назад
|
|
257
|
-
*/
|
|
258
|
-
onBack?: () => void;
|
|
259
|
-
/**
|
|
260
|
-
* Вызывается в начале анимации притягивания к одной из `magneticAreas`
|
|
261
|
-
*/
|
|
262
|
-
onMagnetize?: (index: number) => void;
|
|
263
|
-
/**
|
|
264
|
-
* Вызывается после окончания анимации притягивания
|
|
265
|
-
*/
|
|
266
|
-
onMagnetizeEnd?: (index: number) => void;
|
|
267
|
-
/**
|
|
268
|
-
* Вызывается при изменении положения шторки
|
|
269
|
-
*/
|
|
270
|
-
onOffsetChange?: (offset: number, percent: number) => void;
|
|
271
|
-
/**
|
|
272
|
-
* Вызывается в начале свайпа
|
|
273
|
-
*/
|
|
274
|
-
onSwipeStart?: (event: HandledEvents) => void;
|
|
275
|
-
/**
|
|
276
|
-
* Вызывается после окончания свайпа
|
|
277
|
-
*/
|
|
278
|
-
onSwipeEnd?: (event: HandledEvents | null) => void;
|
|
279
|
-
};
|
|
280
8
|
declare const BottomSheet: React.ForwardRefExoticComponent<BottomSheetProps & React.RefAttributes<HTMLDivElement>>;
|
|
281
9
|
declare const TIMEOUT = 500;
|
|
282
10
|
declare const SWIPE_VELOCITY = 0.4;
|
|
@@ -321,4 +49,4 @@ type SwipeableBackdropProps = BackdropProps & {
|
|
|
321
49
|
};
|
|
322
50
|
declare const SwipeableBackdrop: FC<SwipeableBackdropProps>;
|
|
323
51
|
export { BottomSheet, TIMEOUT, SWIPE_VELOCITY, MARKER_HEIGHT, CLOSE_OFFSET, SCROLL_OFFSET, HEADER_OFFSET, convertPercentToNumber, FooterProps, Footer, HeaderProps, Header, SwipeableBackdropProps, SwipeableBackdrop };
|
|
324
|
-
export type { BottomSheetProps, BottomSheetTitleAlign };
|
|
52
|
+
export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-72dda473";
|