@volverjs/style 0.1.9-beta.6 → 0.1.9-beta.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.
Files changed (32) hide show
  1. package/dist/base.css +1 -1
  2. package/dist/components/vv-alert-group.css +1 -0
  3. package/dist/components/vv-alert.css +1 -1
  4. package/dist/components/vv-dropdown-optgroup.css +1 -1
  5. package/dist/components/vv-dropdown-option.css +1 -1
  6. package/dist/components/vv-input-text.css +1 -1
  7. package/dist/components/vv-radio.css +1 -1
  8. package/dist/components/vv-select.css +1 -1
  9. package/dist/components/vv-table.css +1 -1
  10. package/dist/components/vv-textarea.css +1 -1
  11. package/dist/components.css +1 -1
  12. package/dist/props/input.css +1 -1
  13. package/dist/props.css +1 -1
  14. package/dist/volver.css +1 -1
  15. package/package.json +21 -21
  16. package/src/_config.scss +1 -1
  17. package/src/components/index.scss +1 -1
  18. package/src/components/{vv-toast.scss → vv-alert-group.scss} +2 -2
  19. package/src/settings/_index.scss +1 -1
  20. package/src/settings/_input.scss +19 -19
  21. package/src/settings/components/_vv-alert-group.scss +171 -0
  22. package/src/settings/components/_vv-alert.scss +254 -58
  23. package/src/settings/components/_vv-dropdown-optgroup.scss +0 -1
  24. package/src/settings/components/_vv-dropdown-option.scss +6 -2
  25. package/src/settings/components/_vv-input-text.scss +2 -2
  26. package/src/settings/components/_vv-radio.scss +5 -3
  27. package/src/settings/components/_vv-select.scss +3 -1
  28. package/src/settings/components/_vv-table.scss +5 -0
  29. package/src/settings/components/_vv-textarea.scss +2 -2
  30. package/src/tools/_mixins.scss +28 -14
  31. package/dist/components/vv-toast.css +0 -1
  32. package/src/settings/components/_vv-toast.scss +0 -259
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.9-beta.6",
27
+ "version": "0.1.9-beta.8",
28
28
  "engines": {
29
29
  "node": ">= 12.x"
30
30
  },
@@ -37,35 +37,35 @@
37
37
  "dist/*"
38
38
  ],
39
39
  "devDependencies": {
40
- "@iconify/vue": "^4.1.0",
41
- "@vitejs/plugin-vue": "^4.1.0",
42
- "@vueuse/core": "^9.13.0",
43
- "@vueuse/head": "^1.1.23",
44
- "eslint": "^8.36.0",
40
+ "@iconify/vue": "^4.1.1",
41
+ "@vitejs/plugin-vue": "^4.2.1",
42
+ "@vueuse/core": "^10.1.2",
43
+ "@vueuse/head": "^1.1.26",
44
+ "eslint": "^8.39.0",
45
45
  "eslint-config-prettier": "^8.8.0",
46
- "eslint-plugin-vue": "^9.9.0",
47
- "glob": "^9.3.1",
46
+ "eslint-plugin-vue": "^9.11.0",
47
+ "glob": "^10.2.2",
48
48
  "icss-utils": "^5.1.0",
49
49
  "markdown-it-anchor": "^8.6.7",
50
50
  "markdown-it-prism": "^2.3.0",
51
- "postcss": "^8.4.21",
51
+ "postcss": "^8.4.23",
52
52
  "postcss-html": "^1.5.0",
53
- "postcss-preset-env": "^8.0.1",
53
+ "postcss-preset-env": "^8.3.2",
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.59.3",
61
- "stylelint": "^15.3.0",
60
+ "sass": "^1.62.1",
61
+ "stylelint": "^15.6.1",
62
62
  "stylelint-config-prettier": "^9.0.5",
63
- "stylelint-config-recommended-scss": "^9.0.1",
63
+ "stylelint-config-recommended-scss": "^11.0.0",
64
64
  "stylelint-config-recommended-vue": "^1.4.0",
65
- "stylelint-config-standard-scss": "^7.0.1",
66
- "unplugin-auto-import": "^0.15.1",
65
+ "stylelint-config-standard-scss": "^9.0.0",
66
+ "unplugin-auto-import": "^0.15.3",
67
67
  "unplugin-vue-components": "^0.24.1",
68
- "vite": "^4.2.1",
68
+ "vite": "^4.3.5",
69
69
  "vite-plugin-css-export": "^2.0.0",
70
70
  "vite-plugin-eslint": "^1.8.1",
71
71
  "vite-plugin-handlebars": "^1.6.0",
@@ -73,10 +73,10 @@
73
73
  "vite-plugin-pages": "^0.29.0",
74
74
  "vite-plugin-stylelint": "^4.3.0",
75
75
  "vite-plugin-vue-layouts": "^0.8.0",
76
- "vite-ssg": "^0.22.1",
77
- "vite-ssg-sitemap": "^0.4.3",
76
+ "vite-ssg": "^0.22.2",
77
+ "vite-ssg-sitemap": "^0.5.0",
78
78
  "vue": "^3.2.47",
79
- "vue-live": "2.4.10",
79
+ "vue-live": "2.5.1",
80
80
  "vue-router": "^4.1.6"
81
81
  },
82
82
  "exports": {
@@ -156,8 +156,6 @@
156
156
  "./scss/props/background": "./src/props/background.scss",
157
157
  "./components/vv-tooltip": "./dist/components/vv-tooltip.css",
158
158
  "./scss/components/vv-tooltip": "./src/components/vv-tooltip.scss",
159
- "./components/vv-toast": "./dist/components/vv-toast.css",
160
- "./scss/components/vv-toast": "./src/components/vv-toast.scss",
161
159
  "./components/vv-textarea": "./dist/components/vv-textarea.css",
162
160
  "./scss/components/vv-textarea": "./src/components/vv-textarea.scss",
163
161
  "./components/vv-text": "./dist/components/vv-text.css",
@@ -210,6 +208,8 @@
210
208
  "./scss/components/vv-avatar-group": "./src/components/vv-avatar-group.scss",
211
209
  "./components/vv-alert": "./dist/components/vv-alert.css",
212
210
  "./scss/components/vv-alert": "./src/components/vv-alert.scss",
211
+ "./components/vv-alert-group": "./dist/components/vv-alert-group.css",
212
+ "./scss/components/vv-alert-group": "./src/components/vv-alert-group.scss",
213
213
  "./components/vv-accordion": "./dist/components/vv-accordion.css",
214
214
  "./scss/components/vv-accordion": "./src/components/vv-accordion.scss",
215
215
  "./components/vv-accordion-group": "./dist/components/vv-accordion-group.css",
package/src/_config.scss CHANGED
@@ -15,6 +15,7 @@ $components-names: (
15
15
  vv-accordion-group: $components-prefix + -accordion-group,
16
16
  vv-accordion: $components-prefix + -accordion,
17
17
  vv-alert: $components-prefix + -alert,
18
+ vv-alert-group: $components-prefix + -alert-group,
18
19
  vv-badge: $components-prefix + -badge,
19
20
  vv-breadcrumb: $components-prefix + -breadcrumb,
20
21
  vv-button-group: $components-prefix + -button-group,
@@ -40,6 +41,5 @@ $components-names: (
40
41
  vv-table: $components-prefix + -table,
41
42
  vv-text: $components-prefix + -text,
42
43
  vv-textarea: $components-prefix + -textarea,
43
- vv-toast: $components-prefix + -toast,
44
44
  vv-tooltip: $components-prefix + -tooltip,
45
45
  ) !default;
@@ -1,6 +1,7 @@
1
1
  @use 'vv-accordion';
2
2
  @use 'vv-accordion-group';
3
3
  @use 'vv-alert';
4
+ @use 'vv-alert-group';
4
5
  @use 'vv-badge';
5
6
  @use 'vv-breadcrumb';
6
7
  @use 'vv-button';
@@ -27,4 +28,3 @@
27
28
  @use 'vv-text';
28
29
  @use 'vv-textarea';
29
30
  @use 'vv-tooltip';
30
- @use 'vv-toast';
@@ -1,8 +1,8 @@
1
1
  @use 'sass:map';
2
2
  @use '../context' as *;
3
3
 
4
- $component-name: map.get($components-names, vv-toast);
5
- $component-map: $vv-toast;
4
+ $component-name: map.get($components-names, vv-alert-group);
5
+ $component-map: $vv-alert-group;
6
6
 
7
7
  @include spread-map-into-bem(
8
8
  $map: $component-map,
@@ -21,6 +21,7 @@
21
21
  @forward 'components/vv-accordion';
22
22
  @forward 'components/vv-accordion-group';
23
23
  @forward 'components/vv-alert';
24
+ @forward 'components/vv-alert-group';
24
25
  @forward 'components/vv-badge';
25
26
  @forward 'components/vv-breadcrumb';
26
27
  @forward 'components/vv-button';
@@ -46,5 +47,4 @@
46
47
  @forward 'components/vv-table';
47
48
  @forward 'components/vv-text';
48
49
  @forward 'components/vv-textarea';
49
- @forward 'components/vv-toast';
50
50
  @forward 'components/vv-tooltip';
@@ -1,45 +1,45 @@
1
1
  $input: (
2
+ background-color-focus: var(--color-surface-2),
3
+ background-color-hover: var(--color-surface-3),
4
+ background-color: var(--color-surface-1),
5
+ color: var(--color-word),
2
6
  display: flex,
3
- flex: 1,
4
7
  flex-direction: column,
5
- spacing-top: var(--spacing-sm),
6
- spacing-right: var(--spacing-sm),
7
- spacing-bottom: var(--spacing-sm),
8
- spacing-left: var(--spacing-sm),
9
- color: var(--color-word),
10
- background-color: var(--color-surface-1),
11
- background-color-hover: var(--color-surface-3),
12
- background-color-focus: var(--color-surface-2),
8
+ flex: 1,
9
+ font-size: var(--text-16),
13
10
  gap: var(--spacing-md),
14
11
  line-height: var(--leading-normal),
15
- font-size: var(--text-16),
16
12
  min-height: var(--spacing-52),
17
13
  min-width: 0,
14
+ spacing-bottom: var(--spacing-sm),
15
+ spacing-left: var(--spacing-sm),
16
+ spacing-right: var(--spacing-sm),
17
+ spacing-top: var(--spacing-sm),
18
+ text-overflow: ellipsis,
18
19
  label: (
19
20
  color: var(--color-word-2),
20
21
  display: inline,
21
22
  font-size: var(--text-xs),
22
23
  gap: var(--spacing-xs),
23
- white-space: nowrap,
24
- text-overflow: ellipsis,
25
- overflow: hidden,
26
24
  max-width: 100%,
25
+ overflow: hidden,
26
+ text-overflow: ellipsis,
27
+ white-space: nowrap,
27
28
  ),
28
29
  icon: (
30
+ margin: 0 var(--spacing-sm),
31
+ pointer-events: none,
29
32
  position: absolute,
30
33
  width: 1em,
31
- pointer-events: none,
32
- margin: 0 var(--spacing-sm),
33
34
  ),
34
35
  hint: (
36
+ color: var(--color-word-2),
35
37
  display: block,
36
38
  font-size: var(--text-12),
37
- color: var(--color-word-2),
38
39
  gap: var(--spacing-8),
39
- white-space: nowrap,
40
- text-overflow: ellipsis,
41
40
  overflow: hidden,
42
- max-width: 100%,
41
+ text-overflow: ellipsis,
42
+ white-space: nowrap,
43
43
  ),
44
44
  placeholder: (
45
45
  color: var(--color-word-4),
@@ -0,0 +1,171 @@
1
+ $vv-alert-group: (
2
+ position: relative,
3
+ z-index: var(--z-notification-alert),
4
+ display: flex,
5
+ flex-direction: column,
6
+ gap: var(--spacing-sm),
7
+ element: (
8
+ list: (
9
+ _alias: '> ul',
10
+ display: flex,
11
+ flex-direction: column,
12
+ gap: var(--spacing-xs),
13
+ ),
14
+ item: (
15
+ _alias: '> ul > li',
16
+ transition: var(--transition-all),
17
+ ),
18
+ not-first: (
19
+ _alias: '> ul > li:not(:first-child)',
20
+ ),
21
+ nth-1: (
22
+ --alert-counter: 1,
23
+ _alias: '> ul > li:nth-child(1)',
24
+ ),
25
+ nth-2: (
26
+ --alert-counter: 2,
27
+ _alias: '> ul > li:nth-child(2)',
28
+ ),
29
+ nth-3: (
30
+ --alert-counter: 3,
31
+ _alias: '> ul > li:nth-child(3)',
32
+ ),
33
+ nth-4: (
34
+ --alert-counter: 4,
35
+ _alias: '> ul > li:nth-child(4)',
36
+ ),
37
+ nth-5: (
38
+ --alert-counter: 5,
39
+ _alias: '> ul > li:nth-child(5)',
40
+ ),
41
+ nth-other: (
42
+ _alias: '> ul > li:nth-child(n+6)',
43
+ ),
44
+ ),
45
+ modifier: (
46
+ fixed: (
47
+ position: fixed,
48
+ ),
49
+ absolute: (
50
+ position: absolute,
51
+ ),
52
+ reverse: (
53
+ flex-flow: column-reverse,
54
+ element: (
55
+ list: (
56
+ flex-flow: column-reverse,
57
+ ),
58
+ ),
59
+ ),
60
+ top-start: (
61
+ inset-block: var(--spacing-lg) auto,
62
+ inset-inline: var(--spacing-lg) auto,
63
+ ),
64
+ top-middle: (
65
+ inset-block: var(--spacing-lg) auto,
66
+ inset-inline: 50% auto,
67
+ transform: translateX(-50%),
68
+ ),
69
+ top-end: (
70
+ inset-block: var(--spacing-lg) auto,
71
+ inset-inline: auto var(--spacing-lg),
72
+ ),
73
+ center-start: (
74
+ inset-block: 50% auto,
75
+ transform: translateY(-50%),
76
+ inset-inline: var(--spacing-lg) auto,
77
+ ),
78
+ center-middle: (
79
+ inset-block: 50% auto,
80
+ inset-inline: 50% auto,
81
+ transform: translate(-50%, -50%),
82
+ ),
83
+ center-end: (
84
+ inset-block: 50% auto,
85
+ transform: translateY(-50%),
86
+ inset-inline: auto var(--spacing-lg),
87
+ ),
88
+ bottom-start: (
89
+ inset-block: auto var(--spacing-lg),
90
+ inset-inline: var(--spacing-lg) auto,
91
+ ),
92
+ bottom-middle: (
93
+ inset-block: auto var(--spacing-lg),
94
+ inset-inline: 50% auto,
95
+ transform: translateX(-50%),
96
+ ),
97
+ bottom-end: (
98
+ inset-block: auto var(--spacing-lg),
99
+ inset-inline: auto var(--spacing-lg),
100
+ ),
101
+ full-bleed: (
102
+ width: clamp(15vw, 20rem, 80vw),
103
+ ),
104
+ stack: (
105
+ element: (
106
+ item: (
107
+ flex-wrap: nowrap,
108
+ white-space: nowrap,
109
+ ),
110
+ nth-1: (
111
+ z-index: var(--z-notification-alert),
112
+ ),
113
+ not-first: (
114
+ [transform]:
115
+ translateY(calc(-100% * (var(--alert-counter, 1) - 1)))
116
+ scale(calc(1 - 0.05 * (var(--alert-counter, 1) - 1))),
117
+ [z-index]:
118
+ calc(
119
+ var(--z-notification-alert) -
120
+ var(--alert-counter, 1)
121
+ ),
122
+ filter: grayscale(100%),
123
+ ),
124
+ nth-other: (
125
+ display: none,
126
+ ),
127
+ ),
128
+ state: (
129
+ hover: (
130
+ element: (
131
+ item: (
132
+ flex-wrap: wrap,
133
+ white-space: wrap,
134
+ ),
135
+ not-first: (
136
+ height: auto,
137
+ transform: none,
138
+ filter: none,
139
+ ),
140
+ ),
141
+ ),
142
+ ),
143
+ modifier: (
144
+ reverse: (
145
+ element: (
146
+ not-first: (
147
+ [transform]:
148
+ translateY(
149
+ calc(100% * (var(--alert-counter, 1) - 1))
150
+ )
151
+ scale(
152
+ calc(
153
+ 1 - 0.05 * (var(--alert-counter, 1) - 1)
154
+ )
155
+ ),
156
+ ),
157
+ ),
158
+ state: (
159
+ hover: (
160
+ element: (
161
+ not-first: (
162
+ transform: none,
163
+ ),
164
+ ),
165
+ ),
166
+ ),
167
+ ),
168
+ ),
169
+ ),
170
+ ),
171
+ );