@solfacil/girassol 0.1.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.
- package/.vscode/extensions.json +17 -0
- package/.vscode/settings.json +21 -0
- package/README.md +15 -0
- package/cli/.eslintrc.js +18 -0
- package/cli/LICENSE +21 -0
- package/cli/__tests__/cli-integration.test.ts +29 -0
- package/cli/bin/girassol +21 -0
- package/cli/docs/commands.md +3 -0
- package/cli/docs/plugins.md +47 -0
- package/cli/package.json +63 -0
- package/cli/readme.md +26 -0
- package/cli/src/cli.ts +25 -0
- package/cli/src/commands/generate:plugin.ts +58 -0
- package/cli/src/commands/generate:types.ts +37 -0
- package/cli/src/commands/girassol.ts +12 -0
- package/cli/src/extensions/cli-extension.ts +17 -0
- package/cli/src/templates/components.d.ts.ejs +10 -0
- package/cli/src/templates/nuxt-plugin.ejs +7 -0
- package/cli/src/templates/vue-plugin.ejs +5 -0
- package/cli/src/types.ts +1 -0
- package/cli/tsconfig.json +28 -0
- package/cli/yarn.lock +4633 -0
- package/dist/favicon.ico +0 -0
- 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/dist/girassol.es.js +508 -0
- package/dist/girassol.svg +3 -0
- package/dist/girassol.umd.js +5 -0
- package/dist/logo.svg +24 -0
- package/dist/main.css +41 -0
- package/dist/storybook.ico +0 -0
- package/dist/storybook.png +0 -0
- package/dist/storybook.svg +3 -0
- package/dist/style.css +1 -0
- package/dist/theme/solfacil/borders.d.ts +19 -0
- package/dist/theme/solfacil/colors.d.ts +39 -0
- package/dist/theme/solfacil/effects.d.ts +14 -0
- package/dist/theme/solfacil/index.d.ts +10 -0
- package/dist/theme/solfacil/miscs.d.ts +13 -0
- package/dist/theme/solfacil/spacing.d.ts +48 -0
- package/dist/theme/solfacil/typography.d.ts +42 -0
- package/dist/theme/solfacil/utilities.d.ts +1 -0
- package/dist/types/components/forms/button/Button.vue.d.ts +38 -0
- package/dist/types/components/forms/button/index.d.ts +2 -0
- package/dist/types/components/forms/checkbox/Checkbox.vue.d.ts +30 -0
- package/dist/types/components/forms/checkbox/CheckboxGroup.vue.d.ts +51 -0
- package/dist/types/components/forms/checkbox/checkbox-type.d.ts +9 -0
- package/dist/types/components/forms/checkbox/index.d.ts +3 -0
- package/dist/types/components/forms/input/Input.vue.d.ts +25 -0
- package/dist/types/components/forms/input/index.d.ts +2 -0
- package/dist/types/components/forms/radio/Radio.vue.d.ts +30 -0
- package/dist/types/components/forms/radio/RadioGroup.vue.d.ts +51 -0
- package/dist/types/components/forms/radio/index.d.ts +3 -0
- package/dist/types/components/forms/radio/radio-type.d.ts +9 -0
- package/dist/types/components/forms/textfield/Textfield.vue.d.ts +45 -0
- package/dist/types/components/forms/textfield/TextfieldPassword.vue.d.ts +31 -0
- package/dist/types/components/forms/textfield/index.d.ts +3 -0
- package/dist/types/index.d.ts +13 -0
- package/dist/vite.config.d.ts +2 -0
- package/dist/windi.config.d.ts +2 -0
- package/package.json +82 -0
- package/public/favicon.ico +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/public/girassol.svg +3 -0
- package/public/logo.svg +24 -0
- package/public/main.css +41 -0
- package/public/storybook.ico +0 -0
- package/public/storybook.png +0 -0
- package/public/storybook.svg +3 -0
- package/theme/solfacil/borders.ts +20 -0
- package/theme/solfacil/colors.ts +43 -0
- package/theme/solfacil/effects.ts +15 -0
- package/theme/solfacil/index.ts +22 -0
- package/theme/solfacil/miscs.ts +14 -0
- package/theme/solfacil/spacing.ts +56 -0
- package/theme/solfacil/typography.ts +51 -0
- package/theme/solfacil/utilities.ts +15 -0
- package/vite.config.ts +64 -0
- package/windi.config.ts +30 -0
package/vite.config.ts
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import path from 'path'
|
|
2
|
+
|
|
3
|
+
import { defineConfig } from 'vite'
|
|
4
|
+
import vue from '@vitejs/plugin-vue'
|
|
5
|
+
|
|
6
|
+
import Icons from 'unplugin-icons/vite'
|
|
7
|
+
|
|
8
|
+
import Inspect from 'vite-plugin-inspect'
|
|
9
|
+
import WindiCSS from 'vite-plugin-windicss'
|
|
10
|
+
|
|
11
|
+
const currentPath = path.resolve(__dirname)
|
|
12
|
+
|
|
13
|
+
// https://vitejs.dev/config/
|
|
14
|
+
export default defineConfig({
|
|
15
|
+
build: {
|
|
16
|
+
lib: {
|
|
17
|
+
entry: path.resolve(__dirname, "src/index.ts"),
|
|
18
|
+
name: "girassol",
|
|
19
|
+
fileName: (format) => `girassol.${format}.js`,
|
|
20
|
+
},
|
|
21
|
+
rollupOptions: {
|
|
22
|
+
external: ["vue"],
|
|
23
|
+
output: {
|
|
24
|
+
globals: {
|
|
25
|
+
vue: "Vue",
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
resolve: {
|
|
31
|
+
alias: {
|
|
32
|
+
'@': path.resolve(currentPath, './src'),
|
|
33
|
+
'@assets': path.resolve(currentPath, './src/assets'),
|
|
34
|
+
'@components': path.resolve(currentPath, './src/components'),
|
|
35
|
+
'@forms': path.resolve(currentPath, './src/components/forms'),
|
|
36
|
+
'@themes': path.resolve(currentPath, 'theme')
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
plugins: [
|
|
41
|
+
vue({
|
|
42
|
+
include: [/\.vue$/],
|
|
43
|
+
}),
|
|
44
|
+
|
|
45
|
+
WindiCSS(),
|
|
46
|
+
|
|
47
|
+
Inspect({
|
|
48
|
+
enabled: true,
|
|
49
|
+
}),
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
Icons({
|
|
53
|
+
autoInstall: true,
|
|
54
|
+
compiler: 'vue3'
|
|
55
|
+
}),
|
|
56
|
+
],
|
|
57
|
+
|
|
58
|
+
optimizeDeps: {
|
|
59
|
+
include: [
|
|
60
|
+
'vue',
|
|
61
|
+
'@vueuse/core',
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
})
|
package/windi.config.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineConfig } from 'windicss/helpers'
|
|
2
|
+
|
|
3
|
+
import typography from 'windicss/plugin/typography'
|
|
4
|
+
|
|
5
|
+
import { colors, typography as typos, effects, spacing, borders, misc, utilities } from './theme/solfacil/'
|
|
6
|
+
|
|
7
|
+
export default defineConfig({
|
|
8
|
+
darkMode: 'class',
|
|
9
|
+
attributify: false,
|
|
10
|
+
extract: {
|
|
11
|
+
include: ['index.html', 'src/**/*']
|
|
12
|
+
},
|
|
13
|
+
|
|
14
|
+
plugins: [
|
|
15
|
+
typography(),
|
|
16
|
+
utilities.outlinesForFocus
|
|
17
|
+
],
|
|
18
|
+
|
|
19
|
+
theme: {
|
|
20
|
+
extend: {
|
|
21
|
+
...misc,
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
colors,
|
|
25
|
+
...typos,
|
|
26
|
+
...effects,
|
|
27
|
+
...borders,
|
|
28
|
+
...spacing
|
|
29
|
+
},
|
|
30
|
+
})
|