@solfacil/girassol 0.1.7 → 0.1.10

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 (64) hide show
  1. package/.vscode/settings.json +1 -0
  2. package/README.md +46 -3
  3. package/cli/bin/{girassol → girassol-cli} +0 -0
  4. package/cli/build/cli.js +68 -0
  5. package/cli/build/commands/create:component.js +124 -0
  6. package/cli/build/commands/generate:plugin.js +89 -0
  7. package/cli/build/commands/generate:types.js +76 -0
  8. package/cli/build/commands/girassol-cli.js +52 -0
  9. package/cli/build/extensions/cli-extension.js +17 -0
  10. package/cli/build/templates/components.d.ts.ejs +1 -0
  11. package/cli/build/templates/nuxt-plugin.ejs +8 -0
  12. package/cli/build/templates/vue-plugin.ejs +5 -0
  13. package/cli/{src → build}/templates/windi.config.ts.ejs +0 -0
  14. package/cli/build/types/cli.d.ts +1 -0
  15. package/cli/build/types/commands/create:component.d.ts +1 -0
  16. package/cli/build/types/commands/generate:plugin.d.ts +1 -0
  17. package/cli/build/types/commands/generate:types.d.ts +7 -0
  18. package/cli/build/types/commands/girassol-cli.d.ts +1 -0
  19. package/cli/build/types/extensions/cli-extension.d.ts +1 -0
  20. package/cli/build/types/types.d.ts +0 -0
  21. package/cli/build/types.js +2 -0
  22. package/dist/cli/src/cli.d.ts +1 -0
  23. package/dist/cli/src/commands/create:component.d.ts +1 -0
  24. package/dist/cli/src/commands/generate:plugin.d.ts +1 -0
  25. package/dist/cli/src/commands/generate:types.d.ts +7 -0
  26. package/dist/cli/src/commands/girassol-cli.d.ts +1 -0
  27. package/dist/cli/src/extensions/cli-extension.d.ts +1 -0
  28. package/dist/cli/src/types.d.ts +0 -0
  29. package/dist/components.d.ts +21 -0
  30. package/dist/components.json +1 -0
  31. package/dist/girassol.es.js +283 -198
  32. package/dist/girassol.umd.js +5 -5
  33. package/dist/style.css +1 -1
  34. package/dist/types/components/dropdown/Dropdown.vue.d.ts +4 -0
  35. package/dist/types/components/forms/select/Select.vue.d.ts +6 -5
  36. package/dist/types/components/informations/chip/Chip.vue.d.ts +41 -0
  37. package/dist/types/components/informations/chip/chip.spec.d.ts +1 -0
  38. package/dist/types/components/informations/chip/index.d.ts +2 -0
  39. package/dist/types/index.d.ts +841 -2
  40. package/dist/vite-modules/generate-component-types.d.ts +3 -0
  41. package/package.json +45 -22
  42. package/vite.config.ts +4 -0
  43. package/cli/.eslintrc.js +0 -18
  44. package/cli/LICENSE +0 -21
  45. package/cli/docs/commands.md +0 -3
  46. package/cli/docs/plugins.md +0 -47
  47. package/cli/package.json +0 -53
  48. package/cli/readme.md +0 -26
  49. package/cli/src/cli.ts +0 -25
  50. package/cli/src/commands/create:component.ts +0 -91
  51. package/cli/src/commands/generate:plugin.ts +0 -68
  52. package/cli/src/commands/generate:types.ts +0 -38
  53. package/cli/src/commands/girassol.ts +0 -12
  54. package/cli/src/extensions/cli-extension.ts +0 -17
  55. package/cli/src/templates/components/component.spec.ts.ejs +0 -20
  56. package/cli/src/templates/components/component.stories.mdx.ejs +0 -74
  57. package/cli/src/templates/components/component.vue.ejs +0 -23
  58. package/cli/src/templates/components/index.ts.ejs +0 -10
  59. package/cli/src/templates/components.d.ts.ejs +0 -10
  60. package/cli/src/templates/nuxt-plugin.ejs +0 -7
  61. package/cli/src/templates/vue-plugin.ejs +0 -5
  62. package/cli/src/types.ts +0 -1
  63. package/cli/tsconfig.json +0 -28
  64. package/cli/yarn.lock +0 -1804
@@ -1,23 +0,0 @@
1
- <script setup lang="ts">
2
- defineProps<{
3
- id: string
4
- label?: string
5
- }>()
6
-
7
- const emit = defineEmits<{
8
- (e: 'change', value: string): void
9
- }>()
10
-
11
- </script>
12
-
13
- <template>
14
- <div class="sol-<%- props.nameClass %>-core" >
15
- {{ label }}
16
- </div>
17
- </template>
18
-
19
- <style lang="scss">
20
- .sol-<%- props.nameClass %>-core {
21
- @apply bg-brand-primary-medium px-2xs;
22
- }
23
- </style>
@@ -1,10 +0,0 @@
1
- import type { App } from 'vue'
2
- import Sol<%- props.name %> from './<%- props.name %>.vue'
3
-
4
- Sol<%- props.name %>.install = (app: App) => {
5
- app.component('Sol<%- props.name %>', Sol<%- props.name %>)
6
- }
7
-
8
- export {
9
- Sol<%- props.name %>,
10
- }
@@ -1,10 +0,0 @@
1
- declare module '@vue/runtime-core' {
2
- export interface GlobalComponents {
3
- <% props.componentsNames.forEach((comp, index) => {%><%-
4
- `${comp}: typeof import('@solfacil/girassol')['${comp}']`
5
- %>
6
- <% });%>
7
- }
8
- }
9
-
10
- export {}
@@ -1,7 +0,0 @@
1
- import { defineNuxtPlugin } from '#app';
2
-
3
- import { install } from '@solfacil/girassol'
4
-
5
- export default defineNuxtPlugin(({ vueApp }) => {
6
- vueApp.use(install)
7
- })
@@ -1,5 +0,0 @@
1
- import { install } from '@solfacil/girassol'
2
-
3
- export default {
4
- install
5
- }
package/cli/src/types.ts DELETED
@@ -1 +0,0 @@
1
- // export types
package/cli/tsconfig.json DELETED
@@ -1,28 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "allowSyntheticDefaultImports": false,
4
- "experimentalDecorators": true,
5
- "lib": [
6
- "es2015",
7
- "scripthost",
8
- "es2015.promise",
9
- "es2015.generator",
10
- "es2015.iterable",
11
- "dom"
12
- ],
13
- "module": "commonjs",
14
- "moduleResolution": "node",
15
- "noImplicitAny": false,
16
- "noImplicitThis": true,
17
- "noUnusedLocals": true,
18
- "sourceMap": false,
19
- "inlineSourceMap": true,
20
- "outDir": "build",
21
- "strict": false,
22
- "target": "es5",
23
- "declaration": true,
24
- "declarationDir": "build/types"
25
- },
26
- "include": ["src/**/*"],
27
- "exclude": ["node_modules"]
28
- }