@salutejs/sdds-serv 0.242.1-canary.1748.13146738449.0 → 0.242.2-canary.1732.13151168550.0
Sign up to get free protection for your applications and to get access to all the features.
- package/api/sdds-serv.api.md +28 -10
- package/components/Combobox/Combobox.d.ts +1 -1
- package/components/Combobox/Combobox.js.map +1 -1
- package/components/Combobox/index.d.ts +2 -0
- package/components/Dropdown/Dropdown.d.ts +40 -1
- package/components/Dropdown/Dropdown.js.map +1 -1
- package/components/Dropdown/index.d.ts +2 -0
- package/components/Select/Select.d.ts +1 -7
- package/components/Select/Select.js.map +1 -1
- package/components/Select/index.d.ts +2 -0
- package/es/components/Combobox/Combobox.js.map +1 -1
- package/es/components/Dropdown/Dropdown.js.map +1 -1
- package/es/components/Select/Select.js.map +1 -1
- package/package.json +4 -4
package/api/sdds-serv.api.md
CHANGED
@@ -61,7 +61,8 @@ import { ColCount } from '@salutejs/plasma-new-hope/styled-components';
|
|
61
61
|
import { ColOffsetProps } from '@salutejs/plasma-new-hope/styled-components';
|
62
62
|
import { ColProps } from '@salutejs/plasma-new-hope/styled-components';
|
63
63
|
import { ColSizeProps } from '@salutejs/plasma-new-hope/styled-components';
|
64
|
-
import
|
64
|
+
import { ItemOption as ComboboxItemOption } from '@salutejs/plasma-new-hope';
|
65
|
+
import type { ComboboxProps as ComboboxProps_2 } from '@salutejs/plasma-new-hope';
|
65
66
|
import { CommitInstanceCallback } from '@salutejs/plasma-new-hope/types/components/DatePicker/RangeDate/RangeDate.types';
|
66
67
|
import { ComponentProps } from 'react';
|
67
68
|
import { CounterProps } from '@salutejs/plasma-new-hope/styled-components';
|
@@ -94,7 +95,7 @@ import { DrawerContentProps } from '@salutejs/plasma-new-hope/styled-components'
|
|
94
95
|
import { DrawerFooterProps } from '@salutejs/plasma-new-hope/styled-components';
|
95
96
|
import { DrawerHeaderProps } from '@salutejs/plasma-new-hope/styled-components';
|
96
97
|
import { DrawerProps } from '@salutejs/plasma-new-hope/styled-components';
|
97
|
-
import
|
98
|
+
import { DropdownItemOption } from '@salutejs/plasma-new-hope';
|
98
99
|
import type { DropdownNewProps } from '@salutejs/plasma-new-hope';
|
99
100
|
import { DropdownNodeSelect } from '@salutejs/plasma-new-hope/styled-components';
|
100
101
|
import { DropdownPlacement } from '@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types';
|
@@ -135,8 +136,6 @@ import { ImgHTMLAttributes } from 'react';
|
|
135
136
|
import { IndicatorProps } from '@salutejs/plasma-new-hope/styled-components';
|
136
137
|
import { InputHTMLAttributes } from '@salutejs/plasma-new-hope/styled-components';
|
137
138
|
import { InputHTMLAttributes as InputHTMLAttributes_2 } from 'react';
|
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';
|
@@ -176,7 +175,7 @@ import { priceClasses } from '@salutejs/plasma-new-hope/styled-components';
|
|
176
175
|
import { PriceProps } from '@salutejs/plasma-new-hope/types/components/Price/Price.types';
|
177
176
|
import { ProgressProps } from '@salutejs/plasma-new-hope/styled-components';
|
178
177
|
import { Property } from 'csstype';
|
179
|
-
import { Props
|
178
|
+
import { Props } from '@salutejs/plasma-new-hope/types/components/EmptyState/EmptyState.types';
|
180
179
|
import { PropsType } from '@salutejs/plasma-new-hope/types/engines/types';
|
181
180
|
import { RadioGroup } from '@salutejs/plasma-new-hope/styled-components';
|
182
181
|
import { RangeInputRefs } from '@salutejs/plasma-new-hope/styled-components';
|
@@ -200,6 +199,7 @@ import { SegmentGroupProps } from '@salutejs/plasma-new-hope/styled-components';
|
|
200
199
|
import { SegmentItemProps } from '@salutejs/plasma-new-hope/styled-components';
|
201
200
|
import { SegmentProvider } from '@salutejs/plasma-new-hope/styled-components';
|
202
201
|
import { SegmentProviderProps } from '@salutejs/plasma-new-hope/styled-components';
|
202
|
+
import { ItemOptionSelect as SelectItemOption } from '@salutejs/plasma-new-hope';
|
203
203
|
import { SelectPlacement } from '@salutejs/plasma-new-hope/types/components/Select/Select.types';
|
204
204
|
import { SelectPlacementBasic } from '@salutejs/plasma-new-hope/types/components/Select/Select.types';
|
205
205
|
import type { SelectProps as SelectProps_2 } from '@salutejs/plasma-new-hope';
|
@@ -1401,10 +1401,16 @@ export { ColProps }
|
|
1401
1401
|
|
1402
1402
|
export { ColSizeProps }
|
1403
1403
|
|
1404
|
-
//
|
1404
|
+
// @public (undocumented)
|
1405
|
+
export const Combobox: <T extends ComboboxItemOption>(props: ComboboxProps<T> & React_2.RefAttributes<HTMLInputElement>) => React_2.ReactElement<any, string | React_2.JSXElementConstructor<any>> | null;
|
1406
|
+
|
1407
|
+
export { ComboboxItemOption }
|
1408
|
+
|
1409
|
+
// Warning: (ae-forgotten-export) The symbol "PropsFromConfig" needs to be exported by the entry point index.d.ts
|
1410
|
+
// Warning: (ae-forgotten-export) The symbol "ComboboxNew" needs to be exported by the entry point index.d.ts
|
1405
1411
|
//
|
1406
1412
|
// @public (undocumented)
|
1407
|
-
export
|
1413
|
+
export type ComboboxProps<T extends ComboboxItemOption> = DistributiveOmit<ComboboxProps_2<T>, PropsFromConfig> & DistributivePick<ComponentProps<typeof ComboboxNew>, PropsFromConfig>;
|
1408
1414
|
|
1409
1415
|
// @public
|
1410
1416
|
export const Counter: FunctionComponent<PropsType< {
|
@@ -1670,6 +1676,13 @@ default: PolymorphicClassName;
|
|
1670
1676
|
hoverIndex?: number | undefined;
|
1671
1677
|
} & React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>, "size" | "view"> & React_2.RefAttributes<HTMLButtonElement>) => React_2.ReactElement<any, string | React_2.JSXElementConstructor<any>> | null;
|
1672
1678
|
|
1679
|
+
export { DropdownItemOption }
|
1680
|
+
|
1681
|
+
// Warning: (ae-forgotten-export) The symbol "DropdownNewHope" needs to be exported by the entry point index.d.ts
|
1682
|
+
//
|
1683
|
+
// @public (undocumented)
|
1684
|
+
export type DropdownProps<T extends DropdownItemOption> = Omit<DropdownNewProps<T>, 'size' | 'view'> & Pick<ComponentProps<typeof DropdownNewHope>, 'size' | 'view'>;
|
1685
|
+
|
1673
1686
|
// @public (undocumented)
|
1674
1687
|
export const Dropzone: FunctionComponent<PropsType< {
|
1675
1688
|
view: {
|
@@ -1756,7 +1769,7 @@ m: PolymorphicClassName;
|
|
1756
1769
|
s: PolymorphicClassName;
|
1757
1770
|
xs: PolymorphicClassName;
|
1758
1771
|
};
|
1759
|
-
}> &
|
1772
|
+
}> & Props & RefAttributes<HTMLDivElement>>;
|
1760
1773
|
|
1761
1774
|
// @public (undocumented)
|
1762
1775
|
export const Flow: FunctionComponent<PropsType< {}> & FlowProps & {
|
@@ -3175,10 +3188,15 @@ export { SegmentProvider }
|
|
3175
3188
|
|
3176
3189
|
export { SegmentProviderProps }
|
3177
3190
|
|
3178
|
-
//
|
3191
|
+
// @public (undocumented)
|
3192
|
+
export const Select: <K extends SelectItemOption>(props: SelectProps<K> & React_2.RefAttributes<HTMLButtonElement>) => React_2.ReactElement<any, string | React_2.JSXElementConstructor<any>> | null;
|
3193
|
+
|
3194
|
+
export { SelectItemOption }
|
3195
|
+
|
3196
|
+
// Warning: (ae-forgotten-export) The symbol "SelectNewHope" needs to be exported by the entry point index.d.ts
|
3179
3197
|
//
|
3180
3198
|
// @public (undocumented)
|
3181
|
-
export
|
3199
|
+
export type SelectProps<K extends SelectItemOption> = DistributiveOmit<SelectProps_2<K>, 'size' | 'view' | 'chipView' | 'disabled'> & DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;
|
3182
3200
|
|
3183
3201
|
// @public
|
3184
3202
|
export const Sheet: FunctionComponent<PropsType< {
|
@@ -1161,6 +1161,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1161
1161
|
hintContentLeft?: undefined;
|
1162
1162
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>))>;
|
1163
1163
|
declare type PropsFromConfig = keyof typeof config['variations'];
|
1164
|
-
declare type Props<T extends ItemOption> = DistributiveOmit<ComboboxProps<T>, PropsFromConfig> & DistributivePick<ComponentProps<typeof ComboboxNew>, PropsFromConfig>;
|
1164
|
+
export declare type Props<T extends ItemOption> = DistributiveOmit<ComboboxProps<T>, PropsFromConfig> & DistributivePick<ComponentProps<typeof ComboboxNew>, PropsFromConfig>;
|
1165
1165
|
declare const Combobox: <T extends ItemOption>(props: Props<T> & React.RefAttributes<HTMLInputElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
1166
1166
|
export { Combobox };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Combobox.js","sources":["../../src-css/components/Combobox/Combobox.tsx"],"sourcesContent":["import {\n comboboxNewConfig,\n component,\n mergeConfig,\n fixedForwardRef,\n} from '@salutejs/plasma-new-hope';\nimport type { ItemOption, ComboboxProps, DistributiveOmit, DistributivePick } from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps } from 'react';\n\nimport { config } from './Combobox.config';\n\nconst mergedConfig = mergeConfig(comboboxNewConfig, config);\nconst ComboboxNew = component(mergedConfig);\n\ntype PropsFromConfig = keyof typeof config['variations'];\n\
|
1
|
+
{"version":3,"file":"Combobox.js","sources":["../../src-css/components/Combobox/Combobox.tsx"],"sourcesContent":["import {\n comboboxNewConfig,\n component,\n mergeConfig,\n fixedForwardRef,\n} from '@salutejs/plasma-new-hope';\nimport type { ItemOption, ComboboxProps, DistributiveOmit, DistributivePick } from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps } from 'react';\n\nimport { config } from './Combobox.config';\n\nconst mergedConfig = mergeConfig(comboboxNewConfig, config);\nconst ComboboxNew = component(mergedConfig);\n\ntype PropsFromConfig = keyof typeof config['variations'];\n\nexport type Props<T extends ItemOption> = DistributiveOmit<ComboboxProps<T>, PropsFromConfig> &\n DistributivePick<ComponentProps<typeof ComboboxNew>, PropsFromConfig>;\n\nconst ComboboxComponent = <T extends ItemOption>(props: Props<T>, ref: React.ForwardedRef<HTMLInputElement>) => {\n return <ComboboxNew ref={ref} {...(props as any)} />;\n};\n\nconst Combobox = fixedForwardRef(ComboboxComponent);\n\nexport { Combobox };\n"],"names":["mergedConfig","mergeConfig","comboboxNewConfig","config","ComboboxNew","component","ComboboxComponent","props","ref","React","createElement","_extends","Combobox","fixedForwardRef"],"mappings":";;;;;;;;;;;;;AAWA,IAAMA,YAAY,gBAAGC,yBAAW,CAACC,+BAAiB,EAAEC,sBAAM,CAAC,CAAA;AAC3D,IAAMC,WAAW,gBAAGC,uBAAS,CAACL,YAAY,CAAC,CAAA;AAO3C,IAAMM,iBAAiB,GAAG,SAApBA,iBAAiBA,CAA0BC,KAAe,EAAEC,GAAyC,EAAK;AAC5G,EAAA,oBAAOC,sBAAA,CAAAC,aAAA,CAACN,WAAW,EAAAO,iCAAA,CAAA;AAACH,IAAAA,GAAG,EAAEA,GAAAA;GAAUD,EAAAA,KAAK,CAAW,CAAC,CAAA;AACxD,CAAC,CAAA;AAED,IAAMK,QAAQ,gBAAGC,6BAAe,CAACP,iBAAiB;;;;"}
|
@@ -1,5 +1,44 @@
|
|
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
|
+
l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
6
|
+
m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
7
|
+
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
8
|
+
xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
9
|
+
};
|
10
|
+
view: {
|
11
|
+
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
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
|
+
zIndex?: import("csstype").Property.ZIndex | undefined;
|
34
|
+
beforeList?: React.ReactNode;
|
35
|
+
afterList?: React.ReactNode;
|
36
|
+
onItemClick?: ((item: DropdownItemOption, event: React.SyntheticEvent<Element, Event>) => void) | undefined;
|
37
|
+
listOverflow?: import("csstype").Property.Overflow | undefined;
|
38
|
+
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
39
|
+
hoverIndex?: number | undefined;
|
40
|
+
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
41
|
+
export declare type DropdownProps<T extends DropdownItemOption> = Omit<DropdownNewProps<T>, 'size' | 'view'> & Pick<ComponentProps<typeof DropdownNewHope>, 'size' | 'view'>;
|
3
42
|
declare const Dropdown: <T extends DropdownItemOption>(props: Omit<DropdownNewProps<T>, "size" | "view"> & Pick<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
4
43
|
size: {
|
5
44
|
l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Dropdown.js","sources":["../../src-css/components/Dropdown/Dropdown.tsx"],"sourcesContent":["import { dropdownConfig, component, mergeConfig, fixedForwardRef } from '@salutejs/plasma-new-hope';\nimport type { DropdownItemOption, DropdownNewProps } from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps, ForwardedRef } from 'react';\n\nimport { config } from './Dropdown.config';\n\nconst mergedConfig = mergeConfig(dropdownConfig, config);\nconst DropdownNewHope = component(mergedConfig);\n\
|
1
|
+
{"version":3,"file":"Dropdown.js","sources":["../../src-css/components/Dropdown/Dropdown.tsx"],"sourcesContent":["import { dropdownConfig, component, mergeConfig, fixedForwardRef } from '@salutejs/plasma-new-hope';\nimport type { DropdownItemOption, DropdownNewProps } from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps, ForwardedRef } from 'react';\n\nimport { config } from './Dropdown.config';\n\nconst mergedConfig = mergeConfig(dropdownConfig, config);\nconst DropdownNewHope = component(mergedConfig);\n\nexport type DropdownProps<T extends DropdownItemOption> = Omit<DropdownNewProps<T>, 'size' | 'view'> &\n Pick<ComponentProps<typeof DropdownNewHope>, 'size' | 'view'>;\n\nconst DropdownComponent = <T extends DropdownItemOption>(\n props: DropdownProps<T>,\n ref: ForwardedRef<HTMLButtonElement>,\n) => {\n return <DropdownNewHope ref={ref} {...(props as any)} />;\n};\n\nconst Dropdown = fixedForwardRef(DropdownComponent);\n\nexport { Dropdown };\n"],"names":["mergedConfig","mergeConfig","dropdownConfig","config","DropdownNewHope","component","DropdownComponent","props","ref","React","createElement","_extends","Dropdown","fixedForwardRef"],"mappings":";;;;;;;;;;;;;AAMA,IAAMA,YAAY,gBAAGC,yBAAW,CAACC,4BAAc,EAAEC,sBAAM,CAAC,CAAA;AACxD,IAAMC,eAAe,gBAAGC,uBAAS,CAACL,YAAY,CAAC,CAAA;AAK/C,IAAMM,iBAAiB,GAAG,SAApBA,iBAAiBA,CACnBC,KAAuB,EACvBC,GAAoC,EACnC;AACD,EAAA,oBAAOC,sBAAA,CAAAC,aAAA,CAACN,eAAe,EAAAO,iCAAA,CAAA;AAACH,IAAAA,GAAG,EAAEA,GAAAA;GAAUD,EAAAA,KAAK,CAAW,CAAC,CAAA;AAC5D,CAAC,CAAA;AAED,IAAMK,QAAQ,gBAAGC,6BAAe,CAACP,iBAAiB;;;;"}
|
@@ -68,7 +68,6 @@ declare const SelectNewHope: React.FunctionComponent<import("@salutejs/plasma-ne
|
|
68
68
|
placeholder?: string | undefined;
|
69
69
|
helperText?: string | undefined;
|
70
70
|
disabled?: boolean | undefined;
|
71
|
-
readOnly?: boolean | undefined;
|
72
71
|
items?: import("@salutejs/plasma-new-hope/styled-components").DropdownNodeSelect[] | undefined;
|
73
72
|
onItemSelect?: ((e: import("@salutejs/plasma-new-hope/styled-components").DropdownNodeSelect, event: React.SyntheticEvent<Element, Event>) => void) | undefined;
|
74
73
|
children?: undefined;
|
@@ -121,7 +120,6 @@ declare const SelectNewHope: React.FunctionComponent<import("@salutejs/plasma-ne
|
|
121
120
|
placeholder?: string | undefined;
|
122
121
|
helperText?: string | undefined;
|
123
122
|
disabled?: boolean | undefined;
|
124
|
-
readOnly?: boolean | undefined;
|
125
123
|
items?: import("@salutejs/plasma-new-hope/styled-components").DropdownNodeSelect[] | undefined;
|
126
124
|
onItemSelect?: ((e: import("@salutejs/plasma-new-hope/styled-components").DropdownNodeSelect, event: React.SyntheticEvent<Element, Event>) => void) | undefined;
|
127
125
|
children?: undefined;
|
@@ -174,7 +172,6 @@ declare const SelectNewHope: React.FunctionComponent<import("@salutejs/plasma-ne
|
|
174
172
|
placeholder?: string | undefined;
|
175
173
|
helperText?: string | undefined;
|
176
174
|
disabled?: boolean | undefined;
|
177
|
-
readOnly?: boolean | undefined;
|
178
175
|
items?: import("@salutejs/plasma-new-hope/styled-components").DropdownNodeSelect[] | undefined;
|
179
176
|
onItemSelect?: ((e: import("@salutejs/plasma-new-hope/styled-components").DropdownNodeSelect, event: React.SyntheticEvent<Element, Event>) => void) | undefined;
|
180
177
|
children?: undefined;
|
@@ -227,7 +224,6 @@ declare const SelectNewHope: React.FunctionComponent<import("@salutejs/plasma-ne
|
|
227
224
|
placeholder?: string | undefined;
|
228
225
|
helperText?: string | undefined;
|
229
226
|
disabled?: boolean | undefined;
|
230
|
-
readOnly?: boolean | undefined;
|
231
227
|
items?: import("@salutejs/plasma-new-hope/styled-components").DropdownNodeSelect[] | undefined;
|
232
228
|
onItemSelect?: ((e: import("@salutejs/plasma-new-hope/styled-components").DropdownNodeSelect, event: React.SyntheticEvent<Element, Event>) => void) | undefined;
|
233
229
|
children?: undefined;
|
@@ -268,7 +264,6 @@ declare const SelectNewHope: React.FunctionComponent<import("@salutejs/plasma-ne
|
|
268
264
|
placeholder?: string | undefined;
|
269
265
|
helperText?: string | undefined;
|
270
266
|
disabled?: boolean | undefined;
|
271
|
-
readOnly?: boolean | undefined;
|
272
267
|
items?: import("@salutejs/plasma-new-hope/styled-components").DropdownNodeSelect[] | undefined;
|
273
268
|
onItemSelect?: ((e: import("@salutejs/plasma-new-hope/styled-components").DropdownNodeSelect, event: React.SyntheticEvent<Element, Event>) => void) | undefined;
|
274
269
|
children?: undefined;
|
@@ -309,7 +304,6 @@ declare const SelectNewHope: React.FunctionComponent<import("@salutejs/plasma-ne
|
|
309
304
|
placeholder?: string | undefined;
|
310
305
|
helperText?: string | undefined;
|
311
306
|
disabled?: boolean | undefined;
|
312
|
-
readOnly?: boolean | undefined;
|
313
307
|
items?: import("@salutejs/plasma-new-hope/styled-components").DropdownNodeSelect[] | undefined;
|
314
308
|
onItemSelect?: ((e: import("@salutejs/plasma-new-hope/styled-components").DropdownNodeSelect, event: React.SyntheticEvent<Element, Event>) => void) | undefined;
|
315
309
|
children?: undefined;
|
@@ -333,6 +327,6 @@ declare const SelectNewHope: React.FunctionComponent<import("@salutejs/plasma-ne
|
|
333
327
|
hasItems?: boolean | undefined;
|
334
328
|
isOpen?: boolean | undefined;
|
335
329
|
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "nonce" | "onResize" | "onResizeCapture" | "value"> & React.RefAttributes<HTMLButtonElement>))>;
|
336
|
-
declare type SelectProps<K extends ItemOptionSelect> = DistributiveOmit<SelectPropsNewHope<K>, 'size' | 'view' | 'chipView' | 'disabled'> & DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;
|
330
|
+
export declare type SelectProps<K extends ItemOptionSelect> = DistributiveOmit<SelectPropsNewHope<K>, 'size' | 'view' | 'chipView' | 'disabled'> & DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;
|
337
331
|
declare const Select: <K extends ItemOptionSelect>(props: SelectProps<K> & React.RefAttributes<HTMLButtonElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
338
332
|
export { Select };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Select.js","sources":["../../src-css/components/Select/Select.tsx"],"sourcesContent":["import { selectConfig, component, mergeConfig, fixedForwardRef } from '@salutejs/plasma-new-hope';\nimport type {\n SelectProps as SelectPropsNewHope,\n ItemOptionSelect,\n DistributivePick,\n DistributiveOmit,\n} from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps, ForwardedRef } from 'react';\n\nimport { config } from './Select.config';\n\nconst mergedConfig = mergeConfig(selectConfig, config);\nconst SelectNewHope = component(mergedConfig);\n\
|
1
|
+
{"version":3,"file":"Select.js","sources":["../../src-css/components/Select/Select.tsx"],"sourcesContent":["import { selectConfig, component, mergeConfig, fixedForwardRef } from '@salutejs/plasma-new-hope';\nimport type {\n SelectProps as SelectPropsNewHope,\n ItemOptionSelect,\n DistributivePick,\n DistributiveOmit,\n} from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps, ForwardedRef } from 'react';\n\nimport { config } from './Select.config';\n\nconst mergedConfig = mergeConfig(selectConfig, config);\nconst SelectNewHope = component(mergedConfig);\n\nexport type SelectProps<K extends ItemOptionSelect> = DistributiveOmit<\n SelectPropsNewHope<K>,\n 'size' | 'view' | 'chipView' | 'disabled'\n> &\n DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;\n\nconst SelectComponent = <K extends ItemOptionSelect>(props: SelectProps<K>, ref: ForwardedRef<HTMLButtonElement>) => {\n return <SelectNewHope ref={ref} {...(props as any)} />;\n};\n\nconst Select = fixedForwardRef(SelectComponent);\n\nexport { Select };\n"],"names":["mergedConfig","mergeConfig","selectConfig","config","SelectNewHope","component","SelectComponent","props","ref","React","createElement","_extends","Select","fixedForwardRef"],"mappings":";;;;;;;;;;;;;AAWA,IAAMA,YAAY,gBAAGC,yBAAW,CAACC,0BAAY,EAAEC,oBAAM,CAAC,CAAA;AACtD,IAAMC,aAAa,gBAAGC,uBAAS,CAACL,YAAY,CAAC,CAAA;AAQ7C,IAAMM,eAAe,GAAG,SAAlBA,eAAeA,CAAgCC,KAAqB,EAAEC,GAAoC,EAAK;AACjH,EAAA,oBAAOC,sBAAA,CAAAC,aAAA,CAACN,aAAa,EAAAO,iCAAA,CAAA;AAACH,IAAAA,GAAG,EAAEA,GAAAA;GAAUD,EAAAA,KAAK,CAAW,CAAC,CAAA;AAC1D,CAAC,CAAA;AAED,IAAMK,MAAM,gBAAGC,6BAAe,CAACP,eAAe;;;;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Combobox.js","sources":["../../../src-css/components/Combobox/Combobox.tsx"],"sourcesContent":["import {\n comboboxNewConfig,\n component,\n mergeConfig,\n fixedForwardRef,\n} from '@salutejs/plasma-new-hope';\nimport type { ItemOption, ComboboxProps, DistributiveOmit, DistributivePick } from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps } from 'react';\n\nimport { config } from './Combobox.config';\n\nconst mergedConfig = mergeConfig(comboboxNewConfig, config);\nconst ComboboxNew = component(mergedConfig);\n\ntype PropsFromConfig = keyof typeof config['variations'];\n\
|
1
|
+
{"version":3,"file":"Combobox.js","sources":["../../../src-css/components/Combobox/Combobox.tsx"],"sourcesContent":["import {\n comboboxNewConfig,\n component,\n mergeConfig,\n fixedForwardRef,\n} from '@salutejs/plasma-new-hope';\nimport type { ItemOption, ComboboxProps, DistributiveOmit, DistributivePick } from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps } from 'react';\n\nimport { config } from './Combobox.config';\n\nconst mergedConfig = mergeConfig(comboboxNewConfig, config);\nconst ComboboxNew = component(mergedConfig);\n\ntype PropsFromConfig = keyof typeof config['variations'];\n\nexport type Props<T extends ItemOption> = DistributiveOmit<ComboboxProps<T>, PropsFromConfig> &\n DistributivePick<ComponentProps<typeof ComboboxNew>, PropsFromConfig>;\n\nconst ComboboxComponent = <T extends ItemOption>(props: Props<T>, ref: React.ForwardedRef<HTMLInputElement>) => {\n return <ComboboxNew ref={ref} {...(props as any)} />;\n};\n\nconst Combobox = fixedForwardRef(ComboboxComponent);\n\nexport { Combobox };\n"],"names":["mergedConfig","mergeConfig","comboboxNewConfig","config","ComboboxNew","component","ComboboxComponent","props","ref","React","createElement","_extends","Combobox","fixedForwardRef"],"mappings":";;;;;AAWA,IAAMA,YAAY,gBAAGC,WAAW,CAACC,iBAAiB,EAAEC,MAAM,CAAC,CAAA;AAC3D,IAAMC,WAAW,gBAAGC,SAAS,CAACL,YAAY,CAAC,CAAA;AAO3C,IAAMM,iBAAiB,GAAG,SAApBA,iBAAiBA,CAA0BC,KAAe,EAAEC,GAAyC,EAAK;AAC5G,EAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACN,WAAW,EAAAO,QAAA,CAAA;AAACH,IAAAA,GAAG,EAAEA,GAAAA;GAAUD,EAAAA,KAAK,CAAW,CAAC,CAAA;AACxD,CAAC,CAAA;AAED,IAAMK,QAAQ,gBAAGC,eAAe,CAACP,iBAAiB;;;;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Dropdown.js","sources":["../../../src-css/components/Dropdown/Dropdown.tsx"],"sourcesContent":["import { dropdownConfig, component, mergeConfig, fixedForwardRef } from '@salutejs/plasma-new-hope';\nimport type { DropdownItemOption, DropdownNewProps } from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps, ForwardedRef } from 'react';\n\nimport { config } from './Dropdown.config';\n\nconst mergedConfig = mergeConfig(dropdownConfig, config);\nconst DropdownNewHope = component(mergedConfig);\n\
|
1
|
+
{"version":3,"file":"Dropdown.js","sources":["../../../src-css/components/Dropdown/Dropdown.tsx"],"sourcesContent":["import { dropdownConfig, component, mergeConfig, fixedForwardRef } from '@salutejs/plasma-new-hope';\nimport type { DropdownItemOption, DropdownNewProps } from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps, ForwardedRef } from 'react';\n\nimport { config } from './Dropdown.config';\n\nconst mergedConfig = mergeConfig(dropdownConfig, config);\nconst DropdownNewHope = component(mergedConfig);\n\nexport type DropdownProps<T extends DropdownItemOption> = Omit<DropdownNewProps<T>, 'size' | 'view'> &\n Pick<ComponentProps<typeof DropdownNewHope>, 'size' | 'view'>;\n\nconst DropdownComponent = <T extends DropdownItemOption>(\n props: DropdownProps<T>,\n ref: ForwardedRef<HTMLButtonElement>,\n) => {\n return <DropdownNewHope ref={ref} {...(props as any)} />;\n};\n\nconst Dropdown = fixedForwardRef(DropdownComponent);\n\nexport { Dropdown };\n"],"names":["mergedConfig","mergeConfig","dropdownConfig","config","DropdownNewHope","component","DropdownComponent","props","ref","React","createElement","_extends","Dropdown","fixedForwardRef"],"mappings":";;;;;AAMA,IAAMA,YAAY,gBAAGC,WAAW,CAACC,cAAc,EAAEC,MAAM,CAAC,CAAA;AACxD,IAAMC,eAAe,gBAAGC,SAAS,CAACL,YAAY,CAAC,CAAA;AAK/C,IAAMM,iBAAiB,GAAG,SAApBA,iBAAiBA,CACnBC,KAAuB,EACvBC,GAAoC,EACnC;AACD,EAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACN,eAAe,EAAAO,QAAA,CAAA;AAACH,IAAAA,GAAG,EAAEA,GAAAA;GAAUD,EAAAA,KAAK,CAAW,CAAC,CAAA;AAC5D,CAAC,CAAA;AAED,IAAMK,QAAQ,gBAAGC,eAAe,CAACP,iBAAiB;;;;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Select.js","sources":["../../../src-css/components/Select/Select.tsx"],"sourcesContent":["import { selectConfig, component, mergeConfig, fixedForwardRef } from '@salutejs/plasma-new-hope';\nimport type {\n SelectProps as SelectPropsNewHope,\n ItemOptionSelect,\n DistributivePick,\n DistributiveOmit,\n} from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps, ForwardedRef } from 'react';\n\nimport { config } from './Select.config';\n\nconst mergedConfig = mergeConfig(selectConfig, config);\nconst SelectNewHope = component(mergedConfig);\n\
|
1
|
+
{"version":3,"file":"Select.js","sources":["../../../src-css/components/Select/Select.tsx"],"sourcesContent":["import { selectConfig, component, mergeConfig, fixedForwardRef } from '@salutejs/plasma-new-hope';\nimport type {\n SelectProps as SelectPropsNewHope,\n ItemOptionSelect,\n DistributivePick,\n DistributiveOmit,\n} from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps, ForwardedRef } from 'react';\n\nimport { config } from './Select.config';\n\nconst mergedConfig = mergeConfig(selectConfig, config);\nconst SelectNewHope = component(mergedConfig);\n\nexport type SelectProps<K extends ItemOptionSelect> = DistributiveOmit<\n SelectPropsNewHope<K>,\n 'size' | 'view' | 'chipView' | 'disabled'\n> &\n DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;\n\nconst SelectComponent = <K extends ItemOptionSelect>(props: SelectProps<K>, ref: ForwardedRef<HTMLButtonElement>) => {\n return <SelectNewHope ref={ref} {...(props as any)} />;\n};\n\nconst Select = fixedForwardRef(SelectComponent);\n\nexport { Select };\n"],"names":["mergedConfig","mergeConfig","selectConfig","config","SelectNewHope","component","SelectComponent","props","ref","React","createElement","_extends","Select","fixedForwardRef"],"mappings":";;;;;AAWA,IAAMA,YAAY,gBAAGC,WAAW,CAACC,YAAY,EAAEC,MAAM,CAAC,CAAA;AACtD,IAAMC,aAAa,gBAAGC,SAAS,CAACL,YAAY,CAAC,CAAA;AAQ7C,IAAMM,eAAe,GAAG,SAAlBA,eAAeA,CAAgCC,KAAqB,EAAEC,GAAoC,EAAK;AACjH,EAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACN,aAAa,EAAAO,QAAA,CAAA;AAACH,IAAAA,GAAG,EAAEA,GAAAA;GAAUD,EAAAA,KAAK,CAAW,CAAC,CAAA;AAC1D,CAAC,CAAA;AAED,IAAMK,MAAM,gBAAGC,eAAe,CAACP,eAAe;;;;"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/sdds-serv",
|
3
|
-
"version": "0.242.
|
3
|
+
"version": "0.242.2-canary.1732.13151168550.0",
|
4
4
|
"description": "Salute Design System / React UI kit for SDDS SERV web applications",
|
5
5
|
"author": "Salute Frontend Team <salute.developers@gmail.com>",
|
6
6
|
"license": "MIT",
|
@@ -32,7 +32,7 @@
|
|
32
32
|
"directory": "packages/sdds-serv"
|
33
33
|
},
|
34
34
|
"dependencies": {
|
35
|
-
"@salutejs/plasma-new-hope": "0.257.
|
35
|
+
"@salutejs/plasma-new-hope": "0.257.0-dev.0",
|
36
36
|
"@salutejs/sdds-themes": "0.31.0"
|
37
37
|
},
|
38
38
|
"peerDependencies": {
|
@@ -65,7 +65,7 @@
|
|
65
65
|
"@salutejs/plasma-colors": "0.14.0",
|
66
66
|
"@salutejs/plasma-core": "1.191.0",
|
67
67
|
"@salutejs/plasma-cy-utils": "0.122.0",
|
68
|
-
"@salutejs/plasma-icons": "1.210.0",
|
68
|
+
"@salutejs/plasma-icons": "1.210.1-dev.0",
|
69
69
|
"@salutejs/plasma-sb-utils": "0.191.0",
|
70
70
|
"@storybook/addon-docs": "7.6.17",
|
71
71
|
"@storybook/addon-essentials": "7.6.17",
|
@@ -136,5 +136,5 @@
|
|
136
136
|
"sideEffects": [
|
137
137
|
"*.css"
|
138
138
|
],
|
139
|
-
"gitHead": "
|
139
|
+
"gitHead": "55caa334d89dfc19bf0b04f015d73cea0bf9fde4"
|
140
140
|
}
|