@salutejs/sdds-cs 0.237.2-canary.1731.13045847317.0 → 0.237.2-canary.1732.13046307319.0
Sign up to get free protection for your applications and to get access to all the features.
package/api/sdds-cs.api.md
CHANGED
@@ -94,7 +94,7 @@ import { DrawerContentProps } from '@salutejs/plasma-new-hope/styled-components'
|
|
94
94
|
import { DrawerFooterProps } from '@salutejs/plasma-new-hope/styled-components';
|
95
95
|
import { DrawerHeaderProps } from '@salutejs/plasma-new-hope/styled-components';
|
96
96
|
import { DrawerProps } from '@salutejs/plasma-new-hope/styled-components';
|
97
|
-
import
|
97
|
+
import { DropdownItemOption } from '@salutejs/plasma-new-hope';
|
98
98
|
import type { DropdownNewProps } from '@salutejs/plasma-new-hope';
|
99
99
|
import { DropdownNodeSelect } from '@salutejs/plasma-new-hope/styled-components';
|
100
100
|
import { DropdownPlacement } from '@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types';
|
@@ -136,7 +136,6 @@ import { IndicatorProps } from '@salutejs/plasma-new-hope/styled-components';
|
|
136
136
|
import { InputHTMLAttributes } from '@salutejs/plasma-new-hope/styled-components';
|
137
137
|
import { InputHTMLAttributes as InputHTMLAttributes_2 } from 'react';
|
138
138
|
import type { ItemOption } from '@salutejs/plasma-new-hope';
|
139
|
-
import type { ItemOptionSelect } from '@salutejs/plasma-new-hope';
|
140
139
|
import { JSXElementConstructor } from 'react';
|
141
140
|
import { KeyboardEvent as KeyboardEvent_2 } from 'react';
|
142
141
|
import { LabelProps } from '@salutejs/plasma-new-hope/types/components/TextField/TextField.types';
|
@@ -195,6 +194,7 @@ import { SegmentGroupProps } from '@salutejs/plasma-new-hope/styled-components';
|
|
195
194
|
import { SegmentItemProps } from '@salutejs/plasma-new-hope/styled-components';
|
196
195
|
import { SegmentProvider } from '@salutejs/plasma-new-hope/styled-components';
|
197
196
|
import { SegmentProviderProps } from '@salutejs/plasma-new-hope/styled-components';
|
197
|
+
import { ItemOptionSelect as SelectItemOption } from '@salutejs/plasma-new-hope';
|
198
198
|
import { SelectPlacement } from '@salutejs/plasma-new-hope/types/components/Select/Select.types';
|
199
199
|
import { SelectPlacementBasic } from '@salutejs/plasma-new-hope/types/components/Select/Select.types';
|
200
200
|
import type { SelectProps as SelectProps_2 } from '@salutejs/plasma-new-hope';
|
@@ -1532,6 +1532,13 @@ default: PolymorphicClassName;
|
|
1532
1532
|
hoverIndex?: number | undefined;
|
1533
1533
|
} & React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>, "size" | "view"> & React_2.RefAttributes<HTMLButtonElement>) => React_2.ReactElement<any, string | React_2.JSXElementConstructor<any>> | null;
|
1534
1534
|
|
1535
|
+
export { DropdownItemOption }
|
1536
|
+
|
1537
|
+
// Warning: (ae-forgotten-export) The symbol "DropdownNewHope" needs to be exported by the entry point index.d.ts
|
1538
|
+
//
|
1539
|
+
// @public (undocumented)
|
1540
|
+
export type DropdownProps<T extends DropdownItemOption> = Omit<DropdownNewProps<T>, 'size' | 'view'> & Pick<ComponentProps<typeof DropdownNewHope>, 'size' | 'view'>;
|
1541
|
+
|
1535
1542
|
// @public (undocumented)
|
1536
1543
|
export const Dropzone: FunctionComponent<PropsType< {
|
1537
1544
|
view: {
|
@@ -2803,10 +2810,15 @@ export { SegmentProvider }
|
|
2803
2810
|
|
2804
2811
|
export { SegmentProviderProps }
|
2805
2812
|
|
2806
|
-
//
|
2813
|
+
// @public (undocumented)
|
2814
|
+
export const Select: <K extends SelectItemOption>(props: SelectProps<K> & React_2.RefAttributes<HTMLButtonElement>) => React_2.ReactElement<any, string | React_2.JSXElementConstructor<any>> | null;
|
2815
|
+
|
2816
|
+
export { SelectItemOption }
|
2817
|
+
|
2818
|
+
// Warning: (ae-forgotten-export) The symbol "SelectNewHope" needs to be exported by the entry point index.d.ts
|
2807
2819
|
//
|
2808
2820
|
// @public (undocumented)
|
2809
|
-
export
|
2821
|
+
export type SelectProps<K extends SelectItemOption> = DistributiveOmit<SelectProps_2<K>, 'size' | 'view' | 'chipView' | 'disabled'> & DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;
|
2810
2822
|
|
2811
2823
|
// @public
|
2812
2824
|
export const Sheet: FunctionComponent<PropsType< {
|
@@ -1,5 +1,41 @@
|
|
1
1
|
import type { DropdownItemOption, DropdownNewProps } from '@salutejs/plasma-new-hope';
|
2
|
-
import React from 'react';
|
2
|
+
import React, { ComponentProps } from 'react';
|
3
|
+
declare const DropdownNewHope: React.FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
4
|
+
size: {
|
5
|
+
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
6
|
+
};
|
7
|
+
view: {
|
8
|
+
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
9
|
+
};
|
10
|
+
}> & {
|
11
|
+
items: DropdownItemOption[];
|
12
|
+
alwaysOpened?: boolean | undefined;
|
13
|
+
children?: React.ReactNode;
|
14
|
+
itemRole?: string | undefined;
|
15
|
+
onHover?: ((index: number) => void) | undefined;
|
16
|
+
onItemSelect?: ((item: DropdownItemOption, event: React.SyntheticEvent<Element, Event>) => void) | undefined;
|
17
|
+
trigger?: import("@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types").DropdownTrigger | undefined;
|
18
|
+
placement?: import("@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types").DropdownPlacement | undefined;
|
19
|
+
offset?: [number, number] | undefined;
|
20
|
+
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
21
|
+
hasArrow?: boolean | undefined;
|
22
|
+
closeOnSelect?: boolean | undefined;
|
23
|
+
closeOnOverlayClick?: boolean | undefined;
|
24
|
+
onToggle?: ((isOpen: boolean, event: Event | React.SyntheticEvent<Element, Event>) => void) | undefined;
|
25
|
+
size?: string | undefined;
|
26
|
+
view?: string | undefined;
|
27
|
+
variant?: "normal" | "tight" | undefined;
|
28
|
+
portal?: string | React.RefObject<HTMLElement> | undefined;
|
29
|
+
renderItem?: ((item: DropdownItemOption) => React.ReactNode) | undefined;
|
30
|
+
zIndex?: import("csstype").Property.ZIndex | undefined;
|
31
|
+
beforeList?: React.ReactNode;
|
32
|
+
afterList?: React.ReactNode;
|
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>>;
|
38
|
+
export declare type DropdownProps<T extends DropdownItemOption> = Omit<DropdownNewProps<T>, 'size' | 'view'> & Pick<ComponentProps<typeof DropdownNewHope>, 'size' | 'view'>;
|
3
39
|
declare const Dropdown: <T extends DropdownItemOption>(props: Omit<DropdownNewProps<T>, "size" | "view"> & Pick<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
4
40
|
size: {
|
5
41
|
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
@@ -307,6 +307,6 @@ declare const SelectNewHope: React.FunctionComponent<import("@salutejs/plasma-ne
|
|
307
307
|
hasItems?: boolean | undefined;
|
308
308
|
isOpen?: boolean | undefined;
|
309
309
|
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "nonce" | "onResize" | "onResizeCapture" | "value"> & React.RefAttributes<HTMLButtonElement>))>;
|
310
|
-
declare type SelectProps<K extends ItemOptionSelect> = DistributiveOmit<SelectPropsNewHope<K>, 'size' | 'view' | 'chipView' | 'disabled'> & DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;
|
310
|
+
export declare type SelectProps<K extends ItemOptionSelect> = DistributiveOmit<SelectPropsNewHope<K>, 'size' | 'view' | 'chipView' | 'disabled'> & DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;
|
311
311
|
declare const Select: <K extends ItemOptionSelect>(props: SelectProps<K> & React.RefAttributes<HTMLButtonElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
312
312
|
export { Select };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/sdds-cs",
|
3
|
-
"version": "0.237.2-canary.
|
3
|
+
"version": "0.237.2-canary.1732.13046307319.0",
|
4
4
|
"description": "Salute Design System / React UI kit for SDDS CS web applications",
|
5
5
|
"author": "Salute Frontend Team <salute.developers@gmail.com>",
|
6
6
|
"license": "MIT",
|
@@ -56,7 +56,7 @@
|
|
56
56
|
"@salutejs/plasma-colors": "0.14.0",
|
57
57
|
"@salutejs/plasma-core": "1.191.0",
|
58
58
|
"@salutejs/plasma-cy-utils": "0.122.0",
|
59
|
-
"@salutejs/plasma-icons": "1.210.
|
59
|
+
"@salutejs/plasma-icons": "1.210.0",
|
60
60
|
"@salutejs/plasma-sb-utils": "0.191.0",
|
61
61
|
"@storybook/addon-docs": "7.6.17",
|
62
62
|
"@storybook/addon-essentials": "7.6.17",
|
@@ -123,5 +123,5 @@
|
|
123
123
|
"Anton Vinogradov"
|
124
124
|
],
|
125
125
|
"sideEffects": false,
|
126
|
-
"gitHead": "
|
126
|
+
"gitHead": "986496e64b2373769ed02d341e703820d58dd4ac"
|
127
127
|
}
|