@alfalab/core-components-picker-button 11.7.16 → 11.7.18
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/Component-2f466837.d.ts +5 -2
- package/{Component-f48223d2.d.ts → Component-7d83ec1e.d.ts} +1 -1
- package/colors-facf1d2a.d.ts +3 -0
- package/component-03d088c4.d.ts +32 -0
- package/component-eb15729d.d.ts +123 -0
- package/cssm/Component-2f466837.d.ts +5 -2
- package/cssm/{Component-f48223d2.d.ts → Component-7d83ec1e.d.ts} +1 -1
- package/cssm/colors-facf1d2a.d.ts +3 -0
- package/cssm/component-03d088c4.d.ts +32 -0
- package/cssm/component-eb15729d.d.ts +123 -0
- package/cssm/field/Component.d.ts +1 -1
- package/cssm/field/index.module.css +2 -1
- package/cssm/index-03d088c4.d.ts +20 -0
- package/cssm/index-281accb7.d.ts +19 -0
- package/cssm/index-d691530f.d.ts +1 -0
- package/cssm/index.module.css +4 -2
- package/cssm/option/index.module.css +2 -1
- package/{esm/typings-f48223d2.d.ts → cssm/typings-7d83ec1e.d.ts} +23 -1
- package/{esm/utils-87b0c1c6.d.ts → cssm/utils-3942b092.d.ts} +2 -1
- package/desktop/Component.desktop.js +1 -1
- package/esm/Component-2f466837.d.ts +5 -2
- package/esm/{Component-f48223d2.d.ts → Component-7d83ec1e.d.ts} +1 -1
- package/esm/colors-facf1d2a.d.ts +3 -0
- package/esm/component-03d088c4.d.ts +32 -0
- package/esm/component-eb15729d.d.ts +123 -0
- package/esm/desktop/Component.desktop.js +1 -1
- package/esm/field/Component.d.ts +1 -1
- package/esm/field/Component.js +1 -1
- package/esm/field/index.css +8 -7
- package/esm/index-03d088c4.d.ts +20 -0
- package/esm/index-281accb7.d.ts +19 -0
- package/esm/index-d691530f.d.ts +1 -0
- package/esm/index.css +9 -7
- package/esm/option/Component.js +1 -1
- package/esm/option/index.css +6 -5
- package/{modern/typings-f48223d2.d.ts → esm/typings-7d83ec1e.d.ts} +23 -1
- package/{modern/utils-87b0c1c6.d.ts → esm/utils-3942b092.d.ts} +2 -1
- package/field/Component.d.ts +1 -1
- package/field/Component.js +1 -1
- package/field/index.css +8 -7
- package/index-03d088c4.d.ts +20 -0
- package/index-281accb7.d.ts +19 -0
- package/index-d691530f.d.ts +1 -0
- package/index.css +9 -7
- package/modern/Component-2f466837.d.ts +5 -2
- package/modern/{Component-f48223d2.d.ts → Component-7d83ec1e.d.ts} +1 -1
- package/modern/colors-facf1d2a.d.ts +3 -0
- package/modern/component-03d088c4.d.ts +32 -0
- package/modern/component-eb15729d.d.ts +123 -0
- package/modern/desktop/Component.desktop.js +1 -1
- package/modern/field/Component.d.ts +1 -1
- package/modern/field/Component.js +1 -1
- package/modern/field/index.css +8 -7
- package/modern/index-03d088c4.d.ts +20 -0
- package/modern/index-281accb7.d.ts +19 -0
- package/modern/index-d691530f.d.ts +1 -0
- package/modern/index.css +9 -7
- package/modern/option/Component.js +1 -1
- package/modern/option/index.css +6 -5
- package/{cssm/typings-f48223d2.d.ts → modern/typings-7d83ec1e.d.ts} +23 -1
- package/{utils-87b0c1c6.d.ts → modern/utils-3942b092.d.ts} +2 -1
- package/option/Component.js +1 -1
- package/option/index.css +6 -5
- package/package.json +4 -4
- package/src/field/index.module.css +1 -1
- package/src/index.module.css +2 -2
- package/src/option/index.module.css +1 -1
- package/{typings-f48223d2.d.ts → typings-7d83ec1e.d.ts} +23 -1
- package/{cssm/utils-87b0c1c6.d.ts → utils-3942b092.d.ts} +2 -1
package/Component-2f466837.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import React from
|
|
2
|
+
import React from "react";
|
|
3
3
|
import { ChangeEvent, DetailedHTMLProps, InputHTMLAttributes, LabelHTMLAttributes, ReactNode, RefObject } from "react";
|
|
4
|
+
declare const getIcon: (size: "s" | "m" | 20 | 24) => React.JSX.Element;
|
|
5
|
+
declare const IconCheck20: () => React.JSX.Element;
|
|
6
|
+
declare const IconCheck24: () => React.JSX.Element;
|
|
4
7
|
type NativeProps = InputHTMLAttributes<HTMLInputElement>;
|
|
5
8
|
type Align = 'start' | 'center';
|
|
6
9
|
type CheckboxProps = Omit<NativeProps, 'size' | 'onChange' | 'enterKeyHint'> & {
|
|
@@ -165,4 +168,4 @@ declare const Checkbox: React.ForwardRefExoticComponent<Omit<NativeProps, "size"
|
|
|
165
168
|
*/
|
|
166
169
|
labelProps?: React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement> | undefined;
|
|
167
170
|
} & React.RefAttributes<HTMLLabelElement>>;
|
|
168
|
-
export { CheckboxProps, Checkbox };
|
|
171
|
+
export { getIcon, IconCheck20, IconCheck24, CheckboxProps, Checkbox };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { OptgroupProps } from "./typings-
|
|
3
|
+
import { OptgroupProps } from "./typings-7d83ec1e";
|
|
4
4
|
declare const Optgroup: ({ children, className, label, size }: OptgroupProps) => React.JSX.Element;
|
|
5
5
|
export { Optgroup };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const colors: readonly ["tertiary", "disabled", "accent", "primary", "attention", "positive", "secondary", "tertiary-inverted", "primary-inverted", "secondary-inverted", "link", "negative", "static-primary-light", "static-secondary-light", "static-tertiary-light", "static-primary-dark", "static-secondary-dark", "static-tertiary-dark", "static-accent"];
|
|
2
|
+
type Color = typeof colors[number];
|
|
3
|
+
export { colors, Color };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { TitleProps } from "./index-03d088c4";
|
|
4
|
+
type TitleResponsiveProps = TitleProps & {
|
|
5
|
+
/**
|
|
6
|
+
* Контрольная точка, с нее начинается desktop версия
|
|
7
|
+
* @default 1024
|
|
8
|
+
*/
|
|
9
|
+
breakpoint?: number;
|
|
10
|
+
};
|
|
11
|
+
declare const TitleResponsive: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLHeadingElement>, "color"> & {
|
|
12
|
+
tag: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
13
|
+
view?: "small" | "medium" | "xlarge" | "large" | "xsmall" | undefined;
|
|
14
|
+
color?: "link" | "accent" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "attention" | "positive" | "negative" | "static-accent" | "disabled" | "static-primary-light" | "static-secondary-light" | "static-tertiary-light" | "static-primary-dark" | "static-secondary-dark" | "static-tertiary-dark" | undefined;
|
|
15
|
+
weight?: "bold" | "regular" | "medium" | "semibold" | undefined;
|
|
16
|
+
font?: "styrene" | "system" | undefined;
|
|
17
|
+
defaultMargins?: boolean | undefined;
|
|
18
|
+
className?: string | undefined;
|
|
19
|
+
dataTestId?: string | undefined;
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
rowLimit?: 1 | 2 | 3 | undefined;
|
|
22
|
+
showSkeleton?: boolean | undefined;
|
|
23
|
+
skeletonProps?: import("./types-1328ead9").TextSkeletonProps | undefined;
|
|
24
|
+
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
25
|
+
} & {
|
|
26
|
+
/**
|
|
27
|
+
* Контрольная точка, с нее начинается desktop версия
|
|
28
|
+
* @default 1024
|
|
29
|
+
*/
|
|
30
|
+
breakpoint?: number | undefined;
|
|
31
|
+
} & React.RefAttributes<HTMLDivElement | HTMLHeadingElement>>;
|
|
32
|
+
export { TitleResponsiveProps, TitleResponsive };
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { HTMLAttributes } from "react";
|
|
4
|
+
import { Color } from "./colors-facf1d2a";
|
|
5
|
+
import { TextSkeletonProps } from "./types-1328ead9";
|
|
6
|
+
declare function getDefaultWeight(font: "styrene" | "system", platform: "mobile" | "desktop"): "medium" | "bold" | "semibold";
|
|
7
|
+
type NativeProps = HTMLAttributes<HTMLHeadingElement>;
|
|
8
|
+
type TitleProps = Omit<NativeProps, 'color'> & {
|
|
9
|
+
/**
|
|
10
|
+
* HTML тег
|
|
11
|
+
*/
|
|
12
|
+
tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
|
|
13
|
+
/**
|
|
14
|
+
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
|
|
15
|
+
*/
|
|
16
|
+
view?: 'xlarge' | 'large' | 'medium' | 'small' | 'xsmall';
|
|
17
|
+
/**
|
|
18
|
+
* Цвет текста
|
|
19
|
+
*/
|
|
20
|
+
color?: Color;
|
|
21
|
+
/**
|
|
22
|
+
* Толщина шрифта
|
|
23
|
+
*/
|
|
24
|
+
weight?: 'regular' | 'medium' | 'bold' | 'semibold';
|
|
25
|
+
/**
|
|
26
|
+
* Шрифт текста
|
|
27
|
+
*/
|
|
28
|
+
font?: 'styrene' | 'system';
|
|
29
|
+
/**
|
|
30
|
+
* Добавляет отступы
|
|
31
|
+
*/
|
|
32
|
+
defaultMargins?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Css-класс для стилизации (native prop)
|
|
35
|
+
*/
|
|
36
|
+
className?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Id компонента для тестов
|
|
39
|
+
*/
|
|
40
|
+
dataTestId?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Контент (native prop)
|
|
43
|
+
*/
|
|
44
|
+
children?: React.ReactNode;
|
|
45
|
+
/**
|
|
46
|
+
* Количество строк
|
|
47
|
+
*/
|
|
48
|
+
rowLimit?: 1 | 2 | 3;
|
|
49
|
+
/**
|
|
50
|
+
* Показать скелетон
|
|
51
|
+
*/
|
|
52
|
+
showSkeleton?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Пропы для скелетона
|
|
55
|
+
*/
|
|
56
|
+
skeletonProps?: TextSkeletonProps;
|
|
57
|
+
/**
|
|
58
|
+
* Значение по-умолчанию для хука useMatchMedia
|
|
59
|
+
*/
|
|
60
|
+
defaultMatchMediaValue?: boolean | (() => boolean);
|
|
61
|
+
};
|
|
62
|
+
type PrivateProps = {
|
|
63
|
+
styles: {
|
|
64
|
+
[key: string]: string;
|
|
65
|
+
};
|
|
66
|
+
platform: 'mobile' | 'desktop';
|
|
67
|
+
};
|
|
68
|
+
type TitleElementType = HTMLHeadingElement | HTMLDivElement;
|
|
69
|
+
declare const TitleBase: React.ForwardRefExoticComponent<Omit<NativeProps, "color"> & {
|
|
70
|
+
/**
|
|
71
|
+
* HTML тег
|
|
72
|
+
*/
|
|
73
|
+
tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
|
|
74
|
+
/**
|
|
75
|
+
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
|
|
76
|
+
*/
|
|
77
|
+
view?: "small" | "medium" | "xlarge" | "large" | "xsmall" | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Цвет текста
|
|
80
|
+
*/
|
|
81
|
+
color?: "link" | "accent" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "attention" | "positive" | "negative" | "static-accent" | "disabled" | "static-primary-light" | "static-secondary-light" | "static-tertiary-light" | "static-primary-dark" | "static-secondary-dark" | "static-tertiary-dark" | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Толщина шрифта
|
|
84
|
+
*/
|
|
85
|
+
weight?: "bold" | "regular" | "medium" | "semibold" | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* Шрифт текста
|
|
88
|
+
*/
|
|
89
|
+
font?: "styrene" | "system" | undefined;
|
|
90
|
+
/**
|
|
91
|
+
* Добавляет отступы
|
|
92
|
+
*/
|
|
93
|
+
defaultMargins?: boolean | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* Css-класс для стилизации (native prop)
|
|
96
|
+
*/
|
|
97
|
+
className?: string | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* Id компонента для тестов
|
|
100
|
+
*/
|
|
101
|
+
dataTestId?: string | undefined;
|
|
102
|
+
/**
|
|
103
|
+
* Контент (native prop)
|
|
104
|
+
*/
|
|
105
|
+
children?: React.ReactNode;
|
|
106
|
+
/**
|
|
107
|
+
* Количество строк
|
|
108
|
+
*/
|
|
109
|
+
rowLimit?: 1 | 2 | 3 | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* Показать скелетон
|
|
112
|
+
*/
|
|
113
|
+
showSkeleton?: boolean | undefined;
|
|
114
|
+
/**
|
|
115
|
+
* Пропы для скелетона
|
|
116
|
+
*/
|
|
117
|
+
skeletonProps?: TextSkeletonProps | undefined;
|
|
118
|
+
/**
|
|
119
|
+
* Значение по-умолчанию для хука useMatchMedia
|
|
120
|
+
*/
|
|
121
|
+
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
122
|
+
} & PrivateProps & React.RefAttributes<TitleElementType>>;
|
|
123
|
+
export { getDefaultWeight, TitleProps, TitleBase };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import React from
|
|
2
|
+
import React from "react";
|
|
3
3
|
import { ChangeEvent, DetailedHTMLProps, InputHTMLAttributes, LabelHTMLAttributes, ReactNode, RefObject } from "react";
|
|
4
|
+
declare const getIcon: (size: "s" | "m" | 20 | 24) => React.JSX.Element;
|
|
5
|
+
declare const IconCheck20: () => React.JSX.Element;
|
|
6
|
+
declare const IconCheck24: () => React.JSX.Element;
|
|
4
7
|
type NativeProps = InputHTMLAttributes<HTMLInputElement>;
|
|
5
8
|
type Align = 'start' | 'center';
|
|
6
9
|
type CheckboxProps = Omit<NativeProps, 'size' | 'onChange' | 'enterKeyHint'> & {
|
|
@@ -165,4 +168,4 @@ declare const Checkbox: React.ForwardRefExoticComponent<Omit<NativeProps, "size"
|
|
|
165
168
|
*/
|
|
166
169
|
labelProps?: React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement> | undefined;
|
|
167
170
|
} & React.RefAttributes<HTMLLabelElement>>;
|
|
168
|
-
export { CheckboxProps, Checkbox };
|
|
171
|
+
export { getIcon, IconCheck20, IconCheck24, CheckboxProps, Checkbox };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { OptgroupProps } from "./typings-
|
|
3
|
+
import { OptgroupProps } from "./typings-7d83ec1e";
|
|
4
4
|
declare const Optgroup: ({ children, className, label, size }: OptgroupProps) => React.JSX.Element;
|
|
5
5
|
export { Optgroup };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const colors: readonly ["tertiary", "disabled", "accent", "primary", "attention", "positive", "secondary", "tertiary-inverted", "primary-inverted", "secondary-inverted", "link", "negative", "static-primary-light", "static-secondary-light", "static-tertiary-light", "static-primary-dark", "static-secondary-dark", "static-tertiary-dark", "static-accent"];
|
|
2
|
+
type Color = typeof colors[number];
|
|
3
|
+
export { colors, Color };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { TitleProps } from "./index-03d088c4";
|
|
4
|
+
type TitleResponsiveProps = TitleProps & {
|
|
5
|
+
/**
|
|
6
|
+
* Контрольная точка, с нее начинается desktop версия
|
|
7
|
+
* @default 1024
|
|
8
|
+
*/
|
|
9
|
+
breakpoint?: number;
|
|
10
|
+
};
|
|
11
|
+
declare const TitleResponsive: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLHeadingElement>, "color"> & {
|
|
12
|
+
tag: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
13
|
+
view?: "small" | "medium" | "xlarge" | "large" | "xsmall" | undefined;
|
|
14
|
+
color?: "link" | "accent" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "attention" | "positive" | "negative" | "static-accent" | "disabled" | "static-primary-light" | "static-secondary-light" | "static-tertiary-light" | "static-primary-dark" | "static-secondary-dark" | "static-tertiary-dark" | undefined;
|
|
15
|
+
weight?: "bold" | "regular" | "medium" | "semibold" | undefined;
|
|
16
|
+
font?: "styrene" | "system" | undefined;
|
|
17
|
+
defaultMargins?: boolean | undefined;
|
|
18
|
+
className?: string | undefined;
|
|
19
|
+
dataTestId?: string | undefined;
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
rowLimit?: 1 | 2 | 3 | undefined;
|
|
22
|
+
showSkeleton?: boolean | undefined;
|
|
23
|
+
skeletonProps?: import("./types-1328ead9").TextSkeletonProps | undefined;
|
|
24
|
+
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
25
|
+
} & {
|
|
26
|
+
/**
|
|
27
|
+
* Контрольная точка, с нее начинается desktop версия
|
|
28
|
+
* @default 1024
|
|
29
|
+
*/
|
|
30
|
+
breakpoint?: number | undefined;
|
|
31
|
+
} & React.RefAttributes<HTMLDivElement | HTMLHeadingElement>>;
|
|
32
|
+
export { TitleResponsiveProps, TitleResponsive };
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { HTMLAttributes } from "react";
|
|
4
|
+
import { Color } from "./colors-facf1d2a";
|
|
5
|
+
import { TextSkeletonProps } from "./types-1328ead9";
|
|
6
|
+
declare function getDefaultWeight(font: "styrene" | "system", platform: "mobile" | "desktop"): "medium" | "bold" | "semibold";
|
|
7
|
+
type NativeProps = HTMLAttributes<HTMLHeadingElement>;
|
|
8
|
+
type TitleProps = Omit<NativeProps, 'color'> & {
|
|
9
|
+
/**
|
|
10
|
+
* HTML тег
|
|
11
|
+
*/
|
|
12
|
+
tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
|
|
13
|
+
/**
|
|
14
|
+
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
|
|
15
|
+
*/
|
|
16
|
+
view?: 'xlarge' | 'large' | 'medium' | 'small' | 'xsmall';
|
|
17
|
+
/**
|
|
18
|
+
* Цвет текста
|
|
19
|
+
*/
|
|
20
|
+
color?: Color;
|
|
21
|
+
/**
|
|
22
|
+
* Толщина шрифта
|
|
23
|
+
*/
|
|
24
|
+
weight?: 'regular' | 'medium' | 'bold' | 'semibold';
|
|
25
|
+
/**
|
|
26
|
+
* Шрифт текста
|
|
27
|
+
*/
|
|
28
|
+
font?: 'styrene' | 'system';
|
|
29
|
+
/**
|
|
30
|
+
* Добавляет отступы
|
|
31
|
+
*/
|
|
32
|
+
defaultMargins?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Css-класс для стилизации (native prop)
|
|
35
|
+
*/
|
|
36
|
+
className?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Id компонента для тестов
|
|
39
|
+
*/
|
|
40
|
+
dataTestId?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Контент (native prop)
|
|
43
|
+
*/
|
|
44
|
+
children?: React.ReactNode;
|
|
45
|
+
/**
|
|
46
|
+
* Количество строк
|
|
47
|
+
*/
|
|
48
|
+
rowLimit?: 1 | 2 | 3;
|
|
49
|
+
/**
|
|
50
|
+
* Показать скелетон
|
|
51
|
+
*/
|
|
52
|
+
showSkeleton?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Пропы для скелетона
|
|
55
|
+
*/
|
|
56
|
+
skeletonProps?: TextSkeletonProps;
|
|
57
|
+
/**
|
|
58
|
+
* Значение по-умолчанию для хука useMatchMedia
|
|
59
|
+
*/
|
|
60
|
+
defaultMatchMediaValue?: boolean | (() => boolean);
|
|
61
|
+
};
|
|
62
|
+
type PrivateProps = {
|
|
63
|
+
styles: {
|
|
64
|
+
[key: string]: string;
|
|
65
|
+
};
|
|
66
|
+
platform: 'mobile' | 'desktop';
|
|
67
|
+
};
|
|
68
|
+
type TitleElementType = HTMLHeadingElement | HTMLDivElement;
|
|
69
|
+
declare const TitleBase: React.ForwardRefExoticComponent<Omit<NativeProps, "color"> & {
|
|
70
|
+
/**
|
|
71
|
+
* HTML тег
|
|
72
|
+
*/
|
|
73
|
+
tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
|
|
74
|
+
/**
|
|
75
|
+
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
|
|
76
|
+
*/
|
|
77
|
+
view?: "small" | "medium" | "xlarge" | "large" | "xsmall" | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Цвет текста
|
|
80
|
+
*/
|
|
81
|
+
color?: "link" | "accent" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "attention" | "positive" | "negative" | "static-accent" | "disabled" | "static-primary-light" | "static-secondary-light" | "static-tertiary-light" | "static-primary-dark" | "static-secondary-dark" | "static-tertiary-dark" | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Толщина шрифта
|
|
84
|
+
*/
|
|
85
|
+
weight?: "bold" | "regular" | "medium" | "semibold" | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* Шрифт текста
|
|
88
|
+
*/
|
|
89
|
+
font?: "styrene" | "system" | undefined;
|
|
90
|
+
/**
|
|
91
|
+
* Добавляет отступы
|
|
92
|
+
*/
|
|
93
|
+
defaultMargins?: boolean | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* Css-класс для стилизации (native prop)
|
|
96
|
+
*/
|
|
97
|
+
className?: string | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* Id компонента для тестов
|
|
100
|
+
*/
|
|
101
|
+
dataTestId?: string | undefined;
|
|
102
|
+
/**
|
|
103
|
+
* Контент (native prop)
|
|
104
|
+
*/
|
|
105
|
+
children?: React.ReactNode;
|
|
106
|
+
/**
|
|
107
|
+
* Количество строк
|
|
108
|
+
*/
|
|
109
|
+
rowLimit?: 1 | 2 | 3 | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* Показать скелетон
|
|
112
|
+
*/
|
|
113
|
+
showSkeleton?: boolean | undefined;
|
|
114
|
+
/**
|
|
115
|
+
* Пропы для скелетона
|
|
116
|
+
*/
|
|
117
|
+
skeletonProps?: TextSkeletonProps | undefined;
|
|
118
|
+
/**
|
|
119
|
+
* Значение по-умолчанию для хука useMatchMedia
|
|
120
|
+
*/
|
|
121
|
+
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
122
|
+
} & PrivateProps & React.RefAttributes<TitleElementType>>;
|
|
123
|
+
export { getDefaultWeight, TitleProps, TitleBase };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ComponentType, SVGProps } from "react";
|
|
4
4
|
import { ButtonProps } from "@alfalab/core-components-button";
|
|
5
|
-
import { FieldProps as BaseFieldProps } from "../typings-
|
|
5
|
+
import { FieldProps as BaseFieldProps } from "../typings-7d83ec1e";
|
|
6
6
|
import { PickerButtonSize, PickerButtonVariant } from "../types";
|
|
7
7
|
type FieldProps = Omit<BaseFieldProps, 'size' | 'hint' | 'success' | 'error' | 'placeholder'> & ButtonProps & {
|
|
8
8
|
buttonSize?: PickerButtonSize;
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
--gap-2xs: 4px; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
18
18
|
|
|
19
19
|
/* новые значения, используйте их */
|
|
20
|
+
--gap-4: var(--gap-2xs);
|
|
20
21
|
} :root {
|
|
21
22
|
} :root {
|
|
22
23
|
--arrow-transform: rotate(180deg);
|
|
@@ -26,7 +27,7 @@
|
|
|
26
27
|
} .addonsContainer {
|
|
27
28
|
display: flex
|
|
28
29
|
} .addonsContainer.showControlIcon {
|
|
29
|
-
margin-right: var(--gap-
|
|
30
|
+
margin-right: var(--gap-4);
|
|
30
31
|
} .open {
|
|
31
32
|
transform: var(--arrow-transform);
|
|
32
33
|
} .linkOpen:not(:hover) {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { TitleProps } from "./component-eb15729d";
|
|
4
|
+
declare const Title: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLHeadingElement>, "color"> & {
|
|
5
|
+
tag: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
6
|
+
view?: "small" | "medium" | "xlarge" | "large" | "xsmall" | undefined;
|
|
7
|
+
color?: "link" | "accent" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "attention" | "positive" | "negative" | "static-accent" | "disabled" | "static-primary-light" | "static-secondary-light" | "static-tertiary-light" | "static-primary-dark" | "static-secondary-dark" | "static-tertiary-dark" | undefined;
|
|
8
|
+
weight?: "bold" | "regular" | "medium" | "semibold" | undefined;
|
|
9
|
+
font?: "styrene" | "system" | undefined;
|
|
10
|
+
defaultMargins?: boolean | undefined;
|
|
11
|
+
className?: string | undefined;
|
|
12
|
+
dataTestId?: string | undefined;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
rowLimit?: 1 | 2 | 3 | undefined;
|
|
15
|
+
showSkeleton?: boolean | undefined;
|
|
16
|
+
skeletonProps?: import("./types-1328ead9").TextSkeletonProps | undefined;
|
|
17
|
+
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
18
|
+
} & React.RefAttributes<HTMLDivElement | HTMLHeadingElement>>;
|
|
19
|
+
export { Title };
|
|
20
|
+
export type { TitleProps };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare const TitleMobile: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLHeadingElement>, "color"> & {
|
|
4
|
+
tag: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
5
|
+
view?: "small" | "medium" | "xlarge" | "large" | "xsmall" | undefined;
|
|
6
|
+
color?: "link" | "accent" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "attention" | "positive" | "negative" | "static-accent" | "disabled" | "static-primary-light" | "static-secondary-light" | "static-tertiary-light" | "static-primary-dark" | "static-secondary-dark" | "static-tertiary-dark" | undefined;
|
|
7
|
+
weight?: "bold" | "regular" | "medium" | "semibold" | undefined;
|
|
8
|
+
font?: "styrene" | "system" | undefined;
|
|
9
|
+
defaultMargins?: boolean | undefined;
|
|
10
|
+
className?: string | undefined;
|
|
11
|
+
dataTestId?: string | undefined;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
rowLimit?: 1 | 2 | 3 | undefined;
|
|
14
|
+
showSkeleton?: boolean | undefined;
|
|
15
|
+
skeletonProps?: import("./types-1328ead9").TextSkeletonProps | undefined;
|
|
16
|
+
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
17
|
+
} & React.RefAttributes<HTMLDivElement | HTMLHeadingElement>>;
|
|
18
|
+
export { TitleMobile };
|
|
19
|
+
export type { TitleProps as TitleMobileProps } from "./component-eb15729d";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./use-skeleton-1328ead9";
|
package/cssm/index.module.css
CHANGED
|
@@ -17,14 +17,16 @@
|
|
|
17
17
|
--gap-m: 16px; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
18
18
|
|
|
19
19
|
/* новые значения, используйте их */
|
|
20
|
+
--gap-8: var(--gap-xs);
|
|
21
|
+
--gap-16: var(--gap-m);
|
|
20
22
|
} :root {
|
|
21
23
|
} :root {
|
|
22
24
|
} .container {
|
|
23
25
|
min-width: auto;
|
|
24
26
|
} :global(.cc-picker-button).optionsPopover.sideGap {
|
|
25
|
-
padding: 0 var(--gap-
|
|
27
|
+
padding: 0 var(--gap-8);
|
|
26
28
|
} :global(.cc-picker-button) .option {
|
|
27
|
-
padding: 0 var(--gap-
|
|
29
|
+
padding: 0 var(--gap-16)
|
|
28
30
|
} :global(.cc-picker-button) .option:before {
|
|
29
31
|
/* Удаляем разделители у опций выпадающего списка. */
|
|
30
32
|
display: none;
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
--gap-s: 12px; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
17
17
|
|
|
18
18
|
/* новые значения, используйте их */
|
|
19
|
+
--gap-12: var(--gap-s);
|
|
19
20
|
} :root {
|
|
20
21
|
} :root {
|
|
21
22
|
} .container {
|
|
@@ -23,7 +24,7 @@
|
|
|
23
24
|
align-items: center;
|
|
24
25
|
} .icon {
|
|
25
26
|
display: flex;
|
|
26
|
-
margin-right: var(--gap-
|
|
27
|
+
margin-right: var(--gap-12);
|
|
27
28
|
} .content {
|
|
28
29
|
overflow: hidden;
|
|
29
30
|
flex: 1;
|
|
@@ -677,6 +677,14 @@ type BaseSelectProps = {
|
|
|
677
677
|
* Обработчик скрола
|
|
678
678
|
*/
|
|
679
679
|
onScroll?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
680
|
+
/**
|
|
681
|
+
* Обработчик нажатия на крестик для очистки поля
|
|
682
|
+
*/
|
|
683
|
+
onClear?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
684
|
+
/**
|
|
685
|
+
* Флаг, показать крестик для очистки поля
|
|
686
|
+
*/
|
|
687
|
+
clear?: boolean;
|
|
680
688
|
/**
|
|
681
689
|
* Хранит функцию, с помощью которой можно обновить положение поповера
|
|
682
690
|
*/
|
|
@@ -1128,7 +1136,21 @@ type SelectProps = BaseSelectProps & AdditionalMobileProps & ConditionalMobilePr
|
|
|
1128
1136
|
*/
|
|
1129
1137
|
defaultMatchMediaValue?: boolean | (() => boolean);
|
|
1130
1138
|
};
|
|
1131
|
-
|
|
1139
|
+
type ClearButtonProps = {
|
|
1140
|
+
/**
|
|
1141
|
+
* Обработчик нажатия на крестик для очистки поля
|
|
1142
|
+
*/
|
|
1143
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
1144
|
+
/**
|
|
1145
|
+
* Флаг, поле заблокировано
|
|
1146
|
+
*/
|
|
1147
|
+
disabled?: boolean;
|
|
1148
|
+
/**
|
|
1149
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
1150
|
+
*/
|
|
1151
|
+
dataTestId?: string;
|
|
1152
|
+
};
|
|
1153
|
+
export { BottomSheet, CLOSE_OFFSET, HEADER_OFFSET, InputProps, Input, ModalResponsive as Modal, getModalTestIds, FooterProps$0 as FooterProps, Footer$0 as Footer, HeaderProps$0 as HeaderProps, Header$0 as Header, SwipeableBackdropProps, SwipeableBackdrop, horizontalDirections, ShouldSkipSwipingParams, SwipeDirection, AnyObject, OptionShape, GroupShape, BaseSelectChangePayload, BaseSelectProps, FieldProps, ArrowProps, OptionsListProps, OptgroupProps, OptionProps, CheckmarkProps, SearchProps, SelectFieldProps, AdditionalMobileProps, BottomSheetSelectMobileProps, ModalSelectMobileProps, SelectModalMobileProps, SelectMobileProps, SelectDesktopProps, SelectProps, ClearButtonProps };
|
|
1132
1154
|
export type { BottomSheetProps, BottomSheetTitleAlign, HeaderProps as ModalHeaderProps, FooterProps as ModalFooterProps };
|
|
1133
1155
|
export { ModalResponsiveProps as ModalProps } from "./typings-d6bfd5b7";
|
|
1134
1156
|
export { ModalContext } from "./Context-c2e6f1b2";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode, RefObject } from 'react';
|
|
2
|
-
import { BaseSelectProps, GroupShape, OptionShape, OptionsListProps } from "./typings-
|
|
2
|
+
import { BaseSelectProps, GroupShape, OptionShape, OptionsListProps } from "./typings-7d83ec1e";
|
|
3
3
|
declare const isGroup: (item: OptionShape | GroupShape) => item is GroupShape;
|
|
4
4
|
declare const isOptionShape: (item: OptionShape | string | null) => item is OptionShape;
|
|
5
5
|
declare const joinOptions: ({ selected, selectedMultiple, }: {
|
|
@@ -63,6 +63,7 @@ declare function getSelectTestIds(dataTestId: string): {
|
|
|
63
63
|
fieldRightAddons: string;
|
|
64
64
|
fieldError: string;
|
|
65
65
|
fieldHint: string;
|
|
66
|
+
fieldClearIcon: string;
|
|
66
67
|
searchInput: string;
|
|
67
68
|
searchFormControl: string;
|
|
68
69
|
searchInner: string;
|
|
@@ -15,7 +15,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
15
15
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
16
16
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
17
17
|
|
|
18
|
-
var styles = {"container":"picker-
|
|
18
|
+
var styles = {"container":"picker-button__container_o617f","optionsPopover":"picker-button__optionsPopover_o617f","sideGap":"picker-button__sideGap_o617f","option":"picker-button__option_o617f"};
|
|
19
19
|
require('./../index.css')
|
|
20
20
|
|
|
21
21
|
var SIDE_POSITIONS = ['right', 'right-start', 'right-end', 'left', 'left-start', 'left-end'];
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import React from
|
|
2
|
+
import React from "react";
|
|
3
3
|
import { ChangeEvent, DetailedHTMLProps, InputHTMLAttributes, LabelHTMLAttributes, ReactNode, RefObject } from "react";
|
|
4
|
+
declare const getIcon: (size: "s" | "m" | 20 | 24) => React.JSX.Element;
|
|
5
|
+
declare const IconCheck20: () => React.JSX.Element;
|
|
6
|
+
declare const IconCheck24: () => React.JSX.Element;
|
|
4
7
|
type NativeProps = InputHTMLAttributes<HTMLInputElement>;
|
|
5
8
|
type Align = 'start' | 'center';
|
|
6
9
|
type CheckboxProps = Omit<NativeProps, 'size' | 'onChange' | 'enterKeyHint'> & {
|
|
@@ -165,4 +168,4 @@ declare const Checkbox: React.ForwardRefExoticComponent<Omit<NativeProps, "size"
|
|
|
165
168
|
*/
|
|
166
169
|
labelProps?: React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement> | undefined;
|
|
167
170
|
} & React.RefAttributes<HTMLLabelElement>>;
|
|
168
|
-
export { CheckboxProps, Checkbox };
|
|
171
|
+
export { getIcon, IconCheck20, IconCheck24, CheckboxProps, Checkbox };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { OptgroupProps } from "./typings-
|
|
3
|
+
import { OptgroupProps } from "./typings-7d83ec1e";
|
|
4
4
|
declare const Optgroup: ({ children, className, label, size }: OptgroupProps) => React.JSX.Element;
|
|
5
5
|
export { Optgroup };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const colors: readonly ["tertiary", "disabled", "accent", "primary", "attention", "positive", "secondary", "tertiary-inverted", "primary-inverted", "secondary-inverted", "link", "negative", "static-primary-light", "static-secondary-light", "static-tertiary-light", "static-primary-dark", "static-secondary-dark", "static-tertiary-dark", "static-accent"];
|
|
2
|
+
type Color = typeof colors[number];
|
|
3
|
+
export { colors, Color };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { TitleProps } from "./index-03d088c4";
|
|
4
|
+
type TitleResponsiveProps = TitleProps & {
|
|
5
|
+
/**
|
|
6
|
+
* Контрольная точка, с нее начинается desktop версия
|
|
7
|
+
* @default 1024
|
|
8
|
+
*/
|
|
9
|
+
breakpoint?: number;
|
|
10
|
+
};
|
|
11
|
+
declare const TitleResponsive: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLHeadingElement>, "color"> & {
|
|
12
|
+
tag: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
13
|
+
view?: "small" | "medium" | "xlarge" | "large" | "xsmall" | undefined;
|
|
14
|
+
color?: "link" | "accent" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "attention" | "positive" | "negative" | "static-accent" | "disabled" | "static-primary-light" | "static-secondary-light" | "static-tertiary-light" | "static-primary-dark" | "static-secondary-dark" | "static-tertiary-dark" | undefined;
|
|
15
|
+
weight?: "bold" | "regular" | "medium" | "semibold" | undefined;
|
|
16
|
+
font?: "styrene" | "system" | undefined;
|
|
17
|
+
defaultMargins?: boolean | undefined;
|
|
18
|
+
className?: string | undefined;
|
|
19
|
+
dataTestId?: string | undefined;
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
rowLimit?: 1 | 2 | 3 | undefined;
|
|
22
|
+
showSkeleton?: boolean | undefined;
|
|
23
|
+
skeletonProps?: import("./types-1328ead9").TextSkeletonProps | undefined;
|
|
24
|
+
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
25
|
+
} & {
|
|
26
|
+
/**
|
|
27
|
+
* Контрольная точка, с нее начинается desktop версия
|
|
28
|
+
* @default 1024
|
|
29
|
+
*/
|
|
30
|
+
breakpoint?: number | undefined;
|
|
31
|
+
} & React.RefAttributes<HTMLDivElement | HTMLHeadingElement>>;
|
|
32
|
+
export { TitleResponsiveProps, TitleResponsive };
|