@volverjs/style 0.1.12-beta.2 → 0.1.12-beta.20
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/LICENSE +1 -1
- package/README.md +5 -5
- package/dist/base.css +1 -1
- package/dist/components/vv-accordion-group.css +1 -1
- package/dist/components/vv-accordion.css +1 -1
- package/dist/components/vv-alert-group.css +1 -1
- package/dist/components/vv-alert.css +1 -1
- package/dist/components/vv-avatar-group.css +1 -1
- package/dist/components/vv-avatar.css +1 -1
- package/dist/components/vv-badge.css +1 -1
- package/dist/components/vv-breadcrumb.css +1 -1
- package/dist/components/vv-button-group.css +1 -1
- package/dist/components/vv-button.css +1 -1
- package/dist/components/vv-card.css +1 -1
- package/dist/components/vv-checkbox-group.css +1 -1
- package/dist/components/vv-checkbox.css +1 -1
- package/dist/components/vv-dialog.css +1 -1
- package/dist/components/vv-dropdown-action.css +1 -1
- package/dist/components/vv-dropdown-optgroup.css +1 -1
- package/dist/components/vv-dropdown-option.css +1 -1
- package/dist/components/vv-dropdown.css +1 -1
- package/dist/components/vv-input-file.css +1 -0
- package/dist/components/vv-input-text.css +1 -1
- package/dist/components/vv-nav.css +1 -1
- package/dist/components/vv-progress.css +1 -1
- package/dist/components/vv-radio-group.css +1 -1
- package/dist/components/vv-radio.css +1 -1
- package/dist/components/vv-select.css +1 -1
- package/dist/components/vv-skeleton.css +1 -1
- package/dist/components/vv-tab.css +1 -1
- package/dist/components/vv-table.css +1 -1
- package/dist/components/vv-text.css +1 -1
- 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/background.css +1 -1
- package/dist/props/colors.css +1 -1
- package/dist/props/filters.css +1 -1
- package/dist/props/input.css +1 -1
- package/dist/props/layout.css +1 -1
- package/dist/props/spacing.css +1 -1
- package/dist/props/transitions.css +1 -1
- package/dist/props/typography.css +1 -1
- package/dist/props.css +1 -1
- package/dist/reset.css +1 -1
- package/dist/themes/dark/components.css +1 -1
- package/dist/themes/dark/props.css +1 -1
- package/dist/themes/dark/volver.css +1 -1
- package/dist/utilities/backgrounds.css +1 -1
- package/dist/utilities/colors.css +1 -1
- package/dist/utilities/effects.css +1 -1
- package/dist/utilities/filters.css +1 -1
- package/dist/utilities/interactivity.css +1 -1
- package/dist/utilities/layout.css +1 -1
- package/dist/utilities/sizing.css +1 -1
- package/dist/utilities/transforms.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 +44 -44
- package/src/_config.scss +10 -9
- package/src/_preflight.scss +35 -1
- package/src/components/index.scss +1 -0
- package/src/components/vv-button-group.scss +6 -6
- package/src/components/vv-button.scss +1 -12
- package/src/components/vv-input-file.scss +93 -0
- package/src/components/vv-input-text.scss +54 -11
- package/src/components/vv-select.scss +53 -10
- package/src/components/vv-textarea.scss +53 -10
- package/src/components/vv-tooltip.scss +1 -1
- package/src/export.scss +33 -59
- package/src/props/background.scss +1 -0
- package/src/props/breakpoints.scss +5 -4
- package/src/props/index.scss +0 -1
- package/src/props/spacing.scss +2 -2
- package/src/props/transitions.scss +19 -0
- package/src/props/typography.scss +3 -2
- package/src/settings/_background.scss +228 -0
- package/src/settings/_colors.scss +16 -53
- package/src/settings/_effects.scss +0 -18
- package/src/settings/_filters.scss +15 -0
- package/src/settings/_index.scss +1 -1
- package/src/settings/_input.scss +4 -3
- package/src/settings/_interactivity.scss +14 -0
- package/src/settings/_layout.scss +1 -0
- package/src/settings/_transitions.scss +1 -0
- package/src/settings/_typography.scss +9 -1
- package/src/settings/components/_vv-accordion-group.scss +2 -2
- package/src/settings/components/_vv-accordion.scss +6 -5
- package/src/settings/components/_vv-alert-group.scss +14 -4
- package/src/settings/components/_vv-alert.scss +9 -9
- package/src/settings/components/_vv-avatar-group.scss +1 -0
- package/src/settings/components/_vv-avatar.scss +54 -52
- package/src/settings/components/_vv-badge.scss +67 -27
- package/src/settings/components/_vv-breadcrumb.scss +1 -0
- package/src/settings/components/_vv-button.scss +11 -5
- package/src/settings/components/_vv-card.scss +2 -0
- package/src/settings/components/_vv-checkbox-group.scss +3 -0
- package/src/settings/components/_vv-checkbox.scss +1 -0
- package/src/settings/components/_vv-dialog.scss +4 -0
- package/src/settings/components/_vv-dropdown-option.scss +2 -2
- package/src/settings/components/_vv-dropdown.scss +93 -7
- package/src/settings/components/_vv-input-file.scss +503 -0
- package/src/settings/components/_vv-input-text.scss +5 -1
- package/src/settings/components/_vv-nav.scss +10 -9
- package/src/settings/components/_vv-progress.scss +2 -0
- package/src/settings/components/_vv-radio.scss +3 -2
- package/src/settings/components/_vv-select.scss +6 -1
- package/src/settings/components/_vv-table.scss +19 -1
- package/src/settings/components/_vv-text.scss +1 -0
- package/src/settings/components/_vv-textarea.scss +6 -1
- package/src/themes/dark/components/_vv-avatar.scss +22 -0
- package/src/themes/dark/components/_vv-badge.scss +22 -0
- package/src/themes/dark/components/_vv-dropdown-action.scss +22 -0
- package/src/themes/dark/components/_vv-dropdown-option.scss +22 -0
- package/src/themes/dark/components/_vv-nav.scss +22 -0
- package/src/themes/dark/components/index.scss +6 -1
- package/src/themes/dark/settings/_background.scss +2 -0
- package/src/themes/dark/settings/_colors.scss +4 -38
- package/src/themes/dark/settings/_index.scss +6 -1
- package/src/themes/dark/settings/components/_vv-alert.scss +1 -1
- package/src/themes/dark/settings/components/_vv-avatar.scss +27 -0
- package/src/themes/dark/settings/components/_vv-badge.scss +50 -0
- package/src/themes/dark/settings/components/_vv-button.scss +13 -8
- package/src/themes/dark/settings/components/_vv-dropdown-action.scss +3 -0
- package/src/themes/dark/settings/components/_vv-dropdown-option.scss +19 -0
- package/src/themes/dark/settings/components/_vv-nav.scss +15 -0
- package/src/tools/_breakpoints.scss +13 -4
- package/src/tools/_functions.scss +26 -13
- package/src/tools/_mixins.scss +97 -26
- package/src/utilities/backgrounds.scss +14 -4
- package/src/utilities/flexbox.scss +6 -1
- package/src/utilities/index.scss +0 -1
- package/src/utilities/interactivity.scss +17 -1
- package/src/utilities/layout.scss +9 -3
- package/src/utilities/sizing.scss +10 -2
- package/src/utilities/spacing.scss +10 -1
- package/src/utilities/transforms.scss +2 -2
- package/src/utilities/typography.scss +21 -0
- package/dist/props/gradient.css +0 -1
- package/dist/utilities/gradients.css +0 -1
- package/src/props/gradient.scss +0 -7
- package/src/settings/_gradient.scss +0 -201
- package/src/utilities/gradients.scss +0 -11
package/package.json
CHANGED
|
@@ -24,11 +24,10 @@
|
|
|
24
24
|
"bugs": {
|
|
25
25
|
"url": "https://github.com/volverjs/style/issues"
|
|
26
26
|
},
|
|
27
|
-
"version": "0.1.12-beta.
|
|
27
|
+
"version": "0.1.12-beta.20",
|
|
28
28
|
"engines": {
|
|
29
29
|
"node": ">= 12.x"
|
|
30
30
|
},
|
|
31
|
-
"packageManager": "pnpm@7.8.0",
|
|
32
31
|
"type": "module",
|
|
33
32
|
"main": "dist/volver.css",
|
|
34
33
|
"style": "dist/volver.css",
|
|
@@ -37,47 +36,47 @@
|
|
|
37
36
|
"dist/*"
|
|
38
37
|
],
|
|
39
38
|
"devDependencies": {
|
|
40
|
-
"@iconify/vue": "^4.1.
|
|
41
|
-
"@vitejs/plugin-vue": "^
|
|
42
|
-
"@vueuse/core": "^
|
|
43
|
-
"@vueuse/head": "^
|
|
44
|
-
"eslint": "^
|
|
45
|
-
"eslint-
|
|
46
|
-
"
|
|
47
|
-
"glob": "^10.2.6",
|
|
39
|
+
"@iconify/vue": "^4.1.2",
|
|
40
|
+
"@vitejs/plugin-vue": "^5.1.3",
|
|
41
|
+
"@vueuse/core": "^11.0.3",
|
|
42
|
+
"@vueuse/head": "^2.0.0",
|
|
43
|
+
"eslint-config-prettier": "^9.1.0",
|
|
44
|
+
"eslint-plugin-vue": "^9.27.0",
|
|
45
|
+
"glob": "^11.0.0",
|
|
48
46
|
"icss-utils": "^5.1.0",
|
|
49
|
-
"markdown-it-anchor": "^
|
|
47
|
+
"markdown-it-anchor": "^9.1.0",
|
|
50
48
|
"markdown-it-prism": "^2.3.0",
|
|
51
|
-
"postcss": "^8.4.
|
|
52
|
-
"postcss-html": "^1.
|
|
53
|
-
"postcss-preset-env": "^
|
|
49
|
+
"postcss": "^8.4.41",
|
|
50
|
+
"postcss-html": "^1.7.0",
|
|
51
|
+
"postcss-preset-env": "^10.0.2",
|
|
52
|
+
"prettier": "^3.3.3",
|
|
54
53
|
"prism-themes": "^1.9.0",
|
|
55
54
|
"prismjs": "^1.29.0",
|
|
56
|
-
"
|
|
57
|
-
"remark
|
|
58
|
-
"remark-
|
|
59
|
-
"remark-
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"stylelint
|
|
63
|
-
"stylelint-config-recommended-scss": "^
|
|
64
|
-
"stylelint-config-recommended-vue": "^1.
|
|
65
|
-
"stylelint-config-standard-scss": "^
|
|
66
|
-
"unplugin-auto-import": "^0.
|
|
67
|
-
"unplugin-vue-components": "^0.
|
|
68
|
-
"vite": "^4.
|
|
69
|
-
"vite-plugin-css-export": "^
|
|
55
|
+
"reduce-css-calc": "^2.1.8",
|
|
56
|
+
"remark": "^15.0.1",
|
|
57
|
+
"remark-frontmatter": "^5.0.0",
|
|
58
|
+
"remark-gfm": "^4.0.0",
|
|
59
|
+
"remark-lint": "^10.0.0",
|
|
60
|
+
"sass": "^1.77.8",
|
|
61
|
+
"stylelint": "^16.9.0",
|
|
62
|
+
"stylelint-config-recommended-scss": "^14.1.0",
|
|
63
|
+
"stylelint-config-recommended-vue": "^1.5.0",
|
|
64
|
+
"stylelint-config-standard-scss": "^13.1.0",
|
|
65
|
+
"unplugin-auto-import": "^0.18.2",
|
|
66
|
+
"unplugin-vue-components": "^0.27.4",
|
|
67
|
+
"vite": "^5.4.2",
|
|
68
|
+
"vite-plugin-css-export": "^3.0.0",
|
|
70
69
|
"vite-plugin-eslint": "^1.8.1",
|
|
71
|
-
"vite-plugin-handlebars": "^
|
|
72
|
-
"vite-plugin-markdown": "^2.
|
|
73
|
-
"vite-plugin-pages": "^0.
|
|
74
|
-
"vite-plugin-stylelint": "^
|
|
75
|
-
"vite-plugin-vue-layouts": "^0.
|
|
76
|
-
"vite-ssg": "^0.
|
|
77
|
-
"vite-ssg-sitemap": "^0.
|
|
78
|
-
"vue": "^3.
|
|
79
|
-
"vue-live": "^2.5.
|
|
80
|
-
"vue-router": "^4.
|
|
70
|
+
"vite-plugin-handlebars": "^2.0.0",
|
|
71
|
+
"vite-plugin-markdown": "^2.2.0",
|
|
72
|
+
"vite-plugin-pages": "^0.32.3",
|
|
73
|
+
"vite-plugin-stylelint": "^5.3.1",
|
|
74
|
+
"vite-plugin-vue-layouts": "^0.11.0",
|
|
75
|
+
"vite-ssg": "^0.23.8",
|
|
76
|
+
"vite-ssg-sitemap": "^0.8.1",
|
|
77
|
+
"vue": "^3.4.38",
|
|
78
|
+
"vue-live": "^2.5.4",
|
|
79
|
+
"vue-router": "^4.4.3"
|
|
81
80
|
},
|
|
82
81
|
"exports": {
|
|
83
82
|
".": "./dist/volver.css",
|
|
@@ -87,6 +86,8 @@
|
|
|
87
86
|
"./scss/mixins": "./src/tools/_mixins.scss",
|
|
88
87
|
"./scss/settings": "./src/settings/_index.scss",
|
|
89
88
|
"./scss/preflight": "./src/_preflight.scss",
|
|
89
|
+
"./scss/themes/dark/context": "./src/themes/dark/_context.scss",
|
|
90
|
+
"./scss/themes/dark/settings": "./src/themes/dark/settings/_index.scss",
|
|
90
91
|
"./scss": "./src/volver.scss",
|
|
91
92
|
"./reset": "./dist/reset.css",
|
|
92
93
|
"./scss/reset": "./src/reset.scss",
|
|
@@ -114,8 +115,6 @@
|
|
|
114
115
|
"./scss/utilities": "./src/utilities/index.scss",
|
|
115
116
|
"./utilities/grid": "./dist/utilities/grid.css",
|
|
116
117
|
"./scss/utilities/grid": "./src/utilities/grid.scss",
|
|
117
|
-
"./utilities/gradients": "./dist/utilities/gradients.css",
|
|
118
|
-
"./scss/utilities/gradients": "./src/utilities/gradients.scss",
|
|
119
118
|
"./utilities/flexbox": "./dist/utilities/flexbox.css",
|
|
120
119
|
"./scss/utilities/flexbox": "./src/utilities/flexbox.scss",
|
|
121
120
|
"./utilities/filters": "./dist/utilities/filters.css",
|
|
@@ -144,8 +143,6 @@
|
|
|
144
143
|
"./scss/props/input": "./src/props/input.scss",
|
|
145
144
|
"./props": "./dist/props.css",
|
|
146
145
|
"./scss/props": "./src/props/index.scss",
|
|
147
|
-
"./props/gradient": "./dist/props/gradient.css",
|
|
148
|
-
"./scss/props/gradient": "./src/props/gradient.scss",
|
|
149
146
|
"./props/filters": "./dist/props/filters.css",
|
|
150
147
|
"./scss/props/filters": "./src/props/filters.scss",
|
|
151
148
|
"./props/effects": "./dist/props/effects.css",
|
|
@@ -182,6 +179,8 @@
|
|
|
182
179
|
"./scss/components/vv-nav": "./src/components/vv-nav.scss",
|
|
183
180
|
"./components/vv-input-text": "./dist/components/vv-input-text.css",
|
|
184
181
|
"./scss/components/vv-input-text": "./src/components/vv-input-text.scss",
|
|
182
|
+
"./components/vv-input-file": "./dist/components/vv-input-file.css",
|
|
183
|
+
"./scss/components/vv-input-file": "./src/components/vv-input-file.scss",
|
|
185
184
|
"./components/vv-dropdown": "./dist/components/vv-dropdown.css",
|
|
186
185
|
"./scss/components/vv-dropdown": "./src/components/vv-dropdown.scss",
|
|
187
186
|
"./components/vv-dropdown-option": "./dist/components/vv-dropdown-option.css",
|
|
@@ -230,7 +229,8 @@
|
|
|
230
229
|
"scripts": {
|
|
231
230
|
"dev": "vite --port 3000 --open",
|
|
232
231
|
"build": "node ./scripts/build.js",
|
|
233
|
-
"
|
|
234
|
-
"styleguide": "vite-ssg build"
|
|
232
|
+
"design-tokens": "node ./scripts/generateDesignTokens.js",
|
|
233
|
+
"styleguide": "vite-ssg build",
|
|
234
|
+
"preview": "vite preview"
|
|
235
235
|
}
|
|
236
236
|
}
|
package/src/_config.scss
CHANGED
|
@@ -14,27 +14,28 @@ $components-prefix: vv !default;
|
|
|
14
14
|
$components-names: (
|
|
15
15
|
vv-accordion-group: $components-prefix + -accordion-group,
|
|
16
16
|
vv-accordion: $components-prefix + -accordion,
|
|
17
|
-
vv-alert: $components-prefix + -alert,
|
|
18
17
|
vv-alert-group: $components-prefix + -alert-group,
|
|
18
|
+
vv-alert: $components-prefix + -alert,
|
|
19
|
+
vv-avatar-group: $components-prefix + -avatar-group,
|
|
20
|
+
vv-avatar: $components-prefix + -avatar,
|
|
19
21
|
vv-badge: $components-prefix + -badge,
|
|
20
22
|
vv-breadcrumb: $components-prefix + -breadcrumb,
|
|
21
23
|
vv-button-group: $components-prefix + -button-group,
|
|
22
24
|
vv-button: $components-prefix + -button,
|
|
23
25
|
vv-card: $components-prefix + -card,
|
|
26
|
+
vv-checkbox-group: $components-prefix + -checkbox-group,
|
|
27
|
+
vv-checkbox: $components-prefix + -checkbox,
|
|
24
28
|
vv-dialog: $components-prefix + -dialog,
|
|
25
|
-
vv-dropdown: $components-prefix + -dropdown,
|
|
26
29
|
vv-dropdown-action: $components-prefix + -dropdown-action,
|
|
27
|
-
vv-dropdown-option: $components-prefix + -dropdown-option,
|
|
28
30
|
vv-dropdown-optgroup: $components-prefix + -dropdown-optgroup,
|
|
29
|
-
vv-
|
|
30
|
-
vv-
|
|
31
|
-
vv-
|
|
32
|
-
vv-radio: $components-prefix + -radio,
|
|
33
|
-
vv-avatar: $components-prefix + -avatar,
|
|
34
|
-
vv-avatar-group: $components-prefix + -avatar-group,
|
|
31
|
+
vv-dropdown-option: $components-prefix + -dropdown-option,
|
|
32
|
+
vv-dropdown: $components-prefix + -dropdown,
|
|
33
|
+
vv-input-file: $components-prefix + -input-file,
|
|
35
34
|
vv-input-text: $components-prefix + -input-text,
|
|
36
35
|
vv-nav: $components-prefix + -nav,
|
|
37
36
|
vv-progress: $components-prefix + -progress,
|
|
37
|
+
vv-radio-group: $components-prefix + -radio-group,
|
|
38
|
+
vv-radio: $components-prefix + -radio,
|
|
38
39
|
vv-select: $components-prefix + -select,
|
|
39
40
|
vv-skeleton: $components-prefix + -skeleton,
|
|
40
41
|
vv-tab: $components-prefix + -tab,
|
package/src/_preflight.scss
CHANGED
|
@@ -36,6 +36,8 @@
|
|
|
36
36
|
&:where(p) {
|
|
37
37
|
@extend %vv-text !optional;
|
|
38
38
|
@extend %vv-text--copy !optional;
|
|
39
|
+
@extend %overflow-hidden !optional;
|
|
40
|
+
@extend %text-ellipsis !optional;
|
|
39
41
|
}
|
|
40
42
|
|
|
41
43
|
&:where(blockquote) {
|
|
@@ -53,10 +55,30 @@
|
|
|
53
55
|
@extend %list-disc !optional;
|
|
54
56
|
}
|
|
55
57
|
|
|
56
|
-
&:where(ol) {
|
|
58
|
+
&:where(ol, ol[type='1']) {
|
|
57
59
|
@extend %list-decimal !optional;
|
|
58
60
|
}
|
|
59
61
|
|
|
62
|
+
&:where(ol[type='a']) {
|
|
63
|
+
@extend %list-lower-latin !optional;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&:where(ol[type='A']) {
|
|
67
|
+
@extend %list-upper-latin !optional;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&:where(ol[type='i']) {
|
|
71
|
+
@extend %list-lower-roman !optional;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&:where(ol[type='I']) {
|
|
75
|
+
@extend %list-upper-roman !optional;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&:where(li > p) {
|
|
79
|
+
@extend %inline !optional;
|
|
80
|
+
}
|
|
81
|
+
|
|
60
82
|
&:where(b, strong, th) {
|
|
61
83
|
@extend %font-bold !optional;
|
|
62
84
|
}
|
|
@@ -84,12 +106,17 @@
|
|
|
84
106
|
&:where(abbr) {
|
|
85
107
|
@extend %underline !optional;
|
|
86
108
|
@extend %decoration-dotted !optional;
|
|
109
|
+
@extend %cursor-help !optional;
|
|
87
110
|
}
|
|
88
111
|
|
|
89
112
|
&:where(code) {
|
|
90
113
|
@extend %font-mono !optional;
|
|
91
114
|
}
|
|
92
115
|
|
|
116
|
+
&:where(p > code) {
|
|
117
|
+
@extend %whitespace-nowrap !optional;
|
|
118
|
+
}
|
|
119
|
+
|
|
93
120
|
&:where(sub) {
|
|
94
121
|
@extend %align-sub !optional;
|
|
95
122
|
@extend %text-smaller !optional;
|
|
@@ -213,6 +240,7 @@
|
|
|
213
240
|
// table
|
|
214
241
|
&:where(table) {
|
|
215
242
|
@extend %vv-table !optional;
|
|
243
|
+
@extend %vv-table--bordered !optional;
|
|
216
244
|
|
|
217
245
|
:where(tr) {
|
|
218
246
|
@extend %vv-table__tr !optional;
|
|
@@ -220,10 +248,16 @@
|
|
|
220
248
|
|
|
221
249
|
:where(td) {
|
|
222
250
|
@extend %vv-table__td !optional;
|
|
251
|
+
@extend %vv-table-modifier-bordered__td !optional;
|
|
223
252
|
}
|
|
224
253
|
|
|
225
254
|
:where(th) {
|
|
226
255
|
@extend %vv-table__th !optional;
|
|
256
|
+
@extend %vv-table-modifier-bordered__th !optional;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
:where(caption) {
|
|
260
|
+
@extend %vv-table__caption !optional;
|
|
227
261
|
}
|
|
228
262
|
}
|
|
229
263
|
|
|
@@ -48,7 +48,7 @@ $button-component-selector: '.' + $button-component-name;
|
|
|
48
48
|
#{$button-component-selector} {
|
|
49
49
|
// clear top border-radius for first child
|
|
50
50
|
@include wrap-with-where(
|
|
51
|
-
$selector: '&:not(:first-
|
|
51
|
+
$selector: '&:not(:first-of-type)',
|
|
52
52
|
$enabled: $zero-specificity-for-components
|
|
53
53
|
) {
|
|
54
54
|
border-top-right-radius: 0;
|
|
@@ -57,7 +57,7 @@ $button-component-selector: '.' + $button-component-name;
|
|
|
57
57
|
|
|
58
58
|
// clear bottom border-radius for last child
|
|
59
59
|
@include wrap-with-where(
|
|
60
|
-
$selector: '&:not(:last-
|
|
60
|
+
$selector: '&:not(:last-of-type)',
|
|
61
61
|
$enabled: $zero-specificity-for-components
|
|
62
62
|
) {
|
|
63
63
|
border-bottom-right-radius: 0;
|
|
@@ -67,7 +67,7 @@ $button-component-selector: '.' + $button-component-name;
|
|
|
67
67
|
// clear margin for inner children
|
|
68
68
|
@if map.get($vv-button, '--button-border-width') {
|
|
69
69
|
@include wrap-with-where(
|
|
70
|
-
$selector: '&:not(:
|
|
70
|
+
$selector: '&:not(:first-of-type, :last-of-type)',
|
|
71
71
|
$enabled: $zero-specificity-for-components
|
|
72
72
|
) {
|
|
73
73
|
margin-block: calc(var(--button-border-width) * -1);
|
|
@@ -81,7 +81,7 @@ $button-component-selector: '.' + $button-component-name;
|
|
|
81
81
|
#{$button-component-selector} {
|
|
82
82
|
// clear left border-radius for first child
|
|
83
83
|
@include wrap-with-where(
|
|
84
|
-
$selector: '&:not(:first-
|
|
84
|
+
$selector: '&:not(:first-of-type)',
|
|
85
85
|
$enabled: $zero-specificity-for-components
|
|
86
86
|
) {
|
|
87
87
|
border-top-left-radius: 0;
|
|
@@ -90,7 +90,7 @@ $button-component-selector: '.' + $button-component-name;
|
|
|
90
90
|
|
|
91
91
|
// clear right border-radius for first child
|
|
92
92
|
@include wrap-with-where(
|
|
93
|
-
$selector: '&:not(:last-
|
|
93
|
+
$selector: '&:not(:last-of-type)',
|
|
94
94
|
$enabled: $zero-specificity-for-components
|
|
95
95
|
) {
|
|
96
96
|
border-top-right-radius: 0;
|
|
@@ -100,7 +100,7 @@ $button-component-selector: '.' + $button-component-name;
|
|
|
100
100
|
// clear margin for inner children
|
|
101
101
|
@if map.get($vv-button, '--button-border-width') {
|
|
102
102
|
@include wrap-with-where(
|
|
103
|
-
$selector: '&:not(:
|
|
103
|
+
$selector: '&:not(:first-of-type, :last-of-type)',
|
|
104
104
|
$enabled: $zero-specificity-for-components
|
|
105
105
|
) {
|
|
106
106
|
margin-inline: calc(var(--button-border-width) * -1);
|
|
@@ -42,19 +42,8 @@ $component-selector: '.#{ $component-name}';
|
|
|
42
42
|
input[type='button'],
|
|
43
43
|
input[type='submit'],
|
|
44
44
|
input[type='reset']
|
|
45
|
-
)
|
|
46
|
-
&::file-selector-button {
|
|
45
|
+
) {
|
|
47
46
|
@extend %#{$component-name};
|
|
48
47
|
}
|
|
49
|
-
|
|
50
|
-
// input file
|
|
51
|
-
@if map.get($component-map, 'gap') {
|
|
52
|
-
&::file-selector-button {
|
|
53
|
-
margin-inline-end: var(
|
|
54
|
-
--vv-button-gap,
|
|
55
|
-
map.get($component-map, 'gap')
|
|
56
|
-
);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
48
|
}
|
|
60
49
|
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'sass:list';
|
|
3
|
+
@use '../context' as *;
|
|
4
|
+
|
|
5
|
+
$component-name: map.get($components-names, vv-input-file);
|
|
6
|
+
$component-map: $vv-input-file;
|
|
7
|
+
$component-selector: '.#{$component-name}';
|
|
8
|
+
|
|
9
|
+
@include spread-map-into-bem(
|
|
10
|
+
$map: $component-map,
|
|
11
|
+
$block: $component-name,
|
|
12
|
+
$props: $use-custom-props-for-components,
|
|
13
|
+
$zero-specificity: $zero-specificity-for-components,
|
|
14
|
+
$bps: $breakpoints
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
// disabled and readonly
|
|
18
|
+
@each $state in ('disabled', 'readonly') {
|
|
19
|
+
$selector: '#{$component-selector}:has(input[#{$state}])';
|
|
20
|
+
@include wrap-with-where(
|
|
21
|
+
$selector: $selector,
|
|
22
|
+
$enabled: $zero-specificity-for-components
|
|
23
|
+
) {
|
|
24
|
+
@extend %#{$component-name}--#{$state} !optional;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// element
|
|
28
|
+
@if map.get($component-map, 'state', $state, 'element') {
|
|
29
|
+
@each $element,
|
|
30
|
+
$map in map.get($component-map, 'state', $state, 'element')
|
|
31
|
+
{
|
|
32
|
+
$element-selector: (
|
|
33
|
+
'#{$selector} #{$component-selector}__#{$element}'
|
|
34
|
+
);
|
|
35
|
+
$alias: map.get($component-map, 'element', $element, '_alias');
|
|
36
|
+
@if $alias {
|
|
37
|
+
$element-selector: list.append(
|
|
38
|
+
$element-selector,
|
|
39
|
+
('#{$selector} #{$alias}')
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@include wrap-with-where(
|
|
44
|
+
$selector: $element-selector,
|
|
45
|
+
$enabled: $zero-specificity-for-components
|
|
46
|
+
) {
|
|
47
|
+
@extend %#{$component-name}-state-#{$state}__#{$element}
|
|
48
|
+
!optional;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// element state
|
|
52
|
+
@each $elementState, $elementMap in map.get($map, 'state') {
|
|
53
|
+
@if $elementState {
|
|
54
|
+
$element-selector-state: ();
|
|
55
|
+
@each $item in $element-selector {
|
|
56
|
+
$element-selector-state: list.append(
|
|
57
|
+
$element-selector-state,
|
|
58
|
+
('#{$item}:#{$elementState}')
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@include wrap-with-where(
|
|
63
|
+
$selector: $element-selector-state,
|
|
64
|
+
$enabled: $zero-specificity-for-components
|
|
65
|
+
) {
|
|
66
|
+
@extend %#{$component-name}-state-#{$state}-element-#{$element}--#{$elementState}
|
|
67
|
+
!optional;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// element pseudo
|
|
73
|
+
@each $pseudo, $pseudoMap in map.get($map, 'pseudo') {
|
|
74
|
+
@if $pseudo {
|
|
75
|
+
$element-selector-pseudo: ();
|
|
76
|
+
@each $item in $element-selector {
|
|
77
|
+
$element-selector-pseudo: list.append(
|
|
78
|
+
$element-selector-pseudo,
|
|
79
|
+
('#{$item}::#{$pseudo}')
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
@include wrap-with-where(
|
|
83
|
+
$selector: $element-selector-pseudo,
|
|
84
|
+
$enabled: $zero-specificity-for-components
|
|
85
|
+
) {
|
|
86
|
+
@extend %#{$component-name}-state-#{$state}-element-#{$element}--#{$pseudo}
|
|
87
|
+
!optional;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
+
@use 'sass:list';
|
|
2
3
|
@use '../context' as *;
|
|
3
4
|
|
|
4
5
|
$component-name: map.get($components-names, vv-input-text);
|
|
5
6
|
$component-map: $vv-input-text;
|
|
6
|
-
$component-selector: '.#{
|
|
7
|
+
$component-selector: '.#{$component-name}';
|
|
7
8
|
|
|
8
9
|
@include spread-map-into-bem(
|
|
9
10
|
$map: $component-map,
|
|
@@ -15,34 +16,76 @@ $component-selector: '.#{ $component-name}';
|
|
|
15
16
|
|
|
16
17
|
// disabled and readonly
|
|
17
18
|
@each $state in ('disabled', 'readonly') {
|
|
19
|
+
$selector: '#{$component-selector}:has(input[#{$state}])';
|
|
18
20
|
@include wrap-with-where(
|
|
19
|
-
$selector:
|
|
21
|
+
$selector: $selector,
|
|
20
22
|
$enabled: $zero-specificity-for-components
|
|
21
23
|
) {
|
|
22
24
|
@extend %#{$component-name}--#{$state} !optional;
|
|
23
25
|
}
|
|
24
26
|
|
|
27
|
+
// element
|
|
25
28
|
@if map.get($component-map, 'state', $state, 'element') {
|
|
26
29
|
@each $element,
|
|
27
30
|
$map in map.get($component-map, 'state', $state, 'element')
|
|
28
31
|
{
|
|
32
|
+
$element-selector: (
|
|
33
|
+
'#{$selector} #{$component-selector}__#{$element}'
|
|
34
|
+
);
|
|
35
|
+
$alias: map.get($component-map, 'element', $element, '_alias');
|
|
36
|
+
@if $alias {
|
|
37
|
+
$element-selector: list.append(
|
|
38
|
+
$element-selector,
|
|
39
|
+
('#{$selector} #{$alias}')
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
29
43
|
@include wrap-with-where(
|
|
30
|
-
$selector:
|
|
31
|
-
'#{$component-selector}:has(input:#{$state}) #{$component-selector}__#{$element}',
|
|
44
|
+
$selector: $element-selector,
|
|
32
45
|
$enabled: $zero-specificity-for-components
|
|
33
46
|
) {
|
|
34
47
|
@extend %#{$component-name}-state-#{$state}__#{$element}
|
|
35
48
|
!optional;
|
|
36
49
|
}
|
|
37
50
|
|
|
51
|
+
// element state
|
|
38
52
|
@each $elementState, $elementMap in map.get($map, 'state') {
|
|
39
|
-
@
|
|
40
|
-
$selector:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
53
|
+
@if $elementState {
|
|
54
|
+
$element-selector-state: ();
|
|
55
|
+
@each $item in $element-selector {
|
|
56
|
+
$element-selector-state: list.append(
|
|
57
|
+
$element-selector-state,
|
|
58
|
+
('#{$item}:#{$elementState}')
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@include wrap-with-where(
|
|
63
|
+
$selector: $element-selector-state,
|
|
64
|
+
$enabled: $zero-specificity-for-components
|
|
65
|
+
) {
|
|
66
|
+
@extend %#{$component-name}-state-#{$state}-element-#{$element}--#{$elementState}
|
|
67
|
+
!optional;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// element pseudo
|
|
73
|
+
@each $pseudo, $pseudoMap in map.get($map, 'pseudo') {
|
|
74
|
+
@if $pseudo {
|
|
75
|
+
$element-selector-pseudo: ();
|
|
76
|
+
@each $item in $element-selector {
|
|
77
|
+
$element-selector-pseudo: list.append(
|
|
78
|
+
$element-selector-pseudo,
|
|
79
|
+
('#{$item}::#{$pseudo}')
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
@include wrap-with-where(
|
|
83
|
+
$selector: $element-selector-pseudo,
|
|
84
|
+
$enabled: $zero-specificity-for-components
|
|
85
|
+
) {
|
|
86
|
+
@extend %#{$component-name}-state-#{$state}-element-#{$element}--#{$pseudo}
|
|
87
|
+
!optional;
|
|
88
|
+
}
|
|
46
89
|
}
|
|
47
90
|
}
|
|
48
91
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
+
@use 'sass:list';
|
|
2
3
|
@use '../context' as *;
|
|
3
4
|
|
|
4
5
|
$component-name: map.get($components-names, vv-select);
|
|
@@ -15,34 +16,76 @@ $component-selector: '.#{ $component-name}';
|
|
|
15
16
|
|
|
16
17
|
// disabled
|
|
17
18
|
@each $state in ('disabled') {
|
|
19
|
+
$selector: '#{$component-selector}:has(select[#{$state}])';
|
|
18
20
|
@include wrap-with-where(
|
|
19
|
-
$selector:
|
|
21
|
+
$selector: $selector,
|
|
20
22
|
$enabled: $zero-specificity-for-components
|
|
21
23
|
) {
|
|
22
24
|
@extend %#{$component-name}--#{$state} !optional;
|
|
23
25
|
}
|
|
24
26
|
|
|
27
|
+
// element
|
|
25
28
|
@if map.get($component-map, 'state', $state, 'element') {
|
|
26
29
|
@each $element,
|
|
27
30
|
$map in map.get($component-map, 'state', $state, 'element')
|
|
28
31
|
{
|
|
32
|
+
$element-selector: (
|
|
33
|
+
'#{$selector} #{$component-selector}__#{$element}'
|
|
34
|
+
);
|
|
35
|
+
$alias: map.get($component-map, 'element', $element, '_alias');
|
|
36
|
+
@if $alias {
|
|
37
|
+
$element-selector: list.append(
|
|
38
|
+
$element-selector,
|
|
39
|
+
('#{$selector} #{$alias}')
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
29
43
|
@include wrap-with-where(
|
|
30
|
-
$selector:
|
|
31
|
-
'#{$component-selector}:has(select:#{$state}) #{$component-selector}__#{$element}',
|
|
44
|
+
$selector: $element-selector,
|
|
32
45
|
$enabled: $zero-specificity-for-components
|
|
33
46
|
) {
|
|
34
47
|
@extend %#{$component-name}-state-#{$state}__#{$element}
|
|
35
48
|
!optional;
|
|
36
49
|
}
|
|
37
50
|
|
|
51
|
+
// element state
|
|
38
52
|
@each $elementState, $elementMap in map.get($map, 'state') {
|
|
39
|
-
@
|
|
40
|
-
$selector:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
53
|
+
@if $elementState {
|
|
54
|
+
$element-selector-state: ();
|
|
55
|
+
@each $item in $element-selector {
|
|
56
|
+
$element-selector-state: list.append(
|
|
57
|
+
$element-selector-state,
|
|
58
|
+
('#{$item}:#{$elementState}')
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@include wrap-with-where(
|
|
63
|
+
$selector: $element-selector-state,
|
|
64
|
+
$enabled: $zero-specificity-for-components
|
|
65
|
+
) {
|
|
66
|
+
@extend %#{$component-name}-state-#{$state}-element-#{$element}--#{$elementState}
|
|
67
|
+
!optional;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// element pseudo
|
|
73
|
+
@each $pseudo, $pseudoMap in map.get($map, 'pseudo') {
|
|
74
|
+
@if $pseudo {
|
|
75
|
+
$element-selector-pseudo: ();
|
|
76
|
+
@each $item in $element-selector {
|
|
77
|
+
$element-selector-pseudo: list.append(
|
|
78
|
+
$element-selector-pseudo,
|
|
79
|
+
('#{$item}::#{$pseudo}')
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
@include wrap-with-where(
|
|
83
|
+
$selector: $element-selector-pseudo,
|
|
84
|
+
$enabled: $zero-specificity-for-components
|
|
85
|
+
) {
|
|
86
|
+
@extend %#{$component-name}-state-#{$state}-element-#{$element}--#{$pseudo}
|
|
87
|
+
!optional;
|
|
88
|
+
}
|
|
46
89
|
}
|
|
47
90
|
}
|
|
48
91
|
}
|