@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.
@@ -109,9 +109,13 @@ function _templateObject4() {
109
109
  function _templateObject5() {
110
110
  var data = _tagged_template_literal([
111
111
  "\n ",
112
- ": 0.1rem;\n ",
113
- ": -0.2rem;\n ",
114
- ": var(--surface-accent);\n "
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
- ": var(--inverse-text-primary);\n ",
125
- ": var(--surface-solid-default);\n "
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(--on-dark-text-primary);\n ",
136
- ": var(--surface-accent);\n "
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-positive);\n "
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-negative);\n "
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(_templateObject5(), tokens.outlineSize, tokens.outlineOffset, tokens.outlineColor)
203
+ true: css(_templateObject6(), tokens.outlineSize, tokens.outlineOffset, tokens.outlineColor)
184
204
  },
185
205
  counterView: {
186
- default: css(_templateObject6(), tokens.counterColor, tokens.counterBackground),
187
- accent: css(_templateObject7(), tokens.counterColor, tokens.counterBackground),
188
- positive: css(_templateObject8(), tokens.counterColor, tokens.counterBackground),
189
- negative: css(_templateObject9(), tokens.counterColor, tokens.counterBackground)
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.2206.17460950180.0",
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.2206.17460950180.0",
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": "8d235a6bde26c188e30f2809594ceff700386bbd"
126
+ "gitHead": "2c797fac026f1c295adbc10f922747a80cd00134"
127
127
  }