@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.
Files changed (87) hide show
  1. package/LICENSE +1 -1
  2. package/package.json +24 -20
  3. package/src/_config.scss +1 -0
  4. package/src/_preflight.scss +0 -10
  5. package/src/base.scss +15 -0
  6. package/src/components/index.scss +4 -3
  7. package/src/components/vv-dropdown-option.scss +13 -0
  8. package/src/settings/_index.scss +4 -3
  9. package/src/settings/_input.scss +4 -3
  10. package/src/settings/_spacing.scss +1 -0
  11. package/src/settings/components/_vv-accordion-group.scss +15 -0
  12. package/src/settings/components/_vv-accordion.scss +8 -0
  13. package/src/settings/components/_vv-dropdown-action.scss +9 -35
  14. package/src/settings/components/_vv-dropdown-option.scss +64 -0
  15. package/src/settings/components/_vv-dropdown.scss +1 -1
  16. package/src/settings/components/_vv-input-text.scss +80 -19
  17. package/src/settings/components/_vv-select.scss +15 -6
  18. package/src/settings/components/_vv-textarea.scss +15 -6
  19. package/src/tools/_mixins.scss +3 -9
  20. package/src/utilities/layout.scss +2 -8
  21. package/src/utilities/typography.scss +2 -1
  22. package/src/volver.scss +2 -5
  23. package/dist/components/vv-accordion-group.css +0 -1
  24. package/dist/components/vv-accordion.css +0 -1
  25. package/dist/components/vv-alert.css +0 -1
  26. package/dist/components/vv-avatar-group.css +0 -1
  27. package/dist/components/vv-avatar.css +0 -1
  28. package/dist/components/vv-badge.css +0 -1
  29. package/dist/components/vv-breadcrumb.css +0 -1
  30. package/dist/components/vv-button-group.css +0 -1
  31. package/dist/components/vv-button.css +0 -1
  32. package/dist/components/vv-card.css +0 -1
  33. package/dist/components/vv-checkbox-group.css +0 -1
  34. package/dist/components/vv-checkbox.css +0 -1
  35. package/dist/components/vv-dialog.css +0 -1
  36. package/dist/components/vv-dropdown-action.css +0 -1
  37. package/dist/components/vv-dropdown.css +0 -1
  38. package/dist/components/vv-input-text.css +0 -1
  39. package/dist/components/vv-nav.css +0 -1
  40. package/dist/components/vv-progress.css +0 -1
  41. package/dist/components/vv-radio-group.css +0 -1
  42. package/dist/components/vv-radio.css +0 -1
  43. package/dist/components/vv-select.css +0 -1
  44. package/dist/components/vv-skeleton.css +0 -1
  45. package/dist/components/vv-tab.css +0 -1
  46. package/dist/components/vv-table.css +0 -1
  47. package/dist/components/vv-text.css +0 -1
  48. package/dist/components/vv-textarea.css +0 -1
  49. package/dist/components/vv-toast.css +0 -1
  50. package/dist/components/vv-tooltip.css +0 -1
  51. package/dist/components.css +0 -1
  52. package/dist/export.css +0 -1
  53. package/dist/props/background.css +0 -1
  54. package/dist/props/borders.css +0 -1
  55. package/dist/props/breakpoints.css +0 -1
  56. package/dist/props/colors.css +0 -1
  57. package/dist/props/effects.css +0 -1
  58. package/dist/props/filters.css +0 -1
  59. package/dist/props/input.css +0 -1
  60. package/dist/props/layout.css +0 -1
  61. package/dist/props/media.css +0 -0
  62. package/dist/props/sizing.css +0 -1
  63. package/dist/props/spacing.css +0 -1
  64. package/dist/props/transitions.css +0 -1
  65. package/dist/props/typography.css +0 -1
  66. package/dist/props.css +0 -1
  67. package/dist/reset.css +0 -1
  68. package/dist/themes/dark/components.css +0 -1
  69. package/dist/themes/dark/props.css +0 -1
  70. package/dist/themes/dark/volver.css +0 -1
  71. package/dist/utilities/backgrounds.css +0 -1
  72. package/dist/utilities/borders.css +0 -1
  73. package/dist/utilities/colors.css +0 -1
  74. package/dist/utilities/effects.css +0 -1
  75. package/dist/utilities/filters.css +0 -1
  76. package/dist/utilities/flexbox.css +0 -1
  77. package/dist/utilities/grid.css +0 -1
  78. package/dist/utilities/interactivity.css +0 -1
  79. package/dist/utilities/layout.css +0 -1
  80. package/dist/utilities/sizing.css +0 -1
  81. package/dist/utilities/spacing.css +0 -1
  82. package/dist/utilities/tables.css +0 -1
  83. package/dist/utilities/transforms.css +0 -1
  84. package/dist/utilities/transitions.css +0 -1
  85. package/dist/utilities/typography.css +0 -1
  86. package/dist/utilities.css +0 -1
  87. package/dist/volver.css +0 -1
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2022 volverjs
3
+ Copyright (c) 2022-2023 24/Consulting
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  "bugs": {
25
25
  "url": "https://github.com/volverjs/style/issues"
26
26
  },
27
- "version": "0.1.7",
27
+ "version": "0.1.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.2",
40
+ "@iconify/vue": "^4.1.0",
41
41
  "@vitejs/plugin-vue": "^4.0.0",
42
- "@vueuse/core": "^9.11.0",
43
- "@vueuse/head": "^1.0.22",
44
- "eslint": "^8.32.0",
42
+ "@vueuse/core": "^9.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": "^8.1.0",
47
+ "glob": "^9.2.1",
48
48
  "icss-utils": "^5.1.0",
49
- "markdown-it-anchor": "^8.6.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": "^7.8.3",
53
+ "postcss-preset-env": "^8.0.1",
54
54
  "prism-themes": "^1.9.0",
55
55
  "prismjs": "1.29.0",
56
56
  "remark": "^14.0.2",
57
57
  "remark-frontmatter": "^4.0.1",
58
58
  "remark-gfm": "^3.0.1",
59
59
  "remark-lint": "^9.1.1",
60
- "sass": "^1.57.1",
61
- "stylelint": "^14.16.1",
62
- "stylelint-config-prettier": "^9.0.4",
63
- "stylelint-config-recommended-scss": "^8.0.0",
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": "^6.1.0",
66
- "unplugin-auto-import": "^0.12.1",
67
- "unplugin-vue-components": "^0.22.12",
68
- "vite": "^4.0.4",
69
- "vite-plugin-css-export": "^1.2.1",
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.1.6",
75
- "vite-plugin-vue-layouts": "^0.7.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.45",
78
+ "vue": "^3.2.47",
79
79
  "vue-live": "2.3.2",
80
80
  "vue-router": "^4.1.6"
81
81
  },
@@ -87,6 +87,8 @@
87
87
  "./scss/mixins": "./src/tools/_mixins.scss",
88
88
  "./scss/settings": "./src/settings/_index.scss",
89
89
  "./scss/preflight": "./src/_preflight.scss",
90
+ "./base": "./dist/base.css",
91
+ "./scss/base": "./src/base.scss",
90
92
  "./components": "./dist/components.css",
91
93
  "./scss/components": "./src/components/index.scss",
92
94
  "./components/vv-accordion-group": "./dist/components/vv-accordion-group.css",
@@ -117,6 +119,8 @@
117
119
  "./scss/components/vv-dialog": "./src/components/vv-dialog.scss",
118
120
  "./components/vv-dropdown-action": "./dist/components/vv-dropdown-action.css",
119
121
  "./scss/components/vv-dropdown-action": "./src/components/vv-dropdown-action.scss",
122
+ "./components/vv-dropdown-option": "./dist/components/vv-dropdown-option.css",
123
+ "./scss/components/vv-dropdown-option": "./src/components/vv-dropdown-option.scss",
120
124
  "./components/vv-dropdown": "./dist/components/vv-dropdown.css",
121
125
  "./scss/components/vv-dropdown": "./src/components/vv-dropdown.scss",
122
126
  "./components/vv-input-text": "./dist/components/vv-input-text.css",
package/src/_config.scss CHANGED
@@ -23,6 +23,7 @@ $components-names: (
23
23
  vv-dialog: $components-prefix + -dialog,
24
24
  vv-dropdown: $components-prefix + -dropdown,
25
25
  vv-dropdown-action: $components-prefix + -dropdown-action,
26
+ vv-dropdown-option: $components-prefix + -dropdown-option,
26
27
  vv-checkbox-group: $components-prefix + -checkbox-group,
27
28
  vv-checkbox: $components-prefix + -checkbox,
28
29
  vv-radio-group: $components-prefix + -radio-group,
@@ -1,16 +1,6 @@
1
1
  @use 'sass:map';
2
2
  @use 'context' as *;
3
3
 
4
- :where(:host, :root, .theme) {
5
- accent-color: var(--color-brand);
6
- background: var(--color-surface);
7
- caret-color: var(--color-brand);
8
- color-scheme: var(--color-scheme);
9
- color: var(--color-word);
10
- scrollbar-color: var(--color-brand);
11
- font-family: var(--font-sans);
12
- }
13
-
14
4
  :where(.preflight) {
15
5
  :not(.preflight-revert *) {
16
6
  // typography
package/src/base.scss ADDED
@@ -0,0 +1,15 @@
1
+ // reset
2
+ @use 'reset';
3
+
4
+ // props
5
+ @use 'props';
6
+
7
+ :where(:host, :root, .theme) {
8
+ accent-color: var(--color-brand);
9
+ background: var(--color-surface);
10
+ caret-color: var(--color-brand);
11
+ color-scheme: var(--color-scheme);
12
+ color: var(--color-word);
13
+ scrollbar-color: var(--color-brand);
14
+ font-family: var(--font-sans);
15
+ }
@@ -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-checkbox-group';
12
+ @use 'vv-dropdown-option';
13
13
  @use 'vv-checkbox';
14
- @use 'vv-radio-group';
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
+ );
@@ -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-checkbox-group';
32
+ @forward 'components/vv-dropdown-option';
33
33
  @forward 'components/vv-checkbox';
34
- @forward 'components/vv-radio-group';
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';
@@ -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-50),
16
+ min-height: var(--spacing-52),
15
17
  min-width: 0,
16
18
  label: (
17
19
  color: var(--color-word-2),
18
- display: flex,
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,
@@ -29,6 +29,7 @@ $spacing: (
29
29
  44: 2.75rem,
30
30
  48: 3rem,
31
31
  50: 3.125rem,
32
+ 52: 3.25rem,
32
33
  56: 3.5rem,
33
34
  64: 4rem,
34
35
  80: 5rem,
@@ -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;
@@ -139,5 +139,13 @@ $vv-accordion: (
139
139
  ),
140
140
  ),
141
141
  ),
142
+ square: (
143
+ border-radius: 0,
144
+ element: (
145
+ summary: (
146
+ border-radius: 0,
147
+ ),
148
+ ),
149
+ ),
142
150
  ),
143
151
  ) !default;
@@ -1,52 +1,26 @@
1
1
  $vv-dropdown-action: (
2
2
  display: flex,
3
- min-width: 0,
3
+ width: 100%,
4
4
  overflow: hidden,
5
5
  gap: var(--spacing-sm),
6
6
  align-items: center,
7
7
  padding: var(--spacing-sm),
8
+ color: var(--color-brand),
9
+ cursor: pointer,
8
10
  state: (
9
11
  disabled: (
10
12
  opacity: var(--opacity-50),
11
13
  cursor: not-allowed,
12
- pointer-events: none,
13
14
  ),
14
- focus-visible: (
15
- background-color: var(--color-surface-success),
16
- color: var(--color-success),
17
- element: (
18
- hint: (
19
- opacity: var(--opacity-100),
20
- ),
21
- ),
22
- ),
23
- selected: (
24
- font-weight: var(--font-bold),
15
+ hover: (
25
16
  background-color: var(--color-surface-brand),
26
- color: var(--color-brand),
27
17
  ),
28
- ),
29
- modifier: (
30
- unselectable: (
31
- state: (
32
- focus-visible: (
33
- background-color: var(--color-surface-danger),
34
- color: var(--color-danger),
35
- ),
36
- ),
18
+ focus-visible: (
19
+ outline: var(--spacing-px) solid var(--color-brand),
20
+ outline-offset: calc(var(--spacing-px) * -1),
37
21
  ),
38
- ),
39
- element: (
40
- hint: (
41
- opacity: var(--opacity-0),
42
- transition: var(--transition-opacity),
43
- will-change: opacity,
44
- margin-left: auto,
45
- font-size: 0.8em,
46
- font-weight: var(--font-normal),
47
- text-overflow: ellipsis,
48
- white-space: nowrap,
49
- overflow: hidden,
22
+ pressed: (
23
+ background-color: var(--color-surface-2),
50
24
  ),
51
25
  ),
52
26
  ) !default;
@@ -0,0 +1,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-surface-3),
50
+ background-color: var(--input-background-color-hover),
52
51
  ),
53
52
  focus-within: (
54
- background-color: var(--color-surface-2),
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: 1px,
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
- cursor: pointer,
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
- background-position: center var(--spacing-2),
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(--color-surface-1),
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(--color-surface-1),
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-surface-3),
50
+ background-color: var(--input-background-color-hover),
52
51
  ),
53
52
  focus-within: (
54
- background-color: var(--color-surface-2),
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-surface-2),
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(--color-surface-1),
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(--color-surface-1),
339
+ background-color: var(--input-background-color),
340
+ ),
341
+ focus-within: (
342
+ background-color: var(--input-background-color),
334
343
  ),
335
344
  ),
336
345
  ),