@halo-dev/components 2.18.0 → 2.20.0

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 (59) hide show
  1. package/dist/components/alert/Alert.stories.d.ts +0 -1
  2. package/dist/components/alert/Alert.vue.d.ts +27 -48
  3. package/dist/components/avatar/Avatar.stories.d.ts +0 -1
  4. package/dist/components/avatar/Avatar.vue.d.ts +2 -26
  5. package/dist/components/avatar/AvatarGroup.stories.d.ts +0 -1
  6. package/dist/components/avatar/AvatarGroup.vue.d.ts +11 -28
  7. package/dist/components/avatar/interface.d.ts +0 -1
  8. package/dist/components/button/Button.stories.d.ts +0 -1
  9. package/dist/components/button/Button.vue.d.ts +29 -56
  10. package/dist/components/card/Card.stories.d.ts +0 -1
  11. package/dist/components/card/Card.vue.d.ts +18 -20
  12. package/dist/components/description/Description.vue.d.ts +10 -3
  13. package/dist/components/description/DescriptionItem.vue.d.ts +17 -33
  14. package/dist/components/dialog/Dialog.stories.d.ts +0 -1
  15. package/dist/components/dialog/Dialog.vue.d.ts +8 -71
  16. package/dist/components/dialog/dialog-manager.d.ts +0 -1
  17. package/dist/components/dialog/interface.d.ts +1 -6
  18. package/dist/components/dropdown/Draopdown.stories.d.ts +0 -1
  19. package/dist/components/dropdown/Dropdown.vue.d.ts +14 -48
  20. package/dist/components/dropdown/DropdownDivider.vue.d.ts +1 -1
  21. package/dist/components/dropdown/DropdownItem.vue.d.ts +24 -42
  22. package/dist/components/dropdown/symbols.d.ts +0 -1
  23. package/dist/components/empty/Empty.stories.d.ts +0 -1
  24. package/dist/components/empty/Empty.vue.d.ts +19 -21
  25. package/dist/components/entity/Entity.vue.d.ts +20 -34
  26. package/dist/components/entity/EntityField.vue.d.ts +26 -47
  27. package/dist/components/header/PageHeader.vue.d.ts +14 -16
  28. package/dist/components/loading/Loading.stories.d.ts +0 -1
  29. package/dist/components/loading/Loading.vue.d.ts +1 -1
  30. package/dist/components/menu/Menu.stories.d.ts +0 -1
  31. package/dist/components/menu/Menu.vue.d.ts +13 -15
  32. package/dist/components/menu/MenuItem.vue.d.ts +23 -41
  33. package/dist/components/menu/MenuLabel.vue.d.ts +10 -3
  34. package/dist/components/modal/Modal.stories.d.ts +0 -1
  35. package/dist/components/modal/Modal.vue.d.ts +43 -70
  36. package/dist/components/pagination/Pagination.stories.d.ts +0 -1
  37. package/dist/components/pagination/Pagination.vue.d.ts +27 -62
  38. package/dist/components/space/Space.stories.d.ts +0 -1
  39. package/dist/components/space/Space.vue.d.ts +20 -39
  40. package/dist/components/status/StatusDot.stories.d.ts +0 -1
  41. package/dist/components/status/StatusDot.vue.d.ts +19 -38
  42. package/dist/components/switch/Switch.stories.d.ts +0 -1
  43. package/dist/components/switch/Switch.vue.d.ts +23 -41
  44. package/dist/components/tabs/TabItem.vue.d.ts +15 -17
  45. package/dist/components/tabs/Tabbar.stories.d.ts +0 -1
  46. package/dist/components/tabs/Tabbar.vue.d.ts +20 -52
  47. package/dist/components/tabs/Tabs.stories.d.ts +0 -1
  48. package/dist/components/tabs/Tabs.vue.d.ts +28 -51
  49. package/dist/components/tag/Tag.stories.d.ts +0 -1
  50. package/dist/components/tag/Tag.vue.d.ts +21 -40
  51. package/dist/components/toast/Toast.vue.d.ts +31 -58
  52. package/dist/components/toast/toast-manager.d.ts +0 -1
  53. package/dist/halo-components.es.js +2948 -2954
  54. package/dist/halo-components.es.js.map +1 -1
  55. package/dist/halo-components.iife.js +2 -2
  56. package/dist/halo-components.iife.js.map +1 -1
  57. package/dist/icons/icons.d.ts +0 -1
  58. package/dist/index.d.ts +0 -1
  59. package/package.json +3 -3
@@ -1,6 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/vue3';
2
2
  import { VAlert } from '.';
3
-
4
3
  declare const meta: Meta<typeof VAlert>;
5
4
  export default meta;
6
5
  type Story = StoryObj<typeof VAlert>;
@@ -1,58 +1,37 @@
1
1
  import { Type } from './interface';
2
-
3
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
- type?: Type | undefined;
5
- title?: string | undefined;
6
- description?: string | undefined;
7
- closable?: boolean | undefined;
8
- }>, {
9
- type: string;
10
- title: string;
11
- description: string;
12
- closable: boolean;
13
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
- close: () => void;
15
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
16
- type?: Type | undefined;
17
- title?: string | undefined;
18
- description?: string | undefined;
19
- closable?: boolean | undefined;
20
- }>, {
21
- type: string;
22
- title: string;
23
- description: string;
24
- closable: boolean;
25
- }>>> & {
2
+ declare function __VLS_template(): {
3
+ slots: {
4
+ icon?(_: {}): any;
5
+ title?(_: {}): any;
6
+ description?(_: {}): any;
7
+ actions?(_: {}): any;
8
+ };
9
+ refs: {};
10
+ attrs: Partial<{}>;
11
+ };
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: import('vue').DefineComponent<{
14
+ type?: Type;
15
+ title?: string;
16
+ description?: string;
17
+ closable?: boolean;
18
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
19
+ close: () => any;
20
+ }, string, import('vue').PublicProps, Readonly<{
21
+ type?: Type;
22
+ title?: string;
23
+ description?: string;
24
+ closable?: boolean;
25
+ }> & Readonly<{
26
26
  onClose?: (() => any) | undefined;
27
- }, {
27
+ }>, {
28
28
  type: Type;
29
29
  title: string;
30
30
  description: string;
31
31
  closable: boolean;
32
- }, {}>, {
33
- icon?(_: {}): any;
34
- title?(_: {}): any;
35
- description?(_: {}): any;
36
- actions?(_: {}): any;
37
- }>;
32
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
33
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
38
34
  export default _default;
39
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
40
- type __VLS_TypePropsToRuntimeProps<T> = {
41
- [K in keyof T]-?: {} extends Pick<T, K> ? {
42
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
43
- } : {
44
- type: import('vue').PropType<T[K]>;
45
- required: true;
46
- };
47
- };
48
- type __VLS_WithDefaults<P, D> = {
49
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
50
- default: D[K];
51
- }> : P[K];
52
- };
53
- type __VLS_Prettify<T> = {
54
- [K in keyof T]: T[K];
55
- } & {};
56
35
  type __VLS_WithTemplateSlots<T, S> = T & {
57
36
  new (): {
58
37
  $slots: S;
@@ -1,6 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/vue3';
2
2
  import { VAvatar } from '.';
3
-
4
3
  declare const meta: Meta<typeof VAvatar>;
5
4
  export default meta;
6
5
  type Story = StoryObj<typeof VAvatar>;
@@ -1,30 +1,6 @@
1
1
  import { AvatarProps } from './interface';
2
-
3
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<AvatarProps>, {
4
- size: string;
5
- circle: boolean;
6
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<AvatarProps>, {
7
- size: string;
8
- circle: boolean;
9
- }>>>, {
2
+ declare const _default: import('vue').DefineComponent<AvatarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AvatarProps> & Readonly<{}>, {
10
3
  circle: boolean;
11
4
  size: import('./interface').Size;
12
- }, {}>;
5
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
6
  export default _default;
14
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
- type __VLS_TypePropsToRuntimeProps<T> = {
16
- [K in keyof T]-?: {} extends Pick<T, K> ? {
17
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
- } : {
19
- type: import('vue').PropType<T[K]>;
20
- required: true;
21
- };
22
- };
23
- type __VLS_WithDefaults<P, D> = {
24
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
25
- default: D[K];
26
- }> : P[K];
27
- };
28
- type __VLS_Prettify<T> = {
29
- [K in keyof T]: T[K];
30
- } & {};
@@ -1,6 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/vue3';
2
2
  import { VAvatarGroup } from '.';
3
-
4
3
  declare const meta: Meta<typeof VAvatarGroup>;
5
4
  export default meta;
6
5
  type Story = StoryObj<typeof VAvatarGroup>;
@@ -1,35 +1,18 @@
1
1
  import { AvatarGroupProps } from './interface';
2
-
3
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<AvatarGroupProps>, {
4
- size: string;
5
- circle: boolean;
6
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<AvatarGroupProps>, {
7
- size: string;
8
- circle: boolean;
9
- }>>>, {
2
+ declare function __VLS_template(): {
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ attrs: Partial<{}>;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<AvatarGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AvatarGroupProps> & Readonly<{}>, {
10
11
  circle: boolean;
11
12
  size: import('./interface').Size;
12
- }, {}>, {
13
- default?(_: {}): any;
14
- }>;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
15
  export default _default;
16
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
17
- type __VLS_TypePropsToRuntimeProps<T> = {
18
- [K in keyof T]-?: {} extends Pick<T, K> ? {
19
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
20
- } : {
21
- type: import('vue').PropType<T[K]>;
22
- required: true;
23
- };
24
- };
25
- type __VLS_WithDefaults<P, D> = {
26
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
27
- default: D[K];
28
- }> : P[K];
29
- };
30
- type __VLS_Prettify<T> = {
31
- [K in keyof T]: T[K];
32
- } & {};
33
16
  type __VLS_WithTemplateSlots<T, S> = T & {
34
17
  new (): {
35
18
  $slots: S;
@@ -1,5 +1,4 @@
1
1
  import { InjectionKey } from 'vue';
2
-
3
2
  export type Size = "lg" | "md" | "sm" | "xs";
4
3
  export interface AvatarProps {
5
4
  src?: string;
@@ -1,6 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/vue3';
2
2
  import { VButton } from '.';
3
-
4
3
  declare const meta: Meta<typeof VButton>;
5
4
  export default meta;
6
5
  type Story = StoryObj<typeof VButton>;
@@ -1,43 +1,35 @@
1
1
  import { RouteLocationRaw } from 'vue-router';
2
2
  import { Size, Type } from './interface';
3
-
4
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
- type?: Type | undefined;
6
- size?: Size | undefined;
7
- circle?: boolean | undefined;
8
- block?: boolean | undefined;
9
- disabled?: boolean | undefined;
10
- loading?: boolean | undefined;
3
+ declare function __VLS_template(): {
4
+ slots: {
5
+ icon?(_: {}): any;
6
+ default?(_: {}): any;
7
+ };
8
+ refs: {};
9
+ attrs: Partial<{}>;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue').DefineComponent<{
13
+ type?: Type;
14
+ size?: Size;
15
+ circle?: boolean;
16
+ block?: boolean;
17
+ disabled?: boolean;
18
+ loading?: boolean;
11
19
  route?: RouteLocationRaw | undefined;
12
- }>, {
13
- type: string;
14
- size: string;
15
- circle: boolean;
16
- block: boolean;
17
- disabled: boolean;
18
- loading: boolean;
19
- route: undefined;
20
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
- click: () => void;
22
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
23
- type?: Type | undefined;
24
- size?: Size | undefined;
25
- circle?: boolean | undefined;
26
- block?: boolean | undefined;
27
- disabled?: boolean | undefined;
28
- loading?: boolean | undefined;
20
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
21
+ click: () => any;
22
+ }, string, import('vue').PublicProps, Readonly<{
23
+ type?: Type;
24
+ size?: Size;
25
+ circle?: boolean;
26
+ block?: boolean;
27
+ disabled?: boolean;
28
+ loading?: boolean;
29
29
  route?: RouteLocationRaw | undefined;
30
- }>, {
31
- type: string;
32
- size: string;
33
- circle: boolean;
34
- block: boolean;
35
- disabled: boolean;
36
- loading: boolean;
37
- route: undefined;
38
- }>>> & {
30
+ }> & Readonly<{
39
31
  onClick?: (() => any) | undefined;
40
- }, {
32
+ }>, {
41
33
  type: Type;
42
34
  circle: boolean;
43
35
  size: Size;
@@ -45,28 +37,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
45
37
  disabled: boolean;
46
38
  loading: boolean;
47
39
  route: RouteLocationRaw;
48
- }, {}>, {
49
- icon?(_: {}): any;
50
- default?(_: {}): any;
51
- }>;
40
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
41
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
52
42
  export default _default;
53
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
54
- type __VLS_TypePropsToRuntimeProps<T> = {
55
- [K in keyof T]-?: {} extends Pick<T, K> ? {
56
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
57
- } : {
58
- type: import('vue').PropType<T[K]>;
59
- required: true;
60
- };
61
- };
62
- type __VLS_WithDefaults<P, D> = {
63
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
64
- default: D[K];
65
- }> : P[K];
66
- };
67
- type __VLS_Prettify<T> = {
68
- [K in keyof T]: T[K];
69
- } & {};
70
43
  type __VLS_WithTemplateSlots<T, S> = T & {
71
44
  new (): {
72
45
  $slots: S;
@@ -1,6 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/vue3';
2
2
  import { VCard } from '.';
3
-
4
3
  declare const meta: Meta<typeof VCard>;
5
4
  export default meta;
6
5
  type Story = StoryObj<typeof VCard>;
@@ -1,25 +1,23 @@
1
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
- title?: string | undefined;
3
- bodyClass?: string[] | undefined;
4
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
5
- title?: string | undefined;
6
- bodyClass?: string[] | undefined;
7
- }>>>, {}, {}>, {
8
- header?(_: {}): any;
9
- actions?(_: {}): any;
10
- default?(_: {}): any;
11
- footer?(_: {}): any;
12
- }>;
13
- export default _default;
14
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
- type __VLS_TypePropsToRuntimeProps<T> = {
16
- [K in keyof T]-?: {} extends Pick<T, K> ? {
17
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
- } : {
19
- type: import('vue').PropType<T[K]>;
20
- required: true;
1
+ declare function __VLS_template(): {
2
+ slots: {
3
+ header?(_: {}): any;
4
+ actions?(_: {}): any;
5
+ default?(_: {}): any;
6
+ footer?(_: {}): any;
21
7
  };
8
+ refs: {};
9
+ attrs: Partial<{}>;
22
10
  };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue').DefineComponent<{
13
+ title?: string;
14
+ bodyClass?: string[];
15
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
16
+ title?: string;
17
+ bodyClass?: string[];
18
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
20
+ export default _default;
23
21
  type __VLS_WithTemplateSlots<T, S> = T & {
24
22
  new (): {
25
23
  $slots: S;
@@ -1,6 +1,13 @@
1
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>, {
2
- default?(_: {}): any;
3
- }>;
1
+ declare function __VLS_template(): {
2
+ slots: {
3
+ default?(_: {}): any;
4
+ };
5
+ refs: {};
6
+ attrs: Partial<{}>;
7
+ };
8
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
9
+ 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>;
10
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
4
11
  export default _default;
5
12
  type __VLS_WithTemplateSlots<T, S> = T & {
6
13
  new (): {
@@ -1,41 +1,25 @@
1
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ declare function __VLS_template(): {
2
+ slots: {
3
+ default?(_: {}): any;
4
+ };
5
+ refs: {};
6
+ attrs: Partial<{}>;
7
+ };
8
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
9
+ declare const __VLS_component: import('vue').DefineComponent<{
2
10
  label: string;
3
- content?: string | undefined;
4
- verticalCenter?: boolean | undefined;
5
- }>, {
6
- content: undefined;
7
- verticalCenter: boolean;
8
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
11
+ content?: string;
12
+ verticalCenter?: boolean;
13
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
9
14
  label: string;
10
- content?: string | undefined;
11
- verticalCenter?: boolean | undefined;
12
- }>, {
13
- content: undefined;
14
- verticalCenter: boolean;
15
- }>>>, {
15
+ content?: string;
16
+ verticalCenter?: boolean;
17
+ }> & Readonly<{}>, {
16
18
  content: string;
17
19
  verticalCenter: boolean;
18
- }, {}>, {
19
- default?(_: {}): any;
20
- }>;
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
22
  export default _default;
22
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
- type __VLS_TypePropsToRuntimeProps<T> = {
24
- [K in keyof T]-?: {} extends Pick<T, K> ? {
25
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
26
- } : {
27
- type: import('vue').PropType<T[K]>;
28
- required: true;
29
- };
30
- };
31
- type __VLS_WithDefaults<P, D> = {
32
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
33
- default: D[K];
34
- }> : P[K];
35
- };
36
- type __VLS_Prettify<T> = {
37
- [K in keyof T]: T[K];
38
- } & {};
39
23
  type __VLS_WithTemplateSlots<T, S> = T & {
40
24
  new (): {
41
25
  $slots: S;
@@ -1,6 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/vue3';
2
2
  import { VDialog } from '.';
3
-
4
3
  declare const meta: Meta<typeof VDialog>;
5
4
  export default meta;
6
5
  type Story = StoryObj<typeof VDialog>;
@@ -1,83 +1,20 @@
1
- import { Type as ButtonType } from '../button/interface';
2
- import { Type } from './interface';
3
-
4
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
- type?: Type | undefined;
6
- title?: string | undefined;
7
- description?: string | undefined;
8
- confirmText?: string | undefined;
9
- confirmType?: ButtonType | undefined;
10
- showCancel?: boolean | undefined;
11
- cancelText?: string | undefined;
12
- visible?: boolean | undefined;
13
- onConfirm?: (() => void) | undefined;
14
- onCancel?: (() => void) | undefined;
15
- }>, {
16
- type: string;
17
- title: string;
18
- description: string;
19
- confirmText: string;
20
- confirmType: string;
21
- showCancel: boolean;
22
- cancelText: string;
23
- visible: boolean;
24
- onConfirm: () => void;
25
- onCancel: () => void;
26
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
27
- "update:visible": (visible: boolean) => void;
28
- close: () => void;
29
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
30
- type?: Type | undefined;
31
- title?: string | undefined;
32
- description?: string | undefined;
33
- confirmText?: string | undefined;
34
- confirmType?: ButtonType | undefined;
35
- showCancel?: boolean | undefined;
36
- cancelText?: string | undefined;
37
- visible?: boolean | undefined;
38
- onConfirm?: (() => void) | undefined;
39
- onCancel?: (() => void) | undefined;
40
- }>, {
41
- type: string;
42
- title: string;
43
- description: string;
44
- confirmText: string;
45
- confirmType: string;
46
- showCancel: boolean;
47
- cancelText: string;
48
- visible: boolean;
49
- onConfirm: () => void;
50
- onCancel: () => void;
51
- }>>> & {
1
+ import { DialogProps, Type } from './interface';
2
+ declare const _default: import('vue').DefineComponent<DialogProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
+ close: () => any;
4
+ "update:visible": (visible: boolean) => any;
5
+ }, string, import('vue').PublicProps, Readonly<DialogProps> & Readonly<{
52
6
  onClose?: (() => any) | undefined;
53
7
  "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
54
- }, {
8
+ }>, {
55
9
  type: Type;
56
10
  title: string;
57
11
  description: string;
58
12
  visible: boolean;
59
- confirmType: ButtonType;
13
+ confirmType: import('../button/interface').Type;
60
14
  showCancel: boolean;
61
15
  confirmText: string;
62
16
  cancelText: string;
63
17
  onConfirm: () => void;
64
18
  onCancel: () => void;
65
- }, {}>;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
66
20
  export default _default;
67
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
68
- type __VLS_TypePropsToRuntimeProps<T> = {
69
- [K in keyof T]-?: {} extends Pick<T, K> ? {
70
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
71
- } : {
72
- type: import('vue').PropType<T[K]>;
73
- required: true;
74
- };
75
- };
76
- type __VLS_WithDefaults<P, D> = {
77
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
78
- default: D[K];
79
- }> : P[K];
80
- };
81
- type __VLS_Prettify<T> = {
82
- [K in keyof T]: T[K];
83
- } & {};
@@ -1,5 +1,4 @@
1
1
  import { DialogProps } from './interface';
2
-
3
2
  export type DialogApiProps = Omit<DialogProps, "type" | "visible">;
4
3
  export type DialogApi = (props?: DialogApiProps) => void;
5
4
  export interface DialogEntry {
@@ -10,12 +10,7 @@ export interface DialogProps {
10
10
  showCancel?: boolean;
11
11
  confirmText?: string;
12
12
  cancelText?: string;
13
+ uniqueId?: string;
13
14
  onConfirm?: () => void;
14
15
  onCancel?: () => void;
15
16
  }
16
- type useDialogOptions = Omit<DialogProps, "visible" | "title"> & {
17
- visible: boolean;
18
- title: string;
19
- };
20
- export type useDialogUserOptions = Omit<useDialogOptions, "type" | "visible">;
21
- export {};
@@ -1,6 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/vue3';
2
2
  import { VDropdown } from '.';
3
-
4
3
  declare const meta: Meta<typeof VDropdown>;
5
4
  export default meta;
6
5
  type Story = StoryObj<typeof VDropdown>;
@@ -1,56 +1,22 @@
1
1
  import { Placement, TriggerEvent } from 'floating-vue';
2
-
3
2
  declare function hide(): void;
4
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
- placement?: Placement | undefined;
6
- triggers?: TriggerEvent[] | undefined;
7
- classes?: string[] | undefined;
8
- }>, {
9
- placement: string;
10
- triggers: () => string[];
11
- classes: () => never[];
12
- }>, {
3
+ declare const _default: import('vue').DefineComponent<{
4
+ placement?: Placement;
5
+ triggers?: TriggerEvent[];
6
+ classes?: string[];
7
+ }, {
13
8
  hide: typeof hide;
14
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
- show: () => void;
16
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
17
- placement?: Placement | undefined;
18
- triggers?: TriggerEvent[] | undefined;
19
- classes?: string[] | undefined;
20
- }>, {
21
- placement: string;
22
- triggers: () => string[];
23
- classes: () => never[];
24
- }>>> & {
9
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
10
+ show: () => any;
11
+ }, string, import('vue').PublicProps, Readonly<{
12
+ placement?: Placement;
13
+ triggers?: TriggerEvent[];
14
+ classes?: string[];
15
+ }> & Readonly<{
25
16
  onShow?: (() => any) | undefined;
26
- }, {
17
+ }>, {
27
18
  classes: string[];
28
19
  placement: Placement;
29
20
  triggers: TriggerEvent[];
30
- }, {}>, {
31
- default?(_: {}): any;
32
- popper?(_: {}): any;
33
- }>;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
34
22
  export default _default;
35
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
36
- type __VLS_TypePropsToRuntimeProps<T> = {
37
- [K in keyof T]-?: {} extends Pick<T, K> ? {
38
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
39
- } : {
40
- type: import('vue').PropType<T[K]>;
41
- required: true;
42
- };
43
- };
44
- type __VLS_WithDefaults<P, D> = {
45
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
46
- default: D[K];
47
- }> : P[K];
48
- };
49
- type __VLS_Prettify<T> = {
50
- [K in keyof T]: T[K];
51
- } & {};
52
- type __VLS_WithTemplateSlots<T, S> = T & {
53
- new (): {
54
- $slots: S;
55
- };
56
- };
@@ -1,2 +1,2 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
2
  export default _default;