@volverjs/style 0.1.2-beta.3 → 0.1.2-beta.30

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 (188) hide show
  1. package/README.md +40 -40
  2. package/dist/components/vv-accordion.css +1 -0
  3. package/dist/components/vv-alert.css +1 -0
  4. package/dist/components/vv-avatar.css +1 -0
  5. package/dist/components/vv-badge.css +1 -1
  6. package/dist/components/vv-breadcrumb.css +1 -0
  7. package/dist/components/vv-button-group.css +1 -1
  8. package/dist/components/vv-button.css +1 -1
  9. package/dist/components/vv-card.css +1 -1
  10. package/dist/components/vv-checkbox-group.css +1 -0
  11. package/dist/components/vv-checkbox.css +1 -0
  12. package/dist/components/vv-dialog.css +1 -1
  13. package/dist/components/vv-dropdown.css +1 -1
  14. package/dist/components/vv-input-text.css +1 -1
  15. package/dist/components/vv-nav.css +1 -0
  16. package/dist/components/vv-progress.css +1 -1
  17. package/dist/components/vv-radio-group.css +1 -0
  18. package/dist/components/vv-radio.css +1 -0
  19. package/dist/components/vv-select.css +1 -1
  20. package/dist/components/vv-skeleton.css +1 -0
  21. package/dist/components/vv-tab.css +1 -0
  22. package/dist/components/vv-table.css +1 -1
  23. package/dist/components/vv-text.css +1 -1
  24. package/dist/components/vv-textarea.css +1 -1
  25. package/dist/components/vv-toast.css +1 -0
  26. package/dist/components/vv-tooltip.css +1 -0
  27. package/dist/components.css +1 -1
  28. package/dist/export.css +1 -1
  29. package/dist/props/background.css +1 -1
  30. package/dist/props/colors.css +1 -1
  31. package/dist/props/filters.css +1 -1
  32. package/dist/props/input.css +1 -1
  33. package/dist/props/spacing.css +1 -1
  34. package/dist/props/transitions.css +1 -0
  35. package/dist/props.css +1 -1
  36. package/dist/reset.css +1 -1
  37. package/dist/themes/dark/components.css +1 -1
  38. package/dist/themes/dark/props.css +1 -1
  39. package/dist/themes/dark/volver.css +1 -0
  40. package/dist/utilities/backgrounds.css +1 -1
  41. package/dist/utilities/borders.css +1 -1
  42. package/dist/utilities/colors.css +1 -1
  43. package/dist/utilities/effects.css +1 -1
  44. package/dist/utilities/filters.css +1 -1
  45. package/dist/utilities/flexbox.css +1 -1
  46. package/dist/utilities/grid.css +1 -1
  47. package/dist/utilities/interactivity.css +1 -0
  48. package/dist/utilities/layout.css +1 -1
  49. package/dist/utilities/sizing.css +1 -1
  50. package/dist/utilities/spacing.css +1 -1
  51. package/dist/utilities/transitions.css +1 -0
  52. package/dist/utilities/typography.css +1 -1
  53. package/dist/utilities.css +1 -1
  54. package/dist/volver.css +1 -0
  55. package/package.json +163 -118
  56. package/src/_config.scss +19 -11
  57. package/src/_context.scss +3 -3
  58. package/src/_preflight.scss +412 -0
  59. package/src/components/index.scss +25 -17
  60. package/src/components/vv-accordion.scss +13 -0
  61. package/src/components/vv-alert.scss +13 -0
  62. package/src/components/vv-avatar.scss +13 -0
  63. package/src/components/vv-badge.scss +3 -2
  64. package/src/components/vv-breadcrumb.scss +13 -0
  65. package/src/components/vv-button-group.scss +15 -18
  66. package/src/components/vv-button.scss +5 -8
  67. package/src/components/vv-card.scss +3 -2
  68. package/src/components/vv-checkbox-group.scss +13 -0
  69. package/src/components/{vv-input-checkbox.scss → vv-checkbox.scss} +7 -6
  70. package/src/components/vv-dialog.scss +3 -2
  71. package/src/components/vv-dropdown.scss +3 -2
  72. package/src/components/vv-input-text.scss +6 -5
  73. package/src/components/vv-nav.scss +13 -0
  74. package/src/components/vv-progress.scss +3 -2
  75. package/src/components/vv-radio-group.scss +13 -0
  76. package/src/components/{vv-input-radio.scss → vv-radio.scss} +6 -5
  77. package/src/components/vv-select.scss +6 -5
  78. package/src/components/vv-skeleton.scss +14 -0
  79. package/src/components/vv-tab.scss +13 -0
  80. package/src/components/vv-table.scss +3 -2
  81. package/src/components/vv-text.scss +3 -2
  82. package/src/components/vv-textarea.scss +6 -5
  83. package/src/components/vv-toast.scss +13 -0
  84. package/src/components/vv-tooltip.scss +33 -0
  85. package/src/export.scss +62 -6
  86. package/src/props/background.scss +1 -1
  87. package/src/props/borders.scss +1 -1
  88. package/src/props/colors.scss +1 -1
  89. package/src/props/effects.scss +1 -1
  90. package/src/props/filters.scss +2 -1
  91. package/src/props/index.scss +12 -12
  92. package/src/props/input.scss +1 -1
  93. package/src/props/layout.scss +1 -1
  94. package/src/props/media.scss +1 -1
  95. package/src/props/sizing.scss +1 -1
  96. package/src/props/spacing.scss +2 -2
  97. package/src/props/{animation.scss → transitions.scss} +53 -2
  98. package/src/props/typography.scss +2 -2
  99. package/src/reset.scss +1 -1
  100. package/src/settings/_background.scss +6 -1
  101. package/src/settings/_breakpoints.scss +2 -0
  102. package/src/settings/_colors.scss +16 -2
  103. package/src/settings/_effects.scss +47 -2
  104. package/src/settings/_filters.scss +9 -0
  105. package/src/settings/_index.scss +40 -31
  106. package/src/settings/_input.scss +8 -6
  107. package/src/settings/_interactivity.scss +39 -0
  108. package/src/settings/_spacing.scss +1 -0
  109. package/src/settings/_transitions.scss +44 -0
  110. package/src/settings/components/_vv-accordion.scss +134 -0
  111. package/src/settings/components/_vv-alert.scss +161 -0
  112. package/src/settings/components/_vv-avatar.scss +55 -0
  113. package/src/settings/components/_vv-badge.scss +58 -18
  114. package/src/settings/components/_vv-breadcrumb.scss +95 -0
  115. package/src/settings/components/_vv-button-group.scss +4 -0
  116. package/src/settings/components/_vv-button.scss +121 -15
  117. package/src/settings/components/_vv-card.scss +4 -3
  118. package/src/settings/components/{_vv-input-checkbox-group.scss → _vv-checkbox-group.scss} +2 -1
  119. package/src/settings/components/{_vv-input-checkbox.scss → _vv-checkbox.scss} +46 -10
  120. package/src/settings/components/_vv-dialog.scss +71 -89
  121. package/src/settings/components/_vv-input-text.scss +83 -37
  122. package/src/settings/components/_vv-nav.scss +142 -0
  123. package/src/settings/components/_vv-progress.scss +1 -1
  124. package/src/settings/components/_vv-radio-group.scss +3 -0
  125. package/src/settings/components/{_vv-input-radio.scss → _vv-radio.scss} +34 -4
  126. package/src/settings/components/_vv-select.scss +77 -12
  127. package/src/settings/components/_vv-skeleton.scss +22 -0
  128. package/src/settings/components/_vv-tab.scss +16 -0
  129. package/src/settings/components/_vv-table.scss +22 -3
  130. package/src/settings/components/_vv-text.scss +20 -1
  131. package/src/settings/components/_vv-textarea.scss +49 -24
  132. package/src/settings/components/_vv-toast.scss +259 -0
  133. package/src/settings/components/_vv-tooltip.scss +74 -0
  134. package/src/themes/dark/_context.scss +7 -4
  135. package/src/themes/dark/components/_vv-button.scss +3 -5
  136. package/src/themes/dark/components/index.scss +1 -2
  137. package/src/themes/dark/props/_background.scss +2 -2
  138. package/src/themes/dark/props/_colors.scss +2 -2
  139. package/src/themes/dark/props/_input.scss +15 -0
  140. package/src/themes/dark/props/index.scss +3 -2
  141. package/src/themes/dark/settings/_background.scss +9 -4
  142. package/src/themes/dark/settings/_colors.scss +25 -10
  143. package/src/themes/dark/settings/_index.scss +4 -4
  144. package/src/themes/dark/settings/_input.scss +8 -0
  145. package/src/themes/dark/settings/components/_vv-button.scss +10 -10
  146. package/src/themes/dark/volver.scss +5 -0
  147. package/src/tools/_breakpoints.scss +7 -7
  148. package/src/tools/_index.scss +3 -3
  149. package/src/tools/_mixins.scss +200 -37
  150. package/src/utilities/backgrounds.scss +15 -8
  151. package/src/utilities/borders.scss +22 -9
  152. package/src/utilities/colors.scss +9 -5
  153. package/src/utilities/effects.scss +23 -5
  154. package/src/utilities/filters.scss +15 -4
  155. package/src/utilities/flexbox.scss +26 -8
  156. package/src/utilities/grid.scss +25 -9
  157. package/src/utilities/index.scss +13 -12
  158. package/src/utilities/interactivity.scss +10 -0
  159. package/src/utilities/layout.scss +27 -14
  160. package/src/utilities/sizing.scss +23 -26
  161. package/src/utilities/spacing.scss +1 -1
  162. package/src/utilities/transitions.scss +47 -0
  163. package/src/utilities/typography.scss +34 -17
  164. package/src/volver.scss +14 -0
  165. package/dist/components/vv-collapse.css +0 -1
  166. package/dist/components/vv-input-checkbox-group.css +0 -1
  167. package/dist/components/vv-input-checkbox.css +0 -1
  168. package/dist/components/vv-input-radio-group.css +0 -1
  169. package/dist/components/vv-input-radio.css +0 -1
  170. package/dist/preflight.css +0 -1
  171. package/dist/props/animation.css +0 -1
  172. package/dist/style.css +0 -1
  173. package/dist/themes/dark/style.css +0 -1
  174. package/dist/utilities/animation.css +0 -1
  175. package/src/assets/24consulting.svg +0 -63
  176. package/src/assets/volverjs.svg +0 -15
  177. package/src/components/vv-collapse.scss +0 -12
  178. package/src/components/vv-input-checkbox-group.scss +0 -12
  179. package/src/components/vv-input-radio-group.scss +0 -12
  180. package/src/preflight.scss +0 -281
  181. package/src/settings/_animation.scss +0 -9
  182. package/src/settings/components/_vv-collapse.scss +0 -111
  183. package/src/settings/components/_vv-input-radio-group.scss +0 -1
  184. package/src/style.scss +0 -14
  185. package/src/themes/dark/components/_vv-input-checkbox.scss +0 -24
  186. package/src/themes/dark/settings/components/_vv-input-checkbox.scss +0 -26
  187. package/src/themes/dark/style.scss +0 -5
  188. package/src/utilities/animation.scss +0 -8
@@ -0,0 +1,412 @@
1
+ @use 'sass:map';
2
+ @use 'context' as *;
3
+
4
+ :where(:host, :root, .theme) {
5
+ accent-color: var(--color-brand);
6
+ background: var(--color-surface);
7
+ caret-color: var(--color-brand);
8
+ color-scheme: var(--color-scheme);
9
+ color: var(--color-word);
10
+ scrollbar-color: var(--color-brand);
11
+ font-family: var(--font-sans);
12
+ }
13
+
14
+ :where(.preflight) {
15
+ :not(.preflight-revert *) {
16
+ // typography
17
+ &:where(h1, h2, h3, h4, h5, h6) {
18
+ @extend %vv-text !optional;
19
+ @extend %vv-text--headline !optional;
20
+ }
21
+
22
+ &:where(h1) {
23
+ @extend %vv-text--size-1 !optional;
24
+ }
25
+
26
+ &:where(h2) {
27
+ @extend %vv-text--size-2 !optional;
28
+ }
29
+
30
+ &:where(h3) {
31
+ @extend %vv-text--size-3 !optional;
32
+ }
33
+
34
+ &:where(h4) {
35
+ @extend %vv-text--size-4 !optional;
36
+ }
37
+
38
+ &:where(h5) {
39
+ @extend %vv-text--size-5 !optional;
40
+ }
41
+
42
+ &:where(h6) {
43
+ @extend %vv-text--size-6 !optional;
44
+ }
45
+
46
+ &:where(p) {
47
+ @extend %vv-text !optional;
48
+ @extend %vv-text--copy !optional;
49
+ }
50
+
51
+ &:where(blockquote) {
52
+ @extend %vv-text !optional;
53
+ @extend %vv-text--quote !optional;
54
+ }
55
+
56
+ &:where(ul, ol) {
57
+ @extend %list-inside !optional;
58
+ @extend %my-sm !optional;
59
+ @extend %pl-lg !optional;
60
+ }
61
+
62
+ &:where(ul) {
63
+ @extend %list-disc !optional;
64
+ }
65
+
66
+ &:where(ol) {
67
+ @extend %list-decimal !optional;
68
+ }
69
+
70
+ &:where(b, strong, th) {
71
+ @extend %font-bold !optional;
72
+ }
73
+
74
+ &:where(em, i, cite, dfn, var) {
75
+ @extend %italic !optional;
76
+ }
77
+
78
+ &:where(svg) {
79
+ @extend %align-middle !optional;
80
+ }
81
+
82
+ &:where(dfn, var) {
83
+ @extend %font-serif !optional;
84
+ }
85
+
86
+ &:where(del, s) {
87
+ @extend %line-through !optional;
88
+ }
89
+
90
+ &:where(ins, u, cite) {
91
+ @extend %underline !optional;
92
+ }
93
+
94
+ &:where(abbr) {
95
+ @extend %underline !optional;
96
+ @extend %decoration-dotted !optional;
97
+ }
98
+
99
+ &:where(code) {
100
+ @extend %font-mono !optional;
101
+ }
102
+
103
+ &:where(sub) {
104
+ @extend %align-sub !optional;
105
+ @extend %text-smaller !optional;
106
+ }
107
+
108
+ &:where(sup) {
109
+ @extend %align-super !optional;
110
+ @extend %text-smaller !optional;
111
+ }
112
+
113
+ &:where(q) {
114
+ @extend %font-serif !optional;
115
+ }
116
+
117
+ &:where(small) {
118
+ @extend %text-smaller !optional;
119
+ }
120
+
121
+ &:where(mark) {
122
+ @extend %bg-warning !optional;
123
+ }
124
+
125
+ &:where(pre) {
126
+ @extend %font-mono !optional;
127
+ @extend %whitespace-pre-line !optional;
128
+ }
129
+
130
+ &:where(dl) {
131
+ @extend %my-sm !optional;
132
+ }
133
+
134
+ &:where(dd) {
135
+ @extend %ml-sm !optional;
136
+ }
137
+
138
+ &:where(hr) {
139
+ @extend %my-lg !optional;
140
+ @extend %border !optional;
141
+ @extend %border-solid !optional;
142
+ @extend %border-surface-3 !optional;
143
+ }
144
+
145
+ // anchor
146
+ &:where(a:not(.#{map.get($components-names, vv-button)})) {
147
+ @extend %vv-text !optional;
148
+ @extend %vv-text--link !optional;
149
+
150
+ &:where(:hover) {
151
+ @extend %vv-button-modifier-link--hover !optional;
152
+ }
153
+
154
+ &:where(:focus) {
155
+ @extend %vv-button-modifier-link--focus !optional;
156
+ }
157
+
158
+ &:where(:focus-visible) {
159
+ @extend %vv-button-modifier-link--focus-visible !optional;
160
+ }
161
+
162
+ &:where(:visited) {
163
+ @extend %vv-button-modifier-link--visited !optional;
164
+ }
165
+
166
+ &:where(:active) {
167
+ @extend %vv-button-modifier-link--active !optional;
168
+ }
169
+ }
170
+
171
+ // buttons
172
+ &:where(
173
+ button,
174
+ input[type='button'],
175
+ input[type='submit'],
176
+ input[type='reset']
177
+ ) {
178
+ @extend %vv-button !optional;
179
+
180
+ &:where([type='button']) {
181
+ @extend %vv-button--primary !optional;
182
+ }
183
+
184
+ &:where([type='reset']) {
185
+ @extend %vv-button--secondary !optional;
186
+ }
187
+
188
+ &:where(:disabled) {
189
+ @extend %vv-button--disabled !optional;
190
+ }
191
+
192
+ &:where(:hover) {
193
+ @extend %vv-button--hover !optional;
194
+ }
195
+
196
+ &:where(:focus) {
197
+ @extend %vv-button--focus !optional;
198
+ }
199
+
200
+ &:where(:focus-visible) {
201
+ @extend %vv-button--focus-visible !optional;
202
+ }
203
+
204
+ &:where(:visited) {
205
+ @extend %vv-button--visited !optional;
206
+ }
207
+
208
+ &:where(:active) {
209
+ @extend %vv-button--active !optional;
210
+ }
211
+
212
+ &
213
+ + :where(
214
+ button,
215
+ input[type='button'],
216
+ input[type='submit'],
217
+ input[type='reset']
218
+ ) {
219
+ @extend %ml-sm !optional;
220
+ }
221
+ }
222
+
223
+ // table
224
+ &:where(table) {
225
+ @extend %vv-table !optional;
226
+
227
+ :where(tr) {
228
+ @extend %vv-table__tr !optional;
229
+ }
230
+
231
+ :where(td) {
232
+ @extend %vv-table__td !optional;
233
+ }
234
+
235
+ :where(th) {
236
+ @extend %vv-table__th !optional;
237
+ }
238
+ }
239
+
240
+ // progress
241
+ &:where(progress) {
242
+ @extend %vv-progress !optional;
243
+ }
244
+
245
+ // checkbox
246
+ &:where(fieldset:has(input[type='checkbox'])) {
247
+ @extend %vv-checkbox-group !optional;
248
+
249
+ :where(legend) {
250
+ @extend %vv-checkbox-group__legend !optional;
251
+ }
252
+ }
253
+
254
+ &:where(label:has(input[type='checkbox'])) {
255
+ @extend %w-full !optional;
256
+ @extend %vv-checkbox !optional;
257
+
258
+ :where(input[type='checkbox']) {
259
+ @extend %vv-checkbox__input !optional;
260
+
261
+ &:checked {
262
+ @extend %vv-checkbox-element-input--checked !optional;
263
+ }
264
+
265
+ &:indeterminate {
266
+ @extend %vv-checkbox-element-input--indeterminate !optional;
267
+ }
268
+
269
+ &:focus-visible {
270
+ @extend %vv-checkbox-element-input--focus-visible !optional;
271
+ }
272
+ }
273
+ }
274
+
275
+ // switch
276
+ &:where(label:has(input[type='checkbox'][role='switch'])) {
277
+ @extend %vv-checkbox--switch !optional;
278
+
279
+ :where(input[type='checkbox'][role='switch']) {
280
+ @extend %vv-checkbox-modifier-switch__input !optional;
281
+
282
+ &:hover {
283
+ @extend %vv-checkbox-modifier-switch-element-input--hover
284
+ !optional;
285
+ }
286
+
287
+ &:active {
288
+ @extend %vv-checkbox-modifier-switch-element-input--active
289
+ !optional;
290
+ }
291
+
292
+ &:checked {
293
+ @extend %vv-checkbox-modifier-switch-element-input--checked
294
+ !optional;
295
+ }
296
+
297
+ &:focus-visible {
298
+ @extend %vv-checkbox-modifier-switch-element-input--focus-visible
299
+ !optional;
300
+ }
301
+ }
302
+ }
303
+
304
+ &:where(label:has(input[type='checkbox']:disabled)) {
305
+ @extend %vv-checkbox--disabled !optional;
306
+ }
307
+
308
+ // radio
309
+ &:where(fieldset:has(input[type='radio'])) {
310
+ @extend %vv-radio-group !optional;
311
+
312
+ :where(legend) {
313
+ @extend %vv-radio-group__legend !optional;
314
+ }
315
+ }
316
+
317
+ &:where(label:has(input[type='radio'])) {
318
+ @extend %w-full !optional;
319
+ @extend %vv-radio !optional;
320
+
321
+ :where(input[type='radio']) {
322
+ @extend %vv-radio__input !optional;
323
+
324
+ &:checked {
325
+ @extend %vv-radio-element-input--checked !optional;
326
+ }
327
+
328
+ &:focus-visible {
329
+ @extend %vv-radio-element-input--focus-visible !optional;
330
+ }
331
+ }
332
+ }
333
+
334
+ &:where(label:has(input[type='radio']:disabled)) {
335
+ @extend %vv-radio--disabled !optional;
336
+ }
337
+
338
+ // textarea
339
+ &:where(label:has(+ textarea)) {
340
+ @extend %vv-textarea__label !optional;
341
+ }
342
+
343
+ &:where(textarea) {
344
+ @extend %w-full !optional;
345
+ @extend %vv-textarea !optional;
346
+ @extend %vv-textarea__wrapper !optional;
347
+ @extend %vv-textarea__input !optional;
348
+
349
+ &:disabled {
350
+ @extend %vv-textarea--disabled !optional;
351
+ }
352
+
353
+ &:readonly {
354
+ @extend %vv-textarea--readonly !optional;
355
+ }
356
+ }
357
+
358
+ // select
359
+ &:where(label:has(+ select)) {
360
+ @extend %vv-select__label !optional;
361
+ }
362
+
363
+ &:where(select) {
364
+ @extend %w-full !optional;
365
+ @extend %vv-select !optional;
366
+ @extend %vv-select__wrapper !optional;
367
+ @extend %vv-select__input !optional;
368
+
369
+ &:disabled {
370
+ @extend %vv-select--disabled !optional;
371
+ }
372
+ }
373
+
374
+ // input text
375
+ &:where(
376
+ label:has(
377
+ + input:not(
378
+ [type='radio'],
379
+ [type='checkbox'],
380
+ [type='button'],
381
+ [type='submit'],
382
+ [type='reset']
383
+ )
384
+ )
385
+ ) {
386
+ @extend %vv-input-text__label !optional;
387
+ }
388
+
389
+ &:where(
390
+ input:not(
391
+ [type='radio'],
392
+ [type='checkbox'],
393
+ [type='button'],
394
+ [type='submit'],
395
+ [type='reset']
396
+ )
397
+ ) {
398
+ @extend %w-full !optional;
399
+ @extend %vv-input-text !optional;
400
+ @extend %vv-input-text__wrapper !optional;
401
+ @extend %vv-input-text__input !optional;
402
+
403
+ &:disabled {
404
+ @extend %vv-input-text--disabled !optional;
405
+ }
406
+
407
+ &:readonly {
408
+ @extend %vv-input-text--readonly !optional;
409
+ }
410
+ }
411
+ }
412
+ }
@@ -1,17 +1,25 @@
1
- @import 'vv-badge';
2
- @import 'vv-button';
3
- @import 'vv-button-group';
4
- @import 'vv-progress';
5
- @import 'vv-collapse';
6
- @import 'vv-dialog';
7
- @import 'vv-dropdown';
8
- @import 'vv-input-checkbox';
9
- @import 'vv-input-checkbox-group';
10
- @import 'vv-input-radio';
11
- @import 'vv-input-radio-group';
12
- @import 'vv-input-text';
13
- @import 'vv-textarea';
14
- @import 'vv-select';
15
- @import 'vv-table';
16
- @import 'vv-card';
17
- @import 'vv-text';
1
+ @use 'vv-accordion';
2
+ @use 'vv-alert';
3
+ @use 'vv-badge';
4
+ @use 'vv-breadcrumb';
5
+ @use 'vv-button';
6
+ @use 'vv-button-group';
7
+ @use 'vv-card';
8
+ @use 'vv-dialog';
9
+ @use 'vv-dropdown';
10
+ @use 'vv-checkbox-group';
11
+ @use 'vv-checkbox';
12
+ @use 'vv-radio-group';
13
+ @use 'vv-radio';
14
+ @use 'vv-avatar';
15
+ @use 'vv-input-text';
16
+ @use 'vv-nav';
17
+ @use 'vv-progress';
18
+ @use 'vv-select';
19
+ @use 'vv-skeleton';
20
+ @use 'vv-tab';
21
+ @use 'vv-table';
22
+ @use 'vv-text';
23
+ @use 'vv-textarea';
24
+ @use 'vv-tooltip';
25
+ @use 'vv-toast';
@@ -0,0 +1,13 @@
1
+ @use 'sass:map';
2
+ @use '../context' as *;
3
+
4
+ $component-name: map.get($components-names, vv-accordion);
5
+ $component-map: $vv-accordion;
6
+
7
+ @include spread-map-into-bem(
8
+ $map: $component-map,
9
+ $block: $component-name,
10
+ $props: $use-custom-props-for-components,
11
+ $zero-specificity: $zero-specificity-for-components,
12
+ $bps: $breakpoints
13
+ );
@@ -0,0 +1,13 @@
1
+ @use 'sass:map';
2
+ @use '../context' as *;
3
+
4
+ $component-name: map.get($components-names, vv-alert);
5
+ $component-map: $vv-alert;
6
+
7
+ @include spread-map-into-bem(
8
+ $map: $component-map,
9
+ $block: $component-name,
10
+ $props: $use-custom-props-for-components,
11
+ $zero-specificity: $zero-specificity-for-components,
12
+ $bps: $breakpoints
13
+ );
@@ -0,0 +1,13 @@
1
+ @use 'sass:map';
2
+ @use '../context' as *;
3
+
4
+ $component-name: map.get($components-names, vv-avatar);
5
+ $component-map: $vv-avatar;
6
+
7
+ @include spread-map-into-bem(
8
+ $map: $component-map,
9
+ $block: $component-name,
10
+ $props: $use-custom-props-for-components,
11
+ $zero-specificity: $zero-specificity-for-components,
12
+ $bps: $breakpoints
13
+ );
@@ -1,5 +1,5 @@
1
1
  @use 'sass:map';
2
- @import '../context';
2
+ @use '../context' as *;
3
3
 
4
4
  $component-name: map.get($components-names, vv-badge);
5
5
  $component-map: $vv-badge;
@@ -8,5 +8,6 @@ $component-map: $vv-badge;
8
8
  $map: $component-map,
9
9
  $block: $component-name,
10
10
  $props: $use-custom-props-for-components,
11
- $zero-specificity: $zero-specificity-for-compoenents
11
+ $zero-specificity: $zero-specificity-for-components,
12
+ $bps: $breakpoints
12
13
  );
@@ -0,0 +1,13 @@
1
+ @use 'sass:map';
2
+ @use '../context' as *;
3
+
4
+ $component-name: map.get($components-names, vv-breadcrumb);
5
+ $component-map: $vv-breadcrumb;
6
+
7
+ @include spread-map-into-bem(
8
+ $map: $component-map,
9
+ $block: $component-name,
10
+ $props: $use-custom-props-for-components,
11
+ $zero-specificity: $zero-specificity-for-components,
12
+ $bps: $breakpoints
13
+ );
@@ -1,5 +1,5 @@
1
1
  @use 'sass:map';
2
- @import '../context';
2
+ @use '../context' as *;
3
3
 
4
4
  $component-name: map.get($components-names, vv-button-group);
5
5
  $component-map: $vv-button-group;
@@ -11,7 +11,8 @@ $button-component-selector: '.' + $button-component-name;
11
11
  $map: $component-map,
12
12
  $block: $component-name,
13
13
  $props: $use-custom-props-for-components,
14
- $zero-specificity: $zero-specificity-for-compoenents
14
+ $zero-specificity: $zero-specificity-for-components,
15
+ $bps: $breakpoints
15
16
  );
16
17
 
17
18
  // if has block modifier
@@ -22,7 +23,7 @@ $button-component-selector: '.' + $button-component-name;
22
23
  @include wrap-with-where(
23
24
  $selector:
24
25
  '&.active, &#{$button-component-selector}--active, &:active',
25
- $enabled: $zero-specificity-for-compoenents
26
+ $enabled: $zero-specificity-for-components
26
27
  ) {
27
28
  z-index: 1;
28
29
  }
@@ -31,7 +32,7 @@ $button-component-selector: '.' + $button-component-name;
31
32
 
32
33
  @include wrap-with-where(
33
34
  $selector: $button-component-selector,
34
- $enabled: $zero-specificity-for-compoenents
35
+ $enabled: $zero-specificity-for-components
35
36
  ) {
36
37
  flex: 1;
37
38
  }
@@ -48,7 +49,7 @@ $button-component-selector: '.' + $button-component-name;
48
49
  // clear top border-radius for first child
49
50
  @include wrap-with-where(
50
51
  $selector: '&:not(:first-child)',
51
- $enabled: $zero-specificity-for-compoenents
52
+ $enabled: $zero-specificity-for-components
52
53
  ) {
53
54
  border-top-right-radius: 0;
54
55
  border-top-left-radius: 0;
@@ -57,21 +58,19 @@ $button-component-selector: '.' + $button-component-name;
57
58
  // clear bottom border-radius for last child
58
59
  @include wrap-with-where(
59
60
  $selector: '&:not(:last-child)',
60
- $enabled: $zero-specificity-for-compoenents
61
+ $enabled: $zero-specificity-for-components
61
62
  ) {
62
63
  border-bottom-right-radius: 0;
63
64
  border-bottom-left-radius: 0;
64
65
  }
65
66
 
66
67
  // clear margin for inner children
67
- @if map.get($vv-button, 'border-width') {
68
+ @if map.get($vv-button, '--button-border-width') {
68
69
  @include wrap-with-where(
69
70
  $selector: '&:not(:last-child, :last-child)',
70
- $enabled: $zero-specificity-for-compoenents
71
+ $enabled: $zero-specificity-for-components
71
72
  ) {
72
- margin-block: calc(
73
- map.get($vv-button, 'border-width') * -1
74
- );
73
+ margin-block: calc(var(--button-border-width) * -1);
75
74
  }
76
75
  }
77
76
  }
@@ -83,7 +82,7 @@ $button-component-selector: '.' + $button-component-name;
83
82
  // clear left border-radius for first child
84
83
  @include wrap-with-where(
85
84
  $selector: '&:not(:first-child)',
86
- $enabled: $zero-specificity-for-compoenents
85
+ $enabled: $zero-specificity-for-components
87
86
  ) {
88
87
  border-top-left-radius: 0;
89
88
  border-bottom-left-radius: 0;
@@ -92,21 +91,19 @@ $button-component-selector: '.' + $button-component-name;
92
91
  // clear right border-radius for first child
93
92
  @include wrap-with-where(
94
93
  $selector: '&:not(:last-child)',
95
- $enabled: $zero-specificity-for-compoenents
94
+ $enabled: $zero-specificity-for-components
96
95
  ) {
97
96
  border-top-right-radius: 0;
98
97
  border-bottom-right-radius: 0;
99
98
  }
100
99
 
101
100
  // clear margin for inner children
102
- @if map.get($vv-button, 'border-width') {
101
+ @if map.get($vv-button, '--button-border-width') {
103
102
  @include wrap-with-where(
104
103
  $selector: '&:not(:last-child, :last-child)',
105
- $enabled: $zero-specificity-for-compoenents
104
+ $enabled: $zero-specificity-for-components
106
105
  ) {
107
- margin-inline: calc(
108
- map.get($vv-button, 'border-width') * -1
109
- );
106
+ margin-inline: calc(var(--button-border-width) * -1);
110
107
  }
111
108
  }
112
109
  }
@@ -1,5 +1,5 @@
1
1
  @use 'sass:map';
2
- @import '../context';
2
+ @use '../context' as *;
3
3
 
4
4
  $component-name: map.get($components-names, vv-button);
5
5
  $component-map: $vv-button;
@@ -9,8 +9,9 @@ $component-selector: '.#{ $component-name}';
9
9
  $map: $component-map,
10
10
  $block: $component-name,
11
11
  $props: $use-custom-props-for-components,
12
- $zero-specificity: $zero-specificity-for-compoenents,
13
- $custom-block: true
12
+ $zero-specificity: $zero-specificity-for-components,
13
+ $custom-block: true,
14
+ $bps: $breakpoints
14
15
  ) {
15
16
  // custom block
16
17
  %#{$component-name} {
@@ -29,15 +30,11 @@ $component-selector: '.#{ $component-name}';
29
30
  $prefix: $component-name,
30
31
  $props: $use-custom-props-for-components
31
32
  );
32
-
33
- @media (prefers-reduced-motion: reduce) {
34
- transition: none;
35
- }
36
33
  }
37
34
 
38
35
  @include wrap-with-where(
39
36
  $selector: $component-selector,
40
- $enabled: $zero-specificity-for-compoenents
37
+ $enabled: $zero-specificity-for-components
41
38
  ) {
42
39
  &:where(a[href], button, input[type='button'], input[type='submit'], input[type='reset']),
43
40
  &::file-selector-button {
@@ -1,5 +1,5 @@
1
1
  @use 'sass:map';
2
- @import '../context';
2
+ @use '../context' as *;
3
3
 
4
4
  $component-name: map.get($components-names, vv-card);
5
5
  $component-map: $vv-card;
@@ -8,5 +8,6 @@ $component-map: $vv-card;
8
8
  $map: $component-map,
9
9
  $block: $component-name,
10
10
  $props: $use-custom-props-for-components,
11
- $zero-specificity: $zero-specificity-for-compoenents
11
+ $zero-specificity: $zero-specificity-for-components,
12
+ $bps: $breakpoints
12
13
  );
@@ -0,0 +1,13 @@
1
+ @use 'sass:map';
2
+ @use '../context' as *;
3
+
4
+ $component-name: map.get($components-names, vv-checkbox-group);
5
+ $component-map: $vv-checkbox-group;
6
+
7
+ @include spread-map-into-bem(
8
+ $map: $component-map,
9
+ $block: $component-name,
10
+ $props: $use-custom-props-for-components,
11
+ $zero-specificity: $zero-specificity-for-components,
12
+ $bps: $breakpoints
13
+ );