@open-xamu-co/ui-components-vue 3.1.0 → 4.0.0-next.2

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 (98) hide show
  1. package/CHANGELOG.md +26 -60
  2. package/dist/components/action/Button.stories.d.ts +6 -12
  3. package/dist/components/action/Button.vue.d.ts +7 -11
  4. package/dist/components/action/ButtonLink.stories.d.ts +4 -10
  5. package/dist/components/action/ButtonLink.vue.d.ts +17 -19
  6. package/dist/components/action/ButtonToggle.stories.d.ts +4 -10
  7. package/dist/components/action/ButtonToggle.vue.d.ts +7 -11
  8. package/dist/components/action/Link.stories.d.ts +4 -10
  9. package/dist/components/action/Link.vue.d.ts +7 -11
  10. package/dist/components/base/Action.vue.d.ts +7 -11
  11. package/dist/components/base/Box.vue.d.ts +7 -11
  12. package/dist/components/base/BrowserOnly.vue.d.ts +9 -12
  13. package/dist/components/base/ErrorBoundary.vue.d.ts +11 -14
  14. package/dist/components/base/Img.vue.d.ts +2 -1
  15. package/dist/components/base/Input.vue.d.ts +11 -15
  16. package/dist/components/base/Select.vue.d.ts +2 -1
  17. package/dist/components/base/Wrapper.vue.d.ts +9 -13
  18. package/dist/components/box/Action.stories.d.ts +4 -11
  19. package/dist/components/box/Action.vue.d.ts +2 -1
  20. package/dist/components/box/Message.stories.d.ts +4 -10
  21. package/dist/components/box/Message.vue.d.ts +7 -11
  22. package/dist/components/collapse/Simple.stories.d.ts +4 -11
  23. package/dist/components/collapse/Simple.vue.d.ts +7 -11
  24. package/dist/components/dropdown/Simple.stories.d.ts +3 -9
  25. package/dist/components/dropdown/Simple.vue.d.ts +37 -41
  26. package/dist/components/form/Input.stories.d.ts +3 -2
  27. package/dist/components/form/Input.vue.d.ts +2 -1
  28. package/dist/components/form/InputCountriesAPI.vue.d.ts +10 -14
  29. package/dist/components/form/InputLoop.vue.d.ts +12 -7
  30. package/dist/components/form/InputNValues.vue.d.ts +11 -6
  31. package/dist/components/form/InputOptions.vue.d.ts +19 -23
  32. package/dist/components/form/Simple.stories.d.ts +4 -2
  33. package/dist/components/form/Simple.vue.d.ts +14 -9
  34. package/dist/components/form/Stages.stories.d.ts +4 -62
  35. package/dist/components/form/Stages.vue.d.ts +29 -28
  36. package/dist/components/icon/Fa.stories.d.ts +4 -10
  37. package/dist/components/icon/Fa.vue.d.ts +2 -1
  38. package/dist/components/icon/Simple.stories.d.ts +4 -8
  39. package/dist/components/icon/Simple.vue.d.ts +7 -11
  40. package/dist/components/input/Color.stories.d.ts +3 -7
  41. package/dist/components/input/Color.vue.d.ts +2 -1
  42. package/dist/components/input/File.stories.d.ts +4 -10
  43. package/dist/components/input/File.vue.d.ts +2 -1
  44. package/dist/components/input/Text.stories.d.ts +4 -11
  45. package/dist/components/input/Text.vue.d.ts +2 -1
  46. package/dist/components/input/Toggle.stories.d.ts +4 -10
  47. package/dist/components/input/Toggle.vue.d.ts +7 -11
  48. package/dist/components/loader/Content.stories.d.ts +4 -8
  49. package/dist/components/loader/Content.vue.d.ts +7 -11
  50. package/dist/components/loader/ContentFetch.stories.d.ts +5 -8
  51. package/dist/components/loader/ContentFetch.vue.d.ts +16 -11
  52. package/dist/components/loader/Simple.stories.d.ts +4 -8
  53. package/dist/components/loader/Simple.vue.d.ts +7 -11
  54. package/dist/components/modal/Simple.stories.d.ts +3 -15
  55. package/dist/components/modal/Simple.vue.d.ts +53 -53
  56. package/dist/components/pagination/Content.stories.d.ts +4 -7
  57. package/dist/components/pagination/Content.vue.d.ts +19 -11
  58. package/dist/components/pagination/ContentTable.stories.d.ts +4 -7
  59. package/dist/components/pagination/ContentTable.vue.d.ts +23 -15
  60. package/dist/components/pagination/Simple.stories.d.ts +5 -21
  61. package/dist/components/pagination/Simple.vue.d.ts +12 -7
  62. package/dist/components/select/Choice.stories.d.ts +3 -9
  63. package/dist/components/select/Choice.vue.d.ts +2 -1
  64. package/dist/components/select/Filter.stories.d.ts +3 -9
  65. package/dist/components/select/Filter.vue.d.ts +2 -1
  66. package/dist/components/select/Simple.stories.d.ts +4 -11
  67. package/dist/components/select/Simple.vue.d.ts +2 -1
  68. package/dist/components/slider/Simple.stories.d.ts +4 -8
  69. package/dist/components/slider/Simple.vue.d.ts +50 -0
  70. package/dist/components/table/Body.vue.d.ts +18 -11
  71. package/dist/components/table/HeadActions.vue.d.ts +12 -7
  72. package/dist/components/table/HeadContent.vue.d.ts +10 -5
  73. package/dist/components/table/Simple.stories.d.ts +4 -52
  74. package/dist/components/table/Simple.vue.d.ts +23 -15
  75. package/dist/components/value/Complex.stories.d.ts +4 -8
  76. package/dist/components/value/Complex.vue.d.ts +2 -1
  77. package/dist/components/value/List.stories.d.ts +4 -27
  78. package/dist/components/value/List.vue.d.ts +2 -12
  79. package/dist/components/value/Simple.stories.d.ts +5 -10
  80. package/dist/components/value/Simple.vue.d.ts +10 -5
  81. package/dist/index-C46FseEI.js +7098 -0
  82. package/dist/index-w1g0Tp05.cjs +4 -0
  83. package/dist/index.cjs +1 -0
  84. package/dist/index.js +45 -1
  85. package/dist/plugin.cjs +1 -0
  86. package/dist/plugin.js +902 -1
  87. package/dist/theme.cjs +1 -0
  88. package/dist/theme.js +7 -1
  89. package/dist/types/props.d.ts +1 -1
  90. package/dist/types/storybook.d.ts +10 -0
  91. package/package.json +37 -31
  92. package/dist/index-BeKPWN3w.js +0 -4
  93. package/dist/index-DPLrKbNp.mjs +0 -8400
  94. package/dist/index.mjs +0 -45
  95. package/dist/plugin.mjs +0 -884
  96. package/dist/theme.mjs +0 -7
  97. /package/dist/{theme-CChhGSbE.js → theme-CChhGSbE.cjs} +0 -0
  98. /package/dist/{theme-DWMJmaKP.mjs → theme-DWMJmaKP.js} +0 -0
@@ -1,13 +1,6 @@
1
- import type { StoryObj } from "@storybook/vue3";
2
- import Simple from "./Simple.vue";
3
- declare const meta: {
4
- title: string;
5
- component: Record<keyof typeof Simple, unknown>;
6
- args: {
7
- title: string;
8
- default: string;
9
- };
10
- };
11
- type Story = StoryObj<typeof Simple>;
1
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
+ import CollapseSimple from "./Simple.vue";
3
+ declare const meta: Meta<typeof CollapseSimple>;
4
+ type Story = StoryObj<typeof meta>;
12
5
  export declare const Sample: Story;
13
6
  export default meta;
@@ -5,19 +5,15 @@ interface Collapse extends iUseThemeProps {
5
5
  checked?: boolean;
6
6
  el?: vComponent | string;
7
7
  }
8
- declare function __VLS_template(): {
9
- attrs: Partial<{}>;
10
- slots: {
11
- default?(_: {}): any;
12
- };
13
- refs: {};
14
- rootEl: any;
8
+ declare var __VLS_18: {};
9
+ type __VLS_Slots = {} & {
10
+ default?: (props: typeof __VLS_18) => any;
15
11
  };
16
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
- declare const __VLS_component: import("vue").DefineComponent<Collapse, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Collapse> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
+ declare const __VLS_base: import("vue").DefineComponent<Collapse, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Collapse> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
+ declare const _default: typeof __VLS_export;
19
15
  export default _default;
20
- type __VLS_WithTemplateSlots<T, S> = T & {
16
+ type __VLS_WithSlots<T, S> = T & {
21
17
  new (): {
22
18
  $slots: S;
23
19
  };
@@ -1,12 +1,6 @@
1
- import type { StoryObj } from "@storybook/vue3";
1
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
  import DropdownSimple from "./Simple.vue";
3
- declare const meta: {
4
- title: string;
5
- component: Record<keyof typeof DropdownSimple, unknown>;
6
- args: {
7
- invertTheme: true;
8
- };
9
- };
10
- type Story = StoryObj<typeof DropdownSimple>;
3
+ declare const meta: Meta<typeof DropdownSimple>;
4
+ type Story = StoryObj<typeof meta>;
11
5
  export declare const Sample: Story;
12
6
  export default meta;
@@ -21,46 +21,41 @@ interface iDropdownProps extends iUseModifiersProps, iUseThemeProps {
21
21
  classes?: string;
22
22
  }
23
23
  declare function setModel(value?: boolean): void;
24
- declare function __VLS_template(): {
25
- attrs: Partial<{}>;
26
- slots: {
27
- toggle?(_: {
28
- model: boolean;
29
- setModel: typeof setModel;
30
- }): any;
31
- default?(_: {
32
- model: boolean;
33
- isModal: boolean;
34
- setModel: typeof setModel;
35
- modalRef: HTMLDialogElement | undefined;
36
- dropdownRef: HTMLElement | undefined;
37
- invertedTheme: [import("@open-xamu-co/ui-common-types").tThemeModifier, import("@open-xamu-co/ui-common-types").tThemeModifier];
38
- }): any;
39
- actions?(_: {
40
- model: boolean;
41
- isModal: false;
42
- setModel: typeof setModel;
43
- modalRef: HTMLDialogElement | undefined;
44
- dropdownRef: HTMLElement | undefined;
45
- invertedTheme: [import("@open-xamu-co/ui-common-types").tThemeModifier, import("@open-xamu-co/ui-common-types").tThemeModifier];
46
- }): any;
47
- actions?(_: {
48
- model: boolean;
49
- isModal: true;
50
- setModel: typeof setModel;
51
- modalRef: HTMLDialogElement | undefined;
52
- dropdownRef: HTMLElement | undefined;
53
- invertedTheme: [import("@open-xamu-co/ui-common-types").tThemeModifier, import("@open-xamu-co/ui-common-types").tThemeModifier];
54
- }): any;
55
- };
56
- refs: {
57
- toggleRef: HTMLDivElement;
58
- dropdownRef: HTMLDivElement;
59
- };
60
- rootEl: any;
24
+ declare var __VLS_8: {
25
+ model: boolean;
26
+ setModel: typeof setModel;
27
+ }, __VLS_17: {
28
+ model: boolean;
29
+ isModal: boolean;
30
+ setModel: typeof setModel;
31
+ modalRef: HTMLDialogElement | undefined;
32
+ dropdownRef: HTMLElement | undefined;
33
+ invertedTheme: [import("@open-xamu-co/ui-common-types").tThemeModifier, import("@open-xamu-co/ui-common-types").tThemeModifier];
34
+ }, __VLS_19: {
35
+ model: boolean;
36
+ isModal: false;
37
+ setModel: typeof setModel;
38
+ modalRef: HTMLDialogElement | undefined;
39
+ dropdownRef: HTMLElement | undefined;
40
+ invertedTheme: [import("@open-xamu-co/ui-common-types").tThemeModifier, import("@open-xamu-co/ui-common-types").tThemeModifier];
41
+ }, __VLS_22: {
42
+ model: boolean;
43
+ isModal: true;
44
+ setModel: typeof setModel;
45
+ modalRef: HTMLDialogElement | undefined;
46
+ dropdownRef: HTMLElement | undefined;
47
+ invertedTheme: [import("@open-xamu-co/ui-common-types").tThemeModifier, import("@open-xamu-co/ui-common-types").tThemeModifier];
48
+ };
49
+ type __VLS_Slots = {} & {
50
+ toggle?: (props: typeof __VLS_8) => any;
51
+ } & {
52
+ default?: (props: typeof __VLS_17) => any;
53
+ } & {
54
+ actions?: (props: typeof __VLS_19) => any;
55
+ } & {
56
+ actions?: (props: typeof __VLS_22) => any;
61
57
  };
62
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
63
- declare const __VLS_component: import("vue").DefineComponent<iDropdownProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
58
+ declare const __VLS_base: import("vue").DefineComponent<iDropdownProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
64
59
  close: (...args: any[]) => void;
65
60
  "update:model-value": (...args: any[]) => void;
66
61
  }, string, import("vue").PublicProps, Readonly<iDropdownProps> & Readonly<{
@@ -70,9 +65,10 @@ declare const __VLS_component: import("vue").DefineComponent<iDropdownProps, {},
70
65
  theme: import("@open-xamu-co/ui-common-types").tThemeTuple | import("@open-xamu-co/ui-common-types").tProp<import("@open-xamu-co/ui-common-types").tThemeModifier>;
71
66
  classes: string;
72
67
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
73
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
68
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
69
+ declare const _default: typeof __VLS_export;
74
70
  export default _default;
75
- type __VLS_WithTemplateSlots<T, S> = T & {
71
+ type __VLS_WithSlots<T, S> = T & {
76
72
  new (): {
77
73
  $slots: S;
78
74
  };
@@ -1,5 +1,6 @@
1
- import type { Meta, StoryObj } from "@storybook/vue3";
2
- declare const meta: Meta;
1
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
+ import FormInputComponent from "./Input.vue";
3
+ declare const meta: Meta<typeof FormInputComponent>;
3
4
  type Story = StoryObj<typeof meta>;
4
5
  export declare const Sample: Story;
5
6
  export default meta;
@@ -13,9 +13,10 @@ export interface iFormInputProps extends iUseThemeProps {
13
13
  /** Make all inputs read only by disabling them */
14
14
  readonly?: boolean;
15
15
  }
16
- declare const _default: import("vue").DefineComponent<iFormInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
+ declare const __VLS_export: import("vue").DefineComponent<iFormInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
17
  "update:model-value": (...args: any[]) => void;
18
18
  }, string, import("vue").PublicProps, Readonly<iFormInputProps> & Readonly<{
19
19
  "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
20
20
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
+ declare const _default: typeof __VLS_export;
21
22
  export default _default;
@@ -9,24 +9,20 @@ interface iFormInputCountriesApi extends iUseThemeProps {
9
9
  errors?: unknown;
10
10
  refresh?: (...args: any[]) => any;
11
11
  }
12
- declare function __VLS_template(): {
13
- attrs: Partial<{}>;
14
- slots: {
15
- default?(_: {
16
- statesReq: Record<string, any>;
17
- citiesReq: Record<string, any>;
18
- }): any;
19
- };
20
- refs: {};
21
- rootEl: any;
12
+ declare var __VLS_14: {
13
+ statesReq: Record<string, any>;
14
+ citiesReq: Record<string, any>;
15
+ };
16
+ type __VLS_Slots = {} & {
17
+ default?: (props: typeof __VLS_14) => any;
22
18
  };
23
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
24
- declare const __VLS_component: import("vue").DefineComponent<iFormInputCountriesApi, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iFormInputCountriesApi> & Readonly<{}>, {
19
+ declare const __VLS_base: import("vue").DefineComponent<iFormInputCountriesApi, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iFormInputCountriesApi> & Readonly<{}>, {
25
20
  states: iState[];
26
21
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
23
+ declare const _default: typeof __VLS_export;
28
24
  export default _default;
29
- type __VLS_WithTemplateSlots<T, S> = T & {
25
+ type __VLS_WithSlots<T, S> = T & {
30
26
  new (): {
31
27
  $slots: S;
32
28
  };
@@ -7,20 +7,25 @@ export interface iFormInputLoop<Ti> extends iUseThemeProps {
7
7
  /** Make all inputs read only by disabling them */
8
8
  readonly?: boolean;
9
9
  }
10
- declare const _default: <T extends iFormValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
11
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & Partial<{}> & iFormInputLoop<T>> & import("vue").PublicProps;
12
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
10
+ declare const __VLS_export: <T extends iFormValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
11
+ props: __VLS_PrettifyLocal<iFormInputLoop<T>> & import("vue").PublicProps & (typeof globalThis extends {
12
+ __VLS_PROPS_FALLBACK: infer P;
13
+ } ? P : {});
14
+ expose: (exposed: {}) => void;
13
15
  attrs: any;
14
16
  slots: {
15
- default?(_: {
17
+ default?: (props: {
16
18
  i: number;
17
- }): any;
19
+ }) => any;
18
20
  };
19
21
  emit: {};
20
22
  }>) => import("vue").VNode & {
21
23
  __ctx?: Awaited<typeof __VLS_setup>;
22
24
  };
25
+ declare const _default: typeof __VLS_export;
23
26
  export default _default;
24
- type __VLS_PrettifyLocal<T> = {
27
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
25
28
  [K in keyof T]: T[K];
26
- } & {};
29
+ } : {
30
+ [K in keyof T as K]: T[K];
31
+ }) & {};
@@ -9,18 +9,23 @@ export interface iFormInputNValues<Ti> {
9
9
  label?: string;
10
10
  refresh?: (...args: any[]) => any;
11
11
  }
12
- declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
13
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & Partial<{}> & iFormInputNValues<T>> & import("vue").PublicProps;
14
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
12
+ declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
13
+ props: __VLS_PrettifyLocal<iFormInputNValues<T>> & import("vue").PublicProps & (typeof globalThis extends {
14
+ __VLS_PROPS_FALLBACK: infer P;
15
+ } ? P : {});
16
+ expose: (exposed: {}) => void;
15
17
  attrs: any;
16
18
  slots: {
17
- default?(_: {}): any;
19
+ default?: (props: {}) => any;
18
20
  };
19
21
  emit: {};
20
22
  }>) => import("vue").VNode & {
21
23
  __ctx?: Awaited<typeof __VLS_setup>;
22
24
  };
25
+ declare const _default: typeof __VLS_export;
23
26
  export default _default;
24
- type __VLS_PrettifyLocal<T> = {
27
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
25
28
  [K in keyof T]: T[K];
26
- } & {};
29
+ } : {
30
+ [K in keyof T as K]: T[K];
31
+ }) & {};
@@ -2,31 +2,27 @@ import type { tFormInput } from "@open-xamu-co/ui-common-types";
2
2
  type __VLS_Props = {
3
3
  input: tFormInput;
4
4
  };
5
- declare function __VLS_template(): {
6
- attrs: Partial<{}>;
7
- slots: {
8
- default?(_: {
9
- key: number;
10
- options: {
11
- icon?: import("@fortawesome/fontawesome-common-types").IconName | undefined;
12
- pattern?: string | undefined;
13
- placeholder?: string | undefined;
14
- value: string | number;
15
- alias?: string | undefined;
16
- selected?: boolean | undefined;
17
- disabled?: boolean | undefined;
18
- hidden?: boolean | undefined;
19
- }[];
20
- }): any;
21
- };
22
- refs: {};
23
- rootEl: any;
5
+ declare var __VLS_1: {
6
+ key: number;
7
+ options: {
8
+ icon?: import("@fortawesome/fontawesome-common-types").IconName | undefined;
9
+ pattern?: string | undefined;
10
+ placeholder?: string | undefined;
11
+ value: string | number;
12
+ alias?: string | undefined;
13
+ selected?: boolean | undefined;
14
+ disabled?: boolean | undefined;
15
+ hidden?: boolean | undefined;
16
+ }[];
17
+ };
18
+ type __VLS_Slots = {} & {
19
+ default?: (props: typeof __VLS_1) => any;
24
20
  };
25
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
26
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
23
+ declare const _default: typeof __VLS_export;
28
24
  export default _default;
29
- type __VLS_WithTemplateSlots<T, S> = T & {
25
+ type __VLS_WithSlots<T, S> = T & {
30
26
  new (): {
31
27
  $slots: S;
32
28
  };
@@ -1,5 +1,7 @@
1
- import type { Meta, StoryObj } from "@storybook/vue3";
2
- declare const meta: Meta;
1
+ import type { StoryObj } from "@storybook/vue3-vite";
2
+ import type { GenericMeta } from "../../types/storybook";
3
+ import FormSimple from "./Simple.vue";
4
+ declare const meta: GenericMeta<typeof FormSimple>;
3
5
  type Story = StoryObj<typeof meta>;
4
6
  export declare const Sample: Story;
5
7
  export declare const WithInputs: Story;
@@ -19,21 +19,26 @@ export interface iFormSimple<P extends any[]> extends iUseThemeProps {
19
19
  /** Make all inputs read only by disabling them */
20
20
  readonly?: boolean;
21
21
  }
22
- declare const _default: <P extends any[] = any[]>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
23
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
24
- readonly "onUpdate:model-value"?: ((args_0: tFormInput<import("@open-xamu-co/ui-common-types").iFormValue | import("@open-xamu-co/ui-common-types").iFormValue[], import("@open-xamu-co/ui-common-enums").eFormTypeBase | eFormTypeSimple | import("@open-xamu-co/ui-common-enums").eFormTypeComplex>[]) => any) | undefined;
25
- readonly "onUpdate:invalid"?: ((args_0: iInvalidInput[]) => any) | undefined;
26
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:model-value" | "onUpdate:invalid"> & Partial<{}> & iFormSimple<P>> & import("vue").PublicProps;
27
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
22
+ declare const __VLS_export: <P extends any[] = any[]>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
23
+ props: __VLS_PrettifyLocal<iFormSimple<P> & {
24
+ "onUpdate:model-value"?: ((args_0: tFormInput<import("@open-xamu-co/ui-common-types").iFormValue | import("@open-xamu-co/ui-common-types").iFormValue[], import("@open-xamu-co/ui-common-enums").eFormTypeBase | eFormTypeSimple | import("@open-xamu-co/ui-common-enums").eFormTypeComplex>[]) => any) | undefined;
25
+ "onUpdate:invalid"?: ((args_0: iInvalidInput[]) => any) | undefined;
26
+ }> & import("vue").PublicProps & (typeof globalThis extends {
27
+ __VLS_PROPS_FALLBACK: infer P_1;
28
+ } ? P_1 : {});
29
+ expose: (exposed: {}) => void;
28
30
  attrs: any;
29
31
  slots: {
30
- default?(_: {}): any;
32
+ default?: (props: {}) => any;
31
33
  };
32
34
  emit: ((evt: "update:model-value", args_0: tFormInput<import("@open-xamu-co/ui-common-types").iFormValue | import("@open-xamu-co/ui-common-types").iFormValue[], import("@open-xamu-co/ui-common-enums").eFormTypeBase | eFormTypeSimple | import("@open-xamu-co/ui-common-enums").eFormTypeComplex>[]) => void) & ((evt: "update:invalid", args_0: iInvalidInput[]) => void);
33
35
  }>) => import("vue").VNode & {
34
36
  __ctx?: Awaited<typeof __VLS_setup>;
35
37
  };
38
+ declare const _default: typeof __VLS_export;
36
39
  export default _default;
37
- type __VLS_PrettifyLocal<T> = {
40
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
38
41
  [K in keyof T]: T[K];
39
- } & {};
42
+ } : {
43
+ [K in keyof T as K]: T[K];
44
+ }) & {};
@@ -1,66 +1,8 @@
1
- import type { StoryObj } from "@storybook/vue3";
1
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
  import type { iForm } from "@open-xamu-co/ui-common-types";
3
- import StagesComponent from "./Stages.vue";
4
- declare const meta: {
5
- title: string;
6
- component: {
7
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./Stages.vue").iFormStages> & Readonly<{
8
- "onInput-values"?: ((...args: any[]) => any) | undefined;
9
- onSubmited?: ((...args: any[]) => any) | undefined;
10
- "onSet-active-stage"?: ((...args: any[]) => any) | undefined;
11
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
- "input-values": (...args: any[]) => void;
13
- submited: (...args: any[]) => void;
14
- "set-active-stage": (...args: any[]) => void;
15
- }, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
16
- P: {};
17
- B: {};
18
- D: {};
19
- C: {};
20
- M: {};
21
- Defaults: {};
22
- }, Readonly<import("./Stages.vue").iFormStages> & Readonly<{
23
- "onInput-values"?: ((...args: any[]) => any) | undefined;
24
- onSubmited?: ((...args: any[]) => any) | undefined;
25
- "onSet-active-stage"?: ((...args: any[]) => any) | undefined;
26
- }>, {}, {}, {}, {}, {}>;
27
- __isFragment?: never;
28
- __isTeleport?: never;
29
- __isSuspense?: never;
30
- } & import("vue").ComponentOptionsBase<Readonly<import("./Stages.vue").iFormStages> & Readonly<{
31
- "onInput-values"?: ((...args: any[]) => any) | undefined;
32
- onSubmited?: ((...args: any[]) => any) | undefined;
33
- "onSet-active-stage"?: ((...args: any[]) => any) | undefined;
34
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
35
- "input-values": (...args: any[]) => void;
36
- submited: (...args: any[]) => void;
37
- "set-active-stage": (...args: any[]) => void;
38
- }, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
39
- $slots: {
40
- default?(_: {}): any;
41
- disclaimers?(_: {}): any;
42
- actions?(_: {}): any;
43
- "primary-actions"?(_: {
44
- activeStage: number;
45
- stagesLength: number;
46
- setActiveStage: (newValue: number) => void;
47
- canSubmit: boolean;
48
- submit: import("lodash").DebouncedFunc<(e: Event) => Promise<void>>;
49
- }): any;
50
- "secondary-actions-content"?(_: {
51
- activeStage: number;
52
- stagesLength: number;
53
- setActiveStage: (newValue: number) => void;
54
- canSubmit: boolean;
55
- submit: import("lodash").DebouncedFunc<(e: Event) => Promise<void>>;
56
- }): any;
57
- "secondary-actions"?(_: {}): any;
58
- };
59
- });
60
- args: {};
61
- excludeStories: RegExp;
62
- };
63
- type Story = StoryObj<typeof StagesComponent>;
3
+ import FormStages from "./Stages.vue";
4
+ declare const meta: Meta<typeof FormStages>;
5
+ type Story = StoryObj<typeof meta>;
64
6
  export declare const Sample: Story;
65
7
  export declare const stagesData: iForm[][];
66
8
  export declare const WithStages: Story;
@@ -24,33 +24,33 @@ export interface iFormStages extends iUseThemeProps {
24
24
  unwrap?: boolean;
25
25
  }
26
26
  declare function setActiveStage(newValue: number): void;
27
- declare function __VLS_template(): {
28
- attrs: Partial<{}>;
29
- slots: {
30
- default?(_: {}): any;
31
- disclaimers?(_: {}): any;
32
- actions?(_: {}): any;
33
- "primary-actions"?(_: {
34
- activeStage: number;
35
- stagesLength: number;
36
- setActiveStage: typeof setActiveStage;
37
- canSubmit: boolean;
38
- submit: import("lodash").DebouncedFunc<(e: Event) => Promise<void>>;
39
- }): any;
40
- "secondary-actions-content"?(_: {
41
- activeStage: number;
42
- stagesLength: number;
43
- setActiveStage: typeof setActiveStage;
44
- canSubmit: boolean;
45
- submit: import("lodash").DebouncedFunc<(e: Event) => Promise<void>>;
46
- }): any;
47
- "secondary-actions"?(_: {}): any;
48
- };
49
- refs: {};
50
- rootEl: any;
27
+ declare var __VLS_14: {}, __VLS_30: {}, __VLS_32: {}, __VLS_34: {
28
+ activeStage: number;
29
+ stagesLength: number;
30
+ setActiveStage: typeof setActiveStage;
31
+ canSubmit: boolean;
32
+ submit: import("lodash").DebouncedFunc<(e: Event) => Promise<void>>;
33
+ }, __VLS_80: {
34
+ activeStage: number;
35
+ stagesLength: number;
36
+ setActiveStage: typeof setActiveStage;
37
+ canSubmit: boolean;
38
+ submit: import("lodash").DebouncedFunc<(e: Event) => Promise<void>>;
39
+ }, __VLS_82: {};
40
+ type __VLS_Slots = {} & {
41
+ default?: (props: typeof __VLS_14) => any;
42
+ } & {
43
+ disclaimers?: (props: typeof __VLS_30) => any;
44
+ } & {
45
+ actions?: (props: typeof __VLS_32) => any;
46
+ } & {
47
+ 'primary-actions'?: (props: typeof __VLS_34) => any;
48
+ } & {
49
+ 'secondary-actions-content'?: (props: typeof __VLS_80) => any;
50
+ } & {
51
+ 'secondary-actions'?: (props: typeof __VLS_82) => any;
51
52
  };
52
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
53
- declare const __VLS_component: import("vue").DefineComponent<iFormStages, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
53
+ declare const __VLS_base: import("vue").DefineComponent<iFormStages, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
54
54
  "input-values": (...args: any[]) => void;
55
55
  submited: (...args: any[]) => void;
56
56
  "set-active-stage": (...args: any[]) => void;
@@ -59,9 +59,10 @@ declare const __VLS_component: import("vue").DefineComponent<iFormStages, {}, {}
59
59
  onSubmited?: ((...args: any[]) => any) | undefined;
60
60
  "onSet-active-stage"?: ((...args: any[]) => any) | undefined;
61
61
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
62
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
62
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
63
+ declare const _default: typeof __VLS_export;
63
64
  export default _default;
64
- type __VLS_WithTemplateSlots<T, S> = T & {
65
+ type __VLS_WithSlots<T, S> = T & {
65
66
  new (): {
66
67
  $slots: S;
67
68
  };
@@ -1,13 +1,7 @@
1
- import type { StoryObj } from "@storybook/vue3";
2
- import Fa from "./Fa.vue";
3
- declare const meta: {
4
- title: string;
5
- component: Record<keyof typeof Fa, unknown>;
6
- args: {
7
- name: "cubes";
8
- };
9
- };
10
- type Story = StoryObj<typeof Fa>;
1
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
+ import IconFa from "./Fa.vue";
3
+ declare const meta: Meta<typeof IconFa>;
4
+ type Story = StoryObj<typeof meta>;
11
5
  export declare const Sample: Story;
12
6
  export declare const Large: Story;
13
7
  export default meta;
@@ -11,5 +11,6 @@ interface iIconFaProps extends iUseModifiersProps {
11
11
  forceRegular?: boolean;
12
12
  size?: number;
13
13
  }
14
- declare const _default: import("vue").DefineComponent<iIconFaProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iIconFaProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const __VLS_export: import("vue").DefineComponent<iIconFaProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iIconFaProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
15
16
  export default _default;
@@ -1,10 +1,6 @@
1
- import type { StoryObj } from "@storybook/vue3";
2
- import Simple from "./Simple.vue";
3
- declare const meta: {
4
- title: string;
5
- component: Record<keyof typeof Simple, unknown>;
6
- args: {};
7
- };
8
- type Story = StoryObj<typeof Simple>;
1
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
+ import IconSimple from "./Simple.vue";
3
+ declare const meta: Meta<typeof IconSimple>;
4
+ type Story = StoryObj<typeof meta>;
9
5
  export declare const Sample: Story;
10
6
  export default meta;
@@ -6,19 +6,15 @@ interface iIconSimpleProps extends iUseModifiersProps {
6
6
  height?: number | string;
7
7
  viewBox?: string;
8
8
  }
9
- declare function __VLS_template(): {
10
- attrs: Partial<{}>;
11
- slots: {
12
- default?(_: {}): any;
13
- };
14
- refs: {};
15
- rootEl: any;
9
+ declare var __VLS_1: {};
10
+ type __VLS_Slots = {} & {
11
+ default?: (props: typeof __VLS_1) => any;
16
12
  };
17
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
- declare const __VLS_component: import("vue").DefineComponent<iIconSimpleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iIconSimpleProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
+ declare const __VLS_base: import("vue").DefineComponent<iIconSimpleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iIconSimpleProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
+ declare const _default: typeof __VLS_export;
20
16
  export default _default;
21
- type __VLS_WithTemplateSlots<T, S> = T & {
17
+ type __VLS_WithSlots<T, S> = T & {
22
18
  new (): {
23
19
  $slots: S;
24
20
  };
@@ -1,10 +1,6 @@
1
- import type { StoryObj } from "@storybook/vue3";
1
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
  import InputColor from "./Color.vue";
3
- declare const meta: {
4
- title: string;
5
- component: Record<keyof typeof InputColor, unknown>;
6
- args: {};
7
- };
8
- type Story = StoryObj<typeof InputColor>;
3
+ declare const meta: Meta<typeof InputColor>;
4
+ type Story = StoryObj<typeof meta>;
9
5
  export declare const Sample: Story;
10
6
  export default meta;