@salutejs/plasma-b2c 1.511.1-canary.1748.13146738449.0 → 1.511.2-canary.1732.13151168550.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -131,15 +131,13 @@ import { DrawerContentProps } from '@salutejs/plasma-new-hope/styled-components'
131
131
  import { DrawerFooterProps } from '@salutejs/plasma-new-hope/styled-components';
132
132
  import { DrawerHeaderProps } from '@salutejs/plasma-new-hope/styled-components';
133
133
  import { DrawerProps } from '@salutejs/plasma-new-hope/styled-components';
134
- import type { DropdownItemOption } from '@salutejs/plasma-new-hope';
134
+ import { DropdownItemOption } from '@salutejs/plasma-new-hope';
135
135
  import { DropdownItemProps } from '@salutejs/plasma-hope';
136
136
  import { DropdownItem as DropdownItemType } from '@salutejs/plasma-hope';
137
137
  import type { DropdownNewProps } from '@salutejs/plasma-new-hope';
138
- import type { DropdownNodeSelect } from '@salutejs/plasma-new-hope';
139
138
  import { DropdownNodeType } from '@salutejs/plasma-hope';
140
139
  import { DropdownPlacement } from '@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types';
141
140
  import { DropdownPopupProps } from '@salutejs/plasma-hope';
142
- import { DropdownProps } from '@salutejs/plasma-new-hope/styled-components';
143
141
  import { DropdownTrigger } from '@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types';
144
142
  import { dropzoneClasses } from '@salutejs/plasma-new-hope/styled-components';
145
143
  import { dropzoneTokens } from '@salutejs/plasma-new-hope/styled-components';
@@ -271,9 +269,9 @@ import { SegmentItemProps } from '@salutejs/plasma-new-hope/styled-components';
271
269
  import { SegmentProvider } from '@salutejs/plasma-new-hope/styled-components';
272
270
  import { SegmentProviderProps } from '@salutejs/plasma-new-hope/styled-components';
273
271
  import { SelectGroup } from '@salutejs/plasma-hope';
272
+ import { DropdownNodeSelect as SelectItemOption } from '@salutejs/plasma-new-hope';
274
273
  import { SelectPlacement } from '@salutejs/plasma-new-hope/types/components/Select/Select.types';
275
274
  import { SelectPlacementBasic } from '@salutejs/plasma-new-hope/types/components/Select/Select.types';
276
- import { MergedSelectProps as SelectProps } from '@salutejs/plasma-new-hope/styled-components';
277
275
  import { SelectProps as SelectPropsHope } from '@salutejs/plasma-hope';
278
276
  import { selectText } from '@salutejs/plasma-hope';
279
277
  import { setRef } from '@salutejs/plasma-core';
@@ -1961,6 +1959,8 @@ default: PolymorphicClassName;
1961
1959
  // @public (undocumented)
1962
1960
  export const DropdownItem: React_2.ForwardRefExoticComponent<DropdownItemProps & React_2.RefAttributes<HTMLDivElement>>;
1963
1961
 
1962
+ export { DropdownItemOption }
1963
+
1964
1964
  export { DropdownItemProps }
1965
1965
 
1966
1966
  export { DropdownItemType }
@@ -1975,7 +1975,10 @@ export const DropdownPopup: React_2.ForwardRefExoticComponent<DropdownPopupProps
1975
1975
 
1976
1976
  export { DropdownPopupProps }
1977
1977
 
1978
- export { DropdownProps }
1978
+ // Warning: (ae-forgotten-export) The symbol "DropdownNewHope" needs to be exported by the entry point index.d.ts
1979
+ //
1980
+ // @public (undocumented)
1981
+ export type DropdownProps<T extends DropdownItemOption> = Omit<DropdownNewProps<T>, 'size' | 'view'> & Pick<ComponentProps<typeof DropdownNewHope>, 'size' | 'view'>;
1979
1982
 
1980
1983
  // @public (undocumented)
1981
1984
  export const Dropzone: FunctionComponent<PropsType< {
@@ -3623,14 +3626,17 @@ export { SegmentProvider }
3623
3626
 
3624
3627
  export { SegmentProviderProps }
3625
3628
 
3626
- // Warning: (ae-forgotten-export) The symbol "SelectProps_2" needs to be exported by the entry point index.d.ts
3627
- //
3628
3629
  // @public (undocumented)
3629
- export const Select: <T, K extends DropdownNodeSelect>(props: SelectProps_2<T, K> & React_2.RefAttributes<HTMLButtonElement>) => React_2.ReactElement<any, string | React_2.JSXElementConstructor<any>> | null;
3630
+ export const Select: <T, K extends SelectItemOption>(props: SelectProps<T, K> & React_2.RefAttributes<HTMLButtonElement>) => React_2.ReactElement<any, string | React_2.JSXElementConstructor<any>> | null;
3630
3631
 
3631
3632
  export { SelectGroup }
3632
3633
 
3633
- export { SelectProps }
3634
+ export { SelectItemOption }
3635
+
3636
+ // Warning: (ae-forgotten-export) The symbol "SelectNewHope" needs to be exported by the entry point index.d.ts
3637
+ //
3638
+ // @public (undocumented)
3639
+ export type SelectProps<T, K extends SelectItemOption> = DistributiveOmit<MergedSelectProps<T, K>, 'size' | 'view' | 'chipView' | 'disabled'> & DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;
3634
3640
 
3635
3641
  export { SelectPropsHope }
3636
3642
 
@@ -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>, "view" | "size"> & 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,6 +1,7 @@
1
1
  export { withAssistiveDropdown } from '@salutejs/plasma-hope';
2
- export type { DropdownProps } from '@salutejs/plasma-new-hope/styled-components';
3
2
  export { Dropdown } from './Dropdown';
3
+ export type { DropdownProps } from './Dropdown';
4
+ export type { DropdownItemOption } from '@salutejs/plasma-new-hope';
4
5
  export { DropdownItem } from './components/DropdownItem';
5
6
  export { DropdownPopup } from './components/DropdownPopup';
6
7
  export { DropdownList } from './components/DropdownList';
@@ -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?: DropdownNodeSelect[] | undefined;
73
72
  onItemSelect?: ((e: 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?: DropdownNodeSelect[] | undefined;
126
124
  onItemSelect?: ((e: 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?: DropdownNodeSelect[] | undefined;
179
176
  onItemSelect?: ((e: 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?: DropdownNodeSelect[] | undefined;
232
228
  onItemSelect?: ((e: 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?: DropdownNodeSelect[] | undefined;
273
268
  onItemSelect?: ((e: 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?: DropdownNodeSelect[] | undefined;
314
308
  onItemSelect?: ((e: 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<T, K extends DropdownNodeSelect> = DistributiveOmit<MergedSelectPropsNewHope<T, K>, 'size' | 'view' | 'chipView' | 'disabled'> & DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;
330
+ export declare type SelectProps<T, K extends DropdownNodeSelect> = DistributiveOmit<MergedSelectPropsNewHope<T, K>, 'size' | 'view' | 'chipView' | 'disabled'> & DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;
337
331
  declare const Select: <T, K extends DropdownNodeSelect>(props: SelectProps<T, K> & React.RefAttributes<HTMLButtonElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
338
332
  export { Select };
@@ -1,4 +1,5 @@
1
1
  export { Select } from './Select';
2
2
  export type { SelectProps as SelectPropsHope } from '@salutejs/plasma-hope';
3
- export type { MergedSelectProps as SelectProps } from '@salutejs/plasma-new-hope/styled-components';
3
+ export type { SelectProps } from './Select';
4
+ export type { DropdownNodeSelect as SelectItemOption } from '@salutejs/plasma-new-hope';
4
5
  export { SelectGroup } from '@salutejs/plasma-hope';
@@ -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\ntype 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;;;;"}
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;;;;"}
@@ -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 React, { ComponentProps, ForwardedRef } from 'react';\nimport type {\n DropdownNodeSelect,\n MergedSelectProps as MergedSelectPropsNewHope,\n DistributiveOmit,\n DistributivePick,\n} from '@salutejs/plasma-new-hope';\n\nimport { config } from './Select.config';\n\nconst mergedConfig = mergeConfig(selectConfig, config);\nconst SelectNewHope = component(mergedConfig);\n\ntype SelectProps<T, K extends DropdownNodeSelect> = DistributiveOmit<\n MergedSelectPropsNewHope<T, K>,\n 'size' | 'view' | 'chipView' | 'disabled'\n> &\n DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;\n\nconst SelectComponent = <T, K extends DropdownNodeSelect>(\n props: SelectProps<T, K>,\n ref: ForwardedRef<HTMLButtonElement>,\n) => {\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,CACjBC,KAAwB,EACxBC,GAAoC,EACnC;AACD,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
+ {"version":3,"file":"Select.js","sources":["../../../../src-css/components/Select/Select.tsx"],"sourcesContent":["import { selectConfig, component, mergeConfig, fixedForwardRef } from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps, ForwardedRef } from 'react';\nimport type {\n DropdownNodeSelect,\n MergedSelectProps as MergedSelectPropsNewHope,\n DistributiveOmit,\n DistributivePick,\n} from '@salutejs/plasma-new-hope';\n\nimport { config } from './Select.config';\n\nconst mergedConfig = mergeConfig(selectConfig, config);\nconst SelectNewHope = component(mergedConfig);\n\nexport type SelectProps<T, K extends DropdownNodeSelect> = DistributiveOmit<\n MergedSelectPropsNewHope<T, K>,\n 'size' | 'view' | 'chipView' | 'disabled'\n> &\n DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;\n\nconst SelectComponent = <T, K extends DropdownNodeSelect>(\n props: SelectProps<T, K>,\n ref: ForwardedRef<HTMLButtonElement>,\n) => {\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,CACjBC,KAAwB,EACxBC,GAAoC,EACnC;AACD,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":"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\ntype 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
+ {"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 React, { ComponentProps, ForwardedRef } from 'react';\nimport type {\n DropdownNodeSelect,\n MergedSelectProps as MergedSelectPropsNewHope,\n DistributiveOmit,\n DistributivePick,\n} from '@salutejs/plasma-new-hope';\n\nimport { config } from './Select.config';\n\nconst mergedConfig = mergeConfig(selectConfig, config);\nconst SelectNewHope = component(mergedConfig);\n\ntype SelectProps<T, K extends DropdownNodeSelect> = DistributiveOmit<\n MergedSelectPropsNewHope<T, K>,\n 'size' | 'view' | 'chipView' | 'disabled'\n> &\n DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;\n\nconst SelectComponent = <T, K extends DropdownNodeSelect>(\n props: SelectProps<T, K>,\n ref: ForwardedRef<HTMLButtonElement>,\n) => {\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,CACjBC,KAAwB,EACxBC,GAAoC,EACnC;AACD,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;;;;"}
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 React, { ComponentProps, ForwardedRef } from 'react';\nimport type {\n DropdownNodeSelect,\n MergedSelectProps as MergedSelectPropsNewHope,\n DistributiveOmit,\n DistributivePick,\n} from '@salutejs/plasma-new-hope';\n\nimport { config } from './Select.config';\n\nconst mergedConfig = mergeConfig(selectConfig, config);\nconst SelectNewHope = component(mergedConfig);\n\nexport type SelectProps<T, K extends DropdownNodeSelect> = DistributiveOmit<\n MergedSelectPropsNewHope<T, K>,\n 'size' | 'view' | 'chipView' | 'disabled'\n> &\n DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;\n\nconst SelectComponent = <T, K extends DropdownNodeSelect>(\n props: SelectProps<T, K>,\n ref: ForwardedRef<HTMLButtonElement>,\n) => {\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,CACjBC,KAAwB,EACxBC,GAAoC,EACnC;AACD,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;;;;"}
@@ -1,6 +1,5 @@
1
1
  export { withAssistiveDropdown } from '@salutejs/plasma-hope';
2
2
  export { Dropdown } from './Dropdown';
3
-
4
3
  // TODO: #1271
5
4
  export { DropdownItem } from './components/DropdownItem';
6
5
  export { DropdownPopup } from './components/DropdownPopup';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/plasma-b2c",
3
- "version": "1.511.1-canary.1748.13146738449.0",
3
+ "version": "1.511.2-canary.1732.13151168550.0",
4
4
  "description": "Salute Design System / React UI kit for business-related web applications",
5
5
  "author": "Salute Frontend Team <salute.developers@gmail.com>",
6
6
  "license": "MIT",
@@ -43,8 +43,8 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@salutejs/plasma-core": "1.191.0",
46
- "@salutejs/plasma-hope": "1.329.1-dev.0",
47
- "@salutejs/plasma-new-hope": "0.257.1-canary.1748.13146738449.0",
46
+ "@salutejs/plasma-hope": "1.329.2-dev.0",
47
+ "@salutejs/plasma-new-hope": "0.257.0-dev.0",
48
48
  "@salutejs/plasma-themes": "0.28.0",
49
49
  "@salutejs/plasma-tokens-b2c": "0.56.0",
50
50
  "@salutejs/plasma-tokens-web": "1.61.0",
@@ -72,7 +72,7 @@
72
72
  "@rollup/plugin-node-resolve": "15.2.3",
73
73
  "@salutejs/plasma-colors": "0.14.0",
74
74
  "@salutejs/plasma-cy-utils": "0.122.0",
75
- "@salutejs/plasma-icons": "1.210.0",
75
+ "@salutejs/plasma-icons": "1.210.1-dev.0",
76
76
  "@salutejs/plasma-sb-utils": "0.191.0",
77
77
  "@storybook/addon-docs": "7.6.17",
78
78
  "@storybook/addon-essentials": "7.6.17",
@@ -108,5 +108,5 @@
108
108
  "react"
109
109
  ],
110
110
  "sideEffects": false,
111
- "gitHead": "cf3ebd823e9696370b5f96319b95ba16927dfd15"
111
+ "gitHead": "55caa334d89dfc19bf0b04f015d73cea0bf9fde4"
112
112
  }
@@ -131,15 +131,13 @@ import { DrawerContentProps } from '@salutejs/plasma-new-hope/styled-components'
131
131
  import { DrawerFooterProps } from '@salutejs/plasma-new-hope/styled-components';
132
132
  import { DrawerHeaderProps } from '@salutejs/plasma-new-hope/styled-components';
133
133
  import { DrawerProps } from '@salutejs/plasma-new-hope/styled-components';
134
- import type { DropdownItemOption } from '@salutejs/plasma-new-hope';
134
+ import { DropdownItemOption } from '@salutejs/plasma-new-hope';
135
135
  import { DropdownItemProps } from '@salutejs/plasma-hope';
136
136
  import { DropdownItem as DropdownItemType } from '@salutejs/plasma-hope';
137
137
  import type { DropdownNewProps } from '@salutejs/plasma-new-hope';
138
- import type { DropdownNodeSelect } from '@salutejs/plasma-new-hope';
139
138
  import { DropdownNodeType } from '@salutejs/plasma-hope';
140
139
  import { DropdownPlacement } from '@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types';
141
140
  import { DropdownPopupProps } from '@salutejs/plasma-hope';
142
- import { DropdownProps } from '@salutejs/plasma-new-hope/styled-components';
143
141
  import { DropdownTrigger } from '@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types';
144
142
  import { dropzoneClasses } from '@salutejs/plasma-new-hope/styled-components';
145
143
  import { dropzoneTokens } from '@salutejs/plasma-new-hope/styled-components';
@@ -271,9 +269,9 @@ import { SegmentItemProps } from '@salutejs/plasma-new-hope/styled-components';
271
269
  import { SegmentProvider } from '@salutejs/plasma-new-hope/styled-components';
272
270
  import { SegmentProviderProps } from '@salutejs/plasma-new-hope/styled-components';
273
271
  import { SelectGroup } from '@salutejs/plasma-hope';
272
+ import { DropdownNodeSelect as SelectItemOption } from '@salutejs/plasma-new-hope';
274
273
  import { SelectPlacement } from '@salutejs/plasma-new-hope/types/components/Select/Select.types';
275
274
  import { SelectPlacementBasic } from '@salutejs/plasma-new-hope/types/components/Select/Select.types';
276
- import { MergedSelectProps as SelectProps } from '@salutejs/plasma-new-hope/styled-components';
277
275
  import { SelectProps as SelectPropsHope } from '@salutejs/plasma-hope';
278
276
  import { selectText } from '@salutejs/plasma-hope';
279
277
  import { setRef } from '@salutejs/plasma-core';
@@ -1961,6 +1959,8 @@ default: PolymorphicClassName;
1961
1959
  // @public (undocumented)
1962
1960
  export const DropdownItem: React_2.ForwardRefExoticComponent<DropdownItemProps & React_2.RefAttributes<HTMLDivElement>>;
1963
1961
 
1962
+ export { DropdownItemOption }
1963
+
1964
1964
  export { DropdownItemProps }
1965
1965
 
1966
1966
  export { DropdownItemType }
@@ -1975,7 +1975,10 @@ export const DropdownPopup: React_2.ForwardRefExoticComponent<DropdownPopupProps
1975
1975
 
1976
1976
  export { DropdownPopupProps }
1977
1977
 
1978
- export { DropdownProps }
1978
+ // Warning: (ae-forgotten-export) The symbol "DropdownNewHope" needs to be exported by the entry point index.d.ts
1979
+ //
1980
+ // @public (undocumented)
1981
+ export type DropdownProps<T extends DropdownItemOption> = Omit<DropdownNewProps<T>, 'size' | 'view'> & Pick<ComponentProps<typeof DropdownNewHope>, 'size' | 'view'>;
1979
1982
 
1980
1983
  // @public (undocumented)
1981
1984
  export const Dropzone: FunctionComponent<PropsType< {
@@ -3623,14 +3626,17 @@ export { SegmentProvider }
3623
3626
 
3624
3627
  export { SegmentProviderProps }
3625
3628
 
3626
- // Warning: (ae-forgotten-export) The symbol "SelectProps_2" needs to be exported by the entry point index.d.ts
3627
- //
3628
3629
  // @public (undocumented)
3629
- export const Select: <T, K extends DropdownNodeSelect>(props: SelectProps_2<T, K> & React_2.RefAttributes<HTMLButtonElement>) => React_2.ReactElement<any, string | React_2.JSXElementConstructor<any>> | null;
3630
+ export const Select: <T, K extends SelectItemOption>(props: SelectProps<T, K> & React_2.RefAttributes<HTMLButtonElement>) => React_2.ReactElement<any, string | React_2.JSXElementConstructor<any>> | null;
3630
3631
 
3631
3632
  export { SelectGroup }
3632
3633
 
3633
- export { SelectProps }
3634
+ export { SelectItemOption }
3635
+
3636
+ // Warning: (ae-forgotten-export) The symbol "SelectNewHope" needs to be exported by the entry point index.d.ts
3637
+ //
3638
+ // @public (undocumented)
3639
+ export type SelectProps<T, K extends SelectItemOption> = DistributiveOmit<MergedSelectProps<T, K>, 'size' | 'view' | 'chipView' | 'disabled'> & DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;
3634
3640
 
3635
3641
  export { SelectPropsHope }
3636
3642