@witchcraft/ui 0.3.20 → 0.3.21

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 (71) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/assets/animations.css +1 -1
  3. package/dist/runtime/components/Aria/Aria.d.vue.ts +2 -1
  4. package/dist/runtime/components/Aria/Aria.vue.d.ts +2 -1
  5. package/dist/runtime/components/Icon/Icon.d.vue.ts +3 -2
  6. package/dist/runtime/components/Icon/Icon.vue.d.ts +3 -2
  7. package/dist/runtime/components/LibButton/LibButton.d.vue.ts +5 -4
  8. package/dist/runtime/components/LibButton/LibButton.vue.d.ts +5 -4
  9. package/dist/runtime/components/LibCheckbox/LibCheckbox.d.vue.ts +4 -5
  10. package/dist/runtime/components/LibCheckbox/LibCheckbox.vue.d.ts +4 -5
  11. package/dist/runtime/components/LibColorInput/LibColorInput.d.vue.ts +7 -6
  12. package/dist/runtime/components/LibColorInput/LibColorInput.vue.d.ts +7 -6
  13. package/dist/runtime/components/LibColorPicker/LibColorPicker.d.vue.ts +7 -5
  14. package/dist/runtime/components/LibColorPicker/LibColorPicker.vue.d.ts +7 -5
  15. package/dist/runtime/components/LibDarkModeSwitcher/LibDarkModeSwitcher.d.vue.ts +10 -9
  16. package/dist/runtime/components/LibDarkModeSwitcher/LibDarkModeSwitcher.vue.d.ts +10 -9
  17. package/dist/runtime/components/LibDatePicker/LibDatePicker.d.vue.ts +156 -5
  18. package/dist/runtime/components/LibDatePicker/LibDatePicker.vue.d.ts +156 -5
  19. package/dist/runtime/components/LibDatePicker/LibRangeDatePicker.d.vue.ts +154 -6
  20. package/dist/runtime/components/LibDatePicker/LibRangeDatePicker.vue.d.ts +154 -6
  21. package/dist/runtime/components/LibDatePicker/LibSingleDatePicker.d.vue.ts +7 -5
  22. package/dist/runtime/components/LibDatePicker/LibSingleDatePicker.vue.d.ts +7 -5
  23. package/dist/runtime/components/LibDatePicker/LibTimeZonePicker.d.vue.ts +7 -6
  24. package/dist/runtime/components/LibDatePicker/LibTimeZonePicker.vue.d.ts +7 -6
  25. package/dist/runtime/components/LibDebug/LibDebug.d.vue.ts +3 -2
  26. package/dist/runtime/components/LibDebug/LibDebug.vue.d.ts +3 -2
  27. package/dist/runtime/components/LibDevOnly/LibDevOnly.d.vue.ts +3 -2
  28. package/dist/runtime/components/LibDevOnly/LibDevOnly.vue.d.ts +3 -2
  29. package/dist/runtime/components/LibFileInput/LibFileInput.d.vue.ts +20 -19
  30. package/dist/runtime/components/LibFileInput/LibFileInput.vue.d.ts +20 -19
  31. package/dist/runtime/components/LibInputDeprecated/LibInputDeprecated.d.vue.ts +106 -15
  32. package/dist/runtime/components/LibInputDeprecated/LibInputDeprecated.vue.d.ts +106 -15
  33. package/dist/runtime/components/LibLabel/LibLabel.d.vue.ts +3 -2
  34. package/dist/runtime/components/LibLabel/LibLabel.vue.d.ts +3 -2
  35. package/dist/runtime/components/LibMultiValues/LibMultiValues.d.vue.ts +15 -10
  36. package/dist/runtime/components/LibMultiValues/LibMultiValues.vue.d.ts +15 -10
  37. package/dist/runtime/components/LibNotifications/LibNotification.d.vue.ts +14 -5
  38. package/dist/runtime/components/LibNotifications/LibNotification.vue.d.ts +14 -5
  39. package/dist/runtime/components/LibNotifications/LibNotificationTestMessageComponent.d.vue.ts +2 -1
  40. package/dist/runtime/components/LibNotifications/LibNotificationTestMessageComponent.vue.d.ts +2 -1
  41. package/dist/runtime/components/LibNotifications/LibNotifications.d.vue.ts +2 -1
  42. package/dist/runtime/components/LibNotifications/LibNotifications.vue.d.ts +2 -1
  43. package/dist/runtime/components/LibPagination/LibPagination.d.vue.ts +51 -50
  44. package/dist/runtime/components/LibPagination/LibPagination.vue.d.ts +51 -50
  45. package/dist/runtime/components/LibPalette/LibPalette.d.vue.ts +3 -2
  46. package/dist/runtime/components/LibPalette/LibPalette.vue.d.ts +3 -2
  47. package/dist/runtime/components/LibPopup/LibPopup.d.vue.ts +9 -3
  48. package/dist/runtime/components/LibPopup/LibPopup.vue.d.ts +9 -3
  49. package/dist/runtime/components/LibProgressBar/LibProgressBar.d.vue.ts +3 -2
  50. package/dist/runtime/components/LibProgressBar/LibProgressBar.vue.d.ts +3 -2
  51. package/dist/runtime/components/LibRecorder/LibRecorder.d.vue.ts +3 -2
  52. package/dist/runtime/components/LibRecorder/LibRecorder.vue.d.ts +3 -2
  53. package/dist/runtime/components/LibRoot/LibRoot.d.vue.ts +5 -4
  54. package/dist/runtime/components/LibRoot/LibRoot.vue.d.ts +5 -4
  55. package/dist/runtime/components/LibSimpleInput/LibSimpleInput.d.vue.ts +18 -13
  56. package/dist/runtime/components/LibSimpleInput/LibSimpleInput.vue +1 -1
  57. package/dist/runtime/components/LibSimpleInput/LibSimpleInput.vue.d.ts +18 -13
  58. package/dist/runtime/components/LibSuggestions/LibSuggestions.d.vue.ts +23 -18
  59. package/dist/runtime/components/LibSuggestions/LibSuggestions.vue.d.ts +23 -18
  60. package/dist/runtime/components/LibTable/LibTable.d.vue.ts +34 -13
  61. package/dist/runtime/components/LibTable/LibTable.vue.d.ts +34 -13
  62. package/dist/runtime/components/Template/NAME.d.vue.ts +3 -2
  63. package/dist/runtime/components/Template/NAME.vue.d.ts +3 -2
  64. package/dist/runtime/components/TestControls/TestControls.d.vue.ts +2 -1
  65. package/dist/runtime/components/TestControls/TestControls.vue.d.ts +2 -1
  66. package/package.json +50 -50
  67. package/src/runtime/assets/animations.css +2 -2
  68. package/src/runtime/components/LibCheckbox/LibCheckbox.vue +3 -1
  69. package/src/runtime/components/LibFileInput/LibFileInput.vue +13 -4
  70. package/src/runtime/components/LibInputDeprecated/LibInputDeprecated.vue +6 -1
  71. package/src/runtime/components/LibSimpleInput/LibSimpleInput.vue +2 -0
@@ -10,20 +10,25 @@ Partial<Omit<HTMLAttributes, "class"> & TailwindClassProp>,
10
10
  /** @vue-ignore */
11
11
  WrapperTypes, RealProps {
12
12
  }
13
- declare const _default: <T extends string | number>(__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<{
14
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
15
- readonly "onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
16
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & (Props & {
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
15
+ declare const __VLS_export: <T extends string | number>(__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<{
16
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<(Props & {
17
17
  modelValue?: T[];
18
- }) & {}> & import("vue").PublicProps;
19
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
18
+ }) & {
19
+ "onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
20
+ }> & (typeof globalThis extends {
21
+ __VLS_PROPS_FALLBACK: infer P;
22
+ } ? P : {});
23
+ expose: (exposed: {}) => void;
20
24
  attrs: any;
21
25
  slots: {};
22
- emit: (evt: "update:modelValue", value: T[]) => void;
26
+ emit: (event: "update:modelValue", value: T[]) => void;
23
27
  }>) => import("vue").VNode & {
24
28
  __ctx?: Awaited<typeof __VLS_setup>;
25
29
  };
26
- export default _default;
27
- type __VLS_PrettifyLocal<T> = {
30
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
31
+ [K in keyof T]: T[K];
32
+ } : {
28
33
  [K in keyof T as K]: T[K];
29
- } & {};
34
+ }) & {};
@@ -9,7 +9,9 @@ interface Props extends
9
9
  /** @vue-ignore */
10
10
  Partial<Omit<HTMLAttributes, "class"> & TailwindClassProp>, RealProps {
11
11
  }
12
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<Props, {
13
15
  focus: () => void;
14
16
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
15
17
  pause: (notification: NotificationEntry) => any;
@@ -21,14 +23,21 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {
21
23
  handler: NotificationHandler;
22
24
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
23
25
  top?: (props: {
24
- notification: any;
26
+ notification: NotificationEntry;
25
27
  }) => any;
26
28
  } & {
27
- title?: (props: any) => any;
29
+ title?: (props: {
30
+ title: string;
31
+ class: string;
32
+ tabindex: number;
33
+ }) => any;
28
34
  } & {
29
- message?: (props: any) => any;
35
+ message?: (props: {
36
+ class: string;
37
+ message: string;
38
+ tabindex: number;
39
+ }) => any;
30
40
  }>;
31
- export default _default;
32
41
  type __VLS_WithSlots<T, S> = T & {
33
42
  new (): {
34
43
  $slots: S;
@@ -9,7 +9,9 @@ interface Props extends
9
9
  /** @vue-ignore */
10
10
  Partial<Omit<HTMLAttributes, "class"> & TailwindClassProp>, RealProps {
11
11
  }
12
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<Props, {
13
15
  focus: () => void;
14
16
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
15
17
  pause: (notification: NotificationEntry) => any;
@@ -21,14 +23,21 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {
21
23
  handler: NotificationHandler;
22
24
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
23
25
  top?: (props: {
24
- notification: any;
26
+ notification: NotificationEntry;
25
27
  }) => any;
26
28
  } & {
27
- title?: (props: any) => any;
29
+ title?: (props: {
30
+ title: string;
31
+ class: string;
32
+ tabindex: number;
33
+ }) => any;
28
34
  } & {
29
- message?: (props: any) => any;
35
+ message?: (props: {
36
+ class: string;
37
+ message: string;
38
+ tabindex: number;
39
+ }) => any;
30
40
  }>;
31
- export default _default;
32
41
  type __VLS_WithSlots<T, S> = T & {
33
42
  new (): {
34
43
  $slots: S;
@@ -2,5 +2,6 @@ import type { CustomNotificationComponentProps } from "../../types/index.js";
2
2
  type __VLS_Props = CustomNotificationComponentProps & {
3
3
  customProp: string;
4
4
  };
5
- declare const _default: 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>;
5
+ declare const __VLS_export: 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>;
6
+ declare const _default: typeof __VLS_export;
6
7
  export default _default;
@@ -2,5 +2,6 @@ import type { CustomNotificationComponentProps } from "../../types/index.js";
2
2
  type __VLS_Props = CustomNotificationComponentProps & {
3
3
  customProp: string;
4
4
  };
5
- declare const _default: 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>;
5
+ declare const __VLS_export: 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>;
6
+ declare const _default: typeof __VLS_export;
6
7
  export default _default;
@@ -10,5 +10,6 @@ interface Props extends
10
10
  /** @vue-ignore */
11
11
  Partial<Omit<HTMLAttributes, "class"> & TailwindClassProp>, RealProps {
12
12
  }
13
- declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
14
14
  export default _default;
15
+ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -10,5 +10,6 @@ interface Props extends
10
10
  /** @vue-ignore */
11
11
  Partial<Omit<HTMLAttributes, "class"> & TailwindClassProp>, RealProps {
12
12
  }
13
- declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
14
14
  export default _default;
15
+ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -10,7 +10,34 @@ import type { TailwindClassProp } from "../shared/props.js";
10
10
  * </template>
11
11
  * ```
12
12
  */
13
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
15
+ type RealProps = {
16
+ /** The total number of pages. */
17
+ total: number;
18
+ /** The number of the current page. It must be valid, between 0 - total or the component will throw an error. */
19
+ current: number;
20
+ /** The base route/link path for the page. Should end with a forward slash `/`. */
21
+ route: string;
22
+ /**
23
+ * A function to customize the output href and page link number. By default, page 0 is page 1, page 1 is 1, then everything else is normal.
24
+ *
25
+ * This is because usually we have routes like: `/page/1`, `/page/2`, not `/page/0`.
26
+ *
27
+ * You can use this function to customize things further. For example, make `/page/1` just `/`
28
+ */
29
+ customRoute?: (route: string, i: number) => {
30
+ i: number;
31
+ href: string;
32
+ };
33
+ /** How many extra pages to show to each side of the current page. */
34
+ extraPages?: number;
35
+ };
36
+ interface Props extends
37
+ /** @vue-ignore */
38
+ Partial<Omit<HTMLAttributes, "class"> & TailwindClassProp>, RealProps {
39
+ }
40
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
14
41
  customRoute: (route: string, i: number) => {
15
42
  i: number;
16
43
  href: string;
@@ -19,84 +46,58 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {},
19
46
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
20
47
  link?: (props: {
21
48
  class: string;
22
- i: any;
23
- href: any;
24
- text: any;
25
- ariaLabel: any;
49
+ i: number;
50
+ href: string;
51
+ text: string;
52
+ ariaLabel: string;
26
53
  }) => any;
27
54
  } & {
28
55
  link?: (props: {
29
56
  class: string;
30
57
  i: number;
31
- href: any;
32
- text: any;
33
- ariaLabel: any;
58
+ href: string;
59
+ text: number;
60
+ ariaLabel: string;
34
61
  }) => any;
35
62
  } & {
36
63
  link?: (props: {
37
- i: any;
38
- href: any;
39
- ariaLabel: any;
64
+ i: number;
65
+ href: string;
66
+ ariaLabel: string;
40
67
  class: string;
41
68
  }) => any;
42
69
  } & {
43
70
  current?: (props: {
44
71
  tabindex: string;
45
- i: any;
46
- ariaLabel: any;
72
+ i: number;
73
+ ariaLabel: string;
47
74
  aria_current: boolean;
48
75
  class: string;
49
76
  }) => any;
50
77
  } & {
51
78
  link?: (props: {
52
- i: any;
53
- href: any;
54
- ariaLabel: any;
79
+ i: number;
80
+ href: string;
81
+ ariaLabel: string;
55
82
  class: string;
56
83
  }) => any;
57
84
  } & {
58
85
  link?: (props: {
59
- i: any;
60
- href: any;
61
- text: any;
62
- ariaLabel: any;
86
+ i: number;
87
+ href: string;
88
+ text: number;
89
+ ariaLabel: string;
63
90
  class: string;
64
91
  }) => any;
65
92
  } & {
66
93
  link?: (props: {
67
- i: any;
68
- href: any;
69
- text: any;
70
- ariaLabel: any;
94
+ i: number;
95
+ href: string;
96
+ text: string;
97
+ ariaLabel: string;
71
98
  class: string;
72
99
  }) => any;
73
100
  }>;
74
- export default _default;
75
- type RealProps = {
76
- /** The total number of pages. */
77
- total: number;
78
- /** The number of the current page. It must be valid, between 0 - total or the component will throw an error. */
79
- current: number;
80
- /** The base route/link path for the page. Should end with a forward slash `/`. */
81
- route: string;
82
- /**
83
- * A function to customize the output href and page link number. By default, page 0 is page 1, page 1 is 1, then everything else is normal.
84
- *
85
- * This is because usually we have routes like: `/page/1`, `/page/2`, not `/page/0`.
86
- *
87
- * You can use this function to customize things further. For example, make `/page/1` just `/`
88
- */
89
- customRoute?: (route: string, i: number) => {
90
- i: number;
91
- href: string;
92
- };
93
- /** How many extra pages to show to each side of the current page. */
94
- extraPages?: number;
95
- };
96
- interface Props extends
97
- /** @vue-ignore */
98
- Partial<Omit<HTMLAttributes, "class"> & TailwindClassProp>, RealProps {
99
- }
100
101
  type __VLS_WithSlots<T, S> = T & {
101
102
  new (): {
102
103
  $slots: S;
@@ -10,7 +10,34 @@ import type { TailwindClassProp } from "../shared/props.js";
10
10
  * </template>
11
11
  * ```
12
12
  */
13
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
15
+ type RealProps = {
16
+ /** The total number of pages. */
17
+ total: number;
18
+ /** The number of the current page. It must be valid, between 0 - total or the component will throw an error. */
19
+ current: number;
20
+ /** The base route/link path for the page. Should end with a forward slash `/`. */
21
+ route: string;
22
+ /**
23
+ * A function to customize the output href and page link number. By default, page 0 is page 1, page 1 is 1, then everything else is normal.
24
+ *
25
+ * This is because usually we have routes like: `/page/1`, `/page/2`, not `/page/0`.
26
+ *
27
+ * You can use this function to customize things further. For example, make `/page/1` just `/`
28
+ */
29
+ customRoute?: (route: string, i: number) => {
30
+ i: number;
31
+ href: string;
32
+ };
33
+ /** How many extra pages to show to each side of the current page. */
34
+ extraPages?: number;
35
+ };
36
+ interface Props extends
37
+ /** @vue-ignore */
38
+ Partial<Omit<HTMLAttributes, "class"> & TailwindClassProp>, RealProps {
39
+ }
40
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
14
41
  customRoute: (route: string, i: number) => {
15
42
  i: number;
16
43
  href: string;
@@ -19,84 +46,58 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {},
19
46
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
20
47
  link?: (props: {
21
48
  class: string;
22
- i: any;
23
- href: any;
24
- text: any;
25
- ariaLabel: any;
49
+ i: number;
50
+ href: string;
51
+ text: string;
52
+ ariaLabel: string;
26
53
  }) => any;
27
54
  } & {
28
55
  link?: (props: {
29
56
  class: string;
30
57
  i: number;
31
- href: any;
32
- text: any;
33
- ariaLabel: any;
58
+ href: string;
59
+ text: number;
60
+ ariaLabel: string;
34
61
  }) => any;
35
62
  } & {
36
63
  link?: (props: {
37
- i: any;
38
- href: any;
39
- ariaLabel: any;
64
+ i: number;
65
+ href: string;
66
+ ariaLabel: string;
40
67
  class: string;
41
68
  }) => any;
42
69
  } & {
43
70
  current?: (props: {
44
71
  tabindex: string;
45
- i: any;
46
- ariaLabel: any;
72
+ i: number;
73
+ ariaLabel: string;
47
74
  aria_current: boolean;
48
75
  class: string;
49
76
  }) => any;
50
77
  } & {
51
78
  link?: (props: {
52
- i: any;
53
- href: any;
54
- ariaLabel: any;
79
+ i: number;
80
+ href: string;
81
+ ariaLabel: string;
55
82
  class: string;
56
83
  }) => any;
57
84
  } & {
58
85
  link?: (props: {
59
- i: any;
60
- href: any;
61
- text: any;
62
- ariaLabel: any;
86
+ i: number;
87
+ href: string;
88
+ text: number;
89
+ ariaLabel: string;
63
90
  class: string;
64
91
  }) => any;
65
92
  } & {
66
93
  link?: (props: {
67
- i: any;
68
- href: any;
69
- text: any;
70
- ariaLabel: any;
94
+ i: number;
95
+ href: string;
96
+ text: string;
97
+ ariaLabel: string;
71
98
  class: string;
72
99
  }) => any;
73
100
  }>;
74
- export default _default;
75
- type RealProps = {
76
- /** The total number of pages. */
77
- total: number;
78
- /** The number of the current page. It must be valid, between 0 - total or the component will throw an error. */
79
- current: number;
80
- /** The base route/link path for the page. Should end with a forward slash `/`. */
81
- route: string;
82
- /**
83
- * A function to customize the output href and page link number. By default, page 0 is page 1, page 1 is 1, then everything else is normal.
84
- *
85
- * This is because usually we have routes like: `/page/1`, `/page/2`, not `/page/0`.
86
- *
87
- * You can use this function to customize things further. For example, make `/page/1` just `/`
88
- */
89
- customRoute?: (route: string, i: number) => {
90
- i: number;
91
- href: string;
92
- };
93
- /** How many extra pages to show to each side of the current page. */
94
- extraPages?: number;
95
- };
96
- interface Props extends
97
- /** @vue-ignore */
98
- Partial<Omit<HTMLAttributes, "class"> & TailwindClassProp>, RealProps {
99
- }
100
101
  type __VLS_WithSlots<T, S> = T & {
101
102
  new (): {
102
103
  $slots: S;
@@ -1,6 +1,8 @@
1
1
  import type { Theme } from "metamorphosis";
2
2
  import type { BaseInteractiveProps, LinkableByIdProps } from "../shared/props.js";
3
- declare const _default: import("vue").DefineComponent<LinkableByIdProps & BaseInteractiveProps & {
3
+ declare const _default: typeof __VLS_export;
4
+ export default _default;
5
+ declare const __VLS_export: import("vue").DefineComponent<LinkableByIdProps & BaseInteractiveProps & {
4
6
  theme?: Theme;
5
7
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkableByIdProps & BaseInteractiveProps & {
6
8
  theme?: Theme;
@@ -11,4 +13,3 @@ declare const _default: import("vue").DefineComponent<LinkableByIdProps & BaseIn
11
13
  border: boolean;
12
14
  unstyle: boolean;
13
15
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
- export default _default;
@@ -1,6 +1,8 @@
1
1
  import type { Theme } from "metamorphosis";
2
2
  import type { BaseInteractiveProps, LinkableByIdProps } from "../shared/props.js";
3
- declare const _default: import("vue").DefineComponent<LinkableByIdProps & BaseInteractiveProps & {
3
+ declare const _default: typeof __VLS_export;
4
+ export default _default;
5
+ declare const __VLS_export: import("vue").DefineComponent<LinkableByIdProps & BaseInteractiveProps & {
4
6
  theme?: Theme;
5
7
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkableByIdProps & BaseInteractiveProps & {
6
8
  theme?: Theme;
@@ -11,4 +13,3 @@ declare const _default: import("vue").DefineComponent<LinkableByIdProps & BaseIn
11
13
  border: boolean;
12
14
  unstyle: boolean;
13
15
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
- export default _default;
@@ -6,7 +6,9 @@ interface Props extends
6
6
  /** @vue-ignore */
7
7
  Partial<Omit<HTMLAttributes, "class"> & TailwindClassProp>, RealProps {
8
8
  }
9
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props & {
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
11
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<Props & {
10
12
  modelValue?: boolean;
11
13
  }, {
12
14
  recompute: (force?: boolean) => void;
@@ -34,11 +36,15 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props & {
34
36
  }) => any;
35
37
  } & {
36
38
  popup?: (props: {
37
- position: any;
39
+ position: {
40
+ x: number;
41
+ y: number;
42
+ maxWidth?: number | undefined;
43
+ maxHeight?: number | undefined;
44
+ };
38
45
  extractEl: (_: any) => any;
39
46
  }) => any;
40
47
  }>;
41
- export default _default;
42
48
  type __VLS_WithSlots<T, S> = T & {
43
49
  new (): {
44
50
  $slots: S;
@@ -6,7 +6,9 @@ interface Props extends
6
6
  /** @vue-ignore */
7
7
  Partial<Omit<HTMLAttributes, "class"> & TailwindClassProp>, RealProps {
8
8
  }
9
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props & {
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
11
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<Props & {
10
12
  modelValue?: boolean;
11
13
  }, {
12
14
  recompute: (force?: boolean) => void;
@@ -34,11 +36,15 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props & {
34
36
  }) => any;
35
37
  } & {
36
38
  popup?: (props: {
37
- position: any;
39
+ position: {
40
+ x: number;
41
+ y: number;
42
+ maxWidth?: number | undefined;
43
+ maxHeight?: number | undefined;
44
+ };
38
45
  extractEl: (_: any) => any;
39
46
  }) => any;
40
47
  }>;
41
- export default _default;
42
48
  type __VLS_WithSlots<T, S> = T & {
43
49
  new (): {
44
50
  $slots: S;
@@ -21,7 +21,9 @@ interface Props extends
21
21
  /** @vue-ignore */
22
22
  Partial<Omit<HTMLAttributes, "class"> & TailwindClassProp>, RealProps {
23
23
  }
24
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
24
+ declare const _default: typeof __VLS_export;
25
+ export default _default;
26
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
25
27
  disabled: boolean;
26
28
  readonly: boolean;
27
29
  border: boolean;
@@ -34,7 +36,6 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {},
34
36
  } & {
35
37
  default?: (props: {}) => any;
36
38
  }>;
37
- export default _default;
38
39
  type __VLS_WithSlots<T, S> = T & {
39
40
  new (): {
40
41
  $slots: S;
@@ -21,7 +21,9 @@ interface Props extends
21
21
  /** @vue-ignore */
22
22
  Partial<Omit<HTMLAttributes, "class"> & TailwindClassProp>, RealProps {
23
23
  }
24
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
24
+ declare const _default: typeof __VLS_export;
25
+ export default _default;
26
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
25
27
  disabled: boolean;
26
28
  readonly: boolean;
27
29
  border: boolean;
@@ -34,7 +36,6 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {},
34
36
  } & {
35
37
  default?: (props: {}) => any;
36
38
  }>;
37
- export default _default;
38
39
  type __VLS_WithSlots<T, S> = T & {
39
40
  new (): {
40
41
  $slots: S;
@@ -26,7 +26,9 @@ interface Props extends
26
26
  /** @vue-ignore */
27
27
  Partial<Omit<HTMLAttributes, "class"> & TailwindClassProp>, RealProps {
28
28
  }
29
- declare const _default: import("vue").DefineComponent<Props & {
29
+ declare const _default: typeof __VLS_export;
30
+ export default _default;
31
+ declare const __VLS_export: import("vue").DefineComponent<Props & {
30
32
  /**
31
33
  * Puts the element into recording mode if true. See {@link props.recorder}.
32
34
  */
@@ -74,4 +76,3 @@ declare const _default: import("vue").DefineComponent<Props & {
74
76
  unbind: (el: HTMLElement) => void;
75
77
  };
76
78
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
77
- export default _default;
@@ -26,7 +26,9 @@ interface Props extends
26
26
  /** @vue-ignore */
27
27
  Partial<Omit<HTMLAttributes, "class"> & TailwindClassProp>, RealProps {
28
28
  }
29
- declare const _default: import("vue").DefineComponent<Props & {
29
+ declare const _default: typeof __VLS_export;
30
+ export default _default;
31
+ declare const __VLS_export: import("vue").DefineComponent<Props & {
30
32
  /**
31
33
  * Puts the element into recording mode if true. See {@link props.recorder}.
32
34
  */
@@ -74,4 +76,3 @@ declare const _default: import("vue").DefineComponent<Props & {
74
76
  unbind: (el: HTMLElement) => void;
75
77
  };
76
78
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
77
- export default _default;
@@ -14,11 +14,11 @@ type __VLS_Props = {
14
14
  useNotifications?: boolean;
15
15
  notificationHandler?: NotificationHandler;
16
16
  };
17
- declare var __VLS_9: {};
17
+ declare var __VLS_11: {};
18
18
  type __VLS_Slots = {} & {
19
- default?: (props: typeof __VLS_9) => any;
19
+ default?: (props: typeof __VLS_11) => any;
20
20
  };
21
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
21
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
22
22
  darkMode: import("../../composables/useDarkMode.js").DarkModeState & import("../../composables/useDarkMode.js").DarkModeCommands;
23
23
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
24
24
  theme: Theme;
@@ -32,7 +32,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
32
32
  useNotifications: boolean;
33
33
  notificationHandler: NotificationHandler;
34
34
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
35
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
36
+ declare const _default: typeof __VLS_export;
36
37
  export default _default;
37
38
  type __VLS_WithSlots<T, S> = T & {
38
39
  new (): {
@@ -14,11 +14,11 @@ type __VLS_Props = {
14
14
  useNotifications?: boolean;
15
15
  notificationHandler?: NotificationHandler;
16
16
  };
17
- declare var __VLS_9: {};
17
+ declare var __VLS_11: {};
18
18
  type __VLS_Slots = {} & {
19
- default?: (props: typeof __VLS_9) => any;
19
+ default?: (props: typeof __VLS_11) => any;
20
20
  };
21
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
21
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
22
22
  darkMode: import("../../composables/useDarkMode.js").DarkModeState & import("../../composables/useDarkMode.js").DarkModeCommands;
23
23
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
24
24
  theme: Theme;
@@ -32,7 +32,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
32
32
  useNotifications: boolean;
33
33
  notificationHandler: NotificationHandler;
34
34
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
35
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
36
+ declare const _default: typeof __VLS_export;
36
37
  export default _default;
37
38
  type __VLS_WithSlots<T, S> = T & {
38
39
  new (): {