@witchcraft/ui 0.2.1-beta.3 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (203) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +20 -4
  3. package/dist/runtime/build/WitchcraftUiResolver.d.ts +2 -2
  4. package/dist/runtime/build/generateTheme.js +2 -2
  5. package/dist/runtime/components/Aria/Aria.d.vue.ts +5 -0
  6. package/dist/runtime/components/Aria/Aria.vue +4 -2
  7. package/dist/runtime/components/Aria/Aria.vue.d.ts +1 -1
  8. package/dist/runtime/components/Icon/Icon.d.vue.ts +21 -0
  9. package/dist/runtime/components/Icon/Icon.vue +3 -3
  10. package/dist/runtime/components/Icon/Icon.vue.d.ts +1 -1
  11. package/dist/runtime/components/LibButton/LibButton.d.vue.ts +36 -0
  12. package/dist/runtime/components/LibButton/LibButton.vue +9 -4
  13. package/dist/runtime/components/LibButton/LibButton.vue.d.ts +1 -1
  14. package/dist/runtime/components/LibCheckbox/LibCheckbox.d.vue.ts +42 -0
  15. package/dist/runtime/components/LibCheckbox/LibCheckbox.vue +3 -4
  16. package/dist/runtime/components/LibCheckbox/LibCheckbox.vue.d.ts +1 -1
  17. package/dist/runtime/components/LibColorInput/LibColorInput.d.vue.ts +63 -0
  18. package/dist/runtime/components/LibColorInput/LibColorInput.vue +15 -8
  19. package/dist/runtime/components/LibColorInput/LibColorInput.vue.d.ts +1 -1
  20. package/dist/runtime/components/LibColorPicker/LibColorPicker.d.vue.ts +61 -0
  21. package/dist/runtime/components/LibColorPicker/LibColorPicker.vue +10 -6
  22. package/dist/runtime/components/LibColorPicker/LibColorPicker.vue.d.ts +1 -1
  23. package/dist/runtime/components/LibColorPicker/utils/truncate.js +1 -1
  24. package/dist/runtime/components/LibDarkModeSwitcher/LibDarkModeSwitcher.d.vue.ts +22 -0
  25. package/dist/runtime/components/LibDarkModeSwitcher/LibDarkModeSwitcher.vue +5 -2
  26. package/dist/runtime/components/LibDarkModeSwitcher/LibDarkModeSwitcher.vue.d.ts +1 -1
  27. package/dist/runtime/components/LibDatePicker/LibDatePicker.d.vue.ts +40 -0
  28. package/dist/runtime/components/LibDatePicker/LibDatePicker.vue.d.ts +1 -1
  29. package/dist/runtime/components/LibDatePicker/LibRangeDatePicker.d.vue.ts +34 -0
  30. package/dist/runtime/components/LibDatePicker/LibRangeDatePicker.vue +8 -6
  31. package/dist/runtime/components/LibDatePicker/LibRangeDatePicker.vue.d.ts +1 -1
  32. package/dist/runtime/components/LibDatePicker/LibSingleDatePicker.d.vue.ts +34 -0
  33. package/dist/runtime/components/LibDatePicker/LibSingleDatePicker.vue +7 -5
  34. package/dist/runtime/components/LibDatePicker/LibSingleDatePicker.vue.d.ts +1 -1
  35. package/dist/runtime/components/LibDatePicker/LibTimeZonePicker.d.vue.ts +22 -0
  36. package/dist/runtime/components/LibDatePicker/LibTimeZonePicker.vue.d.ts +1 -1
  37. package/dist/runtime/components/LibDebug/LibDebug.d.vue.ts +32 -0
  38. package/dist/runtime/components/LibDebug/LibDebug.vue +9 -4
  39. package/dist/runtime/components/LibDebug/LibDebug.vue.d.ts +1 -1
  40. package/dist/runtime/components/LibDevOnly/LibDevOnly.d.vue.ts +25 -0
  41. package/dist/runtime/components/LibDevOnly/LibDevOnly.vue +2 -1
  42. package/dist/runtime/components/LibDevOnly/LibDevOnly.vue.d.ts +4 -1
  43. package/dist/runtime/components/LibFileInput/LibFileInput.d.vue.ts +43 -0
  44. package/dist/runtime/components/LibFileInput/LibFileInput.vue +29 -13
  45. package/dist/runtime/components/LibFileInput/LibFileInput.vue.d.ts +2 -2
  46. package/dist/runtime/components/LibInputDeprecated/LibInputDeprecated.d.vue.ts +165 -0
  47. package/dist/runtime/components/LibInputDeprecated/LibInputDeprecated.vue +42 -12
  48. package/dist/runtime/components/LibLabel/LibLabel.d.vue.ts +26 -0
  49. package/dist/runtime/components/LibLabel/LibLabel.vue +2 -2
  50. package/dist/runtime/components/LibLabel/LibLabel.vue.d.ts +3 -3
  51. package/dist/runtime/components/LibMultiValues/LibMultiValues.d.vue.ts +29 -0
  52. package/dist/runtime/components/LibMultiValues/LibMultiValues.vue +1 -2
  53. package/dist/runtime/components/LibMultiValues/LibMultiValues.vue.d.ts +2 -2
  54. package/dist/runtime/components/LibNotifications/LibNotification.d.vue.ts +17 -0
  55. package/dist/runtime/components/LibNotifications/LibNotification.vue +19 -8
  56. package/dist/runtime/components/LibNotifications/LibNotifications.d.vue.ts +13 -0
  57. package/dist/runtime/components/LibNotifications/LibNotifications.vue +10 -6
  58. package/dist/runtime/components/LibNotifications/LibNotifications.vue.d.ts +2 -2
  59. package/dist/runtime/components/LibPagination/LibPagination.d.vue.ts +104 -0
  60. package/dist/runtime/components/LibPagination/LibPagination.vue +25 -12
  61. package/dist/runtime/components/LibPagination/LibPagination.vue.d.ts +2 -2
  62. package/dist/runtime/components/LibPalette/LibPalette.d.vue.ts +14 -0
  63. package/dist/runtime/components/LibPalette/LibPalette.vue +6 -5
  64. package/dist/runtime/components/LibPalette/LibPalette.vue.d.ts +5 -5
  65. package/dist/runtime/components/LibPopup/LibPopup.d.vue.ts +46 -0
  66. package/dist/runtime/components/LibPopup/LibPopup.vue +6 -4
  67. package/dist/runtime/components/LibPopup/LibPopup.vue.d.ts +3 -3
  68. package/dist/runtime/components/LibProgressBar/LibProgressBar.d.vue.ts +41 -0
  69. package/dist/runtime/components/LibProgressBar/LibProgressBar.vue +5 -3
  70. package/dist/runtime/components/LibProgressBar/LibProgressBar.vue.d.ts +9 -9
  71. package/dist/runtime/components/LibRecorder/LibRecorder.d.vue.ts +77 -0
  72. package/dist/runtime/components/LibRecorder/LibRecorder.vue +1 -1
  73. package/dist/runtime/components/LibRecorder/LibRecorder.vue.d.ts +2 -2
  74. package/dist/runtime/components/LibRoot/LibRoot.d.vue.ts +41 -0
  75. package/dist/runtime/components/LibRoot/LibRoot.vue +11 -6
  76. package/dist/runtime/components/LibRoot/LibRoot.vue.d.ts +1 -1
  77. package/dist/runtime/components/LibSimpleInput/LibSimpleInput.d.vue.ts +35 -0
  78. package/dist/runtime/components/LibSimpleInput/LibSimpleInput.vue +1 -1
  79. package/dist/runtime/components/LibSimpleInput/LibSimpleInput.vue.d.ts +1 -1
  80. package/dist/runtime/components/LibSuggestions/LibSuggestions.d.vue.ts +94 -0
  81. package/dist/runtime/components/LibSuggestions/LibSuggestions.vue +6 -4
  82. package/dist/runtime/components/LibSuggestions/LibSuggestions.vue.d.ts +1 -1
  83. package/dist/runtime/components/LibTable/LibTable.d.vue.ts +45 -0
  84. package/dist/runtime/components/LibTable/LibTable.vue +23 -8
  85. package/dist/runtime/components/LibTable/LibTable.vue.d.ts +1 -1
  86. package/dist/runtime/components/Template/NAME.d.vue.ts +17 -0
  87. package/dist/runtime/components/Template/NAME.vue +2 -3
  88. package/dist/runtime/components/Template/NAME.vue.d.ts +1 -1
  89. package/dist/runtime/components/TestControls/TestControls.d.vue.ts +5 -0
  90. package/dist/runtime/components/TestControls/TestControls.vue +4 -2
  91. package/dist/runtime/components/TestControls/TestControls.vue.d.ts +1 -1
  92. package/dist/runtime/composables/useDragWithThreshold.d.ts +1 -1
  93. package/dist/runtime/composables/useInjectedI18n.d.ts +1 -1
  94. package/dist/runtime/composables/useScrollNearContainerEdges.d.ts +1 -1
  95. package/dist/runtime/composables/useSetupI18n.d.ts +1 -1
  96. package/dist/runtime/composables/useSuggestions.d.ts +2 -2
  97. package/dist/runtime/helpers/NotificationHandler.d.ts +1 -1
  98. package/dist/runtime/helpers/base64ToImg.js +2 -2
  99. package/dist/runtime/tailwind/themeConvertionOpts.d.ts +1 -1
  100. package/dist/runtime/types/index.d.ts +1 -1
  101. package/dist/runtime/utils/notifyIfError.d.ts +1 -1
  102. package/package.json +9 -10
  103. package/src/module.ts +41 -33
  104. package/src/runtime/build/WitchcraftUiResolver.ts +3 -3
  105. package/src/runtime/build/generateTheme.ts +3 -2
  106. package/src/runtime/build/unpluginIconViteOptions.ts +1 -1
  107. package/src/runtime/components/Aria/Aria.vue +5 -6
  108. package/src/runtime/components/Focus.stories.ts +11 -12
  109. package/src/runtime/components/Icon/Icon.vue +5 -9
  110. package/src/runtime/components/LibButton/LibButton.stories.ts +21 -22
  111. package/src/runtime/components/LibButton/LibButton.vue +23 -21
  112. package/src/runtime/components/LibCheckbox/LibCheckbox.stories.ts +6 -10
  113. package/src/runtime/components/LibCheckbox/LibCheckbox.vue +17 -19
  114. package/src/runtime/components/LibColorInput/LibColorInput.stories.ts +8 -13
  115. package/src/runtime/components/LibColorInput/LibColorInput.vue +49 -45
  116. package/src/runtime/components/LibColorPicker/LibColorPicker.stories.ts +14 -18
  117. package/src/runtime/components/LibColorPicker/LibColorPicker.vue +50 -52
  118. package/src/runtime/components/LibColorPicker/utils/safeConvertToHsva.ts +1 -2
  119. package/src/runtime/components/LibColorPicker/utils/safeConvertToRgba.ts +1 -2
  120. package/src/runtime/components/LibColorPicker/utils/truncate.ts +1 -2
  121. package/src/runtime/components/LibDarkModeSwitcher/LibDarkModeSwitcher.stories.ts +5 -8
  122. package/src/runtime/components/LibDarkModeSwitcher/LibDarkModeSwitcher.vue +11 -9
  123. package/src/runtime/components/LibDatePicker/LibDatePicker.stories.ts +14 -15
  124. package/src/runtime/components/LibDatePicker/LibDatePicker.vue +1 -2
  125. package/src/runtime/components/LibDatePicker/LibRangeDatePicker.vue +13 -13
  126. package/src/runtime/components/LibDatePicker/LibSingleDatePicker.vue +9 -8
  127. package/src/runtime/components/LibDatePicker/LibTimeZonePicker.vue +2 -1
  128. package/src/runtime/components/LibDatePicker/helpers.ts +0 -2
  129. package/src/runtime/components/LibDebug/LibDebug.stories.ts +11 -15
  130. package/src/runtime/components/LibDebug/LibDebug.vue +14 -11
  131. package/src/runtime/components/LibDevOnly/LibDevOnly.vue +8 -4
  132. package/src/runtime/components/LibFileInput/LibFileInput.stories.ts +12 -15
  133. package/src/runtime/components/LibFileInput/LibFileInput.vue +65 -47
  134. package/src/runtime/components/LibInputDeprecated/LibInputDeprecated.stories.ts +77 -84
  135. package/src/runtime/components/LibInputDeprecated/LibInputDeprecated.vue +73 -48
  136. package/src/runtime/components/LibLabel/LibLabel.stories.ts +4 -8
  137. package/src/runtime/components/LibLabel/LibLabel.vue +8 -8
  138. package/src/runtime/components/LibMultiValues/LibMultiValues.stories.ts +10 -15
  139. package/src/runtime/components/LibMultiValues/LibMultiValues.vue +14 -18
  140. package/src/runtime/components/LibNotifications/LibNotification.stories.ts +30 -34
  141. package/src/runtime/components/LibNotifications/LibNotification.vue +27 -17
  142. package/src/runtime/components/LibNotifications/LibNotifications.stories.ts +11 -15
  143. package/src/runtime/components/LibNotifications/LibNotifications.vue +21 -16
  144. package/src/runtime/components/LibPagination/LibPagination.stories.ts +5 -9
  145. package/src/runtime/components/LibPagination/LibPagination.vue +46 -32
  146. package/src/runtime/components/LibPalette/LibPalette.stories.ts +3 -7
  147. package/src/runtime/components/LibPalette/LibPalette.vue +13 -12
  148. package/src/runtime/components/LibPopup/LibPopup.stories.ts +19 -23
  149. package/src/runtime/components/LibPopup/LibPopup.vue +31 -35
  150. package/src/runtime/components/LibProgressBar/LibProgressBar.stories.ts +13 -17
  151. package/src/runtime/components/LibProgressBar/LibProgressBar.vue +36 -33
  152. package/src/runtime/components/LibRecorder/LibRecorder.stories.ts +11 -12
  153. package/src/runtime/components/LibRecorder/LibRecorder.vue +34 -34
  154. package/src/runtime/components/LibRoot/LibRoot.vue +16 -12
  155. package/src/runtime/components/LibSimpleInput/LibSimpleInput.stories.ts +20 -24
  156. package/src/runtime/components/LibSimpleInput/LibSimpleInput.vue +17 -21
  157. package/src/runtime/components/LibSuggestions/LibSuggestions.stories.ts +16 -19
  158. package/src/runtime/components/LibSuggestions/LibSuggestions.vue +28 -30
  159. package/src/runtime/components/LibTable/LibTable.stories.ts +30 -33
  160. package/src/runtime/components/LibTable/LibTable.vue +38 -24
  161. package/src/runtime/components/Reset.stories.ts +3 -6
  162. package/src/runtime/components/Scrolling.stories.ts +5 -8
  163. package/src/runtime/components/Template/NAME.vue +11 -11
  164. package/src/runtime/components/Template/TemplateStory.ts +9 -10
  165. package/src/runtime/components/TestControls/TestControls.vue +5 -5
  166. package/src/runtime/components/shared/props.ts +4 -6
  167. package/src/runtime/components/shared/storyHelpers/playInput.ts +2 -3
  168. package/src/runtime/components/shared/storyHelpers/playSuggestions.ts +5 -9
  169. package/src/runtime/composables/useAccesibilityOutline.ts +1 -1
  170. package/src/runtime/composables/useAriaLabel.ts +1 -1
  171. package/src/runtime/composables/useDarkMode.ts +15 -19
  172. package/src/runtime/composables/useDragWithThreshold.ts +6 -8
  173. package/src/runtime/composables/useGlobalResizeObserver.ts +0 -1
  174. package/src/runtime/composables/useInjectedDarkMode.ts +2 -2
  175. package/src/runtime/composables/useInjectedI18n.ts +1 -1
  176. package/src/runtime/composables/useInjectedLocale.ts +3 -4
  177. package/src/runtime/composables/useScrollNearContainerEdges.stories.ts +4 -4
  178. package/src/runtime/composables/useScrollNearContainerEdges.ts +12 -13
  179. package/src/runtime/composables/useSetupI18n.ts +4 -7
  180. package/src/runtime/composables/useSetupLocale.ts +3 -5
  181. package/src/runtime/composables/useSuggestions.ts +25 -30
  182. package/src/runtime/directives/vDetectFlex.ts +5 -8
  183. package/src/runtime/directives/vExtractRootEl.ts +1 -1
  184. package/src/runtime/directives/vResizableCols.ts +3 -7
  185. package/src/runtime/directives/vResizeObserver.ts +1 -2
  186. package/src/runtime/globalResizeObserver.ts +0 -1
  187. package/src/runtime/helpers/NotificationHandler.ts +8 -12
  188. package/src/runtime/helpers/base64ToImg.ts +2 -3
  189. package/src/runtime/helpers/createNoonUtcDate.ts +0 -1
  190. package/src/runtime/helpers/defaultTranslationFunction.ts +0 -1
  191. package/src/runtime/helpers/getTimeZoneList.ts +0 -1
  192. package/src/runtime/helpers/readFile.ts +2 -2
  193. package/src/runtime/helpers/resizeObserverWrapper.ts +0 -1
  194. package/src/runtime/helpers/storybook.ts +2 -3
  195. package/src/runtime/main.lib.ts +0 -2
  196. package/src/runtime/nuxt/plugins/vue-plugin.ts +4 -5
  197. package/src/runtime/tailwind/themeConvertionOpts.ts +3 -4
  198. package/src/runtime/theme.ts +0 -1
  199. package/src/runtime/types/index.ts +3 -4
  200. package/src/runtime/utils/notifyIfError.ts +2 -2
  201. package/src/runtime/utils/twMerge.ts +2 -2
  202. package/src/runtime/vue/VueComponentsPlugin.ts +1 -2
  203. package/src/runtime/vue/registerComponents.ts +0 -1
@@ -0,0 +1,104 @@
1
+ import { type HTMLAttributes } from "vue";
2
+ import type { TailwindClassProp } from "../shared/props.js.js";
3
+ /**
4
+ * Pagination component.
5
+ *
6
+ * Can be passed a slot like so to use a custom link element (like NuxtLink):
7
+ * ```vue
8
+ * <template #link="{ href, i, text, ariaLabel, ariaCurrent}">
9
+ * <NuxtLink :to="href" :aria-label="ariaLabel" :aria-current="ariaCurrent ?? false">{{ text ?? i }}</NuxtLink>
10
+ * </template>
11
+ * ```
12
+ */
13
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
14
+ customRoute: (route: string, i: number) => {
15
+ i: number;
16
+ href: string;
17
+ };
18
+ extraPages: number;
19
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
20
+ link?: (props: {
21
+ class: string;
22
+ i: any;
23
+ href: any;
24
+ text: any;
25
+ ariaLabel: any;
26
+ }) => any;
27
+ } & {
28
+ link?: (props: {
29
+ class: string;
30
+ i: number;
31
+ href: any;
32
+ text: any;
33
+ ariaLabel: any;
34
+ }) => any;
35
+ } & {
36
+ link?: (props: {
37
+ i: any;
38
+ href: any;
39
+ ariaLabel: any;
40
+ class: string;
41
+ }) => any;
42
+ } & {
43
+ current?: (props: {
44
+ tabindex: string;
45
+ i: any;
46
+ ariaLabel: any;
47
+ aria_current: boolean;
48
+ class: string;
49
+ }) => any;
50
+ } & {
51
+ link?: (props: {
52
+ i: any;
53
+ href: any;
54
+ ariaLabel: any;
55
+ class: string;
56
+ }) => any;
57
+ } & {
58
+ link?: (props: {
59
+ i: any;
60
+ href: any;
61
+ text: any;
62
+ ariaLabel: any;
63
+ class: string;
64
+ }) => any;
65
+ } & {
66
+ link?: (props: {
67
+ i: any;
68
+ href: any;
69
+ text: any;
70
+ ariaLabel: any;
71
+ class: string;
72
+ }) => any;
73
+ }>;
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
+ type __VLS_WithSlots<T, S> = T & {
101
+ new (): {
102
+ $slots: S;
103
+ };
104
+ };
@@ -7,7 +7,8 @@
7
7
  role="navigation"
8
8
  :aria-label="t('pagination.aria')"
9
9
  >
10
- <slot v-if="prevLink.i > 0 && prevLink.i !== currentLink.i"
10
+ <slot
11
+ v-if="prevLink.i > 0 && prevLink.i !== currentLink.i"
11
12
  name="link"
12
13
  :i="prevLink.i"
13
14
  :href="prevLink.href"
@@ -22,7 +23,8 @@
22
23
  />
23
24
  </slot>
24
25
  <div class="pagination--spacer flex-1"/>
25
- <slot v-if="firstLink.i !== currentLink.i"
26
+ <slot
27
+ v-if="firstLink.i !== currentLink.i"
26
28
  name="link"
27
29
  :i="0"
28
30
  :href="firstLink.href"
@@ -39,14 +41,18 @@
39
41
  {{ firstLink.i }}
40
42
  </a>
41
43
  </slot>
42
- <div v-if="prevLink.i - extraPages > firstLink.i" class="pagination--page-fill">
44
+ <div
45
+ v-if="prevLink.i - extraPages > firstLink.i"
46
+ class="pagination--page-fill"
47
+ >
43
48
  ...
44
49
  </div>
45
50
  <template
46
51
  v-for="entry in extraPagesPrev"
47
52
  :key="entry.i"
48
53
  >
49
- <slot name="link"
54
+ <slot
55
+ name="link"
50
56
  :class="`pagination--link ${pageClasses}`"
51
57
  :i="entry.i"
52
58
  :href="entry.href"
@@ -61,14 +67,16 @@
61
67
  </a>
62
68
  </slot>
63
69
  </template>
64
- <slot name="current"
70
+ <slot
71
+ name="current"
65
72
  :class="`pagination--link ${currentPageClasses}`"
66
73
  tabindex="0"
67
74
  :i="currentLink.i"
68
75
  :aria-label="t('pagination.aria.current-page', { count: currentLink.i })"
69
76
  :aria_current="true"
70
77
  >
71
- <div :class="`pagination--current-page a ${currentPageClasses}`"
78
+ <div
79
+ :class="`pagination--current-page a ${currentPageClasses}`"
72
80
  tabindex="0"
73
81
  :aria-label="t('pagination.aria.current-page', { count: currentLink.i })"
74
82
  aria-current="true"
@@ -81,7 +89,8 @@
81
89
  v-for="entry in extraPagesNext"
82
90
  :key="entry.i"
83
91
  >
84
- <slot name="link"
92
+ <slot
93
+ name="link"
85
94
  :class="`pagination--link ${pageClasses}`"
86
95
  :i="entry.i"
87
96
  :href="entry.href"
@@ -96,10 +105,15 @@
96
105
  </a>
97
106
  </slot>
98
107
  </template>
99
- <div v-if="nextLink.i + extraPages < total" class="pagination--page-fill" aria-hidden="true">
108
+ <div
109
+ v-if="nextLink.i + extraPages < total"
110
+ class="pagination--page-fill"
111
+ aria-hidden="true"
112
+ >
100
113
  ...
101
114
  </div>
102
- <slot v-if="lastLink.i !== currentLink.i"
115
+ <slot
116
+ v-if="lastLink.i !== currentLink.i"
103
117
  name="link"
104
118
  :class="`pagination--link ${pageClasses}`"
105
119
  :i="lastLink.i"
@@ -140,7 +154,6 @@
140
154
  import { computed, useAttrs, watch } from "vue";
141
155
  import { useInjectedI18n } from "../../composables/useInjectedI18n.js";
142
156
  import { twMerge } from "../../utils/twMerge.js";
143
- import {} from "../shared/props.js";
144
157
  const t = useInjectedI18n();
145
158
  const commonClasses = `
146
159
  block
@@ -163,7 +176,7 @@ const currentPageClasses = `
163
176
  scale-125
164
177
  `;
165
178
  defineOptions({
166
- name: "lib-pagination",
179
+ name: "LibPagination",
167
180
  inheritAttrs: false
168
181
  });
169
182
  const props = defineProps({
@@ -211,6 +224,6 @@ const extraPagesNext = computed(() => [...Array(props.extraPages + 1)].map((_, i
211
224
 
212
225
  <script>
213
226
  export default {
214
- name: "lib-pagination"
227
+ name: "LibPagination"
215
228
  };
216
229
  </script>
@@ -1,5 +1,5 @@
1
1
  import { type HTMLAttributes } from "vue";
2
- import { type TailwindClassProp } from "../shared/props.js.js";
2
+ import type { TailwindClassProp } from "../shared/props.js.js";
3
3
  /**
4
4
  * Pagination component.
5
5
  *
@@ -10,7 +10,7 @@ import { type TailwindClassProp } from "../shared/props.js.js";
10
10
  * </template>
11
11
  * ```
12
12
  */
13
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
13
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
14
14
  customRoute: (route: string, i: number) => {
15
15
  i: number;
16
16
  href: string;
@@ -0,0 +1,14 @@
1
+ import type { Theme } from "metamorphosis";
2
+ import type { BaseInteractiveProps, LinkableByIdProps } from "../shared/props.js.js";
3
+ declare const _default: import("vue").DefineComponent<LinkableByIdProps & BaseInteractiveProps & {
4
+ theme?: Theme;
5
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkableByIdProps & BaseInteractiveProps & {
6
+ theme?: Theme;
7
+ }> & Readonly<{}>, {
8
+ theme: Theme;
9
+ disabled: boolean;
10
+ readonly: boolean;
11
+ border: boolean;
12
+ unstyle: boolean;
13
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ export default _default;
@@ -2,7 +2,10 @@
2
2
  <div class="theme-palette flex h-full flex-col items-center justify-center ">
3
3
  <div class="theme-palette--container mx-auto ">
4
4
  <div class="grid grid-cols-11 gap-2 gap-y-10 px-10">
5
- <template v-for="color, i in colors" :key="color">
5
+ <template
6
+ v-for="color, i in colors"
7
+ :key="color"
8
+ >
6
9
  <div
7
10
  :style="`background-color: var(${color});`"
8
11
  :class="`theme-palette--item h-10 rounded-sm flex items-center justify-center text-fg dark:text-bg`"
@@ -23,20 +26,18 @@
23
26
  </template>
24
27
 
25
28
  <script>
26
- export default { name: "lib-palette" };
29
+ export default { name: "LibPalette" };
27
30
  </script>
28
31
 
29
32
  <script setup>
30
33
  import { keys } from "@alanscodelog/utils/keys";
31
- import {} from "metamorphosis";
32
- import {} from "../shared/props.js";
33
34
  const props = defineProps({
34
35
  id: { type: String, required: false },
35
36
  disabled: { type: Boolean, required: false, default: false },
36
37
  readonly: { type: Boolean, required: false, default: false },
37
38
  border: { type: Boolean, required: false, default: true },
38
39
  unstyle: { type: Boolean, required: false, default: false },
39
- theme: { type: Object, required: true, default: () => ({}) }
40
+ theme: { type: Object, required: false, default: () => ({}) }
40
41
  });
41
42
  const exclude = ["--color-bg", "--color-fg"];
42
43
  const colors = keys(props.theme.css).filter((key) => key.startsWith("--color") && !exclude.includes(key));
@@ -1,9 +1,9 @@
1
- import { type Theme } from "metamorphosis";
2
- import { type BaseInteractiveProps, type LinkableByIdProps } from "../shared/props.js.js";
1
+ import type { Theme } from "metamorphosis";
2
+ import type { BaseInteractiveProps, LinkableByIdProps } from "../shared/props.js.js";
3
3
  declare const _default: import("vue").DefineComponent<LinkableByIdProps & BaseInteractiveProps & {
4
- theme: Theme;
5
- }, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkableByIdProps & BaseInteractiveProps & {
6
- theme: Theme;
4
+ theme?: Theme;
5
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkableByIdProps & BaseInteractiveProps & {
6
+ theme?: Theme;
7
7
  }> & Readonly<{}>, {
8
8
  theme: Theme;
9
9
  disabled: boolean;
@@ -0,0 +1,46 @@
1
+ import { type HTMLAttributes } from "vue";
2
+ import { type LinkableByIdProps, type TailwindClassProp, type PopupProps } from "../shared/props.js.js";
3
+ import type { IPopupReference } from "../../types/index.js.js";
4
+ type RealProps = LinkableByIdProps & PopupProps;
5
+ interface Props extends
6
+ /** @vue-ignore */
7
+ Partial<Omit<HTMLAttributes, "class"> & TailwindClassProp>, RealProps {
8
+ }
9
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props & {
10
+ modelValue?: boolean;
11
+ }, {
12
+ recompute: (force?: boolean) => void;
13
+ setReference: (el: IPopupReference | null) => void;
14
+ setBackground: (el: IPopupReference | null) => void;
15
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
+ "update:modelValue": (value: boolean) => any;
17
+ } & {
18
+ close: () => any;
19
+ }, string, import("vue").PublicProps, Readonly<Props & {
20
+ modelValue?: boolean;
21
+ }> & Readonly<{
22
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
23
+ onClose?: (() => any) | undefined;
24
+ }>, {
25
+ canClose: boolean;
26
+ useDialogForBackdrop: false;
27
+ useBackdrop: boolean;
28
+ preferredHorizontal: ("center" | "right" | "left" | "either" | "center-screen" | "right-most" | "left-most" | "center-most")[] | import("../../main.lib.js.js").PopupPositioner;
29
+ preferredVertical: ("top" | "bottom" | "center" | "either" | "center-screen" | "top-most" | "bottom-most" | "center-most")[] | import("../../main.lib.js.js").PopupPositioner;
30
+ avoidRepositioning: boolean;
31
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
32
+ button?: (props: {
33
+ extractEl: (_: any) => any;
34
+ }) => any;
35
+ } & {
36
+ popup?: (props: {
37
+ position: any;
38
+ extractEl: (_: any) => any;
39
+ }) => any;
40
+ }>;
41
+ export default _default;
42
+ type __VLS_WithSlots<T, S> = T & {
43
+ new (): {
44
+ $slots: S;
45
+ };
46
+ };
@@ -1,5 +1,6 @@
1
1
  <template>
2
- <slot name="button"
2
+ <slot
3
+ name="button"
3
4
  :extract-el="(_) => buttonEl = _"
4
5
  />
5
6
  <!-- <Transition> -->
@@ -26,7 +27,8 @@
26
27
  ref="dialogEl"
27
28
  @mousedown.self="handleMouseup"
28
29
  >
29
- <div v-if="modelValue"
30
+ <div
31
+ v-if="modelValue"
30
32
  :class="`popup z-100 fixed ${props.avoidRepositioning ? 'transition-[top,left]' : ''}`"
31
33
  :style="`
32
34
  top:${pos.y}px;
@@ -46,7 +48,7 @@
46
48
  </template>
47
49
 
48
50
  <script setup>
49
- import { onMounted, nextTick, ref, useAttrs, watch } from "vue";
51
+ import { onMounted, ref, useAttrs, watch } from "vue";
50
52
  import { getFallbackId } from "../shared/props.js";
51
53
  import { twMerge } from "../../utils/twMerge.js";
52
54
  import { castType } from "@alanscodelog/utils/castType";
@@ -64,7 +66,7 @@ const props = defineProps({
64
66
  });
65
67
  const $attrs = useAttrs();
66
68
  defineOptions({
67
- name: "lib-popup",
69
+ name: "LibPopup",
68
70
  inheritAttrs: false
69
71
  });
70
72
  const emit = defineEmits(["close"]);
@@ -1,6 +1,6 @@
1
1
  import { type HTMLAttributes } from "vue";
2
2
  import { type LinkableByIdProps, type TailwindClassProp, type PopupProps } from "../shared/props.js.js";
3
- import type { IPopupReference, PopupPositioner } from "../../types/index.js.js";
3
+ import type { IPopupReference } from "../../types/index.js.js";
4
4
  type RealProps = LinkableByIdProps & PopupProps;
5
5
  interface Props extends
6
6
  /** @vue-ignore */
@@ -25,8 +25,8 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props & {
25
25
  canClose: boolean;
26
26
  useDialogForBackdrop: false;
27
27
  useBackdrop: boolean;
28
- preferredHorizontal: ("center" | "right" | "left" | "either" | "center-screen" | "right-most" | "left-most" | "center-most")[] | PopupPositioner;
29
- preferredVertical: ("top" | "bottom" | "center" | "either" | "center-screen" | "top-most" | "bottom-most" | "center-most")[] | PopupPositioner;
28
+ preferredHorizontal: ("center" | "right" | "left" | "either" | "center-screen" | "right-most" | "left-most" | "center-most")[] | import("../../main.lib.js.js").PopupPositioner;
29
+ preferredVertical: ("top" | "bottom" | "center" | "either" | "center-screen" | "top-most" | "bottom-most" | "center-most")[] | import("../../main.lib.js.js").PopupPositioner;
30
30
  avoidRepositioning: boolean;
31
31
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
32
32
  button?: (props: {
@@ -0,0 +1,41 @@
1
+ import { type BaseInteractiveProps, type LabelProps, type LinkableByIdProps, type TailwindClassProp } from "../shared/props.js.js";
2
+ import type { HTMLAttributes } from "vue";
3
+ type RealProps = LinkableByIdProps & BaseInteractiveProps & LabelProps & {
4
+ progress: number;
5
+ /** Will auto hide after this given time if progress is 100% or more or less than 0% until progress is set to something else. Disabled (-1) by default. */
6
+ autohideOnComplete?: number;
7
+ /**
8
+ * Do not actually hide the element, just leave an unstyled div,
9
+ * so the whole layout doesn't change on completion when autohideOnComplete is set.
10
+ */
11
+ keepSpaceWhenHidden?: boolean;
12
+ /**
13
+ * By default the progress bar is visually clamped to 0-100, even if the value might be something else.
14
+ * You can change what it's clamped to here, to for example,
15
+ * show at least a small sliver of the progress bar when it's still 0.
16
+ */
17
+ clamp?: [start: number, end: number];
18
+ };
19
+ interface Props extends
20
+ /** @vue-ignore */
21
+ Partial<Omit<HTMLAttributes, "class"> & TailwindClassProp>, RealProps {
22
+ }
23
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
24
+ disabled: boolean;
25
+ readonly: boolean;
26
+ border: boolean;
27
+ unstyle: boolean;
28
+ autohideOnComplete: number;
29
+ keepSpaceWhenHidden: boolean;
30
+ clamp: [start: number, end: number];
31
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
32
+ default?: (props: {}) => any;
33
+ } & {
34
+ default?: (props: {}) => any;
35
+ }>;
36
+ export default _default;
37
+ type __VLS_WithSlots<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
40
+ };
41
+ };
@@ -1,6 +1,7 @@
1
1
  <template>
2
2
  <Transition>
3
- <div v-if="!hide"
3
+ <div
4
+ v-if="!hide"
4
5
  :id="id ?? fallbackId"
5
6
  :class="twMerge(`
6
7
  progress-bar
@@ -52,7 +53,8 @@
52
53
  <span class="before:content-vertical-holder"/>
53
54
  <Transition>
54
55
  <slot>
55
- <label v-if="!psuedoHide"
56
+ <label
57
+ v-if="!psuedoHide"
56
58
  :for="id"
57
59
  class="
58
60
  text-bg
@@ -100,7 +102,7 @@ import { twMerge } from "../../utils/twMerge.js";
100
102
  import { getFallbackId } from "../shared/props.js";
101
103
  const clampVal = (n, min, max) => Math.min(Math.max(n, min), max);
102
104
  defineOptions({
103
- name: "lib-progress-bar",
105
+ name: "LibProgressBar",
104
106
  inheritAttrs: false
105
107
  });
106
108
  const fallbackId = getFallbackId();
@@ -1,26 +1,26 @@
1
- import { type HTMLAttributes } from "vue";
2
1
  import { type BaseInteractiveProps, type LabelProps, type LinkableByIdProps, type TailwindClassProp } from "../shared/props.js.js";
2
+ import type { HTMLAttributes } from "vue";
3
3
  type RealProps = LinkableByIdProps & BaseInteractiveProps & LabelProps & {
4
4
  progress: number;
5
5
  /** Will auto hide after this given time if progress is 100% or more or less than 0% until progress is set to something else. Disabled (-1) by default. */
6
6
  autohideOnComplete?: number;
7
7
  /**
8
- * Do not actually hide the element, just leave an unstyled div,
9
- * so the whole layout doesn't change on completion when autohideOnComplete is set.
10
- */
8
+ * Do not actually hide the element, just leave an unstyled div,
9
+ * so the whole layout doesn't change on completion when autohideOnComplete is set.
10
+ */
11
11
  keepSpaceWhenHidden?: boolean;
12
12
  /**
13
- * By default the progress bar is visually clamped to 0-100, even if the value might be something else.
14
- * You can change what it's clamped to here, to for example,
15
- * show at least a small sliver of the progress bar when it's still 0.
16
- */
13
+ * By default the progress bar is visually clamped to 0-100, even if the value might be something else.
14
+ * You can change what it's clamped to here, to for example,
15
+ * show at least a small sliver of the progress bar when it's still 0.
16
+ */
17
17
  clamp?: [start: number, end: number];
18
18
  };
19
19
  interface Props extends
20
20
  /** @vue-ignore */
21
21
  Partial<Omit<HTMLAttributes, "class"> & TailwindClassProp>, RealProps {
22
22
  }
23
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
23
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
24
24
  disabled: boolean;
25
25
  readonly: boolean;
26
26
  border: boolean;
@@ -0,0 +1,77 @@
1
+ import { type HTMLAttributes } from "vue";
2
+ import { type BaseInteractiveProps, type LabelProps, type LinkableByIdProps, type TailwindClassProp } from "../shared/props.js.js";
3
+ type RealProps = LinkableByIdProps & BaseInteractiveProps & LabelProps & {
4
+ border?: boolean;
5
+ /** A value to display while recording, if none given the i18n `recorder.recording` key is used. */
6
+ recordingValue?: string;
7
+ /** A title to display on the input div while recording. Is also used as the aria-description. */
8
+ recordingTitle?: string;
9
+ /**
10
+ * The recorder object is a series of event listeners to attach to the input div while recording is started. If you need to bind directly to the element, see the `binders` prop.
11
+ *
12
+ * The listeners are then unbound when recording is set to false again.
13
+ *
14
+ * Note that the component does not handle the setting of `recording` (unless the component is disabled), `modelValue`, or `recordingValue` at all and has no mechanism for cancelling a recording. It is left to the recorder listeners and any `recorder:*` handlers to determine what to do.
15
+ */
16
+ recorder?: undefined | Record<string, any>;
17
+ /** This provides a way to manually attach/remove event listeners to/from the element. It is an alternative to the `recorder` prop, see it for more details. Both cannot be specified at the same time. */
18
+ binders?: undefined | {
19
+ bind: (el: HTMLElement) => void;
20
+ unbind: (el: HTMLElement) => void;
21
+ };
22
+ /** The id of the element. If not provided, the id will be generated automatically. */
23
+ id?: string;
24
+ };
25
+ interface Props extends
26
+ /** @vue-ignore */
27
+ Partial<Omit<HTMLAttributes, "class"> & TailwindClassProp>, RealProps {
28
+ }
29
+ declare const _default: import("vue").DefineComponent<Props & {
30
+ /**
31
+ * Puts the element into recording mode if true. See {@link props.recorder}.
32
+ */
33
+ recording?: boolean;
34
+ /** The final value of the recorder. For intermediate values while recording, pass a recorder and set an appropriate recording value. */
35
+ modelValue: string;
36
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
37
+ "update:modelValue": (value: string) => any;
38
+ "update:recording": (value: boolean) => any;
39
+ } & {
40
+ "recorder:blur": ($event: FocusEvent) => any;
41
+ "recorder:click": (args_0: {
42
+ event: MouseEvent | KeyboardEvent;
43
+ indicator: HTMLElement;
44
+ input: HTMLInputElement;
45
+ }) => any;
46
+ "focus:parent": () => any;
47
+ }, string, import("vue").PublicProps, Readonly<Props & {
48
+ /**
49
+ * Puts the element into recording mode if true. See {@link props.recorder}.
50
+ */
51
+ recording?: boolean;
52
+ /** The final value of the recorder. For intermediate values while recording, pass a recorder and set an appropriate recording value. */
53
+ modelValue: string;
54
+ }> & Readonly<{
55
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
56
+ "onUpdate:recording"?: ((value: boolean) => any) | undefined;
57
+ "onRecorder:blur"?: (($event: FocusEvent) => any) | undefined;
58
+ "onRecorder:click"?: ((args_0: {
59
+ event: MouseEvent | KeyboardEvent;
60
+ indicator: HTMLElement;
61
+ input: HTMLInputElement;
62
+ }) => any) | undefined;
63
+ "onFocus:parent"?: (() => any) | undefined;
64
+ }>, {
65
+ id: string;
66
+ disabled: boolean;
67
+ readonly: boolean;
68
+ border: boolean;
69
+ unstyle: boolean;
70
+ recordingTitle: string;
71
+ recorder: Record<string, any>;
72
+ binders: {
73
+ bind: (el: HTMLElement) => void;
74
+ unbind: (el: HTMLElement) => void;
75
+ };
76
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
77
+ export default _default;
@@ -78,7 +78,7 @@ import { useInjectedI18n } from "../../composables/useInjectedI18n.js";
78
78
  import { twMerge } from "../../utils/twMerge.js";
79
79
  import { getFallbackId } from "../shared/props.js";
80
80
  defineOptions({
81
- name: "lib-recorder",
81
+ name: "LibRecorder",
82
82
  inheritAttrs: false
83
83
  });
84
84
  const t = useInjectedI18n();
@@ -14,7 +14,7 @@ type RealProps = LinkableByIdProps & BaseInteractiveProps & LabelProps & {
14
14
  * Note that the component does not handle the setting of `recording` (unless the component is disabled), `modelValue`, or `recordingValue` at all and has no mechanism for cancelling a recording. It is left to the recorder listeners and any `recorder:*` handlers to determine what to do.
15
15
  */
16
16
  recorder?: undefined | Record<string, any>;
17
- /** This provides a way to manually attach/remove event listeners to/from the element. It is an alternative to the `recorder` prop, see it for more details. Both cannot be specified at the same time.*/
17
+ /** This provides a way to manually attach/remove event listeners to/from the element. It is an alternative to the `recorder` prop, see it for more details. Both cannot be specified at the same time. */
18
18
  binders?: undefined | {
19
19
  bind: (el: HTMLElement) => void;
20
20
  unbind: (el: HTMLElement) => void;
@@ -33,7 +33,7 @@ declare const _default: import("vue").DefineComponent<Props & {
33
33
  recording?: boolean;
34
34
  /** The final value of the recorder. For intermediate values while recording, pass a recorder and set an appropriate recording value. */
35
35
  modelValue: string;
36
- }, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
36
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
37
37
  "update:modelValue": (value: string) => any;
38
38
  "update:recording": (value: boolean) => any;
39
39
  } & {
@@ -0,0 +1,41 @@
1
+ import type { Theme } from "metamorphosis";
2
+ import { NotificationHandler } from "../../helpers/NotificationHandler.js.js";
3
+ type __VLS_Props = {
4
+ theme?: Theme;
5
+ outline?: boolean;
6
+ forceOutline?: boolean;
7
+ testWrapperMode?: boolean;
8
+ id?: string;
9
+ /** You can set a ref to the root element by passing :getRef="_ => el = _" */
10
+ getRef?: (el: HTMLElement | null) => void;
11
+ /** True by default, should be passed import.meta.client if using nuxt, or false when running server side. */
12
+ isClientSide?: boolean;
13
+ useBuiltinTranslations?: boolean;
14
+ useNotifications?: boolean;
15
+ notificationHandler?: NotificationHandler;
16
+ };
17
+ declare var __VLS_9: {};
18
+ type __VLS_Slots = {} & {
19
+ default?: (props: typeof __VLS_9) => any;
20
+ };
21
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
22
+ darkMode: import("../../composables/useDarkMode.js.js").DarkModeState & import("../../composables/useDarkMode.js.js").DarkModeCommands;
23
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
24
+ theme: Theme;
25
+ id: string;
26
+ useBuiltinTranslations: boolean;
27
+ isClientSide: boolean;
28
+ outline: boolean;
29
+ forceOutline: boolean;
30
+ testWrapperMode: boolean;
31
+ getRef: (el: HTMLElement | null) => void;
32
+ useNotifications: boolean;
33
+ notificationHandler: NotificationHandler;
34
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
36
+ export default _default;
37
+ type __VLS_WithSlots<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
40
+ };
41
+ };