@solfacil/girassol 0.6.0 → 0.7.0-beta-tabs.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/cli/build/cli.js +68 -0
- package/cli/build/commands/create:component.js +136 -0
- package/cli/build/commands/generate:plugin.js +109 -0
- package/cli/build/commands/generate:types.js +76 -0
- package/cli/build/commands/girassol-cli.js +52 -0
- package/cli/build/extensions/cli-extension.js +17 -0
- package/cli/build/templates/components.d.ts.ejs +1 -0
- package/cli/build/templates/nuxt-plugin.ejs +8 -0
- package/cli/build/templates/vitesse-plugin.ejs +8 -0
- package/cli/build/templates/vue-plugin.ejs +5 -0
- package/cli/build/templates/windi.config.ts.ejs +3 -0
- package/cli/build/types/cli.d.ts +1 -0
- package/cli/build/types/commands/create:component.d.ts +1 -0
- package/cli/build/types/commands/generate:plugin.d.ts +1 -0
- package/cli/build/types/commands/generate:types.d.ts +7 -0
- package/cli/build/types/commands/girassol-cli.d.ts +1 -0
- package/cli/build/types/extensions/cli-extension.d.ts +1 -0
- package/cli/build/types/types.d.ts +0 -0
- package/cli/build/types.js +2 -0
- package/dist/components.d.ts +6 -1
- package/dist/components.json +1 -1
- package/dist/girassol.es.js +3081 -2652
- package/dist/girassol.umd.js +9 -9
- package/dist/style.css +1 -1
- package/dist/theme/solfacil/index.d.ts +1 -0
- package/dist/theme/solfacil/utilities.d.ts +1 -0
- package/dist/types/components/empty-state/EmptyState.vue.d.ts +97 -0
- package/dist/types/components/{informations/chip/chip.spec.d.ts → empty-state/empty-state.spec.d.ts} +0 -0
- package/dist/types/components/empty-state/index.d.ts +2 -0
- package/dist/types/components/empty-state/types.d.ts +7 -0
- package/dist/types/components/{informations/chip/Chip.vue.d.ts → filters/chip/removable-chip/RemovableChip.vue.d.ts} +37 -37
- package/dist/types/components/filters/chip/removable-chip/index.d.ts +2 -0
- package/dist/types/components/filters/chip/removable-chip/removable-chip.spec.d.ts +1 -0
- package/dist/types/components/filters/chip/removable-chip/types.d.ts +4 -0
- package/dist/types/components/filters/chip/selectable-chip/SelectableChip.vue.d.ts +125 -0
- package/dist/types/components/filters/chip/selectable-chip/index.d.ts +2 -0
- package/dist/types/components/filters/chip/selectable-chip/selectable-chip.spec.d.ts +1 -0
- package/dist/types/components/filters/chip/selectable-chip/types.d.ts +5 -0
- package/dist/types/components/filters/chip/types.d.ts +6 -0
- package/dist/types/components/forms/button/button/Button.vue.d.ts +8 -8
- package/dist/types/components/forms/checkbox/checkbox/Checkbox.vue.d.ts +81 -13
- package/dist/types/components/forms/checkbox/checkbox-group/CheckboxGroup.vue.d.ts +4 -20
- package/dist/types/components/forms/inputs/input-core/Input.vue.d.ts +91 -15
- package/dist/types/components/forms/inputs/input-password/InputPassword.vue.d.ts +107 -21
- package/dist/types/components/forms/inputs/input-textarea/InputTextarea.vue.d.ts +121 -33
- package/dist/types/components/forms/radio/radio/Radio.vue.d.ts +78 -12
- package/dist/types/components/forms/radio/radio-group/RadioGroup.vue.d.ts +4 -20
- package/dist/types/components/forms/select/ListOption.vue.d.ts +16 -60
- package/dist/types/components/forms/select/Select.vue.d.ts +26 -24
- package/dist/types/components/forms/select/types.d.ts +2 -2
- package/dist/types/components/forms/switch/Switch.vue.d.ts +107 -20
- package/dist/types/components/informations/tag/Tag.vue.d.ts +4 -4
- package/dist/types/components/list/ListItem.vue.d.ts +17 -9
- package/dist/types/components/list/types.d.ts +2 -2
- package/dist/types/components/loader/CircleLoader.vue.d.ts +72 -10
- package/dist/types/components/modal/Modal.vue.d.ts +4 -4
- package/dist/types/components/pagination/Pagination.vue.d.ts +190 -0
- package/dist/types/components/pagination/index.d.ts +2 -0
- package/dist/types/components/pagination/pagination.spec.d.ts +1 -0
- package/dist/types/components/pagination/types.d.ts +14 -0
- package/dist/types/components/tabs/TabItem.vue.d.ts +83 -0
- package/dist/types/components/tabs/Tabs.vue.d.ts +133 -0
- package/dist/types/components/tabs/index.d.ts +2 -0
- package/dist/types/components/tabs/tabs.spec.d.ts +1 -0
- package/dist/types/components/tabs/types.d.ts +13 -0
- package/dist/types/composables/use-filters/index.d.ts +8 -0
- package/dist/types/composables/use-filters/use-filters.spec.d.ts +1 -0
- package/dist/types/composables/use-navigate/index.d.ts +3 -6
- package/dist/types/composables/use-navigate/types.d.ts +8 -0
- package/dist/types/composables/use-validate-field/index.d.ts +3 -3
- package/dist/types/composables/use-validate-field/types.d.ts +4 -8
- package/dist/types/index.d.ts +3434 -1989
- package/package.json +41 -31
- package/theme/solfacil/index.ts +2 -1
- package/theme/solfacil/utilities.ts +26 -1
- package/windi.config.ts +1 -14
- package/dist/types/components/informations/chip/index.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solfacil/girassol",
|
|
3
3
|
"description": "Girassol design system",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.7.0-beta-tabs.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"authors": [
|
|
7
7
|
{
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"types": "./dist/types/index.d.ts",
|
|
39
39
|
"scripts": {
|
|
40
|
+
"typecheck": "vue-tsc --noEmit",
|
|
40
41
|
"dev": "vite --port 3333 --host",
|
|
41
42
|
"build:lib": "vue-tsc --noEmit && vite build",
|
|
42
43
|
"build:lib:ts": "vite build && vue-tsc --emitDeclarationOnly && mv dist/src dist/types",
|
|
@@ -55,69 +56,75 @@
|
|
|
55
56
|
"cli:build": "yarn cli:clean-build && yarn cli:compile && yarn cli:copy-templates",
|
|
56
57
|
"prepare": "husky install",
|
|
57
58
|
"commit": "cz",
|
|
58
|
-
"pre-commit": "./.husky/run-staged-tests.js"
|
|
59
|
+
"pre-commit": "./.husky/run-staged-tests.js",
|
|
60
|
+
"semantic-release": "semantic-release"
|
|
59
61
|
},
|
|
60
62
|
"dependencies": {
|
|
61
|
-
"@vueuse/core": "^9.
|
|
63
|
+
"@vueuse/core": "^9.4.0",
|
|
62
64
|
"gluegun": "latest",
|
|
63
65
|
"maska": "^1.5.0",
|
|
64
|
-
"vee-validate": "^4.
|
|
65
|
-
"vue": "^3.2.
|
|
66
|
+
"vee-validate": "^4.7.1",
|
|
67
|
+
"vue": "^3.2.41"
|
|
66
68
|
},
|
|
67
69
|
"devDependencies": {
|
|
68
|
-
"@antfu/eslint-config": "^0.
|
|
69
|
-
"@babel/core": "^7.
|
|
70
|
-
"@babel/preset-env": "^7.
|
|
71
|
-
"@commitlint/cli": "^17.
|
|
72
|
-
"@commitlint/config-conventional": "^17.0
|
|
73
|
-
"@iconify/json": "^2.1.
|
|
70
|
+
"@antfu/eslint-config": "^0.27.0",
|
|
71
|
+
"@babel/core": "^7.19.6",
|
|
72
|
+
"@babel/preset-env": "^7.19.4",
|
|
73
|
+
"@commitlint/cli": "^17.1.2",
|
|
74
|
+
"@commitlint/config-conventional": "^17.1.0",
|
|
75
|
+
"@iconify/json": "^2.1.125",
|
|
76
|
+
"@semantic-release/changelog": "^6.0.1",
|
|
77
|
+
"@semantic-release/git": "^10.0.1",
|
|
78
|
+
"@semantic-release/npm": "^9.0.1",
|
|
79
|
+
"@semantic-release/release-notes-generator": "^10.0.3",
|
|
74
80
|
"@storybook/addon-a11y": "^6.5.10",
|
|
75
81
|
"@storybook/addon-actions": "^6.5.10",
|
|
76
82
|
"@storybook/addon-essentials": "^6.5.10",
|
|
77
83
|
"@storybook/addon-links": "^6.5.10",
|
|
78
|
-
"@storybook/builder-vite": "^0.2.
|
|
84
|
+
"@storybook/builder-vite": "^0.2.4",
|
|
79
85
|
"@storybook/theming": "^6.5.10",
|
|
80
86
|
"@storybook/vue3": "^6.5.10",
|
|
81
87
|
"@testing-library/jest-dom": "^5.16.5",
|
|
82
88
|
"@testing-library/user-event": "^14.4.3",
|
|
83
89
|
"@testing-library/vue": "^6.6.1",
|
|
84
|
-
"@types/jest-axe": "^3.5.
|
|
85
|
-
"@types/node": "
|
|
86
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
87
|
-
"@typescript-eslint/parser": "^5.
|
|
88
|
-
"@vitejs/plugin-vue": "^3.
|
|
89
|
-
"@vitest/coverage-c8": "^0.
|
|
90
|
-
"@vitest/ui": "^0.
|
|
90
|
+
"@types/jest-axe": "^3.5.5",
|
|
91
|
+
"@types/node": "18.8.0",
|
|
92
|
+
"@typescript-eslint/eslint-plugin": "^5.40.1",
|
|
93
|
+
"@typescript-eslint/parser": "^5.40.1",
|
|
94
|
+
"@vitejs/plugin-vue": "^3.1.2",
|
|
95
|
+
"@vitest/coverage-c8": "^0.24.3",
|
|
96
|
+
"@vitest/ui": "^0.24.3",
|
|
91
97
|
"babel-loader": "^8.2.5",
|
|
92
98
|
"c8": "^7.12.0",
|
|
93
99
|
"cli-spinner": "^0.2.10",
|
|
94
|
-
"commitizen": "^4.2.
|
|
100
|
+
"commitizen": "^4.2.5",
|
|
95
101
|
"copyfiles": "^2.4.1",
|
|
96
102
|
"critters": "^0.0.16",
|
|
97
|
-
"eslint": "^8.
|
|
103
|
+
"eslint": "^8.25.0",
|
|
98
104
|
"eslint-config-prettier": "^8.5.0",
|
|
99
|
-
"eslint-plugin-html": "^
|
|
105
|
+
"eslint-plugin-html": "^7.1.0",
|
|
100
106
|
"eslint-plugin-prettier": "^4.2.1",
|
|
101
|
-
"eslint-plugin-vue": "^
|
|
107
|
+
"eslint-plugin-vue": "^9.6.0",
|
|
102
108
|
"eslint-plugin-vuejs-accessibility": "^1.2.0",
|
|
103
109
|
"husky": "^8.0.1",
|
|
104
110
|
"jest-axe": "^5.0.1",
|
|
105
|
-
"jsdom": "^20.0.
|
|
111
|
+
"jsdom": "^20.0.1",
|
|
106
112
|
"sass": "^1.50.0",
|
|
113
|
+
"semantic-release": "^19.0.5",
|
|
107
114
|
"storybook-addon-designs": "^6.3.1",
|
|
108
115
|
"stylelint": "^14.10.0",
|
|
109
116
|
"stylelint-config-prettier": "^9.0.3",
|
|
110
117
|
"stylelint-config-property-sort-order-smacss": "^9.0.0",
|
|
111
118
|
"stylelint-order": "^5.0.0",
|
|
112
119
|
"ts-node": "^10.9.1",
|
|
113
|
-
"typescript": "^4.
|
|
114
|
-
"unplugin-icons": "^0.14.
|
|
115
|
-
"vite": "^3.
|
|
116
|
-
"vite-plugin-inspect": "^0.
|
|
117
|
-
"vite-plugin-windicss": "^1.8.
|
|
118
|
-
"vitest": "^0.
|
|
120
|
+
"typescript": "^4.8.4",
|
|
121
|
+
"unplugin-icons": "^0.14.12",
|
|
122
|
+
"vite": "^3.1.8",
|
|
123
|
+
"vite-plugin-inspect": "^0.7.5",
|
|
124
|
+
"vite-plugin-windicss": "^1.8.8",
|
|
125
|
+
"vitest": "^0.24.3",
|
|
119
126
|
"vue-loader": "^17.0.0",
|
|
120
|
-
"vue-tsc": "^0.
|
|
127
|
+
"vue-tsc": "^1.0.9",
|
|
121
128
|
"windicss": "^3.5.6"
|
|
122
129
|
},
|
|
123
130
|
"resolutions": {
|
|
@@ -144,5 +151,8 @@
|
|
|
144
151
|
"commitizen": {
|
|
145
152
|
"path": "./node_modules/cz-conventional-changelog"
|
|
146
153
|
}
|
|
154
|
+
},
|
|
155
|
+
"publishConfig": {
|
|
156
|
+
"access": "public"
|
|
147
157
|
}
|
|
148
158
|
}
|
package/theme/solfacil/index.ts
CHANGED
|
@@ -6,7 +6,7 @@ import effects from './effects'
|
|
|
6
6
|
import misc from './miscs'
|
|
7
7
|
|
|
8
8
|
import { screens } from './screens'
|
|
9
|
-
import { componentTypos, debug, maxLines, outlinesForFocus, placeholder, scrollbarBase } from './utilities'
|
|
9
|
+
import { componentTypos, debug, iconSizes, maxLines, outlinesForFocus, placeholder, scrollbarBase } from './utilities'
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
export {
|
|
@@ -26,4 +26,5 @@ export const utilities = {
|
|
|
26
26
|
debug,
|
|
27
27
|
placeholder,
|
|
28
28
|
scrollbarBase,
|
|
29
|
+
iconSizes,
|
|
29
30
|
}
|
|
@@ -213,7 +213,7 @@ export const outlinesForFocus = plugin(({ addUtilities }) => {
|
|
|
213
213
|
addUtilities({
|
|
214
214
|
'.outline-focused': {
|
|
215
215
|
outline: '2px solid #8250DF',
|
|
216
|
-
outlineOffset: '
|
|
216
|
+
outlineOffset: '4px',
|
|
217
217
|
outlineStyle: 'auto',
|
|
218
218
|
},
|
|
219
219
|
})
|
|
@@ -325,4 +325,29 @@ export const scrollbarBase = plugin(({ addBase }) => {
|
|
|
325
325
|
'display': 'none',
|
|
326
326
|
},
|
|
327
327
|
})
|
|
328
|
+
})
|
|
329
|
+
|
|
330
|
+
export const iconSizes = plugin(({ addUtilities }) => {
|
|
331
|
+
addUtilities({
|
|
332
|
+
'.icon-size-small': {
|
|
333
|
+
height: '16px',
|
|
334
|
+
width: '16px',
|
|
335
|
+
},
|
|
336
|
+
'.icon-size-medium': {
|
|
337
|
+
height: '24px',
|
|
338
|
+
width: '24px',
|
|
339
|
+
},
|
|
340
|
+
'.icon-size-large': {
|
|
341
|
+
height: '32px',
|
|
342
|
+
width: '32px',
|
|
343
|
+
},
|
|
344
|
+
'.icon-size-x-large': {
|
|
345
|
+
height: '40px',
|
|
346
|
+
width: '40px',
|
|
347
|
+
},
|
|
348
|
+
'.icon-size-giga': {
|
|
349
|
+
height: '48px',
|
|
350
|
+
width: '48px',
|
|
351
|
+
},
|
|
352
|
+
})
|
|
328
353
|
})
|
package/windi.config.ts
CHANGED
|
@@ -4,10 +4,6 @@ import typography from 'windicss/plugin/typography'
|
|
|
4
4
|
|
|
5
5
|
import { borders, colors, effects, misc, screens, spacing, typography as typos, utilities } from './theme/solfacil/'
|
|
6
6
|
|
|
7
|
-
// import { sizings } from './theme/solfacil/spacing'
|
|
8
|
-
|
|
9
|
-
// import { safelist } from './theme/safelist'
|
|
10
|
-
|
|
11
7
|
export default defineConfig({
|
|
12
8
|
darkMode: 'class',
|
|
13
9
|
attributify: false,
|
|
@@ -15,16 +11,6 @@ export default defineConfig({
|
|
|
15
11
|
include: ['index.html', 'src/**/*', '*.mdx', '*.vue'],
|
|
16
12
|
},
|
|
17
13
|
|
|
18
|
-
// safelist: [
|
|
19
|
-
// ...safelist({
|
|
20
|
-
// activeSafeList: true,
|
|
21
|
-
// data: {
|
|
22
|
-
// colors,
|
|
23
|
-
// spacing: sizings,
|
|
24
|
-
// },
|
|
25
|
-
// }),
|
|
26
|
-
// ],
|
|
27
|
-
|
|
28
14
|
plugins: [
|
|
29
15
|
typography(),
|
|
30
16
|
utilities.outlinesForFocus,
|
|
@@ -33,6 +19,7 @@ export default defineConfig({
|
|
|
33
19
|
utilities.placeholder,
|
|
34
20
|
utilities.componentTypos,
|
|
35
21
|
utilities.scrollbarBase,
|
|
22
|
+
utilities.iconSizes,
|
|
36
23
|
],
|
|
37
24
|
|
|
38
25
|
theme: {
|