@solfacil/girassol 0.1.6 → 0.1.9
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/settings.json +1 -0
- package/README.md +46 -3
- package/cli/src/commands/create:component.ts +2 -0
- package/cli/src/templates/components/component.vue.ejs +11 -11
- package/dist/girassol.es.js +276 -183
- package/dist/girassol.umd.js +5 -5
- package/dist/style.css +1 -1
- package/dist/types/components/dropdown/Dropdown.vue.d.ts +4 -0
- package/dist/types/components/forms/button/Button.vue.d.ts +1 -1
- 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 +5 -5
- package/dist/types/components/informations/chip/Chip.vue.d.ts +41 -0
- package/dist/types/components/informations/chip/chip.spec.d.ts +1 -0
- package/dist/types/components/informations/chip/index.d.ts +2 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/vite.config.d.ts +1 -1
- package/package.json +35 -21
package/.vscode/settings.json
CHANGED
package/README.md
CHANGED
|
@@ -2,9 +2,52 @@
|
|
|
2
2
|
<img src="http://girassol.solfacil.tech/public/girassol.svg" />
|
|
3
3
|
</div>
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
|
|
6
|
+

|
|
7
|
+
|
|
8
|
+

|
|
9
|
+
|
|
10
|
+

|
|
11
|
+
|
|
12
|
+
[](https://www.figma.com/files/project/36537446/Girassol-DS?fuid=1062384639428950233)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# <a href="http://girassol.solfacil.tech/?path=/docs/introdu%C3%A7%C3%A3o-introdu%C3%A7%C3%A3o--page" target="_blank">Documentação</a>
|
|
17
|
+
|
|
18
|
+
<div style="flex">
|
|
19
|
+
<a href="https://npm.im/@solfacil/girassol" target="_blank">
|
|
20
|
+
<img src="https://img.shields.io/npm/v/@solfacil/girassol.svg" />
|
|
21
|
+
</a>
|
|
22
|
+
|
|
23
|
+
<a href="https://npm.im/@solfacil/girassol" target="_blank">
|
|
24
|
+
<img src="https://img.shields.io/npm/types/@solfacil/girassol.svg" />
|
|
25
|
+
</a>
|
|
26
|
+
|
|
27
|
+
<a href="https://npm.im/@solfacil/girassol" target="_blank">
|
|
28
|
+
<img src="https://badgen.net/badge/node/v16.14/74b758?icon=npm" />
|
|
29
|
+
</a>
|
|
30
|
+
|
|
31
|
+
<a href="https://npm.im/@solfacil/girassol" target="_blank">
|
|
32
|
+
<img src="https://badgen.net/badge/typescript/v4.6.3/1081c2?icon=typescript" />
|
|
33
|
+
</a>
|
|
34
|
+
|
|
35
|
+
<a href="https://npm.im/@solfacil/girassol" target="_blank">
|
|
36
|
+
<img src="https://badgen.net/badge/vue.js/v3.2.36/42b883" />
|
|
37
|
+
</a>
|
|
38
|
+
|
|
39
|
+
<a href="https://bundlephobia.com/result?p=@solfacil/girassol" target="_blank">
|
|
40
|
+
<img src="https://badgen.net/bundlephobia/min/@solfacil/girassol" />
|
|
41
|
+
</a>
|
|
42
|
+
|
|
43
|
+
<a href="https://bundlephobia.com/result?p=@solfacil/girassol" target="_blank">
|
|
44
|
+
<img src="https://badgen.net/bundlephobia/minzip/@solfacil/girassol" />
|
|
45
|
+
</a>
|
|
46
|
+
|
|
47
|
+
<a href="https://bundlephobia.com/result?p=@solfacil/girassol" target="_blank">
|
|
48
|
+
<img src="https://badgen.net/bundlephobia/tree-shaking/@solfacil/girassol" />
|
|
49
|
+
</a>
|
|
50
|
+
</div>
|
|
8
51
|
|
|
9
52
|
# Instalação
|
|
10
53
|
|
|
@@ -15,6 +15,7 @@ module.exports = {
|
|
|
15
15
|
const {
|
|
16
16
|
prompt,
|
|
17
17
|
template,
|
|
18
|
+
parameters,
|
|
18
19
|
print: { highlight, info, success, error },
|
|
19
20
|
} = toolbox
|
|
20
21
|
|
|
@@ -28,6 +29,7 @@ module.exports = {
|
|
|
28
29
|
const askName = {
|
|
29
30
|
type: 'input',
|
|
30
31
|
name: 'name',
|
|
32
|
+
initial: parameters.string,
|
|
31
33
|
message: 'Qual o nome do componente?',
|
|
32
34
|
hint: 'Textfield | Button',
|
|
33
35
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
defineProps<{
|
|
3
|
+
id: string
|
|
4
|
+
label?: string
|
|
5
|
+
}>()
|
|
6
|
+
|
|
7
|
+
const emit = defineEmits<{
|
|
8
|
+
(e: 'change', value: string): void
|
|
9
|
+
}>()
|
|
11
10
|
</script>
|
|
12
11
|
|
|
13
12
|
<template>
|
|
14
|
-
<div class="sol-<%- props.nameClass %>-core"
|
|
13
|
+
<div class="sol-<%- props.nameClass %>-core">
|
|
15
14
|
{{ label }}
|
|
16
15
|
</div>
|
|
17
16
|
</template>
|
|
18
17
|
|
|
19
18
|
<style lang="scss">
|
|
20
19
|
.sol-<%- props.nameClass %>-core {
|
|
21
|
-
|
|
20
|
+
|
|
21
|
+
| @apply bg-brand-primary-medium px-2xs;
|
|
22
22
|
}
|
|
23
23
|
</style>
|