@volverjs/style 0.1.17 → 0.1.19

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/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  "bugs": {
25
25
  "url": "https://github.com/volverjs/style/issues"
26
26
  },
27
- "version": "0.1.17",
27
+ "version": "0.1.19",
28
28
  "engines": {
29
29
  "node": ">= 12.x"
30
30
  },
@@ -36,48 +36,48 @@
36
36
  "dist/*"
37
37
  ],
38
38
  "devDependencies": {
39
- "@iconify/vue": "^4.3.0",
40
- "@vitejs/plugin-vue": "^5.2.1",
41
- "@vueuse/core": "^12.7.0",
39
+ "@iconify/vue": "^5.0.0",
40
+ "@vitejs/plugin-vue": "^5.2.4",
41
+ "@vueuse/core": "^13.2.0",
42
42
  "@vueuse/head": "^2.0.0",
43
- "eslint-config-prettier": "^10.0.2",
44
- "eslint-plugin-prettier": "^5.2.3",
45
- "eslint-plugin-vue": "^9.32.0",
46
- "glob": "^11.0.1",
43
+ "eslint-config-prettier": "^10.1.5",
44
+ "eslint-plugin-prettier": "^5.4.0",
45
+ "eslint-plugin-vue": "^10.1.0",
46
+ "glob": "^11.0.2",
47
47
  "icss-utils": "^5.1.0",
48
48
  "markdown-it-anchor": "^9.2.0",
49
- "markdown-it-prism": "^2.3.0",
49
+ "markdown-it-prism": "^3.0.0",
50
50
  "postcss": "^8.5.3",
51
51
  "postcss-html": "^1.8.0",
52
- "postcss-preset-env": "^10.1.5",
53
- "prettier": "^3.5.2",
52
+ "postcss-preset-env": "^10.1.6",
53
+ "prettier": "^3.5.3",
54
54
  "prism-themes": "^1.9.0",
55
- "prismjs": "^1.29.0",
55
+ "prismjs": "^1.30.0",
56
56
  "reduce-css-calc": "^2.1.8",
57
57
  "remark": "^15.0.1",
58
58
  "remark-frontmatter": "^5.0.0",
59
59
  "remark-gfm": "^4.0.1",
60
60
  "remark-lint": "^10.0.1",
61
- "sass": "^1.85.1",
62
- "stylelint": "^16.14.1",
63
- "stylelint-config-recommended-scss": "^14.1.0",
61
+ "sass": "^1.89.0",
62
+ "stylelint": "^16.19.1",
63
+ "stylelint-config-recommended-scss": "^15.0.1",
64
64
  "stylelint-config-recommended-vue": "^1.6.0",
65
- "stylelint-config-standard-scss": "^14.0.0",
66
- "unplugin-auto-import": "^19.1.0",
67
- "unplugin-vue-components": "^28.4.0",
68
- "vite": "^6.2.0",
65
+ "stylelint-config-standard-scss": "^15.0.1",
66
+ "unplugin-auto-import": "^19.2.0",
67
+ "unplugin-vue-components": "^28.5.0",
68
+ "vite": "^6.3.5",
69
69
  "vite-plugin-css-export": "^3.0.2",
70
70
  "vite-plugin-eslint": "^1.8.1",
71
71
  "vite-plugin-handlebars": "^2.0.0",
72
72
  "vite-plugin-markdown": "^2.2.0",
73
- "vite-plugin-pages": "^0.32.5",
73
+ "vite-plugin-pages": "^0.33.0",
74
74
  "vite-plugin-stylelint": "^6.0.0",
75
75
  "vite-plugin-vue-layouts": "^0.11.0",
76
- "vite-ssg": "^25.2.0",
77
- "vite-ssg-sitemap": "^0.8.1",
78
- "vue": "^3.5.13",
76
+ "vite-ssg": "^27.0.1",
77
+ "vite-ssg-sitemap": "^0.9.0",
78
+ "vue": "^3.5.14",
79
79
  "vue-live": "^2.5.4",
80
- "vue-router": "^4.5.0"
80
+ "vue-router": "^4.5.1"
81
81
  },
82
82
  "exports": {
83
83
  ".": "./dist/volver.css",
@@ -199,33 +199,33 @@ $gradient: (
199
199
  17: conic-gradient(from -90deg at 50% -25%, blue, blueviolet),
200
200
  18: #{linear-gradient(
201
201
  0deg,
202
- hsla(0deg 100% 50% / 80%),
203
- hsla(0deg 100% 50% / 0%) 75%
202
+ hsl(0deg 100% 50% / 80%),
203
+ hsl(0deg 100% 50% / 0%) 75%
204
204
  ),
205
205
  linear-gradient(
206
206
  60deg,
207
- hsla(60deg 100% 50% / 80%),
208
- hsla(60deg 100% 50% / 0%) 75%,
207
+ hsl(60deg 100% 50% / 80%),
208
+ hsl(60deg 100% 50% / 0%) 75%,
209
209
  ),
210
210
  linear-gradient(
211
211
  120deg,
212
- hsla(120deg 100% 50% / 80%),
213
- hsla(120deg 100% 50% / 0%) 75%,
212
+ hsl(120deg 100% 50% / 80%),
213
+ hsl(120deg 100% 50% / 0%) 75%,
214
214
  ),
215
215
  linear-gradient(
216
216
  180deg,
217
- hsla(180deg 100% 50% / 80%),
218
- hsla(180deg 100% 50% / 0%) 75%,
217
+ hsl(180deg 100% 50% / 80%),
218
+ hsl(180deg 100% 50% / 0%) 75%,
219
219
  ),
220
220
  linear-gradient(
221
221
  240deg,
222
- hsla(240deg 100% 50% / 80%),
223
- hsla(240deg 100% 50% / 0%) 75%,
222
+ hsl(240deg 100% 50% / 80%),
223
+ hsl(240deg 100% 50% / 0%) 75%,
224
224
  ),
225
225
  linear-gradient(
226
226
  300deg,
227
- hsla(300deg 100% 50% / 80%),
228
- hsla(300deg 100% 50% / 0%) 75%
227
+ hsl(300deg 100% 50% / 80%),
228
+ hsl(300deg 100% 50% / 0%) 75%
229
229
  )},
230
230
  19: linear-gradient(to bottom right, #ffe259, #ffa751),
231
231
  20:
@@ -68,7 +68,7 @@ $vv-badge: (
68
68
  ),
69
69
  white: (
70
70
  background-color:
71
- hsla(
71
+ hsl(
72
72
  var(--color-white-hue) var(--color-white-saturation)
73
73
  var(--color-white-lightness) / 80%
74
74
  ),
@@ -76,7 +76,7 @@ $vv-badge: (
76
76
  ),
77
77
  black: (
78
78
  background-color:
79
- hsla(
79
+ hsl(
80
80
  var(--color-black-hue) var(--color-black-saturation)
81
81
  var(--color-black-lightness) / 80%
82
82
  ),
@@ -46,7 +46,7 @@ $vv-card: (
46
46
  modifier: (
47
47
  glass: (
48
48
  background-color:
49
- hsla(
49
+ hsl(
50
50
  var(--color-surface-hue) var(--color-surface-saturation)
51
51
  var(--color-surface-lightness) / 60%
52
52
  ),
@@ -54,7 +54,7 @@ $vv-card: (
54
54
  element: (
55
55
  header: (
56
56
  background-color:
57
- hsla(
57
+ hsl(
58
58
  var(--color-surface-hue)
59
59
  var(--color-surface-saturation)
60
60
  var(--color-surface-lightness) / 30%
@@ -62,7 +62,7 @@ $vv-card: (
62
62
  ),
63
63
  footer: (
64
64
  background-color:
65
- hsla(
65
+ hsl(
66
66
  var(--color-surface-hue)
67
67
  var(--color-surface-saturation)
68
68
  var(--color-surface-lightness) / 30%
@@ -123,7 +123,7 @@ $vv-nav: (
123
123
  color: var(--color-brand),
124
124
  border-color: currentcolor,
125
125
  background-color:
126
- hsla(
126
+ hsl(
127
127
  var(--color-brand-hue)
128
128
  var(--color-brand-saturation)
129
129
  var(--color-brand-lightness) / 5%
@@ -129,6 +129,8 @@ $vv-select: (
129
129
  icon: (
130
130
  _alias: '> div > :where(svg, [data-icon])',
131
131
  position: var(--input-icon-position),
132
+ top: 0,
133
+ left: 0,
132
134
  width: var(--input-icon-width),
133
135
  height: var(--input-min-height),
134
136
  margin: var(--input-icon-margin),
@@ -137,7 +139,34 @@ $vv-select: (
137
139
  ),
138
140
  icon-after: (
139
141
  _alias: 'select + :where(svg, [data-icon])',
142
+ position: var(--input-icon-position),
140
143
  right: 0,
144
+ left: auto,
145
+ ),
146
+ action: (
147
+ position: relative,
148
+ width:
149
+ calc(
150
+ var(--input-icon-width) + var(--input-spacing-left) +
151
+ var(--input-spacing-right)
152
+ ),
153
+ height: var(--input-min-height),
154
+ cursor: pointer,
155
+ state: (
156
+ disabled: (
157
+ cursor: not-allowed,
158
+ opacity: var(--opacity-50),
159
+ ),
160
+ focus-visible: (
161
+ background-color: var(--color-surface-3),
162
+ ),
163
+ hover: (
164
+ background-color: var(--color-surface-4),
165
+ ),
166
+ active: (
167
+ background-color: var(--color-surface-5),
168
+ ),
169
+ ),
141
170
  ),
142
171
  hint: (
143
172
  _alias: '> small',
@@ -340,6 +369,7 @@ $vv-select: (
340
369
  state: (
341
370
  disabled: (
342
371
  opacity: var(--opacity-50),
372
+ cursor: not-allowed,
343
373
  element: (
344
374
  wrapper: (
345
375
  state: (
@@ -350,6 +380,14 @@ $vv-select: (
350
380
  background-color: var(--input-background-color),
351
381
  ),
352
382
  ),
383
+ pseudo: (
384
+ before: (
385
+ opacity: var(--opacity-0),
386
+ ),
387
+ after: (
388
+ opacity: var(--opacity-0),
389
+ ),
390
+ ),
353
391
  ),
354
392
  ),
355
393
  ),
@@ -114,6 +114,8 @@ $vv-textarea: (
114
114
  icon: (
115
115
  _alias: '> div > :where(svg, [data-icon])',
116
116
  position: var(--input-icon-position),
117
+ top: 0,
118
+ left: 0,
117
119
  width: var(--input-icon-width),
118
120
  height: var(--input-min-height),
119
121
  margin: var(--input-icon-margin),
@@ -122,7 +124,9 @@ $vv-textarea: (
122
124
  ),
123
125
  icon-after: (
124
126
  _alias: 'textarea + :where(svg, [data-icon])',
127
+ position: var(--input-icon-position),
125
128
  right: 0,
129
+ left: auto,
126
130
  ),
127
131
  actions-group: (
128
132
  display: flex,
@@ -0,0 +1,22 @@
1
+ @use 'sass:map';
2
+ @use '../context' as *;
3
+
4
+ $component-name: map.get($components-names, vv-select);
5
+ $component-map: $dark-vv-select;
6
+
7
+ @mixin theme-dark-vv-select {
8
+ @include spread-map-into-props(
9
+ $map: $component-map,
10
+ $prefix: $component-name
11
+ );
12
+ }
13
+
14
+ :where(:host, :root, .theme):not(.theme--light) {
15
+ @media (prefers-color-scheme: dark) {
16
+ @include theme-dark-vv-select;
17
+ }
18
+ }
19
+
20
+ :where(.theme.theme--dark) {
21
+ @include theme-dark-vv-select;
22
+ }
@@ -5,3 +5,4 @@
5
5
  @use 'vv-dropdown-action';
6
6
  @use 'vv-dropdown-option';
7
7
  @use 'vv-nav';
8
+ @use 'vv-select';
@@ -8,3 +8,4 @@
8
8
  @forward 'components/vv-dropdown-action';
9
9
  @forward 'components/vv-dropdown-option';
10
10
  @forward 'components/vv-nav';
11
+ @forward 'components/vv-select';
@@ -0,0 +1,7 @@
1
+ $dark-vv-select: (
2
+ state: (
3
+ disabled: (
4
+ opacity: var(--opacity-80),
5
+ ),
6
+ ),
7
+ );