@salutejs/sdds-finportal 0.169.0-canary.1534.11913376384.0 → 0.169.0-canary.1546.11930615455.0
Sign up to get free protection for your applications and to get access to all the features.
- package/api/sdds-finportal.api.md +90 -44
- package/components/Badge/Badge.config.js +5 -5
- package/components/Badge/Badge.d.ts +61 -4
- package/components/Dropdown/Dropdown.d.ts +28 -3
- package/components/Dropdown/Dropdown.js +10 -1
- package/es/components/Badge/Badge.config.js +5 -5
- package/es/components/Dropdown/Dropdown.js +10 -2
- package/es/index.js +0 -1
- package/index.d.ts +0 -1
- package/index.js +0 -11
- package/package.json +8 -6
- package/temp/sdds-finportal.api.md +90 -44
- package/components/Dropzone/Dropzone.config.d.ts +0 -17
- package/components/Dropzone/Dropzone.config.js +0 -26
- package/components/Dropzone/Dropzone.d.ts +0 -28
- package/components/Dropzone/Dropzone.js +0 -10
- package/components/Dropzone/index.d.ts +0 -2
- package/components/Dropzone/index.js +0 -25
- package/es/components/Dropzone/Dropzone.config.js +0 -20
- package/es/components/Dropzone/Dropzone.js +0 -4
- package/es/components/Dropzone/index.js +0 -2
@@ -88,15 +88,15 @@ import type { DistributivePick } from '@salutejs/plasma-new-hope';
|
|
88
88
|
import { DividerProps } from '@salutejs/plasma-new-hope/styled-components';
|
89
89
|
import { dividerTokens } from '@salutejs/plasma-new-hope/styled-components';
|
90
90
|
import { DoubleSliderProps } from '@salutejs/plasma-new-hope/styled-components';
|
91
|
-
import { DragEvent as DragEvent_2 } from 'react';
|
92
91
|
import { DrawerContentProps } from '@salutejs/plasma-new-hope/styled-components';
|
93
92
|
import { DrawerFooterProps } from '@salutejs/plasma-new-hope/styled-components';
|
94
93
|
import { DrawerHeaderProps } from '@salutejs/plasma-new-hope/styled-components';
|
95
94
|
import { DrawerProps } from '@salutejs/plasma-new-hope/styled-components';
|
95
|
+
import type { DropdownItemOption } from '@salutejs/plasma-new-hope';
|
96
|
+
import type { DropdownNewProps } from '@salutejs/plasma-new-hope';
|
96
97
|
import { DropdownNodeSelect } from '@salutejs/plasma-new-hope/styled-components';
|
97
|
-
import {
|
98
|
-
import {
|
99
|
-
import { dropzoneTokens } from '@salutejs/plasma-new-hope/styled-components';
|
98
|
+
import { DropdownPlacement } from '@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types';
|
99
|
+
import { DropdownTrigger } from '@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types';
|
100
100
|
import { dsplL } from '@salutejs/sdds-themes/tokens';
|
101
101
|
import { dsplLBold } from '@salutejs/sdds-themes/tokens';
|
102
102
|
import { dsplM } from '@salutejs/sdds-themes/tokens';
|
@@ -104,7 +104,6 @@ import { dsplMBold } from '@salutejs/sdds-themes/tokens';
|
|
104
104
|
import { dsplS } from '@salutejs/sdds-themes/tokens';
|
105
105
|
import { dsplSBold } from '@salutejs/sdds-themes/tokens';
|
106
106
|
import { FC } from 'react';
|
107
|
-
import { FileProcessHandler } from '@salutejs/plasma-new-hope/types/components/Dropzone/Dropzone.types';
|
108
107
|
import { Filter } from '@salutejs/plasma-new-hope/types/engines/types';
|
109
108
|
import { FormTypeNumber } from '@salutejs/plasma-new-hope/types/types/FormType';
|
110
109
|
import { FormTypeString } from '@salutejs/plasma-new-hope/types/types/FormType';
|
@@ -232,7 +231,6 @@ import { TooltipProps } from '@salutejs/plasma-new-hope/styled-components';
|
|
232
231
|
import { usePopupContext } from '@salutejs/plasma-new-hope/styled-components';
|
233
232
|
import { useSegment } from '@salutejs/plasma-new-hope/styled-components';
|
234
233
|
import { useToast } from '@salutejs/plasma-new-hope/styled-components';
|
235
|
-
import { ValidatorReturnType } from '@salutejs/plasma-new-hope/types/components/Dropzone/Dropzone.types';
|
236
234
|
import { Variants } from '@salutejs/plasma-new-hope/types/engines/types';
|
237
235
|
import { ViewContainerCustomProps } from '@salutejs/plasma-new-hope/types/components/ViewContainer/ViewContainer';
|
238
236
|
import { withSkeleton } from '@salutejs/plasma-new-hope/styled-components';
|
@@ -588,12 +586,15 @@ true: PolymorphicClassName;
|
|
588
586
|
};
|
589
587
|
}> & ((HTMLAttributes<HTMLDivElement> & {
|
590
588
|
text?: string | undefined;
|
591
|
-
|
592
|
-
|
589
|
+
customColor?: string | undefined;
|
590
|
+
customBackgroundColor?: string | undefined;
|
593
591
|
maxWidth?: Property.Width<string | number> | undefined;
|
594
592
|
size?: string | undefined;
|
595
593
|
view?: string | undefined;
|
596
594
|
} & {
|
595
|
+
contentLeft?: ReactNode;
|
596
|
+
contentRight?: undefined;
|
597
|
+
} & {
|
597
598
|
children?: ReactNode;
|
598
599
|
} & {
|
599
600
|
clear?: true | undefined;
|
@@ -601,12 +602,15 @@ pilled?: false | undefined;
|
|
601
602
|
transparent?: false | undefined;
|
602
603
|
} & RefAttributes<HTMLDivElement>) | (HTMLAttributes<HTMLDivElement> & {
|
603
604
|
text?: string | undefined;
|
604
|
-
|
605
|
-
|
605
|
+
customColor?: string | undefined;
|
606
|
+
customBackgroundColor?: string | undefined;
|
606
607
|
maxWidth?: Property.Width<string | number> | undefined;
|
607
608
|
size?: string | undefined;
|
608
609
|
view?: string | undefined;
|
609
610
|
} & {
|
611
|
+
contentLeft?: ReactNode;
|
612
|
+
contentRight?: undefined;
|
613
|
+
} & {
|
610
614
|
children?: ReactNode;
|
611
615
|
} & {
|
612
616
|
pilled?: true | undefined;
|
@@ -614,12 +618,63 @@ transparent?: boolean | undefined;
|
|
614
618
|
clear?: false | undefined;
|
615
619
|
} & RefAttributes<HTMLDivElement>) | (HTMLAttributes<HTMLDivElement> & {
|
616
620
|
text?: string | undefined;
|
621
|
+
customColor?: string | undefined;
|
622
|
+
customBackgroundColor?: string | undefined;
|
623
|
+
maxWidth?: Property.Width<string | number> | undefined;
|
624
|
+
size?: string | undefined;
|
625
|
+
view?: string | undefined;
|
626
|
+
} & {
|
617
627
|
contentLeft?: ReactNode;
|
628
|
+
contentRight?: undefined;
|
629
|
+
} & {
|
630
|
+
children?: ReactNode;
|
631
|
+
} & {
|
632
|
+
pilled?: boolean | undefined;
|
633
|
+
transparent?: true | undefined;
|
634
|
+
clear?: false | undefined;
|
635
|
+
} & RefAttributes<HTMLDivElement>) | (HTMLAttributes<HTMLDivElement> & {
|
636
|
+
text?: string | undefined;
|
637
|
+
customColor?: string | undefined;
|
638
|
+
customBackgroundColor?: string | undefined;
|
639
|
+
maxWidth?: Property.Width<string | number> | undefined;
|
640
|
+
size?: string | undefined;
|
641
|
+
view?: string | undefined;
|
642
|
+
} & {
|
643
|
+
contentLeft?: undefined;
|
618
644
|
contentRight?: ReactNode;
|
645
|
+
} & {
|
646
|
+
children?: ReactNode;
|
647
|
+
} & {
|
648
|
+
clear?: true | undefined;
|
649
|
+
pilled?: false | undefined;
|
650
|
+
transparent?: false | undefined;
|
651
|
+
} & RefAttributes<HTMLDivElement>) | (HTMLAttributes<HTMLDivElement> & {
|
652
|
+
text?: string | undefined;
|
653
|
+
customColor?: string | undefined;
|
654
|
+
customBackgroundColor?: string | undefined;
|
619
655
|
maxWidth?: Property.Width<string | number> | undefined;
|
620
656
|
size?: string | undefined;
|
621
657
|
view?: string | undefined;
|
622
658
|
} & {
|
659
|
+
contentLeft?: undefined;
|
660
|
+
contentRight?: ReactNode;
|
661
|
+
} & {
|
662
|
+
children?: ReactNode;
|
663
|
+
} & {
|
664
|
+
pilled?: true | undefined;
|
665
|
+
transparent?: boolean | undefined;
|
666
|
+
clear?: false | undefined;
|
667
|
+
} & RefAttributes<HTMLDivElement>) | (HTMLAttributes<HTMLDivElement> & {
|
668
|
+
text?: string | undefined;
|
669
|
+
customColor?: string | undefined;
|
670
|
+
customBackgroundColor?: string | undefined;
|
671
|
+
maxWidth?: Property.Width<string | number> | undefined;
|
672
|
+
size?: string | undefined;
|
673
|
+
view?: string | undefined;
|
674
|
+
} & {
|
675
|
+
contentLeft?: undefined;
|
676
|
+
contentRight?: ReactNode;
|
677
|
+
} & {
|
623
678
|
children?: ReactNode;
|
624
679
|
} & {
|
625
680
|
pilled?: boolean | undefined;
|
@@ -1244,7 +1299,7 @@ export { DrawerHeaderProps }
|
|
1244
1299
|
export { DrawerProps }
|
1245
1300
|
|
1246
1301
|
// @public (undocumented)
|
1247
|
-
export const Dropdown:
|
1302
|
+
export const Dropdown: <T extends DropdownItemOption>(props: Omit<DropdownNewProps<T>, "view" | "size"> & Pick<PropsType< {
|
1248
1303
|
size: {
|
1249
1304
|
l: PolymorphicClassName;
|
1250
1305
|
m: PolymorphicClassName;
|
@@ -1254,40 +1309,31 @@ xs: PolymorphicClassName;
|
|
1254
1309
|
view: {
|
1255
1310
|
default: PolymorphicClassName;
|
1256
1311
|
};
|
1257
|
-
}> & DropdownProps & RefAttributes<HTMLDivElement>>;
|
1258
|
-
|
1259
|
-
// @public (undocumented)
|
1260
|
-
export const Dropzone: FunctionComponent<PropsType< {
|
1261
|
-
view: {
|
1262
|
-
default: PolymorphicClassName;
|
1263
|
-
};
|
1264
|
-
size: {
|
1265
|
-
m: PolymorphicClassName;
|
1266
|
-
};
|
1267
|
-
disabled: {
|
1268
|
-
true: PolymorphicClassName;
|
1269
|
-
};
|
1270
1312
|
}> & {
|
1271
|
-
|
1272
|
-
|
1273
|
-
|
1274
|
-
|
1275
|
-
|
1276
|
-
|
1277
|
-
|
1278
|
-
|
1279
|
-
|
1280
|
-
|
1281
|
-
|
1282
|
-
|
1283
|
-
|
1284
|
-
|
1285
|
-
|
1286
|
-
|
1287
|
-
|
1288
|
-
|
1289
|
-
|
1290
|
-
|
1313
|
+
items: DropdownItemOption[];
|
1314
|
+
alwaysOpened?: boolean | undefined;
|
1315
|
+
children?: React_2.ReactNode;
|
1316
|
+
itemRole?: string | undefined;
|
1317
|
+
onHover?: ((index: number) => void) | undefined;
|
1318
|
+
onItemSelect?: ((item: DropdownItemOption, event: React_2.SyntheticEvent<Element, Event>) => void) | undefined;
|
1319
|
+
trigger?: DropdownTrigger | undefined;
|
1320
|
+
placement?: DropdownPlacement | undefined;
|
1321
|
+
offset?: [number, number] | undefined;
|
1322
|
+
listWidth?: Property.Width<string | number> | undefined;
|
1323
|
+
hasArrow?: boolean | undefined;
|
1324
|
+
closeOnSelect?: boolean | undefined;
|
1325
|
+
closeOnOverlayClick?: boolean | undefined;
|
1326
|
+
onToggle?: ((isOpen: boolean, event: Event | React_2.SyntheticEvent<Element, Event>) => void) | undefined;
|
1327
|
+
size?: string | undefined;
|
1328
|
+
view?: string | undefined;
|
1329
|
+
variant?: "normal" | "tight" | undefined;
|
1330
|
+
portal?: string | React_2.RefObject<HTMLElement> | undefined;
|
1331
|
+
renderItem?: ((item: DropdownItemOption) => React_2.ReactNode) | undefined;
|
1332
|
+
onItemClick?: ((item: DropdownItemOption, event: React_2.SyntheticEvent<Element, Event>) => void) | undefined;
|
1333
|
+
listOverflow?: Property.Overflow | undefined;
|
1334
|
+
listHeight?: Property.Height<string | number> | undefined;
|
1335
|
+
hoverIndex?: number | undefined;
|
1336
|
+
} & React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>, "view" | "size"> & React_2.RefAttributes<HTMLButtonElement>) => React_2.ReactElement<any, string | React_2.JSXElementConstructor<any>> | null;
|
1291
1337
|
|
1292
1338
|
// @public (undocumented)
|
1293
1339
|
export const DsplL: FunctionComponent<PropsType< {
|
@@ -23,10 +23,10 @@ var config = exports.config = {
|
|
23
23
|
light: /*#__PURE__*/(0, _styledComponents.css)(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--on-light-text-primary);\n ", ": var(--on-dark-surface-solid-default);\n\n ", ": var(--on-dark-text-primary);\n ", ": var(--on-dark-surface-transparent-card);\n\n ", ": var(--on-dark-text-primary);\n "])), _styledComponents.badgeTokens.color, _styledComponents.badgeTokens.background, _styledComponents.badgeTokens.colorTransparent, _styledComponents.badgeTokens.backgroundTransparent, _styledComponents.badgeTokens.colorClear)
|
24
24
|
},
|
25
25
|
size: {
|
26
|
-
l: /*#__PURE__*/(0, _styledComponents.css)(_templateObject8 || (_templateObject8 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.5rem;\n ", ": 1.75rem;\n ", ": 0.6875rem;\n ", ": 0.
|
27
|
-
m: /*#__PURE__*/(0, _styledComponents.css)(_templateObject9 || (_templateObject9 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.375rem;\n ", ": 1.5rem;\n ", ": 0.5625rem;\n ", ": 0.
|
28
|
-
s: /*#__PURE__*/(0, _styledComponents.css)(_templateObject10 || (_templateObject10 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.375rem;\n ", ": 1.25rem;\n ", ": 0.4375rem;\n ", ": 0.
|
29
|
-
xs: /*#__PURE__*/(0, _styledComponents.css)(_templateObject11 || (_templateObject11 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.25rem;\n ", ": 1rem;\n ", ": 0.25rem;\n ", ": 0.
|
26
|
+
l: /*#__PURE__*/(0, _styledComponents.css)(_templateObject8 || (_templateObject8 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.5rem;\n ", ": 1.75rem;\n ", ": 0 0.6875rem;\n ", ": 0 0.375rem;\n\n ", ": var(--plasma-typo-body-s-font-family);\n ", ": var(--plasma-typo-body-s-font-size);\n ", ": var(--plasma-typo-body-s-font-style);\n ", ": var(--plasma-typo-body-s-font-weight);\n ", ": var(--plasma-typo-body-s-letter-spacing);\n ", ": var(--plasma-typo-body-s-line-height);\n\n ", ": -0.0625rem;\n ", ": 0.25rem;\n\n ", ": 0.25rem;\n ", ": -0.0625rem;\n "])), _styledComponents.badgeTokens.borderRadius, _styledComponents.badgeTokens.height, _styledComponents.badgeTokens.padding, _styledComponents.badgeTokens.paddingIconOnly, _styledComponents.badgeTokens.fontFamily, _styledComponents.badgeTokens.fontSize, _styledComponents.badgeTokens.fontStyle, _styledComponents.badgeTokens.fontWeight, _styledComponents.badgeTokens.letterSpacing, _styledComponents.badgeTokens.lineHeight, _styledComponents.badgeTokens.leftContentMarginLeft, _styledComponents.badgeTokens.leftContentMarginRight, _styledComponents.badgeTokens.rightContentMarginLeft, _styledComponents.badgeTokens.rightContentMarginRight),
|
27
|
+
m: /*#__PURE__*/(0, _styledComponents.css)(_templateObject9 || (_templateObject9 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.375rem;\n ", ": 1.5rem;\n ", ": 0 0.5625rem;\n ", ": 0 0.375rem;\n\n ", ": var(--plasma-typo-body-xs-font-family);\n ", ": var(--plasma-typo-body-xs-font-size);\n ", ": var(--plasma-typo-body-xs-font-style);\n ", ": var(--plasma-typo-body-xs-font-weight);\n ", ": var(--plasma-typo-body-xs-letter-spacing);\n ", ": var(--plasma-typo-body-xs-line-height);\n\n ", ": -0.0625rem;\n ", ": 0.1875rem;\n\n ", ": 0.1875rem;\n ", ": -0.0625rem;\n "])), _styledComponents.badgeTokens.borderRadius, _styledComponents.badgeTokens.height, _styledComponents.badgeTokens.padding, _styledComponents.badgeTokens.paddingIconOnly, _styledComponents.badgeTokens.fontFamily, _styledComponents.badgeTokens.fontSize, _styledComponents.badgeTokens.fontStyle, _styledComponents.badgeTokens.fontWeight, _styledComponents.badgeTokens.letterSpacing, _styledComponents.badgeTokens.lineHeight, _styledComponents.badgeTokens.leftContentMarginLeft, _styledComponents.badgeTokens.leftContentMarginRight, _styledComponents.badgeTokens.rightContentMarginLeft, _styledComponents.badgeTokens.rightContentMarginRight),
|
28
|
+
s: /*#__PURE__*/(0, _styledComponents.css)(_templateObject10 || (_templateObject10 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.375rem;\n ", ": 1.25rem;\n ", ": 0 0.4375rem;\n ", ": 0 0.25rem;\n\n ", ": var(--plasma-typo-body-xxs-font-family);\n ", ": var(--plasma-typo-body-xxs-font-size);\n ", ": var(--plasma-typo-body-xxs-font-style);\n ", ": var(--plasma-typo-body-xxs-font-weight);\n ", ": var(--plasma-typo-body-xxs-letter-spacing);\n ", ": var(--plasma-typo-body-xxs-line-height);\n\n ", ": -0.0625rem;\n ", ": 0.125rem;\n\n ", ": 0.125rem;\n ", ": -0.0625rem;\n "])), _styledComponents.badgeTokens.borderRadius, _styledComponents.badgeTokens.height, _styledComponents.badgeTokens.padding, _styledComponents.badgeTokens.paddingIconOnly, _styledComponents.badgeTokens.fontFamily, _styledComponents.badgeTokens.fontSize, _styledComponents.badgeTokens.fontStyle, _styledComponents.badgeTokens.fontWeight, _styledComponents.badgeTokens.letterSpacing, _styledComponents.badgeTokens.lineHeight, _styledComponents.badgeTokens.leftContentMarginLeft, _styledComponents.badgeTokens.leftContentMarginRight, _styledComponents.badgeTokens.rightContentMarginLeft, _styledComponents.badgeTokens.rightContentMarginRight),
|
29
|
+
xs: /*#__PURE__*/(0, _styledComponents.css)(_templateObject11 || (_templateObject11 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.25rem;\n ", ": 1rem;\n ", ": 0 0.25rem;\n ", ": 0 0.188rem;\n\n ", ": var(--plasma-typo-body-xxs-font-family);\n ", ": var(--plasma-typo-body-xxs-font-size);\n ", ": var(--plasma-typo-body-xxs-font-style);\n ", ": var(--plasma-typo-body-xxs-font-weight);\n ", ": var(--plasma-typo-body-xxs-letter-spacing);\n ", ": var(--plasma-typo-body-xxs-line-height);\n\n ", ": -0.0625rem;\n ", ": 0.125rem;\n\n ", ": 0.125rem;\n ", ": -0.0625rem;\n "])), _styledComponents.badgeTokens.borderRadius, _styledComponents.badgeTokens.height, _styledComponents.badgeTokens.padding, _styledComponents.badgeTokens.paddingIconOnly, _styledComponents.badgeTokens.fontFamily, _styledComponents.badgeTokens.fontSize, _styledComponents.badgeTokens.fontStyle, _styledComponents.badgeTokens.fontWeight, _styledComponents.badgeTokens.letterSpacing, _styledComponents.badgeTokens.lineHeight, _styledComponents.badgeTokens.leftContentMarginLeft, _styledComponents.badgeTokens.leftContentMarginRight, _styledComponents.badgeTokens.rightContentMarginLeft, _styledComponents.badgeTokens.rightContentMarginRight)
|
30
30
|
},
|
31
31
|
pilled: {
|
32
32
|
"true": /*#__PURE__*/(0, _styledComponents.css)(_templateObject12 || (_templateObject12 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1.25rem;\n "])), _styledComponents.badgeTokens.pilledBorderRadius)
|
@@ -35,7 +35,7 @@ var config = exports.config = {
|
|
35
35
|
"true": /*#__PURE__*/(0, _styledComponents.css)(_templateObject13 || (_templateObject13 = /*#__PURE__*/_taggedTemplateLiteral([""])))
|
36
36
|
},
|
37
37
|
clear: {
|
38
|
-
"true": /*#__PURE__*/(0, _styledComponents.css)(_templateObject14 || (_templateObject14 = /*#__PURE__*/_taggedTemplateLiteral([""])))
|
38
|
+
"true": /*#__PURE__*/(0, _styledComponents.css)(_templateObject14 || (_templateObject14 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--surface-clear);\n "])), _styledComponents.badgeTokens.backgroundClear)
|
39
39
|
}
|
40
40
|
}
|
41
41
|
};
|
@@ -29,11 +29,14 @@ export declare const Badge: import("react").FunctionComponent<import("@salutejs/
|
|
29
29
|
};
|
30
30
|
}> & ((import("react").HTMLAttributes<HTMLDivElement> & {
|
31
31
|
text?: string | undefined;
|
32
|
-
|
33
|
-
|
32
|
+
customColor?: string | undefined;
|
33
|
+
customBackgroundColor?: string | undefined;
|
34
34
|
maxWidth?: import("csstype").Property.Width<string | number> | undefined;
|
35
35
|
size?: string | undefined;
|
36
36
|
view?: string | undefined;
|
37
|
+
} & {
|
38
|
+
contentLeft?: import("react").ReactNode;
|
39
|
+
contentRight?: undefined;
|
37
40
|
} & {
|
38
41
|
children?: import("react").ReactNode;
|
39
42
|
} & {
|
@@ -42,11 +45,14 @@ export declare const Badge: import("react").FunctionComponent<import("@salutejs/
|
|
42
45
|
transparent?: false | undefined;
|
43
46
|
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
|
44
47
|
text?: string | undefined;
|
45
|
-
|
46
|
-
|
48
|
+
customColor?: string | undefined;
|
49
|
+
customBackgroundColor?: string | undefined;
|
47
50
|
maxWidth?: import("csstype").Property.Width<string | number> | undefined;
|
48
51
|
size?: string | undefined;
|
49
52
|
view?: string | undefined;
|
53
|
+
} & {
|
54
|
+
contentLeft?: import("react").ReactNode;
|
55
|
+
contentRight?: undefined;
|
50
56
|
} & {
|
51
57
|
children?: import("react").ReactNode;
|
52
58
|
} & {
|
@@ -55,11 +61,62 @@ export declare const Badge: import("react").FunctionComponent<import("@salutejs/
|
|
55
61
|
clear?: false | undefined;
|
56
62
|
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
|
57
63
|
text?: string | undefined;
|
64
|
+
customColor?: string | undefined;
|
65
|
+
customBackgroundColor?: string | undefined;
|
66
|
+
maxWidth?: import("csstype").Property.Width<string | number> | undefined;
|
67
|
+
size?: string | undefined;
|
68
|
+
view?: string | undefined;
|
69
|
+
} & {
|
58
70
|
contentLeft?: import("react").ReactNode;
|
71
|
+
contentRight?: undefined;
|
72
|
+
} & {
|
73
|
+
children?: import("react").ReactNode;
|
74
|
+
} & {
|
75
|
+
pilled?: boolean | undefined;
|
76
|
+
transparent?: true | undefined;
|
77
|
+
clear?: false | undefined;
|
78
|
+
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
|
79
|
+
text?: string | undefined;
|
80
|
+
customColor?: string | undefined;
|
81
|
+
customBackgroundColor?: string | undefined;
|
82
|
+
maxWidth?: import("csstype").Property.Width<string | number> | undefined;
|
83
|
+
size?: string | undefined;
|
84
|
+
view?: string | undefined;
|
85
|
+
} & {
|
86
|
+
contentLeft?: undefined;
|
59
87
|
contentRight?: import("react").ReactNode;
|
88
|
+
} & {
|
89
|
+
children?: import("react").ReactNode;
|
90
|
+
} & {
|
91
|
+
clear?: true | undefined;
|
92
|
+
pilled?: false | undefined;
|
93
|
+
transparent?: false | undefined;
|
94
|
+
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
|
95
|
+
text?: string | undefined;
|
96
|
+
customColor?: string | undefined;
|
97
|
+
customBackgroundColor?: string | undefined;
|
60
98
|
maxWidth?: import("csstype").Property.Width<string | number> | undefined;
|
61
99
|
size?: string | undefined;
|
62
100
|
view?: string | undefined;
|
101
|
+
} & {
|
102
|
+
contentLeft?: undefined;
|
103
|
+
contentRight?: import("react").ReactNode;
|
104
|
+
} & {
|
105
|
+
children?: import("react").ReactNode;
|
106
|
+
} & {
|
107
|
+
pilled?: true | undefined;
|
108
|
+
transparent?: boolean | undefined;
|
109
|
+
clear?: false | undefined;
|
110
|
+
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
|
111
|
+
text?: string | undefined;
|
112
|
+
customColor?: string | undefined;
|
113
|
+
customBackgroundColor?: string | undefined;
|
114
|
+
maxWidth?: import("csstype").Property.Width<string | number> | undefined;
|
115
|
+
size?: string | undefined;
|
116
|
+
view?: string | undefined;
|
117
|
+
} & {
|
118
|
+
contentLeft?: undefined;
|
119
|
+
contentRight?: import("react").ReactNode;
|
63
120
|
} & {
|
64
121
|
children?: import("react").ReactNode;
|
65
122
|
} & {
|
@@ -1,5 +1,6 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
import type { DropdownItemOption, DropdownNewProps } from '@salutejs/plasma-new-hope';
|
2
|
+
import React from 'react';
|
3
|
+
declare const Dropdown: <T extends DropdownItemOption>(props: Omit<DropdownNewProps<T>, "view" | "size"> & Pick<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
3
4
|
size: {
|
4
5
|
l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
5
6
|
m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
@@ -9,5 +10,29 @@ declare const Dropdown: import("react").FunctionComponent<import("@salutejs/plas
|
|
9
10
|
view: {
|
10
11
|
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
11
12
|
};
|
12
|
-
}> &
|
13
|
+
}> & {
|
14
|
+
items: DropdownItemOption[];
|
15
|
+
alwaysOpened?: boolean | undefined;
|
16
|
+
children?: React.ReactNode;
|
17
|
+
itemRole?: string | undefined;
|
18
|
+
onHover?: ((index: number) => void) | undefined;
|
19
|
+
onItemSelect?: ((item: DropdownItemOption, event: React.SyntheticEvent<Element, Event>) => void) | undefined;
|
20
|
+
trigger?: import("@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types").DropdownTrigger | undefined;
|
21
|
+
placement?: import("@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types").DropdownPlacement | undefined;
|
22
|
+
offset?: [number, number] | undefined;
|
23
|
+
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
24
|
+
hasArrow?: boolean | undefined;
|
25
|
+
closeOnSelect?: boolean | undefined;
|
26
|
+
closeOnOverlayClick?: boolean | undefined;
|
27
|
+
onToggle?: ((isOpen: boolean, event: Event | React.SyntheticEvent<Element, Event>) => void) | undefined;
|
28
|
+
size?: string | undefined;
|
29
|
+
view?: string | undefined;
|
30
|
+
variant?: "normal" | "tight" | undefined;
|
31
|
+
portal?: string | React.RefObject<HTMLElement> | undefined;
|
32
|
+
renderItem?: ((item: DropdownItemOption) => React.ReactNode) | undefined;
|
33
|
+
onItemClick?: ((item: DropdownItemOption, event: React.SyntheticEvent<Element, Event>) => void) | undefined;
|
34
|
+
listOverflow?: import("csstype").Property.Overflow | undefined;
|
35
|
+
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
36
|
+
hoverIndex?: number | undefined;
|
37
|
+
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>, "view" | "size"> & React.RefAttributes<HTMLButtonElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
13
38
|
export { Dropdown };
|
@@ -5,6 +5,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.Dropdown = void 0;
|
7
7
|
var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
|
8
|
+
var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
|
8
9
|
var _Dropdown = /*#__PURE__*/require("./Dropdown.config");
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
11
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
9
12
|
var mergedConfig = /*#__PURE__*/(0, _styledComponents.mergeConfig)(_styledComponents.dropdownConfig, _Dropdown.config);
|
10
|
-
var
|
13
|
+
var DropdownNewHope = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
|
14
|
+
var DropdownComponent = function DropdownComponent(props, ref) {
|
15
|
+
return /*#__PURE__*/_react["default"].createElement(DropdownNewHope, _extends({
|
16
|
+
ref: ref
|
17
|
+
}, props));
|
18
|
+
};
|
19
|
+
var Dropdown = exports.Dropdown = /*#__PURE__*/(0, _styledComponents.fixedForwardRef)(DropdownComponent);
|
@@ -17,10 +17,10 @@ export var config = {
|
|
17
17
|
light: /*#__PURE__*/css(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--on-light-text-primary);\n ", ": var(--on-dark-surface-solid-default);\n\n ", ": var(--on-dark-text-primary);\n ", ": var(--on-dark-surface-transparent-card);\n\n ", ": var(--on-dark-text-primary);\n "])), badgeTokens.color, badgeTokens.background, badgeTokens.colorTransparent, badgeTokens.backgroundTransparent, badgeTokens.colorClear)
|
18
18
|
},
|
19
19
|
size: {
|
20
|
-
l: /*#__PURE__*/css(_templateObject8 || (_templateObject8 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.5rem;\n ", ": 1.75rem;\n ", ": 0.6875rem;\n ", ": 0.
|
21
|
-
m: /*#__PURE__*/css(_templateObject9 || (_templateObject9 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.375rem;\n ", ": 1.5rem;\n ", ": 0.5625rem;\n ", ": 0.
|
22
|
-
s: /*#__PURE__*/css(_templateObject10 || (_templateObject10 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.375rem;\n ", ": 1.25rem;\n ", ": 0.4375rem;\n ", ": 0.
|
23
|
-
xs: /*#__PURE__*/css(_templateObject11 || (_templateObject11 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.25rem;\n ", ": 1rem;\n ", ": 0.25rem;\n ", ": 0.
|
20
|
+
l: /*#__PURE__*/css(_templateObject8 || (_templateObject8 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.5rem;\n ", ": 1.75rem;\n ", ": 0 0.6875rem;\n ", ": 0 0.375rem;\n\n ", ": var(--plasma-typo-body-s-font-family);\n ", ": var(--plasma-typo-body-s-font-size);\n ", ": var(--plasma-typo-body-s-font-style);\n ", ": var(--plasma-typo-body-s-font-weight);\n ", ": var(--plasma-typo-body-s-letter-spacing);\n ", ": var(--plasma-typo-body-s-line-height);\n\n ", ": -0.0625rem;\n ", ": 0.25rem;\n\n ", ": 0.25rem;\n ", ": -0.0625rem;\n "])), badgeTokens.borderRadius, badgeTokens.height, badgeTokens.padding, badgeTokens.paddingIconOnly, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
|
21
|
+
m: /*#__PURE__*/css(_templateObject9 || (_templateObject9 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.375rem;\n ", ": 1.5rem;\n ", ": 0 0.5625rem;\n ", ": 0 0.375rem;\n\n ", ": var(--plasma-typo-body-xs-font-family);\n ", ": var(--plasma-typo-body-xs-font-size);\n ", ": var(--plasma-typo-body-xs-font-style);\n ", ": var(--plasma-typo-body-xs-font-weight);\n ", ": var(--plasma-typo-body-xs-letter-spacing);\n ", ": var(--plasma-typo-body-xs-line-height);\n\n ", ": -0.0625rem;\n ", ": 0.1875rem;\n\n ", ": 0.1875rem;\n ", ": -0.0625rem;\n "])), badgeTokens.borderRadius, badgeTokens.height, badgeTokens.padding, badgeTokens.paddingIconOnly, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
|
22
|
+
s: /*#__PURE__*/css(_templateObject10 || (_templateObject10 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.375rem;\n ", ": 1.25rem;\n ", ": 0 0.4375rem;\n ", ": 0 0.25rem;\n\n ", ": var(--plasma-typo-body-xxs-font-family);\n ", ": var(--plasma-typo-body-xxs-font-size);\n ", ": var(--plasma-typo-body-xxs-font-style);\n ", ": var(--plasma-typo-body-xxs-font-weight);\n ", ": var(--plasma-typo-body-xxs-letter-spacing);\n ", ": var(--plasma-typo-body-xxs-line-height);\n\n ", ": -0.0625rem;\n ", ": 0.125rem;\n\n ", ": 0.125rem;\n ", ": -0.0625rem;\n "])), badgeTokens.borderRadius, badgeTokens.height, badgeTokens.padding, badgeTokens.paddingIconOnly, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
|
23
|
+
xs: /*#__PURE__*/css(_templateObject11 || (_templateObject11 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.25rem;\n ", ": 1rem;\n ", ": 0 0.25rem;\n ", ": 0 0.188rem;\n\n ", ": var(--plasma-typo-body-xxs-font-family);\n ", ": var(--plasma-typo-body-xxs-font-size);\n ", ": var(--plasma-typo-body-xxs-font-style);\n ", ": var(--plasma-typo-body-xxs-font-weight);\n ", ": var(--plasma-typo-body-xxs-letter-spacing);\n ", ": var(--plasma-typo-body-xxs-line-height);\n\n ", ": -0.0625rem;\n ", ": 0.125rem;\n\n ", ": 0.125rem;\n ", ": -0.0625rem;\n "])), badgeTokens.borderRadius, badgeTokens.height, badgeTokens.padding, badgeTokens.paddingIconOnly, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight)
|
24
24
|
},
|
25
25
|
pilled: {
|
26
26
|
"true": /*#__PURE__*/css(_templateObject12 || (_templateObject12 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1.25rem;\n "])), badgeTokens.pilledBorderRadius)
|
@@ -29,7 +29,7 @@ export var config = {
|
|
29
29
|
"true": /*#__PURE__*/css(_templateObject13 || (_templateObject13 = /*#__PURE__*/_taggedTemplateLiteral([""])))
|
30
30
|
},
|
31
31
|
clear: {
|
32
|
-
"true": /*#__PURE__*/css(_templateObject14 || (_templateObject14 = /*#__PURE__*/_taggedTemplateLiteral([""])))
|
32
|
+
"true": /*#__PURE__*/css(_templateObject14 || (_templateObject14 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--surface-clear);\n "])), badgeTokens.backgroundClear)
|
33
33
|
}
|
34
34
|
}
|
35
35
|
};
|
@@ -1,5 +1,13 @@
|
|
1
|
-
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
2
|
+
import { dropdownConfig, component, mergeConfig, fixedForwardRef } from '@salutejs/plasma-new-hope/styled-components';
|
3
|
+
import React from 'react';
|
2
4
|
import { config } from './Dropdown.config';
|
3
5
|
var mergedConfig = /*#__PURE__*/mergeConfig(dropdownConfig, config);
|
4
|
-
var
|
6
|
+
var DropdownNewHope = /*#__PURE__*/component(mergedConfig);
|
7
|
+
var DropdownComponent = function DropdownComponent(props, ref) {
|
8
|
+
return /*#__PURE__*/React.createElement(DropdownNewHope, _extends({
|
9
|
+
ref: ref
|
10
|
+
}, props));
|
11
|
+
};
|
12
|
+
var Dropdown = /*#__PURE__*/fixedForwardRef(DropdownComponent);
|
5
13
|
export { Dropdown };
|
package/es/index.js
CHANGED
@@ -56,6 +56,5 @@ export * from './components/EmptyState';
|
|
56
56
|
export * from './components/Attach';
|
57
57
|
export * from './components/ViewContainer';
|
58
58
|
export * from './components/NumberInput';
|
59
|
-
export * from './components/Dropzone';
|
60
59
|
export * from './mixins';
|
61
60
|
export * from './tokens';
|
package/index.d.ts
CHANGED
@@ -56,6 +56,5 @@ export * from './components/EmptyState';
|
|
56
56
|
export * from './components/Attach';
|
57
57
|
export * from './components/ViewContainer';
|
58
58
|
export * from './components/NumberInput';
|
59
|
-
export * from './components/Dropzone';
|
60
59
|
export * from './mixins';
|
61
60
|
export * from './tokens';
|
package/index.js
CHANGED
@@ -641,17 +641,6 @@ Object.keys(_NumberInput).forEach(function (key) {
|
|
641
641
|
}
|
642
642
|
});
|
643
643
|
});
|
644
|
-
var _Dropzone = /*#__PURE__*/require("./components/Dropzone");
|
645
|
-
Object.keys(_Dropzone).forEach(function (key) {
|
646
|
-
if (key === "default" || key === "__esModule") return;
|
647
|
-
if (key in exports && exports[key] === _Dropzone[key]) return;
|
648
|
-
Object.defineProperty(exports, key, {
|
649
|
-
enumerable: true,
|
650
|
-
get: function get() {
|
651
|
-
return _Dropzone[key];
|
652
|
-
}
|
653
|
-
});
|
654
|
-
});
|
655
644
|
var _mixins = /*#__PURE__*/require("./mixins");
|
656
645
|
Object.keys(_mixins).forEach(function (key) {
|
657
646
|
if (key === "default" || key === "__esModule") return;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/sdds-finportal",
|
3
|
-
"version": "0.169.0-canary.
|
3
|
+
"version": "0.169.0-canary.1546.11930615455.0",
|
4
4
|
"description": "Salute Design System / React UI kit for SDDS FinPortal web applications",
|
5
5
|
"author": "Salute Frontend Team <salute.developers@gmail.com>",
|
6
6
|
"license": "MIT",
|
@@ -19,7 +19,7 @@
|
|
19
19
|
"directory": "packages/sdds-finportal"
|
20
20
|
},
|
21
21
|
"dependencies": {
|
22
|
-
"@salutejs/plasma-new-hope": "0.195.0-canary.
|
22
|
+
"@salutejs/plasma-new-hope": "0.195.0-canary.1546.11930615455.0",
|
23
23
|
"@salutejs/sdds-themes": "0.27.0"
|
24
24
|
},
|
25
25
|
"peerDependencies": {
|
@@ -37,10 +37,10 @@
|
|
37
37
|
"@babel/preset-typescript": "7.24.1",
|
38
38
|
"@microsoft/api-extractor": "7.38.3",
|
39
39
|
"@salutejs/plasma-colors": "0.13.0",
|
40
|
-
"@salutejs/plasma-core": "1.
|
41
|
-
"@salutejs/plasma-cy-utils": "0.
|
40
|
+
"@salutejs/plasma-core": "1.186.0",
|
41
|
+
"@salutejs/plasma-cy-utils": "0.117.0",
|
42
42
|
"@salutejs/plasma-icons": "1.208.0",
|
43
|
-
"@salutejs/plasma-sb-utils": "0.
|
43
|
+
"@salutejs/plasma-sb-utils": "0.184.0",
|
44
44
|
"@storybook/addon-docs": "7.6.17",
|
45
45
|
"@storybook/addon-essentials": "7.6.17",
|
46
46
|
"@storybook/addons": "7.6.17",
|
@@ -78,6 +78,8 @@
|
|
78
78
|
"build:esm": "BABEL_ENV=esm SC_NAMESPACE=sdds-srvc babel ./src --out-dir ./es --extensions .ts,.tsx",
|
79
79
|
"generate:typings": "tsc --outDir . --emitDeclarationOnly",
|
80
80
|
"storybook": "storybook dev -p ${PORT:-7007} -c .storybook",
|
81
|
+
"storybook:draft": "IS_DRAFT=true storybook dev -p ${PORT:-7007} -c .storybook",
|
82
|
+
"storybook:build:draft": "IS_DRAFT=true storybook build -c .storybook -o build-sb-draft",
|
81
83
|
"storybook:build": "storybook build -c .storybook -o build-sb",
|
82
84
|
"typescript-coverage": "npx typescript-coverage-report > /dev/null",
|
83
85
|
"lint": "../../node_modules/.bin/eslint ./src --ext .js,.ts,.tsx --quiet"
|
@@ -94,5 +96,5 @@
|
|
94
96
|
"Vasiliy Loginevskiy"
|
95
97
|
],
|
96
98
|
"sideEffects": false,
|
97
|
-
"gitHead": "
|
99
|
+
"gitHead": "7b184d686053d8fddd529d7232c403d181462733"
|
98
100
|
}
|
@@ -88,15 +88,15 @@ import type { DistributivePick } from '@salutejs/plasma-new-hope';
|
|
88
88
|
import { DividerProps } from '@salutejs/plasma-new-hope/styled-components';
|
89
89
|
import { dividerTokens } from '@salutejs/plasma-new-hope/styled-components';
|
90
90
|
import { DoubleSliderProps } from '@salutejs/plasma-new-hope/styled-components';
|
91
|
-
import { DragEvent as DragEvent_2 } from 'react';
|
92
91
|
import { DrawerContentProps } from '@salutejs/plasma-new-hope/styled-components';
|
93
92
|
import { DrawerFooterProps } from '@salutejs/plasma-new-hope/styled-components';
|
94
93
|
import { DrawerHeaderProps } from '@salutejs/plasma-new-hope/styled-components';
|
95
94
|
import { DrawerProps } from '@salutejs/plasma-new-hope/styled-components';
|
95
|
+
import type { DropdownItemOption } from '@salutejs/plasma-new-hope';
|
96
|
+
import type { DropdownNewProps } from '@salutejs/plasma-new-hope';
|
96
97
|
import { DropdownNodeSelect } from '@salutejs/plasma-new-hope/styled-components';
|
97
|
-
import {
|
98
|
-
import {
|
99
|
-
import { dropzoneTokens } from '@salutejs/plasma-new-hope/styled-components';
|
98
|
+
import { DropdownPlacement } from '@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types';
|
99
|
+
import { DropdownTrigger } from '@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types';
|
100
100
|
import { dsplL } from '@salutejs/sdds-themes/tokens';
|
101
101
|
import { dsplLBold } from '@salutejs/sdds-themes/tokens';
|
102
102
|
import { dsplM } from '@salutejs/sdds-themes/tokens';
|
@@ -104,7 +104,6 @@ import { dsplMBold } from '@salutejs/sdds-themes/tokens';
|
|
104
104
|
import { dsplS } from '@salutejs/sdds-themes/tokens';
|
105
105
|
import { dsplSBold } from '@salutejs/sdds-themes/tokens';
|
106
106
|
import { FC } from 'react';
|
107
|
-
import { FileProcessHandler } from '@salutejs/plasma-new-hope/types/components/Dropzone/Dropzone.types';
|
108
107
|
import { Filter } from '@salutejs/plasma-new-hope/types/engines/types';
|
109
108
|
import { FormTypeNumber } from '@salutejs/plasma-new-hope/types/types/FormType';
|
110
109
|
import { FormTypeString } from '@salutejs/plasma-new-hope/types/types/FormType';
|
@@ -232,7 +231,6 @@ import { TooltipProps } from '@salutejs/plasma-new-hope/styled-components';
|
|
232
231
|
import { usePopupContext } from '@salutejs/plasma-new-hope/styled-components';
|
233
232
|
import { useSegment } from '@salutejs/plasma-new-hope/styled-components';
|
234
233
|
import { useToast } from '@salutejs/plasma-new-hope/styled-components';
|
235
|
-
import { ValidatorReturnType } from '@salutejs/plasma-new-hope/types/components/Dropzone/Dropzone.types';
|
236
234
|
import { Variants } from '@salutejs/plasma-new-hope/types/engines/types';
|
237
235
|
import { ViewContainerCustomProps } from '@salutejs/plasma-new-hope/types/components/ViewContainer/ViewContainer';
|
238
236
|
import { withSkeleton } from '@salutejs/plasma-new-hope/styled-components';
|
@@ -588,12 +586,15 @@ true: PolymorphicClassName;
|
|
588
586
|
};
|
589
587
|
}> & ((HTMLAttributes<HTMLDivElement> & {
|
590
588
|
text?: string | undefined;
|
591
|
-
|
592
|
-
|
589
|
+
customColor?: string | undefined;
|
590
|
+
customBackgroundColor?: string | undefined;
|
593
591
|
maxWidth?: Property.Width<string | number> | undefined;
|
594
592
|
size?: string | undefined;
|
595
593
|
view?: string | undefined;
|
596
594
|
} & {
|
595
|
+
contentLeft?: ReactNode;
|
596
|
+
contentRight?: undefined;
|
597
|
+
} & {
|
597
598
|
children?: ReactNode;
|
598
599
|
} & {
|
599
600
|
clear?: true | undefined;
|
@@ -601,12 +602,15 @@ pilled?: false | undefined;
|
|
601
602
|
transparent?: false | undefined;
|
602
603
|
} & RefAttributes<HTMLDivElement>) | (HTMLAttributes<HTMLDivElement> & {
|
603
604
|
text?: string | undefined;
|
604
|
-
|
605
|
-
|
605
|
+
customColor?: string | undefined;
|
606
|
+
customBackgroundColor?: string | undefined;
|
606
607
|
maxWidth?: Property.Width<string | number> | undefined;
|
607
608
|
size?: string | undefined;
|
608
609
|
view?: string | undefined;
|
609
610
|
} & {
|
611
|
+
contentLeft?: ReactNode;
|
612
|
+
contentRight?: undefined;
|
613
|
+
} & {
|
610
614
|
children?: ReactNode;
|
611
615
|
} & {
|
612
616
|
pilled?: true | undefined;
|
@@ -614,12 +618,63 @@ transparent?: boolean | undefined;
|
|
614
618
|
clear?: false | undefined;
|
615
619
|
} & RefAttributes<HTMLDivElement>) | (HTMLAttributes<HTMLDivElement> & {
|
616
620
|
text?: string | undefined;
|
621
|
+
customColor?: string | undefined;
|
622
|
+
customBackgroundColor?: string | undefined;
|
623
|
+
maxWidth?: Property.Width<string | number> | undefined;
|
624
|
+
size?: string | undefined;
|
625
|
+
view?: string | undefined;
|
626
|
+
} & {
|
617
627
|
contentLeft?: ReactNode;
|
628
|
+
contentRight?: undefined;
|
629
|
+
} & {
|
630
|
+
children?: ReactNode;
|
631
|
+
} & {
|
632
|
+
pilled?: boolean | undefined;
|
633
|
+
transparent?: true | undefined;
|
634
|
+
clear?: false | undefined;
|
635
|
+
} & RefAttributes<HTMLDivElement>) | (HTMLAttributes<HTMLDivElement> & {
|
636
|
+
text?: string | undefined;
|
637
|
+
customColor?: string | undefined;
|
638
|
+
customBackgroundColor?: string | undefined;
|
639
|
+
maxWidth?: Property.Width<string | number> | undefined;
|
640
|
+
size?: string | undefined;
|
641
|
+
view?: string | undefined;
|
642
|
+
} & {
|
643
|
+
contentLeft?: undefined;
|
618
644
|
contentRight?: ReactNode;
|
645
|
+
} & {
|
646
|
+
children?: ReactNode;
|
647
|
+
} & {
|
648
|
+
clear?: true | undefined;
|
649
|
+
pilled?: false | undefined;
|
650
|
+
transparent?: false | undefined;
|
651
|
+
} & RefAttributes<HTMLDivElement>) | (HTMLAttributes<HTMLDivElement> & {
|
652
|
+
text?: string | undefined;
|
653
|
+
customColor?: string | undefined;
|
654
|
+
customBackgroundColor?: string | undefined;
|
619
655
|
maxWidth?: Property.Width<string | number> | undefined;
|
620
656
|
size?: string | undefined;
|
621
657
|
view?: string | undefined;
|
622
658
|
} & {
|
659
|
+
contentLeft?: undefined;
|
660
|
+
contentRight?: ReactNode;
|
661
|
+
} & {
|
662
|
+
children?: ReactNode;
|
663
|
+
} & {
|
664
|
+
pilled?: true | undefined;
|
665
|
+
transparent?: boolean | undefined;
|
666
|
+
clear?: false | undefined;
|
667
|
+
} & RefAttributes<HTMLDivElement>) | (HTMLAttributes<HTMLDivElement> & {
|
668
|
+
text?: string | undefined;
|
669
|
+
customColor?: string | undefined;
|
670
|
+
customBackgroundColor?: string | undefined;
|
671
|
+
maxWidth?: Property.Width<string | number> | undefined;
|
672
|
+
size?: string | undefined;
|
673
|
+
view?: string | undefined;
|
674
|
+
} & {
|
675
|
+
contentLeft?: undefined;
|
676
|
+
contentRight?: ReactNode;
|
677
|
+
} & {
|
623
678
|
children?: ReactNode;
|
624
679
|
} & {
|
625
680
|
pilled?: boolean | undefined;
|
@@ -1244,7 +1299,7 @@ export { DrawerHeaderProps }
|
|
1244
1299
|
export { DrawerProps }
|
1245
1300
|
|
1246
1301
|
// @public (undocumented)
|
1247
|
-
export const Dropdown:
|
1302
|
+
export const Dropdown: <T extends DropdownItemOption>(props: Omit<DropdownNewProps<T>, "view" | "size"> & Pick<PropsType< {
|
1248
1303
|
size: {
|
1249
1304
|
l: PolymorphicClassName;
|
1250
1305
|
m: PolymorphicClassName;
|
@@ -1254,40 +1309,31 @@ xs: PolymorphicClassName;
|
|
1254
1309
|
view: {
|
1255
1310
|
default: PolymorphicClassName;
|
1256
1311
|
};
|
1257
|
-
}> & DropdownProps & RefAttributes<HTMLDivElement>>;
|
1258
|
-
|
1259
|
-
// @public (undocumented)
|
1260
|
-
export const Dropzone: FunctionComponent<PropsType< {
|
1261
|
-
view: {
|
1262
|
-
default: PolymorphicClassName;
|
1263
|
-
};
|
1264
|
-
size: {
|
1265
|
-
m: PolymorphicClassName;
|
1266
|
-
};
|
1267
|
-
disabled: {
|
1268
|
-
true: PolymorphicClassName;
|
1269
|
-
};
|
1270
1312
|
}> & {
|
1271
|
-
|
1272
|
-
|
1273
|
-
|
1274
|
-
|
1275
|
-
|
1276
|
-
|
1277
|
-
|
1278
|
-
|
1279
|
-
|
1280
|
-
|
1281
|
-
|
1282
|
-
|
1283
|
-
|
1284
|
-
|
1285
|
-
|
1286
|
-
|
1287
|
-
|
1288
|
-
|
1289
|
-
|
1290
|
-
|
1313
|
+
items: DropdownItemOption[];
|
1314
|
+
alwaysOpened?: boolean | undefined;
|
1315
|
+
children?: React_2.ReactNode;
|
1316
|
+
itemRole?: string | undefined;
|
1317
|
+
onHover?: ((index: number) => void) | undefined;
|
1318
|
+
onItemSelect?: ((item: DropdownItemOption, event: React_2.SyntheticEvent<Element, Event>) => void) | undefined;
|
1319
|
+
trigger?: DropdownTrigger | undefined;
|
1320
|
+
placement?: DropdownPlacement | undefined;
|
1321
|
+
offset?: [number, number] | undefined;
|
1322
|
+
listWidth?: Property.Width<string | number> | undefined;
|
1323
|
+
hasArrow?: boolean | undefined;
|
1324
|
+
closeOnSelect?: boolean | undefined;
|
1325
|
+
closeOnOverlayClick?: boolean | undefined;
|
1326
|
+
onToggle?: ((isOpen: boolean, event: Event | React_2.SyntheticEvent<Element, Event>) => void) | undefined;
|
1327
|
+
size?: string | undefined;
|
1328
|
+
view?: string | undefined;
|
1329
|
+
variant?: "normal" | "tight" | undefined;
|
1330
|
+
portal?: string | React_2.RefObject<HTMLElement> | undefined;
|
1331
|
+
renderItem?: ((item: DropdownItemOption) => React_2.ReactNode) | undefined;
|
1332
|
+
onItemClick?: ((item: DropdownItemOption, event: React_2.SyntheticEvent<Element, Event>) => void) | undefined;
|
1333
|
+
listOverflow?: Property.Overflow | undefined;
|
1334
|
+
listHeight?: Property.Height<string | number> | undefined;
|
1335
|
+
hoverIndex?: number | undefined;
|
1336
|
+
} & React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>, "view" | "size"> & React_2.RefAttributes<HTMLButtonElement>) => React_2.ReactElement<any, string | React_2.JSXElementConstructor<any>> | null;
|
1291
1337
|
|
1292
1338
|
// @public (undocumented)
|
1293
1339
|
export const DsplL: FunctionComponent<PropsType< {
|
@@ -1,17 +0,0 @@
|
|
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
|
-
m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
12
|
-
};
|
13
|
-
disabled: {
|
14
|
-
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
15
|
-
};
|
16
|
-
};
|
17
|
-
};
|
@@ -1,26 +0,0 @@
|
|
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, _templateObject3;
|
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: 'm'
|
14
|
-
},
|
15
|
-
variations: {
|
16
|
-
view: {
|
17
|
-
"default": /*#__PURE__*/(0, _styledComponents.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--surface-solid-card);\n ", ": var(--surface-solid-card-hover);\n ", ": var(--overlay-soft);\n ", ": 0.063rem dashed var(--outline-solid-secondary);\n ", ": var(--outline-solid-secondary-hover);\n ", ": var(--outline-accent);\n ", ": var(--text-primary);\n ", ": var(--text-secondary);\n "])), _styledComponents.dropzoneTokens.background, _styledComponents.dropzoneTokens.backgroundHover, _styledComponents.dropzoneTokens.overlayColorActive, _styledComponents.dropzoneTokens.border, _styledComponents.dropzoneTokens.borderColorHover, _styledComponents.dropzoneTokens.borderColorActive, _styledComponents.dropzoneTokens.titleColor, _styledComponents.dropzoneTokens.descriptionColor)
|
18
|
-
},
|
19
|
-
size: {
|
20
|
-
m: /*#__PURE__*/(0, _styledComponents.css)(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1.5rem;\n ", ": 1.25rem;\n ", ": 0.75rem;\n ", ": 0.375rem;\n ", ": 0.5rem;\n\n ", ": var(--plasma-typo-h4-font-family);\n ", ": var(--plasma-typo-h4-font-size);\n ", ": var(--plasma-typo-h4-font-style);\n ", ": var(--plasma-typo-h4-bold-font-weight);\n ", ": var(--plasma-typo-h4-letter-spacing);\n ", ": var(--plasma-typo-h4-line-height);\n\n ", ": var(--plasma-typo-body-s-font-family);\n ", ": var(--plasma-typo-body-s-font-size);\n ", ": var(--plasma-typo-body-s-font-style);\n ", ": var(--plasma-typo-body-s-font-weight);\n ", ": var(--plasma-typo-body-s-letter-spacing);\n ", ": var(--plasma-typo-body-s-line-height);\n "])), _styledComponents.dropzoneTokens.padding, _styledComponents.dropzoneTokens.borderRadius, _styledComponents.dropzoneTokens.contentGap, _styledComponents.dropzoneTokens.titleWrapperGap, _styledComponents.dropzoneTokens.titleWrapperGapColumn, _styledComponents.dropzoneTokens.titleFontFamily, _styledComponents.dropzoneTokens.titleFontSize, _styledComponents.dropzoneTokens.titleFontStyle, _styledComponents.dropzoneTokens.titleFontWeight, _styledComponents.dropzoneTokens.titleLetterSpacing, _styledComponents.dropzoneTokens.titleLineHeight, _styledComponents.dropzoneTokens.descriptionFontFamily, _styledComponents.dropzoneTokens.descriptionFontSize, _styledComponents.dropzoneTokens.descriptionFontStyle, _styledComponents.dropzoneTokens.descriptionFontWeight, _styledComponents.dropzoneTokens.descriptionLetterSpacing, _styledComponents.dropzoneTokens.descriptionLineHeight)
|
21
|
-
},
|
22
|
-
disabled: {
|
23
|
-
"true": /*#__PURE__*/(0, _styledComponents.css)(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.4;\n "])), _styledComponents.dropzoneTokens.disabledOpacity)
|
24
|
-
}
|
25
|
-
}
|
26
|
-
};
|
@@ -1,28 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
export declare const Dropzone: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
3
|
-
view: {
|
4
|
-
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
5
|
-
};
|
6
|
-
size: {
|
7
|
-
m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
8
|
-
};
|
9
|
-
disabled: {
|
10
|
-
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
11
|
-
};
|
12
|
-
}> & {
|
13
|
-
multiple?: boolean | undefined;
|
14
|
-
title?: string | undefined;
|
15
|
-
description?: import("react").ReactNode;
|
16
|
-
icon?: import("react").ReactNode;
|
17
|
-
iconPlacement?: "top" | "left" | undefined;
|
18
|
-
size?: string | undefined;
|
19
|
-
view?: string | undefined;
|
20
|
-
disabled?: boolean | undefined;
|
21
|
-
stretch?: boolean | undefined;
|
22
|
-
onDragEnter?: ((event: import("react").DragEvent<HTMLDivElement>) => void) | undefined;
|
23
|
-
onDragLeave?: ((event: import("react").DragEvent<HTMLDivElement>) => void) | undefined;
|
24
|
-
onDragOver?: ((event: import("react").DragEvent<HTMLDivElement>) => void) | undefined;
|
25
|
-
validator?: ((files: File[]) => import("@salutejs/plasma-new-hope/types/components/Dropzone/Dropzone.types").ValidatorReturnType) | undefined;
|
26
|
-
onDrop?: import("@salutejs/plasma-new-hope/types/components/Dropzone/Dropzone.types").FileProcessHandler | undefined;
|
27
|
-
onChoseFiles?: import("@salutejs/plasma-new-hope/types/components/Dropzone/Dropzone.types").FileProcessHandler | undefined;
|
28
|
-
} & import("react").InputHTMLAttributes<HTMLInputElement> & import("react").RefAttributes<HTMLInputElement>>;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.Dropzone = void 0;
|
7
|
-
var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
|
8
|
-
var _Dropzone = /*#__PURE__*/require("./Dropzone.config");
|
9
|
-
var mergedConfig = /*#__PURE__*/(0, _styledComponents.mergeConfig)(_styledComponents.dropzoneConfig, _Dropzone.config);
|
10
|
-
var Dropzone = exports.Dropzone = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
|
@@ -1,25 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
Object.defineProperty(exports, "Dropzone", {
|
7
|
-
enumerable: true,
|
8
|
-
get: function get() {
|
9
|
-
return _Dropzone.Dropzone;
|
10
|
-
}
|
11
|
-
});
|
12
|
-
Object.defineProperty(exports, "dropzoneClasses", {
|
13
|
-
enumerable: true,
|
14
|
-
get: function get() {
|
15
|
-
return _styledComponents.dropzoneClasses;
|
16
|
-
}
|
17
|
-
});
|
18
|
-
Object.defineProperty(exports, "dropzoneTokens", {
|
19
|
-
enumerable: true,
|
20
|
-
get: function get() {
|
21
|
-
return _styledComponents.dropzoneTokens;
|
22
|
-
}
|
23
|
-
});
|
24
|
-
var _Dropzone = /*#__PURE__*/require("./Dropzone");
|
25
|
-
var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
|
@@ -1,20 +0,0 @@
|
|
1
|
-
var _templateObject, _templateObject2, _templateObject3;
|
2
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
3
|
-
import { css, dropzoneTokens } from '@salutejs/plasma-new-hope/styled-components';
|
4
|
-
export var config = {
|
5
|
-
defaults: {
|
6
|
-
view: 'default',
|
7
|
-
size: 'm'
|
8
|
-
},
|
9
|
-
variations: {
|
10
|
-
view: {
|
11
|
-
"default": /*#__PURE__*/css(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--surface-solid-card);\n ", ": var(--surface-solid-card-hover);\n ", ": var(--overlay-soft);\n ", ": 0.063rem dashed var(--outline-solid-secondary);\n ", ": var(--outline-solid-secondary-hover);\n ", ": var(--outline-accent);\n ", ": var(--text-primary);\n ", ": var(--text-secondary);\n "])), dropzoneTokens.background, dropzoneTokens.backgroundHover, dropzoneTokens.overlayColorActive, dropzoneTokens.border, dropzoneTokens.borderColorHover, dropzoneTokens.borderColorActive, dropzoneTokens.titleColor, dropzoneTokens.descriptionColor)
|
12
|
-
},
|
13
|
-
size: {
|
14
|
-
m: /*#__PURE__*/css(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1.5rem;\n ", ": 1.25rem;\n ", ": 0.75rem;\n ", ": 0.375rem;\n ", ": 0.5rem;\n\n ", ": var(--plasma-typo-h4-font-family);\n ", ": var(--plasma-typo-h4-font-size);\n ", ": var(--plasma-typo-h4-font-style);\n ", ": var(--plasma-typo-h4-bold-font-weight);\n ", ": var(--plasma-typo-h4-letter-spacing);\n ", ": var(--plasma-typo-h4-line-height);\n\n ", ": var(--plasma-typo-body-s-font-family);\n ", ": var(--plasma-typo-body-s-font-size);\n ", ": var(--plasma-typo-body-s-font-style);\n ", ": var(--plasma-typo-body-s-font-weight);\n ", ": var(--plasma-typo-body-s-letter-spacing);\n ", ": var(--plasma-typo-body-s-line-height);\n "])), dropzoneTokens.padding, dropzoneTokens.borderRadius, dropzoneTokens.contentGap, dropzoneTokens.titleWrapperGap, dropzoneTokens.titleWrapperGapColumn, dropzoneTokens.titleFontFamily, dropzoneTokens.titleFontSize, dropzoneTokens.titleFontStyle, dropzoneTokens.titleFontWeight, dropzoneTokens.titleLetterSpacing, dropzoneTokens.titleLineHeight, dropzoneTokens.descriptionFontFamily, dropzoneTokens.descriptionFontSize, dropzoneTokens.descriptionFontStyle, dropzoneTokens.descriptionFontWeight, dropzoneTokens.descriptionLetterSpacing, dropzoneTokens.descriptionLineHeight)
|
15
|
-
},
|
16
|
-
disabled: {
|
17
|
-
"true": /*#__PURE__*/css(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.4;\n "])), dropzoneTokens.disabledOpacity)
|
18
|
-
}
|
19
|
-
}
|
20
|
-
};
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import { dropzoneConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/styled-components';
|
2
|
-
import { config } from './Dropzone.config';
|
3
|
-
var mergedConfig = /*#__PURE__*/mergeConfig(dropzoneConfig, config);
|
4
|
-
export var Dropzone = /*#__PURE__*/component(mergedConfig);
|