@salutejs/sdds-cs 0.327.1-canary.2206.17460950180.0 → 0.327.1-canary.2209.17603494170.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Autocomplete/Autocomplete.d.ts +124 -117
- package/components/Autocomplete/Autocomplete.js +76 -4
- package/components/Avatar/Avatar.config.d.ts +4 -0
- package/components/Avatar/Avatar.config.js +35 -15
- package/components/Avatar/Avatar.d.ts +13 -0
- package/components/Combobox/Combobox.d.ts +48 -24
- package/components/Dropdown/Dropdown.d.ts +6 -6
- package/components/Pagination/Pagination.d.ts +1 -1
- package/components/Select/Select.d.ts +12 -6
- package/emotion/cjs/components/Autocomplete/Autocomplete.js +76 -4
- package/emotion/cjs/components/Avatar/Avatar.config.js +35 -15
- package/emotion/es/components/Autocomplete/Autocomplete.js +61 -2
- package/emotion/es/components/Avatar/Avatar.config.js +35 -15
- package/es/components/Autocomplete/Autocomplete.js +61 -2
- package/es/components/Avatar/Avatar.config.js +35 -15
- package/package.json +3 -3
@@ -109,9 +109,13 @@ function _templateObject4() {
|
|
109
109
|
function _templateObject5() {
|
110
110
|
var data = _tagged_template_literal([
|
111
111
|
"\n ",
|
112
|
-
":
|
113
|
-
":
|
114
|
-
"
|
112
|
+
": 50%;\n ",
|
113
|
+
": calc(1.02 * 0.85 * var(",
|
114
|
+
") - var(",
|
115
|
+
") / 2);\n ",
|
116
|
+
": calc(1.02 * 0.85 * var(",
|
117
|
+
") - var(",
|
118
|
+
") / 2);\n "
|
115
119
|
]);
|
116
120
|
_templateObject5 = function _templateObject() {
|
117
121
|
return data;
|
@@ -121,8 +125,9 @@ function _templateObject5() {
|
|
121
125
|
function _templateObject6() {
|
122
126
|
var data = _tagged_template_literal([
|
123
127
|
"\n ",
|
124
|
-
":
|
125
|
-
":
|
128
|
+
": 0.1rem;\n ",
|
129
|
+
": -0.2rem;\n ",
|
130
|
+
": var(--surface-accent);\n "
|
126
131
|
]);
|
127
132
|
_templateObject6 = function _templateObject() {
|
128
133
|
return data;
|
@@ -132,8 +137,8 @@ function _templateObject6() {
|
|
132
137
|
function _templateObject7() {
|
133
138
|
var data = _tagged_template_literal([
|
134
139
|
"\n ",
|
135
|
-
": var(--
|
136
|
-
": var(--surface-
|
140
|
+
": var(--inverse-text-primary);\n ",
|
141
|
+
": var(--surface-solid-default);\n "
|
137
142
|
]);
|
138
143
|
_templateObject7 = function _templateObject() {
|
139
144
|
return data;
|
@@ -144,7 +149,7 @@ function _templateObject8() {
|
|
144
149
|
var data = _tagged_template_literal([
|
145
150
|
"\n ",
|
146
151
|
": var(--on-dark-text-primary);\n ",
|
147
|
-
": var(--surface-
|
152
|
+
": var(--surface-accent);\n "
|
148
153
|
]);
|
149
154
|
_templateObject8 = function _templateObject() {
|
150
155
|
return data;
|
@@ -155,18 +160,30 @@ function _templateObject9() {
|
|
155
160
|
var data = _tagged_template_literal([
|
156
161
|
"\n ",
|
157
162
|
": var(--on-dark-text-primary);\n ",
|
158
|
-
": var(--surface-
|
163
|
+
": var(--surface-positive);\n "
|
159
164
|
]);
|
160
165
|
_templateObject9 = function _templateObject() {
|
161
166
|
return data;
|
162
167
|
};
|
163
168
|
return data;
|
164
169
|
}
|
170
|
+
function _templateObject10() {
|
171
|
+
var data = _tagged_template_literal([
|
172
|
+
"\n ",
|
173
|
+
": var(--on-dark-text-primary);\n ",
|
174
|
+
": var(--surface-negative);\n "
|
175
|
+
]);
|
176
|
+
_templateObject10 = function _templateObject() {
|
177
|
+
return data;
|
178
|
+
};
|
179
|
+
return data;
|
180
|
+
}
|
165
181
|
import { css, avatarTokens as tokens } from '@salutejs/plasma-new-hope/styled-components';
|
166
182
|
export var config = {
|
167
183
|
defaults: {
|
168
184
|
view: 'default',
|
169
|
-
size: 's'
|
185
|
+
size: 's',
|
186
|
+
shape: 'circled'
|
170
187
|
},
|
171
188
|
variations: {
|
172
189
|
view: {
|
@@ -179,14 +196,17 @@ export var config = {
|
|
179
196
|
s: css(_templateObject3(), tokens.avatarSize, tokens.fontSize, tokens.fontWeight, tokens.lineHeight, tokens.statusIconSize, tokens.counterBorderRadius, tokens.counterHeight, tokens.counterPadding, tokens.counterFontFamily, tokens.counterFontSize, tokens.counterFontStyle, tokens.counterFontWeight, tokens.counterLetterSpacing, tokens.counterLineHeight),
|
180
197
|
fit: css(_templateObject4(), tokens.avatarSize, tokens.fontSize, tokens.fontWeight, tokens.lineHeight, tokens.statusIconSize)
|
181
198
|
},
|
199
|
+
shape: {
|
200
|
+
circled: css(_templateObject5(), tokens.borderRadius, tokens.statusLeft, tokens.avatarSize, tokens.statusIconSize, tokens.statusTop, tokens.avatarSize, tokens.statusIconSize)
|
201
|
+
},
|
182
202
|
focused: {
|
183
|
-
true: css(
|
203
|
+
true: css(_templateObject6(), tokens.outlineSize, tokens.outlineOffset, tokens.outlineColor)
|
184
204
|
},
|
185
205
|
counterView: {
|
186
|
-
default: css(
|
187
|
-
accent: css(
|
188
|
-
positive: css(
|
189
|
-
negative: css(
|
206
|
+
default: css(_templateObject7(), tokens.counterColor, tokens.counterBackground),
|
207
|
+
accent: css(_templateObject8(), tokens.counterColor, tokens.counterBackground),
|
208
|
+
positive: css(_templateObject9(), tokens.counterColor, tokens.counterBackground),
|
209
|
+
negative: css(_templateObject10(), tokens.counterColor, tokens.counterBackground)
|
190
210
|
}
|
191
211
|
}
|
192
212
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/sdds-cs",
|
3
|
-
"version": "0.327.1-canary.
|
3
|
+
"version": "0.327.1-canary.2209.17603494170.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",
|
@@ -30,7 +30,7 @@
|
|
30
30
|
"directory": "packages/sdds-cs"
|
31
31
|
},
|
32
32
|
"dependencies": {
|
33
|
-
"@salutejs/plasma-new-hope": "0.335.1-canary.
|
33
|
+
"@salutejs/plasma-new-hope": "0.335.1-canary.2209.17603494170.0",
|
34
34
|
"@salutejs/sdds-themes": "0.47.0"
|
35
35
|
},
|
36
36
|
"peerDependencies": {
|
@@ -123,5 +123,5 @@
|
|
123
123
|
"Anton Vinogradov"
|
124
124
|
],
|
125
125
|
"sideEffects": false,
|
126
|
-
"gitHead": "
|
126
|
+
"gitHead": "2c797fac026f1c295adbc10f922747a80cd00134"
|
127
127
|
}
|