@salutejs/plasma-web 1.588.0-canary.2093.16416009316.0 → 1.588.0-canary.2093.16456870327.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.
Files changed (52) hide show
  1. package/components/Chip/Chip.config.js +8 -16
  2. package/components/ChipGroup/ChipGroup.config.js +8 -16
  3. package/components/EmbedIconButton/EmbedIconButton.config.d.ts +31 -0
  4. package/components/EmbedIconButton/EmbedIconButton.config.js +288 -0
  5. package/components/EmbedIconButton/EmbedIconButton.d.ts +69 -0
  6. package/components/EmbedIconButton/EmbedIconButton.js +15 -0
  7. package/components/EmbedIconButton/index.d.ts +1 -0
  8. package/components/EmbedIconButton/index.js +11 -0
  9. package/css/cjs/components/Chip/Chip.config.js +1 -1
  10. package/css/cjs/components/Chip/Chip.config.js.map +1 -1
  11. package/css/cjs/components/Chip/{Chip.config_ilitfu.css → Chip.config_1mkd3f7.css} +4 -4
  12. package/css/cjs/components/Chip/Chip.css +13 -13
  13. package/css/cjs/components/ChipGroup/ChipGroup.config.js +1 -1
  14. package/css/cjs/components/ChipGroup/ChipGroup.config.js.map +1 -1
  15. package/css/cjs/components/ChipGroup/{ChipGroup.config_c10q1g.css → ChipGroup.config_q74w4b.css} +4 -4
  16. package/css/cjs/components/ChipGroup/ChipGroup.css +9 -9
  17. package/css/cjs/components/EmbedIconButton/EmbedIconButton.config.js +39 -0
  18. package/css/cjs/components/EmbedIconButton/EmbedIconButton.config.js.map +1 -0
  19. package/css/cjs/components/EmbedIconButton/EmbedIconButton.config_1pj1kew.css +14 -0
  20. package/css/cjs/components/EmbedIconButton/EmbedIconButton.css +14 -0
  21. package/css/cjs/components/EmbedIconButton/EmbedIconButton.js +17 -0
  22. package/css/cjs/components/EmbedIconButton/EmbedIconButton.js.map +1 -0
  23. package/css/cjs/index.css +39 -24
  24. package/css/cjs/index.js +2 -0
  25. package/css/cjs/index.js.map +1 -1
  26. package/css/es/components/Chip/Chip.config.js +1 -1
  27. package/css/es/components/Chip/Chip.config.js.map +1 -1
  28. package/css/es/components/Chip/{Chip.config_ilitfu.css → Chip.config_1mkd3f7.css} +4 -4
  29. package/css/es/components/Chip/Chip.css +13 -13
  30. package/css/es/components/ChipGroup/ChipGroup.config.js +1 -1
  31. package/css/es/components/ChipGroup/ChipGroup.config.js.map +1 -1
  32. package/css/es/components/ChipGroup/{ChipGroup.config_c10q1g.css → ChipGroup.config_q74w4b.css} +4 -4
  33. package/css/es/components/ChipGroup/ChipGroup.css +9 -9
  34. package/css/es/components/EmbedIconButton/EmbedIconButton.config.js +35 -0
  35. package/css/es/components/EmbedIconButton/EmbedIconButton.config.js.map +1 -0
  36. package/css/es/components/EmbedIconButton/EmbedIconButton.config_1pj1kew.css +14 -0
  37. package/css/es/components/EmbedIconButton/EmbedIconButton.css +14 -0
  38. package/css/es/components/EmbedIconButton/EmbedIconButton.js +13 -0
  39. package/css/es/components/EmbedIconButton/EmbedIconButton.js.map +1 -0
  40. package/css/es/index.css +39 -24
  41. package/css/es/index.js +1 -0
  42. package/css/es/index.js.map +1 -1
  43. package/css/index.d.ts +2 -0
  44. package/es/components/Chip/Chip.config.js +8 -16
  45. package/es/components/ChipGroup/ChipGroup.config.js +8 -16
  46. package/es/components/EmbedIconButton/EmbedIconButton.config.js +278 -0
  47. package/es/components/EmbedIconButton/EmbedIconButton.js +7 -0
  48. package/es/components/EmbedIconButton/index.js +1 -0
  49. package/es/index.js +1 -0
  50. package/index.d.ts +1 -0
  51. package/index.js +1 -0
  52. package/package.json +5 -5
package/css/index.d.ts CHANGED
@@ -24,6 +24,7 @@ export * from '../components/Drawer';
24
24
  export * from '../components/Dropdown';
25
25
  export * from '../components/Dropzone';
26
26
  export * from '../components/Editable';
27
+ export * from '../components/EmbedIconButton';
27
28
  export * from '../components/EmptyState';
28
29
  export * from '../components/Flow';
29
30
  export * from '../components/Grid';
@@ -97,6 +98,7 @@ export * from '../components/Drawer';
97
98
  export * from '../components/Dropdown';
98
99
  export * from '../components/Dropzone';
99
100
  export * from '../components/Editable';
101
+ export * from '../components/EmbedIconButton';
100
102
  export * from '../components/EmptyState';
101
103
  export * from '../components/Flow';
102
104
  export * from '../components/Grid';
@@ -170,9 +170,7 @@ function _templateObject7() {
170
170
  ": -0.125rem;\n ",
171
171
  ": 0.5rem;\n ",
172
172
  ": 0.625rem;\n ",
173
- ": -0.25rem;\n\n ",
174
- ": 1.02;\n ",
175
- ": 0.98;\n\n ",
173
+ ": -0.25rem;\n ",
176
174
  ": 1.5rem;\n "
177
175
  ]);
178
176
  _templateObject7 = function _templateObject() {
@@ -197,9 +195,7 @@ function _templateObject8() {
197
195
  ": -0.125rem;\n ",
198
196
  ": 0.375rem;\n ",
199
197
  ": 0.5rem;\n ",
200
- ": -0.25rem;\n\n ",
201
- ": 1.02;\n ",
202
- ": 0.98;\n\n ",
198
+ ": -0.25rem;\n ",
203
199
  ": 1.25rem;\n "
204
200
  ]);
205
201
  _templateObject8 = function _templateObject() {
@@ -224,9 +220,7 @@ function _templateObject9() {
224
220
  ": -0.125rem;\n ",
225
221
  ": 0.25rem;\n ",
226
222
  ": 0.375rem;\n ",
227
- ": -0.25rem;\n\n ",
228
- ": 1.02;\n ",
229
- ": 0.98;\n\n ",
223
+ ": -0.25rem;\n ",
230
224
  ": 1rem;\n "
231
225
  ]);
232
226
  _templateObject9 = function _templateObject() {
@@ -251,9 +245,7 @@ function _templateObject10() {
251
245
  ": -0.125rem;\n ",
252
246
  ": 0.25rem;\n ",
253
247
  ": 0.25rem;\n ",
254
- ": -0.25rem;\n\n ",
255
- ": 1.02;\n ",
256
- ": 0.98;\n\n ",
248
+ ": -0.25rem;\n ",
257
249
  ": 0.75rem;\n "
258
250
  ]);
259
251
  _templateObject10 = function _templateObject() {
@@ -311,10 +303,10 @@ export var config = {
311
303
  negative: css(_templateObject6(), chipTokens.color, chipTokens.background, chipTokens.colorHover, chipTokens.backgroundHover, chipTokens.colorActive, chipTokens.backgroundActive, chipTokens.backgroundReadOnly, chipTokens.colorReadOnly, chipTokens.backgroundReadOnlyHover, chipTokens.colorReadOnlyHover, chipTokens.closeIconColor, chipTokens.leftContentColor)
312
304
  },
313
305
  size: {
314
- l: css(_templateObject7(), chipTokens.borderRadius, chipTokens.pilledBorderRadius, chipTokens.width, chipTokens.height, chipTokens.padding, chipTokens.fontFamily, chipTokens.fontSize, chipTokens.fontStyle, chipTokens.fontWeight, chipTokens.letterSpacing, chipTokens.lineHeight, chipTokens.leftContentMarginLeft, chipTokens.leftContentMarginRight, chipTokens.clearContentMarginLeft, chipTokens.clearContentMarginRight, chipTokens.scaleHover, chipTokens.scaleActive, chipTokens.closeIconSize),
315
- m: css(_templateObject8(), chipTokens.borderRadius, chipTokens.pilledBorderRadius, chipTokens.width, chipTokens.height, chipTokens.padding, chipTokens.fontFamily, chipTokens.fontSize, chipTokens.fontStyle, chipTokens.fontWeight, chipTokens.letterSpacing, chipTokens.lineHeight, chipTokens.leftContentMarginLeft, chipTokens.leftContentMarginRight, chipTokens.clearContentMarginLeft, chipTokens.clearContentMarginRight, chipTokens.scaleHover, chipTokens.scaleActive, chipTokens.closeIconSize),
316
- s: css(_templateObject9(), chipTokens.borderRadius, chipTokens.pilledBorderRadius, chipTokens.width, chipTokens.height, chipTokens.padding, chipTokens.fontFamily, chipTokens.fontSize, chipTokens.fontStyle, chipTokens.fontWeight, chipTokens.letterSpacing, chipTokens.lineHeight, chipTokens.leftContentMarginLeft, chipTokens.leftContentMarginRight, chipTokens.clearContentMarginLeft, chipTokens.clearContentMarginRight, chipTokens.scaleHover, chipTokens.scaleActive, chipTokens.closeIconSize),
317
- xs: css(_templateObject10(), chipTokens.borderRadius, chipTokens.pilledBorderRadius, chipTokens.width, chipTokens.height, chipTokens.padding, chipTokens.fontFamily, chipTokens.fontSize, chipTokens.fontStyle, chipTokens.fontWeight, chipTokens.letterSpacing, chipTokens.lineHeight, chipTokens.leftContentMarginLeft, chipTokens.leftContentMarginRight, chipTokens.clearContentMarginLeft, chipTokens.clearContentMarginRight, chipTokens.scaleHover, chipTokens.scaleActive, chipTokens.closeIconSize)
306
+ l: css(_templateObject7(), chipTokens.borderRadius, chipTokens.pilledBorderRadius, chipTokens.width, chipTokens.height, chipTokens.padding, chipTokens.fontFamily, chipTokens.fontSize, chipTokens.fontStyle, chipTokens.fontWeight, chipTokens.letterSpacing, chipTokens.lineHeight, chipTokens.leftContentMarginLeft, chipTokens.leftContentMarginRight, chipTokens.clearContentMarginLeft, chipTokens.clearContentMarginRight, chipTokens.closeIconSize),
307
+ m: css(_templateObject8(), chipTokens.borderRadius, chipTokens.pilledBorderRadius, chipTokens.width, chipTokens.height, chipTokens.padding, chipTokens.fontFamily, chipTokens.fontSize, chipTokens.fontStyle, chipTokens.fontWeight, chipTokens.letterSpacing, chipTokens.lineHeight, chipTokens.leftContentMarginLeft, chipTokens.leftContentMarginRight, chipTokens.clearContentMarginLeft, chipTokens.clearContentMarginRight, chipTokens.closeIconSize),
308
+ s: css(_templateObject9(), chipTokens.borderRadius, chipTokens.pilledBorderRadius, chipTokens.width, chipTokens.height, chipTokens.padding, chipTokens.fontFamily, chipTokens.fontSize, chipTokens.fontStyle, chipTokens.fontWeight, chipTokens.letterSpacing, chipTokens.lineHeight, chipTokens.leftContentMarginLeft, chipTokens.leftContentMarginRight, chipTokens.clearContentMarginLeft, chipTokens.clearContentMarginRight, chipTokens.closeIconSize),
309
+ xs: css(_templateObject10(), chipTokens.borderRadius, chipTokens.pilledBorderRadius, chipTokens.width, chipTokens.height, chipTokens.padding, chipTokens.fontFamily, chipTokens.fontSize, chipTokens.fontStyle, chipTokens.fontWeight, chipTokens.letterSpacing, chipTokens.lineHeight, chipTokens.leftContentMarginLeft, chipTokens.leftContentMarginRight, chipTokens.clearContentMarginLeft, chipTokens.clearContentMarginRight, chipTokens.closeIconSize)
318
310
  },
319
311
  disabled: {
320
312
  true: css(_templateObject11(), chipTokens.disabledOpacity)
@@ -69,9 +69,7 @@ function _templateObject3() {
69
69
  ": -0.125rem;\n ",
70
70
  ": 0.5rem;\n ",
71
71
  ": 0.625rem;\n ",
72
- ": -0.25rem;\n\n ",
73
- ": 1.02;\n ",
74
- ": 0.98;\n\n ",
72
+ ": -0.25rem;\n ",
75
73
  ": 1.5rem;\n "
76
74
  ]);
77
75
  _templateObject3 = function _templateObject() {
@@ -95,9 +93,7 @@ function _templateObject4() {
95
93
  ": -0.125rem;\n ",
96
94
  ": 0.375rem;\n ",
97
95
  ": 0.5rem;\n ",
98
- ": -0.25rem;\n\n ",
99
- ": 1.02;\n ",
100
- ": 0.98;\n\n ",
96
+ ": -0.25rem;\n ",
101
97
  ": 1rem;\n "
102
98
  ]);
103
99
  _templateObject4 = function _templateObject() {
@@ -121,9 +117,7 @@ function _templateObject5() {
121
117
  ": -0.125rem;\n ",
122
118
  ": 0.25rem;\n ",
123
119
  ": 0.375rem;\n ",
124
- ": -0.25rem;\n\n ",
125
- ": 1.02;\n ",
126
- ": 0.98;\n\n ",
120
+ ": -0.25rem;\n ",
127
121
  ": 1rem;\n "
128
122
  ]);
129
123
  _templateObject5 = function _templateObject() {
@@ -147,9 +141,7 @@ function _templateObject6() {
147
141
  ": -0.125rem;\n ",
148
142
  ": 0.25rem;\n ",
149
143
  ": 0.25rem;\n ",
150
- ": -0.25rem;\n\n ",
151
- ": 1.02;\n ",
152
- ": 0.98;\n\n ",
144
+ ": -0.25rem;\n ",
153
145
  ": 1rem;\n "
154
146
  ]);
155
147
  _templateObject6 = function _templateObject() {
@@ -190,10 +182,10 @@ export var config = {
190
182
  accent: css(_templateObject2(), tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive)
191
183
  },
192
184
  size: {
193
- l: css(_templateObject3(), tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPadding, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight, tokens.chipLeftContentMarginLeft, tokens.chipLeftContentMarginRight, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipScaleHover, tokens.chipScaleActive, tokens.chipCloseIconSize),
194
- m: css(_templateObject4(), tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPadding, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight, tokens.chipLeftContentMarginLeft, tokens.chipLeftContentMarginRight, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipScaleHover, tokens.chipScaleActive, tokens.chipCloseIconSize),
195
- s: css(_templateObject5(), tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPadding, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight, tokens.chipLeftContentMarginLeft, tokens.chipLeftContentMarginRight, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipScaleHover, tokens.chipScaleActive, tokens.chipCloseIconSize),
196
- xs: css(_templateObject6(), tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPadding, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight, tokens.chipLeftContentMarginLeft, tokens.chipLeftContentMarginRight, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipScaleHover, tokens.chipScaleActive, tokens.chipCloseIconSize)
185
+ l: css(_templateObject3(), tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPadding, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight, tokens.chipLeftContentMarginLeft, tokens.chipLeftContentMarginRight, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize),
186
+ m: css(_templateObject4(), tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPadding, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight, tokens.chipLeftContentMarginLeft, tokens.chipLeftContentMarginRight, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize),
187
+ s: css(_templateObject5(), tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPadding, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight, tokens.chipLeftContentMarginLeft, tokens.chipLeftContentMarginRight, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize),
188
+ xs: css(_templateObject6(), tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPadding, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight, tokens.chipLeftContentMarginLeft, tokens.chipLeftContentMarginRight, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize)
197
189
  },
198
190
  gap: {
199
191
  dense: css(_templateObject7(), tokens.chipGroupItemsGap),
@@ -0,0 +1,278 @@
1
+ function _tagged_template_literal(strings, raw) {
2
+ if (!raw) {
3
+ raw = strings.slice(0);
4
+ }
5
+ return Object.freeze(Object.defineProperties(strings, {
6
+ raw: {
7
+ value: Object.freeze(raw)
8
+ }
9
+ }));
10
+ }
11
+ function _templateObject() {
12
+ var data = _tagged_template_literal([
13
+ "\n ",
14
+ ": var(--text-primary);\n ",
15
+ ": var(--surface-transparent-clear);\n ",
16
+ ": var(",
17
+ ");\n ",
18
+ ": var(--text-primary-hover);\n ",
19
+ ": var(--text-primary-active);\n "
20
+ ]);
21
+ _templateObject = function _templateObject() {
22
+ return data;
23
+ };
24
+ return data;
25
+ }
26
+ function _templateObject1() {
27
+ var data = _tagged_template_literal([
28
+ "\n ",
29
+ ": var(--text-accent);\n ",
30
+ ": var(--surface-transparent-clear);\n ",
31
+ ": var(",
32
+ ");\n ",
33
+ ": var(--text-accent-hover);\n ",
34
+ ": var(--text-accent-active);\n "
35
+ ]);
36
+ _templateObject1 = function _templateObject() {
37
+ return data;
38
+ };
39
+ return data;
40
+ }
41
+ function _templateObject2() {
42
+ var data = _tagged_template_literal([
43
+ "\n ",
44
+ ": var(--text-secondary);\n ",
45
+ ": var(--surface-transparent-clear);\n ",
46
+ ": var(",
47
+ ");\n ",
48
+ ": var(--text-secondary-hover);\n ",
49
+ ": var(--text-secondary-active);\n "
50
+ ]);
51
+ _templateObject2 = function _templateObject() {
52
+ return data;
53
+ };
54
+ return data;
55
+ }
56
+ function _templateObject3() {
57
+ var data = _tagged_template_literal([
58
+ "\n ",
59
+ ": var(--text-positive);\n ",
60
+ ": var(--surface-transparent-clear);\n ",
61
+ ": var(",
62
+ ");\n ",
63
+ ": var(--text-positive-hover);\n ",
64
+ ": var(--text-positive-active);\n "
65
+ ]);
66
+ _templateObject3 = function _templateObject() {
67
+ return data;
68
+ };
69
+ return data;
70
+ }
71
+ function _templateObject4() {
72
+ var data = _tagged_template_literal([
73
+ "\n ",
74
+ ": var(--text-warning);\n ",
75
+ ": var(--surface-transparent-clear);\n ",
76
+ ": var(",
77
+ ");\n ",
78
+ ": var(--text-warning-hover);\n ",
79
+ ": var(--text-warning-active);\n "
80
+ ]);
81
+ _templateObject4 = function _templateObject() {
82
+ return data;
83
+ };
84
+ return data;
85
+ }
86
+ function _templateObject5() {
87
+ var data = _tagged_template_literal([
88
+ "\n ",
89
+ ": var(--text-negative);\n ",
90
+ ": var(--surface-transparent-clear);\n ",
91
+ ": var(",
92
+ ");\n ",
93
+ ": var(--text-negative-hover);\n ",
94
+ ": var(--text-negative-active);\n "
95
+ ]);
96
+ _templateObject5 = function _templateObject() {
97
+ return data;
98
+ };
99
+ return data;
100
+ }
101
+ function _templateObject6() {
102
+ var data = _tagged_template_literal([
103
+ "\n ",
104
+ ": 4rem;\n ",
105
+ ": 4rem;\n ",
106
+ ": 1.75rem;\n ",
107
+ ": 1rem;\n ",
108
+ ": var(--plasma-typo-body-l-font-family);\n ",
109
+ ": var(--plasma-typo-body-l-font-size);\n ",
110
+ ": var(--plasma-typo-body-l-font-style);\n ",
111
+ ": var(--plasma-typo-body-l-bold-font-weight);\n ",
112
+ ": var(--plasma-typo-body-l-letter-spacing);\n ",
113
+ ": var(--plasma-typo-body-l-line-height);\n\n ",
114
+ ": 1.5rem;\n ",
115
+ ": inherit;\n "
116
+ ]);
117
+ _templateObject6 = function _templateObject() {
118
+ return data;
119
+ };
120
+ return data;
121
+ }
122
+ function _templateObject7() {
123
+ var data = _tagged_template_literal([
124
+ "\n ",
125
+ ": 3.5rem;\n ",
126
+ ": 3.5rem;\n ",
127
+ ": 1.5rem;\n ",
128
+ ": 0.875rem;\n ",
129
+ ": var(--plasma-typo-body-l-font-family);\n ",
130
+ ": var(--plasma-typo-body-l-font-size);\n ",
131
+ ": var(--plasma-typo-body-l-font-style);\n ",
132
+ ": var(--plasma-typo-body-l-bold-font-weight);\n ",
133
+ ": var(--plasma-typo-body-l-letter-spacing);\n ",
134
+ ": var(--plasma-typo-body-l-line-height);\n\n ",
135
+ ": 1.5rem;\n ",
136
+ ": inherit;\n "
137
+ ]);
138
+ _templateObject7 = function _templateObject() {
139
+ return data;
140
+ };
141
+ return data;
142
+ }
143
+ function _templateObject8() {
144
+ var data = _tagged_template_literal([
145
+ "\n ",
146
+ ": 3rem;\n ",
147
+ ": 3rem;\n ",
148
+ ": 1.25rem;\n ",
149
+ ": 0.75rem;\n ",
150
+ ": var(--plasma-typo-body-m-font-family);\n ",
151
+ ": var(--plasma-typo-body-m-font-size);\n ",
152
+ ": var(--plasma-typo-body-m-font-style);\n ",
153
+ ": var(--plasma-typo-body-m-bold-font-weight);\n ",
154
+ ": var(--plasma-typo-body-m-letter-spacing);\n ",
155
+ ": var(--plasma-typo-body-m-line-height);\n\n ",
156
+ ": 1.5rem;\n ",
157
+ ": inherit;\n "
158
+ ]);
159
+ _templateObject8 = function _templateObject() {
160
+ return data;
161
+ };
162
+ return data;
163
+ }
164
+ function _templateObject9() {
165
+ var data = _tagged_template_literal([
166
+ "\n ",
167
+ ": 2.5rem;\n ",
168
+ ": 2.5rem;\n ",
169
+ ": 1rem;\n ",
170
+ ": 0.625rem;\n ",
171
+ ": var(--plasma-typo-body-s-font-family);\n ",
172
+ ": var(--plasma-typo-body-s-font-size);\n ",
173
+ ": var(--plasma-typo-body-s-font-style);\n ",
174
+ ": var(--plasma-typo-body-s-bold-font-weight);\n ",
175
+ ": var(--plasma-typo-body-s-letter-spacing);\n ",
176
+ ": var(--plasma-typo-body-s-line-height);\n\n ",
177
+ ": 1.5rem;\n ",
178
+ ": inherit;\n "
179
+ ]);
180
+ _templateObject9 = function _templateObject() {
181
+ return data;
182
+ };
183
+ return data;
184
+ }
185
+ function _templateObject10() {
186
+ var data = _tagged_template_literal([
187
+ "\n ",
188
+ ": 2rem;\n ",
189
+ ": 2rem;\n ",
190
+ ": 0.75rem;\n ",
191
+ ": 0.5rem;\n ",
192
+ ": var(--plasma-typo-body-xs-font-family);\n ",
193
+ ": var(--plasma-typo-body-xs-font-size);\n ",
194
+ ": var(--plasma-typo-body-xs-font-style);\n ",
195
+ ": var(--plasma-typo-body-xs-bold-font-weight);\n ",
196
+ ": var(--plasma-typo-body-xs-letter-spacing);\n ",
197
+ ": var(--plasma-typo-body-xs-line-height);\n\n ",
198
+ ": 1rem;\n ",
199
+ ": inherit;\n "
200
+ ]);
201
+ _templateObject10 = function _templateObject() {
202
+ return data;
203
+ };
204
+ return data;
205
+ }
206
+ function _templateObject11() {
207
+ var data = _tagged_template_literal([
208
+ "\n ",
209
+ ": 1.5rem;\n ",
210
+ ": 1.5rem;\n ",
211
+ ": 0.5rem;\n ",
212
+ ": 0.375rem;\n ",
213
+ ": var(--plasma-typo-body-xs-font-family);\n ",
214
+ ": var(--plasma-typo-body-xs-font-size);\n ",
215
+ ": var(--plasma-typo-body-xs-font-style);\n ",
216
+ ": var(--plasma-typo-body-xs-bold-font-weight);\n ",
217
+ ": var(--plasma-typo-body-xs-letter-spacing);\n ",
218
+ ": var(--plasma-typo-body-xs-line-height);\n\n ",
219
+ ": 1rem;\n ",
220
+ ": inherit;\n "
221
+ ]);
222
+ _templateObject11 = function _templateObject() {
223
+ return data;
224
+ };
225
+ return data;
226
+ }
227
+ function _templateObject12() {
228
+ var data = _tagged_template_literal([
229
+ "\n ",
230
+ ": 0.4;\n "
231
+ ]);
232
+ _templateObject12 = function _templateObject() {
233
+ return data;
234
+ };
235
+ return data;
236
+ }
237
+ function _templateObject13() {
238
+ var data = _tagged_template_literal([
239
+ "\n ",
240
+ ": var(--surface-accent);\n "
241
+ ]);
242
+ _templateObject13 = function _templateObject() {
243
+ return data;
244
+ };
245
+ return data;
246
+ }
247
+ import { css, embedIconButtonTokens } from '@salutejs/plasma-new-hope/styled-components';
248
+ export var config = {
249
+ defaults: {
250
+ view: 'default',
251
+ focused: 'true',
252
+ size: 'm'
253
+ },
254
+ variations: {
255
+ view: {
256
+ default: css(_templateObject(), embedIconButtonTokens.embedIconButtonColor, embedIconButtonTokens.embedIconButtonBackgroundColor, embedIconButtonTokens.embedIconButtonLoadingBackgroundColor, embedIconButtonTokens.embedIconButtonBackgroundColor, embedIconButtonTokens.embedIconButtonColorHover, embedIconButtonTokens.embedIconButtonColorActive),
257
+ accent: css(_templateObject1(), embedIconButtonTokens.embedIconButtonColor, embedIconButtonTokens.embedIconButtonBackgroundColor, embedIconButtonTokens.embedIconButtonLoadingBackgroundColor, embedIconButtonTokens.embedIconButtonBackgroundColor, embedIconButtonTokens.embedIconButtonColorHover, embedIconButtonTokens.embedIconButtonColorActive),
258
+ secondary: css(_templateObject2(), embedIconButtonTokens.embedIconButtonColor, embedIconButtonTokens.embedIconButtonBackgroundColor, embedIconButtonTokens.embedIconButtonLoadingBackgroundColor, embedIconButtonTokens.embedIconButtonBackgroundColor, embedIconButtonTokens.embedIconButtonColorHover, embedIconButtonTokens.embedIconButtonColorActive),
259
+ positive: css(_templateObject3(), embedIconButtonTokens.embedIconButtonColor, embedIconButtonTokens.embedIconButtonBackgroundColor, embedIconButtonTokens.embedIconButtonLoadingBackgroundColor, embedIconButtonTokens.embedIconButtonBackgroundColor, embedIconButtonTokens.embedIconButtonColorHover, embedIconButtonTokens.embedIconButtonColorActive),
260
+ warning: css(_templateObject4(), embedIconButtonTokens.embedIconButtonColor, embedIconButtonTokens.embedIconButtonBackgroundColor, embedIconButtonTokens.embedIconButtonLoadingBackgroundColor, embedIconButtonTokens.embedIconButtonBackgroundColor, embedIconButtonTokens.embedIconButtonColorHover, embedIconButtonTokens.embedIconButtonColorActive),
261
+ negative: css(_templateObject5(), embedIconButtonTokens.embedIconButtonColor, embedIconButtonTokens.embedIconButtonBackgroundColor, embedIconButtonTokens.embedIconButtonLoadingBackgroundColor, embedIconButtonTokens.embedIconButtonBackgroundColor, embedIconButtonTokens.embedIconButtonColorHover, embedIconButtonTokens.embedIconButtonColorActive)
262
+ },
263
+ size: {
264
+ xl: css(_templateObject6(), embedIconButtonTokens.embedIconButtonHeight, embedIconButtonTokens.embedIconButtonWidth, embedIconButtonTokens.embedIconButtonPadding, embedIconButtonTokens.embedIconButtonRadius, embedIconButtonTokens.embedIconButtonFontFamily, embedIconButtonTokens.embedIconButtonFontSize, embedIconButtonTokens.embedIconButtonFontStyle, embedIconButtonTokens.embedIconButtonFontWeight, embedIconButtonTokens.embedIconButtonLetterSpacing, embedIconButtonTokens.embedIconButtonLineHeight, embedIconButtonTokens.embedIconButtonSpinnerSize, embedIconButtonTokens.embedIconButtonSpinnerColor),
265
+ l: css(_templateObject7(), embedIconButtonTokens.embedIconButtonHeight, embedIconButtonTokens.embedIconButtonWidth, embedIconButtonTokens.embedIconButtonPadding, embedIconButtonTokens.embedIconButtonRadius, embedIconButtonTokens.embedIconButtonFontFamily, embedIconButtonTokens.embedIconButtonFontSize, embedIconButtonTokens.embedIconButtonFontStyle, embedIconButtonTokens.embedIconButtonFontWeight, embedIconButtonTokens.embedIconButtonLetterSpacing, embedIconButtonTokens.embedIconButtonLineHeight, embedIconButtonTokens.embedIconButtonSpinnerSize, embedIconButtonTokens.embedIconButtonSpinnerColor),
266
+ m: css(_templateObject8(), embedIconButtonTokens.embedIconButtonHeight, embedIconButtonTokens.embedIconButtonWidth, embedIconButtonTokens.embedIconButtonPadding, embedIconButtonTokens.embedIconButtonRadius, embedIconButtonTokens.embedIconButtonFontFamily, embedIconButtonTokens.embedIconButtonFontSize, embedIconButtonTokens.embedIconButtonFontStyle, embedIconButtonTokens.embedIconButtonFontWeight, embedIconButtonTokens.embedIconButtonLetterSpacing, embedIconButtonTokens.embedIconButtonLineHeight, embedIconButtonTokens.embedIconButtonSpinnerSize, embedIconButtonTokens.embedIconButtonSpinnerColor),
267
+ s: css(_templateObject9(), embedIconButtonTokens.embedIconButtonHeight, embedIconButtonTokens.embedIconButtonWidth, embedIconButtonTokens.embedIconButtonPadding, embedIconButtonTokens.embedIconButtonRadius, embedIconButtonTokens.embedIconButtonFontFamily, embedIconButtonTokens.embedIconButtonFontSize, embedIconButtonTokens.embedIconButtonFontStyle, embedIconButtonTokens.embedIconButtonFontWeight, embedIconButtonTokens.embedIconButtonLetterSpacing, embedIconButtonTokens.embedIconButtonLineHeight, embedIconButtonTokens.embedIconButtonSpinnerSize, embedIconButtonTokens.embedIconButtonSpinnerColor),
268
+ xs: css(_templateObject10(), embedIconButtonTokens.embedIconButtonHeight, embedIconButtonTokens.embedIconButtonWidth, embedIconButtonTokens.embedIconButtonPadding, embedIconButtonTokens.embedIconButtonRadius, embedIconButtonTokens.embedIconButtonFontFamily, embedIconButtonTokens.embedIconButtonFontSize, embedIconButtonTokens.embedIconButtonFontStyle, embedIconButtonTokens.embedIconButtonFontWeight, embedIconButtonTokens.embedIconButtonLetterSpacing, embedIconButtonTokens.embedIconButtonLineHeight, embedIconButtonTokens.embedIconButtonSpinnerSize, embedIconButtonTokens.embedIconButtonSpinnerColor),
269
+ xxs: css(_templateObject11(), embedIconButtonTokens.embedIconButtonHeight, embedIconButtonTokens.embedIconButtonWidth, embedIconButtonTokens.embedIconButtonPadding, embedIconButtonTokens.embedIconButtonRadius, embedIconButtonTokens.embedIconButtonFontFamily, embedIconButtonTokens.embedIconButtonFontSize, embedIconButtonTokens.embedIconButtonFontStyle, embedIconButtonTokens.embedIconButtonFontWeight, embedIconButtonTokens.embedIconButtonLetterSpacing, embedIconButtonTokens.embedIconButtonLineHeight, embedIconButtonTokens.embedIconButtonSpinnerSize, embedIconButtonTokens.embedIconButtonSpinnerColor)
270
+ },
271
+ disabled: {
272
+ true: css(_templateObject12(), embedIconButtonTokens.embedIconButtonDisabledOpacity)
273
+ },
274
+ focused: {
275
+ true: css(_templateObject13(), embedIconButtonTokens.embedIconButtonFocusColor)
276
+ }
277
+ }
278
+ };
@@ -0,0 +1,7 @@
1
+ import { embedIconButtonConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/styled-components';
2
+ import { config } from './EmbedIconButton.config';
3
+ var mergedConfig = mergeConfig(embedIconButtonConfig, config);
4
+ var EmbedIconButtonComponent = component(mergedConfig);
5
+ /**
6
+ * Кнопка с иконкой.
7
+ */ export var EmbedIconButton = EmbedIconButtonComponent;
@@ -0,0 +1 @@
1
+ export { EmbedIconButton } from './EmbedIconButton';
package/es/index.js CHANGED
@@ -84,3 +84,4 @@ export * from './components/Table';
84
84
  export * from './components/CodeField';
85
85
  export * from './components/CodeInput';
86
86
  export * from './components/Tour';
87
+ export * from './components/EmbedIconButton';
package/index.d.ts CHANGED
@@ -84,3 +84,4 @@ export * from './components/Table';
84
84
  export * from './components/CodeField';
85
85
  export * from './components/CodeInput';
86
86
  export * from './components/Tour';
87
+ export * from './components/EmbedIconButton';
package/index.js CHANGED
@@ -88,6 +88,7 @@ _export_star(require("./components/Table"), exports);
88
88
  _export_star(require("./components/CodeField"), exports);
89
89
  _export_star(require("./components/CodeInput"), exports);
90
90
  _export_star(require("./components/Tour"), exports);
91
+ _export_star(require("./components/EmbedIconButton"), exports);
91
92
  function _export_star(from, to) {
92
93
  Object.keys(from).forEach(function(k) {
93
94
  if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/plasma-web",
3
- "version": "1.588.0-canary.2093.16416009316.0",
3
+ "version": "1.588.0-canary.2093.16456870327.0",
4
4
  "description": "Salute Design System / React UI kit for web applications",
5
5
  "author": "Salute Frontend Team <salute.developers@gmail.com>",
6
6
  "license": "MIT",
@@ -20,8 +20,8 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@salutejs/plasma-core": "1.201.0",
23
- "@salutejs/plasma-hope": "1.347.0-canary.2093.16416009316.0",
24
- "@salutejs/plasma-new-hope": "0.330.0-canary.2093.16416009316.0",
23
+ "@salutejs/plasma-hope": "1.347.0-canary.2093.16456870327.0",
24
+ "@salutejs/plasma-new-hope": "0.330.0-canary.2093.16456870327.0",
25
25
  "@salutejs/plasma-themes": "0.34.0",
26
26
  "@salutejs/plasma-tokens-b2b": "1.50.0",
27
27
  "@salutejs/plasma-tokens-b2c": "0.61.0",
@@ -50,7 +50,7 @@
50
50
  "@rollup/plugin-node-resolve": "15.2.3",
51
51
  "@salutejs/plasma-colors": "0.15.0",
52
52
  "@salutejs/plasma-cy-utils": "0.132.0",
53
- "@salutejs/plasma-icons": "1.221.0-canary.2093.16416009316.0",
53
+ "@salutejs/plasma-icons": "1.221.0-canary.2093.16456870327.0",
54
54
  "@salutejs/plasma-sb-utils": "0.202.0",
55
55
  "@storybook/addon-docs": "7.6.17",
56
56
  "@storybook/addon-essentials": "7.6.17",
@@ -111,5 +111,5 @@
111
111
  "Fanil Zubairov"
112
112
  ],
113
113
  "sideEffects": false,
114
- "gitHead": "2b188b14a330cf5aa2db5108f6cd01ab076e3da0"
114
+ "gitHead": "dee6300819f365d25cfd2bb22ee0a826eaf17099"
115
115
  }