@volverjs/style 0.0.0

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 (104) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +139 -0
  3. package/package.json +158 -0
  4. package/src/_config.scss +32 -0
  5. package/src/_context.scss +11 -0
  6. package/src/assets/24consulting.svg +63 -0
  7. package/src/assets/volverjs.svg +15 -0
  8. package/src/components/index.scss +17 -0
  9. package/src/components/vv-badge.scss +12 -0
  10. package/src/components/vv-button-group.scss +115 -0
  11. package/src/components/vv-button.scss +57 -0
  12. package/src/components/vv-card.scss +12 -0
  13. package/src/components/vv-collapse.scss +12 -0
  14. package/src/components/vv-dialog.scss +12 -0
  15. package/src/components/vv-dropdown.scss +12 -0
  16. package/src/components/vv-input-checkbox-group.scss +12 -0
  17. package/src/components/vv-input-checkbox.scss +28 -0
  18. package/src/components/vv-input-radio-group.scss +12 -0
  19. package/src/components/vv-input-radio.scss +20 -0
  20. package/src/components/vv-input-text.scss +49 -0
  21. package/src/components/vv-progress.scss +12 -0
  22. package/src/components/vv-select.scss +49 -0
  23. package/src/components/vv-table.scss +12 -0
  24. package/src/components/vv-text.scss +12 -0
  25. package/src/components/vv-textarea.scss +49 -0
  26. package/src/export.scss +411 -0
  27. package/src/preflight.scss +281 -0
  28. package/src/props/animation.scss +80 -0
  29. package/src/props/background.scss +5 -0
  30. package/src/props/borders.scss +6 -0
  31. package/src/props/colors.scss +5 -0
  32. package/src/props/effects.scss +5 -0
  33. package/src/props/filters.scss +6 -0
  34. package/src/props/index.scss +12 -0
  35. package/src/props/input.scss +5 -0
  36. package/src/props/layout.scss +6 -0
  37. package/src/props/media.scss +49 -0
  38. package/src/props/sizing.scss +6 -0
  39. package/src/props/spacing.scss +27 -0
  40. package/src/props/typography.scss +38 -0
  41. package/src/reset.scss +88 -0
  42. package/src/settings/_animation.scss +9 -0
  43. package/src/settings/_background.scss +56 -0
  44. package/src/settings/_borders.scss +24 -0
  45. package/src/settings/_breakpoints.scss +13 -0
  46. package/src/settings/_colors.scss +39 -0
  47. package/src/settings/_effects.scss +39 -0
  48. package/src/settings/_filters.scss +26 -0
  49. package/src/settings/_flexbox.scss +66 -0
  50. package/src/settings/_grid.scss +104 -0
  51. package/src/settings/_index.scss +34 -0
  52. package/src/settings/_input.scss +51 -0
  53. package/src/settings/_layout.scss +109 -0
  54. package/src/settings/_sizing.scss +99 -0
  55. package/src/settings/_spacing.scss +77 -0
  56. package/src/settings/_typography.scss +179 -0
  57. package/src/settings/components/_vv-badge.scss +43 -0
  58. package/src/settings/components/_vv-button-group.scss +20 -0
  59. package/src/settings/components/_vv-button.scss +214 -0
  60. package/src/settings/components/_vv-card.scss +74 -0
  61. package/src/settings/components/_vv-collapse.scss +111 -0
  62. package/src/settings/components/_vv-dialog.scss +183 -0
  63. package/src/settings/components/_vv-dropdown.scss +37 -0
  64. package/src/settings/components/_vv-input-checkbox-group.scss +60 -0
  65. package/src/settings/components/_vv-input-checkbox.scss +92 -0
  66. package/src/settings/components/_vv-input-radio-group.scss +1 -0
  67. package/src/settings/components/_vv-input-radio.scss +60 -0
  68. package/src/settings/components/_vv-input-text.scss +327 -0
  69. package/src/settings/components/_vv-progress.scss +45 -0
  70. package/src/settings/components/_vv-select.scss +216 -0
  71. package/src/settings/components/_vv-table.scss +29 -0
  72. package/src/settings/components/_vv-text.scss +42 -0
  73. package/src/settings/components/_vv-textarea.scss +275 -0
  74. package/src/style.scss +14 -0
  75. package/src/themes/dark/_context.scss +8 -0
  76. package/src/themes/dark/components/_vv-button.scss +24 -0
  77. package/src/themes/dark/components/_vv-input-checkbox.scss +24 -0
  78. package/src/themes/dark/components/index.scss +2 -0
  79. package/src/themes/dark/props/_background.scss +15 -0
  80. package/src/themes/dark/props/_colors.scss +15 -0
  81. package/src/themes/dark/props/index.scss +2 -0
  82. package/src/themes/dark/settings/_background.scss +12 -0
  83. package/src/themes/dark/settings/_colors.scss +15 -0
  84. package/src/themes/dark/settings/_index.scss +5 -0
  85. package/src/themes/dark/settings/components/_vv-button.scss +58 -0
  86. package/src/themes/dark/settings/components/_vv-input-checkbox.scss +26 -0
  87. package/src/themes/dark/style.scss +5 -0
  88. package/src/tools/_breakpoints.scss +126 -0
  89. package/src/tools/_functions.scss +138 -0
  90. package/src/tools/_index.scss +3 -0
  91. package/src/tools/_mixins.scss +902 -0
  92. package/src/utilities/animation.scss +8 -0
  93. package/src/utilities/backgrounds.scss +50 -0
  94. package/src/utilities/borders.scss +79 -0
  95. package/src/utilities/colors.scss +33 -0
  96. package/src/utilities/effects.scss +15 -0
  97. package/src/utilities/filters.scss +22 -0
  98. package/src/utilities/flexbox.scss +113 -0
  99. package/src/utilities/grid.scss +68 -0
  100. package/src/utilities/index.scss +12 -0
  101. package/src/utilities/layout.scss +188 -0
  102. package/src/utilities/sizing.scss +80 -0
  103. package/src/utilities/spacing.scss +109 -0
  104. package/src/utilities/typography.scss +226 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 volverjs
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,139 @@
1
+ <div align="center">
2
+
3
+ [![volverjs](src/assets/volverjs.svg)](https://github.com/volverjs)
4
+
5
+ ## @volverjs/style
6
+
7
+ `backgrounds` `border` `colors` `aspect ratios` `typography`
8
+ `easings` `animations` `sizes` `borders` `z-indexes` `media-queries`
9
+ `layout` `spacing` `flexbox` `grid` `custom properties` `scss`
10
+
11
+ <br>
12
+
13
+ #### proudly powered by
14
+
15
+ <br>
16
+
17
+ [![24/Consulting](src/assets/24consulting.svg)](https://24consulting.it)
18
+
19
+ <br>
20
+
21
+ </div>
22
+
23
+ ## Install
24
+
25
+ ```
26
+ $ npm i -s @volverjs/style
27
+ ```
28
+
29
+ ## Usage
30
+
31
+ ```scss
32
+ /* css */
33
+ @import '@volverjs/style';
34
+
35
+ /* scss */
36
+ @import '@volverjs/style/scss';
37
+ ```
38
+
39
+ or cherry pick what you want
40
+
41
+ ```scss
42
+ /* css */
43
+ @import '@volverjs/style/reset';
44
+ @import '@volverjs/style/props/layout';
45
+ @import '@volverjs/style/utilities/layout';
46
+ @import '@volverjs/style/components/vv-button';
47
+
48
+ /* scss */
49
+ @import '@volverjs/style/scss/reset';
50
+ @import '@volverjs/style/scss/props/layout';
51
+ @import '@volverjs/style/scss/utilities/layout';
52
+ @import '@volverjs/style/scss/components/vv-button';
53
+ ```
54
+
55
+ ## Principles
56
+
57
+ ### 👌 Zero Specificity
58
+
59
+ Everything is defined with _:where()_ so you can override all definitions easily.
60
+
61
+ ### 🎨 Custom properties
62
+
63
+ All attributes have a [custom properties](https://developer.mozilla.org/en-US/docs/Web/CSS/--*) (CSS variables) for easy theming.
64
+
65
+ ### 😱 Utility-first + BEM
66
+
67
+ You can style utility-first (with [tailwindcss](https://tailwindcss.com) syntax) or use components (_vv-\*_ for ex. _vv-button_) written with [BEM](http://getbem.com/introduction/).
68
+
69
+ ## Basic personalization
70
+
71
+ ### Custom props
72
+
73
+ ```css
74
+ @import '@volverjs/style';
75
+ @import url('https://fonts.googleapis.com/css2?family=Open+Sans');
76
+
77
+ :root {
78
+ /* custom color brand */
79
+ --color-brand-hue: 149deg;
80
+ --color-brand-saturation: 56%;
81
+ --color-brand-lightness: 53%;
82
+
83
+ /* custom font sans */
84
+ --font-sans: 'Open Sans', sans-serif;
85
+ }
86
+ ```
87
+
88
+ ### SCSS
89
+
90
+ ```scss
91
+ /* custom color brand */
92
+ $color-brand: #45cb85;
93
+
94
+ /* custom font sans */
95
+ $font-sans: 'Open Sans', sans-serif;
96
+
97
+ @import '@volverjs/style';
98
+ @import url('https://fonts.googleapis.com/css2?family=Open+Sans');
99
+ ```
100
+
101
+ ## Deep override
102
+
103
+ All components are written through SCSS maps.
104
+ Root attributes style the component, submaps _state_, _element_, and _modifier_ generates BEM selectors.
105
+
106
+ ```scss
107
+ @use 'sass:map';
108
+ // import volverjs default settings, functions and mixins
109
+ @import '@volverjs/style/scss/context';
110
+
111
+ // override vv-button map
112
+ $vv-button: map.deep-merge(
113
+ $vv-button,
114
+ (
115
+ // change default button background
116
+ background: #ddd,
117
+ state: (
118
+ hover: (
119
+ // change default button background on hover
120
+ background: #aaa,
121
+ ),
122
+ ),
123
+ modifier: (
124
+ // add a custom modifier
125
+ my-error:
126
+ (
127
+ background: red,
128
+ )
129
+ )
130
+ )
131
+ );
132
+
133
+ // import volverjs style
134
+ @import '@volverjs/style/scss';
135
+ ```
136
+
137
+ ```html
138
+ <button type="button" class="vv-button vv-button--my-error">Error</button>
139
+ ```
package/package.json ADDED
@@ -0,0 +1,158 @@
1
+ {
2
+ "name": "@volverjs/style",
3
+ "version": "0.0.0",
4
+ "description": "@volverjs/style is a lightweight responsive CSS utility library to accompany @volverjs/ui and static webpages as well.",
5
+ "main": "dist/style.css",
6
+ "style": "dist/style.css",
7
+ "type": "module",
8
+ "engines": {
9
+ "node": ">= 12.x"
10
+ },
11
+ "packageManager": "pnpm@7.8.0",
12
+ "scripts": {
13
+ "dev": "vite --port 3000 --open",
14
+ "build": "vite build --base=./ && node ./scripts/build.js"
15
+ },
16
+ "files": [
17
+ "src/*",
18
+ "dist/*"
19
+ ],
20
+ "exports": {
21
+ ".": "./dist/style",
22
+ "./components": "./dist/components",
23
+ "./scss/components": "./src/components/index",
24
+ "./components/vv-badge": "./dist/components/vv-badge",
25
+ "./scss/components/vv-badge": "./src/components/vv-badge",
26
+ "./components/vv-button-group": "./dist/components/vv-button-group",
27
+ "./scss/components/vv-button-group": "./src/components/vv-button-group",
28
+ "./components/vv-button": "./dist/components/vv-button",
29
+ "./scss/components/vv-button": "./src/components/vv-button",
30
+ "./components/vv-card": "./dist/components/vv-card",
31
+ "./scss/components/vv-card": "./src/components/vv-card",
32
+ "./components/vv-collapse": "./dist/components/vv-collapse",
33
+ "./scss/components/vv-collapse": "./src/components/vv-collapse",
34
+ "./components/vv-dialog": "./dist/components/vv-dialog",
35
+ "./scss/components/vv-dialog": "./src/components/vv-dialog",
36
+ "./components/vv-dropdown": "./dist/components/vv-dropdown",
37
+ "./scss/components/vv-dropdown": "./src/components/vv-dropdown",
38
+ "./components/vv-input-checkbox-group": "./dist/components/vv-input-checkbox-group",
39
+ "./scss/components/vv-input-checkbox-group": "./src/components/vv-input-checkbox-group",
40
+ "./components/vv-input-checkbox": "./dist/components/vv-input-checkbox",
41
+ "./scss/components/vv-input-checkbox": "./src/components/vv-input-checkbox",
42
+ "./components/vv-input-radio-group": "./dist/components/vv-input-radio-group",
43
+ "./scss/components/vv-input-radio-group": "./src/components/vv-input-radio-group",
44
+ "./components/vv-input-radio": "./dist/components/vv-input-radio",
45
+ "./scss/components/vv-input-radio": "./src/components/vv-input-radio",
46
+ "./components/vv-input-text": "./dist/components/vv-input-text",
47
+ "./scss/components/vv-input-text": "./src/components/vv-input-text",
48
+ "./components/vv-progress": "./dist/components/vv-progress",
49
+ "./scss/components/vv-progress": "./src/components/vv-progress",
50
+ "./components/vv-select": "./dist/components/vv-select",
51
+ "./scss/components/vv-select": "./src/components/vv-select",
52
+ "./components/vv-table": "./dist/components/vv-table",
53
+ "./scss/components/vv-table": "./src/components/vv-table",
54
+ "./components/vv-text": "./dist/components/vv-text",
55
+ "./scss/components/vv-text": "./src/components/vv-text",
56
+ "./components/vv-textarea": "./dist/components/vv-textarea",
57
+ "./scss/components/vv-textarea": "./src/components/vv-textarea",
58
+ "./export": "./dist/export",
59
+ "./scss/export": "./src/export",
60
+ "./preflight": "./dist/preflight",
61
+ "./scss/preflight": "./src/preflight",
62
+ "./props/animation": "./dist/props/animation",
63
+ "./scss/props/animation": "./src/props/animation",
64
+ "./props/background": "./dist/props/background",
65
+ "./scss/props/background": "./src/props/background",
66
+ "./props/borders": "./dist/props/borders",
67
+ "./scss/props/borders": "./src/props/borders",
68
+ "./props/colors": "./dist/props/colors",
69
+ "./scss/props/colors": "./src/props/colors",
70
+ "./props/effects": "./dist/props/effects",
71
+ "./scss/props/effects": "./src/props/effects",
72
+ "./props/filters": "./dist/props/filters",
73
+ "./scss/props/filters": "./src/props/filters",
74
+ "./props": "./dist/props",
75
+ "./scss/props": "./src/props/index",
76
+ "./props/input": "./dist/props/input",
77
+ "./scss/props/input": "./src/props/input",
78
+ "./props/layout": "./dist/props/layout",
79
+ "./scss/props/layout": "./src/props/layout",
80
+ "./props/media": "./dist/props/media",
81
+ "./scss/props/media": "./src/props/media",
82
+ "./props/sizing": "./dist/props/sizing",
83
+ "./scss/props/sizing": "./src/props/sizing",
84
+ "./props/spacing": "./dist/props/spacing",
85
+ "./scss/props/spacing": "./src/props/spacing",
86
+ "./props/typography": "./dist/props/typography",
87
+ "./scss/props/typography": "./src/props/typography",
88
+ "./reset": "./dist/reset",
89
+ "./scss/reset": "./src/reset",
90
+ "./scss": "./src/style",
91
+ "./themes/dark/components": "./dist/themes/dark/components",
92
+ "./scss/themes/dark/components": "./src/themes/dark/components/index",
93
+ "./themes/dark/props": "./dist/themes/dark/props",
94
+ "./scss/themes/dark/props": "./src/themes/dark/props/index",
95
+ "./themes/dark": "./dist/themes/dark/style",
96
+ "./scss/themes/dark": "./src/themes/dark/style",
97
+ "./utilities/animation": "./dist/utilities/animation",
98
+ "./scss/utilities/animation": "./src/utilities/animation",
99
+ "./utilities/backgrounds": "./dist/utilities/backgrounds",
100
+ "./scss/utilities/backgrounds": "./src/utilities/backgrounds",
101
+ "./utilities/borders": "./dist/utilities/borders",
102
+ "./scss/utilities/borders": "./src/utilities/borders",
103
+ "./utilities/colors": "./dist/utilities/colors",
104
+ "./scss/utilities/colors": "./src/utilities/colors",
105
+ "./utilities/effects": "./dist/utilities/effects",
106
+ "./scss/utilities/effects": "./src/utilities/effects",
107
+ "./utilities/filters": "./dist/utilities/filters",
108
+ "./scss/utilities/filters": "./src/utilities/filters",
109
+ "./utilities/flexbox": "./dist/utilities/flexbox",
110
+ "./scss/utilities/flexbox": "./src/utilities/flexbox",
111
+ "./utilities/grid": "./dist/utilities/grid",
112
+ "./scss/utilities/grid": "./src/utilities/grid",
113
+ "./utilities": "./dist/utilities",
114
+ "./scss/utilities": "./src/utilities/index",
115
+ "./utilities/layout": "./dist/utilities/layout",
116
+ "./scss/utilities/layout": "./src/utilities/layout",
117
+ "./utilities/sizing": "./dist/utilities/sizing",
118
+ "./scss/utilities/sizing": "./src/utilities/sizing",
119
+ "./utilities/spacing": "./dist/utilities/spacing",
120
+ "./scss/utilities/spacing": "./src/utilities/spacing",
121
+ "./utilities/typography": "./dist/utilities/typography",
122
+ "./scss/utilities/typography": "./src/utilities/typography"
123
+ },
124
+ "repository": {
125
+ "type": "git",
126
+ "url": "https://github.com/volverjs/style"
127
+ },
128
+ "keywords": [
129
+ "css",
130
+ "design-system",
131
+ "volverjs"
132
+ ],
133
+ "author": "24/Consulting",
134
+ "license": "MIT",
135
+ "bugs": {
136
+ "url": "https://github.com/volverjs/style/issues"
137
+ },
138
+ "homepage": "https://github.com/volverjs/style#readme",
139
+ "devDependencies": {
140
+ "eslint": "^8.25.0",
141
+ "eslint-config-prettier": "^8.5.0",
142
+ "glob": "^8.0.3",
143
+ "postcss": "^8.4.18",
144
+ "postcss-preset-env": "^7.8.2",
145
+ "promise": "^8.2.0",
146
+ "sass": "^1.55.0",
147
+ "stylelint": "^14.13.0",
148
+ "stylelint-config-prettier": "^9.0.3",
149
+ "stylelint-config-standard-scss": "^5.0.0",
150
+ "vite": "^3.1.8",
151
+ "vite-plugin-eslint": "^1.8.1",
152
+ "vite-plugin-handlebars": "^1.6.0",
153
+ "vite-plugin-stylelint": "^3.0.7"
154
+ },
155
+ "dependencies": {
156
+ "icss-utils": "^5.1.0"
157
+ }
158
+ }
@@ -0,0 +1,32 @@
1
+ // use custom props for components
2
+ $use-custom-props-for-components: true !default;
3
+
4
+ // enable zero specificity for compoenents
5
+ $zero-specificity-for-compoenents: true !default;
6
+
7
+ // enable zero specificity for utilities
8
+ $zero-specificity-for-utilities: true !default;
9
+
10
+ // components prefix
11
+ $components-prefix: vv !default;
12
+
13
+ // components names
14
+ $components-names: (
15
+ vv-badge: $components-prefix + -badge,
16
+ vv-button: $components-prefix + -button,
17
+ vv-button-group: $components-prefix + -button-group,
18
+ vv-progress: $components-prefix + -progress,
19
+ vv-collapse: $components-prefix + -collapse,
20
+ vv-dialog: $components-prefix + -dialog,
21
+ vv-dropdown: $components-prefix + -dropdown,
22
+ vv-input-checkbox: $components-prefix + -input-checkbox,
23
+ vv-input-checkbox-group: $components-prefix + -input-checkbox-group,
24
+ vv-input-radio: $components-prefix + -input-radio,
25
+ vv-input-radio-group: $components-prefix + -input-radio-group,
26
+ vv-input-text: $components-prefix + -input-text,
27
+ vv-textarea: $components-prefix + -textarea,
28
+ vv-select: $components-prefix + -select,
29
+ vv-table: $components-prefix + -table,
30
+ vv-card: $components-prefix + -card,
31
+ vv-text: $components-prefix + -text,
32
+ ) !default;
@@ -0,0 +1,11 @@
1
+ @use 'sass:meta';
2
+ @use 'sass:map';
3
+
4
+ // configuration
5
+ @import 'config';
6
+
7
+ // tools (mixins, functions, recipes)
8
+ @import 'tools';
9
+
10
+ // settings
11
+ @import 'settings';
@@ -0,0 +1,63 @@
1
+ <svg version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1088 337" width="250" height="77">
2
+ <style>
3
+ .fill {
4
+ fill: #2c2e35;
5
+ }
6
+
7
+ @media (prefers-color-scheme: dark) {
8
+ .fill {
9
+ fill: #fff;
10
+ }
11
+ }
12
+ </style>
13
+ <path class="fill" d="m713 236.1l-15-36.7h5l12.7 32.3 12.7-32.3h4.6l-14.9 36.7z" />
14
+ <path fill-rule="evenodd" class="fill"
15
+ d="m755.5 236.8q-4.1 0-7.4-1.5-3.4-1.5-5.9-4.1-2.5-2.7-3.8-6.1-1.4-3.5-1.4-7.5 0-3.8 1.4-7.3 1.3-3.4 3.8-6 2.5-2.5 5.8-4 3.4-1.6 7.4-1.6 4 0 7.4 1.6 3.3 1.5 5.7 4.1 2.4 2.6 3.8 6 1.3 3.4 1.3 7.2 0 0.5 0 1.1-0.1 0.6-0.1 0.8h-31.4q0.2 2.9 1.3 5.4 1.2 2.6 3 4.4 1.8 1.8 4.2 2.8 2.3 1.1 5 1.1 1.8 0 3.6-0.5 1.8-0.5 3.2-1.4 1.5-0.8 2.7-2.1 1.2-1.2 1.8-2.7l4.2 1.2q-0.9 2-2.4 3.7-1.6 1.6-3.6 2.9-2.1 1.2-4.6 1.9-2.4 0.6-5 0.6zm13.5-21q-0.2-3-1.4-5.4-1.1-2.4-2.9-4.2-1.8-1.7-4.2-2.7-2.4-1-5.1-1-2.7 0-5.1 1-2.4 1-4.2 2.7-1.8 1.8-2.9 4.2-1.1 2.5-1.3 5.4z" />
16
+ <path class="fill"
17
+ d="m811.7 236.1h-4.8v-20.5q0-6.6-1.9-9.5-1.9-3-5.9-3-2.2 0-4.3 0.8-2.1 0.8-3.9 2.2-1.9 1.4-3.2 3.3-1.4 2-2.1 4.2v22.5h-4.8v-36.7h4.4v8.3q1.1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+ <path class="fill"
46
+ d="m954.3 269.3h4.8v43.2q0 2 1.1 3.2 1.2 1.1 3.2 1.1 0.8 0 1.9-0.2 1-0.2 1.9-0.5l0.9 3.8q-1.4 0.6-3.3 0.9-1.9 0.4-3.4 0.4-3.3 0-5.2-1.9-1.9-1.8-1.9-5.2z" />
47
+ <path class="fill"
48
+ d="m990.1 319q-0.4 0.2-1.2 0.6-0.9 0.3-1.9 0.7-1.1 0.3-2.4 0.6-1.4 0.3-2.8 0.3-1.6 0-3-0.4-1.4-0.4-2.5-1.3-1-0.9-1.7-2.2-0.6-1.4-0.6-3.2v-26.3h-5.1v-3.8h5.1v-12.4h4.8v12.4h8.5v3.8h-8.5v25q0.1 2.1 1.4 3 1.3 1 3 1 2.1 0 3.6-0.7 1.6-0.7 2-1z" />
49
+ <path class="fill" d="m995.7 276.3v-7h4.8v7zm0 44.5v-36.8h4.8v36.8z" />
50
+ <path class="fill"
51
+ d="m1041.7 320.8h-4.8v-20.6q0-6.5-1.9-9.5-1.9-2.9-5.9-2.9-2.1 0-4.2 0.7-2.2 0.8-4 2.2-1.8 1.4-3.2 3.4-1.4 1.9-2.1 4.2v22.5h-4.8v-36.8h4.4v8.3q1.1-1.9 2.8-3.6 1.6-1.6 3.7-2.8 2-1.2 4.3-1.9 2.3-0.6 4.8-0.6 3.1 0 5.2 1.1 2.1 1.1 3.3 3.2 1.3 2 1.9 5 0.5 3 0.5 6.6z" />
52
+ <path fill-rule="evenodd" class="fill"
53
+ d="m1066.6 321.3q-3.9 0-7-1.6-3.1-1.6-5.4-4.2-2.3-2.6-3.6-6-1.3-3.4-1.3-7 0-3.8 1.3-7.3 1.2-3.5 3.5-6.1 2.2-2.6 5.4-4.2 3.1-1.5 6.9-1.5 4.7 0 8.2 2.4 3.5 2.3 5.9 5.9v-7.7h4.3v36.9q0 3.8-1.4 6.8-1.5 2.9-3.9 4.9-2.4 1.9-5.7 2.9-3.4 1-7 1-6.3 0-10.2-2.2-3.9-2.3-6.3-6.1l3-2.3q2.2 3.5 5.8 5.1 3.6 1.7 7.7 1.7 2.6 0 5.1-0.7 2.4-0.8 4.2-2.2 1.8-1.5 2.9-3.7 1-2.2 1-5.2v-7.2q-2.2 3.5-5.8 5.5-3.6 2.1-7.6 2.1zm1.3-4q2.1 0 4.2-0.8 2-0.8 3.7-2.1 1.6-1.3 2.7-2.9 1.2-1.7 1.5-3.4v-11.3q-0.7-2-2.1-3.7-1.4-1.7-3.1-2.9-1.7-1.2-3.6-1.9-2-0.7-3.9-0.7-3.1 0-5.5 1.3-2.4 1.3-4.1 3.4-1.7 2.2-2.6 4.8-0.9 2.7-0.9 5.5 0 2.9 1.1 5.6 1 2.7 2.9 4.7 1.8 2 4.3 3.2 2.5 1.2 5.4 1.2z" />
54
+ <path class="fill"
55
+ d="m0.6 158.4q0-10.8 1.8-20.3 1.7-9.4 6.6-18 4.8-8.7 13.3-16.5 8.5-7.8 22.3-15.7 8.1-4.3 16.5-8.5 8.3-4.1 15.2-8.9 6.9-4.7 11.3-10.1 4.5-5.4 4.5-12.7 0-4.6-2.2-9.1-2.1-4.6-6.2-8.1-4-3.5-10.1-5.7-6.1-2.2-13.9-2.2-8.1 0-14.7 2.3-6.6 2.3-11.7 5.7-5.2 3.4-8.9 7.1-3.8 3.8-6.3 6.8l-15.3-17.3q2.1-2.4 7.3-6.6 5.1-4.2 12.9-8.5 7.8-4.3 18.1-7.4 10.2-3.1 22.9-3.1 12.4 0 22.4 3.4 10 3.3 16.9 9.3 6.9 5.9 10.7 13.9 3.7 7.9 3.7 16.8 0 10.6-4.6 18.4-4.5 7.8-11.2 13.7-6.6 6-14.1 10.2-7.6 4.1-13.5 7.1-6 3-13.4 7.2-7.4 4.2-14.1 9.4-6.8 5.3-11.8 11.8-5 6.4-6.3 14h94.6l-16.8 21.6z" />
56
+ <path fill-rule="evenodd" class="fill"
57
+ d="m196 204v-45.6h-102.9l16.2-21 94.2-121.8h16.2v121.2h35.5v21.6h-35.5v45.6zm-62.1-67.2h64.5v-84.5z" />
58
+ <path class="fill"
59
+ d="m308.3 251.2q0-12 4.2-23.8 4.3-11.9 12.2-21.3 8-9.5 19.7-15.4 11.8-5.9 26.8-5.9 17.8 0 30.3 8.1 12.5 8.2 18.5 20.9l-5.7 2.7q-3.7-7.2-8.7-12-5-4.9-10.8-7.9-5.8-3-12-4.3-6.2-1.3-12.4-1.3-13.3 0-23.7 5.3-10.4 5.4-17.6 14-7.1 8.6-10.8 19.5-3.6 10.9-3.6 22 0 12.2 4.3 23.4 4.3 11.3 11.9 19.8 7.6 8.5 17.9 13.6 10.4 5.1 22.2 5.1 6.4 0 13-1.6 6.7-1.6 12.9-4.9 6.2-3.3 11.4-8.3 5.3-5.1 9-12.2l5.7 2.2q-3.4 7.5-9.2 13.3-5.8 5.9-13 9.8-7.1 3.9-15 5.9-7.9 2-15.6 2-13.5 0-24.9-6-11.5-6-19.6-15.7-8.2-9.7-12.8-22-4.6-12.2-4.6-25z" />
60
+ <path fill-rule="evenodd" class="fill"
61
+ d="m500.1 319.7q-13.9 0-25.2-5.8-11.4-5.8-19.7-15.2-8.2-9.4-12.7-21.6-4.5-12.2-4.5-25 0-13.3 4.8-25.5 4.7-12.2 13.1-21.6 8.3-9.4 19.7-14.9 11.4-5.5 24.7-5.5 13.7 0 25.1 5.9 11.5 5.9 19.6 15.5 8.2 9.5 12.7 21.6 4.5 12.1 4.5 24.5 0 13.5-4.8 25.7-4.8 12.2-13.1 21.5-8.4 9.3-19.7 14.8-11.4 5.6-24.5 5.6zm-55.7-67.6q0 12 4.1 23.1 4.1 11.1 11.5 19.6 7.4 8.6 17.7 13.6 10.2 5.1 22.4 5.1 12.6 0 22.8-5.4 10.2-5.3 17.5-13.9 7.3-8.7 11.4-19.7 4-11.1 4-22.4 0-12-4.2-23.1-4.2-11-11.7-19.6-7.5-8.5-17.7-13.6-10.1-5-22.1-5-12.6 0-22.8 5.3-10.2 5.4-17.6 14-7.3 8.6-11.3 19.6-4 11-4 22.4z" />
62
+ <path class="fill" d="m185.2 319.3l-2.7-2 245.1-316.8 2.7 2.1z" />
63
+ </svg>
@@ -0,0 +1,15 @@
1
+ <svg version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400" width="200" height="200">
2
+ <style>
3
+ .circle {
4
+ fill: #45cb85;
5
+ }
6
+
7
+ .letter {
8
+ fill: #fff;
9
+ }
10
+ </style>
11
+ <path class="circle"
12
+ d="m200 400c-110.6 0-200-89.4-200-200 0-110.6 89.4-200 200-200 110.6 0 200 89.4 200 200 0 110.6-89.4 200-200 200z" />
13
+ <path fill-rule="evenodd" class="letter"
14
+ d="m320 198.9q6.8 0 9.8 3 3.3 3 3.3 7.8 0 7.8-4.8 13.7-4.4 6-14.3 6.3-23.9 0.6-42.4-3.6-21.2 44.5-51.4 74.1-29.9 29.3-60.1 29.3-31 0-46.3-36.2-15.2-36.1-15.2-97.6 0-52.6 7.5-94.4 2.7-15.6 7.4-21 5.1-5.6 17.1-5.6 19.7 0 19.7 17 0 1.8-0.6 6.6-9 53.7-9 97.4 0 45.7 7.5 69.6 7.8 23.6 23 23.6 15.5 0 33.8-21.5 18.2-21.6 33.4-54.1-18.2-11.4-27.5-29.3-9.2-18.2-9.2-41.8 0-23.6 7.1-39.8 7.5-16.4 20.1-24.4 12.8-8.1 28.3-8.1 19.2 0 30.2 13.7 11.4 13.8 11.4 37.7 0 34.3-15 75 15.9 2.6 36.2 2.6zm-88.2-58.8q0 29.3 18.9 43.3 11.6-33.5 11.6-55.3 0-12.5-3.3-18.2-3.3-6-8.9-6-8.1 0-13.2 9.6-5.1 9.3-5.1 26.6z" />
15
+ </svg>
@@ -0,0 +1,17 @@
1
+ @import 'vv-badge';
2
+ @import 'vv-button';
3
+ @import 'vv-button-group';
4
+ @import 'vv-progress';
5
+ @import 'vv-collapse';
6
+ @import 'vv-dialog';
7
+ @import 'vv-dropdown';
8
+ @import 'vv-input-checkbox';
9
+ @import 'vv-input-checkbox-group';
10
+ @import 'vv-input-radio';
11
+ @import 'vv-input-radio-group';
12
+ @import 'vv-input-text';
13
+ @import 'vv-textarea';
14
+ @import 'vv-select';
15
+ @import 'vv-table';
16
+ @import 'vv-card';
17
+ @import 'vv-text';
@@ -0,0 +1,12 @@
1
+ @use 'sass:map';
2
+ @import '../context';
3
+
4
+ $component-name: map.get($components-names, vv-badge);
5
+ $component-map: $vv-badge;
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-compoenents
12
+ );
@@ -0,0 +1,115 @@
1
+ @use 'sass:map';
2
+ @import '../context';
3
+
4
+ $component-name: map.get($components-names, vv-button-group);
5
+ $component-map: $vv-button-group;
6
+ $component-selector: '.#{ $component-name}';
7
+ $button-component-name: map.get($components-names, vv-button);
8
+ $button-component-selector: '.' + $button-component-name;
9
+
10
+ @include spread-map-into-bem(
11
+ $map: $component-map,
12
+ $block: $component-name,
13
+ $props: $use-custom-props-for-components,
14
+ $zero-specificity: $zero-specificity-for-compoenents
15
+ );
16
+
17
+ // if has block modifier
18
+ @if map.get($component-map, 'modifier', 'block') {
19
+ #{$component-selector + '--block'} {
20
+ #{$button-component-selector} {
21
+ &:not([disabled], [tabindex='-1']) {
22
+ @include wrap-with-where(
23
+ $selector:
24
+ '&.active, &#{$button-component-selector}--active, &:active',
25
+ $enabled: $zero-specificity-for-compoenents
26
+ ) {
27
+ z-index: 1;
28
+ }
29
+ }
30
+ }
31
+
32
+ @include wrap-with-where(
33
+ $selector: $button-component-selector,
34
+ $enabled: $zero-specificity-for-compoenents
35
+ ) {
36
+ flex: 1;
37
+ }
38
+ }
39
+ }
40
+
41
+ // if has compact modifier
42
+ @if map.get($component-map, 'modifier', 'compact') {
43
+ #{$component-selector + '--compact'} {
44
+ // if has vertical modifier
45
+ @if map.get($component-map, 'modifier', 'vertical') {
46
+ &#{$component-selector + '--vertical'} {
47
+ #{$button-component-selector} {
48
+ // clear top border-radius for first child
49
+ @include wrap-with-where(
50
+ $selector: '&:not(:first-child)',
51
+ $enabled: $zero-specificity-for-compoenents
52
+ ) {
53
+ border-top-right-radius: 0;
54
+ border-top-left-radius: 0;
55
+ }
56
+
57
+ // clear bottom border-radius for last child
58
+ @include wrap-with-where(
59
+ $selector: '&:not(:last-child)',
60
+ $enabled: $zero-specificity-for-compoenents
61
+ ) {
62
+ border-bottom-right-radius: 0;
63
+ border-bottom-left-radius: 0;
64
+ }
65
+
66
+ // clear margin for inner children
67
+ @if map.get($vv-button, 'border-width') {
68
+ @include wrap-with-where(
69
+ $selector: '&:not(:last-child, :last-child)',
70
+ $enabled: $zero-specificity-for-compoenents
71
+ ) {
72
+ margin-block: calc(
73
+ map.get($vv-button, 'border-width') * -1
74
+ );
75
+ }
76
+ }
77
+ }
78
+ }
79
+ }
80
+
81
+ &:not(#{$component-selector + '--vertical'}) {
82
+ #{$button-component-selector} {
83
+ // clear left border-radius for first child
84
+ @include wrap-with-where(
85
+ $selector: '&:not(:first-child)',
86
+ $enabled: $zero-specificity-for-compoenents
87
+ ) {
88
+ border-top-left-radius: 0;
89
+ border-bottom-left-radius: 0;
90
+ }
91
+
92
+ // clear right border-radius for first child
93
+ @include wrap-with-where(
94
+ $selector: '&:not(:last-child)',
95
+ $enabled: $zero-specificity-for-compoenents
96
+ ) {
97
+ border-top-right-radius: 0;
98
+ border-bottom-right-radius: 0;
99
+ }
100
+
101
+ // clear margin for inner children
102
+ @if map.get($vv-button, 'border-width') {
103
+ @include wrap-with-where(
104
+ $selector: '&:not(:last-child, :last-child)',
105
+ $enabled: $zero-specificity-for-compoenents
106
+ ) {
107
+ margin-inline: calc(
108
+ map.get($vv-button, 'border-width') * -1
109
+ );
110
+ }
111
+ }
112
+ }
113
+ }
114
+ }
115
+ }
@@ -0,0 +1,57 @@
1
+ @use 'sass:map';
2
+ @import '../context';
3
+
4
+ $component-name: map.get($components-names, vv-button);
5
+ $component-map: $vv-button;
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-compoenents,
13
+ $custom-block: true
14
+ ) {
15
+ // custom block
16
+ %#{$component-name} {
17
+ -webkit-tap-highlight-color: transparent;
18
+ -webkit-touch-callout: none;
19
+ align-items: center;
20
+ cursor: pointer;
21
+ display: inline-flex;
22
+ justify-content: center;
23
+ text-align: center;
24
+ touch-action: manipulation;
25
+ user-select: none;
26
+
27
+ @include spread-map-into-attrs(
28
+ $map: $component-map,
29
+ $prefix: $component-name,
30
+ $props: $use-custom-props-for-components
31
+ );
32
+
33
+ @media (prefers-reduced-motion: reduce) {
34
+ transition: none;
35
+ }
36
+ }
37
+
38
+ @include wrap-with-where(
39
+ $selector: $component-selector,
40
+ $enabled: $zero-specificity-for-compoenents
41
+ ) {
42
+ &:where(a[href], button, input[type='button'], input[type='submit'], input[type='reset']),
43
+ &::file-selector-button {
44
+ @extend %#{$component-name};
45
+ }
46
+
47
+ // input file
48
+ @if map.get($component-map, 'gap') {
49
+ &::file-selector-button {
50
+ margin-inline-end: var(
51
+ --vv-button-gap,
52
+ map.get($component-map, 'gap')
53
+ );
54
+ }
55
+ }
56
+ }
57
+ }