@volverjs/style 0.1.7 → 0.1.9-beta.1
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/package.json +24 -20
- package/src/_config.scss +1 -0
- package/src/_preflight.scss +0 -10
- package/src/base.scss +15 -0
- package/src/components/index.scss +4 -3
- package/src/components/vv-dropdown-option.scss +13 -0
- package/src/settings/_index.scss +4 -3
- package/src/settings/_input.scss +4 -3
- package/src/settings/_spacing.scss +1 -0
- package/src/settings/components/_vv-accordion-group.scss +15 -0
- package/src/settings/components/_vv-accordion.scss +8 -0
- package/src/settings/components/_vv-dropdown-action.scss +9 -35
- package/src/settings/components/_vv-dropdown-option.scss +64 -0
- package/src/settings/components/_vv-dropdown.scss +1 -1
- package/src/settings/components/_vv-input-text.scss +80 -19
- package/src/settings/components/_vv-select.scss +15 -6
- package/src/settings/components/_vv-textarea.scss +15 -6
- package/src/tools/_mixins.scss +3 -9
- package/src/utilities/layout.scss +2 -8
- package/src/utilities/typography.scss +2 -1
- package/src/volver.scss +2 -5
- package/dist/components/vv-accordion-group.css +0 -1
- package/dist/components/vv-accordion.css +0 -1
- package/dist/components/vv-alert.css +0 -1
- package/dist/components/vv-avatar-group.css +0 -1
- package/dist/components/vv-avatar.css +0 -1
- package/dist/components/vv-badge.css +0 -1
- package/dist/components/vv-breadcrumb.css +0 -1
- package/dist/components/vv-button-group.css +0 -1
- package/dist/components/vv-button.css +0 -1
- package/dist/components/vv-card.css +0 -1
- package/dist/components/vv-checkbox-group.css +0 -1
- package/dist/components/vv-checkbox.css +0 -1
- package/dist/components/vv-dialog.css +0 -1
- package/dist/components/vv-dropdown-action.css +0 -1
- package/dist/components/vv-dropdown.css +0 -1
- package/dist/components/vv-input-text.css +0 -1
- package/dist/components/vv-nav.css +0 -1
- package/dist/components/vv-progress.css +0 -1
- package/dist/components/vv-radio-group.css +0 -1
- package/dist/components/vv-radio.css +0 -1
- package/dist/components/vv-select.css +0 -1
- package/dist/components/vv-skeleton.css +0 -1
- package/dist/components/vv-tab.css +0 -1
- package/dist/components/vv-table.css +0 -1
- package/dist/components/vv-text.css +0 -1
- package/dist/components/vv-textarea.css +0 -1
- package/dist/components/vv-toast.css +0 -1
- package/dist/components/vv-tooltip.css +0 -1
- package/dist/components.css +0 -1
- package/dist/export.css +0 -1
- package/dist/props/background.css +0 -1
- package/dist/props/borders.css +0 -1
- package/dist/props/breakpoints.css +0 -1
- package/dist/props/colors.css +0 -1
- package/dist/props/effects.css +0 -1
- package/dist/props/filters.css +0 -1
- package/dist/props/input.css +0 -1
- package/dist/props/layout.css +0 -1
- package/dist/props/media.css +0 -0
- package/dist/props/sizing.css +0 -1
- package/dist/props/spacing.css +0 -1
- package/dist/props/transitions.css +0 -1
- package/dist/props/typography.css +0 -1
- package/dist/props.css +0 -1
- package/dist/reset.css +0 -1
- package/dist/themes/dark/components.css +0 -1
- package/dist/themes/dark/props.css +0 -1
- package/dist/themes/dark/volver.css +0 -1
- package/dist/utilities/backgrounds.css +0 -1
- package/dist/utilities/borders.css +0 -1
- package/dist/utilities/colors.css +0 -1
- package/dist/utilities/effects.css +0 -1
- package/dist/utilities/filters.css +0 -1
- package/dist/utilities/flexbox.css +0 -1
- package/dist/utilities/grid.css +0 -1
- package/dist/utilities/interactivity.css +0 -1
- package/dist/utilities/layout.css +0 -1
- package/dist/utilities/sizing.css +0 -1
- package/dist/utilities/spacing.css +0 -1
- package/dist/utilities/tables.css +0 -1
- package/dist/utilities/transforms.css +0 -1
- package/dist/utilities/transitions.css +0 -1
- package/dist/utilities/typography.css +0 -1
- package/dist/utilities.css +0 -1
- package/dist/volver.css +0 -1
package/LICENSE
CHANGED
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.
|
|
27
|
+
"version": "0.1.9-beta.1",
|
|
28
28
|
"engines": {
|
|
29
29
|
"node": ">= 12.x"
|
|
30
30
|
},
|
|
@@ -37,45 +37,45 @@
|
|
|
37
37
|
"dist/*"
|
|
38
38
|
],
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@iconify/vue": "^4.0
|
|
40
|
+
"@iconify/vue": "^4.1.0",
|
|
41
41
|
"@vitejs/plugin-vue": "^4.0.0",
|
|
42
|
-
"@vueuse/core": "^9.
|
|
43
|
-
"@vueuse/head": "^1.
|
|
44
|
-
"eslint": "^8.
|
|
42
|
+
"@vueuse/core": "^9.13.0",
|
|
43
|
+
"@vueuse/head": "^1.1.15",
|
|
44
|
+
"eslint": "^8.35.0",
|
|
45
45
|
"eslint-config-prettier": "^8.6.0",
|
|
46
46
|
"eslint-plugin-vue": "^9.9.0",
|
|
47
|
-
"glob": "^
|
|
47
|
+
"glob": "^9.2.1",
|
|
48
48
|
"icss-utils": "^5.1.0",
|
|
49
|
-
"markdown-it-anchor": "^8.6.
|
|
49
|
+
"markdown-it-anchor": "^8.6.7",
|
|
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": "^
|
|
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.
|
|
61
|
-
"stylelint": "^
|
|
62
|
-
"stylelint-config-prettier": "^9.0.
|
|
63
|
-
"stylelint-config-recommended-scss": "^
|
|
60
|
+
"sass": "^1.58.3",
|
|
61
|
+
"stylelint": "^15.2.0",
|
|
62
|
+
"stylelint-config-prettier": "^9.0.5",
|
|
63
|
+
"stylelint-config-recommended-scss": "^9.0.1",
|
|
64
64
|
"stylelint-config-recommended-vue": "^1.4.0",
|
|
65
|
-
"stylelint-config-standard-scss": "^
|
|
66
|
-
"unplugin-auto-import": "^0.
|
|
67
|
-
"unplugin-vue-components": "^0.
|
|
68
|
-
"vite": "^4.
|
|
69
|
-
"vite-plugin-css-export": "^
|
|
65
|
+
"stylelint-config-standard-scss": "^7.0.1",
|
|
66
|
+
"unplugin-auto-import": "^0.15.0",
|
|
67
|
+
"unplugin-vue-components": "^0.24.0",
|
|
68
|
+
"vite": "^4.1.4",
|
|
69
|
+
"vite-plugin-css-export": "^2.0.0",
|
|
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.
|
|
75
|
-
"vite-plugin-vue-layouts": "^0.
|
|
74
|
+
"vite-plugin-stylelint": "^4.2.0",
|
|
75
|
+
"vite-plugin-vue-layouts": "^0.8.0",
|
|
76
76
|
"vite-ssg": "^0.22.1",
|
|
77
77
|
"vite-ssg-sitemap": "^0.4.3",
|
|
78
|
-
"vue": "^3.2.
|
|
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,
|
package/src/_preflight.scss
CHANGED
|
@@ -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
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@use 'vv-accordion-group';
|
|
2
1
|
@use 'vv-accordion';
|
|
2
|
+
@use 'vv-accordion-group';
|
|
3
3
|
@use 'vv-alert';
|
|
4
4
|
@use 'vv-badge';
|
|
5
5
|
@use 'vv-breadcrumb';
|
|
@@ -9,10 +9,11 @@
|
|
|
9
9
|
@use 'vv-dialog';
|
|
10
10
|
@use 'vv-dropdown';
|
|
11
11
|
@use 'vv-dropdown-action';
|
|
12
|
-
@use 'vv-
|
|
12
|
+
@use 'vv-dropdown-option';
|
|
13
13
|
@use 'vv-checkbox';
|
|
14
|
-
@use 'vv-
|
|
14
|
+
@use 'vv-checkbox-group';
|
|
15
15
|
@use 'vv-radio';
|
|
16
|
+
@use 'vv-radio-group';
|
|
16
17
|
@use 'vv-avatar';
|
|
17
18
|
@use 'vv-avatar-group';
|
|
18
19
|
@use 'vv-input-text';
|
|
@@ -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
|
+
);
|
package/src/settings/_index.scss
CHANGED
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
@forward 'typography';
|
|
19
19
|
|
|
20
20
|
// components
|
|
21
|
-
@forward 'components/vv-accordion-group';
|
|
22
21
|
@forward 'components/vv-accordion';
|
|
22
|
+
@forward 'components/vv-accordion-group';
|
|
23
23
|
@forward 'components/vv-alert';
|
|
24
24
|
@forward 'components/vv-badge';
|
|
25
25
|
@forward 'components/vv-breadcrumb';
|
|
@@ -29,10 +29,11 @@
|
|
|
29
29
|
@forward 'components/vv-dialog';
|
|
30
30
|
@forward 'components/vv-dropdown';
|
|
31
31
|
@forward 'components/vv-dropdown-action';
|
|
32
|
-
@forward 'components/vv-
|
|
32
|
+
@forward 'components/vv-dropdown-option';
|
|
33
33
|
@forward 'components/vv-checkbox';
|
|
34
|
-
@forward 'components/vv-
|
|
34
|
+
@forward 'components/vv-checkbox-group';
|
|
35
35
|
@forward 'components/vv-radio';
|
|
36
|
+
@forward 'components/vv-radio-group';
|
|
36
37
|
@forward 'components/vv-avatar';
|
|
37
38
|
@forward 'components/vv-avatar-group';
|
|
38
39
|
@forward 'components/vv-input-text';
|
package/src/settings/_input.scss
CHANGED
|
@@ -8,15 +8,16 @@ $input: (
|
|
|
8
8
|
spacing-left: var(--spacing-sm),
|
|
9
9
|
color: var(--color-word),
|
|
10
10
|
background-color: var(--color-surface-1),
|
|
11
|
+
background-color-hover: var(--color-surface-3),
|
|
12
|
+
background-color-focus: var(--color-surface-2),
|
|
11
13
|
gap: var(--spacing-md),
|
|
12
14
|
line-height: var(--leading-normal),
|
|
13
15
|
font-size: var(--text-16),
|
|
14
|
-
min-height: var(--spacing-
|
|
16
|
+
min-height: var(--spacing-52),
|
|
15
17
|
min-width: 0,
|
|
16
18
|
label: (
|
|
17
19
|
color: var(--color-word-2),
|
|
18
|
-
display:
|
|
19
|
-
align-items: center,
|
|
20
|
+
display: inline,
|
|
20
21
|
font-size: var(--text-xs),
|
|
21
22
|
gap: var(--spacing-xs),
|
|
22
23
|
white-space: nowrap,
|
|
@@ -2,4 +2,19 @@ $vv-accordion-group: (
|
|
|
2
2
|
display: flex,
|
|
3
3
|
flex-direction: column,
|
|
4
4
|
gap: var(--spacing-sm),
|
|
5
|
+
element: (
|
|
6
|
+
not-last-child: (
|
|
7
|
+
_alias: '> details:not(:last-child)',
|
|
8
|
+
),
|
|
9
|
+
),
|
|
10
|
+
modifier: (
|
|
11
|
+
condensed: (
|
|
12
|
+
gap: 0,
|
|
13
|
+
element: (
|
|
14
|
+
not-last-child: (
|
|
15
|
+
border-bottom-width: 0,
|
|
16
|
+
),
|
|
17
|
+
),
|
|
18
|
+
),
|
|
19
|
+
),
|
|
5
20
|
) !default;
|
|
@@ -1,52 +1,26 @@
|
|
|
1
1
|
$vv-dropdown-action: (
|
|
2
2
|
display: flex,
|
|
3
|
-
|
|
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
|
-
|
|
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
|
-
|
|
30
|
-
|
|
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
|
-
|
|
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,64 @@
|
|
|
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
|
+
white-space: nowrap,
|
|
9
|
+
state: (
|
|
10
|
+
disabled: (
|
|
11
|
+
opacity: var(--opacity-50),
|
|
12
|
+
cursor: not-allowed,
|
|
13
|
+
pointer-events: none,
|
|
14
|
+
),
|
|
15
|
+
focus-visible: (
|
|
16
|
+
background-color: var(--color-surface-success),
|
|
17
|
+
color: var(--color-success),
|
|
18
|
+
element: (
|
|
19
|
+
hint: (
|
|
20
|
+
opacity: var(--opacity-100),
|
|
21
|
+
),
|
|
22
|
+
),
|
|
23
|
+
),
|
|
24
|
+
selected: (
|
|
25
|
+
font-weight: var(--font-bold),
|
|
26
|
+
background-color: var(--color-surface-brand),
|
|
27
|
+
color: var(--color-brand),
|
|
28
|
+
),
|
|
29
|
+
),
|
|
30
|
+
modifier: (
|
|
31
|
+
unselectable: (
|
|
32
|
+
state: (
|
|
33
|
+
focus-visible: (
|
|
34
|
+
background-color: var(--color-surface-danger),
|
|
35
|
+
color: var(--color-danger),
|
|
36
|
+
),
|
|
37
|
+
),
|
|
38
|
+
),
|
|
39
|
+
inert: (
|
|
40
|
+
cursor: default,
|
|
41
|
+
color: var(--color-word-3),
|
|
42
|
+
font-size: 0.8em,
|
|
43
|
+
state: (
|
|
44
|
+
focus-visible: (
|
|
45
|
+
background-color: transparent,
|
|
46
|
+
color: var(--color-word-3),
|
|
47
|
+
),
|
|
48
|
+
),
|
|
49
|
+
),
|
|
50
|
+
),
|
|
51
|
+
element: (
|
|
52
|
+
hint: (
|
|
53
|
+
opacity: var(--opacity-0),
|
|
54
|
+
transition: var(--transition-opacity),
|
|
55
|
+
will-change: opacity,
|
|
56
|
+
margin-left: auto,
|
|
57
|
+
font-size: 0.8em,
|
|
58
|
+
font-weight: var(--font-normal),
|
|
59
|
+
text-overflow: ellipsis,
|
|
60
|
+
white-space: nowrap,
|
|
61
|
+
overflow: hidden,
|
|
62
|
+
),
|
|
63
|
+
),
|
|
64
|
+
) !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',
|
|
@@ -10,7 +10,6 @@ $vv-input-text: (
|
|
|
10
10
|
label: (
|
|
11
11
|
_alias: '> label',
|
|
12
12
|
display: var(--input-label-display),
|
|
13
|
-
align-items: var(--input-label-align-items),
|
|
14
13
|
font-size: var(--input-label-font-size),
|
|
15
14
|
color: var(--input-label-color),
|
|
16
15
|
margin: 0 0 var(--input-label-gap) 0,
|
|
@@ -48,10 +47,10 @@ $vv-input-text: (
|
|
|
48
47
|
),
|
|
49
48
|
state: (
|
|
50
49
|
hover: (
|
|
51
|
-
background-color: var(--color-
|
|
50
|
+
background-color: var(--input-background-color-hover),
|
|
52
51
|
),
|
|
53
52
|
focus-within: (
|
|
54
|
-
background-color: var(--color-
|
|
53
|
+
background-color: var(--input-background-color-focus),
|
|
55
54
|
pseudo: (
|
|
56
55
|
after: (
|
|
57
56
|
transform: scaleX(1),
|
|
@@ -64,6 +63,7 @@ $vv-input-text: (
|
|
|
64
63
|
position: relative,
|
|
65
64
|
display: flex,
|
|
66
65
|
flex: 1,
|
|
66
|
+
min-width: 0,
|
|
67
67
|
),
|
|
68
68
|
input: (
|
|
69
69
|
_alias: 'input',
|
|
@@ -95,7 +95,7 @@ $vv-input-text: (
|
|
|
95
95
|
opacity: var(--opacity-0),
|
|
96
96
|
),
|
|
97
97
|
color-swatch-wrapper: (
|
|
98
|
-
padding:
|
|
98
|
+
padding: var(--spacing-px),
|
|
99
99
|
),
|
|
100
100
|
color-swatch: (
|
|
101
101
|
height: var(--spacing-20),
|
|
@@ -124,6 +124,7 @@ $vv-input-text: (
|
|
|
124
124
|
),
|
|
125
125
|
readonly: (
|
|
126
126
|
cursor: text,
|
|
127
|
+
user-select: text,
|
|
127
128
|
),
|
|
128
129
|
),
|
|
129
130
|
),
|
|
@@ -142,6 +143,8 @@ $vv-input-text: (
|
|
|
142
143
|
icon: (
|
|
143
144
|
_alias: '> div > :where(svg, [data-icon])',
|
|
144
145
|
position: var(--input-icon-position),
|
|
146
|
+
top: 0,
|
|
147
|
+
left: 0,
|
|
145
148
|
width: var(--input-icon-width),
|
|
146
149
|
height: var(--input-min-height),
|
|
147
150
|
margin: var(--input-icon-margin),
|
|
@@ -151,6 +154,7 @@ $vv-input-text: (
|
|
|
151
154
|
_alias: 'input + :where(svg, [data-icon])',
|
|
152
155
|
position: var(--input-icon-position),
|
|
153
156
|
right: 0,
|
|
157
|
+
left: auto,
|
|
154
158
|
),
|
|
155
159
|
actions-group: (
|
|
156
160
|
display: flex,
|
|
@@ -158,26 +162,19 @@ $vv-input-text: (
|
|
|
158
162
|
height: var(--input-min-height),
|
|
159
163
|
),
|
|
160
164
|
action: (
|
|
161
|
-
|
|
162
|
-
state: (
|
|
163
|
-
focus-visible: (
|
|
164
|
-
text-shadow: 0 1px 0 var(--color-gray-darken-5),
|
|
165
|
-
),
|
|
166
|
-
),
|
|
167
|
-
),
|
|
168
|
-
action-chevron: (
|
|
169
|
-
flex: 1,
|
|
165
|
+
position: relative,
|
|
170
166
|
width:
|
|
171
167
|
calc(
|
|
172
168
|
var(--input-icon-width) + var(--input-spacing-left) +
|
|
173
169
|
var(--input-spacing-right)
|
|
174
170
|
),
|
|
175
|
-
|
|
176
|
-
background-size: var(--text-14) auto,
|
|
177
|
-
background-repeat: no-repeat,
|
|
178
|
-
background-image: var(--bg-chevron),
|
|
171
|
+
height: var(--input-min-height),
|
|
179
172
|
cursor: pointer,
|
|
180
173
|
state: (
|
|
174
|
+
disabled: (
|
|
175
|
+
cursor: not-allowed,
|
|
176
|
+
opacity: var(--opacity-50),
|
|
177
|
+
),
|
|
181
178
|
focus-visible: (
|
|
182
179
|
background-color: var(--color-surface-3),
|
|
183
180
|
),
|
|
@@ -189,6 +186,13 @@ $vv-input-text: (
|
|
|
189
186
|
),
|
|
190
187
|
),
|
|
191
188
|
),
|
|
189
|
+
action-chevron: (
|
|
190
|
+
flex: 1,
|
|
191
|
+
background-position: center var(--spacing-2),
|
|
192
|
+
background-size: var(--text-14) auto,
|
|
193
|
+
background-repeat: no-repeat,
|
|
194
|
+
background-image: var(--bg-chevron),
|
|
195
|
+
),
|
|
192
196
|
action-chevron-up: (
|
|
193
197
|
transform: rotate(180deg),
|
|
194
198
|
),
|
|
@@ -209,6 +213,15 @@ $vv-input-text: (
|
|
|
209
213
|
font-size: var(--input-hint-font-size),
|
|
210
214
|
color: var(--input-hint-color),
|
|
211
215
|
),
|
|
216
|
+
unit: (
|
|
217
|
+
color: var(--input-placeholder-color),
|
|
218
|
+
display: flex,
|
|
219
|
+
align-items: center,
|
|
220
|
+
flex: 0 1 auto,
|
|
221
|
+
[padding-right]: var(--input-spacing-right),
|
|
222
|
+
[padding-block]: var(--input-spacing-top)
|
|
223
|
+
var(--input-spacing-bottom),
|
|
224
|
+
),
|
|
212
225
|
),
|
|
213
226
|
modifier: (
|
|
214
227
|
icon-before: (
|
|
@@ -355,6 +368,45 @@ $vv-input-text: (
|
|
|
355
368
|
),
|
|
356
369
|
),
|
|
357
370
|
),
|
|
371
|
+
auto-width: (
|
|
372
|
+
element: (
|
|
373
|
+
inner: (
|
|
374
|
+
[padding-block]: var(--input-spacing-top)
|
|
375
|
+
var(--input-spacing-bottom),
|
|
376
|
+
[padding-inline]: var(--input-spacing-left)
|
|
377
|
+
var(--input-spacing-right),
|
|
378
|
+
min-height: var(--input-min-height),
|
|
379
|
+
cursor: text,
|
|
380
|
+
),
|
|
381
|
+
input: (
|
|
382
|
+
padding-block: 0,
|
|
383
|
+
padding-inline: 0,
|
|
384
|
+
min-width: 1ch,
|
|
385
|
+
min-height: 1em,
|
|
386
|
+
text-align: left,
|
|
387
|
+
),
|
|
388
|
+
unit: (
|
|
389
|
+
padding-right: 0,
|
|
390
|
+
padding-block: 0,
|
|
391
|
+
),
|
|
392
|
+
),
|
|
393
|
+
state: (
|
|
394
|
+
dirty: (
|
|
395
|
+
element: (
|
|
396
|
+
input: (
|
|
397
|
+
flex: 0 1 auto,
|
|
398
|
+
),
|
|
399
|
+
),
|
|
400
|
+
),
|
|
401
|
+
disabled: (
|
|
402
|
+
element: (
|
|
403
|
+
inner: (
|
|
404
|
+
cursor: not-allowed,
|
|
405
|
+
),
|
|
406
|
+
),
|
|
407
|
+
),
|
|
408
|
+
),
|
|
409
|
+
),
|
|
358
410
|
),
|
|
359
411
|
state: (
|
|
360
412
|
disabled: (
|
|
@@ -363,7 +415,10 @@ $vv-input-text: (
|
|
|
363
415
|
wrapper: (
|
|
364
416
|
state: (
|
|
365
417
|
hover: (
|
|
366
|
-
background-color: var(--
|
|
418
|
+
background-color: var(--input-background-color),
|
|
419
|
+
),
|
|
420
|
+
focus-within: (
|
|
421
|
+
background-color: var(--input-background-color),
|
|
367
422
|
),
|
|
368
423
|
),
|
|
369
424
|
),
|
|
@@ -373,13 +428,19 @@ $vv-input-text: (
|
|
|
373
428
|
element: (
|
|
374
429
|
wrapper: (
|
|
375
430
|
pseudo: (
|
|
431
|
+
before: (
|
|
432
|
+
opacity: var(--opacity-0),
|
|
433
|
+
),
|
|
376
434
|
after: (
|
|
377
435
|
opacity: var(--opacity-0),
|
|
378
436
|
),
|
|
379
437
|
),
|
|
380
438
|
state: (
|
|
381
439
|
hover: (
|
|
382
|
-
background-color: var(--
|
|
440
|
+
background-color: var(--input-background-color),
|
|
441
|
+
),
|
|
442
|
+
focus-within: (
|
|
443
|
+
background-color: var(--input-background-color),
|
|
383
444
|
),
|
|
384
445
|
),
|
|
385
446
|
),
|
|
@@ -11,7 +11,6 @@ $vv-select: (
|
|
|
11
11
|
label: (
|
|
12
12
|
_alias: '> label',
|
|
13
13
|
display: var(--input-label-display),
|
|
14
|
-
align-items: var(--input-label-align-items),
|
|
15
14
|
font-size: var(--input-label-font-size),
|
|
16
15
|
color: var(--input-label-color),
|
|
17
16
|
margin: 0 0 var(--input-label-gap) 0,
|
|
@@ -48,10 +47,10 @@ $vv-select: (
|
|
|
48
47
|
),
|
|
49
48
|
state: (
|
|
50
49
|
hover: (
|
|
51
|
-
background-color: var(--color-
|
|
50
|
+
background-color: var(--input-background-color-hover),
|
|
52
51
|
),
|
|
53
52
|
focus-within: (
|
|
54
|
-
background-color: var(--color-
|
|
53
|
+
background-color: var(--input-background-color-focus),
|
|
55
54
|
pseudo: (
|
|
56
55
|
after: (
|
|
57
56
|
transform: scaleX(1),
|
|
@@ -59,7 +58,7 @@ $vv-select: (
|
|
|
59
58
|
),
|
|
60
59
|
),
|
|
61
60
|
open: (
|
|
62
|
-
background-color: var(--color-
|
|
61
|
+
background-color: var(--input-background-color-focus),
|
|
63
62
|
pseudo: (
|
|
64
63
|
after: (
|
|
65
64
|
transform: scaleX(1),
|
|
@@ -302,17 +301,24 @@ $vv-select: (
|
|
|
302
301
|
),
|
|
303
302
|
readonly: (
|
|
304
303
|
opacity: var(--opacity-100),
|
|
304
|
+
cursor: text,
|
|
305
305
|
user-select: text,
|
|
306
306
|
element: (
|
|
307
307
|
wrapper: (
|
|
308
308
|
pseudo: (
|
|
309
|
+
before: (
|
|
310
|
+
opacity: var(--opacity-0),
|
|
311
|
+
),
|
|
309
312
|
after: (
|
|
310
313
|
opacity: var(--opacity-0),
|
|
311
314
|
),
|
|
312
315
|
),
|
|
313
316
|
state: (
|
|
314
317
|
hover: (
|
|
315
|
-
background-color: var(--
|
|
318
|
+
background-color: var(--input-background-color),
|
|
319
|
+
),
|
|
320
|
+
focus-within: (
|
|
321
|
+
background-color: var(--input-background-color),
|
|
316
322
|
),
|
|
317
323
|
),
|
|
318
324
|
),
|
|
@@ -330,7 +336,10 @@ $vv-select: (
|
|
|
330
336
|
wrapper: (
|
|
331
337
|
state: (
|
|
332
338
|
hover: (
|
|
333
|
-
background-color: var(--
|
|
339
|
+
background-color: var(--input-background-color),
|
|
340
|
+
),
|
|
341
|
+
focus-within: (
|
|
342
|
+
background-color: var(--input-background-color),
|
|
334
343
|
),
|
|
335
344
|
),
|
|
336
345
|
),
|