@volverjs/style 0.1.2-beta.24 → 0.1.2-beta.26
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/dist/components/vv-accordion.css +1 -1
- package/dist/components/vv-button.css +1 -1
- package/dist/components/vv-dialog.css +1 -1
- package/dist/components/vv-input-checkbox.css +1 -1
- package/dist/components/vv-input-radio.css +1 -1
- package/dist/components/vv-input-text.css +1 -1
- package/dist/components/vv-nav.css +1 -1
- package/dist/components/vv-select.css +1 -1
- package/dist/components/vv-skeleton.css +1 -0
- package/dist/components/vv-textarea.css +1 -1
- package/dist/components/vv-tooltip.css +1 -1
- package/dist/components.css +1 -1
- package/dist/export.css +1 -1
- package/dist/props/transitions.css +1 -0
- package/dist/props.css +1 -1
- package/dist/utilities/borders.css +1 -1
- package/dist/utilities/interactivity.css +1 -0
- package/dist/utilities/transitions.css +1 -1
- package/dist/utilities/typography.css +1 -1
- package/dist/utilities.css +1 -1
- package/dist/volver.css +1 -1
- package/package.json +22 -20
- package/src/_config.scss +3 -2
- package/src/components/index.scss +1 -0
- package/src/components/vv-accordion.scss +1 -1
- package/src/components/vv-alert.scss +1 -1
- package/src/components/vv-avatar.scss +1 -1
- package/src/components/vv-badge.scss +1 -1
- package/src/components/vv-breadcrumb.scss +1 -1
- package/src/components/vv-button-group.scss +9 -9
- package/src/components/vv-button.scss +2 -6
- package/src/components/vv-card.scss +1 -1
- package/src/components/vv-dialog.scss +1 -1
- package/src/components/vv-dropdown.scss +1 -1
- package/src/components/vv-input-checkbox-group.scss +1 -1
- package/src/components/vv-input-checkbox.scss +3 -3
- package/src/components/vv-input-radio-group.scss +1 -1
- package/src/components/vv-input-radio.scss +2 -2
- package/src/components/vv-input-text.scss +4 -4
- package/src/components/vv-nav.scss +1 -1
- package/src/components/vv-progress.scss +1 -1
- package/src/components/vv-select.scss +4 -4
- package/src/components/vv-skeleton.scss +14 -0
- package/src/components/vv-tab.scss +1 -1
- package/src/components/vv-table.scss +1 -1
- package/src/components/vv-text.scss +1 -1
- package/src/components/vv-textarea.scss +4 -4
- package/src/components/vv-toast.scss +1 -1
- package/src/components/vv-tooltip.scss +3 -3
- package/src/export.scss +2 -2
- package/src/props/index.scss +3 -3
- package/src/props/{animation.scss → transitions.scss} +41 -1
- package/src/settings/_index.scss +8 -7
- package/src/settings/_interactivity.scss +39 -0
- package/src/settings/_transitions.scss +4 -1
- package/src/settings/components/_vv-accordion.scss +2 -2
- package/src/settings/components/_vv-button.scss +1 -1
- package/src/settings/components/_vv-dialog.scss +63 -87
- package/src/settings/components/_vv-input-checkbox.scss +2 -2
- package/src/settings/components/_vv-input-radio.scss +1 -1
- package/src/settings/components/_vv-input-text.scss +8 -11
- package/src/settings/components/_vv-nav.scss +1 -1
- package/src/settings/components/_vv-select.scss +9 -9
- package/src/settings/components/_vv-skeleton.scss +21 -0
- package/src/settings/components/_vv-textarea.scss +7 -7
- package/src/settings/components/_vv-tooltip.scss +1 -1
- package/src/tools/_mixins.scss +95 -0
- package/src/utilities/borders.scss +5 -0
- package/src/utilities/index.scss +2 -2
- package/src/utilities/{animation.scss → interactivity.scss} +5 -4
- package/src/utilities/transitions.scss +17 -1
- package/src/utilities/typography.scss +1 -0
- package/dist/props/animation.css +0 -1
- package/dist/utilities/animation.css +0 -1
- package/src/settings/_animation.scss +0 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volverjs/style",
|
|
3
|
-
"version": "0.1.2-beta.
|
|
3
|
+
"version": "0.1.2-beta.26",
|
|
4
4
|
"description": "@volverjs/style is a lightweight responsive CSS utility library to accompany @volverjs/ui and static webpages as well.",
|
|
5
5
|
"main": "dist/style.css",
|
|
6
6
|
"style": "dist/style.css",
|
|
@@ -59,6 +59,8 @@
|
|
|
59
59
|
"./scss/components/vv-progress": "./src/components/vv-progress.scss",
|
|
60
60
|
"./components/vv-select": "./dist/components/vv-select.css",
|
|
61
61
|
"./scss/components/vv-select": "./src/components/vv-select.scss",
|
|
62
|
+
"./components/vv-skeleton": "./dist/components/vv-skeleton.css",
|
|
63
|
+
"./scss/components/vv-skeleton": "./src/components/vv-skeleton.scss",
|
|
62
64
|
"./components/vv-tab": "./dist/components/vv-tab.css",
|
|
63
65
|
"./scss/components/vv-tab": "./src/components/vv-tab.scss",
|
|
64
66
|
"./components/vv-table": "./dist/components/vv-table.css",
|
|
@@ -73,8 +75,6 @@
|
|
|
73
75
|
"./scss/components/vv-tooltip": "./src/components/vv-tooltip.scss",
|
|
74
76
|
"./export": "./dist/export.css",
|
|
75
77
|
"./scss/export": "./src/export.scss",
|
|
76
|
-
"./props/animation": "./dist/props/animation.css",
|
|
77
|
-
"./scss/props/animation": "./src/props/animation.scss",
|
|
78
78
|
"./props/background": "./dist/props/background.css",
|
|
79
79
|
"./scss/props/background": "./src/props/background.scss",
|
|
80
80
|
"./props/borders": "./dist/props/borders.css",
|
|
@@ -97,6 +97,8 @@
|
|
|
97
97
|
"./scss/props/sizing": "./src/props/sizing.scss",
|
|
98
98
|
"./props/spacing": "./dist/props/spacing.css",
|
|
99
99
|
"./scss/props/spacing": "./src/props/spacing.scss",
|
|
100
|
+
"./props/transitions": "./dist/props/transitions.css",
|
|
101
|
+
"./scss/props/transitions": "./src/props/transitions.scss",
|
|
100
102
|
"./props/typography": "./dist/props/typography.css",
|
|
101
103
|
"./scss/props/typography": "./src/props/typography.scss",
|
|
102
104
|
"./reset": "./dist/reset.css",
|
|
@@ -107,8 +109,6 @@
|
|
|
107
109
|
"./scss/themes/dark/props": "./src/themes/dark/props/index.scss",
|
|
108
110
|
"./themes/dark": "./dist/themes/dark/volver.css",
|
|
109
111
|
"./scss/themes/dark": "./src/themes/dark/volver.scss",
|
|
110
|
-
"./utilities/animation": "./dist/utilities/animation.css",
|
|
111
|
-
"./scss/utilities/animation": "./src/utilities/animation.scss",
|
|
112
112
|
"./utilities/backgrounds": "./dist/utilities/backgrounds.css",
|
|
113
113
|
"./scss/utilities/backgrounds": "./src/utilities/backgrounds.scss",
|
|
114
114
|
"./utilities/borders": "./dist/utilities/borders.css",
|
|
@@ -125,6 +125,8 @@
|
|
|
125
125
|
"./scss/utilities/grid": "./src/utilities/grid.scss",
|
|
126
126
|
"./utilities": "./dist/utilities.css",
|
|
127
127
|
"./scss/utilities": "./src/utilities/index.scss",
|
|
128
|
+
"./utilities/interactivity": "./dist/utilities/interactivity.css",
|
|
129
|
+
"./scss/utilities/interactivity": "./src/utilities/interactivity.scss",
|
|
128
130
|
"./utilities/layout": "./dist/utilities/layout.css",
|
|
129
131
|
"./scss/utilities/layout": "./src/utilities/layout.scss",
|
|
130
132
|
"./utilities/sizing": "./dist/utilities/sizing.css",
|
|
@@ -153,42 +155,42 @@
|
|
|
153
155
|
},
|
|
154
156
|
"homepage": "https://github.com/volverjs/style#readme",
|
|
155
157
|
"devDependencies": {
|
|
156
|
-
"@iconify/vue": "^4.0.
|
|
157
|
-
"@vitejs/plugin-vue": "^
|
|
158
|
+
"@iconify/vue": "^4.0.2",
|
|
159
|
+
"@vitejs/plugin-vue": "^4.0.0",
|
|
158
160
|
"@vueuse/core": "^9.6.0",
|
|
159
|
-
"@vueuse/head": "^1.0.
|
|
160
|
-
"eslint": "^8.
|
|
161
|
+
"@vueuse/head": "^1.0.22",
|
|
162
|
+
"eslint": "^8.29.0",
|
|
161
163
|
"eslint-config-prettier": "^8.5.0",
|
|
162
164
|
"eslint-plugin-vue": "^9.8.0",
|
|
163
165
|
"glob": "^8.0.3",
|
|
164
166
|
"icss-utils": "^5.1.0",
|
|
165
167
|
"markdown-it-anchor": "^8.6.5",
|
|
166
168
|
"markdown-it-prism": "^2.3.0",
|
|
167
|
-
"postcss": "^8.4.
|
|
169
|
+
"postcss": "^8.4.20",
|
|
168
170
|
"postcss-html": "^1.5.0",
|
|
169
171
|
"postcss-preset-env": "^7.8.3",
|
|
170
172
|
"prism-themes": "^1.9.0",
|
|
171
173
|
"prismjs": "1.29.0",
|
|
172
|
-
"sass": "^1.56.
|
|
173
|
-
"stylelint": "^14.
|
|
174
|
+
"sass": "^1.56.2",
|
|
175
|
+
"stylelint": "^14.16.0",
|
|
174
176
|
"stylelint-config-prettier": "^9.0.4",
|
|
175
177
|
"stylelint-config-recommended-scss": "^8.0.0",
|
|
176
178
|
"stylelint-config-recommended-vue": "^1.4.0",
|
|
177
179
|
"stylelint-config-standard-scss": "^6.1.0",
|
|
178
|
-
"unplugin-auto-import": "^0.
|
|
179
|
-
"unplugin-vue-components": "^0.22.
|
|
180
|
-
"vite": "^
|
|
181
|
-
"vite-plugin-css-export": "^1.2.
|
|
180
|
+
"unplugin-auto-import": "^0.12.1",
|
|
181
|
+
"unplugin-vue-components": "^0.22.12",
|
|
182
|
+
"vite": "^4.0.1",
|
|
183
|
+
"vite-plugin-css-export": "^1.2.1",
|
|
182
184
|
"vite-plugin-eslint": "^1.8.1",
|
|
183
185
|
"vite-plugin-handlebars": "^1.6.0",
|
|
184
186
|
"vite-plugin-markdown": "^2.1.0",
|
|
185
|
-
"vite-plugin-pages": "^0.
|
|
186
|
-
"vite-plugin-stylelint": "^
|
|
187
|
+
"vite-plugin-pages": "^0.28.0",
|
|
188
|
+
"vite-plugin-stylelint": "^4.1.3",
|
|
187
189
|
"vite-plugin-vue-layouts": "^0.7.0",
|
|
188
|
-
"vite-ssg": "^0.22.
|
|
190
|
+
"vite-ssg": "^0.22.1",
|
|
189
191
|
"vite-ssg-sitemap": "^0.4.3",
|
|
190
192
|
"vue": "^3.2.45",
|
|
191
|
-
"vue-live": "2.
|
|
193
|
+
"vue-live": "2.3.2",
|
|
192
194
|
"vue-router": "^4.1.6"
|
|
193
195
|
},
|
|
194
196
|
"scripts": {
|
package/src/_config.scss
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// use custom props for components
|
|
2
2
|
$use-custom-props-for-components: true !default;
|
|
3
3
|
|
|
4
|
-
// enable zero specificity for
|
|
5
|
-
$zero-specificity-for-
|
|
4
|
+
// enable zero specificity for components
|
|
5
|
+
$zero-specificity-for-components: true !default;
|
|
6
6
|
|
|
7
7
|
// enable zero specificity for utilities
|
|
8
8
|
$zero-specificity-for-utilities: true !default;
|
|
@@ -30,6 +30,7 @@ $components-names: (
|
|
|
30
30
|
vv-nav: $components-prefix + -nav,
|
|
31
31
|
vv-progress: $components-prefix + -progress,
|
|
32
32
|
vv-select: $components-prefix + -select,
|
|
33
|
+
vv-skeleton: $components-prefix + -skeleton,
|
|
33
34
|
vv-tab: $components-prefix + -tab,
|
|
34
35
|
vv-table: $components-prefix + -table,
|
|
35
36
|
vv-text: $components-prefix + -text,
|
|
@@ -8,6 +8,6 @@ $component-map: $vv-accordion;
|
|
|
8
8
|
$map: $component-map,
|
|
9
9
|
$block: $component-name,
|
|
10
10
|
$props: $use-custom-props-for-components,
|
|
11
|
-
$zero-specificity: $zero-specificity-for-
|
|
11
|
+
$zero-specificity: $zero-specificity-for-components,
|
|
12
12
|
$bps: $breakpoints
|
|
13
13
|
);
|
|
@@ -8,6 +8,6 @@ $component-map: $vv-breadcrumb;
|
|
|
8
8
|
$map: $component-map,
|
|
9
9
|
$block: $component-name,
|
|
10
10
|
$props: $use-custom-props-for-components,
|
|
11
|
-
$zero-specificity: $zero-specificity-for-
|
|
11
|
+
$zero-specificity: $zero-specificity-for-components,
|
|
12
12
|
$bps: $breakpoints
|
|
13
13
|
);
|
|
@@ -11,7 +11,7 @@ $button-component-selector: '.' + $button-component-name;
|
|
|
11
11
|
$map: $component-map,
|
|
12
12
|
$block: $component-name,
|
|
13
13
|
$props: $use-custom-props-for-components,
|
|
14
|
-
$zero-specificity: $zero-specificity-for-
|
|
14
|
+
$zero-specificity: $zero-specificity-for-components,
|
|
15
15
|
$bps: $breakpoints
|
|
16
16
|
);
|
|
17
17
|
|
|
@@ -23,7 +23,7 @@ $button-component-selector: '.' + $button-component-name;
|
|
|
23
23
|
@include wrap-with-where(
|
|
24
24
|
$selector:
|
|
25
25
|
'&.active, &#{$button-component-selector}--active, &:active',
|
|
26
|
-
$enabled: $zero-specificity-for-
|
|
26
|
+
$enabled: $zero-specificity-for-components
|
|
27
27
|
) {
|
|
28
28
|
z-index: 1;
|
|
29
29
|
}
|
|
@@ -32,7 +32,7 @@ $button-component-selector: '.' + $button-component-name;
|
|
|
32
32
|
|
|
33
33
|
@include wrap-with-where(
|
|
34
34
|
$selector: $button-component-selector,
|
|
35
|
-
$enabled: $zero-specificity-for-
|
|
35
|
+
$enabled: $zero-specificity-for-components
|
|
36
36
|
) {
|
|
37
37
|
flex: 1;
|
|
38
38
|
}
|
|
@@ -49,7 +49,7 @@ $button-component-selector: '.' + $button-component-name;
|
|
|
49
49
|
// clear top border-radius for first child
|
|
50
50
|
@include wrap-with-where(
|
|
51
51
|
$selector: '&:not(:first-child)',
|
|
52
|
-
$enabled: $zero-specificity-for-
|
|
52
|
+
$enabled: $zero-specificity-for-components
|
|
53
53
|
) {
|
|
54
54
|
border-top-right-radius: 0;
|
|
55
55
|
border-top-left-radius: 0;
|
|
@@ -58,7 +58,7 @@ $button-component-selector: '.' + $button-component-name;
|
|
|
58
58
|
// clear bottom border-radius for last child
|
|
59
59
|
@include wrap-with-where(
|
|
60
60
|
$selector: '&:not(:last-child)',
|
|
61
|
-
$enabled: $zero-specificity-for-
|
|
61
|
+
$enabled: $zero-specificity-for-components
|
|
62
62
|
) {
|
|
63
63
|
border-bottom-right-radius: 0;
|
|
64
64
|
border-bottom-left-radius: 0;
|
|
@@ -68,7 +68,7 @@ $button-component-selector: '.' + $button-component-name;
|
|
|
68
68
|
@if map.get($vv-button, '--button-border-width') {
|
|
69
69
|
@include wrap-with-where(
|
|
70
70
|
$selector: '&:not(:last-child, :last-child)',
|
|
71
|
-
$enabled: $zero-specificity-for-
|
|
71
|
+
$enabled: $zero-specificity-for-components
|
|
72
72
|
) {
|
|
73
73
|
margin-block: calc(var(--button-border-width) * -1);
|
|
74
74
|
}
|
|
@@ -82,7 +82,7 @@ $button-component-selector: '.' + $button-component-name;
|
|
|
82
82
|
// clear left border-radius for first child
|
|
83
83
|
@include wrap-with-where(
|
|
84
84
|
$selector: '&:not(:first-child)',
|
|
85
|
-
$enabled: $zero-specificity-for-
|
|
85
|
+
$enabled: $zero-specificity-for-components
|
|
86
86
|
) {
|
|
87
87
|
border-top-left-radius: 0;
|
|
88
88
|
border-bottom-left-radius: 0;
|
|
@@ -91,7 +91,7 @@ $button-component-selector: '.' + $button-component-name;
|
|
|
91
91
|
// clear right border-radius for first child
|
|
92
92
|
@include wrap-with-where(
|
|
93
93
|
$selector: '&:not(:last-child)',
|
|
94
|
-
$enabled: $zero-specificity-for-
|
|
94
|
+
$enabled: $zero-specificity-for-components
|
|
95
95
|
) {
|
|
96
96
|
border-top-right-radius: 0;
|
|
97
97
|
border-bottom-right-radius: 0;
|
|
@@ -101,7 +101,7 @@ $button-component-selector: '.' + $button-component-name;
|
|
|
101
101
|
@if map.get($vv-button, '--button-border-width') {
|
|
102
102
|
@include wrap-with-where(
|
|
103
103
|
$selector: '&:not(:last-child, :last-child)',
|
|
104
|
-
$enabled: $zero-specificity-for-
|
|
104
|
+
$enabled: $zero-specificity-for-components
|
|
105
105
|
) {
|
|
106
106
|
margin-inline: calc(var(--button-border-width) * -1);
|
|
107
107
|
}
|
|
@@ -9,7 +9,7 @@ $component-selector: '.#{ $component-name}';
|
|
|
9
9
|
$map: $component-map,
|
|
10
10
|
$block: $component-name,
|
|
11
11
|
$props: $use-custom-props-for-components,
|
|
12
|
-
$zero-specificity: $zero-specificity-for-
|
|
12
|
+
$zero-specificity: $zero-specificity-for-components,
|
|
13
13
|
$custom-block: true,
|
|
14
14
|
$bps: $breakpoints
|
|
15
15
|
) {
|
|
@@ -30,15 +30,11 @@ $component-selector: '.#{ $component-name}';
|
|
|
30
30
|
$prefix: $component-name,
|
|
31
31
|
$props: $use-custom-props-for-components
|
|
32
32
|
);
|
|
33
|
-
|
|
34
|
-
@media (prefers-reduced-motion: reduce) {
|
|
35
|
-
transition: none;
|
|
36
|
-
}
|
|
37
33
|
}
|
|
38
34
|
|
|
39
35
|
@include wrap-with-where(
|
|
40
36
|
$selector: $component-selector,
|
|
41
|
-
$enabled: $zero-specificity-for-
|
|
37
|
+
$enabled: $zero-specificity-for-components
|
|
42
38
|
) {
|
|
43
39
|
&:where(a[href], button, input[type='button'], input[type='submit'], input[type='reset']),
|
|
44
40
|
&::file-selector-button {
|
|
@@ -8,6 +8,6 @@ $component-map: $vv-input-checkbox-group;
|
|
|
8
8
|
$map: $component-map,
|
|
9
9
|
$block: $component-name,
|
|
10
10
|
$props: $use-custom-props-for-components,
|
|
11
|
-
$zero-specificity: $zero-specificity-for-
|
|
11
|
+
$zero-specificity: $zero-specificity-for-components,
|
|
12
12
|
$bps: $breakpoints
|
|
13
13
|
);
|
|
@@ -9,13 +9,13 @@ $component-selector: '.#{ $component-name}';
|
|
|
9
9
|
$map: $component-map,
|
|
10
10
|
$block: $component-name,
|
|
11
11
|
$props: $use-custom-props-for-components,
|
|
12
|
-
$zero-specificity: $zero-specificity-for-
|
|
12
|
+
$zero-specificity: $zero-specificity-for-components,
|
|
13
13
|
$bps: $breakpoints
|
|
14
14
|
);
|
|
15
15
|
|
|
16
16
|
@include wrap-with-where(
|
|
17
17
|
$selector: '#{$component-selector}:has(> input[type="checkbox"]:disabled)',
|
|
18
|
-
$enabled: $zero-specificity-for-
|
|
18
|
+
$enabled: $zero-specificity-for-components
|
|
19
19
|
) {
|
|
20
20
|
@extend %#{$component-name}--disabled !optional;
|
|
21
21
|
}
|
|
@@ -23,7 +23,7 @@ $component-selector: '.#{ $component-name}';
|
|
|
23
23
|
@include wrap-with-where(
|
|
24
24
|
$selector:
|
|
25
25
|
'#{$component-selector}:has(> input[type="checkbox"]:indeterminate)',
|
|
26
|
-
$enabled: $zero-specificity-for-
|
|
26
|
+
$enabled: $zero-specificity-for-components
|
|
27
27
|
) {
|
|
28
28
|
@extend %#{$component-name}--indeterminate !optional;
|
|
29
29
|
}
|
|
@@ -8,6 +8,6 @@ $component-map: $vv-input-radio-group;
|
|
|
8
8
|
$map: $component-map,
|
|
9
9
|
$block: $component-name,
|
|
10
10
|
$props: $use-custom-props-for-components,
|
|
11
|
-
$zero-specificity: $zero-specificity-for-
|
|
11
|
+
$zero-specificity: $zero-specificity-for-components,
|
|
12
12
|
$bps: $breakpoints
|
|
13
13
|
);
|
|
@@ -9,13 +9,13 @@ $component-selector: '.#{ $component-name}';
|
|
|
9
9
|
$map: $component-map,
|
|
10
10
|
$block: $component-name,
|
|
11
11
|
$props: $use-custom-props-for-components,
|
|
12
|
-
$zero-specificity: $zero-specificity-for-
|
|
12
|
+
$zero-specificity: $zero-specificity-for-components,
|
|
13
13
|
$bps: $breakpoints
|
|
14
14
|
);
|
|
15
15
|
|
|
16
16
|
@include wrap-with-where(
|
|
17
17
|
$selector: '#{$component-selector}:has(> input[type="radio"]:disabled)',
|
|
18
|
-
$enabled: $zero-specificity-for-
|
|
18
|
+
$enabled: $zero-specificity-for-components
|
|
19
19
|
) {
|
|
20
20
|
@extend %#{$component-name}--disabled !optional;
|
|
21
21
|
}
|
|
@@ -9,7 +9,7 @@ $component-selector: '.#{ $component-name}';
|
|
|
9
9
|
$map: $component-map,
|
|
10
10
|
$block: $component-name,
|
|
11
11
|
$props: $use-custom-props-for-components,
|
|
12
|
-
$zero-specificity: $zero-specificity-for-
|
|
12
|
+
$zero-specificity: $zero-specificity-for-components,
|
|
13
13
|
$bps: $breakpoints
|
|
14
14
|
);
|
|
15
15
|
|
|
@@ -17,7 +17,7 @@ $component-selector: '.#{ $component-name}';
|
|
|
17
17
|
@each $state in ('disabled', 'readonly') {
|
|
18
18
|
@include wrap-with-where(
|
|
19
19
|
$selector: '#{$component-selector}:has(input:#{$state})',
|
|
20
|
-
$enabled: $zero-specificity-for-
|
|
20
|
+
$enabled: $zero-specificity-for-components
|
|
21
21
|
) {
|
|
22
22
|
@extend %#{$component-name}--#{$state} !optional;
|
|
23
23
|
}
|
|
@@ -29,7 +29,7 @@ $component-selector: '.#{ $component-name}';
|
|
|
29
29
|
@include wrap-with-where(
|
|
30
30
|
$selector:
|
|
31
31
|
'#{$component-selector}:has(input:#{$state}) #{$component-selector}__#{$element}',
|
|
32
|
-
$enabled: $zero-specificity-for-
|
|
32
|
+
$enabled: $zero-specificity-for-components
|
|
33
33
|
) {
|
|
34
34
|
@extend %#{$component-name}-state-#{$state}__#{$element}
|
|
35
35
|
!optional;
|
|
@@ -39,7 +39,7 @@ $component-selector: '.#{ $component-name}';
|
|
|
39
39
|
@include wrap-with-where(
|
|
40
40
|
$selector:
|
|
41
41
|
'#{$component-selector}:has(input:#{$state}) #{$component-selector}__#{$element}:#{$elementState}',
|
|
42
|
-
$enabled: $zero-specificity-for-
|
|
42
|
+
$enabled: $zero-specificity-for-components
|
|
43
43
|
) {
|
|
44
44
|
@extend %#{$component-name}-state-#{$state}-element-#{$element}--#{$elementState}
|
|
45
45
|
!optional;
|
|
@@ -9,7 +9,7 @@ $component-selector: '.#{ $component-name}';
|
|
|
9
9
|
$map: $component-map,
|
|
10
10
|
$block: $component-name,
|
|
11
11
|
$props: $use-custom-props-for-components,
|
|
12
|
-
$zero-specificity: $zero-specificity-for-
|
|
12
|
+
$zero-specificity: $zero-specificity-for-components,
|
|
13
13
|
$bps: $breakpoints
|
|
14
14
|
);
|
|
15
15
|
|
|
@@ -17,7 +17,7 @@ $component-selector: '.#{ $component-name}';
|
|
|
17
17
|
@each $state in ('disabled') {
|
|
18
18
|
@include wrap-with-where(
|
|
19
19
|
$selector: '#{$component-selector}:has(select:#{$state})',
|
|
20
|
-
$enabled: $zero-specificity-for-
|
|
20
|
+
$enabled: $zero-specificity-for-components
|
|
21
21
|
) {
|
|
22
22
|
@extend %#{$component-name}--#{$state} !optional;
|
|
23
23
|
}
|
|
@@ -29,7 +29,7 @@ $component-selector: '.#{ $component-name}';
|
|
|
29
29
|
@include wrap-with-where(
|
|
30
30
|
$selector:
|
|
31
31
|
'#{$component-selector}:has(select:#{$state}) #{$component-selector}__#{$element}',
|
|
32
|
-
$enabled: $zero-specificity-for-
|
|
32
|
+
$enabled: $zero-specificity-for-components
|
|
33
33
|
) {
|
|
34
34
|
@extend %#{$component-name}-state-#{$state}__#{$element}
|
|
35
35
|
!optional;
|
|
@@ -39,7 +39,7 @@ $component-selector: '.#{ $component-name}';
|
|
|
39
39
|
@include wrap-with-where(
|
|
40
40
|
$selector:
|
|
41
41
|
'#{$component-selector}:has(select:#{$state}) #{$component-selector}__#{$element}:#{$elementState}',
|
|
42
|
-
$enabled: $zero-specificity-for-
|
|
42
|
+
$enabled: $zero-specificity-for-components
|
|
43
43
|
) {
|
|
44
44
|
@extend %#{$component-name}-state-#{$state}-element-#{$element}--#{$elementState}
|
|
45
45
|
!optional;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../context' as *;
|
|
3
|
+
|
|
4
|
+
$component-name: map.get($components-names, vv-skeleton);
|
|
5
|
+
$component-map: $vv-skeleton;
|
|
6
|
+
$component-selector: '.#{ $component-name}';
|
|
7
|
+
|
|
8
|
+
@include spread-map-into-bem(
|
|
9
|
+
$map: $component-map,
|
|
10
|
+
$block: $component-name,
|
|
11
|
+
$props: $use-custom-props-for-components,
|
|
12
|
+
$zero-specificity: $zero-specificity-for-components,
|
|
13
|
+
$bps: $breakpoints
|
|
14
|
+
);
|
|
@@ -9,7 +9,7 @@ $component-selector: '.#{ $component-name}';
|
|
|
9
9
|
$map: $component-map,
|
|
10
10
|
$block: $component-name,
|
|
11
11
|
$props: $use-custom-props-for-components,
|
|
12
|
-
$zero-specificity: $zero-specificity-for-
|
|
12
|
+
$zero-specificity: $zero-specificity-for-components,
|
|
13
13
|
$bps: $breakpoints
|
|
14
14
|
);
|
|
15
15
|
|
|
@@ -17,7 +17,7 @@ $component-selector: '.#{ $component-name}';
|
|
|
17
17
|
@each $state in ('disabled', 'readonly') {
|
|
18
18
|
@include wrap-with-where(
|
|
19
19
|
$selector: '#{$component-selector}:has(textarea:#{$state})',
|
|
20
|
-
$enabled: $zero-specificity-for-
|
|
20
|
+
$enabled: $zero-specificity-for-components
|
|
21
21
|
) {
|
|
22
22
|
@extend %#{$component-name}--#{$state} !optional;
|
|
23
23
|
}
|
|
@@ -29,7 +29,7 @@ $component-selector: '.#{ $component-name}';
|
|
|
29
29
|
@include wrap-with-where(
|
|
30
30
|
$selector:
|
|
31
31
|
'#{$component-selector}:has(textarea:#{$state}) #{$component-selector}__#{$element}',
|
|
32
|
-
$enabled: $zero-specificity-for-
|
|
32
|
+
$enabled: $zero-specificity-for-components
|
|
33
33
|
) {
|
|
34
34
|
@extend %#{$component-name}-state-#{$state}__#{$element}
|
|
35
35
|
!optional;
|
|
@@ -39,7 +39,7 @@ $component-selector: '.#{ $component-name}';
|
|
|
39
39
|
@include wrap-with-where(
|
|
40
40
|
$selector:
|
|
41
41
|
'#{$component-selector}:has(textarea:#{$state}) #{$component-selector}__#{$element}:#{$elementState}',
|
|
42
|
-
$enabled: $zero-specificity-for-
|
|
42
|
+
$enabled: $zero-specificity-for-components
|
|
43
43
|
) {
|
|
44
44
|
@extend %#{$component-name}-state-#{$state}-element-#{$element}--#{$elementState}
|
|
45
45
|
!optional;
|
|
@@ -9,20 +9,20 @@ $component-selector: '.#{ $component-name}';
|
|
|
9
9
|
$map: $component-map,
|
|
10
10
|
$block: $component-name,
|
|
11
11
|
$props: $use-custom-props-for-components,
|
|
12
|
-
$zero-specificity: $zero-specificity-for-
|
|
12
|
+
$zero-specificity: $zero-specificity-for-components,
|
|
13
13
|
$bps: $breakpoints
|
|
14
14
|
);
|
|
15
15
|
|
|
16
16
|
@include wrap-with-where(
|
|
17
17
|
$selector: '*:has(#{$component-selector})',
|
|
18
|
-
$enabled: $zero-specificity-for-
|
|
18
|
+
$enabled: $zero-specificity-for-components
|
|
19
19
|
) {
|
|
20
20
|
position: relative;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
@include wrap-with-where(
|
|
24
24
|
$selector: '*:has(> #{$component-selector})',
|
|
25
|
-
$enabled: $zero-specificity-for-
|
|
25
|
+
$enabled: $zero-specificity-for-components
|
|
26
26
|
) {
|
|
27
27
|
&:hover,
|
|
28
28
|
&:focus-visible,
|
package/src/export.scss
CHANGED
|
@@ -219,7 +219,7 @@
|
|
|
219
219
|
// width spacer
|
|
220
220
|
@each $key, $value in $width {
|
|
221
221
|
$name: meta.inspect($key);
|
|
222
|
-
$name: str-replace($name, '\\/', '
|
|
222
|
+
$name: str-replace($name, '\\/', '_');
|
|
223
223
|
|
|
224
224
|
#{'width-spacer__' + $name}: $value;
|
|
225
225
|
}
|
|
@@ -227,7 +227,7 @@
|
|
|
227
227
|
// height spacer
|
|
228
228
|
@each $key, $value in $height {
|
|
229
229
|
$name: meta.inspect($key);
|
|
230
|
-
$name: str-replace($name, '\\/', '
|
|
230
|
+
$name: str-replace($name, '\\/', '_');
|
|
231
231
|
|
|
232
232
|
#{'height-spacer__' + $name}: $value;
|
|
233
233
|
}
|
package/src/props/index.scss
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
@use 'animation';
|
|
2
1
|
@use 'background';
|
|
3
2
|
@use 'borders';
|
|
4
3
|
@use 'colors';
|
|
5
4
|
@use 'effects';
|
|
6
5
|
@use 'filters';
|
|
6
|
+
@use 'input';
|
|
7
7
|
@use 'layout';
|
|
8
8
|
@use 'media';
|
|
9
|
+
@use 'sizing';
|
|
9
10
|
@use 'spacing';
|
|
11
|
+
@use 'transitions';
|
|
10
12
|
@use 'typography';
|
|
11
|
-
@use 'sizing';
|
|
12
|
-
@use 'input';
|