@solfacil/girassol 0.1.8 → 0.1.11
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 +46 -3
- package/cli/bin/{girassol → girassol-cli} +0 -0
- package/cli/build/cli.js +68 -0
- package/cli/build/commands/create:component.js +124 -0
- package/cli/build/commands/generate:plugin.js +89 -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/vue-plugin.ejs +5 -0
- package/cli/{src → build}/templates/windi.config.ts.ejs +0 -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/cli/src/cli.d.ts +1 -0
- package/dist/cli/src/commands/create:component.d.ts +1 -0
- package/dist/cli/src/commands/generate:plugin.d.ts +1 -0
- package/dist/cli/src/commands/generate:types.d.ts +7 -0
- package/dist/cli/src/commands/girassol-cli.d.ts +1 -0
- package/dist/cli/src/extensions/cli-extension.d.ts +1 -0
- package/dist/cli/src/types.d.ts +0 -0
- package/dist/components.d.ts +22 -0
- package/dist/components.json +1 -0
- package/dist/girassol.es.js +281 -206
- package/dist/girassol.umd.js +22 -5
- package/dist/style.css +1 -1
- package/dist/types/components/accordion/Accordion.vue.d.ts +32 -0
- package/dist/types/components/accordion/accordion.spec.d.ts +1 -0
- package/dist/types/components/accordion/index.d.ts +2 -0
- package/dist/types/components/dropdown/Dropdown.vue.d.ts +4 -0
- package/dist/types/components/forms/checkbox/CheckboxGroup.vue.d.ts +1 -1
- package/dist/types/components/forms/radio/RadioGroup.vue.d.ts +1 -1
- package/dist/types/components/forms/select/Select.vue.d.ts +6 -5
- package/dist/types/components/forms/textarea/Textarea.vue.d.ts +1 -1
- package/dist/types/components/forms/textfield/Textfield.vue.d.ts +1 -1
- package/dist/types/index.d.ts +876 -2
- package/dist/vite-modules/generate-component-types.d.ts +3 -0
- package/package.json +50 -27
- package/vite.config.ts +4 -0
- package/cli/.eslintrc.js +0 -18
- package/cli/LICENSE +0 -21
- package/cli/docs/commands.md +0 -3
- package/cli/docs/plugins.md +0 -47
- package/cli/package.json +0 -53
- package/cli/readme.md +0 -26
- package/cli/src/cli.ts +0 -25
- package/cli/src/commands/create:component.ts +0 -93
- package/cli/src/commands/generate:plugin.ts +0 -68
- package/cli/src/commands/generate:types.ts +0 -38
- package/cli/src/commands/girassol.ts +0 -12
- package/cli/src/extensions/cli-extension.ts +0 -17
- package/cli/src/templates/components/component.spec.ts.ejs +0 -20
- package/cli/src/templates/components/component.stories.mdx.ejs +0 -74
- package/cli/src/templates/components/component.vue.ejs +0 -23
- package/cli/src/templates/components/index.ts.ejs +0 -10
- package/cli/src/templates/components.d.ts.ejs +0 -10
- package/cli/src/templates/nuxt-plugin.ejs +0 -7
- package/cli/src/templates/vue-plugin.ejs +0 -5
- package/cli/src/types.ts +0 -1
- package/cli/tsconfig.json +0 -28
- package/cli/yarn.lock +0 -1804
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs'
|
|
2
|
-
import { withDesign } from 'storybook-addon-designs'
|
|
3
|
-
|
|
4
|
-
import <%- props.name %> from './<%- props.name %>.vue'
|
|
5
|
-
|
|
6
|
-
<Meta
|
|
7
|
-
title="Componentes/<%- props.folder %>/<%- props.name %>"
|
|
8
|
-
component={<%- props.name %>}
|
|
9
|
-
decorators={[withDesign]}
|
|
10
|
-
parameters={{
|
|
11
|
-
design: {
|
|
12
|
-
type: 'figma',
|
|
13
|
-
url: '',
|
|
14
|
-
},
|
|
15
|
-
}}
|
|
16
|
-
argTypes={{
|
|
17
|
-
label: 'hi!'
|
|
18
|
-
}}
|
|
19
|
-
/>
|
|
20
|
-
|
|
21
|
-
export const Template = ({ label,...args }) => ({
|
|
22
|
-
components: { <%- props.name %> },
|
|
23
|
-
setup() {
|
|
24
|
-
return { args, label }
|
|
25
|
-
},
|
|
26
|
-
template: `<<%- props.name %> v-bind="args" id="teste"></<%- props.name %>>`,
|
|
27
|
-
})
|
|
28
|
-
|
|
29
|
-
# <%- props.name %>
|
|
30
|
-
|
|
31
|
-
## Melhores praticas
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
## Acessibilidade
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
## Importar localmente
|
|
38
|
-
|
|
39
|
-
```js dark
|
|
40
|
-
import { Sol<%- props.name %> } from '@solfacil/girassol'
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
## Variants
|
|
44
|
-
<Canvas>
|
|
45
|
-
<Story
|
|
46
|
-
name="Default"
|
|
47
|
-
args={{
|
|
48
|
-
label: 'default',
|
|
49
|
-
}}
|
|
50
|
-
>
|
|
51
|
-
{Template.bind({})}
|
|
52
|
-
</Story>
|
|
53
|
-
</Canvas>
|
|
54
|
-
|
|
55
|
-
## Exemplos de uso
|
|
56
|
-
|
|
57
|
-
```html dark
|
|
58
|
-
<Sol<%- props.name %> id="just-test">Awesome component!</Sol<%- props.name %>>
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
## Playground
|
|
62
|
-
|
|
63
|
-
<Canvas>
|
|
64
|
-
<Story
|
|
65
|
-
name="Playground"
|
|
66
|
-
args={{
|
|
67
|
-
label: 'its work fine!',
|
|
68
|
-
}}
|
|
69
|
-
>
|
|
70
|
-
{Template.bind({})}
|
|
71
|
-
</Story>
|
|
72
|
-
</Canvas>
|
|
73
|
-
|
|
74
|
-
<ArgsTable story="Playground" />
|
|
@@ -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
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<template>
|
|
13
|
-
<div class="sol-<%- props.nameClass %>-core">
|
|
14
|
-
{{ label }}
|
|
15
|
-
</div>
|
|
16
|
-
</template>
|
|
17
|
-
|
|
18
|
-
<style lang="scss">
|
|
19
|
-
.sol-<%- props.nameClass %>-core {
|
|
20
|
-
|
|
21
|
-
| @apply bg-brand-primary-medium px-2xs;
|
|
22
|
-
}
|
|
23
|
-
</style>
|
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
|
-
}
|