@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.
Files changed (90) hide show
  1. package/.vscode/extensions.json +17 -0
  2. package/.vscode/settings.json +21 -0
  3. package/README.md +15 -0
  4. package/cli/.eslintrc.js +18 -0
  5. package/cli/LICENSE +21 -0
  6. package/cli/__tests__/cli-integration.test.ts +29 -0
  7. package/cli/bin/girassol +21 -0
  8. package/cli/docs/commands.md +3 -0
  9. package/cli/docs/plugins.md +47 -0
  10. package/cli/package.json +63 -0
  11. package/cli/readme.md +26 -0
  12. package/cli/src/cli.ts +25 -0
  13. package/cli/src/commands/generate:plugin.ts +58 -0
  14. package/cli/src/commands/generate:types.ts +37 -0
  15. package/cli/src/commands/girassol.ts +12 -0
  16. package/cli/src/extensions/cli-extension.ts +17 -0
  17. package/cli/src/templates/components.d.ts.ejs +10 -0
  18. package/cli/src/templates/nuxt-plugin.ejs +7 -0
  19. package/cli/src/templates/vue-plugin.ejs +5 -0
  20. package/cli/src/types.ts +1 -0
  21. package/cli/tsconfig.json +28 -0
  22. package/cli/yarn.lock +4633 -0
  23. package/dist/favicon.ico +0 -0
  24. package/dist/fonts/lato/Lato-Bold.ttf +0 -0
  25. package/dist/fonts/lato/Lato-Medium.ttf +0 -0
  26. package/dist/fonts/lato/Lato-Regular.ttf +0 -0
  27. package/dist/fonts/roboto-slab/RobotoSlab.ttf +0 -0
  28. package/dist/fonts/rubik/Rubik-Bold.ttf +0 -0
  29. package/dist/fonts/rubik/Rubik-Medium.ttf +0 -0
  30. package/dist/fonts/rubik/Rubik-Regular.ttf +0 -0
  31. package/dist/girassol.es.js +508 -0
  32. package/dist/girassol.svg +3 -0
  33. package/dist/girassol.umd.js +5 -0
  34. package/dist/logo.svg +24 -0
  35. package/dist/main.css +41 -0
  36. package/dist/storybook.ico +0 -0
  37. package/dist/storybook.png +0 -0
  38. package/dist/storybook.svg +3 -0
  39. package/dist/style.css +1 -0
  40. package/dist/theme/solfacil/borders.d.ts +19 -0
  41. package/dist/theme/solfacil/colors.d.ts +39 -0
  42. package/dist/theme/solfacil/effects.d.ts +14 -0
  43. package/dist/theme/solfacil/index.d.ts +10 -0
  44. package/dist/theme/solfacil/miscs.d.ts +13 -0
  45. package/dist/theme/solfacil/spacing.d.ts +48 -0
  46. package/dist/theme/solfacil/typography.d.ts +42 -0
  47. package/dist/theme/solfacil/utilities.d.ts +1 -0
  48. package/dist/types/components/forms/button/Button.vue.d.ts +38 -0
  49. package/dist/types/components/forms/button/index.d.ts +2 -0
  50. package/dist/types/components/forms/checkbox/Checkbox.vue.d.ts +30 -0
  51. package/dist/types/components/forms/checkbox/CheckboxGroup.vue.d.ts +51 -0
  52. package/dist/types/components/forms/checkbox/checkbox-type.d.ts +9 -0
  53. package/dist/types/components/forms/checkbox/index.d.ts +3 -0
  54. package/dist/types/components/forms/input/Input.vue.d.ts +25 -0
  55. package/dist/types/components/forms/input/index.d.ts +2 -0
  56. package/dist/types/components/forms/radio/Radio.vue.d.ts +30 -0
  57. package/dist/types/components/forms/radio/RadioGroup.vue.d.ts +51 -0
  58. package/dist/types/components/forms/radio/index.d.ts +3 -0
  59. package/dist/types/components/forms/radio/radio-type.d.ts +9 -0
  60. package/dist/types/components/forms/textfield/Textfield.vue.d.ts +45 -0
  61. package/dist/types/components/forms/textfield/TextfieldPassword.vue.d.ts +31 -0
  62. package/dist/types/components/forms/textfield/index.d.ts +3 -0
  63. package/dist/types/index.d.ts +13 -0
  64. package/dist/vite.config.d.ts +2 -0
  65. package/dist/windi.config.d.ts +2 -0
  66. package/package.json +82 -0
  67. package/public/favicon.ico +0 -0
  68. package/public/fonts/lato/Lato-Bold.ttf +0 -0
  69. package/public/fonts/lato/Lato-Medium.ttf +0 -0
  70. package/public/fonts/lato/Lato-Regular.ttf +0 -0
  71. package/public/fonts/roboto-slab/RobotoSlab.ttf +0 -0
  72. package/public/fonts/rubik/Rubik-Bold.ttf +0 -0
  73. package/public/fonts/rubik/Rubik-Medium.ttf +0 -0
  74. package/public/fonts/rubik/Rubik-Regular.ttf +0 -0
  75. package/public/girassol.svg +3 -0
  76. package/public/logo.svg +24 -0
  77. package/public/main.css +41 -0
  78. package/public/storybook.ico +0 -0
  79. package/public/storybook.png +0 -0
  80. package/public/storybook.svg +3 -0
  81. package/theme/solfacil/borders.ts +20 -0
  82. package/theme/solfacil/colors.ts +43 -0
  83. package/theme/solfacil/effects.ts +15 -0
  84. package/theme/solfacil/index.ts +22 -0
  85. package/theme/solfacil/miscs.ts +14 -0
  86. package/theme/solfacil/spacing.ts +56 -0
  87. package/theme/solfacil/typography.ts +51 -0
  88. package/theme/solfacil/utilities.ts +15 -0
  89. package/vite.config.ts +64 -0
  90. 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
+ })
@@ -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
+ })