@salutejs/sdds-finportal 0.235.0-canary.1749.13151026394.0 → 0.235.0-dev.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 type { ComboboxProps } from '@salutejs/plasma-new-hope';
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 type { DropdownItemOption } from '@salutejs/plasma-new-hope';
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 as Props_2 } from '@salutejs/plasma-new-hope/types/components/EmptyState/EmptyState.types';
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';
@@ -198,6 +197,7 @@ import { SegmentGroupProps } from '@salutejs/plasma-new-hope/styled-components';
198
197
  import { SegmentItemProps } from '@salutejs/plasma-new-hope/styled-components';
199
198
  import { SegmentProvider } from '@salutejs/plasma-new-hope/styled-components';
200
199
  import { SegmentProviderProps } from '@salutejs/plasma-new-hope/styled-components';
200
+ import { ItemOptionSelect as SelectItemOption } from '@salutejs/plasma-new-hope';
201
201
  import { SelectPlacement } from '@salutejs/plasma-new-hope/types/components/Select/Select.types';
202
202
  import { SelectPlacementBasic } from '@salutejs/plasma-new-hope/types/components/Select/Select.types';
203
203
  import type { SelectProps as SelectProps_2 } from '@salutejs/plasma-new-hope';
@@ -1399,10 +1399,16 @@ export { ColProps }
1399
1399
 
1400
1400
  export { ColSizeProps }
1401
1401
 
1402
- // Warning: (ae-forgotten-export) The symbol "Props" needs to be exported by the entry point index.d.ts
1402
+ // @public (undocumented)
1403
+ export const Combobox: <T extends ComboboxItemOption>(props: ComboboxProps<T> & React_2.RefAttributes<HTMLInputElement>) => React_2.ReactElement<any, string | React_2.JSXElementConstructor<any>> | null;
1404
+
1405
+ export { ComboboxItemOption }
1406
+
1407
+ // Warning: (ae-forgotten-export) The symbol "PropsFromConfig" needs to be exported by the entry point index.d.ts
1408
+ // Warning: (ae-forgotten-export) The symbol "ComboboxNew" needs to be exported by the entry point index.d.ts
1403
1409
  //
1404
1410
  // @public (undocumented)
1405
- export const Combobox: <T extends ItemOption>(props: Props<T> & React_2.RefAttributes<HTMLInputElement>) => React_2.ReactElement<any, string | React_2.JSXElementConstructor<any>> | null;
1411
+ export type ComboboxProps<T extends ComboboxItemOption> = DistributiveOmit<ComboboxProps_2<T>, PropsFromConfig> & DistributivePick<ComponentProps<typeof ComboboxNew>, PropsFromConfig>;
1406
1412
 
1407
1413
  // @public
1408
1414
  export const Counter: FunctionComponent<PropsType< {
@@ -1668,6 +1674,13 @@ default: PolymorphicClassName;
1668
1674
  hoverIndex?: number | undefined;
1669
1675
  } & React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>, "size" | "view"> & React_2.RefAttributes<HTMLButtonElement>) => React_2.ReactElement<any, string | React_2.JSXElementConstructor<any>> | null;
1670
1676
 
1677
+ export { DropdownItemOption }
1678
+
1679
+ // Warning: (ae-forgotten-export) The symbol "DropdownNewHope" needs to be exported by the entry point index.d.ts
1680
+ //
1681
+ // @public (undocumented)
1682
+ export type DropdownProps<T extends DropdownItemOption> = Omit<DropdownNewProps<T>, 'size' | 'view'> & Pick<ComponentProps<typeof DropdownNewHope>, 'size' | 'view'>;
1683
+
1671
1684
  // @public (undocumented)
1672
1685
  export const Dropzone: FunctionComponent<PropsType< {
1673
1686
  view: {
@@ -1754,7 +1767,7 @@ m: PolymorphicClassName;
1754
1767
  s: PolymorphicClassName;
1755
1768
  xs: PolymorphicClassName;
1756
1769
  };
1757
- }> & Props_2 & RefAttributes<HTMLDivElement>>;
1770
+ }> & Props & RefAttributes<HTMLDivElement>>;
1758
1771
 
1759
1772
  // @public (undocumented)
1760
1773
  export const Flow: FunctionComponent<PropsType< {}> & FlowProps & {
@@ -3132,10 +3145,15 @@ export { SegmentProvider }
3132
3145
 
3133
3146
  export { SegmentProviderProps }
3134
3147
 
3135
- // Warning: (ae-forgotten-export) The symbol "SelectProps" needs to be exported by the entry point index.d.ts
3148
+ // @public (undocumented)
3149
+ export const Select: <K extends SelectItemOption>(props: SelectProps<K> & React_2.RefAttributes<HTMLButtonElement>) => React_2.ReactElement<any, string | React_2.JSXElementConstructor<any>> | null;
3150
+
3151
+ export { SelectItemOption }
3152
+
3153
+ // Warning: (ae-forgotten-export) The symbol "SelectNewHope" needs to be exported by the entry point index.d.ts
3136
3154
  //
3137
3155
  // @public (undocumented)
3138
- export const Select: <K extends ItemOptionSelect>(props: SelectProps<K> & React_2.RefAttributes<HTMLButtonElement>) => React_2.ReactElement<any, string | React_2.JSXElementConstructor<any>> | null;
3156
+ export type SelectProps<K extends SelectItemOption> = DistributiveOmit<SelectProps_2<K>, 'size' | 'view' | 'chipView' | 'disabled'> & DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;
3139
3157
 
3140
3158
  // @public
3141
3159
  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,3 @@
1
1
  export { Combobox } from './Combobox';
2
+ export type { Props as ComboboxProps } from './Combobox';
3
+ export type { ItemOption as ComboboxItemOption } from '@salutejs/plasma-new-hope';
@@ -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,3 @@
1
1
  export { Dropdown } from './Dropdown';
2
+ export type { DropdownProps } from './Dropdown';
3
+ export type { DropdownItemOption } from '@salutejs/plasma-new-hope';
@@ -327,6 +327,6 @@ declare const SelectNewHope: React.FunctionComponent<import("@salutejs/plasma-ne
327
327
  hasItems?: boolean | undefined;
328
328
  isOpen?: boolean | undefined;
329
329
  } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "nonce" | "onResize" | "onResizeCapture" | "value"> & React.RefAttributes<HTMLButtonElement>))>;
330
- 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'>;
331
331
  declare const Select: <K extends ItemOptionSelect>(props: SelectProps<K> & React.RefAttributes<HTMLButtonElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
332
332
  export { Select };
@@ -1 +1,3 @@
1
1
  export { Select } from './Select';
2
+ export type { SelectProps } from './Select';
3
+ export type { ItemOptionSelect as SelectItemOption } from '@salutejs/plasma-new-hope';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/sdds-finportal",
3
- "version": "0.235.0-canary.1749.13151026394.0",
3
+ "version": "0.235.0-dev.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.257.0-dev.0",
22
+ "@salutejs/plasma-new-hope": "0.258.0-dev.0",
23
23
  "@salutejs/sdds-themes": "0.31.0"
24
24
  },
25
25
  "peerDependencies": {
@@ -39,7 +39,7 @@
39
39
  "@salutejs/plasma-colors": "0.14.0",
40
40
  "@salutejs/plasma-core": "1.191.0",
41
41
  "@salutejs/plasma-cy-utils": "0.122.0",
42
- "@salutejs/plasma-icons": "1.211.0-canary.1749.13151026394.0",
42
+ "@salutejs/plasma-icons": "1.210.1-dev.0",
43
43
  "@salutejs/plasma-sb-utils": "0.191.0",
44
44
  "@storybook/addon-docs": "7.6.17",
45
45
  "@storybook/addon-essentials": "7.6.17",
@@ -95,5 +95,5 @@
95
95
  "Vasiliy Loginevskiy"
96
96
  ],
97
97
  "sideEffects": false,
98
- "gitHead": "3655e42ed2d6f598889648b69c349a1c71bb3979"
98
+ "gitHead": "0193fda257d7d0e7c85340b3ff250c38788d5c0c"
99
99
  }