@volverjs/style 0.1.4 → 0.1.5

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
@@ -1,18 +1,84 @@
1
1
  {
2
2
  "name": "@volverjs/style",
3
- "version": "0.1.4",
4
- "description": "@volverjs/style is a lightweight responsive CSS utility library to accompany @volverjs/ui and static webpages as well.",
5
- "main": "dist/style.css",
6
- "style": "dist/style.css",
7
- "type": "module",
3
+ "description": "@volverjs/style is a lightweight responsive CSS utility library to accompany @volverjs/ui-* and static webpages as well.",
4
+ "author": "24/Consulting",
5
+ "license": "MIT",
6
+ "keywords": [
7
+ "css",
8
+ "scss",
9
+ "design-system",
10
+ "volver",
11
+ "volverjs",
12
+ "css custom properties",
13
+ "css variables",
14
+ "utility classes",
15
+ "design tokens",
16
+ "responsive",
17
+ "components library"
18
+ ],
19
+ "homepage": "https://volverjs.github.io/style",
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "https://github.com/volverjs/style"
23
+ },
24
+ "bugs": {
25
+ "url": "https://github.com/volverjs/style/issues"
26
+ },
27
+ "version": "0.1.5",
8
28
  "engines": {
9
29
  "node": ">= 12.x"
10
30
  },
11
31
  "packageManager": "pnpm@7.8.0",
32
+ "type": "module",
33
+ "main": "dist/style.css",
34
+ "style": "dist/style.css",
12
35
  "files": [
13
36
  "src/*",
14
37
  "dist/*"
15
38
  ],
39
+ "devDependencies": {
40
+ "@iconify/vue": "^4.0.2",
41
+ "@vitejs/plugin-vue": "^4.0.0",
42
+ "@vueuse/core": "^9.11.0",
43
+ "@vueuse/head": "^1.0.22",
44
+ "eslint": "^8.32.0",
45
+ "eslint-config-prettier": "^8.6.0",
46
+ "eslint-plugin-vue": "^9.9.0",
47
+ "glob": "^8.1.0",
48
+ "icss-utils": "^5.1.0",
49
+ "markdown-it-anchor": "^8.6.6",
50
+ "markdown-it-prism": "^2.3.0",
51
+ "postcss": "^8.4.21",
52
+ "postcss-html": "^1.5.0",
53
+ "postcss-preset-env": "^7.8.3",
54
+ "prism-themes": "^1.9.0",
55
+ "prismjs": "1.29.0",
56
+ "remark": "^14.0.2",
57
+ "remark-frontmatter": "^4.0.1",
58
+ "remark-gfm": "^3.0.1",
59
+ "remark-lint": "^9.1.1",
60
+ "sass": "^1.57.1",
61
+ "stylelint": "^14.16.1",
62
+ "stylelint-config-prettier": "^9.0.4",
63
+ "stylelint-config-recommended-scss": "^8.0.0",
64
+ "stylelint-config-recommended-vue": "^1.4.0",
65
+ "stylelint-config-standard-scss": "^6.1.0",
66
+ "unplugin-auto-import": "^0.12.1",
67
+ "unplugin-vue-components": "^0.22.12",
68
+ "vite": "^4.0.4",
69
+ "vite-plugin-css-export": "^1.2.1",
70
+ "vite-plugin-eslint": "^1.8.1",
71
+ "vite-plugin-handlebars": "^1.6.0",
72
+ "vite-plugin-markdown": "^2.1.0",
73
+ "vite-plugin-pages": "^0.28.0",
74
+ "vite-plugin-stylelint": "^4.1.6",
75
+ "vite-plugin-vue-layouts": "^0.7.0",
76
+ "vite-ssg": "^0.22.1",
77
+ "vite-ssg-sitemap": "^0.4.3",
78
+ "vue": "^3.2.45",
79
+ "vue-live": "2.3.2",
80
+ "vue-router": "^4.1.6"
81
+ },
16
82
  "exports": {
17
83
  ".": "./dist/volver.css",
18
84
  "./scss/context": "./src/_context.scss",
@@ -147,64 +213,6 @@
147
213
  "./scss/utilities/typography": "./src/utilities/typography.scss",
148
214
  "./scss": "./src/volver.scss"
149
215
  },
150
- "repository": {
151
- "type": "git",
152
- "url": "https://github.com/volverjs/style"
153
- },
154
- "keywords": [
155
- "css",
156
- "design-system",
157
- "volverjs"
158
- ],
159
- "author": "24/Consulting",
160
- "license": "MIT",
161
- "bugs": {
162
- "url": "https://github.com/volverjs/style/issues"
163
- },
164
- "homepage": "https://github.com/volverjs/style#readme",
165
- "devDependencies": {
166
- "@iconify/vue": "^4.0.2",
167
- "@vitejs/plugin-vue": "^4.0.0",
168
- "@vueuse/core": "^9.10.0",
169
- "@vueuse/head": "^1.0.22",
170
- "eslint": "^8.32.0",
171
- "eslint-config-prettier": "^8.6.0",
172
- "eslint-plugin-vue": "^9.9.0",
173
- "glob": "^8.1.0",
174
- "icss-utils": "^5.1.0",
175
- "markdown-it-anchor": "^8.6.6",
176
- "markdown-it-prism": "^2.3.0",
177
- "postcss": "^8.4.21",
178
- "postcss-html": "^1.5.0",
179
- "postcss-preset-env": "^7.8.3",
180
- "prism-themes": "^1.9.0",
181
- "prismjs": "1.29.0",
182
- "remark": "^14.0.2",
183
- "remark-frontmatter": "^4.0.1",
184
- "remark-gfm": "^3.0.1",
185
- "remark-lint": "^9.1.1",
186
- "sass": "^1.57.1",
187
- "stylelint": "^14.16.1",
188
- "stylelint-config-prettier": "^9.0.4",
189
- "stylelint-config-recommended-scss": "^8.0.0",
190
- "stylelint-config-recommended-vue": "^1.4.0",
191
- "stylelint-config-standard-scss": "^6.1.0",
192
- "unplugin-auto-import": "^0.12.1",
193
- "unplugin-vue-components": "^0.22.12",
194
- "vite": "^4.0.4",
195
- "vite-plugin-css-export": "^1.2.1",
196
- "vite-plugin-eslint": "^1.8.1",
197
- "vite-plugin-handlebars": "^1.6.0",
198
- "vite-plugin-markdown": "^2.1.0",
199
- "vite-plugin-pages": "^0.28.0",
200
- "vite-plugin-stylelint": "^4.1.6",
201
- "vite-plugin-vue-layouts": "^0.7.0",
202
- "vite-ssg": "^0.22.1",
203
- "vite-ssg-sitemap": "^0.4.3",
204
- "vue": "^3.2.45",
205
- "vue-live": "2.3.2",
206
- "vue-router": "^4.1.6"
207
- },
208
216
  "scripts": {
209
217
  "dev": "vite --port 3000 --open",
210
218
  "build": "node ./scripts/build.js",
@@ -36,7 +36,13 @@ $component-selector: '.#{ $component-name}';
36
36
  $selector: $component-selector,
37
37
  $enabled: $zero-specificity-for-components
38
38
  ) {
39
- &:where(a[href], button, input[type='button'], input[type='submit'], input[type='reset']),
39
+ &:where(
40
+ a[href],
41
+ button,
42
+ input[type='button'],
43
+ input[type='submit'],
44
+ input[type='reset']
45
+ ),
40
46
  &::file-selector-button {
41
47
  @extend %#{$component-name};
42
48
  }
package/src/reset.scss CHANGED
@@ -2,8 +2,20 @@
2
2
  Remove all the styles of the "User-Agent-Stylesheet", except for the 'display' property
3
3
  - The "symbol *" part is to solve Firefox SVG sprite bug
4
4
  */
5
- *:where(:not(html, iframe, canvas, img, svg, video, details, summary, svg
6
- *, symbol *)) {
5
+ *:where(
6
+ :not(
7
+ html,
8
+ iframe,
9
+ canvas,
10
+ img,
11
+ svg,
12
+ video,
13
+ details,
14
+ summary,
15
+ svg *,
16
+ symbol *
17
+ )
18
+ ) {
7
19
  all: unset;
8
20
  display: revert;
9
21
  }
@@ -52,6 +52,7 @@ $vv-button: (
52
52
  flex-shrink: 0,
53
53
  stroke-linecap: round,
54
54
  stroke-linejoin: round,
55
+ [min-height]: calc(1em * var(--button-line-height)),
55
56
  ),
56
57
  label: (
57
58
  white-space: nowrap,
@@ -64,7 +65,7 @@ $vv-button: (
64
65
  icon-only: (
65
66
  element: (
66
67
  icon: (
67
- margin-inline: calc(var(--spacing-9) * -1),
68
+ margin-inline: calc(var(--spacing-6) * -1),
68
69
  ),
69
70
  ),
70
71
  ),
@@ -312,7 +313,7 @@ $vv-button: (
312
313
  ),
313
314
  column: (
314
315
  flex-direction: column,
315
- gap: 0.2em,
316
+ gap: var(--spacing-2),
316
317
  ),
317
318
  full-bleed: (
318
319
  min-width: 20ch,
@@ -27,7 +27,7 @@ $vv-input-text: (
27
27
  background-color: var(--input-background-color),
28
28
  will-change: background-color,
29
29
  transition: var(--transition-colors),
30
- min-height: var(--spacing-50),
30
+ min-height: var(--input-min-height),
31
31
  pseudo: (
32
32
  before: (
33
33
  position: absolute,
@@ -280,8 +280,6 @@ $vv-input-text: (
280
280
  label: (
281
281
  position: absolute,
282
282
  z-index: 1,
283
- display: flex,
284
- align-items: center,
285
283
  min-height: var(--input-min-height),
286
284
  pointer-events: none,
287
285
  font-size: inherit,
@@ -79,7 +79,7 @@ $vv-select: (
79
79
  background-repeat: no-repeat,
80
80
  [background-position]: right var(--input-spacing-right) center,
81
81
  background-size: 1em,
82
- min-height: var(--spacing-50),
82
+ min-height: var(--input-min-height),
83
83
  state: (
84
84
  disabled: (
85
85
  cursor: not-allowed,
@@ -201,6 +201,7 @@ $vv-select: (
201
201
  label: (
202
202
  position: absolute,
203
203
  z-index: 1,
204
+ min-height: var(--input-min-height),
204
205
  pointer-events: none,
205
206
  font-size: inherit,
206
207
  [padding-top]: var(--input-spacing-top),
@@ -34,7 +34,7 @@ $vv-textarea: (
34
34
  background-color: var(--input-background-color),
35
35
  will-change: background-color,
36
36
  transition: var(--transition-colors),
37
- min-height: var(--spacing-50),
37
+ min-height: var(--input-min-height),
38
38
  pseudo: (
39
39
  before: (
40
40
  position: absolute,
@@ -210,6 +210,7 @@ $vv-textarea: (
210
210
  label: (
211
211
  position: absolute,
212
212
  z-index: 1,
213
+ min-height: var(--input-min-height),
213
214
  pointer-events: none,
214
215
  font-size: inherit,
215
216
  [padding-top]: var(--input-spacing-top),