@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.
Files changed (67) hide show
  1. package/README.md +46 -3
  2. package/cli/bin/{girassol → girassol-cli} +0 -0
  3. package/cli/build/cli.js +68 -0
  4. package/cli/build/commands/create:component.js +124 -0
  5. package/cli/build/commands/generate:plugin.js +89 -0
  6. package/cli/build/commands/generate:types.js +76 -0
  7. package/cli/build/commands/girassol-cli.js +52 -0
  8. package/cli/build/extensions/cli-extension.js +17 -0
  9. package/cli/build/templates/components.d.ts.ejs +1 -0
  10. package/cli/build/templates/nuxt-plugin.ejs +8 -0
  11. package/cli/build/templates/vue-plugin.ejs +5 -0
  12. package/cli/{src → build}/templates/windi.config.ts.ejs +0 -0
  13. package/cli/build/types/cli.d.ts +1 -0
  14. package/cli/build/types/commands/create:component.d.ts +1 -0
  15. package/cli/build/types/commands/generate:plugin.d.ts +1 -0
  16. package/cli/build/types/commands/generate:types.d.ts +7 -0
  17. package/cli/build/types/commands/girassol-cli.d.ts +1 -0
  18. package/cli/build/types/extensions/cli-extension.d.ts +1 -0
  19. package/cli/build/types/types.d.ts +0 -0
  20. package/cli/build/types.js +2 -0
  21. package/dist/cli/src/cli.d.ts +1 -0
  22. package/dist/cli/src/commands/create:component.d.ts +1 -0
  23. package/dist/cli/src/commands/generate:plugin.d.ts +1 -0
  24. package/dist/cli/src/commands/generate:types.d.ts +7 -0
  25. package/dist/cli/src/commands/girassol-cli.d.ts +1 -0
  26. package/dist/cli/src/extensions/cli-extension.d.ts +1 -0
  27. package/dist/cli/src/types.d.ts +0 -0
  28. package/dist/components.d.ts +22 -0
  29. package/dist/components.json +1 -0
  30. package/dist/girassol.es.js +281 -206
  31. package/dist/girassol.umd.js +22 -5
  32. package/dist/style.css +1 -1
  33. package/dist/types/components/accordion/Accordion.vue.d.ts +32 -0
  34. package/dist/types/components/accordion/accordion.spec.d.ts +1 -0
  35. package/dist/types/components/accordion/index.d.ts +2 -0
  36. package/dist/types/components/dropdown/Dropdown.vue.d.ts +4 -0
  37. package/dist/types/components/forms/checkbox/CheckboxGroup.vue.d.ts +1 -1
  38. package/dist/types/components/forms/radio/RadioGroup.vue.d.ts +1 -1
  39. package/dist/types/components/forms/select/Select.vue.d.ts +6 -5
  40. package/dist/types/components/forms/textarea/Textarea.vue.d.ts +1 -1
  41. package/dist/types/components/forms/textfield/Textfield.vue.d.ts +1 -1
  42. package/dist/types/index.d.ts +876 -2
  43. package/dist/vite-modules/generate-component-types.d.ts +3 -0
  44. package/package.json +50 -27
  45. package/vite.config.ts +4 -0
  46. package/cli/.eslintrc.js +0 -18
  47. package/cli/LICENSE +0 -21
  48. package/cli/docs/commands.md +0 -3
  49. package/cli/docs/plugins.md +0 -47
  50. package/cli/package.json +0 -53
  51. package/cli/readme.md +0 -26
  52. package/cli/src/cli.ts +0 -25
  53. package/cli/src/commands/create:component.ts +0 -93
  54. package/cli/src/commands/generate:plugin.ts +0 -68
  55. package/cli/src/commands/generate:types.ts +0 -38
  56. package/cli/src/commands/girassol.ts +0 -12
  57. package/cli/src/extensions/cli-extension.ts +0 -17
  58. package/cli/src/templates/components/component.spec.ts.ejs +0 -20
  59. package/cli/src/templates/components/component.stories.mdx.ejs +0 -74
  60. package/cli/src/templates/components/component.vue.ejs +0 -23
  61. package/cli/src/templates/components/index.ts.ejs +0 -10
  62. package/cli/src/templates/components.d.ts.ejs +0 -10
  63. package/cli/src/templates/nuxt-plugin.ejs +0 -7
  64. package/cli/src/templates/vue-plugin.ejs +0 -5
  65. package/cli/src/types.ts +0 -1
  66. package/cli/tsconfig.json +0 -28
  67. package/cli/yarn.lock +0 -1804
@@ -0,0 +1,32 @@
1
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ id: string;
3
+ title?: string | undefined;
4
+ invert?: boolean | undefined;
5
+ disabled?: boolean | undefined;
6
+ }>, {
7
+ title: string;
8
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
+ id: string;
10
+ title?: string | undefined;
11
+ invert?: boolean | undefined;
12
+ disabled?: boolean | undefined;
13
+ }>, {
14
+ title: string;
15
+ }>>>, {
16
+ title: string;
17
+ }>;
18
+ export default _default;
19
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
20
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
21
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
22
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
23
+ } : {
24
+ type: import('vue').PropType<T[K]>;
25
+ required: true;
26
+ };
27
+ };
28
+ declare type __VLS_WithDefaults<P, D> = {
29
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
30
+ default: D[K];
31
+ } : P[K];
32
+ };
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1,2 @@
1
+ import SolAccordion from './Accordion.vue';
2
+ export { SolAccordion, };
@@ -1,6 +1,8 @@
1
1
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
2
  id: string;
3
3
  label?: string | undefined;
4
+ ariaLabel?: string | undefined;
5
+ smallerWidth?: boolean | undefined;
4
6
  disabled?: boolean | undefined;
5
7
  loading?: boolean | undefined;
6
8
  searchable?: boolean | undefined;
@@ -28,6 +30,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
28
30
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
29
31
  id: string;
30
32
  label?: string | undefined;
33
+ ariaLabel?: string | undefined;
34
+ smallerWidth?: boolean | undefined;
31
35
  disabled?: boolean | undefined;
32
36
  loading?: boolean | undefined;
33
37
  searchable?: boolean | undefined;
@@ -28,8 +28,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
28
28
  direction: string;
29
29
  hideTitle: boolean;
30
30
  }>>> & {
31
- "onUpdate:modelValue"?: ((a: any) => any) | undefined;
32
31
  onChange?: ((value: import("./checkbox-type").CheckboxValue) => any) | undefined;
32
+ "onUpdate:modelValue"?: ((a: any) => any) | undefined;
33
33
  }, {
34
34
  direction: 'row' | 'column';
35
35
  hideTitle: boolean;
@@ -28,8 +28,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
28
28
  direction: string;
29
29
  hideTitle: boolean;
30
30
  }>>> & {
31
- "onUpdate:modelValue"?: ((value: import("./radio-type").RadioValue) => any) | undefined;
32
31
  onChange?: ((value: import("./radio-type").RadioValue) => any) | undefined;
32
+ "onUpdate:modelValue"?: ((value: import("./radio-type").RadioValue) => any) | undefined;
33
33
  }, {
34
34
  direction: 'row' | 'column';
35
35
  hideTitle: boolean;
@@ -1,7 +1,9 @@
1
1
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
2
  id: string;
3
3
  options: any;
4
- label: string;
4
+ label?: string | undefined;
5
+ ariaLabel?: string | undefined;
6
+ smallerWidth?: boolean | undefined;
5
7
  disabled?: boolean | undefined;
6
8
  multiple?: boolean | undefined;
7
9
  modelValue: string | string[];
@@ -11,14 +13,15 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
11
13
  searchPlaceholder?: string | undefined;
12
14
  searchable?: boolean | undefined;
13
15
  }>, {
14
- label: string;
15
16
  placeholder: string;
16
17
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
18
  "update:modelValue": (value: string | string[]) => void;
18
19
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
19
20
  id: string;
20
21
  options: any;
21
- label: string;
22
+ label?: string | undefined;
23
+ ariaLabel?: string | undefined;
24
+ smallerWidth?: boolean | undefined;
22
25
  disabled?: boolean | undefined;
23
26
  multiple?: boolean | undefined;
24
27
  modelValue: string | string[];
@@ -28,12 +31,10 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
28
31
  searchPlaceholder?: string | undefined;
29
32
  searchable?: boolean | undefined;
30
33
  }>, {
31
- label: string;
32
34
  placeholder: string;
33
35
  }>>> & {
34
36
  "onUpdate:modelValue"?: ((value: string | string[]) => any) | undefined;
35
37
  }, {
36
- label: string;
37
38
  placeholder: string;
38
39
  }>;
39
40
  export default _default;
@@ -29,8 +29,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
29
29
  }>>> & {
30
30
  "onUpdate:modelValue"?: ((event: string) => any) | undefined;
31
31
  }, {
32
- modelValue: string;
33
32
  label: string;
33
+ modelValue: string;
34
34
  resize: 'both' | 'horizontal' | 'vertical' | 'none';
35
35
  }>;
36
36
  export default _default;
@@ -25,8 +25,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
25
25
  }>>> & {
26
26
  "onUpdate:modelValue"?: ((event: string | number) => any) | undefined;
27
27
  }, {
28
- modelValue: string | number;
29
28
  label: string;
29
+ modelValue: string | number;
30
30
  }>;
31
31
  export default _default;
32
32
  declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;