@alfalab/core-components-custom-picker-button 1.0.7 → 2.0.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/{esm/Component-3e68f8db.d.ts → Component-4cd3936b.d.ts} +2 -2
- package/{cssm/Component-3885b0d7.d.ts → Component-50136800.d.ts} +5 -4
- package/Component-5e1b8383.d.ts +21 -4
- package/Component-63dec22f.d.ts +167 -0
- package/Component-72dda473.d.ts +53 -0
- package/Component-8b2c2707.d.ts +12 -0
- package/Component-9211a437.d.ts +38 -0
- package/Component-c76d6398.d.ts +5 -0
- package/Component.desktop-2e2b2125.d.ts +6 -0
- package/Component.desktop-785df74d.d.ts +6 -0
- package/Component.desktop.d.ts +2 -1
- package/Component.desktop.js +2 -1
- package/Component.mobile-06ffd24b.d.ts +41 -0
- package/Component.mobile-755fbaa3.d.ts +6 -0
- package/Component.mobile-d446ae02.d.ts +23 -0
- package/Component.mobile-d7e9f69d.d.ts +6 -0
- package/{cssm/Component.mobile-b2c0420d.d.ts → Component.mobile-f1f15074.d.ts} +1 -2
- package/Component.mobile.d.ts +2 -1
- package/Component.mobile.js +1 -1
- package/Component.modal.mobile-5e1b8383.d.ts +60 -0
- package/Component.responsive-785df74d.d.ts +26 -0
- package/Component.responsive.d.ts +3 -3
- package/Component.responsive.js +1 -1
- package/{esm/component-3885b0d7.d.ts → component-50136800.d.ts} +9 -8
- package/cssm/{Component-3e68f8db.d.ts → Component-4cd3936b.d.ts} +2 -2
- package/{Component-3885b0d7.d.ts → cssm/Component-50136800.d.ts} +5 -4
- package/cssm/Component-5e1b8383.d.ts +21 -4
- package/cssm/Component-63dec22f.d.ts +167 -0
- package/cssm/Component-72dda473.d.ts +53 -0
- package/cssm/Component-8b2c2707.d.ts +12 -0
- package/cssm/Component-9211a437.d.ts +38 -0
- package/cssm/Component-c76d6398.d.ts +5 -0
- package/cssm/Component.desktop-2e2b2125.d.ts +6 -0
- package/cssm/Component.desktop-785df74d.d.ts +6 -0
- package/cssm/Component.desktop.d.ts +2 -1
- package/cssm/Component.desktop.js +2 -1
- package/cssm/Component.mobile-06ffd24b.d.ts +41 -0
- package/cssm/Component.mobile-755fbaa3.d.ts +6 -0
- package/cssm/Component.mobile-d446ae02.d.ts +23 -0
- package/cssm/Component.mobile-d7e9f69d.d.ts +6 -0
- package/{esm/Component.mobile-b2c0420d.d.ts → cssm/Component.mobile-f1f15074.d.ts} +1 -2
- package/cssm/Component.mobile.d.ts +2 -1
- package/cssm/Component.mobile.js +1 -1
- package/cssm/Component.modal.mobile-5e1b8383.d.ts +60 -0
- package/cssm/Component.responsive-785df74d.d.ts +26 -0
- package/cssm/Component.responsive.d.ts +3 -3
- package/cssm/Component.responsive.js +1 -1
- package/cssm/{component-3885b0d7.d.ts → component-50136800.d.ts} +9 -8
- package/cssm/desktop-2e2b2125.d.ts +2 -0
- package/{Component-2aef4eba.d.ts → cssm/desktop-d446ae02.d.ts} +8 -19
- package/cssm/desktop.d.ts +1 -1
- package/cssm/desktop.js +1 -1
- package/cssm/field/Component.d.ts +1 -2
- package/cssm/field/Component.js +2 -2
- package/cssm/field/index.js +1 -1
- package/cssm/{hook-3e68f8db.d.ts → hook-9ea9e32c.d.ts} +10 -8
- package/cssm/index-50136800.d.ts +11 -0
- package/{esm/index-425c8522.d.ts → cssm/index-72dda473.d.ts} +7 -1
- package/cssm/index-8b2c2707.d.ts +6 -0
- package/cssm/index-c44170fe.d.ts +23 -0
- package/cssm/index-c76d6398.d.ts +2 -0
- package/cssm/{index-701e77da.d.ts → index-df3978fd.d.ts} +1 -1
- package/cssm/index-ebda875c.d.ts +1 -1
- package/cssm/index-f12ee135.d.ts +3 -3
- package/cssm/index.d.ts +2 -2
- package/cssm/index.js +1 -1
- package/cssm/mobile-755fbaa3.d.ts +2 -0
- package/cssm/mobile-96988a65.d.ts +2 -0
- package/cssm/mobile.d.ts +1 -1
- package/cssm/mobile.js +1 -1
- package/{index-3e68f8db.d.ts → cssm/shared-4cd3936b.d.ts} +8 -14
- package/cssm/types-4480ac4f.d.ts +3 -0
- package/{esm/types-3441be57.d.ts → cssm/types-d9f9bbcc.d.ts} +32 -12
- package/cssm/typings-5e1b8383.d.ts +2 -1
- package/cssm/typings-9211a437.d.ts +95 -0
- package/cssm/{utils-b64479aa.d.ts → utils-49cc3c24.d.ts} +3 -3
- package/desktop-2e2b2125.d.ts +2 -0
- package/{cssm/Component-2aef4eba.d.ts → desktop-d446ae02.d.ts} +8 -19
- package/desktop.d.ts +1 -1
- package/desktop.js +1 -1
- package/{Component-3e68f8db.d.ts → esm/Component-4cd3936b.d.ts} +2 -2
- package/{modern/Component-3885b0d7.d.ts → esm/Component-50136800.d.ts} +5 -4
- package/esm/Component-5e1b8383.d.ts +21 -4
- package/esm/Component-63dec22f.d.ts +167 -0
- package/esm/Component-72dda473.d.ts +53 -0
- package/esm/Component-8b2c2707.d.ts +12 -0
- package/esm/Component-9211a437.d.ts +38 -0
- package/esm/Component-c76d6398.d.ts +5 -0
- package/esm/Component.desktop-2e2b2125.d.ts +6 -0
- package/esm/Component.desktop-785df74d.d.ts +6 -0
- package/esm/Component.desktop.d.ts +2 -1
- package/esm/Component.desktop.js +2 -1
- package/esm/Component.mobile-06ffd24b.d.ts +41 -0
- package/esm/Component.mobile-755fbaa3.d.ts +6 -0
- package/esm/Component.mobile-d446ae02.d.ts +23 -0
- package/esm/Component.mobile-d7e9f69d.d.ts +6 -0
- package/{Component.mobile-b2c0420d.d.ts → esm/Component.mobile-f1f15074.d.ts} +1 -2
- package/esm/Component.mobile.d.ts +2 -1
- package/esm/Component.mobile.js +1 -1
- package/esm/Component.modal.mobile-5e1b8383.d.ts +60 -0
- package/esm/Component.responsive-785df74d.d.ts +26 -0
- package/esm/Component.responsive.d.ts +3 -3
- package/esm/Component.responsive.js +1 -1
- package/{modern/component-3885b0d7.d.ts → esm/component-50136800.d.ts} +9 -8
- package/esm/desktop-2e2b2125.d.ts +2 -0
- package/esm/{Component-2aef4eba.d.ts → desktop-d446ae02.d.ts} +8 -19
- package/esm/desktop.d.ts +1 -1
- package/esm/desktop.js +1 -1
- package/esm/field/Component.d.ts +1 -2
- package/esm/field/Component.js +2 -2
- package/esm/field/index.css +5 -5
- package/esm/field/index.js +1 -1
- package/{hook-3e68f8db.d.ts → esm/hook-9ea9e32c.d.ts} +10 -8
- package/esm/index-50136800.d.ts +11 -0
- package/{cssm/index-425c8522.d.ts → esm/index-72dda473.d.ts} +7 -1
- package/esm/index-8b2c2707.d.ts +6 -0
- package/esm/index-c44170fe.d.ts +23 -0
- package/esm/index-c76d6398.d.ts +2 -0
- package/esm/{index-701e77da.d.ts → index-df3978fd.d.ts} +1 -1
- package/esm/index-ebda875c.d.ts +1 -1
- package/esm/index-f12ee135.d.ts +3 -3
- package/esm/index.d.ts +2 -2
- package/esm/index.js +1 -1
- package/esm/mobile-755fbaa3.d.ts +2 -0
- package/esm/mobile-96988a65.d.ts +2 -0
- package/esm/mobile.d.ts +1 -1
- package/esm/mobile.js +1 -1
- package/{cssm/index-3e68f8db.d.ts → esm/shared-4cd3936b.d.ts} +8 -14
- package/esm/types-4480ac4f.d.ts +3 -0
- package/{modern/types-3441be57.d.ts → esm/types-d9f9bbcc.d.ts} +32 -12
- package/esm/typings-5e1b8383.d.ts +2 -1
- package/esm/typings-9211a437.d.ts +95 -0
- package/esm/{utils-b64479aa.d.ts → utils-49cc3c24.d.ts} +3 -3
- package/field/Component.d.ts +1 -2
- package/field/Component.js +3 -3
- package/field/index.css +5 -5
- package/field/index.js +1 -1
- package/{modern/hook-3e68f8db.d.ts → hook-9ea9e32c.d.ts} +10 -8
- package/index-50136800.d.ts +11 -0
- package/{index-425c8522.d.ts → index-72dda473.d.ts} +7 -1
- package/index-8b2c2707.d.ts +6 -0
- package/index-c44170fe.d.ts +23 -0
- package/index-c76d6398.d.ts +2 -0
- package/{index-701e77da.d.ts → index-df3978fd.d.ts} +1 -1
- package/index-ebda875c.d.ts +1 -1
- package/index-f12ee135.d.ts +3 -3
- package/index.d.ts +2 -2
- package/index.js +1 -1
- package/mobile-755fbaa3.d.ts +2 -0
- package/mobile-96988a65.d.ts +2 -0
- package/mobile.d.ts +1 -1
- package/mobile.js +1 -1
- package/modern/{Component-3e68f8db.d.ts → Component-4cd3936b.d.ts} +2 -2
- package/{esm/Component-3885b0d7.d.ts → modern/Component-50136800.d.ts} +5 -4
- package/modern/Component-5e1b8383.d.ts +21 -4
- package/modern/Component-63dec22f.d.ts +167 -0
- package/modern/Component-72dda473.d.ts +53 -0
- package/modern/Component-8b2c2707.d.ts +12 -0
- package/modern/Component-9211a437.d.ts +38 -0
- package/modern/Component-c76d6398.d.ts +5 -0
- package/modern/Component.desktop-2e2b2125.d.ts +6 -0
- package/modern/Component.desktop-785df74d.d.ts +6 -0
- package/modern/Component.desktop.d.ts +2 -1
- package/modern/Component.desktop.js +2 -1
- package/modern/Component.mobile-06ffd24b.d.ts +41 -0
- package/modern/Component.mobile-755fbaa3.d.ts +6 -0
- package/modern/Component.mobile-d446ae02.d.ts +23 -0
- package/modern/Component.mobile-d7e9f69d.d.ts +6 -0
- package/modern/{Component.mobile-b2c0420d.d.ts → Component.mobile-f1f15074.d.ts} +1 -2
- package/modern/Component.mobile.d.ts +2 -1
- package/modern/Component.mobile.js +1 -1
- package/modern/Component.modal.mobile-5e1b8383.d.ts +60 -0
- package/modern/Component.responsive-785df74d.d.ts +26 -0
- package/modern/Component.responsive.d.ts +3 -3
- package/modern/Component.responsive.js +1 -1
- package/{component-3885b0d7.d.ts → modern/component-50136800.d.ts} +9 -8
- package/modern/desktop-2e2b2125.d.ts +2 -0
- package/modern/{Component-2aef4eba.d.ts → desktop-d446ae02.d.ts} +8 -19
- package/modern/desktop.d.ts +1 -1
- package/modern/desktop.js +1 -1
- package/modern/field/Component.d.ts +1 -2
- package/modern/field/Component.js +2 -2
- package/modern/field/index.css +5 -5
- package/modern/field/index.js +1 -1
- package/{esm/hook-3e68f8db.d.ts → modern/hook-9ea9e32c.d.ts} +10 -8
- package/modern/index-50136800.d.ts +11 -0
- package/modern/{index-425c8522.d.ts → index-72dda473.d.ts} +7 -1
- package/modern/index-8b2c2707.d.ts +6 -0
- package/modern/index-c44170fe.d.ts +23 -0
- package/modern/index-c76d6398.d.ts +2 -0
- package/modern/{index-701e77da.d.ts → index-df3978fd.d.ts} +1 -1
- package/modern/index-ebda875c.d.ts +1 -1
- package/modern/index-f12ee135.d.ts +3 -3
- package/modern/index.d.ts +2 -2
- package/modern/index.js +1 -1
- package/modern/mobile-755fbaa3.d.ts +2 -0
- package/modern/mobile-96988a65.d.ts +2 -0
- package/modern/mobile.d.ts +1 -1
- package/modern/mobile.js +1 -1
- package/{esm/index-3e68f8db.d.ts → modern/shared-4cd3936b.d.ts} +8 -14
- package/modern/types-4480ac4f.d.ts +3 -0
- package/{cssm/types-3441be57.d.ts → modern/types-d9f9bbcc.d.ts} +32 -12
- package/modern/typings-5e1b8383.d.ts +2 -1
- package/modern/typings-9211a437.d.ts +95 -0
- package/modern/{utils-b64479aa.d.ts → utils-49cc3c24.d.ts} +3 -3
- package/package.json +25 -4
- package/{modern/index-3e68f8db.d.ts → shared-4cd3936b.d.ts} +8 -14
- package/src/Component.desktop.tsx +42 -0
- package/src/Component.mobile.tsx +38 -0
- package/src/Component.responsive.tsx +60 -0
- package/src/desktop.ts +1 -0
- package/src/field/Component.tsx +79 -0
- package/src/field/index.module.css +18 -0
- package/src/field/index.ts +1 -0
- package/src/index.ts +4 -0
- package/src/mobile.ts +1 -0
- package/types-4480ac4f.d.ts +3 -0
- package/{types-3441be57.d.ts → types-d9f9bbcc.d.ts} +32 -12
- package/typings-5e1b8383.d.ts +2 -1
- package/typings-9211a437.d.ts +95 -0
- package/{utils-b64479aa.d.ts → utils-49cc3c24.d.ts} +3 -3
- package/Component-3ebe4754.d.ts +0 -176
- package/Component.mobile-ae13210f.d.ts +0 -7
- package/Component.responsive-2aef4eba.d.ts +0 -28
- package/cssm/Component-3ebe4754.d.ts +0 -176
- package/cssm/Component.mobile-ae13210f.d.ts +0 -7
- package/cssm/Component.responsive-2aef4eba.d.ts +0 -28
- package/cssm/index-2aef4eba.d.ts +0 -5
- package/cssm/index-3885b0d7.d.ts +0 -3
- package/cssm/index-3ebe4754.d.ts +0 -1
- package/cssm/index-e81c389f.d.ts +0 -3
- package/cssm/responsive.d.ts +0 -2
- package/cssm/responsive.js +0 -21
- package/esm/Component-3ebe4754.d.ts +0 -176
- package/esm/Component.mobile-ae13210f.d.ts +0 -7
- package/esm/Component.responsive-2aef4eba.d.ts +0 -28
- package/esm/index-2aef4eba.d.ts +0 -5
- package/esm/index-3885b0d7.d.ts +0 -3
- package/esm/index-3ebe4754.d.ts +0 -1
- package/esm/index-e81c389f.d.ts +0 -3
- package/esm/responsive.d.ts +0 -2
- package/esm/responsive.js +0 -12
- package/index-2aef4eba.d.ts +0 -5
- package/index-3885b0d7.d.ts +0 -3
- package/index-3ebe4754.d.ts +0 -1
- package/index-e81c389f.d.ts +0 -3
- package/modern/Component-3ebe4754.d.ts +0 -176
- package/modern/Component.mobile-ae13210f.d.ts +0 -7
- package/modern/Component.responsive-2aef4eba.d.ts +0 -28
- package/modern/index-2aef4eba.d.ts +0 -5
- package/modern/index-3885b0d7.d.ts +0 -3
- package/modern/index-3ebe4754.d.ts +0 -1
- package/modern/index-e81c389f.d.ts +0 -3
- package/modern/responsive.d.ts +0 -2
- package/modern/responsive.js +0 -11
- package/responsive.d.ts +0 -2
- package/responsive.js +0 -20
- /package/cssm/{types-ebda875c.d.ts → types-83e2bd9e.d.ts} +0 -0
- /package/esm/{types-ebda875c.d.ts → types-83e2bd9e.d.ts} +0 -0
- /package/modern/{types-ebda875c.d.ts → types-83e2bd9e.d.ts} +0 -0
- /package/{types-ebda875c.d.ts → types-83e2bd9e.d.ts} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { FC, SVGProps } from "react";
|
|
4
|
-
import { OptionShape } from "./
|
|
5
|
-
import { OptionProps as BaseOptionProps } from "./
|
|
4
|
+
import { OptionShape } from "./shared-4cd3936b";
|
|
5
|
+
import { OptionProps as BaseOptionProps } from "./shared-4cd3936b";
|
|
6
6
|
type OptionProps = Omit<BaseOptionProps, 'option'> & {
|
|
7
7
|
option: OptionShape & {
|
|
8
8
|
icon?: FC<SVGProps<SVGSVGElement>>;
|
|
@@ -57,15 +57,16 @@ declare const BaseSelectMobile: React.ForwardRefExoticComponent<Omit<BaseSelectP
|
|
|
57
57
|
/**
|
|
58
58
|
* Дополнительные пропсы модалки
|
|
59
59
|
*/
|
|
60
|
-
modalProps?: Partial<
|
|
60
|
+
modalProps?: Partial<ModalMobileProps & React.RefAttributes<HTMLDivElement>> | undefined;
|
|
61
61
|
/**
|
|
62
62
|
* Дополнительные пропсы шапки модалки
|
|
63
63
|
*/
|
|
64
|
-
modalHeaderProps?: Partial<import("./Component-
|
|
64
|
+
modalHeaderProps?: Partial<import("./Component-c76d6398").HeaderProps> | undefined;
|
|
65
65
|
/**
|
|
66
66
|
* Дополнительные пропсы футера модалки
|
|
67
67
|
*/
|
|
68
|
-
modalFooterProps?: Partial<import("./Component.mobile-
|
|
68
|
+
modalFooterProps?: Partial<import("./Component.mobile-f1f15074").FooterProps> | undefined;
|
|
69
69
|
} & React.RefAttributes<unknown>>;
|
|
70
|
-
export * from "./Component.mobile-
|
|
70
|
+
export * from "./Component.mobile-f1f15074";
|
|
71
|
+
export { ModalMobileProps } from "./typings-bdb4c6b9";
|
|
71
72
|
export { SelectMobileProps, BaseSelectMobile };
|
package/Component-5e1b8383.d.ts
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import React from
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { OptionShape, OptionsListProps } from "./typings-5e1b8383";
|
|
4
|
+
import { HeaderProps } from "./Component-ebda875c";
|
|
5
|
+
type FooterProps = {
|
|
6
|
+
handleClear?: () => void;
|
|
7
|
+
handleApply?: () => void;
|
|
8
|
+
showClear?: boolean;
|
|
9
|
+
selectedDraft?: OptionShape[];
|
|
10
|
+
};
|
|
11
|
+
declare const Footer: ({ handleApply, handleClear, showClear, selectedDraft }: FooterProps) => React.JSX.Element;
|
|
12
|
+
declare const OptionsListWithApply: React.ForwardRefExoticComponent<OptionsListProps & {
|
|
13
|
+
showClear?: boolean | undefined;
|
|
14
|
+
onClose?: (() => void) | undefined;
|
|
15
|
+
selectedDraft?: OptionShape[] | undefined;
|
|
16
|
+
OptionsList?: React.FC<OptionsListProps & React.RefAttributes<HTMLDivElement>> | undefined;
|
|
17
|
+
Footer?: React.FC<FooterProps> | undefined;
|
|
18
|
+
Header?: React.FC<HeaderProps> | undefined;
|
|
19
|
+
headerProps?: HeaderProps | undefined;
|
|
20
|
+
showHeaderWithSelectAll?: boolean | undefined;
|
|
21
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
export { FooterProps, Footer, OptionsListWithApply };
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { FC, ForwardRefExoticComponent, RefAttributes, HTMLAttributes } from "react";
|
|
4
|
+
declare const colors: readonly [
|
|
5
|
+
"tertiary",
|
|
6
|
+
"disabled",
|
|
7
|
+
"accent",
|
|
8
|
+
"primary",
|
|
9
|
+
"attention",
|
|
10
|
+
"positive",
|
|
11
|
+
"secondary",
|
|
12
|
+
"tertiary-inverted",
|
|
13
|
+
"primary-inverted",
|
|
14
|
+
"secondary-inverted",
|
|
15
|
+
"link",
|
|
16
|
+
"negative",
|
|
17
|
+
"static-primary-light",
|
|
18
|
+
"static-secondary-light",
|
|
19
|
+
"static-tertiary-light",
|
|
20
|
+
"static-primary-dark",
|
|
21
|
+
"static-secondary-dark",
|
|
22
|
+
"static-tertiary-dark",
|
|
23
|
+
"static-accent"
|
|
24
|
+
];
|
|
25
|
+
type Color = (typeof colors)[number];
|
|
26
|
+
type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
|
|
27
|
+
type NativeProps = HTMLAttributes<HTMLSpanElement>;
|
|
28
|
+
type TextBaseProps = {
|
|
29
|
+
/**
|
|
30
|
+
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/tokens-assets-типографика--docs)
|
|
31
|
+
*/
|
|
32
|
+
view?: "primary-large" | "primary-medium" | "primary-small" | "secondary-large" | "secondary-medium" | "secondary-small" | "component" | "caps";
|
|
33
|
+
/**
|
|
34
|
+
* Цвет текста
|
|
35
|
+
*/
|
|
36
|
+
color?: Color;
|
|
37
|
+
/**
|
|
38
|
+
* Толщина шрифта
|
|
39
|
+
*/
|
|
40
|
+
weight?: "regular" | "medium" | "bold";
|
|
41
|
+
/**
|
|
42
|
+
* Делает цифры моноширинными
|
|
43
|
+
*/
|
|
44
|
+
monospaceNumbers?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* HTML тег
|
|
47
|
+
*/
|
|
48
|
+
tag?: "span" | "div";
|
|
49
|
+
/**
|
|
50
|
+
* Css-класс для стилизации (native prop)
|
|
51
|
+
*/
|
|
52
|
+
className?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Id компонента для тестов
|
|
55
|
+
*/
|
|
56
|
+
dataTestId?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Контент (native prop)
|
|
59
|
+
*/
|
|
60
|
+
children?: React.ReactNode;
|
|
61
|
+
/**
|
|
62
|
+
* Добавляет отступы к тэгу 'p'
|
|
63
|
+
*/
|
|
64
|
+
defaultMargins?: never;
|
|
65
|
+
/**
|
|
66
|
+
* Количество строк (не поддерживает IE)
|
|
67
|
+
*/
|
|
68
|
+
rowLimit?: 1 | 2 | 3;
|
|
69
|
+
};
|
|
70
|
+
type TextPTagProps = Omit<TextBaseProps, "tag" | "defaultMargins"> & {
|
|
71
|
+
tag?: "p";
|
|
72
|
+
defaultMargins?: boolean;
|
|
73
|
+
};
|
|
74
|
+
type TextProps = Omit<NativeProps, "color"> & (TextBaseProps | TextPTagProps);
|
|
75
|
+
type NativeProps$0 = HTMLAttributes<HTMLHeadingElement>;
|
|
76
|
+
type TitleProps = Omit<NativeProps$0, "color"> & {
|
|
77
|
+
/**
|
|
78
|
+
* HTML тег
|
|
79
|
+
*/
|
|
80
|
+
tag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div";
|
|
81
|
+
/**
|
|
82
|
+
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
|
|
83
|
+
*/
|
|
84
|
+
view?: "xlarge" | "large" | "medium" | "small" | "xsmall";
|
|
85
|
+
/**
|
|
86
|
+
* Цвет текста
|
|
87
|
+
*/
|
|
88
|
+
color?: Color;
|
|
89
|
+
/**
|
|
90
|
+
* Толщина шрифта
|
|
91
|
+
*/
|
|
92
|
+
weight?: "regular" | "medium" | "bold";
|
|
93
|
+
/**
|
|
94
|
+
* Шрифт текста
|
|
95
|
+
*/
|
|
96
|
+
font?: "styrene" | "system";
|
|
97
|
+
/**
|
|
98
|
+
* Добавляет отступы
|
|
99
|
+
*/
|
|
100
|
+
defaultMargins?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Css-класс для стилизации (native prop)
|
|
103
|
+
*/
|
|
104
|
+
className?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Id компонента для тестов
|
|
107
|
+
*/
|
|
108
|
+
dataTestId?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Контент (native prop)
|
|
111
|
+
*/
|
|
112
|
+
children?: React.ReactNode;
|
|
113
|
+
/**
|
|
114
|
+
* Количество строк (не поддерживает IE)
|
|
115
|
+
*/
|
|
116
|
+
rowLimit?: 1 | 2 | 3;
|
|
117
|
+
};
|
|
118
|
+
type TitleMobileProps = Omit<TitleProps, "defaultMargins">;
|
|
119
|
+
declare const Typography: {
|
|
120
|
+
Title: FC<TitleProps>;
|
|
121
|
+
Text: ForwardRefExoticComponent<TextProps & RefAttributes<TextElementType>>;
|
|
122
|
+
TitleResponsive: FC<TitleProps>;
|
|
123
|
+
TitleMobile: FC<TitleMobileProps>;
|
|
124
|
+
};
|
|
125
|
+
declare const typographyPresets: {
|
|
126
|
+
mobile: {
|
|
127
|
+
list: {
|
|
128
|
+
text: {
|
|
129
|
+
primary: {
|
|
130
|
+
tag: string;
|
|
131
|
+
view: string;
|
|
132
|
+
};
|
|
133
|
+
secondary: {
|
|
134
|
+
tag: string;
|
|
135
|
+
color: string;
|
|
136
|
+
view: string;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
declare const TitleResponsive: FC<TitleProps>;
|
|
143
|
+
interface BackArrowAddonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
144
|
+
/**
|
|
145
|
+
* Текст после иконки
|
|
146
|
+
*/
|
|
147
|
+
text?: string;
|
|
148
|
+
/**
|
|
149
|
+
* Дополнительный класс
|
|
150
|
+
*/
|
|
151
|
+
className?: string;
|
|
152
|
+
/**
|
|
153
|
+
* Вид компонента
|
|
154
|
+
*/
|
|
155
|
+
view: 'mobile' | 'desktop';
|
|
156
|
+
/**
|
|
157
|
+
* Прозрачность текста
|
|
158
|
+
*/
|
|
159
|
+
textOpacity?: number;
|
|
160
|
+
/**
|
|
161
|
+
* Обработчик клика
|
|
162
|
+
*/
|
|
163
|
+
onClick?: () => void;
|
|
164
|
+
}
|
|
165
|
+
declare const BackArrowAddon: React.FC<BackArrowAddonProps>;
|
|
166
|
+
export { Typography, typographyPresets, TitleResponsive, BackArrowAddonProps, BackArrowAddon };
|
|
167
|
+
export type { TitleProps, TextProps, Color };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BackgroundColorType, GraphicColorType } from "./index-72dda473";
|
|
4
|
+
type IconColorType = Extract<GraphicColorType, 'positive' | 'attention' | 'link' | 'negative' | 'tertiary' | 'secondary' | 'primary'>;
|
|
5
|
+
type BadgeProps = {
|
|
6
|
+
/**
|
|
7
|
+
* Дополнительный класс
|
|
8
|
+
*/
|
|
9
|
+
className?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Вид компонента
|
|
12
|
+
*/
|
|
13
|
+
view: 'icon' | 'count';
|
|
14
|
+
/**
|
|
15
|
+
* Размер компонента (только для view=icon)
|
|
16
|
+
* //deprecated(используйте height для view=count )
|
|
17
|
+
*/
|
|
18
|
+
size?: 's' | 'm' | 'l' | 'xl';
|
|
19
|
+
/**
|
|
20
|
+
* Видимость белой обводки вокруг иконки
|
|
21
|
+
*/
|
|
22
|
+
visibleIconOutline?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Видимость цветной обводки вокруг иконки (только для view=icon)
|
|
25
|
+
*/
|
|
26
|
+
visibleColorOutline?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Контент компонента
|
|
29
|
+
*/
|
|
30
|
+
content?: React.ReactElement | number;
|
|
31
|
+
/**
|
|
32
|
+
* Высота компонента, min = 16; max = 48 (только для view=count)
|
|
33
|
+
*/
|
|
34
|
+
height?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Цветовое оформление бейджа при view='count'
|
|
37
|
+
*/
|
|
38
|
+
color?: Extract<BackgroundColorType, 'accent' | 'primary' | 'specialbg-secondary-transparent'>;
|
|
39
|
+
/**
|
|
40
|
+
* Цветовое оформление бейджа при view='icon'
|
|
41
|
+
*/
|
|
42
|
+
iconColor?: IconColorType;
|
|
43
|
+
/**
|
|
44
|
+
* Цвет подложки под иконкой
|
|
45
|
+
*/
|
|
46
|
+
iconUnderlayColor?: Extract<GraphicColorType, 'primary' | 'static-light'>;
|
|
47
|
+
/**
|
|
48
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
49
|
+
*/
|
|
50
|
+
dataTestId?: string;
|
|
51
|
+
};
|
|
52
|
+
declare const Badge: ({ className, size, view, visibleIconOutline, visibleColorOutline, content, height, iconColor, color, iconUnderlayColor, dataTestId, }: BadgeProps) => React.JSX.Element;
|
|
53
|
+
export { IconColorType, BadgeProps, Badge };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ButtonProps } from "./index-8b2c2707";
|
|
4
|
+
import { FieldProps as BaseFieldProps } from "./typings-5e1b8383";
|
|
5
|
+
import { PickerButtonSize, PickerButtonVariant } from "./types-4480ac4f";
|
|
6
|
+
type FieldProps = Omit<BaseFieldProps, 'size' | 'hint' | 'success' | 'error' | 'placeholder'> & ButtonProps & {
|
|
7
|
+
buttonSize?: PickerButtonSize;
|
|
8
|
+
buttonVariant?: PickerButtonVariant;
|
|
9
|
+
showArrow?: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare const Field: ({ buttonSize, buttonVariant, view, label, open, multiple, rightAddons, Arrow, innerProps, className, selected, selectedMultiple, setSelectedItems, toggleMenu, valueRenderer, showArrow, labelView, ...restProps }: FieldProps) => React.JSX.Element;
|
|
12
|
+
export { Field };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { FC } from "react";
|
|
4
|
+
import { BaseButtonProps } from "./typings-9211a437";
|
|
5
|
+
type SpinnerProps = {
|
|
6
|
+
/**
|
|
7
|
+
* Управление видимостью компонента
|
|
8
|
+
*/
|
|
9
|
+
visible?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Размер компонента
|
|
12
|
+
*/
|
|
13
|
+
size?: "xs" | "s" | "m";
|
|
14
|
+
/**
|
|
15
|
+
* Дополнительный класс
|
|
16
|
+
*/
|
|
17
|
+
className?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Идентификатор компонента в DOM
|
|
20
|
+
*/
|
|
21
|
+
id?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
24
|
+
*/
|
|
25
|
+
dataTestId?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Палитра, в контексте которой используется спиннер
|
|
28
|
+
*/
|
|
29
|
+
colors?: "default" | "inverted";
|
|
30
|
+
};
|
|
31
|
+
declare const Spinner: FC<SpinnerProps>;
|
|
32
|
+
/**
|
|
33
|
+
* Минимальное время отображения лоадера - 500мс,
|
|
34
|
+
* чтобы при быстрых ответах от сервера кнопка не «моргала».
|
|
35
|
+
*/
|
|
36
|
+
declare const LOADER_MIN_DISPLAY_INTERVAL = 500;
|
|
37
|
+
declare const BaseButton: React.ForwardRefExoticComponent<BaseButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
38
|
+
export { SpinnerProps, Spinner, LOADER_MIN_DISPLAY_INTERVAL, BaseButton };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { AnchorButtonProps, NativeButtonProps } from "./typings-9211a437";
|
|
4
|
+
type ButtonDesktopProps = Partial<AnchorButtonProps | NativeButtonProps>;
|
|
5
|
+
declare const ButtonDesktop: React.ForwardRefExoticComponent<ButtonDesktopProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
6
|
+
export { ButtonDesktopProps, ButtonDesktop };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BaseFormControlProps } from "./index-ebda875c";
|
|
4
|
+
type FormControlDesktopProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
|
|
5
|
+
declare const FormControlDesktop: React.ForwardRefExoticComponent<FormControlDesktopProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export { FormControlDesktopProps, FormControlDesktop };
|
package/Component.desktop.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { CustomButtonProps } from "@alfalab/core-components-custom-button";
|
|
4
|
+
import { PickerButtonDesktopProps } from "./desktop-d446ae02";
|
|
4
5
|
type CustomPickerButtonDesktopProps = Omit<PickerButtonDesktopProps, 'view' | 'colors'> & Pick<CustomButtonProps, 'backgroundColor' | 'contentColor' | 'stateType'>;
|
|
5
|
-
declare const CustomPickerButtonDesktop: React.ForwardRefExoticComponent<Omit<PickerButtonDesktopProps, "
|
|
6
|
+
declare const CustomPickerButtonDesktop: React.ForwardRefExoticComponent<Omit<PickerButtonDesktopProps, "view" | "colors"> & Pick<CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & React.RefAttributes<HTMLInputElement>>;
|
|
6
7
|
export { CustomPickerButtonDesktopProps, CustomPickerButtonDesktop };
|
package/Component.desktop.js
CHANGED
|
@@ -8,7 +8,7 @@ var desktop = require('@alfalab/core-components-picker-button/desktop');
|
|
|
8
8
|
var field_Component = require('./field/Component.js');
|
|
9
9
|
require('classnames');
|
|
10
10
|
require('@alfalab/core-components-custom-button');
|
|
11
|
-
require('@alfalab/core-components-picker-button');
|
|
11
|
+
require('@alfalab/core-components-picker-button/shared');
|
|
12
12
|
|
|
13
13
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
14
14
|
|
|
@@ -22,6 +22,7 @@ var CustomPickerButtonDesktop = React.forwardRef(function (_a, ref) {
|
|
|
22
22
|
backgroundColor: backgroundColor,
|
|
23
23
|
contentColor: contentColor,
|
|
24
24
|
stateType: stateType,
|
|
25
|
+
breakpoint: 1,
|
|
25
26
|
}, Field: field_Component.Field, ref: ref })));
|
|
26
27
|
});
|
|
27
28
|
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
import { BottomSheetProps } from "./index-f12ee135";
|
|
5
|
+
import { UseSelectWithApplyProps } from "./hook-9ea9e32c";
|
|
6
|
+
import { BaseSelectProps } from "./typings-5e1b8383";
|
|
7
|
+
type AdditionalMobileProps = {
|
|
8
|
+
/**
|
|
9
|
+
* Футер
|
|
10
|
+
* @deprecated Используйте bottomSheetProps.actionButton
|
|
11
|
+
*/
|
|
12
|
+
footer?: ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Будет ли свайпаться шторка
|
|
15
|
+
* @deprecated Используйте bottomSheetProps.swipeable
|
|
16
|
+
*/
|
|
17
|
+
swipeable?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Дополнительные пропсы шторки
|
|
20
|
+
*/
|
|
21
|
+
bottomSheetProps?: Partial<BottomSheetProps>;
|
|
22
|
+
/**
|
|
23
|
+
* Показывать кнопку очистки
|
|
24
|
+
*/
|
|
25
|
+
showClear?: UseSelectWithApplyProps['showClear'];
|
|
26
|
+
/**
|
|
27
|
+
* Показывать пункт "Выбрать все"
|
|
28
|
+
*/
|
|
29
|
+
showSelectAll?: UseSelectWithApplyProps['showSelectAll'];
|
|
30
|
+
/**
|
|
31
|
+
* Показывать пункт "Выбрать все" в заголовке списка
|
|
32
|
+
*/
|
|
33
|
+
showHeaderWithSelectAll?: UseSelectWithApplyProps['showHeaderWithSelectAll'];
|
|
34
|
+
/**
|
|
35
|
+
* Использовать ли хук useSelectWithApply
|
|
36
|
+
*/
|
|
37
|
+
useWithApplyHook?: boolean;
|
|
38
|
+
};
|
|
39
|
+
type SelectMobileProps = Omit<BaseSelectProps, 'Checkmark' | 'onScroll'> & AdditionalMobileProps;
|
|
40
|
+
declare const SelectMobile: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "onScroll" | "Checkmark"> & AdditionalMobileProps & React.RefAttributes<unknown>>;
|
|
41
|
+
export { AdditionalMobileProps, SelectMobileProps, SelectMobile };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { AnchorButtonProps, NativeButtonProps } from "./typings-9211a437";
|
|
4
|
+
type ButtonMobileProps = Partial<AnchorButtonProps | NativeButtonProps>;
|
|
5
|
+
declare const ButtonMobile: React.ForwardRefExoticComponent<ButtonMobileProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
6
|
+
export { ButtonMobileProps, ButtonMobile };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { AdditionalMobileProps } from "./shared-4cd3936b";
|
|
4
|
+
import { PickerButtonDesktopProps } from "./desktop-d446ae02";
|
|
5
|
+
type PickerButtonMobileProps = Omit<PickerButtonDesktopProps, 'OptionsList' | 'Checkmark' | 'onScroll'> & AdditionalMobileProps & {
|
|
6
|
+
/**
|
|
7
|
+
* Контрольная точка для кнопки, с нее начинается desktop версия
|
|
8
|
+
* @default 1024
|
|
9
|
+
*/
|
|
10
|
+
breakpoint?: number;
|
|
11
|
+
};
|
|
12
|
+
declare const PickerButtonMobile: React.ForwardRefExoticComponent<Omit<PickerButtonDesktopProps, "onScroll" | "OptionsList" | "Checkmark"> & AdditionalMobileProps & {
|
|
13
|
+
/**
|
|
14
|
+
* Контрольная точка для кнопки, с нее начинается desktop версия
|
|
15
|
+
* @default 1024
|
|
16
|
+
*/
|
|
17
|
+
breakpoint?: number | undefined;
|
|
18
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
19
|
+
export { SelectMobile } from "./Component.mobile-06ffd24b";
|
|
20
|
+
export { SelectModalMobile } from "./Component.modal.mobile-5e1b8383";
|
|
21
|
+
export type { SelectMobileProps } from "./Component.mobile-06ffd24b";
|
|
22
|
+
export type { SelectModalMobileProps } from "./Component.modal.mobile-5e1b8383";
|
|
23
|
+
export { PickerButtonMobileProps, PickerButtonMobile };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BaseFormControlProps } from "./index-ebda875c";
|
|
4
|
+
type FormControlMobileProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
|
|
5
|
+
declare const FormControlMobile: React.ForwardRefExoticComponent<FormControlMobileProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export { FormControlMobileProps, FormControlMobile };
|
|
@@ -28,8 +28,7 @@ type FooterProps = {
|
|
|
28
28
|
declare const Footer: FC<FooterProps>;
|
|
29
29
|
declare const ModalMobile: React.ForwardRefExoticComponent<ModalMobileProps & React.RefAttributes<HTMLDivElement>> & {
|
|
30
30
|
Content: React.FC<import("./typings-bdb4c6b9").ContentProps>;
|
|
31
|
-
Header: React.FC<import("./Component-
|
|
31
|
+
Header: React.FC<import("./Component-c76d6398").HeaderProps>;
|
|
32
32
|
Footer: React.FC<FooterProps>;
|
|
33
|
-
Closer: React.FC<import("./index-e81c389f").CloserProps>;
|
|
34
33
|
};
|
|
35
34
|
export { Content, FooterProps, Footer, ModalMobile };
|
package/Component.mobile.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { CustomButtonProps } from "@alfalab/core-components-custom-button";
|
|
4
|
+
import { PickerButtonMobileProps } from "./Component.mobile-d446ae02";
|
|
4
5
|
type CustomPickerButtonMobileProps = Omit<PickerButtonMobileProps, 'view' | 'colors'> & Pick<CustomButtonProps, 'backgroundColor' | 'contentColor' | 'stateType'>;
|
|
5
|
-
declare const CustomPickerButtonMobile: React.ForwardRefExoticComponent<Omit<PickerButtonMobileProps, "
|
|
6
|
+
declare const CustomPickerButtonMobile: React.ForwardRefExoticComponent<Omit<PickerButtonMobileProps, "view" | "colors"> & Pick<CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & React.RefAttributes<HTMLInputElement>>;
|
|
6
7
|
export { CustomPickerButtonMobileProps, CustomPickerButtonMobile };
|
package/Component.mobile.js
CHANGED
|
@@ -8,7 +8,7 @@ var mobile = require('@alfalab/core-components-picker-button/mobile');
|
|
|
8
8
|
var field_Component = require('./field/Component.js');
|
|
9
9
|
require('classnames');
|
|
10
10
|
require('@alfalab/core-components-custom-button');
|
|
11
|
-
require('@alfalab/core-components-picker-button');
|
|
11
|
+
require('@alfalab/core-components-picker-button/shared');
|
|
12
12
|
|
|
13
13
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
14
14
|
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ModalMobile } from "./Component.mobile-f1f15074";
|
|
4
|
+
import { UseSelectWithApplyProps } from "./hook-9ea9e32c";
|
|
5
|
+
import { BaseSelectProps } from "./typings-5e1b8383";
|
|
6
|
+
type SelectModalMobileProps = Omit<BaseSelectProps, 'Checkmark' | 'onScroll'> & {
|
|
7
|
+
/**
|
|
8
|
+
* Показывать кнопку очистки
|
|
9
|
+
*/
|
|
10
|
+
showClear?: UseSelectWithApplyProps['showClear'];
|
|
11
|
+
/**
|
|
12
|
+
* Показывать пункт "Выбрать все"
|
|
13
|
+
*/
|
|
14
|
+
showSelectAll?: UseSelectWithApplyProps['showSelectAll'];
|
|
15
|
+
/**
|
|
16
|
+
* Дополнительные пропсы шапки модалки
|
|
17
|
+
*/
|
|
18
|
+
modalHeaderProps?: Partial<React.ComponentProps<typeof ModalMobile.Header>>;
|
|
19
|
+
/**
|
|
20
|
+
* Дополнительные пропсы модалки
|
|
21
|
+
*/
|
|
22
|
+
modalProps?: Partial<React.ComponentProps<typeof ModalMobile>>;
|
|
23
|
+
/**
|
|
24
|
+
* Дополнительные пропсы футера модалки
|
|
25
|
+
*/
|
|
26
|
+
modalFooterProps?: Partial<React.ComponentProps<typeof ModalMobile.Footer>>;
|
|
27
|
+
showHeaderWithSelectAll?: UseSelectWithApplyProps['showHeaderWithSelectAll'];
|
|
28
|
+
/**
|
|
29
|
+
* Использовать ли хук useSelectWithApply
|
|
30
|
+
*/
|
|
31
|
+
useWithApplyHook?: boolean;
|
|
32
|
+
};
|
|
33
|
+
declare const SelectModalMobile: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "onScroll" | "Checkmark"> & {
|
|
34
|
+
/**
|
|
35
|
+
* Показывать кнопку очистки
|
|
36
|
+
*/
|
|
37
|
+
showClear?: UseSelectWithApplyProps['showClear'];
|
|
38
|
+
/**
|
|
39
|
+
* Показывать пункт "Выбрать все"
|
|
40
|
+
*/
|
|
41
|
+
showSelectAll?: UseSelectWithApplyProps['showSelectAll'];
|
|
42
|
+
/**
|
|
43
|
+
* Дополнительные пропсы шапки модалки
|
|
44
|
+
*/
|
|
45
|
+
modalHeaderProps?: Partial<import("./Component-c76d6398").HeaderProps> | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Дополнительные пропсы модалки
|
|
48
|
+
*/
|
|
49
|
+
modalProps?: Partial<import("./typings-bdb4c6b9").ModalMobileProps & React.RefAttributes<HTMLDivElement>> | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Дополнительные пропсы футера модалки
|
|
52
|
+
*/
|
|
53
|
+
modalFooterProps?: Partial<import("./Component.mobile-f1f15074").FooterProps> | undefined;
|
|
54
|
+
showHeaderWithSelectAll?: UseSelectWithApplyProps['showHeaderWithSelectAll'];
|
|
55
|
+
/**
|
|
56
|
+
* Использовать ли хук useSelectWithApply
|
|
57
|
+
*/
|
|
58
|
+
useWithApplyHook?: boolean | undefined;
|
|
59
|
+
} & React.RefAttributes<unknown>>;
|
|
60
|
+
export { SelectModalMobileProps, SelectModalMobile };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BaseFormControlProps } from "./index-ebda875c";
|
|
4
|
+
type FormControlProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'> & {
|
|
5
|
+
/**
|
|
6
|
+
* Контрольная точка, с нее начинается desktop версия
|
|
7
|
+
* @default 1024
|
|
8
|
+
*/
|
|
9
|
+
breakpoint?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Значение по-умолчанию для хука useMatchMedia
|
|
12
|
+
*/
|
|
13
|
+
defaultMatchMediaValue?: boolean | (() => boolean);
|
|
14
|
+
};
|
|
15
|
+
declare const FormControl: React.ForwardRefExoticComponent<Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
|
|
16
|
+
/**
|
|
17
|
+
* Контрольная точка, с нее начинается desktop версия
|
|
18
|
+
* @default 1024
|
|
19
|
+
*/
|
|
20
|
+
breakpoint?: number | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Значение по-умолчанию для хука useMatchMedia
|
|
23
|
+
*/
|
|
24
|
+
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
25
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
export { FormControlProps, FormControl };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { CustomButtonProps } from "@alfalab/core-components-custom-button";
|
|
4
|
-
import { PickerButtonDesktopProps } from "./
|
|
5
|
-
import { AdditionalMobileProps } from "./
|
|
4
|
+
import { PickerButtonDesktopProps } from "./desktop-d446ae02";
|
|
5
|
+
import { AdditionalMobileProps } from "./shared-4cd3936b";
|
|
6
6
|
import { CustomPickerButtonDesktopProps } from "./Component.desktop";
|
|
7
7
|
type PickerButtonMatchMedia = 'desktop' | 'mobile';
|
|
8
8
|
type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & AdditionalMobileProps & {
|
|
@@ -12,7 +12,7 @@ type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & Additi
|
|
|
12
12
|
*/
|
|
13
13
|
breakpoint?: number;
|
|
14
14
|
};
|
|
15
|
-
declare const CustomPickerButtonResponsive: React.ForwardRefExoticComponent<Omit<PickerButtonDesktopProps, "
|
|
15
|
+
declare const CustomPickerButtonResponsive: React.ForwardRefExoticComponent<Omit<PickerButtonDesktopProps, "view" | "colors"> & Pick<CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & AdditionalMobileProps & {
|
|
16
16
|
/**
|
|
17
17
|
* Контрольная точка, с нее начинается desktop версия
|
|
18
18
|
* @default 1024
|
package/Component.responsive.js
CHANGED
|
@@ -11,7 +11,7 @@ require('@alfalab/core-components-picker-button/desktop');
|
|
|
11
11
|
require('./field/Component.js');
|
|
12
12
|
require('classnames');
|
|
13
13
|
require('@alfalab/core-components-custom-button');
|
|
14
|
-
require('@alfalab/core-components-picker-button');
|
|
14
|
+
require('@alfalab/core-components-picker-button/shared');
|
|
15
15
|
require('@alfalab/core-components-picker-button/mobile');
|
|
16
16
|
|
|
17
17
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|