@volverjs/style 0.1.23 → 0.1.24-beta.1

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 (138) hide show
  1. package/README.md +30 -0
  2. package/dist/base.css +1 -1
  3. package/dist/components/vv-accordion.css +1 -1
  4. package/dist/components/vv-alert.css +1 -1
  5. package/dist/components/vv-badge.css +1 -1
  6. package/dist/components/vv-button.css +1 -1
  7. package/dist/components/vv-card.css +1 -1
  8. package/dist/components/vv-checkbox.css +1 -1
  9. package/dist/components/vv-dropdown-action.css +1 -1
  10. package/dist/components/vv-dropdown-option.css +1 -1
  11. package/dist/components/vv-dropdown.css +1 -1
  12. package/dist/components/vv-input-file.css +1 -1
  13. package/dist/components/vv-input-text.css +1 -1
  14. package/dist/components/vv-nav.css +1 -1
  15. package/dist/components/vv-radio.css +1 -1
  16. package/dist/components/vv-select.css +1 -1
  17. package/dist/components/vv-text.css +1 -1
  18. package/dist/components/vv-tooltip.css +1 -1
  19. package/dist/components.css +1 -1
  20. package/dist/export.css +1 -1
  21. package/dist/props/breakpoints.css +1 -1
  22. package/dist/props/colors.css +1 -1
  23. package/dist/props/effects.css +1 -1
  24. package/dist/props/spacing.css +1 -1
  25. package/dist/props/transitions.css +1 -1
  26. package/dist/props/typography.css +1 -1
  27. package/dist/props.css +1 -1
  28. package/dist/themes/dark/components.css +1 -1
  29. package/dist/themes/dark/props.css +1 -1
  30. package/dist/themes/dark/volver.css +1 -1
  31. package/dist/utilities/borders.css +1 -1
  32. package/dist/utilities/colors.css +1 -1
  33. package/dist/utilities/effects.css +1 -1
  34. package/dist/utilities/flexbox.css +1 -1
  35. package/dist/utilities/grid.css +1 -1
  36. package/dist/utilities/layout.css +1 -1
  37. package/dist/utilities/sizing.css +1 -1
  38. package/dist/utilities/typography.css +1 -1
  39. package/dist/utilities.css +1 -1
  40. package/dist/volver.css +1 -1
  41. package/package.json +17 -17
  42. package/src/_config.scss +12 -0
  43. package/src/_layers.scss +4 -0
  44. package/src/_preflight.scss +2 -0
  45. package/src/components/vv-accordion-group.scss +3 -0
  46. package/src/components/vv-accordion.scss +3 -0
  47. package/src/components/vv-alert-group.scss +3 -0
  48. package/src/components/vv-alert.scss +3 -0
  49. package/src/components/vv-avatar-group.scss +3 -0
  50. package/src/components/vv-avatar.scss +3 -0
  51. package/src/components/vv-badge.scss +3 -0
  52. package/src/components/vv-breadcrumb.scss +3 -0
  53. package/src/components/vv-button-group.scss +3 -0
  54. package/src/components/vv-button.scss +3 -0
  55. package/src/components/vv-card.scss +3 -0
  56. package/src/components/vv-checkbox-group.scss +3 -0
  57. package/src/components/vv-checkbox.scss +3 -0
  58. package/src/components/vv-dialog.scss +3 -0
  59. package/src/components/vv-dropdown-action.scss +3 -0
  60. package/src/components/vv-dropdown-optgroup.scss +3 -0
  61. package/src/components/vv-dropdown-option.scss +3 -0
  62. package/src/components/vv-dropdown.scss +3 -0
  63. package/src/components/vv-input-file.scss +3 -0
  64. package/src/components/vv-input-text.scss +3 -0
  65. package/src/components/vv-nav.scss +3 -0
  66. package/src/components/vv-progress.scss +3 -0
  67. package/src/components/vv-radio-group.scss +3 -0
  68. package/src/components/vv-radio.scss +3 -0
  69. package/src/components/vv-select.scss +3 -0
  70. package/src/components/vv-skeleton.scss +3 -0
  71. package/src/components/vv-tab.scss +3 -0
  72. package/src/components/vv-table.scss +3 -0
  73. package/src/components/vv-text.scss +3 -0
  74. package/src/components/vv-textarea.scss +3 -0
  75. package/src/components/vv-tooltip.scss +5 -7
  76. package/src/export.scss +0 -1
  77. package/src/props/background.scss +5 -3
  78. package/src/props/borders.scss +5 -3
  79. package/src/props/breakpoints.scss +11 -9
  80. package/src/props/colors.scss +4 -2
  81. package/src/props/effects.scss +5 -3
  82. package/src/props/filters.scss +6 -4
  83. package/src/props/input.scss +4 -2
  84. package/src/props/layout.scss +5 -3
  85. package/src/props/sizing.scss +5 -3
  86. package/src/props/spacing.scss +18 -16
  87. package/src/props/transitions.scss +150 -118
  88. package/src/props/typography.scss +26 -24
  89. package/src/reset.scss +4 -0
  90. package/src/settings/_colors.scss +80 -50
  91. package/src/settings/_effects.scss +7 -7
  92. package/src/settings/components/_vv-badge.scss +2 -10
  93. package/src/settings/components/_vv-button.scss +1 -1
  94. package/src/settings/components/_vv-card.scss +3 -17
  95. package/src/settings/components/_vv-nav.scss +1 -6
  96. package/src/settings/components/_vv-text.scss +1 -0
  97. package/src/themes/dark/components/_vv-alert.scss +14 -10
  98. package/src/themes/dark/components/_vv-avatar.scss +14 -10
  99. package/src/themes/dark/components/_vv-badge.scss +14 -10
  100. package/src/themes/dark/components/_vv-button.scss +14 -10
  101. package/src/themes/dark/components/_vv-dropdown-action.scss +14 -10
  102. package/src/themes/dark/components/_vv-dropdown-option.scss +14 -10
  103. package/src/themes/dark/components/_vv-nav.scss +14 -10
  104. package/src/themes/dark/components/_vv-select.scss +14 -10
  105. package/src/themes/dark/props/_background.scss +3 -0
  106. package/src/themes/dark/props/_colors.scss +3 -0
  107. package/src/themes/dark/props/_input.scss +3 -0
  108. package/src/themes/dark/settings/_colors.scss +42 -28
  109. package/src/themes/dark/settings/components/_vv-alert.scss +23 -0
  110. package/src/themes/dark/settings/components/_vv-avatar.scss +3 -0
  111. package/src/themes/dark/settings/components/_vv-button.scss +0 -1
  112. package/src/tools/_breakpoints.scss +20 -4
  113. package/src/tools/_functions.scss +157 -0
  114. package/src/tools/_mixins.scss +5 -1216
  115. package/src/tools/mixin-modules/_attrs.scss +178 -0
  116. package/src/tools/mixin-modules/_bem.scss +751 -0
  117. package/src/tools/mixin-modules/_helpers.scss +23 -0
  118. package/src/tools/mixin-modules/_index.scss +25 -0
  119. package/src/tools/mixin-modules/_layers.scss +42 -0
  120. package/src/tools/mixin-modules/_props.scss +41 -0
  121. package/src/tools/mixin-modules/_theme.scss +354 -0
  122. package/src/tools/mixin-modules/_utilities.scss +121 -0
  123. package/src/utilities/backgrounds.scss +3 -0
  124. package/src/utilities/borders.scss +3 -0
  125. package/src/utilities/colors.scss +3 -0
  126. package/src/utilities/effects.scss +3 -0
  127. package/src/utilities/filters.scss +3 -0
  128. package/src/utilities/flexbox.scss +3 -0
  129. package/src/utilities/grid.scss +3 -0
  130. package/src/utilities/interactivity.scss +3 -0
  131. package/src/utilities/layout.scss +3 -0
  132. package/src/utilities/sizing.scss +3 -0
  133. package/src/utilities/spacing.scss +3 -0
  134. package/src/utilities/tables.scss +3 -0
  135. package/src/utilities/transforms.scss +11 -6
  136. package/src/utilities/transitions.scss +3 -0
  137. package/src/utilities/typography.scss +3 -0
  138. package/src/volver.scss +2 -1
@@ -1,6 +1,7 @@
1
1
  @use 'sass:map';
2
2
  @use '../context' as *;
3
3
 
4
+ @include layer(utilities, $use-css-layers, $layer-prefix) {
4
5
  // cursor
5
6
  @include spread-map-into-utilities(
6
7
  $map: $cursor,
@@ -24,3 +25,5 @@
24
25
  $attribute: user-select,
25
26
  $zero-specificity: $zero-specificity-for-utilities
26
27
  );
28
+
29
+ }
@@ -2,6 +2,7 @@
2
2
  @use 'sass:meta';
3
3
  @use '../context' as *;
4
4
 
5
+ @include layer(utilities, $use-css-layers, $layer-prefix) {
5
6
  // aspect
6
7
  @include spread-map-into-utilities(
7
8
  $map: $aspect-ratio,
@@ -204,3 +205,5 @@
204
205
  $prop: z,
205
206
  $zero-specificity: $zero-specificity-for-utilities
206
207
  );
208
+
209
+ }
@@ -1,6 +1,7 @@
1
1
  @use 'sass:map';
2
2
  @use '../context' as *;
3
3
 
4
+ @include layer(utilities, $use-css-layers, $layer-prefix) {
4
5
  // width / height / max-width / max-height / min-width / min-height
5
6
  @each $class,
6
7
  $attribute
@@ -84,3 +85,5 @@
84
85
  $bps: $breakpoints,
85
86
  $zero-specificity: $zero-specificity-for-utilities
86
87
  );
88
+
89
+ }
@@ -2,6 +2,7 @@
2
2
  @use 'sass:meta';
3
3
  @use '../context' as *;
4
4
 
5
+ @include layer(utilities, $use-css-layers, $layer-prefix) {
5
6
  @each $prefix, $prop in (m: margin, p: padding, n: margin) {
6
7
  @each $size, $value in map.merge($spacing, $spacing-dynamic) {
7
8
  $var: var(--spacing-#{$size});
@@ -116,3 +117,5 @@
116
117
  @extend %m#{$direction-prefix}-auto;
117
118
  }
118
119
  }
120
+
121
+ }
@@ -1,5 +1,6 @@
1
1
  @use '../context' as *;
2
2
 
3
+ @include layer(utilities, $use-css-layers, $layer-prefix) {
3
4
  // border-collapse
4
5
  @include spread-map-into-utilities(
5
6
  $map: $border-collapse,
@@ -15,3 +16,5 @@
15
16
  $attribute: table-layout,
16
17
  $zero-specificity: $zero-specificity-for-utilities
17
18
  );
19
+
20
+ }
@@ -1,5 +1,6 @@
1
1
  @use '../context' as *;
2
2
 
3
+ @include layer(utilities, $use-css-layers, $layer-prefix) {
3
4
  // scale
4
5
  @each $size, $value in $scale {
5
6
  %scale-#{$size} {
@@ -54,12 +55,14 @@
54
55
 
55
56
  // translate
56
57
  @each $size, $value in $translate {
58
+ $escaped-size: str-replace(#{$size}, '/', '\/');
59
+
57
60
  %translate-#{$size} {
58
61
  translate: #{$value} #{$value};
59
62
  }
60
63
 
61
64
  @include wrap-with-where(
62
- $selector: '.translate-#{$size}',
65
+ $selector: '.translate-#{$escaped-size}',
63
66
  $enabled: $zero-specificity-for-utilities
64
67
  ) {
65
68
  @extend %translate-#{$size};
@@ -70,7 +73,7 @@
70
73
  }
71
74
 
72
75
  @include wrap-with-where(
73
- $selector: '.translate-x-#{$size}',
76
+ $selector: '.translate-x-#{$escaped-size}',
74
77
  $enabled: $zero-specificity-for-utilities
75
78
  ) {
76
79
  @extend %translate-x-#{$size};
@@ -81,7 +84,7 @@
81
84
  }
82
85
 
83
86
  @include wrap-with-where(
84
- $selector: '.translate-y-#{$size}',
87
+ $selector: '.translate-y-#{$escaped-size}',
85
88
  $enabled: $zero-specificity-for-utilities
86
89
  ) {
87
90
  @extend %translate-y-#{$size};
@@ -92,7 +95,7 @@
92
95
  }
93
96
 
94
97
  @include wrap-with-where(
95
- $selector: '.-translate-#{$size}',
98
+ $selector: '.-translate-#{$escaped-size}',
96
99
  $enabled: $zero-specificity-for-utilities
97
100
  ) {
98
101
  @extend %-translate-#{$size};
@@ -103,7 +106,7 @@
103
106
  }
104
107
 
105
108
  @include wrap-with-where(
106
- $selector: '.-translate-x-#{$size}',
109
+ $selector: '.-translate-x-#{$escaped-size}',
107
110
  $enabled: $zero-specificity-for-utilities
108
111
  ) {
109
112
  @extend %-translate-x-#{$size};
@@ -114,9 +117,11 @@
114
117
  }
115
118
 
116
119
  @include wrap-with-where(
117
- $selector: '.-translate-y-#{$size}',
120
+ $selector: '.-translate-y-#{$escaped-size}',
118
121
  $enabled: $zero-specificity-for-utilities
119
122
  ) {
120
123
  @extend %-translate-y-#{$size};
121
124
  }
122
125
  }
126
+
127
+ }
@@ -2,6 +2,7 @@
2
2
  @use 'sass:string';
3
3
  @use '../context' as *;
4
4
 
5
+ @include layer(utilities, $use-css-layers, $layer-prefix) {
5
6
  // transition property
6
7
  @include spread-map-into-utilities(
7
8
  $map: $transition-property,
@@ -46,3 +47,5 @@
46
47
  }
47
48
  }
48
49
  }
50
+
51
+ }
@@ -1,6 +1,7 @@
1
1
  @use 'sass:map';
2
2
  @use '../context' as *;
3
3
 
4
+ @include layer(utilities, $use-css-layers, $layer-prefix) {
4
5
  // font-family
5
6
  @include spread-map-into-utilities(
6
7
  $map: $font-family,
@@ -263,3 +264,5 @@
263
264
  $attribute: white-space,
264
265
  $zero-specificity: $zero-specificity-for-utilities
265
266
  );
267
+
268
+ }
package/src/volver.scss CHANGED
@@ -1,4 +1,5 @@
1
- @use 'sass:meta';
1
+ // Define CSS layer order (must be first)
2
+ @use 'layers';
2
3
 
3
4
  // base
4
5
  @use 'base';