@solfacil/girassol 0.2.6 → 0.2.9
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/README.md +1 -1
- package/dist/components.d.ts +1 -0
- package/dist/components.json +1 -1
- package/dist/girassol.es.js +988 -894
- package/dist/girassol.umd.js +4 -4
- package/dist/main.css +29 -29
- package/dist/style.css +1 -1
- package/dist/theme/solfacil/screens.d.ts +0 -1
- package/dist/theme/solfacil/typography.d.ts +0 -1
- package/dist/types/components/accordion/Accordion.vue.d.ts +5 -4
- package/dist/types/components/forms/button/Button.vue.d.ts +4 -4
- package/dist/types/components/informations/chip/Chip.vue.d.ts +1 -1
- package/dist/types/components/{menu → menus/menu}/Menu.vue.d.ts +18 -26
- package/dist/types/components/{menu → menus/menu}/index.d.ts +0 -0
- package/dist/types/components/{menu → menus/menu}/menu.spec.d.ts +0 -0
- package/dist/types/components/menus/menu-item/menu-item-link/MenuItemLink.vue.d.ts +100 -0
- package/dist/types/components/{menu-item → menus/menu-item/menu-item-link}/index.d.ts +0 -0
- package/dist/types/components/menus/menu-item/menu-item-link/types.d.ts +6 -0
- package/dist/types/components/{menu-item/MenuItemLink.vue.d.ts → menus/menu-navigation-links/MenuNavigationLinks.vue.d.ts} +12 -16
- package/dist/types/components/menus/menu-navigation-links/index.d.ts +2 -0
- package/dist/types/index.d.ts +212 -102
- package/package.json +11 -11
- package/public/main.css +29 -29
- package/theme/solfacil/screens.ts +1 -1
- package/theme/solfacil/typography.ts +1 -2
- package/theme/solfacil/utilities.ts +15 -8
- package/vite.config.ts +2 -1
- package/dist/fonts/lato/Lato-Bold.ttf +0 -0
- package/dist/fonts/lato/Lato-Medium.ttf +0 -0
- package/dist/fonts/lato/Lato-Regular.ttf +0 -0
- package/dist/fonts/roboto-slab/RobotoSlab.ttf +0 -0
- package/dist/fonts/rubik/Rubik-Bold.ttf +0 -0
- package/dist/fonts/rubik/Rubik-Medium.ttf +0 -0
- package/dist/fonts/rubik/Rubik-Regular.ttf +0 -0
- package/public/fonts/lato/Lato-Bold.ttf +0 -0
- package/public/fonts/lato/Lato-Medium.ttf +0 -0
- package/public/fonts/lato/Lato-Regular.ttf +0 -0
- package/public/fonts/roboto-slab/RobotoSlab.ttf +0 -0
- package/public/fonts/rubik/Rubik-Bold.ttf +0 -0
- package/public/fonts/rubik/Rubik-Medium.ttf +0 -0
- package/public/fonts/rubik/Rubik-Regular.ttf +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solfacil/girassol",
|
|
3
3
|
"description": "Girassol design system",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.9",
|
|
5
5
|
"authors": [
|
|
6
6
|
{
|
|
7
7
|
"name": "Kevin Martin",
|
|
@@ -57,17 +57,17 @@
|
|
|
57
57
|
"pre-commit": "./.husky/run-staged-tests.js"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@vueuse/core": "^9.
|
|
60
|
+
"@vueuse/core": "^9.1.0",
|
|
61
61
|
"gluegun": "latest",
|
|
62
62
|
"vue": "^3.2.37"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@antfu/eslint-config": "^0.
|
|
66
|
-
"@babel/core": "^7.18.
|
|
67
|
-
"@babel/preset-env": "^7.18.
|
|
65
|
+
"@antfu/eslint-config": "^0.26.1",
|
|
66
|
+
"@babel/core": "^7.18.10",
|
|
67
|
+
"@babel/preset-env": "^7.18.10",
|
|
68
68
|
"@commitlint/cli": "^17.0.3",
|
|
69
69
|
"@commitlint/config-conventional": "^17.0.3",
|
|
70
|
-
"@iconify/json": "^2.1.
|
|
70
|
+
"@iconify/json": "^2.1.89",
|
|
71
71
|
"@storybook/addon-a11y": "^6.5.9",
|
|
72
72
|
"@storybook/addon-actions": "^6.5.9",
|
|
73
73
|
"@storybook/addon-essentials": "^6.5.9",
|
|
@@ -77,14 +77,14 @@
|
|
|
77
77
|
"@storybook/vue3": "^6.5.9",
|
|
78
78
|
"@testing-library/jest-dom": "^5.16.4",
|
|
79
79
|
"@testing-library/user-event": "^14.2.1",
|
|
80
|
-
"@testing-library/vue": "^6.6.
|
|
80
|
+
"@testing-library/vue": "^6.6.1",
|
|
81
81
|
"@types/jest-axe": "^3.5.4",
|
|
82
82
|
"@types/node": "^17.0.41",
|
|
83
83
|
"@typescript-eslint/eslint-plugin": "^5.30.0",
|
|
84
84
|
"@typescript-eslint/parser": "^5.30.0",
|
|
85
85
|
"@vitejs/plugin-vue": "^3.0.1",
|
|
86
86
|
"babel-loader": "^8.2.5",
|
|
87
|
-
"c8": "^7.
|
|
87
|
+
"c8": "^7.12.0",
|
|
88
88
|
"cli-spinner": "^0.2.10",
|
|
89
89
|
"commitizen": "^4.2.4",
|
|
90
90
|
"copyfiles": "^2.4.1",
|
|
@@ -107,12 +107,12 @@
|
|
|
107
107
|
"ts-node": "^10.8.1",
|
|
108
108
|
"typescript": "^4.7.4",
|
|
109
109
|
"unplugin-icons": "^0.14.7",
|
|
110
|
-
"vite": "^3.0.
|
|
110
|
+
"vite": "^3.0.5",
|
|
111
111
|
"vite-plugin-inspect": "^0.5.1",
|
|
112
112
|
"vite-plugin-windicss": "^1.8.7",
|
|
113
|
-
"vitest": "^0.
|
|
113
|
+
"vitest": "^0.21.1",
|
|
114
114
|
"vue-loader": "^17.0.0",
|
|
115
|
-
"vue-tsc": "^0.
|
|
115
|
+
"vue-tsc": "^0.40.0",
|
|
116
116
|
"windicss": "^3.5.6"
|
|
117
117
|
},
|
|
118
118
|
"repository": {
|
package/public/main.css
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
+
/* latin-ext */
|
|
1
2
|
@font-face {
|
|
2
|
-
font-family:
|
|
3
|
-
|
|
3
|
+
font-family: 'Lato';
|
|
4
|
+
font-style: normal;
|
|
4
5
|
font-weight: 400;
|
|
6
|
+
font-display: swap;
|
|
7
|
+
src: url(https://fonts.gstatic.com/s/lato/v23/S6uyw4BMUTPHjxAwXjeu.woff2) format('woff2');
|
|
8
|
+
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
5
9
|
}
|
|
6
|
-
|
|
7
|
-
@font-face {
|
|
8
|
-
font-family: "Lato";
|
|
9
|
-
src: url("./fonts/lato/Lato-Bold.ttf");
|
|
10
|
-
font-weight: bold;
|
|
11
|
-
}
|
|
12
|
-
|
|
10
|
+
/* latin */
|
|
13
11
|
@font-face {
|
|
14
|
-
font-family:
|
|
15
|
-
|
|
16
|
-
font-weight: 500;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
@font-face {
|
|
21
|
-
font-family: "Rubik";
|
|
22
|
-
src: url("./fonts/rubik/Rubik-Regular.ttf");
|
|
12
|
+
font-family: 'Lato';
|
|
13
|
+
font-style: normal;
|
|
23
14
|
font-weight: 400;
|
|
15
|
+
font-display: swap;
|
|
16
|
+
src: url(https://fonts.gstatic.com/s/lato/v23/S6uyw4BMUTPHjx4wXg.woff2) format('woff2');
|
|
17
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
24
18
|
}
|
|
25
|
-
|
|
19
|
+
/* latin-ext */
|
|
26
20
|
@font-face {
|
|
27
|
-
font-family:
|
|
28
|
-
|
|
29
|
-
font-weight:
|
|
21
|
+
font-family: 'Lato';
|
|
22
|
+
font-style: normal;
|
|
23
|
+
font-weight: 700;
|
|
24
|
+
font-display: swap;
|
|
25
|
+
src: url(https://fonts.gstatic.com/s/lato/v23/S6u9w4BMUTPHh6UVSwaPGR_p.woff2) format('woff2');
|
|
26
|
+
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
30
27
|
}
|
|
31
|
-
|
|
28
|
+
/* latin */
|
|
32
29
|
@font-face {
|
|
33
|
-
font-family:
|
|
34
|
-
|
|
35
|
-
font-weight:
|
|
30
|
+
font-family: 'Lato';
|
|
31
|
+
font-style: normal;
|
|
32
|
+
font-weight: 700;
|
|
33
|
+
font-display: swap;
|
|
34
|
+
src: url(https://fonts.gstatic.com/s/lato/v23/S6u9w4BMUTPHh6UVSwiPGQ.woff2) format('woff2');
|
|
35
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
@font-face {
|
|
39
|
-
font-family:
|
|
40
|
-
src: url(
|
|
41
|
-
}
|
|
39
|
+
font-family: 'Grotesk';
|
|
40
|
+
src: url('https://cdn.solfacil.com.br/commons/fonts/PPRightGrotesk-WideMedium.woff2')
|
|
41
|
+
}
|
|
@@ -2,7 +2,7 @@ export default {
|
|
|
2
2
|
fontFamily: {
|
|
3
3
|
sans: ['"Lato"', 'sans-serif'],
|
|
4
4
|
base: ['"Lato"', 'sans-serif'],
|
|
5
|
-
highlight: ['"
|
|
5
|
+
highlight: ['"Grotesk"', 'sans-serif'],
|
|
6
6
|
},
|
|
7
7
|
|
|
8
8
|
fontSize: {
|
|
@@ -38,7 +38,6 @@ export default {
|
|
|
38
38
|
|
|
39
39
|
fontWeight: {
|
|
40
40
|
regular: 400,
|
|
41
|
-
medium: 500,
|
|
42
41
|
bold: 700,
|
|
43
42
|
},
|
|
44
43
|
|
|
@@ -8,7 +8,7 @@ export const componentTypos = plugin(({ addUtilities, theme }) => {
|
|
|
8
8
|
fontFamily: wrapperThemeType('fontFamily.highlight'),
|
|
9
9
|
color: wrapperThemeType('colors.neutral.low.dark'),
|
|
10
10
|
lineHeight: wrapperThemeType('lineHeight.xs'),
|
|
11
|
-
fontWeight: wrapperThemeType('fontWeight.
|
|
11
|
+
fontWeight: wrapperThemeType('fontWeight.regular'),
|
|
12
12
|
}
|
|
13
13
|
const display = {
|
|
14
14
|
'.fonts-display-large': {
|
|
@@ -42,7 +42,7 @@ export const componentTypos = plugin(({ addUtilities, theme }) => {
|
|
|
42
42
|
fontFamily: wrapperThemeType('fontFamily.highlight'),
|
|
43
43
|
lineHeight: wrapperThemeType('lineHeight.xs'),
|
|
44
44
|
color: wrapperThemeType('colors.neutral.low.dark'),
|
|
45
|
-
fontWeight: wrapperThemeType('fontWeight.
|
|
45
|
+
fontWeight: wrapperThemeType('fontWeight.regular'),
|
|
46
46
|
|
|
47
47
|
}
|
|
48
48
|
const heading = {
|
|
@@ -112,13 +112,24 @@ export const componentTypos = plugin(({ addUtilities, theme }) => {
|
|
|
112
112
|
lineHeight: wrapperThemeType('lineHeight.xs'),
|
|
113
113
|
}
|
|
114
114
|
const body = {
|
|
115
|
+
'.fonts-body-x-large-regular': {
|
|
116
|
+
...bodyCommons,
|
|
117
|
+
fontSize: wrapperThemeType('fontSize.xs'),
|
|
118
|
+
fontWeight: wrapperThemeType('fontWeight.regular'),
|
|
119
|
+
},
|
|
120
|
+
'.fonts-body-x-large-bold': {
|
|
121
|
+
...bodyCommons,
|
|
122
|
+
fontSize: wrapperThemeType('fontSize.xs'),
|
|
123
|
+
fontWeight: wrapperThemeType('fontWeight.bold'),
|
|
124
|
+
},
|
|
125
|
+
|
|
115
126
|
'.fonts-body-large-regular': {
|
|
116
127
|
...bodyCommons,
|
|
117
128
|
fontSize: wrapperThemeType('fontSize.2xs'),
|
|
118
129
|
fontWeight: wrapperThemeType('fontWeight.regular'),
|
|
119
130
|
},
|
|
120
131
|
|
|
121
|
-
'.fonts-body-
|
|
132
|
+
'.fonts-body-large-bold': {
|
|
122
133
|
...bodyCommons,
|
|
123
134
|
fontSize: wrapperThemeType('fontSize.2xs'),
|
|
124
135
|
fontWeight: wrapperThemeType('fontWeight.bold'),
|
|
@@ -203,11 +214,7 @@ export const outlinesForFocus = plugin(({ addUtilities }) => {
|
|
|
203
214
|
'.outline-focused': {
|
|
204
215
|
outline: '2px solid #8250DF',
|
|
205
216
|
outlineOffset: '2px',
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
'.outline-focused-invert': {
|
|
209
|
-
outline: '2px solid #ffffff',
|
|
210
|
-
outlineOffset: '0px',
|
|
217
|
+
outlineStyle: 'auto',
|
|
211
218
|
},
|
|
212
219
|
})
|
|
213
220
|
})
|
package/vite.config.ts
CHANGED
|
@@ -33,6 +33,7 @@ export default defineConfig({
|
|
|
33
33
|
alias: {
|
|
34
34
|
'@': path.resolve(currentPath, './src'),
|
|
35
35
|
'@assets': path.resolve(currentPath, './src/assets'),
|
|
36
|
+
'@composables': path.resolve(currentPath, './src/composables'),
|
|
36
37
|
'@components': path.resolve(currentPath, './src/components'),
|
|
37
38
|
'@forms': path.resolve(currentPath, './src/components/forms'),
|
|
38
39
|
'@themes': path.resolve(currentPath, 'theme'),
|
|
@@ -42,7 +43,7 @@ export default defineConfig({
|
|
|
42
43
|
plugins: [
|
|
43
44
|
vue({
|
|
44
45
|
include: [/\.vue$/],
|
|
45
|
-
}),
|
|
46
|
+
}) as any,
|
|
46
47
|
|
|
47
48
|
WindiCSS(),
|
|
48
49
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|