@volverjs/style 0.1.16 → 0.1.18

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.16",
27
+ "version": "0.1.18",
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.5.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.1",
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",
50
- "postcss": "^8.5.1",
49
+ "markdown-it-prism": "^3.0.0",
50
+ "postcss": "^8.5.3",
51
51
  "postcss-html": "^1.8.0",
52
- "postcss-preset-env": "^10.1.3",
53
- "prettier": "^3.4.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
- "remark-gfm": "^4.0.0",
59
+ "remark-gfm": "^4.0.1",
60
60
  "remark-lint": "^10.0.1",
61
- "sass": "^1.84.0",
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.0.0",
67
- "unplugin-vue-components": "^28.0.0",
68
- "vite": "^6.1.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.4",
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.0.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%
@@ -33,6 +33,11 @@ $vv-nav: (
33
33
  current: (
34
34
  color: var(--color-word-1),
35
35
  ),
36
+ disabled: (
37
+ opacity: var(--opacity-50),
38
+ cursor: not-allowed,
39
+ pointer-events: none,
40
+ ),
36
41
  ),
37
42
  ),
38
43
  separator: (
@@ -118,7 +123,7 @@ $vv-nav: (
118
123
  color: var(--color-brand),
119
124
  border-color: currentcolor,
120
125
  background-color:
121
- hsla(
126
+ hsl(
122
127
  var(--color-brand-hue)
123
128
  var(--color-brand-saturation)
124
129
  var(--color-brand-lightness) / 5%
@@ -139,6 +139,31 @@ $vv-select: (
139
139
  _alias: 'select + :where(svg, [data-icon])',
140
140
  right: 0,
141
141
  ),
142
+ action: (
143
+ position: relative,
144
+ width:
145
+ calc(
146
+ var(--input-icon-width) + var(--input-spacing-left) +
147
+ var(--input-spacing-right)
148
+ ),
149
+ height: var(--input-min-height),
150
+ cursor: pointer,
151
+ state: (
152
+ disabled: (
153
+ cursor: not-allowed,
154
+ opacity: var(--opacity-50),
155
+ ),
156
+ focus-visible: (
157
+ background-color: var(--color-surface-3),
158
+ ),
159
+ hover: (
160
+ background-color: var(--color-surface-4),
161
+ ),
162
+ active: (
163
+ background-color: var(--color-surface-5),
164
+ ),
165
+ ),
166
+ ),
142
167
  hint: (
143
168
  _alias: '> small',
144
169
  _combinator: '>',
@@ -153,6 +178,35 @@ $vv-select: (
153
178
  ),
154
179
  ),
155
180
  modifier: (
181
+ readonly: (
182
+ opacity: var(--opacity-100),
183
+ cursor: text,
184
+ user-select: text,
185
+ element: (
186
+ wrapper: (
187
+ pseudo: (
188
+ before: (
189
+ opacity: var(--opacity-0),
190
+ ),
191
+ after: (
192
+ opacity: var(--opacity-0),
193
+ ),
194
+ ),
195
+ state: (
196
+ hover: (
197
+ background-color: var(--input-background-color),
198
+ ),
199
+ focus-within: (
200
+ background-color: var(--input-background-color),
201
+ ),
202
+ ),
203
+ ),
204
+ input: (
205
+ background-image: none,
206
+ cursor: 'text',
207
+ ),
208
+ ),
209
+ ),
156
210
  dirty: (
157
211
  element: (
158
212
  input: (
@@ -307,39 +361,11 @@ $vv-select: (
307
361
  ),
308
362
  ),
309
363
  ),
310
- readonly: (
311
- opacity: var(--opacity-100),
312
- cursor: text,
313
- user-select: text,
314
- element: (
315
- wrapper: (
316
- pseudo: (
317
- before: (
318
- opacity: var(--opacity-0),
319
- ),
320
- after: (
321
- opacity: var(--opacity-0),
322
- ),
323
- ),
324
- state: (
325
- hover: (
326
- background-color: var(--input-background-color),
327
- ),
328
- focus-within: (
329
- background-color: var(--input-background-color),
330
- ),
331
- ),
332
- ),
333
- input: (
334
- background-image: none,
335
- cursor: 'text',
336
- ),
337
- ),
338
- ),
339
364
  ),
340
365
  state: (
341
366
  disabled: (
342
367
  opacity: var(--opacity-50),
368
+ cursor: not-allowed,
343
369
  element: (
344
370
  wrapper: (
345
371
  state: (
@@ -350,6 +376,14 @@ $vv-select: (
350
376
  background-color: var(--input-background-color),
351
377
  ),
352
378
  ),
379
+ pseudo: (
380
+ before: (
381
+ opacity: var(--opacity-0),
382
+ ),
383
+ after: (
384
+ opacity: var(--opacity-0),
385
+ ),
386
+ ),
353
387
  ),
354
388
  ),
355
389
  ),
@@ -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
+ );