@salutejs/sdds-cs 0.317.1-canary.2008.15410012369.0 → 0.317.1-canary.2013.15560496949.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Accordion/Accordion.d.ts +9 -10
- package/components/Attach/Attach.d.ts +158 -159
- package/components/Autocomplete/Autocomplete.d.ts +352 -353
- package/components/Avatar/Avatar.d.ts +46 -47
- package/components/AvatarGroup/AvatarGroup.d.ts +1 -2
- package/components/Badge/Badge.d.ts +40 -41
- package/components/Breadcrumbs/Breadcrumbs.d.ts +3 -4
- package/components/Button/Button.d.ts +71 -71
- package/components/ButtonGroup/ButtonGroup.d.ts +0 -1
- package/components/Card/Card.d.ts +5 -6
- package/components/Carousel/Carousel.config.d.ts +14 -0
- package/components/Carousel/Carousel.config.js +23 -0
- package/components/Carousel/Carousel.d.ts +9 -0
- package/components/Carousel/Carousel.js +10 -0
- package/components/Carousel/index.d.ts +2 -0
- package/components/Carousel/index.js +19 -0
- package/components/Cell/Cell.d.ts +19 -20
- package/components/Checkbox/Checkbox.d.ts +1 -1
- package/components/Chip/Chip.d.ts +0 -1
- package/components/ChipGroup/ChipGroup.d.ts +0 -1
- package/components/Combobox/Combobox.config.js +3 -3
- package/components/Combobox/Combobox.d.ts +975 -951
- package/components/Counter/Counter.d.ts +0 -1
- package/components/DatePicker/DatePicker.d.ts +52 -54
- package/components/Divider/Divider.d.ts +0 -1
- package/components/Drawer/Drawer.d.ts +18 -19
- package/components/Dropdown/Dropdown.d.ts +52 -52
- package/components/Dropzone/Dropzone.d.ts +15 -16
- package/components/EmptyState/EmptyState.d.ts +0 -1
- package/components/Flow/Flow.d.ts +1 -2
- package/components/Grid/Grid.d.ts +0 -1
- package/components/IconButton/IconButton.d.ts +35 -36
- package/components/Image/Image.d.ts +3 -4
- package/components/Indicator/Indicator.d.ts +0 -1
- package/components/Link/Link.d.ts +1 -2
- package/components/Mask/Mask.d.ts +224 -225
- package/components/Notification/Notification.d.ts +7 -6
- package/components/Notification/Notification.js +3 -21
- package/components/Notification/index.d.ts +3 -2
- package/components/Notification/index.js +4 -3
- package/components/NumberFormat/NumberFormat.d.ts +1 -1
- package/components/NumberInput/NumberInput.d.ts +38 -39
- package/components/Pagination/Pagination.d.ts +0 -1
- package/components/Popover/Popover.d.ts +0 -1
- package/components/Price/Price.d.ts +0 -1
- package/components/Progress/Progress.d.ts +0 -1
- package/components/Radiobox/Radiobox.d.ts +1 -1
- package/components/Range/Range.d.ts +105 -106
- package/components/Rating/Rating.d.ts +13 -14
- package/components/Segment/Segment.d.ts +8 -9
- package/components/Select/Select.config.js +3 -3
- package/components/Select/Select.d.ts +247 -244
- package/components/Sheet/Sheet.d.ts +0 -1
- package/components/Skeleton/Skeleton.d.ts +4 -5
- package/components/Slider/Slider.d.ts +96 -105
- package/components/Spinner/Spinner.d.ts +9 -14
- package/components/Steps/Steps.d.ts +0 -1
- package/components/Switch/Switch.d.ts +1 -1
- package/components/Table/Table.config.js +3 -3
- package/components/Table/Table.d.ts +0 -1
- package/components/Tabs/TabItem.d.ts +23 -23
- package/components/Tabs/Tabs.d.ts +1 -1
- package/components/TextArea/TextArea.d.ts +205 -206
- package/components/TextField/TextField.d.ts +224 -225
- package/components/Toast/Toast.d.ts +0 -1
- package/components/ToastNew/ToastNew.d.ts +1 -1
- package/components/Tokens/Colors/Colors.styles.d.ts +25 -26
- package/components/Tokens/Typography/Typography.styles.d.ts +23 -24
- package/components/Toolbar/Toolbar.d.ts +5 -6
- package/components/Tree/Tree.d.ts +0 -1
- package/components/Typography/Typography.d.ts +204 -205
- package/components/ViewContainer/ViewContainer.d.ts +0 -1
- package/emotion/cjs/components/Carousel/Carousel.config.js +23 -0
- package/emotion/cjs/components/Carousel/Carousel.js +10 -0
- package/emotion/cjs/components/Carousel/Carousel.stories.tsx +138 -0
- package/emotion/cjs/components/Carousel/index.js +19 -0
- package/emotion/cjs/components/Combobox/Combobox.config.js +3 -3
- package/emotion/cjs/components/Combobox/Combobox.stories.tsx +186 -0
- package/emotion/cjs/components/DatePicker/DatePicker.stories.tsx +10 -2
- package/emotion/cjs/components/Notification/Notification.js +3 -21
- package/emotion/cjs/components/Notification/Notification.stories.tsx +3 -8
- package/emotion/cjs/components/Notification/index.js +4 -3
- package/emotion/cjs/components/Select/Select.config.js +3 -3
- package/emotion/cjs/components/Select/Select.stories.tsx +186 -0
- package/emotion/cjs/components/Table/Table.config.js +3 -3
- package/emotion/cjs/index.js +11 -0
- package/emotion/es/components/Carousel/Carousel.config.js +17 -0
- package/emotion/es/components/Carousel/Carousel.js +5 -0
- package/emotion/es/components/Carousel/Carousel.stories.tsx +138 -0
- package/emotion/es/components/Carousel/index.js +2 -0
- package/emotion/es/components/Combobox/Combobox.config.js +3 -3
- package/emotion/es/components/Combobox/Combobox.stories.tsx +186 -0
- package/emotion/es/components/DatePicker/DatePicker.stories.tsx +10 -2
- package/emotion/es/components/Notification/Notification.js +4 -5
- package/emotion/es/components/Notification/Notification.stories.tsx +3 -8
- package/emotion/es/components/Notification/index.js +2 -1
- package/emotion/es/components/Select/Select.config.js +3 -3
- package/emotion/es/components/Select/Select.stories.tsx +186 -0
- package/emotion/es/components/Table/Table.config.js +3 -3
- package/emotion/es/index.js +1 -0
- package/es/components/Carousel/Carousel.config.js +17 -0
- package/es/components/Carousel/Carousel.js +5 -0
- package/es/components/Carousel/index.js +2 -0
- package/es/components/Combobox/Combobox.config.js +3 -3
- package/es/components/Notification/Notification.js +4 -5
- package/es/components/Notification/index.js +2 -1
- package/es/components/Select/Select.config.js +3 -3
- package/es/components/Table/Table.config.js +3 -3
- package/es/index.js +1 -0
- package/index.d.ts +1 -0
- package/index.js +11 -0
- package/mixins/index.d.ts +1 -2
- package/package.json +7 -7
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
declare const mergedConfig: import("@salutejs/plasma-new-hope/styled-components").ComponentConfig<string, {
|
3
2
|
view: {
|
4
3
|
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
@@ -38,17 +37,17 @@ declare const mergedConfig: import("@salutejs/plasma-new-hope/styled-components"
|
|
38
37
|
negative: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
39
38
|
};
|
40
39
|
}>, (import("react").HTMLAttributes<HTMLDivElement> & {
|
41
|
-
size?: string
|
42
|
-
name?: string
|
43
|
-
url?: string
|
44
|
-
customText?: string
|
45
|
-
status?: "active" | "inactive"
|
46
|
-
isScalable?: boolean
|
47
|
-
focused?: boolean
|
48
|
-
statusLabels?: import("@salutejs/plasma-new-hope/types/components/Avatar/Avatar.types").StatusLabels
|
49
|
-
hasExtra?: boolean
|
50
|
-
type?: "badge" | "counter"
|
51
|
-
extraPlacement?: "top-
|
40
|
+
size?: string;
|
41
|
+
name?: string;
|
42
|
+
url?: string;
|
43
|
+
customText?: string;
|
44
|
+
status?: "active" | "inactive";
|
45
|
+
isScalable?: boolean;
|
46
|
+
focused?: boolean;
|
47
|
+
statusLabels?: import("@salutejs/plasma-new-hope/types/components/Avatar/Avatar.types").StatusLabels;
|
48
|
+
hasExtra?: boolean;
|
49
|
+
type?: "badge" | "counter";
|
50
|
+
extraPlacement?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
52
51
|
} & {
|
53
52
|
badgeView?: string | undefined;
|
54
53
|
pilled?: boolean | undefined;
|
@@ -62,17 +61,17 @@ declare const mergedConfig: import("@salutejs/plasma-new-hope/styled-components"
|
|
62
61
|
count?: undefined;
|
63
62
|
maxCount?: undefined;
|
64
63
|
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
|
65
|
-
size?: string
|
66
|
-
name?: string
|
67
|
-
url?: string
|
68
|
-
customText?: string
|
69
|
-
status?: "active" | "inactive"
|
70
|
-
isScalable?: boolean
|
71
|
-
focused?: boolean
|
72
|
-
statusLabels?: import("@salutejs/plasma-new-hope/types/components/Avatar/Avatar.types").StatusLabels
|
73
|
-
hasExtra?: boolean
|
74
|
-
type?: "badge" | "counter"
|
75
|
-
extraPlacement?: "top-
|
64
|
+
size?: string;
|
65
|
+
name?: string;
|
66
|
+
url?: string;
|
67
|
+
customText?: string;
|
68
|
+
status?: "active" | "inactive";
|
69
|
+
isScalable?: boolean;
|
70
|
+
focused?: boolean;
|
71
|
+
statusLabels?: import("@salutejs/plasma-new-hope/types/components/Avatar/Avatar.types").StatusLabels;
|
72
|
+
hasExtra?: boolean;
|
73
|
+
type?: "badge" | "counter";
|
74
|
+
extraPlacement?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
76
75
|
} & {
|
77
76
|
counterView?: string | undefined;
|
78
77
|
count?: number | undefined;
|
@@ -84,7 +83,7 @@ declare const mergedConfig: import("@salutejs/plasma-new-hope/styled-components"
|
|
84
83
|
customColor?: undefined;
|
85
84
|
customBackgroundColor?: undefined;
|
86
85
|
contentLeft?: undefined;
|
87
|
-
contentRight?: undefined;
|
86
|
+
contentRight?: never | undefined;
|
88
87
|
} & import("react").RefAttributes<HTMLDivElement>)>;
|
89
88
|
declare const Avatar: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
90
89
|
view: {
|
@@ -106,17 +105,17 @@ declare const Avatar: import("react").FunctionComponent<import("@salutejs/plasma
|
|
106
105
|
negative: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
107
106
|
};
|
108
107
|
}> & ((import("react").HTMLAttributes<HTMLDivElement> & {
|
109
|
-
size?: string
|
110
|
-
name?: string
|
111
|
-
url?: string
|
112
|
-
customText?: string
|
113
|
-
status?: "active" | "inactive"
|
114
|
-
isScalable?: boolean
|
115
|
-
focused?: boolean
|
116
|
-
statusLabels?: import("@salutejs/plasma-new-hope/types/components/Avatar/Avatar.types").StatusLabels
|
117
|
-
hasExtra?: boolean
|
118
|
-
type?: "badge" | "counter"
|
119
|
-
extraPlacement?: "top-
|
108
|
+
size?: string;
|
109
|
+
name?: string;
|
110
|
+
url?: string;
|
111
|
+
customText?: string;
|
112
|
+
status?: "active" | "inactive";
|
113
|
+
isScalable?: boolean;
|
114
|
+
focused?: boolean;
|
115
|
+
statusLabels?: import("@salutejs/plasma-new-hope/types/components/Avatar/Avatar.types").StatusLabels;
|
116
|
+
hasExtra?: boolean;
|
117
|
+
type?: "badge" | "counter";
|
118
|
+
extraPlacement?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
120
119
|
} & {
|
121
120
|
badgeView?: string | undefined;
|
122
121
|
pilled?: boolean | undefined;
|
@@ -130,17 +129,17 @@ declare const Avatar: import("react").FunctionComponent<import("@salutejs/plasma
|
|
130
129
|
count?: undefined;
|
131
130
|
maxCount?: undefined;
|
132
131
|
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
|
133
|
-
size?: string
|
134
|
-
name?: string
|
135
|
-
url?: string
|
136
|
-
customText?: string
|
137
|
-
status?: "active" | "inactive"
|
138
|
-
isScalable?: boolean
|
139
|
-
focused?: boolean
|
140
|
-
statusLabels?: import("@salutejs/plasma-new-hope/types/components/Avatar/Avatar.types").StatusLabels
|
141
|
-
hasExtra?: boolean
|
142
|
-
type?: "badge" | "counter"
|
143
|
-
extraPlacement?: "top-
|
132
|
+
size?: string;
|
133
|
+
name?: string;
|
134
|
+
url?: string;
|
135
|
+
customText?: string;
|
136
|
+
status?: "active" | "inactive";
|
137
|
+
isScalable?: boolean;
|
138
|
+
focused?: boolean;
|
139
|
+
statusLabels?: import("@salutejs/plasma-new-hope/types/components/Avatar/Avatar.types").StatusLabels;
|
140
|
+
hasExtra?: boolean;
|
141
|
+
type?: "badge" | "counter";
|
142
|
+
extraPlacement?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
144
143
|
} & {
|
145
144
|
counterView?: string | undefined;
|
146
145
|
count?: number | undefined;
|
@@ -152,6 +151,6 @@ declare const Avatar: import("react").FunctionComponent<import("@salutejs/plasma
|
|
152
151
|
customColor?: undefined;
|
153
152
|
customBackgroundColor?: undefined;
|
154
153
|
contentLeft?: undefined;
|
155
|
-
contentRight?: undefined;
|
154
|
+
contentRight?: never | undefined;
|
156
155
|
} & import("react").RefAttributes<HTMLDivElement>))>;
|
157
156
|
export { Avatar, mergedConfig };
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
export declare const AvatarGroup: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<import("@salutejs/plasma-new-hope/types/engines/types").Variants> & import("react").HTMLAttributes<HTMLDivElement> & {
|
3
|
-
children:
|
2
|
+
children: React.ReactNode;
|
4
3
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
/**
|
3
2
|
* Компонент Badge.
|
4
3
|
*/
|
@@ -22,59 +21,59 @@ export declare const Badge: import("react").FunctionComponent<import("@salutejs/
|
|
22
21
|
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
23
22
|
};
|
24
23
|
}> & ((import("react").HTMLAttributes<HTMLDivElement> & {
|
25
|
-
text?: string
|
26
|
-
customColor?: string
|
27
|
-
customBackgroundColor?: string
|
28
|
-
maxWidth?: import("
|
29
|
-
size?: string
|
30
|
-
view?: string
|
24
|
+
text?: string;
|
25
|
+
customColor?: string;
|
26
|
+
customBackgroundColor?: string;
|
27
|
+
maxWidth?: import("react").CSSProperties["width"];
|
28
|
+
size?: string;
|
29
|
+
view?: string;
|
31
30
|
} & {
|
32
31
|
contentLeft?: import("react").ReactNode;
|
33
|
-
contentRight?:
|
32
|
+
contentRight?: never;
|
34
33
|
} & {
|
35
|
-
clear?: true
|
36
|
-
pilled?:
|
37
|
-
transparent?:
|
34
|
+
clear?: true;
|
35
|
+
pilled?: never;
|
36
|
+
transparent?: never;
|
38
37
|
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
|
39
|
-
text?: string
|
40
|
-
customColor?: string
|
41
|
-
customBackgroundColor?: string
|
42
|
-
maxWidth?: import("
|
43
|
-
size?: string
|
44
|
-
view?: string
|
38
|
+
text?: string;
|
39
|
+
customColor?: string;
|
40
|
+
customBackgroundColor?: string;
|
41
|
+
maxWidth?: import("react").CSSProperties["width"];
|
42
|
+
size?: string;
|
43
|
+
view?: string;
|
45
44
|
} & {
|
46
45
|
contentLeft?: import("react").ReactNode;
|
47
|
-
contentRight?:
|
46
|
+
contentRight?: never;
|
48
47
|
} & {
|
49
|
-
pilled?: boolean
|
50
|
-
transparent?: boolean
|
51
|
-
clear?:
|
48
|
+
pilled?: boolean;
|
49
|
+
transparent?: boolean;
|
50
|
+
clear?: never;
|
52
51
|
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
|
53
|
-
text?: string
|
54
|
-
customColor?: string
|
55
|
-
customBackgroundColor?: string
|
56
|
-
maxWidth?: import("
|
57
|
-
size?: string
|
58
|
-
view?: string
|
52
|
+
text?: string;
|
53
|
+
customColor?: string;
|
54
|
+
customBackgroundColor?: string;
|
55
|
+
maxWidth?: import("react").CSSProperties["width"];
|
56
|
+
size?: string;
|
57
|
+
view?: string;
|
59
58
|
} & {
|
60
|
-
contentLeft?:
|
59
|
+
contentLeft?: never;
|
61
60
|
contentRight?: import("react").ReactNode;
|
62
61
|
} & {
|
63
|
-
clear?: true
|
64
|
-
pilled?:
|
65
|
-
transparent?:
|
62
|
+
clear?: true;
|
63
|
+
pilled?: never;
|
64
|
+
transparent?: never;
|
66
65
|
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
|
67
|
-
text?: string
|
68
|
-
customColor?: string
|
69
|
-
customBackgroundColor?: string
|
70
|
-
maxWidth?: import("
|
71
|
-
size?: string
|
72
|
-
view?: string
|
66
|
+
text?: string;
|
67
|
+
customColor?: string;
|
68
|
+
customBackgroundColor?: string;
|
69
|
+
maxWidth?: import("react").CSSProperties["width"];
|
70
|
+
size?: string;
|
71
|
+
view?: string;
|
73
72
|
} & {
|
74
|
-
contentLeft?:
|
73
|
+
contentLeft?: never;
|
75
74
|
contentRight?: import("react").ReactNode;
|
76
75
|
} & {
|
77
|
-
pilled?: boolean
|
78
|
-
transparent?: boolean
|
79
|
-
clear?:
|
76
|
+
pilled?: boolean;
|
77
|
+
transparent?: boolean;
|
78
|
+
clear?: never;
|
80
79
|
} & import("react").RefAttributes<HTMLDivElement>))>;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
/**
|
3
2
|
* Breadcrumbs
|
4
3
|
*/
|
@@ -10,9 +9,9 @@ export declare const Breadcrumbs: import("react").FunctionComponent<import("@sal
|
|
10
9
|
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
11
10
|
};
|
12
11
|
}> & import("react").HTMLAttributes<HTMLDivElement> & {
|
13
|
-
view?: string
|
14
|
-
size?: string
|
12
|
+
view?: string;
|
13
|
+
size?: string;
|
15
14
|
separator?: import("react").ReactNode;
|
16
15
|
items: import("@salutejs/plasma-new-hope/types/components/Breadcrumbs/Breadcrumbs.types").BreadcrumbsItem[];
|
17
|
-
showItems?: number
|
16
|
+
showItems?: number;
|
18
17
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
@@ -17,50 +17,50 @@ declare const ButtonComponent: React.FunctionComponent<import("@salutejs/plasma-
|
|
17
17
|
filled: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
18
18
|
fixed: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
19
19
|
};
|
20
|
-
}> & ((Omit<React.ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<React.AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps
|
21
|
-
text?: string
|
20
|
+
}> & ((Omit<React.ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<React.AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
|
21
|
+
text?: string;
|
22
22
|
contentLeft?: React.ReactNode;
|
23
|
-
contentPlacing?:
|
24
|
-
isLoading?: boolean
|
23
|
+
contentPlacing?: "default" | "relaxed";
|
24
|
+
isLoading?: boolean;
|
25
25
|
loader?: React.ReactNode;
|
26
|
-
stretch?: boolean
|
27
|
-
stretching?:
|
28
|
-
square?: boolean
|
29
|
-
focused?: boolean
|
30
|
-
disabled?: boolean
|
31
|
-
pin?: "
|
32
|
-
view?: string
|
33
|
-
size?: string
|
34
|
-
outlined?: boolean
|
35
|
-
shiftLeft?: boolean
|
36
|
-
shiftRight?: boolean
|
37
|
-
blur?: "
|
26
|
+
stretch?: boolean;
|
27
|
+
stretching?: "fixed" | "auto" | "filled";
|
28
|
+
square?: boolean;
|
29
|
+
focused?: boolean;
|
30
|
+
disabled?: boolean;
|
31
|
+
pin?: import("@salutejs/plasma-new-hope/types/utils/roundness").Pin;
|
32
|
+
view?: string;
|
33
|
+
size?: string;
|
34
|
+
outlined?: boolean;
|
35
|
+
shiftLeft?: boolean;
|
36
|
+
shiftRight?: boolean;
|
37
|
+
blur?: import("@salutejs/plasma-new-hope/styled-components").Blur;
|
38
38
|
} & {
|
39
|
-
value?: string | number
|
40
|
-
contentRight?:
|
41
|
-
} & React.RefAttributes<HTMLButtonElement>) | (Omit<React.ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<React.AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps
|
42
|
-
text?: string
|
39
|
+
value?: string | number;
|
40
|
+
contentRight?: never;
|
41
|
+
} & React.RefAttributes<HTMLButtonElement>) | (Omit<React.ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<React.AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
|
42
|
+
text?: string;
|
43
43
|
contentLeft?: React.ReactNode;
|
44
|
-
contentPlacing?:
|
45
|
-
isLoading?: boolean
|
44
|
+
contentPlacing?: "default" | "relaxed";
|
45
|
+
isLoading?: boolean;
|
46
46
|
loader?: React.ReactNode;
|
47
|
-
stretch?: boolean
|
48
|
-
stretching?:
|
49
|
-
square?: boolean
|
50
|
-
focused?: boolean
|
51
|
-
disabled?: boolean
|
52
|
-
pin?: "
|
53
|
-
view?: string
|
54
|
-
size?: string
|
55
|
-
outlined?: boolean
|
56
|
-
shiftLeft?: boolean
|
57
|
-
shiftRight?: boolean
|
58
|
-
blur?: "
|
47
|
+
stretch?: boolean;
|
48
|
+
stretching?: "fixed" | "auto" | "filled";
|
49
|
+
square?: boolean;
|
50
|
+
focused?: boolean;
|
51
|
+
disabled?: boolean;
|
52
|
+
pin?: import("@salutejs/plasma-new-hope/types/utils/roundness").Pin;
|
53
|
+
view?: string;
|
54
|
+
size?: string;
|
55
|
+
outlined?: boolean;
|
56
|
+
shiftLeft?: boolean;
|
57
|
+
shiftRight?: boolean;
|
58
|
+
blur?: import("@salutejs/plasma-new-hope/styled-components").Blur;
|
59
59
|
} & {
|
60
|
-
value?:
|
60
|
+
value?: never;
|
61
61
|
contentRight?: React.ReactNode;
|
62
62
|
} & React.RefAttributes<HTMLButtonElement>))>;
|
63
|
-
export
|
63
|
+
export type ButtonProps = ComponentProps<typeof ButtonComponent>;
|
64
64
|
/**
|
65
65
|
* Кнопка.
|
66
66
|
*/
|
@@ -82,27 +82,27 @@ export declare const Button: React.ForwardRefExoticComponent<(Omit<import("@salu
|
|
82
82
|
filled: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
83
83
|
fixed: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
84
84
|
};
|
85
|
-
}> & Omit<React.ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<React.AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps
|
86
|
-
text?: string
|
85
|
+
}> & Omit<React.ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<React.AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
|
86
|
+
text?: string;
|
87
87
|
contentLeft?: React.ReactNode;
|
88
|
-
contentPlacing?:
|
89
|
-
isLoading?: boolean
|
88
|
+
contentPlacing?: "default" | "relaxed";
|
89
|
+
isLoading?: boolean;
|
90
90
|
loader?: React.ReactNode;
|
91
|
-
stretch?: boolean
|
92
|
-
stretching?:
|
93
|
-
square?: boolean
|
94
|
-
focused?: boolean
|
95
|
-
disabled?: boolean
|
96
|
-
pin?: "
|
97
|
-
view?: string
|
98
|
-
size?: string
|
99
|
-
outlined?: boolean
|
100
|
-
shiftLeft?: boolean
|
101
|
-
shiftRight?: boolean
|
102
|
-
blur?: "
|
91
|
+
stretch?: boolean;
|
92
|
+
stretching?: "fixed" | "auto" | "filled";
|
93
|
+
square?: boolean;
|
94
|
+
focused?: boolean;
|
95
|
+
disabled?: boolean;
|
96
|
+
pin?: import("@salutejs/plasma-new-hope/types/utils/roundness").Pin;
|
97
|
+
view?: string;
|
98
|
+
size?: string;
|
99
|
+
outlined?: boolean;
|
100
|
+
shiftLeft?: boolean;
|
101
|
+
shiftRight?: boolean;
|
102
|
+
blur?: import("@salutejs/plasma-new-hope/styled-components").Blur;
|
103
103
|
} & {
|
104
|
-
value?: string | number
|
105
|
-
contentRight?:
|
104
|
+
value?: string | number;
|
105
|
+
contentRight?: never;
|
106
106
|
} & React.RefAttributes<HTMLButtonElement>, "ref"> | Omit<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
107
107
|
view: {
|
108
108
|
accent: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
@@ -121,26 +121,26 @@ export declare const Button: React.ForwardRefExoticComponent<(Omit<import("@salu
|
|
121
121
|
filled: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
122
122
|
fixed: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
123
123
|
};
|
124
|
-
}> & Omit<React.ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<React.AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps
|
125
|
-
text?: string
|
124
|
+
}> & Omit<React.ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<React.AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
|
125
|
+
text?: string;
|
126
126
|
contentLeft?: React.ReactNode;
|
127
|
-
contentPlacing?:
|
128
|
-
isLoading?: boolean
|
127
|
+
contentPlacing?: "default" | "relaxed";
|
128
|
+
isLoading?: boolean;
|
129
129
|
loader?: React.ReactNode;
|
130
|
-
stretch?: boolean
|
131
|
-
stretching?:
|
132
|
-
square?: boolean
|
133
|
-
focused?: boolean
|
134
|
-
disabled?: boolean
|
135
|
-
pin?: "
|
136
|
-
view?: string
|
137
|
-
size?: string
|
138
|
-
outlined?: boolean
|
139
|
-
shiftLeft?: boolean
|
140
|
-
shiftRight?: boolean
|
141
|
-
blur?: "
|
130
|
+
stretch?: boolean;
|
131
|
+
stretching?: "fixed" | "auto" | "filled";
|
132
|
+
square?: boolean;
|
133
|
+
focused?: boolean;
|
134
|
+
disabled?: boolean;
|
135
|
+
pin?: import("@salutejs/plasma-new-hope/types/utils/roundness").Pin;
|
136
|
+
view?: string;
|
137
|
+
size?: string;
|
138
|
+
outlined?: boolean;
|
139
|
+
shiftLeft?: boolean;
|
140
|
+
shiftRight?: boolean;
|
141
|
+
blur?: import("@salutejs/plasma-new-hope/styled-components").Blur;
|
142
142
|
} & {
|
143
|
-
value?:
|
143
|
+
value?: never;
|
144
144
|
contentRight?: React.ReactNode;
|
145
145
|
} & React.RefAttributes<HTMLButtonElement>, "ref">) & React.RefAttributes<Omit<HTMLButtonElement, "value">>>;
|
146
146
|
export {};
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import { CardContent, CardInnerContent } from '@salutejs/plasma-new-hope/styled-components';
|
3
2
|
/**
|
4
3
|
* Компонент Card.
|
@@ -13,10 +12,10 @@ export declare const Card: import("react").FunctionComponent<import("@salutejs/p
|
|
13
12
|
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
14
13
|
};
|
15
14
|
}> & {
|
16
|
-
size?: string
|
17
|
-
view?: string
|
18
|
-
orientation?: "horizontal" | "vertical"
|
19
|
-
selected?: boolean
|
20
|
-
backgroundType?: "none" | "solid"
|
15
|
+
size?: string;
|
16
|
+
view?: string;
|
17
|
+
orientation?: "horizontal" | "vertical";
|
18
|
+
selected?: boolean;
|
19
|
+
backgroundType?: "none" | "solid";
|
21
20
|
} & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
22
21
|
export { CardContent, CardInnerContent };
|
@@ -0,0 +1,14 @@
|
|
1
|
+
export declare const config: {
|
2
|
+
defaults: {
|
3
|
+
view: string;
|
4
|
+
size: string;
|
5
|
+
};
|
6
|
+
variations: {
|
7
|
+
view: {
|
8
|
+
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
9
|
+
};
|
10
|
+
size: {
|
11
|
+
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
12
|
+
};
|
13
|
+
};
|
14
|
+
};
|
@@ -0,0 +1,23 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.config = void 0;
|
7
|
+
var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
|
8
|
+
var _templateObject, _templateObject2;
|
9
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
10
|
+
var config = exports.config = {
|
11
|
+
defaults: {
|
12
|
+
view: 'default',
|
13
|
+
size: 's'
|
14
|
+
},
|
15
|
+
variations: {
|
16
|
+
view: {
|
17
|
+
"default": /*#__PURE__*/(0, _styledComponents.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--surface-transparent-tertiary);\n ", ": var(--surface-solid-default);\n "])), _styledComponents.carouselNewTokens.paginationDotBackground, _styledComponents.carouselNewTokens.paginationDotActiveBackground)
|
18
|
+
},
|
19
|
+
size: {
|
20
|
+
s: /*#__PURE__*/(0, _styledComponents.css)(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral([""])))
|
21
|
+
}
|
22
|
+
}
|
23
|
+
};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
declare const Carousel: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
2
|
+
view: {
|
3
|
+
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
4
|
+
};
|
5
|
+
size: {
|
6
|
+
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
7
|
+
};
|
8
|
+
}> & import("@salutejs/plasma-new-hope/styled-components").CarouselNewProps & import("react").RefAttributes<HTMLDivElement>>;
|
9
|
+
export { Carousel };
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.Carousel = void 0;
|
7
|
+
var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
|
8
|
+
var _Carousel = /*#__PURE__*/require("./Carousel.config");
|
9
|
+
var mergedConfig = /*#__PURE__*/(0, _styledComponents.mergeConfig)(_styledComponents.carouselNewConfig, _Carousel.config);
|
10
|
+
var Carousel = exports.Carousel = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
Object.defineProperty(exports, "Carousel", {
|
7
|
+
enumerable: true,
|
8
|
+
get: function get() {
|
9
|
+
return _Carousel.Carousel;
|
10
|
+
}
|
11
|
+
});
|
12
|
+
Object.defineProperty(exports, "CarouselItem", {
|
13
|
+
enumerable: true,
|
14
|
+
get: function get() {
|
15
|
+
return _styledComponents.CarouselItem;
|
16
|
+
}
|
17
|
+
});
|
18
|
+
var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
|
19
|
+
var _Carousel = /*#__PURE__*/require("./Carousel");
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
/**
|
3
2
|
* Кнопка.
|
4
3
|
*/
|
@@ -11,33 +10,33 @@ export declare const Cell: import("react").FunctionComponent<import("@salutejs/p
|
|
11
10
|
xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
12
11
|
};
|
13
12
|
}> & (({
|
14
|
-
size?: string
|
15
|
-
view?: string
|
13
|
+
size?: string;
|
14
|
+
view?: string;
|
16
15
|
contentLeft?: import("react").ReactNode;
|
17
16
|
contentRight?: import("react").ReactNode;
|
18
|
-
alignContentLeft?: import("@salutejs/plasma-new-hope/types/components/Cell/Cell.types").AlignProp
|
19
|
-
alignContentRight?: import("@salutejs/plasma-new-hope/types/components/Cell/Cell.types").AlignProp
|
20
|
-
stretching?: "fixed" | "
|
17
|
+
alignContentLeft?: import("@salutejs/plasma-new-hope/types/components/Cell/Cell.types").AlignProp;
|
18
|
+
alignContentRight?: import("@salutejs/plasma-new-hope/types/components/Cell/Cell.types").AlignProp;
|
19
|
+
stretching?: "fixed" | "filled" | "auto";
|
21
20
|
content?: import("react").ReactNode;
|
22
|
-
description?: string
|
21
|
+
description?: string;
|
23
22
|
} & {
|
24
|
-
title?: string
|
25
|
-
subtitle?: string
|
26
|
-
label?: string
|
27
|
-
children?:
|
23
|
+
title?: string;
|
24
|
+
subtitle?: string;
|
25
|
+
label?: string;
|
26
|
+
children?: never;
|
28
27
|
} & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>) | ({
|
29
|
-
size?: string
|
30
|
-
view?: string
|
28
|
+
size?: string;
|
29
|
+
view?: string;
|
31
30
|
contentLeft?: import("react").ReactNode;
|
32
31
|
contentRight?: import("react").ReactNode;
|
33
|
-
alignContentLeft?: import("@salutejs/plasma-new-hope/types/components/Cell/Cell.types").AlignProp
|
34
|
-
alignContentRight?: import("@salutejs/plasma-new-hope/types/components/Cell/Cell.types").AlignProp
|
35
|
-
stretching?: "fixed" | "
|
32
|
+
alignContentLeft?: import("@salutejs/plasma-new-hope/types/components/Cell/Cell.types").AlignProp;
|
33
|
+
alignContentRight?: import("@salutejs/plasma-new-hope/types/components/Cell/Cell.types").AlignProp;
|
34
|
+
stretching?: "fixed" | "filled" | "auto";
|
36
35
|
content?: import("react").ReactNode;
|
37
|
-
description?: string
|
36
|
+
description?: string;
|
38
37
|
} & {
|
39
|
-
title?:
|
40
|
-
subtitle?:
|
41
|
-
label?:
|
38
|
+
title?: never;
|
39
|
+
subtitle?: never;
|
40
|
+
label?: never;
|
42
41
|
children?: import("react").ReactNode;
|
43
42
|
} & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>))>;
|
@@ -13,7 +13,7 @@ declare const CheckboxComponent: import("react").FunctionComponent<import("@salu
|
|
13
13
|
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
14
14
|
};
|
15
15
|
}> & import("@salutejs/plasma-new-hope/types/components/Checkbox/Checkbox.types").CheckboxProps & import("react").RefAttributes<HTMLInputElement>>;
|
16
|
-
export
|
16
|
+
export type CheckboxProps = ComponentProps<typeof CheckboxComponent>;
|
17
17
|
/**
|
18
18
|
* Флажок или чекбокс. Позволяет пользователю управлять параметром с двумя состояниями — ☑ включено и ☐ отключено.
|
19
19
|
*/
|