@salutejs/sdds-cs 0.227.1-canary.1692.12540362812.0 → 0.228.0-canary.1696.12710467472.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -67,6 +67,7 @@ import { CommitInstanceCallback } from '@salutejs/plasma-new-hope/types/componen
67
67
  import { ComponentProps } from 'react';
68
68
  import { CounterProps } from '@salutejs/plasma-new-hope/styled-components';
69
69
  import { counterTokens } from '@salutejs/plasma-new-hope/styled-components';
70
+ import { CustomCounterProps } from '@salutejs/plasma-new-hope/types/components/Counter/Counter.types';
70
71
  import { CustomHeaderTabsProps } from '@salutejs/plasma-new-hope/types/components/Tabs/Tabs.types';
71
72
  import { CustomHorizontalTabsProps } from '@salutejs/plasma-new-hope/types/components/Tabs/Tabs.types';
72
73
  import { CustomPopoverProps } from '@salutejs/plasma-new-hope/types/components/Popover/Popover.types';
@@ -768,8 +769,8 @@ fit: PolymorphicClassName;
768
769
  focused: {
769
770
  true: PolymorphicClassName;
770
771
  };
771
- }> & HTMLAttributes<HTMLDivElement> & {
772
- size: "s" | "m" | "l" | "xxl" | "fit";
772
+ }> & ((HTMLAttributes<HTMLDivElement> & {
773
+ size?: string | undefined;
773
774
  name?: string | undefined;
774
775
  url?: string | undefined;
775
776
  customText?: string | undefined;
@@ -777,7 +778,46 @@ status?: "active" | "inactive" | undefined;
777
778
  isScalable?: boolean | undefined;
778
779
  focused?: boolean | undefined;
779
780
  statusLabels?: StatusLabels | undefined;
780
- } & RefAttributes<HTMLDivElement>>;
781
+ hasExtra?: boolean | undefined;
782
+ type?: "badge" | "counter" | undefined;
783
+ extraPlacement?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | undefined;
784
+ } & {
785
+ badgeView?: string | undefined;
786
+ pilled?: boolean | undefined;
787
+ text?: string | undefined;
788
+ customColor?: string | undefined;
789
+ customBackgroundColor?: string | undefined;
790
+ contentLeft?: ReactNode;
791
+ contentRight?: ReactNode;
792
+ } & {
793
+ counterView?: undefined;
794
+ count?: undefined;
795
+ maxCount?: undefined;
796
+ } & RefAttributes<HTMLDivElement>) | (HTMLAttributes<HTMLDivElement> & {
797
+ size?: string | undefined;
798
+ name?: string | undefined;
799
+ url?: string | undefined;
800
+ customText?: string | undefined;
801
+ status?: "active" | "inactive" | undefined;
802
+ isScalable?: boolean | undefined;
803
+ focused?: boolean | undefined;
804
+ statusLabels?: StatusLabels | undefined;
805
+ hasExtra?: boolean | undefined;
806
+ type?: "badge" | "counter" | undefined;
807
+ extraPlacement?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | undefined;
808
+ } & {
809
+ counterView?: string | undefined;
810
+ count?: number | undefined;
811
+ maxCount?: number | undefined;
812
+ } & {
813
+ badgeView?: undefined;
814
+ pilled?: undefined;
815
+ text?: undefined;
816
+ customColor?: undefined;
817
+ customBackgroundColor?: undefined;
818
+ contentLeft?: undefined;
819
+ contentRight?: undefined;
820
+ } & RefAttributes<HTMLDivElement>))>;
781
821
 
782
822
  // @public (undocumented)
783
823
  export const AvatarGroup: FunctionComponent<PropsType<Variants> & HTMLAttributes<HTMLDivElement> & {
@@ -819,27 +859,9 @@ view?: string | undefined;
819
859
  contentLeft?: ReactNode;
820
860
  contentRight?: undefined;
821
861
  } & {
822
- children?: ReactNode;
823
- } & {
824
862
  clear?: true | undefined;
825
- pilled?: false | undefined;
826
- transparent?: false | undefined;
827
- } & RefAttributes<HTMLDivElement>) | (HTMLAttributes<HTMLDivElement> & {
828
- text?: string | undefined;
829
- customColor?: string | undefined;
830
- customBackgroundColor?: string | undefined;
831
- maxWidth?: Property.Width<string | number> | undefined;
832
- size?: string | undefined;
833
- view?: string | undefined;
834
- } & {
835
- contentLeft?: ReactNode;
836
- contentRight?: undefined;
837
- } & {
838
- children?: ReactNode;
839
- } & {
840
- pilled?: true | undefined;
841
- transparent?: boolean | undefined;
842
- clear?: false | undefined;
863
+ pilled?: undefined;
864
+ transparent?: undefined;
843
865
  } & RefAttributes<HTMLDivElement>) | (HTMLAttributes<HTMLDivElement> & {
844
866
  text?: string | undefined;
845
867
  customColor?: string | undefined;
@@ -851,11 +873,9 @@ view?: string | undefined;
851
873
  contentLeft?: ReactNode;
852
874
  contentRight?: undefined;
853
875
  } & {
854
- children?: ReactNode;
855
- } & {
856
876
  pilled?: boolean | undefined;
857
- transparent?: true | undefined;
858
- clear?: false | undefined;
877
+ transparent?: boolean | undefined;
878
+ clear?: undefined;
859
879
  } & RefAttributes<HTMLDivElement>) | (HTMLAttributes<HTMLDivElement> & {
860
880
  text?: string | undefined;
861
881
  customColor?: string | undefined;
@@ -867,27 +887,9 @@ view?: string | undefined;
867
887
  contentLeft?: undefined;
868
888
  contentRight?: ReactNode;
869
889
  } & {
870
- children?: ReactNode;
871
- } & {
872
890
  clear?: true | undefined;
873
- pilled?: false | undefined;
874
- transparent?: false | undefined;
875
- } & RefAttributes<HTMLDivElement>) | (HTMLAttributes<HTMLDivElement> & {
876
- text?: string | undefined;
877
- customColor?: string | undefined;
878
- customBackgroundColor?: string | undefined;
879
- maxWidth?: Property.Width<string | number> | undefined;
880
- size?: string | undefined;
881
- view?: string | undefined;
882
- } & {
883
- contentLeft?: undefined;
884
- contentRight?: ReactNode;
885
- } & {
886
- children?: ReactNode;
887
- } & {
888
- pilled?: true | undefined;
889
- transparent?: boolean | undefined;
890
- clear?: false | undefined;
891
+ pilled?: undefined;
892
+ transparent?: undefined;
891
893
  } & RefAttributes<HTMLDivElement>) | (HTMLAttributes<HTMLDivElement> & {
892
894
  text?: string | undefined;
893
895
  customColor?: string | undefined;
@@ -899,11 +901,9 @@ view?: string | undefined;
899
901
  contentLeft?: undefined;
900
902
  contentRight?: ReactNode;
901
903
  } & {
902
- children?: ReactNode;
903
- } & {
904
904
  pilled?: boolean | undefined;
905
- transparent?: true | undefined;
906
- clear?: false | undefined;
905
+ transparent?: boolean | undefined;
906
+ clear?: undefined;
907
907
  } & RefAttributes<HTMLDivElement>))>;
908
908
 
909
909
  export { BadgeProps }
@@ -1284,12 +1284,7 @@ negative: PolymorphicClassName;
1284
1284
  size: {
1285
1285
  s: PolymorphicClassName;
1286
1286
  };
1287
- }> & HTMLAttributes<HTMLDivElement> & {
1288
- count: number;
1289
- maxCount?: number | undefined;
1290
- size?: string | undefined;
1291
- view?: string | undefined;
1292
- } & RefAttributes<HTMLDivElement>>;
1287
+ }> & HTMLAttributes<HTMLDivElement> & CustomCounterProps & RefAttributes<HTMLDivElement>>;
1293
1288
 
1294
1289
  export { CounterProps }
1295
1290
 
@@ -2447,7 +2442,7 @@ onDecrement?: ((value: number) => void) | undefined;
2447
2442
  } & {
2448
2443
  segmentation?: "clear" | undefined;
2449
2444
  inputBackgroundType?: undefined;
2450
- } & Omit<InputHTMLAttributes_2<HTMLInputElement>, "onChange" | "size" | "value"> & RefAttributes<HTMLInputElement>) | ({
2445
+ } & Omit<InputHTMLAttributes_2<HTMLInputElement>, "size" | "onChange" | "value"> & RefAttributes<HTMLInputElement>) | ({
2451
2446
  value?: number | undefined;
2452
2447
  min?: number | undefined;
2453
2448
  max?: number | undefined;
@@ -2472,7 +2467,7 @@ onDecrement?: ((value: number) => void) | undefined;
2472
2467
  } & {
2473
2468
  segmentation?: string | undefined;
2474
2469
  inputBackgroundType?: string | undefined;
2475
- } & Omit<InputHTMLAttributes_2<HTMLInputElement>, "onChange" | "size" | "value"> & RefAttributes<HTMLInputElement>))>;
2470
+ } & Omit<InputHTMLAttributes_2<HTMLInputElement>, "size" | "onChange" | "value"> & RefAttributes<HTMLInputElement>))>;
2476
2471
 
2477
2472
  export { numberInputClasses }
2478
2473
 
@@ -23,8 +23,8 @@ declare const mergedConfig: import("@salutejs/plasma-new-hope/styled-components"
23
23
  focused: {
24
24
  true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
25
25
  };
26
- }>, import("react").HTMLAttributes<HTMLDivElement> & {
27
- size: "s" | "m" | "l" | "xxl" | "fit";
26
+ }>, (import("react").HTMLAttributes<HTMLDivElement> & {
27
+ size?: string | undefined;
28
28
  name?: string | undefined;
29
29
  url?: string | undefined;
30
30
  customText?: string | undefined;
@@ -32,7 +32,46 @@ declare const mergedConfig: import("@salutejs/plasma-new-hope/styled-components"
32
32
  isScalable?: boolean | undefined;
33
33
  focused?: boolean | undefined;
34
34
  statusLabels?: import("@salutejs/plasma-new-hope/types/components/Avatar/Avatar.types").StatusLabels | undefined;
35
- } & import("react").RefAttributes<HTMLDivElement>>;
35
+ hasExtra?: boolean | undefined;
36
+ type?: "badge" | "counter" | undefined;
37
+ extraPlacement?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | undefined;
38
+ } & {
39
+ badgeView?: string | undefined;
40
+ pilled?: boolean | undefined;
41
+ text?: string | undefined;
42
+ customColor?: string | undefined;
43
+ customBackgroundColor?: string | undefined;
44
+ contentLeft?: import("react").ReactNode;
45
+ contentRight?: import("react").ReactNode;
46
+ } & {
47
+ counterView?: undefined;
48
+ count?: undefined;
49
+ maxCount?: undefined;
50
+ } & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
51
+ size?: string | undefined;
52
+ name?: string | undefined;
53
+ url?: string | undefined;
54
+ customText?: string | undefined;
55
+ status?: "active" | "inactive" | undefined;
56
+ isScalable?: boolean | undefined;
57
+ focused?: boolean | undefined;
58
+ statusLabels?: import("@salutejs/plasma-new-hope/types/components/Avatar/Avatar.types").StatusLabels | undefined;
59
+ hasExtra?: boolean | undefined;
60
+ type?: "badge" | "counter" | undefined;
61
+ extraPlacement?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | undefined;
62
+ } & {
63
+ counterView?: string | undefined;
64
+ count?: number | undefined;
65
+ maxCount?: number | undefined;
66
+ } & {
67
+ badgeView?: undefined;
68
+ pilled?: undefined;
69
+ text?: undefined;
70
+ customColor?: undefined;
71
+ customBackgroundColor?: undefined;
72
+ contentLeft?: undefined;
73
+ contentRight?: undefined;
74
+ } & import("react").RefAttributes<HTMLDivElement>)>;
36
75
  declare const Avatar: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
37
76
  view: {
38
77
  default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
@@ -45,8 +84,32 @@ declare const Avatar: import("react").FunctionComponent<import("@salutejs/plasma
45
84
  focused: {
46
85
  true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
47
86
  };
48
- }> & import("react").HTMLAttributes<HTMLDivElement> & {
49
- size: "s" | "m" | "l" | "xxl" | "fit";
87
+ }> & ((import("react").HTMLAttributes<HTMLDivElement> & {
88
+ size?: string | undefined;
89
+ name?: string | undefined;
90
+ url?: string | undefined;
91
+ customText?: string | undefined;
92
+ status?: "active" | "inactive" | undefined;
93
+ isScalable?: boolean | undefined;
94
+ focused?: boolean | undefined;
95
+ statusLabels?: import("@salutejs/plasma-new-hope/types/components/Avatar/Avatar.types").StatusLabels | undefined;
96
+ hasExtra?: boolean | undefined;
97
+ type?: "badge" | "counter" | undefined;
98
+ extraPlacement?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | undefined;
99
+ } & {
100
+ badgeView?: string | undefined;
101
+ pilled?: boolean | undefined;
102
+ text?: string | undefined;
103
+ customColor?: string | undefined;
104
+ customBackgroundColor?: string | undefined;
105
+ contentLeft?: import("react").ReactNode;
106
+ contentRight?: import("react").ReactNode;
107
+ } & {
108
+ counterView?: undefined;
109
+ count?: undefined;
110
+ maxCount?: undefined;
111
+ } & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
112
+ size?: string | undefined;
50
113
  name?: string | undefined;
51
114
  url?: string | undefined;
52
115
  customText?: string | undefined;
@@ -54,5 +117,20 @@ declare const Avatar: import("react").FunctionComponent<import("@salutejs/plasma
54
117
  isScalable?: boolean | undefined;
55
118
  focused?: boolean | undefined;
56
119
  statusLabels?: import("@salutejs/plasma-new-hope/types/components/Avatar/Avatar.types").StatusLabels | undefined;
57
- } & import("react").RefAttributes<HTMLDivElement>>;
120
+ hasExtra?: boolean | undefined;
121
+ type?: "badge" | "counter" | undefined;
122
+ extraPlacement?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | undefined;
123
+ } & {
124
+ counterView?: string | undefined;
125
+ count?: number | undefined;
126
+ maxCount?: number | undefined;
127
+ } & {
128
+ badgeView?: undefined;
129
+ pilled?: undefined;
130
+ text?: undefined;
131
+ customColor?: undefined;
132
+ customBackgroundColor?: undefined;
133
+ contentLeft?: undefined;
134
+ contentRight?: undefined;
135
+ } & import("react").RefAttributes<HTMLDivElement>))>;
58
136
  export { Avatar, mergedConfig };
@@ -31,28 +31,10 @@ export declare const Badge: import("react").FunctionComponent<import("@salutejs/
31
31
  } & {
32
32
  contentLeft?: import("react").ReactNode;
33
33
  contentRight?: undefined;
34
- } & {
35
- children?: import("react").ReactNode;
36
34
  } & {
37
35
  clear?: true | undefined;
38
- pilled?: false | undefined;
39
- transparent?: false | undefined;
40
- } & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
41
- text?: string | undefined;
42
- customColor?: string | undefined;
43
- customBackgroundColor?: string | undefined;
44
- maxWidth?: import("csstype").Property.Width<string | number> | undefined;
45
- size?: string | undefined;
46
- view?: string | undefined;
47
- } & {
48
- contentLeft?: import("react").ReactNode;
49
- contentRight?: undefined;
50
- } & {
51
- children?: import("react").ReactNode;
52
- } & {
53
- pilled?: true | undefined;
54
- transparent?: boolean | undefined;
55
- clear?: false | undefined;
36
+ pilled?: undefined;
37
+ transparent?: undefined;
56
38
  } & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
57
39
  text?: string | undefined;
58
40
  customColor?: string | undefined;
@@ -63,12 +45,10 @@ export declare const Badge: import("react").FunctionComponent<import("@salutejs/
63
45
  } & {
64
46
  contentLeft?: import("react").ReactNode;
65
47
  contentRight?: undefined;
66
- } & {
67
- children?: import("react").ReactNode;
68
48
  } & {
69
49
  pilled?: boolean | undefined;
70
- transparent?: true | undefined;
71
- clear?: false | undefined;
50
+ transparent?: boolean | undefined;
51
+ clear?: undefined;
72
52
  } & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
73
53
  text?: string | undefined;
74
54
  customColor?: string | undefined;
@@ -79,28 +59,10 @@ export declare const Badge: import("react").FunctionComponent<import("@salutejs/
79
59
  } & {
80
60
  contentLeft?: undefined;
81
61
  contentRight?: import("react").ReactNode;
82
- } & {
83
- children?: import("react").ReactNode;
84
62
  } & {
85
63
  clear?: true | undefined;
86
- pilled?: false | undefined;
87
- transparent?: false | undefined;
88
- } & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
89
- text?: string | undefined;
90
- customColor?: string | undefined;
91
- customBackgroundColor?: string | undefined;
92
- maxWidth?: import("csstype").Property.Width<string | number> | undefined;
93
- size?: string | undefined;
94
- view?: string | undefined;
95
- } & {
96
- contentLeft?: undefined;
97
- contentRight?: import("react").ReactNode;
98
- } & {
99
- children?: import("react").ReactNode;
100
- } & {
101
- pilled?: true | undefined;
102
- transparent?: boolean | undefined;
103
- clear?: false | undefined;
64
+ pilled?: undefined;
65
+ transparent?: undefined;
104
66
  } & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
105
67
  text?: string | undefined;
106
68
  customColor?: string | undefined;
@@ -111,10 +73,8 @@ export declare const Badge: import("react").FunctionComponent<import("@salutejs/
111
73
  } & {
112
74
  contentLeft?: undefined;
113
75
  contentRight?: import("react").ReactNode;
114
- } & {
115
- children?: import("react").ReactNode;
116
76
  } & {
117
77
  pilled?: boolean | undefined;
118
- transparent?: true | undefined;
119
- clear?: false | undefined;
78
+ transparent?: boolean | undefined;
79
+ clear?: undefined;
120
80
  } & import("react").RefAttributes<HTMLDivElement>))>;
@@ -12,9 +12,4 @@ export declare const Counter: import("react").FunctionComponent<import("@salutej
12
12
  size: {
13
13
  s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
14
14
  };
15
- }> & import("react").HTMLAttributes<HTMLDivElement> & {
16
- count: number;
17
- maxCount?: number | undefined;
18
- size?: string | undefined;
19
- view?: string | undefined;
20
- } & import("react").RefAttributes<HTMLDivElement>>;
15
+ }> & import("react").HTMLAttributes<HTMLDivElement> & import("@salutejs/plasma-new-hope/types/components/Counter/Counter.types").CustomCounterProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -44,7 +44,7 @@ export declare const NumberInput: import("react").FunctionComponent<import("@sal
44
44
  } & {
45
45
  segmentation?: "clear" | undefined;
46
46
  inputBackgroundType?: undefined;
47
- } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "onChange" | "size" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
47
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
48
48
  value?: number | undefined;
49
49
  min?: number | undefined;
50
50
  max?: number | undefined;
@@ -69,4 +69,4 @@ export declare const NumberInput: import("react").FunctionComponent<import("@sal
69
69
  } & {
70
70
  segmentation?: string | undefined;
71
71
  inputBackgroundType?: string | undefined;
72
- } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "onChange" | "size" | "value"> & import("react").RefAttributes<HTMLInputElement>))>;
72
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>))>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/sdds-cs",
3
- "version": "0.227.1-canary.1692.12540362812.0",
3
+ "version": "0.228.0-canary.1696.12710467472.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",
@@ -52,7 +52,7 @@
52
52
  "directory": "packages/sdds-cs"
53
53
  },
54
54
  "dependencies": {
55
- "@salutejs/plasma-new-hope": "0.238.1-canary.1692.12540362812.0",
55
+ "@salutejs/plasma-new-hope": "0.239.0-canary.1696.12710467472.0",
56
56
  "@salutejs/sdds-themes": "0.31.0"
57
57
  },
58
58
  "peerDependencies": {
@@ -75,10 +75,10 @@
75
75
  "@emotion/styled": ">=11",
76
76
  "@microsoft/api-extractor": "7.38.3",
77
77
  "@salutejs/plasma-colors": "0.14.0",
78
- "@salutejs/plasma-core": "1.191.1-canary.1692.12540362812.0",
78
+ "@salutejs/plasma-core": "1.191.0-dev.0",
79
79
  "@salutejs/plasma-cy-utils": "0.122.0-dev.0",
80
80
  "@salutejs/plasma-icons": "1.210.0",
81
- "@salutejs/plasma-sb-utils": "0.190.1-canary.1692.12540362812.0",
81
+ "@salutejs/plasma-sb-utils": "0.190.0-dev.0",
82
82
  "@storybook/addon-docs": "7.6.17",
83
83
  "@storybook/addon-essentials": "7.6.17",
84
84
  "@storybook/addons": "7.6.17",
@@ -144,5 +144,5 @@
144
144
  "Anton Vinogradov"
145
145
  ],
146
146
  "sideEffects": false,
147
- "gitHead": "33ed71c72aa266aa679d6c95e86a804ca686f9a7"
147
+ "gitHead": "7757851b7d6d55d527cb6992cea39ed1daf27a10"
148
148
  }