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

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 (116) hide show
  1. package/CHANGELOG.md +468 -0
  2. package/dist/components/action/Button.stories.d.ts +8 -14
  3. package/dist/components/action/Button.vue.d.ts +11 -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 +6 -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 +13 -11
  12. package/dist/components/base/BrowserOnly.vue.d.ts +9 -12
  13. package/dist/components/base/ErrorBoundary.vue.d.ts +17 -15
  14. package/dist/components/base/Img.vue.d.ts +16 -56
  15. package/dist/components/base/Input.vue.d.ts +13 -15
  16. package/dist/components/base/Select.vue.d.ts +2 -1
  17. package/dist/components/base/Wrapper.vue.d.ts +12 -15
  18. package/dist/components/box/Action.stories.d.ts +4 -11
  19. package/dist/components/box/Action.vue.d.ts +3 -2
  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 +4 -8
  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 +11 -19
  29. package/dist/components/form/InputLoop.vue.d.ts +12 -7
  30. package/dist/components/form/InputNValues.vue.d.ts +13 -6
  31. package/dist/components/form/InputOptions.vue.d.ts +19 -23
  32. package/dist/components/form/Simple.stories.d.ts +9 -5
  33. package/dist/components/form/Simple.vue.d.ts +17 -11
  34. package/dist/components/form/Stages.stories.d.ts +8 -69
  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 +4 -8
  41. package/dist/components/input/Color.vue.d.ts +11 -2
  42. package/dist/components/input/File.stories.d.ts +4 -10
  43. package/dist/components/input/File.vue.d.ts +6 -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 +9 -13
  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 +19 -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 +5 -8
  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 +29 -12
  58. package/dist/components/pagination/ContentTable.stories.d.ts +6 -8
  59. package/dist/components/pagination/ContentTable.vue.d.ts +62 -25
  60. package/dist/components/pagination/Simple.stories.d.ts +5 -8
  61. package/dist/components/pagination/Simple.vue.d.ts +12 -7
  62. package/dist/components/select/Choice.stories.d.ts +6 -11
  63. package/dist/components/select/Choice.vue.d.ts +2 -1
  64. package/dist/components/select/Filter.stories.d.ts +5 -11
  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 +33 -21
  71. package/dist/components/table/HeadActions.vue.d.ts +31 -0
  72. package/dist/components/table/HeadContent.vue.d.ts +22 -0
  73. package/dist/components/table/Simple.stories.d.ts +9 -33
  74. package/dist/components/table/Simple.vue.d.ts +43 -28
  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/composables/theme.d.ts +8 -1
  82. package/dist/composables/utils.d.ts +2 -1
  83. package/dist/index-Bbn-n1yC.js +7098 -0
  84. package/dist/index-CyI1yZlR.cjs +4 -0
  85. package/dist/index.cjs +1 -0
  86. package/dist/index.js +45 -1
  87. package/dist/plugin.cjs +1 -0
  88. package/dist/plugin.js +902 -1
  89. package/dist/theme-CChhGSbE.cjs +1 -0
  90. package/dist/theme-DWMJmaKP.js +83 -0
  91. package/dist/theme.cjs +1 -0
  92. package/dist/theme.js +7 -1
  93. package/dist/types/plugin.d.ts +9 -1
  94. package/dist/types/props.d.ts +60 -17
  95. package/dist/types/storybook.d.ts +10 -0
  96. package/package.json +40 -31
  97. package/dist/components/table/Head.vue.d.ts +0 -25
  98. package/dist/index-BtJc7cX1.js +0 -4
  99. package/dist/index-DTG4ktcY.mjs +0 -6753
  100. package/dist/index.mjs +0 -45
  101. package/dist/plugin.mjs +0 -874
  102. package/dist/screens/DropdownWithToggle.stories.d.ts +0 -11
  103. package/dist/screens/DropdownWithToggle.vue.d.ts +0 -2
  104. package/dist/screens/FormWithFetch.stories.d.ts +0 -11
  105. package/dist/screens/FormWithFetch.vue.d.ts +0 -2
  106. package/dist/screens/ModalWithFormStages.stories.d.ts +0 -11
  107. package/dist/screens/ModalWithFormStages.vue.d.ts +0 -2
  108. package/dist/screens/ModalWithToggle.stories.d.ts +0 -11
  109. package/dist/screens/ModalWithToggle.vue.d.ts +0 -2
  110. package/dist/screens/PaginationContentWithTable.stories.d.ts +0 -11
  111. package/dist/screens/PaginationContentWithTable.vue.d.ts +0 -8
  112. package/dist/screens/TableWithNestedTable.stories.d.ts +0 -11
  113. package/dist/screens/TableWithNestedTable.vue.d.ts +0 -8
  114. package/dist/theme-DSVG59vT.js +0 -1
  115. package/dist/theme-DVpUQx-w.mjs +0 -78
  116. package/dist/theme.mjs +0 -7
@@ -1,19 +1,15 @@
1
1
  import type { iUseModifiersProps, iUseStateProps, iUseThemeProps, iActionProps, iUseThemeTooltipProps } from "../../types/props";
2
2
  interface iActionLinkProps extends iActionProps, iUseModifiersProps, iUseStateProps, iUseThemeProps, iUseThemeTooltipProps {
3
3
  }
4
- declare function __VLS_template(): {
5
- attrs: Partial<{}>;
6
- slots: {
7
- default?(_: {}): any;
8
- };
9
- refs: {};
10
- rootEl: any;
4
+ declare var __VLS_8: {};
5
+ type __VLS_Slots = {} & {
6
+ default?: (props: typeof __VLS_8) => any;
11
7
  };
12
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
- declare const __VLS_component: import("vue").DefineComponent<iActionLinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iActionLinkProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
8
+ declare const __VLS_base: import("vue").DefineComponent<iActionLinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iActionLinkProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
+ declare const _default: typeof __VLS_export;
15
11
  export default _default;
16
- type __VLS_WithTemplateSlots<T, S> = T & {
12
+ type __VLS_WithSlots<T, S> = T & {
17
13
  new (): {
18
14
  $slots: S;
19
15
  };
@@ -1,17 +1,13 @@
1
1
  import type { iActionProps } from "../../types/props";
2
- declare function __VLS_template(): {
3
- attrs: Partial<{}>;
4
- slots: {
5
- default?(_: {}): any;
6
- };
7
- refs: {};
8
- rootEl: any;
2
+ declare var __VLS_8: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_8) => any;
9
5
  };
10
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
- declare const __VLS_component: import("vue").DefineComponent<iActionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iActionProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
6
+ declare const __VLS_base: import("vue").DefineComponent<iActionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iActionProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
8
+ declare const _default: typeof __VLS_export;
13
9
  export default _default;
14
- type __VLS_WithTemplateSlots<T, S> = T & {
10
+ type __VLS_WithSlots<T, S> = T & {
15
11
  new (): {
16
12
  $slots: S;
17
13
  };
@@ -13,20 +13,22 @@ interface iBaseBoxProps extends iUseModifiersProps, iUseStateProps, iUseThemePro
13
13
  solid?: boolean;
14
14
  transparent?: boolean;
15
15
  withColor?: boolean;
16
+ /** Prefer an opaque background */
17
+ opaque?: boolean;
18
+ /**
19
+ * Square shape
20
+ */
21
+ square?: boolean;
16
22
  }
17
- declare function __VLS_template(): {
18
- attrs: Partial<{}>;
19
- slots: {
20
- default?(_: {}): any;
21
- };
22
- refs: {};
23
- rootEl: any;
23
+ declare var __VLS_8: {};
24
+ type __VLS_Slots = {} & {
25
+ default?: (props: typeof __VLS_8) => any;
24
26
  };
25
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
26
- declare const __VLS_component: import("vue").DefineComponent<iBaseBoxProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iBaseBoxProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
+ declare const __VLS_base: import("vue").DefineComponent<iBaseBoxProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iBaseBoxProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
29
+ declare const _default: typeof __VLS_export;
28
30
  export default _default;
29
- type __VLS_WithTemplateSlots<T, S> = T & {
31
+ type __VLS_WithSlots<T, S> = T & {
30
32
  new (): {
31
33
  $slots: S;
32
34
  };
@@ -1,17 +1,14 @@
1
- declare function __VLS_template(): {
2
- attrs: Partial<{}>;
3
- slots: {
4
- default?(_: {}): any;
5
- fallback?(_: {}): any;
6
- };
7
- refs: {};
8
- rootEl: any;
1
+ declare var __VLS_1: {}, __VLS_3: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ } & {
5
+ fallback?: (props: typeof __VLS_3) => any;
9
6
  };
10
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
- declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
12
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
7
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
8
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
9
+ declare const _default: typeof __VLS_export;
13
10
  export default _default;
14
- type __VLS_WithTemplateSlots<T, S> = T & {
11
+ type __VLS_WithSlots<T, S> = T & {
15
12
  new (): {
16
13
  $slots: S;
17
14
  };
@@ -1,23 +1,25 @@
1
1
  import type { iUseThemeProps } from "../../types/props";
2
- interface iLoaderContentProps extends iUseThemeProps {
2
+ interface iErrorBoundaryProps extends iUseThemeProps {
3
+ /**
4
+ * Where the error boundary is placed
5
+ * @logging Used for logging purposes
6
+ */
7
+ at?: string;
3
8
  errorMessage?: string;
4
9
  }
5
- declare function __VLS_template(): {
6
- attrs: Partial<{}>;
7
- slots: {
8
- fallback?(_: {
9
- errors: any;
10
- }): any;
11
- default?(_: {}): any;
12
- };
13
- refs: {};
14
- rootEl: any;
10
+ declare var __VLS_1: {
11
+ errors: any;
12
+ }, __VLS_9: {};
13
+ type __VLS_Slots = {} & {
14
+ fallback?: (props: typeof __VLS_1) => any;
15
+ } & {
16
+ default?: (props: typeof __VLS_9) => any;
15
17
  };
16
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
- declare const __VLS_component: import("vue").DefineComponent<iLoaderContentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iLoaderContentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
18
+ declare const __VLS_base: import("vue").DefineComponent<iErrorBoundaryProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iErrorBoundaryProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
+ declare const _default: typeof __VLS_export;
19
21
  export default _default;
20
- type __VLS_WithTemplateSlots<T, S> = T & {
22
+ type __VLS_WithSlots<T, S> = T & {
21
23
  new (): {
22
24
  $slots: S;
23
25
  };
@@ -1,65 +1,25 @@
1
- import { type PropType } from "vue";
2
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
1
+ type __VLS_Props = {
3
2
  /**
4
3
  * image url or path
5
4
  */
6
- src: {
7
- type: StringConstructor;
8
- default: null;
9
- };
10
- alt: {
11
- type: StringConstructor;
12
- default: null;
13
- };
14
- format: {
15
- type: StringConstructor;
16
- default: null;
17
- };
18
- loading: {
19
- type: PropType<"eager" | "lazy">;
20
- default: string;
21
- };
5
+ src?: string;
6
+ alt?: string;
7
+ format?: string;
8
+ loading?: "eager" | "lazy";
22
9
  /**
23
10
  * Url to an image to be used as placeholder for images that failed to load
24
11
  * Overrides the plugin's imagePlaceholder
25
12
  */
26
- placeholder: {
27
- type: StringConstructor;
28
- default: null;
29
- };
30
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
31
- /**
32
- * image url or path
33
- */
34
- src: {
35
- type: StringConstructor;
36
- default: null;
37
- };
38
- alt: {
39
- type: StringConstructor;
40
- default: null;
41
- };
42
- format: {
43
- type: StringConstructor;
44
- default: null;
45
- };
46
- loading: {
47
- type: PropType<"eager" | "lazy">;
48
- default: string;
49
- };
50
- /**
51
- * Url to an image to be used as placeholder for images that failed to load
52
- * Overrides the plugin's imagePlaceholder
53
- */
54
- placeholder: {
55
- type: StringConstructor;
56
- default: null;
57
- };
58
- }>> & Readonly<{}>, {
59
- alt: string;
60
- placeholder: string;
13
+ placeholder?: string;
14
+ };
15
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
+ error: (...args: any[]) => void;
17
+ load: (...args: any[]) => void;
18
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
19
+ onError?: ((...args: any[]) => any) | undefined;
20
+ onLoad?: ((...args: any[]) => any) | undefined;
21
+ }>, {
61
22
  loading: "eager" | "lazy";
62
- src: string;
63
- format: string;
64
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
23
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
+ declare const _default: typeof __VLS_export;
65
25
  export default _default;
@@ -6,27 +6,25 @@ interface iBaseInputProps extends iInputProps {
6
6
  */
7
7
  modelValue?: unknown;
8
8
  }
9
- declare function __VLS_template(): {
10
- attrs: Partial<{}>;
11
- slots: {
12
- default?(_: {
13
- id: string;
14
- name: string | undefined;
15
- modelValue: unknown;
16
- }): any;
17
- };
18
- refs: {};
19
- rootEl: any;
9
+ declare var __VLS_9: {
10
+ id: string;
11
+ name: string | undefined;
12
+ modelValue: unknown;
13
+ };
14
+ type __VLS_Slots = {} & {
15
+ default?: (props: typeof __VLS_9) => any;
20
16
  };
21
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
- declare const __VLS_component: import("vue").DefineComponent<iBaseInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
+ declare const __VLS_base: import("vue").DefineComponent<iBaseInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
18
  "update:model-value": (...args: any[]) => void;
19
+ change: (...args: any[]) => void;
24
20
  }, string, import("vue").PublicProps, Readonly<iBaseInputProps> & Readonly<{
25
21
  "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
22
+ onChange?: ((...args: any[]) => any) | undefined;
26
23
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
24
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
+ declare const _default: typeof __VLS_export;
28
26
  export default _default;
29
- type __VLS_WithTemplateSlots<T, S> = T & {
27
+ type __VLS_WithSlots<T, S> = T & {
30
28
  new (): {
31
29
  $slots: S;
32
30
  };
@@ -6,9 +6,10 @@ interface iBaseSelectProps extends iSelectProps {
6
6
  */
7
7
  modelValue?: string | number;
8
8
  }
9
- declare const _default: import("vue").DefineComponent<iBaseSelectProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ declare const __VLS_export: import("vue").DefineComponent<iBaseSelectProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
10
  "update:model-value": (...args: any[]) => void;
11
11
  }, string, import("vue").PublicProps, Readonly<iBaseSelectProps> & Readonly<{
12
12
  "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
13
13
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
14
15
  export default _default;
@@ -1,27 +1,24 @@
1
+ import type { Teleport } from "vue";
1
2
  import type { vComponent } from "../../types/plugin";
2
3
  type __VLS_Props = {
3
4
  /** Wheter or not render the wrapper */
4
5
  wrap: boolean;
5
6
  /** Component or tag to render as wrapper */
6
- wrapper?: vComponent | string;
7
+ wrapper?: vComponent | typeof Teleport | string;
7
8
  };
8
- declare function __VLS_template(): {
9
- attrs: Partial<{}>;
10
- slots: Readonly<{
11
- default(v: Record<string, any>): void;
12
- }> & {
13
- default(v: Record<string, any>): void;
14
- };
15
- refs: {};
16
- rootEl: any;
9
+ /**
10
+ * TODO: improve type safety for scoped slots in wrapper
11
+ */
12
+ type __VLS_Slots = {
13
+ default(v: Record<string, any>): void;
17
14
  };
18
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
20
- wrapper: vComponent | string;
15
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
16
+ wrapper: vComponent | typeof Teleport | string;
21
17
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
18
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
+ declare const _default: typeof __VLS_export;
23
20
  export default _default;
24
- type __VLS_WithTemplateSlots<T, S> = T & {
21
+ type __VLS_WithSlots<T, S> = T & {
25
22
  new (): {
26
23
  $slots: S;
27
24
  };
@@ -1,13 +1,6 @@
1
- import type { StoryObj } from "@storybook/vue3";
2
- import Action from "./Action.vue";
3
- declare const meta: {
4
- title: string;
5
- component: Record<keyof typeof Action, unknown>;
6
- args: {
7
- label: string;
8
- icon: "cubes";
9
- };
10
- };
11
- type Story = StoryObj<typeof Action>;
1
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
+ import BoxAction from "./Action.vue";
3
+ declare const meta: Meta<typeof BoxAction>;
4
+ type Story = StoryObj<typeof meta>;
12
5
  export declare const Sample: Story;
13
6
  export default meta;
@@ -7,7 +7,7 @@ interface iBoxActionProps extends iActionProps, iUseModifiersProps, iUseStatePro
7
7
  */
8
8
  icon?: IconName;
9
9
  iconProps?: iFormIconProps & {
10
- size: number;
10
+ size?: number;
11
11
  };
12
12
  /**
13
13
  * image url or path
@@ -25,5 +25,6 @@ interface iBoxActionProps extends iActionProps, iUseModifiersProps, iUseStatePro
25
25
  */
26
26
  imagePlaceholder?: string;
27
27
  }
28
- declare const _default: import("vue").DefineComponent<iBoxActionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iBoxActionProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
+ declare const __VLS_export: import("vue").DefineComponent<iBoxActionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iBoxActionProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
+ declare const _default: typeof __VLS_export;
29
30
  export default _default;
@@ -1,12 +1,6 @@
1
- import type { StoryObj } from "@storybook/vue3";
2
- import Message from "./Message.vue";
3
- declare const meta: {
4
- title: string;
5
- component: Record<keyof typeof Message, unknown>;
6
- args: {
7
- default: string;
8
- };
9
- };
10
- type Story = StoryObj<typeof Message>;
1
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
+ import BoxMessage from "./Message.vue";
3
+ declare const meta: Meta<typeof BoxMessage>;
4
+ type Story = StoryObj<typeof meta>;
11
5
  export declare const Sample: Story;
12
6
  export default meta;
@@ -5,19 +5,15 @@ interface iBoxMessageProps extends iActionProps, iUseModifiersProps, iUseStatePr
5
5
  */
6
6
  text?: 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_7: {};
9
+ type __VLS_Slots = {} & {
10
+ default?: (props: typeof __VLS_7) => any;
15
11
  };
16
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
- declare const __VLS_component: import("vue").DefineComponent<iBoxMessageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iBoxMessageProps> & 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<iBoxMessageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iBoxMessageProps> & 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,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,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 DropdownSimple from "./Simple.vue";
3
+ declare const meta: Meta<typeof DropdownSimple>;
4
+ type Story = StoryObj<typeof meta>;
9
5
  export declare const Sample: Story;
10
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;