@salutejs/plasma-b2c 1.417.0-canary.1459.11345044568.0 → 1.417.0-canary.1459.11347702889.0
Sign up to get free protection for your applications and to get access to all the features.
- package/api/plasma-b2c.api.md +7 -226
- package/components/Combobox/Combobox.d.ts +126 -6
- package/components/Combobox/index.d.ts +12 -227
- package/components/Combobox/index.js +6 -2
- package/components/Toast/Toast.config.js +1 -1
- package/css/cjs/components/Combobox/index.js +6 -2
- package/css/cjs/components/Combobox/index.js.map +1 -1
- package/css/cjs/components/Toast/Toast.config.js +1 -1
- package/css/cjs/components/Toast/Toast.config.js.map +1 -1
- package/css/cjs/components/Toast/{Toast.config_1cwp1pi.css → Toast.config_1jtfxhk.css} +1 -1
- package/css/cjs/components/Toast/Toast.css +6 -6
- package/css/cjs/index.css +6 -6
- package/css/es/components/Combobox/index.js +6 -2
- package/css/es/components/Combobox/index.js.map +1 -1
- package/css/es/components/Toast/Toast.config.js +1 -1
- package/css/es/components/Toast/Toast.config.js.map +1 -1
- package/css/es/components/Toast/{Toast.config_1cwp1pi.css → Toast.config_1jtfxhk.css} +1 -1
- package/css/es/components/Toast/Toast.css +6 -6
- package/css/es/index.css +6 -6
- package/es/components/Combobox/index.js +6 -3
- package/es/components/Toast/Toast.config.js +1 -1
- package/package.json +3 -3
- package/temp/plasma-b2c.api.md +7 -226
@@ -1,229 +1,14 @@
|
|
1
|
-
import React from 'react';
|
1
|
+
import React, { ComponentProps } from 'react';
|
2
|
+
import type { ItemOption, ComboboxProps } from '@salutejs/plasma-new-hope';
|
3
|
+
import { config } from './Combobox.config';
|
4
|
+
import { Combobox as ComboboxOld } from './Legacy';
|
5
|
+
import { Combobox as ComboboxNew } from './Combobox';
|
2
6
|
export { ComboboxDivider, ComboboxFooter, ComboboxGroup, ComboboxHeader, ComboboxItem } from './Legacy';
|
3
7
|
export type { ComboboxOldProps as ComboboxProps } from '@salutejs/plasma-new-hope/styled-components';
|
4
|
-
declare
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
size: {
|
12
|
-
l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
13
|
-
m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
14
|
-
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
15
|
-
xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
16
|
-
};
|
17
|
-
labelPlacement: {
|
18
|
-
inner: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
19
|
-
outer: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
20
|
-
};
|
21
|
-
disabled: {
|
22
|
-
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
23
|
-
};
|
24
|
-
readOnly: {
|
25
|
-
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
26
|
-
};
|
27
|
-
}> & import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
|
28
|
-
readOnly?: boolean | undefined;
|
29
|
-
disabled?: true | undefined;
|
30
|
-
alwaysOpened?: false | undefined;
|
31
|
-
} & {
|
32
|
-
multiple?: false | undefined;
|
33
|
-
value?: string | undefined;
|
34
|
-
onChange?: ((value: string) => void) | undefined;
|
35
|
-
isTargetAmount?: false | undefined;
|
36
|
-
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
37
|
-
view: {
|
38
|
-
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
39
|
-
positive: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
40
|
-
warning: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
41
|
-
negative: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
42
|
-
};
|
43
|
-
size: {
|
44
|
-
l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
45
|
-
m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
46
|
-
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
47
|
-
xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
48
|
-
};
|
49
|
-
labelPlacement: {
|
50
|
-
inner: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
51
|
-
outer: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
52
|
-
};
|
53
|
-
disabled: {
|
54
|
-
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
55
|
-
};
|
56
|
-
readOnly: {
|
57
|
-
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
58
|
-
};
|
59
|
-
}> & import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
|
60
|
-
readOnly?: boolean | undefined;
|
61
|
-
disabled?: true | undefined;
|
62
|
-
alwaysOpened?: false | undefined;
|
63
|
-
} & {
|
64
|
-
multiple: true;
|
65
|
-
value?: string[] | undefined;
|
66
|
-
onChange?: ((value: string[]) => void) | undefined;
|
67
|
-
isTargetAmount?: boolean | undefined;
|
68
|
-
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
69
|
-
view: {
|
70
|
-
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
71
|
-
positive: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
72
|
-
warning: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
73
|
-
negative: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
74
|
-
};
|
75
|
-
size: {
|
76
|
-
l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
77
|
-
m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
78
|
-
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
79
|
-
xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
80
|
-
};
|
81
|
-
labelPlacement: {
|
82
|
-
inner: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
83
|
-
outer: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
84
|
-
};
|
85
|
-
disabled: {
|
86
|
-
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
87
|
-
};
|
88
|
-
readOnly: {
|
89
|
-
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
90
|
-
};
|
91
|
-
}> & import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
|
92
|
-
readOnly?: true | undefined;
|
93
|
-
disabled?: boolean | undefined;
|
94
|
-
alwaysOpened?: false | undefined;
|
95
|
-
} & {
|
96
|
-
multiple?: false | undefined;
|
97
|
-
value?: string | undefined;
|
98
|
-
onChange?: ((value: string) => void) | undefined;
|
99
|
-
isTargetAmount?: false | undefined;
|
100
|
-
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
101
|
-
view: {
|
102
|
-
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
103
|
-
positive: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
104
|
-
warning: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
105
|
-
negative: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
106
|
-
};
|
107
|
-
size: {
|
108
|
-
l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
109
|
-
m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
110
|
-
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
111
|
-
xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
112
|
-
};
|
113
|
-
labelPlacement: {
|
114
|
-
inner: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
115
|
-
outer: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
116
|
-
};
|
117
|
-
disabled: {
|
118
|
-
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
119
|
-
};
|
120
|
-
readOnly: {
|
121
|
-
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
122
|
-
};
|
123
|
-
}> & import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
|
124
|
-
readOnly?: true | undefined;
|
125
|
-
disabled?: boolean | undefined;
|
126
|
-
alwaysOpened?: false | undefined;
|
127
|
-
} & {
|
128
|
-
multiple: true;
|
129
|
-
value?: string[] | undefined;
|
130
|
-
onChange?: ((value: string[]) => void) | undefined;
|
131
|
-
isTargetAmount?: boolean | undefined;
|
132
|
-
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
133
|
-
view: {
|
134
|
-
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
135
|
-
positive: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
136
|
-
warning: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
137
|
-
negative: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
138
|
-
};
|
139
|
-
size: {
|
140
|
-
l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
141
|
-
m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
142
|
-
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
143
|
-
xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
144
|
-
};
|
145
|
-
labelPlacement: {
|
146
|
-
inner: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
147
|
-
outer: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
148
|
-
};
|
149
|
-
disabled: {
|
150
|
-
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
151
|
-
};
|
152
|
-
readOnly: {
|
153
|
-
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
154
|
-
};
|
155
|
-
}> & import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
|
156
|
-
readOnly?: false | undefined;
|
157
|
-
disabled?: false | undefined;
|
158
|
-
alwaysOpened?: true | undefined;
|
159
|
-
} & {
|
160
|
-
multiple?: false | undefined;
|
161
|
-
value?: string | undefined;
|
162
|
-
onChange?: ((value: string) => void) | undefined;
|
163
|
-
isTargetAmount?: false | undefined;
|
164
|
-
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
165
|
-
view: {
|
166
|
-
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
167
|
-
positive: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
168
|
-
warning: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
169
|
-
negative: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
170
|
-
};
|
171
|
-
size: {
|
172
|
-
l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
173
|
-
m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
174
|
-
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
175
|
-
xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
176
|
-
};
|
177
|
-
labelPlacement: {
|
178
|
-
inner: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
179
|
-
outer: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
180
|
-
};
|
181
|
-
disabled: {
|
182
|
-
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
183
|
-
};
|
184
|
-
readOnly: {
|
185
|
-
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
186
|
-
};
|
187
|
-
}> & import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
|
188
|
-
readOnly?: false | undefined;
|
189
|
-
disabled?: false | undefined;
|
190
|
-
alwaysOpened?: true | undefined;
|
191
|
-
} & {
|
192
|
-
multiple: true;
|
193
|
-
value?: string[] | undefined;
|
194
|
-
onChange?: ((value: string[]) => void) | undefined;
|
195
|
-
isTargetAmount?: boolean | undefined;
|
196
|
-
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
197
|
-
size: {
|
198
|
-
xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
199
|
-
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
200
|
-
m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
201
|
-
l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
202
|
-
};
|
203
|
-
view: {
|
204
|
-
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
205
|
-
};
|
206
|
-
}> & Omit<import("@salutejs/plasma-core").InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "type" | "target" | "size" | "checked" | "minLength" | "maxLength"> & import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxOld/Combobox.types").CustomComboboxProps & {
|
207
|
-
valueType?: "single" | undefined;
|
208
|
-
value?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxOld/Combobox.types").ComboboxPrimitiveValue | undefined;
|
209
|
-
onChangeValue?: ((value?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxOld/Combobox.types").ComboboxPrimitiveValue | undefined) => void) | undefined;
|
210
|
-
} & React.RefAttributes<HTMLInputElement> & {
|
211
|
-
items?: undefined;
|
212
|
-
}, "ref"> | Omit<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
213
|
-
size: {
|
214
|
-
xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
215
|
-
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
216
|
-
m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
217
|
-
l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
218
|
-
};
|
219
|
-
view: {
|
220
|
-
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
221
|
-
};
|
222
|
-
}> & Omit<import("@salutejs/plasma-core").InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "type" | "target" | "size" | "checked" | "minLength" | "maxLength"> & import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxOld/Combobox.types").CustomComboboxProps & {
|
223
|
-
valueType: "multiple";
|
224
|
-
value?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxOld/Combobox.types").ComboboxPrimitiveValue[] | undefined;
|
225
|
-
onChangeValue?: ((value?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxOld/Combobox.types").ComboboxPrimitiveValue[] | undefined) => void) | undefined;
|
226
|
-
} & React.RefAttributes<HTMLInputElement> & {
|
227
|
-
items?: undefined;
|
228
|
-
}, "ref">) & React.RefAttributes<HTMLInputElement>>;
|
229
|
-
export { Combobox };
|
8
|
+
declare type PropsFromConfig = keyof typeof config['variations'];
|
9
|
+
declare type PropsOld = ComponentProps<typeof ComboboxOld> & {
|
10
|
+
items?: never;
|
11
|
+
};
|
12
|
+
declare type PropsNew<T extends ItemOption> = Omit<ComboboxProps<T>, PropsFromConfig> & Pick<ComponentProps<typeof ComboboxNew>, PropsFromConfig>;
|
13
|
+
declare type CommonProps<T extends ItemOption> = PropsOld | PropsNew<T>;
|
14
|
+
export declare const Combobox: <T extends ItemOption>(props: CommonProps<T> & React.RefAttributes<HTMLInputElement>) => React.ReactElement | null;
|
@@ -41,7 +41,10 @@ var _Combobox = /*#__PURE__*/require("./Combobox");
|
|
41
41
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
42
42
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
43
43
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
44
|
-
|
44
|
+
function fixedForwardRef(render) {
|
45
|
+
return /*#__PURE__*/(0, _react.forwardRef)(render);
|
46
|
+
}
|
47
|
+
var ComboboxComponent = function ComboboxComponent(props, ref) {
|
45
48
|
if (props.items) {
|
46
49
|
return /*#__PURE__*/_react["default"].createElement(_Combobox.Combobox, _extends({
|
47
50
|
ref: ref
|
@@ -50,4 +53,5 @@ var Combobox = exports.Combobox = /*#__PURE__*/(0, _react.forwardRef)(function (
|
|
50
53
|
return /*#__PURE__*/_react["default"].createElement(_Legacy.Combobox, _extends({
|
51
54
|
ref: ref
|
52
55
|
}, props));
|
53
|
-
}
|
56
|
+
};
|
57
|
+
var Combobox = exports.Combobox = /*#__PURE__*/fixedForwardRef(ComboboxComponent);
|
@@ -20,7 +20,7 @@ var config = exports.config = {
|
|
20
20
|
* использовать `default`
|
21
21
|
*/
|
22
22
|
primary: /*#__PURE__*/(0, _styledComponents.css)(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-primary);\n ", ": var(--surface-solid-card-brightness);\n\n ", ": var(--text-secondary);\n ", ": var(--text-secondary);\n "])), _styledComponents.toastTokens.color, _styledComponents.toastTokens.background, _styledComponents.toastTokens.closeIconColor, _styledComponents.toastTokens.closeIconColorOnHover),
|
23
|
-
dark: /*#__PURE__*/(0, _styledComponents.css)(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--on-dark-text-primary);\n ", ": var(--on-dark-surface-solid-brightness);\n\n ", ": var(--on-dark-text-secondary);\n ", ": var(--on-dark-text-secondary);\n "])), _styledComponents.toastTokens.color, _styledComponents.toastTokens.background, _styledComponents.toastTokens.closeIconColor, _styledComponents.toastTokens.closeIconColorOnHover),
|
23
|
+
dark: /*#__PURE__*/(0, _styledComponents.css)(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--on-dark-text-primary);\n ", ": var(--on-dark-surface-solid-primary-brightness);\n\n ", ": var(--on-dark-text-secondary);\n ", ": var(--on-dark-text-secondary);\n "])), _styledComponents.toastTokens.color, _styledComponents.toastTokens.background, _styledComponents.toastTokens.closeIconColor, _styledComponents.toastTokens.closeIconColorOnHover),
|
24
24
|
light: /*#__PURE__*/(0, _styledComponents.css)(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--on-light-text-primary);\n ", ": var(--on-light-surface-solid-primary-brightness);\n\n ", ": var(--on-light-text-secondary);\n ", ": var(--on-light-text-secondary);\n "])), _styledComponents.toastTokens.color, _styledComponents.toastTokens.background, _styledComponents.toastTokens.closeIconColor, _styledComponents.toastTokens.closeIconColorOnHover)
|
25
25
|
},
|
26
26
|
size: {
|
@@ -7,7 +7,10 @@ var React = require('react');
|
|
7
7
|
var Combobox$2 = require('./Combobox.js');
|
8
8
|
var Combobox$1 = require('./Legacy/Combobox.js');
|
9
9
|
|
10
|
-
|
10
|
+
function fixedForwardRef(render) {
|
11
|
+
return /*#__PURE__*/React.forwardRef(render);
|
12
|
+
}
|
13
|
+
var ComboboxComponent = function ComboboxComponent(props, ref) {
|
11
14
|
if (props.items) {
|
12
15
|
return /*#__PURE__*/React.createElement(Combobox$2.Combobox, _rollupPluginBabelHelpers.extends({
|
13
16
|
ref: ref
|
@@ -16,7 +19,8 @@ var Combobox = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
16
19
|
return /*#__PURE__*/React.createElement(Combobox$1.Combobox, _rollupPluginBabelHelpers.extends({
|
17
20
|
ref: ref
|
18
21
|
}, props));
|
19
|
-
}
|
22
|
+
};
|
23
|
+
var Combobox = /*#__PURE__*/fixedForwardRef(ComboboxComponent);
|
20
24
|
|
21
25
|
exports.ComboboxDivider = Combobox$1.ComboboxDivider;
|
22
26
|
exports.ComboboxFooter = Combobox$1.ComboboxFooter;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src-css/components/Combobox/index.tsx"],"sourcesContent":["import React, { forwardRef, ComponentProps } from 'react';\n\nimport { Combobox as ComboboxOld } from './Legacy';\nimport { Combobox as ComboboxNew } from './Combobox';\n\nexport { ComboboxDivider, ComboboxFooter, ComboboxGroup, ComboboxHeader, ComboboxItem } from './Legacy';\n\nexport type { ComboboxOldProps as ComboboxProps } from '@salutejs/plasma-new-hope';\n\ntype PropsOld = ComponentProps<typeof ComboboxOld> & { items?: never };\ntype PropsNew = ComponentProps<typeof ComboboxNew>;\n\ntype CommonProps = PropsOld | PropsNew
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src-css/components/Combobox/index.tsx"],"sourcesContent":["import React, { forwardRef, ComponentProps } from 'react';\nimport type { ItemOption, ComboboxProps } from '@salutejs/plasma-new-hope';\n\nimport { config } from './Combobox.config';\nimport { Combobox as ComboboxOld } from './Legacy';\nimport { Combobox as ComboboxNew } from './Combobox';\n\nexport { ComboboxDivider, ComboboxFooter, ComboboxGroup, ComboboxHeader, ComboboxItem } from './Legacy';\n\nexport type { ComboboxOldProps as ComboboxProps } from '@salutejs/plasma-new-hope';\n\nfunction fixedForwardRef<T, P = {}>(\n render: (props: P, ref: React.Ref<T>) => React.ReactElement | null,\n): (props: P & React.RefAttributes<T>) => React.ReactElement | null {\n return forwardRef(render as any) as any;\n}\n\ntype PropsFromConfig = keyof typeof config['variations'];\n\ntype PropsOld = ComponentProps<typeof ComboboxOld> & { items?: never };\n\ntype PropsNew<T extends ItemOption> = Omit<ComboboxProps<T>, PropsFromConfig> &\n Pick<ComponentProps<typeof ComboboxNew>, PropsFromConfig>;\n\ntype CommonProps<T extends ItemOption> = PropsOld | PropsNew<T>;\n\nconst ComboboxComponent = <T extends ItemOption>(props: CommonProps<T>, ref: React.ForwardedRef<HTMLInputElement>) => {\n if (props.items) {\n return <ComboboxNew ref={ref} {...(props as any)} />;\n }\n\n return <ComboboxOld ref={ref} {...props} />;\n};\n\nexport const Combobox = fixedForwardRef(ComboboxComponent);\n"],"names":["fixedForwardRef","render","forwardRef","ComboboxComponent","props","ref","items","React","createElement","ComboboxNew","_extends","ComboboxOld","Combobox"],"mappings":";;;;;;;;;AAWA,SAASA,eAAeA,CACpBC,MAAkE,EACF;EAChE,oBAAOC,gBAAU,CAACD,MAAa,CAAC,CAAA;AACpC,CAAA;AAWA,IAAME,iBAAiB,GAAG,SAApBA,iBAAiBA,CAA0BC,KAAqB,EAAEC,GAAyC,EAAK;EAClH,IAAID,KAAK,CAACE,KAAK,EAAE;AACb,IAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACC,mBAAW,EAAAC,iCAAA,CAAA;AAACL,MAAAA,GAAG,EAAEA,GAAAA;KAAUD,EAAAA,KAAK,CAAW,CAAC,CAAA;AACxD,GAAA;AAEA,EAAA,oBAAOG,KAAA,CAAAC,aAAA,CAACG,mBAAW,EAAAD,iCAAA,CAAA;AAACL,IAAAA,GAAG,EAAEA,GAAAA;GAASD,EAAAA,KAAK,CAAG,CAAC,CAAA;AAC/C,CAAC,CAAA;IAEYQ,QAAQ,gBAAGZ,eAAe,CAACG,iBAAiB;;;;;;;;;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Toast.config.js","sources":["../../../../src-css/components/Toast/Toast.config.ts"],"sourcesContent":["import { css, toastTokens } from '@salutejs/plasma-new-hope';\n\nexport const config = {\n defaults: {\n view: 'default',\n size: 'm',\n },\n variations: {\n view: {\n default: css`\n ${toastTokens.color}: var(--text-primary);\n ${toastTokens.background}: var(--surface-solid-card-brightness);\n\n ${toastTokens.closeIconColor}: var(--text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--text-secondary);\n `,\n /**\n * @deprecated\n * использовать `default`\n */\n primary: css`\n ${toastTokens.color}: var(--text-primary);\n ${toastTokens.background}: var(--surface-solid-card-brightness);\n\n ${toastTokens.closeIconColor}: var(--text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--text-secondary);\n `,\n dark: css`\n ${toastTokens.color}: var(--on-dark-text-primary);\n ${toastTokens.background}: var(--on-dark-surface-solid-brightness);\n\n ${toastTokens.closeIconColor}: var(--on-dark-text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--on-dark-text-secondary);\n `,\n light: css`\n ${toastTokens.color}: var(--on-light-text-primary);\n ${toastTokens.background}: var(--on-light-surface-solid-primary-brightness);\n\n ${toastTokens.closeIconColor}: var(--on-light-text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--on-light-text-secondary);\n `,\n },\n size: {\n m: css`\n ${toastTokens.borderRadius}: 0.75rem;\n ${toastTokens.maxWidth}: calc(100vw - 5rem);\n ${toastTokens.padding}: 0.5625rem 0.75rem;\n\n ${toastTokens.fontFamily}: var(--plasma-typo-body-xs-font-family);\n ${toastTokens.fontSize}: var(--plasma-typo-body-xs-font-size);\n ${toastTokens.fontStyle}: var(--plasma-typo-body-xs-font-style);\n ${toastTokens.fontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${toastTokens.letterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${toastTokens.lineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${toastTokens.leftContentMargin}: -0.0625rem 0.375rem -0.0625rem -0.125rem;\n ${toastTokens.closeIconMargin}: -0.0625rem -0.25rem -0.0625rem 0.5rem;\n `,\n },\n pilled: {\n true: css`\n ${toastTokens.pilledBorderRadius}: 1.5rem;\n\n ${toastTokens.leftContentMargin}: -0.0625rem 0.375rem -0.0625rem -0.25rem;\n ${toastTokens.closeIconMargin}: -0.0625rem -0.25rem -0.0625rem 0.375rem;\n `,\n },\n },\n};\n"],"names":["config","defaults","view","size","variations","default","primary","dark","light","m","pilled","true"],"mappings":";;;;AAEO,IAAMA,MAAM,GAAG;AAClBC,EAAAA,QAAQ,EAAE;AACNC,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAA;GACT;AACDC,EAAAA,UAAU,EAAE;AACRF,IAAAA,IAAI,EAAE;AACFG,MAAAA,SAAAA,EAMC,UAAA;AACD;AACZ;AACA;AACA;AACYC,MAAAA,OAAO,EAMN,SAAA;AACDC,MAAAA,IAAI,EAMH,UAAA;AACDC,MAAAA,KAAK,EAAA,UAAA;KAOR;AACDL,IAAAA,IAAI,EAAE;AACFM,MAAAA,CAAC,EAAA,UAAA;KAeJ;AACDC,IAAAA,MAAM,EAAE;MACJC,MAAI,EAAA,UAAA;AAMR,KAAA;AACJ,GAAA;AACJ;;;;"}
|
1
|
+
{"version":3,"file":"Toast.config.js","sources":["../../../../src-css/components/Toast/Toast.config.ts"],"sourcesContent":["import { css, toastTokens } from '@salutejs/plasma-new-hope';\n\nexport const config = {\n defaults: {\n view: 'default',\n size: 'm',\n },\n variations: {\n view: {\n default: css`\n ${toastTokens.color}: var(--text-primary);\n ${toastTokens.background}: var(--surface-solid-card-brightness);\n\n ${toastTokens.closeIconColor}: var(--text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--text-secondary);\n `,\n /**\n * @deprecated\n * использовать `default`\n */\n primary: css`\n ${toastTokens.color}: var(--text-primary);\n ${toastTokens.background}: var(--surface-solid-card-brightness);\n\n ${toastTokens.closeIconColor}: var(--text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--text-secondary);\n `,\n dark: css`\n ${toastTokens.color}: var(--on-dark-text-primary);\n ${toastTokens.background}: var(--on-dark-surface-solid-primary-brightness);\n\n ${toastTokens.closeIconColor}: var(--on-dark-text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--on-dark-text-secondary);\n `,\n light: css`\n ${toastTokens.color}: var(--on-light-text-primary);\n ${toastTokens.background}: var(--on-light-surface-solid-primary-brightness);\n\n ${toastTokens.closeIconColor}: var(--on-light-text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--on-light-text-secondary);\n `,\n },\n size: {\n m: css`\n ${toastTokens.borderRadius}: 0.75rem;\n ${toastTokens.maxWidth}: calc(100vw - 5rem);\n ${toastTokens.padding}: 0.5625rem 0.75rem;\n\n ${toastTokens.fontFamily}: var(--plasma-typo-body-xs-font-family);\n ${toastTokens.fontSize}: var(--plasma-typo-body-xs-font-size);\n ${toastTokens.fontStyle}: var(--plasma-typo-body-xs-font-style);\n ${toastTokens.fontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${toastTokens.letterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${toastTokens.lineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${toastTokens.leftContentMargin}: -0.0625rem 0.375rem -0.0625rem -0.125rem;\n ${toastTokens.closeIconMargin}: -0.0625rem -0.25rem -0.0625rem 0.5rem;\n `,\n },\n pilled: {\n true: css`\n ${toastTokens.pilledBorderRadius}: 1.5rem;\n\n ${toastTokens.leftContentMargin}: -0.0625rem 0.375rem -0.0625rem -0.25rem;\n ${toastTokens.closeIconMargin}: -0.0625rem -0.25rem -0.0625rem 0.375rem;\n `,\n },\n },\n};\n"],"names":["config","defaults","view","size","variations","default","primary","dark","light","m","pilled","true"],"mappings":";;;;AAEO,IAAMA,MAAM,GAAG;AAClBC,EAAAA,QAAQ,EAAE;AACNC,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAA;GACT;AACDC,EAAAA,UAAU,EAAE;AACRF,IAAAA,IAAI,EAAE;AACFG,MAAAA,SAAAA,EAMC,UAAA;AACD;AACZ;AACA;AACA;AACYC,MAAAA,OAAO,EAMN,SAAA;AACDC,MAAAA,IAAI,EAMH,UAAA;AACDC,MAAAA,KAAK,EAAA,UAAA;KAOR;AACDL,IAAAA,IAAI,EAAE;AACFM,MAAAA,CAAC,EAAA,UAAA;KAeJ;AACDC,IAAAA,MAAM,EAAE;MACJC,MAAI,EAAA,UAAA;AAMR,KAAA;AACJ,GAAA;AACJ;;;;"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.d1bsn3dp{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
|
2
2
|
.ptjd8cf{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
|
3
|
-
.d1i63r6p{--plasma-toast-color:var(--on-dark-text-primary);--plasma-toast-background:var(--on-dark-surface-solid-brightness);--plasma-toast-close-icon-color:var(--on-dark-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-dark-text-secondary);}
|
3
|
+
.d1i63r6p{--plasma-toast-color:var(--on-dark-text-primary);--plasma-toast-background:var(--on-dark-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-dark-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-dark-text-secondary);}
|
4
4
|
.l1918q62{--plasma-toast-color:var(--on-light-text-primary);--plasma-toast-background:var(--on-light-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-light-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-light-text-secondary);}
|
5
5
|
.m1jmouzj{--plasma-toast-border-radius:0.75rem;--plasma-toast-max-width:calc(100vw - 5rem);--plasma-toast-padding:0.5625rem 0.75rem;--plasma-toast-font-family:var(--plasma-typo-body-xs-font-family);--plasma-toast-font-size:var(--plasma-typo-body-xs-font-size);--plasma-toast-font-style:var(--plasma-typo-body-xs-font-style);--plasma-toast-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-toast-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-toast-lineheight:var(--plasma-typo-body-xs-line-height);--plasma-toast-left-content-margin:-0.0625rem 0.375rem -0.0625rem -0.125rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.5rem;}
|
6
6
|
.t1hfuauu{--plasma-toast-pilled-border-radius:1.5rem;--plasma-toast-left-content-margin:-0.0625rem 0.375rem -0.0625rem -0.25rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.375rem;}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
.
|
2
|
-
.
|
3
|
-
.
|
4
|
-
.
|
5
|
-
.
|
6
|
-
.
|
1
|
+
.Toast_config_1jtfxhk_d1bsn3dp__3c14a59e{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
|
2
|
+
.Toast_config_1jtfxhk_ptjd8cf__3c14a59e{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
|
3
|
+
.Toast_config_1jtfxhk_d1i63r6p__3c14a59e{--plasma-toast-color:var(--on-dark-text-primary);--plasma-toast-background:var(--on-dark-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-dark-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-dark-text-secondary);}
|
4
|
+
.Toast_config_1jtfxhk_l1918q62__3c14a59e{--plasma-toast-color:var(--on-light-text-primary);--plasma-toast-background:var(--on-light-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-light-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-light-text-secondary);}
|
5
|
+
.Toast_config_1jtfxhk_m1jmouzj__3c14a59e{--plasma-toast-border-radius:0.75rem;--plasma-toast-max-width:calc(100vw - 5rem);--plasma-toast-padding:0.5625rem 0.75rem;--plasma-toast-font-family:var(--plasma-typo-body-xs-font-family);--plasma-toast-font-size:var(--plasma-typo-body-xs-font-size);--plasma-toast-font-style:var(--plasma-typo-body-xs-font-style);--plasma-toast-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-toast-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-toast-lineheight:var(--plasma-typo-body-xs-line-height);--plasma-toast-left-content-margin:-0.0625rem 0.375rem -0.0625rem -0.125rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.5rem;}
|
6
|
+
.Toast_config_1jtfxhk_t1hfuauu__3c14a59e{--plasma-toast-pilled-border-radius:1.5rem;--plasma-toast-left-content-margin:-0.0625rem 0.375rem -0.0625rem -0.25rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.375rem;}
|
package/css/cjs/index.css
CHANGED
@@ -560,12 +560,12 @@
|
|
560
560
|
|
561
561
|
|
562
562
|
|
563
|
-
.
|
564
|
-
.
|
565
|
-
.
|
566
|
-
.
|
567
|
-
.
|
568
|
-
.
|
563
|
+
.Toast_config_1jtfxhk_d1bsn3dp__3c14a59e{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
|
564
|
+
.Toast_config_1jtfxhk_ptjd8cf__3c14a59e{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
|
565
|
+
.Toast_config_1jtfxhk_d1i63r6p__3c14a59e{--plasma-toast-color:var(--on-dark-text-primary);--plasma-toast-background:var(--on-dark-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-dark-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-dark-text-secondary);}
|
566
|
+
.Toast_config_1jtfxhk_l1918q62__3c14a59e{--plasma-toast-color:var(--on-light-text-primary);--plasma-toast-background:var(--on-light-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-light-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-light-text-secondary);}
|
567
|
+
.Toast_config_1jtfxhk_m1jmouzj__3c14a59e{--plasma-toast-border-radius:0.75rem;--plasma-toast-max-width:calc(100vw - 5rem);--plasma-toast-padding:0.5625rem 0.75rem;--plasma-toast-font-family:var(--plasma-typo-body-xs-font-family);--plasma-toast-font-size:var(--plasma-typo-body-xs-font-size);--plasma-toast-font-style:var(--plasma-typo-body-xs-font-style);--plasma-toast-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-toast-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-toast-lineheight:var(--plasma-typo-body-xs-line-height);--plasma-toast-left-content-margin:-0.0625rem 0.375rem -0.0625rem -0.125rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.5rem;}
|
568
|
+
.Toast_config_1jtfxhk_t1hfuauu__3c14a59e{--plasma-toast-pilled-border-radius:1.5rem;--plasma-toast-left-content-margin:-0.0625rem 0.375rem -0.0625rem -0.25rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.375rem;}
|
569
569
|
|
570
570
|
.Toolbar_config_1yum23z_d1ww92hn__4c35b6dd{--plasma-toolbar-box-shadow:0px 4px 14px -4px rgba(8,8,8,0.08),0px 1px 4px -1px rgba(0,0,0,0.04);--plasma-toolbar-background:var(--surface-solid-card-brightness);--plasma-toolbar-divider-color:var(--surface-transparent-tertiary);}
|
571
571
|
.Toolbar_config_1yum23z_x1apuzov__4c35b6dd{--plasma-toolbar-size:2.5rem;--plasma-toolbar-padding:0.25rem;--plasma-toolbar-border-radius:0.75rem;--plasma-toolbar-divider-size:1.25rem;--plasma-toolbar-divider-offset:0.5rem;--plasma-toolbar-divider-border-radius:0.0625rem;}
|
@@ -4,7 +4,10 @@ import { Combobox as Combobox$1 } from './Combobox.js';
|
|
4
4
|
import { Combobox as Combobox$2 } from './Legacy/Combobox.js';
|
5
5
|
export { ComboboxDivider, ComboboxFooter, ComboboxGroup, ComboboxHeader, ComboboxItem } from './Legacy/Combobox.js';
|
6
6
|
|
7
|
-
|
7
|
+
function fixedForwardRef(render) {
|
8
|
+
return /*#__PURE__*/forwardRef(render);
|
9
|
+
}
|
10
|
+
var ComboboxComponent = function ComboboxComponent(props, ref) {
|
8
11
|
if (props.items) {
|
9
12
|
return /*#__PURE__*/React.createElement(Combobox$1, _extends({
|
10
13
|
ref: ref
|
@@ -13,7 +16,8 @@ var Combobox = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
13
16
|
return /*#__PURE__*/React.createElement(Combobox$2, _extends({
|
14
17
|
ref: ref
|
15
18
|
}, props));
|
16
|
-
}
|
19
|
+
};
|
20
|
+
var Combobox = /*#__PURE__*/fixedForwardRef(ComboboxComponent);
|
17
21
|
|
18
22
|
export { Combobox };
|
19
23
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src-css/components/Combobox/index.tsx"],"sourcesContent":["import React, { forwardRef, ComponentProps } from 'react';\n\nimport { Combobox as ComboboxOld } from './Legacy';\nimport { Combobox as ComboboxNew } from './Combobox';\n\nexport { ComboboxDivider, ComboboxFooter, ComboboxGroup, ComboboxHeader, ComboboxItem } from './Legacy';\n\nexport type { ComboboxOldProps as ComboboxProps } from '@salutejs/plasma-new-hope';\n\ntype PropsOld = ComponentProps<typeof ComboboxOld> & { items?: never };\ntype PropsNew = ComponentProps<typeof ComboboxNew>;\n\ntype CommonProps = PropsOld | PropsNew
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src-css/components/Combobox/index.tsx"],"sourcesContent":["import React, { forwardRef, ComponentProps } from 'react';\nimport type { ItemOption, ComboboxProps } from '@salutejs/plasma-new-hope';\n\nimport { config } from './Combobox.config';\nimport { Combobox as ComboboxOld } from './Legacy';\nimport { Combobox as ComboboxNew } from './Combobox';\n\nexport { ComboboxDivider, ComboboxFooter, ComboboxGroup, ComboboxHeader, ComboboxItem } from './Legacy';\n\nexport type { ComboboxOldProps as ComboboxProps } from '@salutejs/plasma-new-hope';\n\nfunction fixedForwardRef<T, P = {}>(\n render: (props: P, ref: React.Ref<T>) => React.ReactElement | null,\n): (props: P & React.RefAttributes<T>) => React.ReactElement | null {\n return forwardRef(render as any) as any;\n}\n\ntype PropsFromConfig = keyof typeof config['variations'];\n\ntype PropsOld = ComponentProps<typeof ComboboxOld> & { items?: never };\n\ntype PropsNew<T extends ItemOption> = Omit<ComboboxProps<T>, PropsFromConfig> &\n Pick<ComponentProps<typeof ComboboxNew>, PropsFromConfig>;\n\ntype CommonProps<T extends ItemOption> = PropsOld | PropsNew<T>;\n\nconst ComboboxComponent = <T extends ItemOption>(props: CommonProps<T>, ref: React.ForwardedRef<HTMLInputElement>) => {\n if (props.items) {\n return <ComboboxNew ref={ref} {...(props as any)} />;\n }\n\n return <ComboboxOld ref={ref} {...props} />;\n};\n\nexport const Combobox = fixedForwardRef(ComboboxComponent);\n"],"names":["fixedForwardRef","render","forwardRef","ComboboxComponent","props","ref","items","React","createElement","ComboboxNew","_extends","ComboboxOld","Combobox"],"mappings":";;;;;;AAWA,SAASA,eAAeA,CACpBC,MAAkE,EACF;EAChE,oBAAOC,UAAU,CAACD,MAAa,CAAC,CAAA;AACpC,CAAA;AAWA,IAAME,iBAAiB,GAAG,SAApBA,iBAAiBA,CAA0BC,KAAqB,EAAEC,GAAyC,EAAK;EAClH,IAAID,KAAK,CAACE,KAAK,EAAE;AACb,IAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACC,UAAW,EAAAC,QAAA,CAAA;AAACL,MAAAA,GAAG,EAAEA,GAAAA;KAAUD,EAAAA,KAAK,CAAW,CAAC,CAAA;AACxD,GAAA;AAEA,EAAA,oBAAOG,KAAA,CAAAC,aAAA,CAACG,UAAW,EAAAD,QAAA,CAAA;AAACL,IAAAA,GAAG,EAAEA,GAAAA;GAASD,EAAAA,KAAK,CAAG,CAAC,CAAA;AAC/C,CAAC,CAAA;IAEYQ,QAAQ,gBAAGZ,eAAe,CAACG,iBAAiB;;;;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Toast.config.js","sources":["../../../../src-css/components/Toast/Toast.config.ts"],"sourcesContent":["import { css, toastTokens } from '@salutejs/plasma-new-hope';\n\nexport const config = {\n defaults: {\n view: 'default',\n size: 'm',\n },\n variations: {\n view: {\n default: css`\n ${toastTokens.color}: var(--text-primary);\n ${toastTokens.background}: var(--surface-solid-card-brightness);\n\n ${toastTokens.closeIconColor}: var(--text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--text-secondary);\n `,\n /**\n * @deprecated\n * использовать `default`\n */\n primary: css`\n ${toastTokens.color}: var(--text-primary);\n ${toastTokens.background}: var(--surface-solid-card-brightness);\n\n ${toastTokens.closeIconColor}: var(--text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--text-secondary);\n `,\n dark: css`\n ${toastTokens.color}: var(--on-dark-text-primary);\n ${toastTokens.background}: var(--on-dark-surface-solid-brightness);\n\n ${toastTokens.closeIconColor}: var(--on-dark-text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--on-dark-text-secondary);\n `,\n light: css`\n ${toastTokens.color}: var(--on-light-text-primary);\n ${toastTokens.background}: var(--on-light-surface-solid-primary-brightness);\n\n ${toastTokens.closeIconColor}: var(--on-light-text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--on-light-text-secondary);\n `,\n },\n size: {\n m: css`\n ${toastTokens.borderRadius}: 0.75rem;\n ${toastTokens.maxWidth}: calc(100vw - 5rem);\n ${toastTokens.padding}: 0.5625rem 0.75rem;\n\n ${toastTokens.fontFamily}: var(--plasma-typo-body-xs-font-family);\n ${toastTokens.fontSize}: var(--plasma-typo-body-xs-font-size);\n ${toastTokens.fontStyle}: var(--plasma-typo-body-xs-font-style);\n ${toastTokens.fontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${toastTokens.letterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${toastTokens.lineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${toastTokens.leftContentMargin}: -0.0625rem 0.375rem -0.0625rem -0.125rem;\n ${toastTokens.closeIconMargin}: -0.0625rem -0.25rem -0.0625rem 0.5rem;\n `,\n },\n pilled: {\n true: css`\n ${toastTokens.pilledBorderRadius}: 1.5rem;\n\n ${toastTokens.leftContentMargin}: -0.0625rem 0.375rem -0.0625rem -0.25rem;\n ${toastTokens.closeIconMargin}: -0.0625rem -0.25rem -0.0625rem 0.375rem;\n `,\n },\n },\n};\n"],"names":["config","defaults","view","size","variations","default","primary","dark","light","m","pilled","true"],"mappings":"AAEO,IAAMA,MAAM,GAAG;AAClBC,EAAAA,QAAQ,EAAE;AACNC,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAA;GACT;AACDC,EAAAA,UAAU,EAAE;AACRF,IAAAA,IAAI,EAAE;AACFG,MAAAA,SAAAA,EAMC,UAAA;AACD;AACZ;AACA;AACA;AACYC,MAAAA,OAAO,EAMN,SAAA;AACDC,MAAAA,IAAI,EAMH,UAAA;AACDC,MAAAA,KAAK,EAAA,UAAA;KAOR;AACDL,IAAAA,IAAI,EAAE;AACFM,MAAAA,CAAC,EAAA,UAAA;KAeJ;AACDC,IAAAA,MAAM,EAAE;MACJC,MAAI,EAAA,UAAA;AAMR,KAAA;AACJ,GAAA;AACJ;;;;"}
|
1
|
+
{"version":3,"file":"Toast.config.js","sources":["../../../../src-css/components/Toast/Toast.config.ts"],"sourcesContent":["import { css, toastTokens } from '@salutejs/plasma-new-hope';\n\nexport const config = {\n defaults: {\n view: 'default',\n size: 'm',\n },\n variations: {\n view: {\n default: css`\n ${toastTokens.color}: var(--text-primary);\n ${toastTokens.background}: var(--surface-solid-card-brightness);\n\n ${toastTokens.closeIconColor}: var(--text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--text-secondary);\n `,\n /**\n * @deprecated\n * использовать `default`\n */\n primary: css`\n ${toastTokens.color}: var(--text-primary);\n ${toastTokens.background}: var(--surface-solid-card-brightness);\n\n ${toastTokens.closeIconColor}: var(--text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--text-secondary);\n `,\n dark: css`\n ${toastTokens.color}: var(--on-dark-text-primary);\n ${toastTokens.background}: var(--on-dark-surface-solid-primary-brightness);\n\n ${toastTokens.closeIconColor}: var(--on-dark-text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--on-dark-text-secondary);\n `,\n light: css`\n ${toastTokens.color}: var(--on-light-text-primary);\n ${toastTokens.background}: var(--on-light-surface-solid-primary-brightness);\n\n ${toastTokens.closeIconColor}: var(--on-light-text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--on-light-text-secondary);\n `,\n },\n size: {\n m: css`\n ${toastTokens.borderRadius}: 0.75rem;\n ${toastTokens.maxWidth}: calc(100vw - 5rem);\n ${toastTokens.padding}: 0.5625rem 0.75rem;\n\n ${toastTokens.fontFamily}: var(--plasma-typo-body-xs-font-family);\n ${toastTokens.fontSize}: var(--plasma-typo-body-xs-font-size);\n ${toastTokens.fontStyle}: var(--plasma-typo-body-xs-font-style);\n ${toastTokens.fontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${toastTokens.letterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${toastTokens.lineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${toastTokens.leftContentMargin}: -0.0625rem 0.375rem -0.0625rem -0.125rem;\n ${toastTokens.closeIconMargin}: -0.0625rem -0.25rem -0.0625rem 0.5rem;\n `,\n },\n pilled: {\n true: css`\n ${toastTokens.pilledBorderRadius}: 1.5rem;\n\n ${toastTokens.leftContentMargin}: -0.0625rem 0.375rem -0.0625rem -0.25rem;\n ${toastTokens.closeIconMargin}: -0.0625rem -0.25rem -0.0625rem 0.375rem;\n `,\n },\n },\n};\n"],"names":["config","defaults","view","size","variations","default","primary","dark","light","m","pilled","true"],"mappings":"AAEO,IAAMA,MAAM,GAAG;AAClBC,EAAAA,QAAQ,EAAE;AACNC,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAA;GACT;AACDC,EAAAA,UAAU,EAAE;AACRF,IAAAA,IAAI,EAAE;AACFG,MAAAA,SAAAA,EAMC,UAAA;AACD;AACZ;AACA;AACA;AACYC,MAAAA,OAAO,EAMN,SAAA;AACDC,MAAAA,IAAI,EAMH,UAAA;AACDC,MAAAA,KAAK,EAAA,UAAA;KAOR;AACDL,IAAAA,IAAI,EAAE;AACFM,MAAAA,CAAC,EAAA,UAAA;KAeJ;AACDC,IAAAA,MAAM,EAAE;MACJC,MAAI,EAAA,UAAA;AAMR,KAAA;AACJ,GAAA;AACJ;;;;"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.d1bsn3dp{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
|
2
2
|
.ptjd8cf{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
|
3
|
-
.d1i63r6p{--plasma-toast-color:var(--on-dark-text-primary);--plasma-toast-background:var(--on-dark-surface-solid-brightness);--plasma-toast-close-icon-color:var(--on-dark-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-dark-text-secondary);}
|
3
|
+
.d1i63r6p{--plasma-toast-color:var(--on-dark-text-primary);--plasma-toast-background:var(--on-dark-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-dark-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-dark-text-secondary);}
|
4
4
|
.l1918q62{--plasma-toast-color:var(--on-light-text-primary);--plasma-toast-background:var(--on-light-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-light-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-light-text-secondary);}
|
5
5
|
.m1jmouzj{--plasma-toast-border-radius:0.75rem;--plasma-toast-max-width:calc(100vw - 5rem);--plasma-toast-padding:0.5625rem 0.75rem;--plasma-toast-font-family:var(--plasma-typo-body-xs-font-family);--plasma-toast-font-size:var(--plasma-typo-body-xs-font-size);--plasma-toast-font-style:var(--plasma-typo-body-xs-font-style);--plasma-toast-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-toast-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-toast-lineheight:var(--plasma-typo-body-xs-line-height);--plasma-toast-left-content-margin:-0.0625rem 0.375rem -0.0625rem -0.125rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.5rem;}
|
6
6
|
.t1hfuauu{--plasma-toast-pilled-border-radius:1.5rem;--plasma-toast-left-content-margin:-0.0625rem 0.375rem -0.0625rem -0.25rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.375rem;}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
.
|
2
|
-
.
|
3
|
-
.
|
4
|
-
.
|
5
|
-
.
|
6
|
-
.
|
1
|
+
.Toast_config_1jtfxhk_d1bsn3dp__3c14a59e{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
|
2
|
+
.Toast_config_1jtfxhk_ptjd8cf__3c14a59e{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
|
3
|
+
.Toast_config_1jtfxhk_d1i63r6p__3c14a59e{--plasma-toast-color:var(--on-dark-text-primary);--plasma-toast-background:var(--on-dark-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-dark-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-dark-text-secondary);}
|
4
|
+
.Toast_config_1jtfxhk_l1918q62__3c14a59e{--plasma-toast-color:var(--on-light-text-primary);--plasma-toast-background:var(--on-light-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-light-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-light-text-secondary);}
|
5
|
+
.Toast_config_1jtfxhk_m1jmouzj__3c14a59e{--plasma-toast-border-radius:0.75rem;--plasma-toast-max-width:calc(100vw - 5rem);--plasma-toast-padding:0.5625rem 0.75rem;--plasma-toast-font-family:var(--plasma-typo-body-xs-font-family);--plasma-toast-font-size:var(--plasma-typo-body-xs-font-size);--plasma-toast-font-style:var(--plasma-typo-body-xs-font-style);--plasma-toast-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-toast-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-toast-lineheight:var(--plasma-typo-body-xs-line-height);--plasma-toast-left-content-margin:-0.0625rem 0.375rem -0.0625rem -0.125rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.5rem;}
|
6
|
+
.Toast_config_1jtfxhk_t1hfuauu__3c14a59e{--plasma-toast-pilled-border-radius:1.5rem;--plasma-toast-left-content-margin:-0.0625rem 0.375rem -0.0625rem -0.25rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.375rem;}
|
package/css/es/index.css
CHANGED
@@ -560,12 +560,12 @@
|
|
560
560
|
|
561
561
|
|
562
562
|
|
563
|
-
.
|
564
|
-
.
|
565
|
-
.
|
566
|
-
.
|
567
|
-
.
|
568
|
-
.
|
563
|
+
.Toast_config_1jtfxhk_d1bsn3dp__3c14a59e{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
|
564
|
+
.Toast_config_1jtfxhk_ptjd8cf__3c14a59e{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
|
565
|
+
.Toast_config_1jtfxhk_d1i63r6p__3c14a59e{--plasma-toast-color:var(--on-dark-text-primary);--plasma-toast-background:var(--on-dark-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-dark-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-dark-text-secondary);}
|
566
|
+
.Toast_config_1jtfxhk_l1918q62__3c14a59e{--plasma-toast-color:var(--on-light-text-primary);--plasma-toast-background:var(--on-light-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-light-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-light-text-secondary);}
|
567
|
+
.Toast_config_1jtfxhk_m1jmouzj__3c14a59e{--plasma-toast-border-radius:0.75rem;--plasma-toast-max-width:calc(100vw - 5rem);--plasma-toast-padding:0.5625rem 0.75rem;--plasma-toast-font-family:var(--plasma-typo-body-xs-font-family);--plasma-toast-font-size:var(--plasma-typo-body-xs-font-size);--plasma-toast-font-style:var(--plasma-typo-body-xs-font-style);--plasma-toast-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-toast-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-toast-lineheight:var(--plasma-typo-body-xs-line-height);--plasma-toast-left-content-margin:-0.0625rem 0.375rem -0.0625rem -0.125rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.5rem;}
|
568
|
+
.Toast_config_1jtfxhk_t1hfuauu__3c14a59e{--plasma-toast-pilled-border-radius:1.5rem;--plasma-toast-left-content-margin:-0.0625rem 0.375rem -0.0625rem -0.25rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.375rem;}
|
569
569
|
|
570
570
|
.Toolbar_config_1yum23z_d1ww92hn__4c35b6dd{--plasma-toolbar-box-shadow:0px 4px 14px -4px rgba(8,8,8,0.08),0px 1px 4px -1px rgba(0,0,0,0.04);--plasma-toolbar-background:var(--surface-solid-card-brightness);--plasma-toolbar-divider-color:var(--surface-transparent-tertiary);}
|
571
571
|
.Toolbar_config_1yum23z_x1apuzov__4c35b6dd{--plasma-toolbar-size:2.5rem;--plasma-toolbar-padding:0.25rem;--plasma-toolbar-border-radius:0.75rem;--plasma-toolbar-divider-size:1.25rem;--plasma-toolbar-divider-offset:0.5rem;--plasma-toolbar-divider-border-radius:0.0625rem;}
|
@@ -3,7 +3,10 @@ import React, { forwardRef } from 'react';
|
|
3
3
|
import { Combobox as ComboboxOld } from './Legacy';
|
4
4
|
import { Combobox as ComboboxNew } from './Combobox';
|
5
5
|
export { ComboboxDivider, ComboboxFooter, ComboboxGroup, ComboboxHeader, ComboboxItem } from './Legacy';
|
6
|
-
|
6
|
+
function fixedForwardRef(render) {
|
7
|
+
return /*#__PURE__*/forwardRef(render);
|
8
|
+
}
|
9
|
+
var ComboboxComponent = function ComboboxComponent(props, ref) {
|
7
10
|
if (props.items) {
|
8
11
|
return /*#__PURE__*/React.createElement(ComboboxNew, _extends({
|
9
12
|
ref: ref
|
@@ -12,5 +15,5 @@ var Combobox = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
12
15
|
return /*#__PURE__*/React.createElement(ComboboxOld, _extends({
|
13
16
|
ref: ref
|
14
17
|
}, props));
|
15
|
-
}
|
16
|
-
export
|
18
|
+
};
|
19
|
+
export var Combobox = /*#__PURE__*/fixedForwardRef(ComboboxComponent);
|
@@ -14,7 +14,7 @@ export var config = {
|
|
14
14
|
* использовать `default`
|
15
15
|
*/
|
16
16
|
primary: /*#__PURE__*/css(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-primary);\n ", ": var(--surface-solid-card-brightness);\n\n ", ": var(--text-secondary);\n ", ": var(--text-secondary);\n "])), toastTokens.color, toastTokens.background, toastTokens.closeIconColor, toastTokens.closeIconColorOnHover),
|
17
|
-
dark: /*#__PURE__*/css(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--on-dark-text-primary);\n ", ": var(--on-dark-surface-solid-brightness);\n\n ", ": var(--on-dark-text-secondary);\n ", ": var(--on-dark-text-secondary);\n "])), toastTokens.color, toastTokens.background, toastTokens.closeIconColor, toastTokens.closeIconColorOnHover),
|
17
|
+
dark: /*#__PURE__*/css(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--on-dark-text-primary);\n ", ": var(--on-dark-surface-solid-primary-brightness);\n\n ", ": var(--on-dark-text-secondary);\n ", ": var(--on-dark-text-secondary);\n "])), toastTokens.color, toastTokens.background, toastTokens.closeIconColor, toastTokens.closeIconColorOnHover),
|
18
18
|
light: /*#__PURE__*/css(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--on-light-text-primary);\n ", ": var(--on-light-surface-solid-primary-brightness);\n\n ", ": var(--on-light-text-secondary);\n ", ": var(--on-light-text-secondary);\n "])), toastTokens.color, toastTokens.background, toastTokens.closeIconColor, toastTokens.closeIconColorOnHover)
|
19
19
|
},
|
20
20
|
size: {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/plasma-b2c",
|
3
|
-
"version": "1.417.0-canary.1459.
|
3
|
+
"version": "1.417.0-canary.1459.11347702889.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",
|
@@ -44,7 +44,7 @@
|
|
44
44
|
"dependencies": {
|
45
45
|
"@salutejs/plasma-core": "1.182.0-dev.0",
|
46
46
|
"@salutejs/plasma-hope": "1.315.0-dev.0",
|
47
|
-
"@salutejs/plasma-new-hope": "0.166.0-canary.1459.
|
47
|
+
"@salutejs/plasma-new-hope": "0.166.0-canary.1459.11347702889.0",
|
48
48
|
"@salutejs/plasma-themes": "0.20.0-dev.0",
|
49
49
|
"@salutejs/plasma-tokens-b2c": "0.53.0-dev.0",
|
50
50
|
"@salutejs/plasma-tokens-web": "1.58.0-dev.0",
|
@@ -109,5 +109,5 @@
|
|
109
109
|
"react"
|
110
110
|
],
|
111
111
|
"sideEffects": false,
|
112
|
-
"gitHead": "
|
112
|
+
"gitHead": "1f83edb4a33fe02c040cccce3bb45e8d5568954a"
|
113
113
|
}
|