@volverjs/style 0.1.7 → 0.1.8

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.7",
27
+ "version": "0.1.8",
28
28
  "engines": {
29
29
  "node": ">= 12.x"
30
30
  },
@@ -37,11 +37,11 @@
37
37
  "dist/*"
38
38
  ],
39
39
  "devDependencies": {
40
- "@iconify/vue": "^4.0.2",
40
+ "@iconify/vue": "^4.1.0",
41
41
  "@vitejs/plugin-vue": "^4.0.0",
42
- "@vueuse/core": "^9.11.0",
43
- "@vueuse/head": "^1.0.22",
44
- "eslint": "^8.32.0",
42
+ "@vueuse/core": "^9.12.0",
43
+ "@vueuse/head": "^1.0.24",
44
+ "eslint": "^8.33.0",
45
45
  "eslint-config-prettier": "^8.6.0",
46
46
  "eslint-plugin-vue": "^9.9.0",
47
47
  "glob": "^8.1.0",
@@ -50,32 +50,32 @@
50
50
  "markdown-it-prism": "^2.3.0",
51
51
  "postcss": "^8.4.21",
52
52
  "postcss-html": "^1.5.0",
53
- "postcss-preset-env": "^7.8.3",
53
+ "postcss-preset-env": "^8.0.1",
54
54
  "prism-themes": "^1.9.0",
55
55
  "prismjs": "1.29.0",
56
56
  "remark": "^14.0.2",
57
57
  "remark-frontmatter": "^4.0.1",
58
58
  "remark-gfm": "^3.0.1",
59
59
  "remark-lint": "^9.1.1",
60
- "sass": "^1.57.1",
60
+ "sass": "^1.58.0",
61
61
  "stylelint": "^14.16.1",
62
62
  "stylelint-config-prettier": "^9.0.4",
63
63
  "stylelint-config-recommended-scss": "^8.0.0",
64
64
  "stylelint-config-recommended-vue": "^1.4.0",
65
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",
66
+ "unplugin-auto-import": "^0.13.0",
67
+ "unplugin-vue-components": "^0.23.0",
68
+ "vite": "^4.1.1",
69
69
  "vite-plugin-css-export": "^1.2.1",
70
70
  "vite-plugin-eslint": "^1.8.1",
71
71
  "vite-plugin-handlebars": "^1.6.0",
72
72
  "vite-plugin-markdown": "^2.1.0",
73
73
  "vite-plugin-pages": "^0.28.0",
74
- "vite-plugin-stylelint": "^4.1.6",
74
+ "vite-plugin-stylelint": "^4.1.8",
75
75
  "vite-plugin-vue-layouts": "^0.7.0",
76
76
  "vite-ssg": "^0.22.1",
77
77
  "vite-ssg-sitemap": "^0.4.3",
78
- "vue": "^3.2.45",
78
+ "vue": "^3.2.47",
79
79
  "vue-live": "2.3.2",
80
80
  "vue-router": "^4.1.6"
81
81
  },
@@ -87,6 +87,8 @@
87
87
  "./scss/mixins": "./src/tools/_mixins.scss",
88
88
  "./scss/settings": "./src/settings/_index.scss",
89
89
  "./scss/preflight": "./src/_preflight.scss",
90
+ "./base": "./dist/base.css",
91
+ "./scss/base": "./src/base.scss",
90
92
  "./components": "./dist/components.css",
91
93
  "./scss/components": "./src/components/index.scss",
92
94
  "./components/vv-accordion-group": "./dist/components/vv-accordion-group.css",
@@ -117,6 +119,8 @@
117
119
  "./scss/components/vv-dialog": "./src/components/vv-dialog.scss",
118
120
  "./components/vv-dropdown-action": "./dist/components/vv-dropdown-action.css",
119
121
  "./scss/components/vv-dropdown-action": "./src/components/vv-dropdown-action.scss",
122
+ "./components/vv-dropdown-option": "./dist/components/vv-dropdown-option.css",
123
+ "./scss/components/vv-dropdown-option": "./src/components/vv-dropdown-option.scss",
120
124
  "./components/vv-dropdown": "./dist/components/vv-dropdown.css",
121
125
  "./scss/components/vv-dropdown": "./src/components/vv-dropdown.scss",
122
126
  "./components/vv-input-text": "./dist/components/vv-input-text.css",
package/src/_config.scss CHANGED
@@ -23,6 +23,7 @@ $components-names: (
23
23
  vv-dialog: $components-prefix + -dialog,
24
24
  vv-dropdown: $components-prefix + -dropdown,
25
25
  vv-dropdown-action: $components-prefix + -dropdown-action,
26
+ vv-dropdown-option: $components-prefix + -dropdown-option,
26
27
  vv-checkbox-group: $components-prefix + -checkbox-group,
27
28
  vv-checkbox: $components-prefix + -checkbox,
28
29
  vv-radio-group: $components-prefix + -radio-group,
@@ -1,16 +1,6 @@
1
1
  @use 'sass:map';
2
2
  @use 'context' as *;
3
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
4
  :where(.preflight) {
15
5
  :not(.preflight-revert *) {
16
6
  // typography
package/src/base.scss ADDED
@@ -0,0 +1,15 @@
1
+ // reset
2
+ @use 'reset';
3
+
4
+ // props
5
+ @use 'props';
6
+
7
+ :where(:host, :root, .theme) {
8
+ accent-color: var(--color-brand);
9
+ background: var(--color-surface);
10
+ caret-color: var(--color-brand);
11
+ color-scheme: var(--color-scheme);
12
+ color: var(--color-word);
13
+ scrollbar-color: var(--color-brand);
14
+ font-family: var(--font-sans);
15
+ }
@@ -9,6 +9,7 @@
9
9
  @use 'vv-dialog';
10
10
  @use 'vv-dropdown';
11
11
  @use 'vv-dropdown-action';
12
+ @use 'vv-dropdown-option';
12
13
  @use 'vv-checkbox-group';
13
14
  @use 'vv-checkbox';
14
15
  @use 'vv-radio-group';
@@ -0,0 +1,13 @@
1
+ @use 'sass:map';
2
+ @use '../context' as *;
3
+
4
+ $component-name: map.get($components-names, vv-dropdown-option);
5
+ $component-map: $vv-dropdown-option;
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
+ );
@@ -29,6 +29,7 @@
29
29
  @forward 'components/vv-dialog';
30
30
  @forward 'components/vv-dropdown';
31
31
  @forward 'components/vv-dropdown-action';
32
+ @forward 'components/vv-dropdown-option';
32
33
  @forward 'components/vv-checkbox-group';
33
34
  @forward 'components/vv-checkbox';
34
35
  @forward 'components/vv-radio-group';
@@ -11,7 +11,7 @@ $input: (
11
11
  gap: var(--spacing-md),
12
12
  line-height: var(--leading-normal),
13
13
  font-size: var(--text-16),
14
- min-height: var(--spacing-50),
14
+ min-height: var(--spacing-52),
15
15
  min-width: 0,
16
16
  label: (
17
17
  color: var(--color-word-2),
@@ -29,6 +29,7 @@ $spacing: (
29
29
  44: 2.75rem,
30
30
  48: 3rem,
31
31
  50: 3.125rem,
32
+ 52: 3.25rem,
32
33
  56: 3.5rem,
33
34
  64: 4rem,
34
35
  80: 5rem,
@@ -1,52 +1,26 @@
1
1
  $vv-dropdown-action: (
2
2
  display: flex,
3
- min-width: 0,
3
+ width: 100%,
4
4
  overflow: hidden,
5
5
  gap: var(--spacing-sm),
6
6
  align-items: center,
7
7
  padding: var(--spacing-sm),
8
+ color: var(--color-brand),
9
+ cursor: pointer,
8
10
  state: (
9
11
  disabled: (
10
12
  opacity: var(--opacity-50),
11
13
  cursor: not-allowed,
12
- pointer-events: none,
13
14
  ),
14
- focus-visible: (
15
- background-color: var(--color-surface-success),
16
- color: var(--color-success),
17
- element: (
18
- hint: (
19
- opacity: var(--opacity-100),
20
- ),
21
- ),
22
- ),
23
- selected: (
24
- font-weight: var(--font-bold),
15
+ hover: (
25
16
  background-color: var(--color-surface-brand),
26
- color: var(--color-brand),
27
17
  ),
28
- ),
29
- modifier: (
30
- unselectable: (
31
- state: (
32
- focus-visible: (
33
- background-color: var(--color-surface-danger),
34
- color: var(--color-danger),
35
- ),
36
- ),
18
+ focus-visible: (
19
+ outline: var(--spacing-px) solid var(--color-brand),
20
+ outline-offset: calc(var(--spacing-px) * -1),
37
21
  ),
38
- ),
39
- element: (
40
- hint: (
41
- opacity: var(--opacity-0),
42
- transition: var(--transition-opacity),
43
- will-change: opacity,
44
- margin-left: auto,
45
- font-size: 0.8em,
46
- font-weight: var(--font-normal),
47
- text-overflow: ellipsis,
48
- white-space: nowrap,
49
- overflow: hidden,
22
+ pressed: (
23
+ background-color: var(--color-surface-2),
50
24
  ),
51
25
  ),
52
26
  ) !default;
@@ -0,0 +1,63 @@
1
+ $vv-dropdown-option: (
2
+ display: flex,
3
+ min-width: 0,
4
+ overflow: hidden,
5
+ gap: var(--spacing-sm),
6
+ align-items: center,
7
+ padding: var(--spacing-sm),
8
+ state: (
9
+ disabled: (
10
+ opacity: var(--opacity-50),
11
+ cursor: not-allowed,
12
+ pointer-events: none,
13
+ ),
14
+ focus-visible: (
15
+ background-color: var(--color-surface-success),
16
+ color: var(--color-success),
17
+ element: (
18
+ hint: (
19
+ opacity: var(--opacity-100),
20
+ ),
21
+ ),
22
+ ),
23
+ selected: (
24
+ font-weight: var(--font-bold),
25
+ background-color: var(--color-surface-brand),
26
+ color: var(--color-brand),
27
+ ),
28
+ ),
29
+ modifier: (
30
+ unselectable: (
31
+ state: (
32
+ focus-visible: (
33
+ background-color: var(--color-surface-danger),
34
+ color: var(--color-danger),
35
+ ),
36
+ ),
37
+ ),
38
+ inert: (
39
+ cursor: default,
40
+ color: var(--color-word-3),
41
+ font-size: 0.8em,
42
+ state: (
43
+ focus-visible: (
44
+ background-color: transparent,
45
+ color: var(--color-word-3),
46
+ ),
47
+ ),
48
+ ),
49
+ ),
50
+ element: (
51
+ hint: (
52
+ opacity: var(--opacity-0),
53
+ transition: var(--transition-opacity),
54
+ will-change: opacity,
55
+ margin-left: auto,
56
+ font-size: 0.8em,
57
+ font-weight: var(--font-normal),
58
+ text-overflow: ellipsis,
59
+ white-space: nowrap,
60
+ overflow: hidden,
61
+ ),
62
+ ),
63
+ ) !default;
@@ -6,12 +6,12 @@ $vv-dropdown: (
6
6
  flex-direction: column,
7
7
  box-shadow: var(--shadow-lg),
8
8
  width: 'max-content',
9
- overflow: auto,
10
9
  element: (
11
10
  list: (
12
11
  _alias: 'ul',
13
12
  [border-radius]: var(--dropdown-border-radius),
14
13
  background-color: var(--color-surface-1),
14
+ overflow: auto,
15
15
  ),
16
16
  item: (
17
17
  _alias: 'li',
@@ -14,15 +14,9 @@
14
14
  // container
15
15
  %container {
16
16
  width: 100%;
17
-
18
- @each $breakpoint, $value in $breakpoints {
19
- @if $value > 0 {
20
- @include media-breakpoint-up($breakpoint, $breakpoints) {
21
- max-width: $value;
22
- }
23
- }
24
- }
17
+ max-width: var(--breakpoint-value, 100%);
25
18
  }
19
+
26
20
  @include wrap-with-where(
27
21
  $selector: '.container',
28
22
  $enabled: $zero-specificity-for-utilities
package/src/volver.scss CHANGED
@@ -1,8 +1,5 @@
1
- // reset
2
- @use 'reset';
3
-
4
- // props
5
- @use 'props';
1
+ // base
2
+ @use 'base';
6
3
 
7
4
  // components
8
5
  @use 'components';