@salutejs/sdds-finportal 0.147.0-canary.1505.11518120718.0 → 0.147.0-dev.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -221,6 +221,7 @@ import { usePopupContext } from '@salutejs/plasma-new-hope/styled-components';
221
221
  import { useSegment } from '@salutejs/plasma-new-hope/styled-components';
222
222
  import { useToast } from '@salutejs/plasma-new-hope/styled-components';
223
223
  import { Variants } from '@salutejs/plasma-new-hope/types/engines/types';
224
+ import { ViewContainerCustomProps } from '@salutejs/plasma-new-hope/types/components/ViewContainer/ViewContainer';
224
225
  import { withSkeleton } from '@salutejs/plasma-new-hope/styled-components';
225
226
 
226
227
  // @public (undocumented)
@@ -1063,8 +1064,6 @@ true: PolymorphicClassName;
1063
1064
  value?: string | undefined;
1064
1065
  onChange?: ((value: string) => void) | undefined;
1065
1066
  isTargetAmount?: false | undefined;
1066
- targetAmount?: undefined;
1067
- renderValue?: undefined;
1068
1067
  } & Omit<ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & RefAttributes<HTMLInputElement>) | ({
1069
1068
  items: ItemOption[];
1070
1069
  placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
@@ -1093,9 +1092,7 @@ true: PolymorphicClassName;
1093
1092
  multiple: true;
1094
1093
  value?: string[] | undefined;
1095
1094
  onChange?: ((value: string[]) => void) | undefined;
1096
- isTargetAmount?: true | undefined;
1097
- targetAmount?: number | undefined;
1098
- renderValue?: ((item: ItemOption) => string) | undefined;
1095
+ isTargetAmount?: boolean | undefined;
1099
1096
  } & Omit<ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & RefAttributes<HTMLInputElement>) | ({
1100
1097
  items: ItemOption[];
1101
1098
  placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
@@ -1125,8 +1122,6 @@ true: PolymorphicClassName;
1125
1122
  value?: string | undefined;
1126
1123
  onChange?: ((value: string) => void) | undefined;
1127
1124
  isTargetAmount?: false | undefined;
1128
- targetAmount?: undefined;
1129
- renderValue?: undefined;
1130
1125
  } & Omit<ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & RefAttributes<HTMLInputElement>) | ({
1131
1126
  items: ItemOption[];
1132
1127
  placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
@@ -1155,9 +1150,7 @@ true: PolymorphicClassName;
1155
1150
  multiple: true;
1156
1151
  value?: string[] | undefined;
1157
1152
  onChange?: ((value: string[]) => void) | undefined;
1158
- isTargetAmount?: true | undefined;
1159
- targetAmount?: number | undefined;
1160
- renderValue?: ((item: ItemOption) => string) | undefined;
1153
+ isTargetAmount?: boolean | undefined;
1161
1154
  } & Omit<ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & RefAttributes<HTMLInputElement>) | ({
1162
1155
  items: ItemOption[];
1163
1156
  placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
@@ -1187,8 +1180,6 @@ true: PolymorphicClassName;
1187
1180
  value?: string | undefined;
1188
1181
  onChange?: ((value: string) => void) | undefined;
1189
1182
  isTargetAmount?: false | undefined;
1190
- targetAmount?: undefined;
1191
- renderValue?: undefined;
1192
1183
  } & Omit<ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & RefAttributes<HTMLInputElement>) | ({
1193
1184
  items: ItemOption[];
1194
1185
  placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
@@ -1217,9 +1208,7 @@ true: PolymorphicClassName;
1217
1208
  multiple: true;
1218
1209
  value?: string[] | undefined;
1219
1210
  onChange?: ((value: string[]) => void) | undefined;
1220
- isTargetAmount?: true | undefined;
1221
- targetAmount?: number | undefined;
1222
- renderValue?: ((item: ItemOption) => string) | undefined;
1211
+ isTargetAmount?: boolean | undefined;
1223
1212
  } & Omit<ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & RefAttributes<HTMLInputElement>)), "view" | "size" | "disabled" | "readOnly" | "labelPlacement"> & {
1224
1213
  ref?: ForwardedRef<HTMLInputElement> | undefined;
1225
1214
  }) => ReactElement | null;
@@ -5160,6 +5149,14 @@ export { useSegment }
5160
5149
 
5161
5150
  export { useToast }
5162
5151
 
5152
+ // @public (undocumented)
5153
+ export const ViewContainer: FunctionComponent<PropsType< {
5154
+ view: {
5155
+ onDark: PolymorphicClassName;
5156
+ onLight: PolymorphicClassName;
5157
+ };
5158
+ }> & HTMLAttributes<HTMLDivElement> & ViewContainerCustomProps & RefAttributes<HTMLAnchorElement>>;
5159
+
5163
5160
  export { withSkeleton }
5164
5161
 
5165
5162
 
@@ -51,8 +51,6 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
51
51
  value?: string | undefined;
52
52
  onChange?: ((value: string) => void) | undefined;
53
53
  isTargetAmount?: false | undefined;
54
- targetAmount?: undefined;
55
- renderValue?: undefined;
56
54
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
57
55
  items: import("@salutejs/plasma-new-hope/styled-components").ItemOption[];
58
56
  placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
@@ -81,9 +79,7 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
81
79
  multiple: true;
82
80
  value?: string[] | undefined;
83
81
  onChange?: ((value: string[]) => void) | undefined;
84
- isTargetAmount?: true | undefined;
85
- targetAmount?: number | undefined;
86
- renderValue?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption) => string) | undefined;
82
+ isTargetAmount?: boolean | undefined;
87
83
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
88
84
  items: import("@salutejs/plasma-new-hope/styled-components").ItemOption[];
89
85
  placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
@@ -113,8 +109,6 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
113
109
  value?: string | undefined;
114
110
  onChange?: ((value: string) => void) | undefined;
115
111
  isTargetAmount?: false | undefined;
116
- targetAmount?: undefined;
117
- renderValue?: undefined;
118
112
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
119
113
  items: import("@salutejs/plasma-new-hope/styled-components").ItemOption[];
120
114
  placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
@@ -143,9 +137,7 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
143
137
  multiple: true;
144
138
  value?: string[] | undefined;
145
139
  onChange?: ((value: string[]) => void) | undefined;
146
- isTargetAmount?: true | undefined;
147
- targetAmount?: number | undefined;
148
- renderValue?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption) => string) | undefined;
140
+ isTargetAmount?: boolean | undefined;
149
141
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
150
142
  items: import("@salutejs/plasma-new-hope/styled-components").ItemOption[];
151
143
  placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
@@ -175,8 +167,6 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
175
167
  value?: string | undefined;
176
168
  onChange?: ((value: string) => void) | undefined;
177
169
  isTargetAmount?: false | undefined;
178
- targetAmount?: undefined;
179
- renderValue?: undefined;
180
170
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
181
171
  items: import("@salutejs/plasma-new-hope/styled-components").ItemOption[];
182
172
  placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
@@ -205,7 +195,5 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
205
195
  multiple: true;
206
196
  value?: string[] | undefined;
207
197
  onChange?: ((value: string[]) => void) | undefined;
208
- isTargetAmount?: true | undefined;
209
- targetAmount?: number | undefined;
210
- renderValue?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption) => string) | undefined;
198
+ isTargetAmount?: boolean | undefined;
211
199
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>))>;
@@ -56,8 +56,6 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
56
56
  value?: string | undefined;
57
57
  onChange?: ((value: string) => void) | undefined;
58
58
  isTargetAmount?: false | undefined;
59
- targetAmount?: undefined;
60
- renderValue?: undefined;
61
59
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
62
60
  items: ItemOption[];
63
61
  placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
@@ -86,9 +84,7 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
86
84
  multiple: true;
87
85
  value?: string[] | undefined;
88
86
  onChange?: ((value: string[]) => void) | undefined;
89
- isTargetAmount?: true | undefined;
90
- targetAmount?: number | undefined;
91
- renderValue?: ((item: ItemOption) => string) | undefined;
87
+ isTargetAmount?: boolean | undefined;
92
88
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
93
89
  items: ItemOption[];
94
90
  placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
@@ -118,8 +114,6 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
118
114
  value?: string | undefined;
119
115
  onChange?: ((value: string) => void) | undefined;
120
116
  isTargetAmount?: false | undefined;
121
- targetAmount?: undefined;
122
- renderValue?: undefined;
123
117
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
124
118
  items: ItemOption[];
125
119
  placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
@@ -148,9 +142,7 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
148
142
  multiple: true;
149
143
  value?: string[] | undefined;
150
144
  onChange?: ((value: string[]) => void) | undefined;
151
- isTargetAmount?: true | undefined;
152
- targetAmount?: number | undefined;
153
- renderValue?: ((item: ItemOption) => string) | undefined;
145
+ isTargetAmount?: boolean | undefined;
154
146
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
155
147
  items: ItemOption[];
156
148
  placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
@@ -180,8 +172,6 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
180
172
  value?: string | undefined;
181
173
  onChange?: ((value: string) => void) | undefined;
182
174
  isTargetAmount?: false | undefined;
183
- targetAmount?: undefined;
184
- renderValue?: undefined;
185
175
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
186
176
  items: ItemOption[];
187
177
  placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
@@ -210,9 +200,7 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
210
200
  multiple: true;
211
201
  value?: string[] | undefined;
212
202
  onChange?: ((value: string[]) => void) | undefined;
213
- isTargetAmount?: true | undefined;
214
- targetAmount?: number | undefined;
215
- renderValue?: ((item: ItemOption) => string) | undefined;
203
+ isTargetAmount?: boolean | undefined;
216
204
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>)), "view" | "size" | "disabled" | "readOnly" | "labelPlacement"> & {
217
205
  ref?: ForwardedRef<HTMLInputElement> | undefined;
218
206
  }) => ReactElement | null;
@@ -0,0 +1,8 @@
1
+ export declare const config: {
2
+ variations: {
3
+ view: {
4
+ onDark: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
5
+ onLight: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
6
+ };
7
+ };
8
+ };
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.config = void 0;
7
+ var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
8
+ var _sdds_finportal = /*#__PURE__*/require("@salutejs/sdds-themes/tokens/sdds_finportal");
9
+ var _templateObject, _templateObject2;
10
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
11
+ var config = exports.config = {
12
+ variations: {
13
+ view: {
14
+ onDark: /*#__PURE__*/(0, _styledComponents.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", "\n "])), _sdds_finportal.viewContainer.dark),
15
+ onLight: /*#__PURE__*/(0, _styledComponents.css)(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", "\n "])), _sdds_finportal.viewContainer.light)
16
+ }
17
+ }
18
+ };
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ export declare const ViewContainer: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
3
+ view: {
4
+ onDark: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
5
+ onLight: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
6
+ };
7
+ }> & import("react").HTMLAttributes<HTMLDivElement> & import("@salutejs/plasma-new-hope/types/components/ViewContainer/ViewContainer").ViewContainerCustomProps & import("react").RefAttributes<HTMLAnchorElement>>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ViewContainer = void 0;
7
+ var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
8
+ var _ViewContainer = /*#__PURE__*/require("./ViewContainer.config");
9
+ var mergedConfig = /*#__PURE__*/(0, _styledComponents.mergeConfig)(_styledComponents.viewContainerConfig, _ViewContainer.config);
10
+ var ViewContainer = exports.ViewContainer = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
@@ -0,0 +1 @@
1
+ export { ViewContainer } from './ViewContainer';
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "ViewContainer", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _ViewContainer.ViewContainer;
10
+ }
11
+ });
12
+ var _ViewContainer = /*#__PURE__*/require("./ViewContainer");
@@ -0,0 +1,12 @@
1
+ var _templateObject, _templateObject2;
2
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
3
+ import { css } from '@salutejs/plasma-new-hope/styled-components';
4
+ import { viewContainer } from '@salutejs/sdds-themes/tokens/sdds_finportal';
5
+ export var config = {
6
+ variations: {
7
+ view: {
8
+ onDark: /*#__PURE__*/css(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", "\n "])), viewContainer.dark),
9
+ onLight: /*#__PURE__*/css(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", "\n "])), viewContainer.light)
10
+ }
11
+ }
12
+ };
@@ -0,0 +1,4 @@
1
+ import { viewContainerConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/styled-components';
2
+ import { config } from './ViewContainer.config';
3
+ var mergedConfig = /*#__PURE__*/mergeConfig(viewContainerConfig, config);
4
+ export var ViewContainer = /*#__PURE__*/component(mergedConfig);
@@ -0,0 +1 @@
1
+ export { ViewContainer } from './ViewContainer';
package/es/index.js CHANGED
@@ -54,5 +54,6 @@ export * from './components/Select';
54
54
  export * from './components/Autocomplete';
55
55
  export * from './components/EmptyState';
56
56
  export * from './components/Attach';
57
+ export * from './components/ViewContainer';
57
58
  export * from './mixins';
58
59
  export * from './tokens';
package/index.d.ts CHANGED
@@ -54,5 +54,6 @@ export * from './components/Select';
54
54
  export * from './components/Autocomplete';
55
55
  export * from './components/EmptyState';
56
56
  export * from './components/Attach';
57
+ export * from './components/ViewContainer';
57
58
  export * from './mixins';
58
59
  export * from './tokens';
package/index.js CHANGED
@@ -619,6 +619,17 @@ Object.keys(_Attach).forEach(function (key) {
619
619
  }
620
620
  });
621
621
  });
622
+ var _ViewContainer = /*#__PURE__*/require("./components/ViewContainer");
623
+ Object.keys(_ViewContainer).forEach(function (key) {
624
+ if (key === "default" || key === "__esModule") return;
625
+ if (key in exports && exports[key] === _ViewContainer[key]) return;
626
+ Object.defineProperty(exports, key, {
627
+ enumerable: true,
628
+ get: function get() {
629
+ return _ViewContainer[key];
630
+ }
631
+ });
632
+ });
622
633
  var _mixins = /*#__PURE__*/require("./mixins");
623
634
  Object.keys(_mixins).forEach(function (key) {
624
635
  if (key === "default" || key === "__esModule") return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/sdds-finportal",
3
- "version": "0.147.0-canary.1505.11518120718.0",
3
+ "version": "0.147.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,8 +19,8 @@
19
19
  "directory": "packages/sdds-finportal"
20
20
  },
21
21
  "dependencies": {
22
- "@salutejs/plasma-new-hope": "0.174.0-canary.1505.11518120718.0",
23
- "@salutejs/sdds-themes": "0.24.1-dev.0"
22
+ "@salutejs/plasma-new-hope": "0.174.0-dev.0",
23
+ "@salutejs/sdds-themes": "0.25.0-dev.0"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "react": ">=16.13.1",
@@ -94,5 +94,5 @@
94
94
  "Vasiliy Loginevskiy"
95
95
  ],
96
96
  "sideEffects": false,
97
- "gitHead": "9af9bd7c3441f7430eca85bf33a97c1f428d99f5"
97
+ "gitHead": "4bf318fd0b74d9d2c19e73a1ad6ce3c2f780c321"
98
98
  }