@wirekyt/react 0.0.1 → 0.0.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.
- package/dist/accordion.cjs +209 -0
- package/dist/accordion.d.cts +69 -0
- package/dist/accordion.d.ts +69 -0
- package/dist/accordion.js +184 -0
- package/dist/angle-slider.cjs +193 -0
- package/dist/angle-slider.d.cts +73 -0
- package/dist/angle-slider.d.ts +73 -0
- package/dist/angle-slider.js +168 -0
- package/dist/avatar.cjs +120 -0
- package/dist/avatar.d.cts +48 -0
- package/dist/avatar.d.ts +48 -0
- package/dist/avatar.js +100 -0
- package/dist/carousel.cjs +246 -0
- package/dist/carousel.d.cts +94 -0
- package/dist/carousel.d.ts +94 -0
- package/dist/carousel.js +223 -0
- package/dist/checkbox.cjs +284 -0
- package/dist/checkbox.d.cts +115 -0
- package/dist/checkbox.d.ts +115 -0
- package/dist/checkbox.js +263 -0
- package/dist/client-only.cjs +12 -0
- package/dist/client-only.d.cts +8 -0
- package/dist/client-only.d.ts +8 -0
- package/dist/client-only.js +11 -0
- package/dist/clipboard.cjs +174 -0
- package/dist/clipboard.d.cts +70 -0
- package/dist/clipboard.d.ts +70 -0
- package/dist/clipboard.js +150 -0
- package/dist/collapsible-B62i_oPJ.cjs +185 -0
- package/dist/collapsible-CiTNjCNf.js +131 -0
- package/dist/collapsible.cjs +23 -0
- package/dist/collapsible.d.cts +56 -0
- package/dist/collapsible.d.ts +56 -0
- package/dist/collapsible.js +2 -0
- package/dist/collection-BFjWNdUS.cjs +223 -0
- package/dist/collection-BJOl6a4H.js +180 -0
- package/dist/collection.cjs +9 -0
- package/dist/collection.d.cts +2 -0
- package/dist/collection.d.ts +2 -0
- package/dist/collection.js +2 -0
- package/dist/color-picker.cjs +575 -0
- package/dist/color-picker.d.cts +179 -0
- package/dist/color-picker.d.ts +179 -0
- package/dist/color-picker.js +530 -0
- package/dist/combobox.cjs +390 -0
- package/dist/combobox.d.cts +128 -0
- package/dist/combobox.d.ts +128 -0
- package/dist/combobox.js +359 -0
- package/dist/core-CBFAnVIP.cjs +375 -0
- package/dist/core-CEYOEcVI.js +357 -0
- package/dist/date-input.cjs +217 -0
- package/dist/date-input.d.cts +69 -0
- package/dist/date-input.d.ts +69 -0
- package/dist/date-input.js +193 -0
- package/dist/date-picker.cjs +588 -0
- package/dist/date-picker.d.cts +190 -0
- package/dist/date-picker.d.ts +190 -0
- package/dist/date-picker.js +543 -0
- package/dist/dialog.cjs +199 -0
- package/dist/dialog.d.cts +78 -0
- package/dist/dialog.d.ts +78 -0
- package/dist/dialog.js +174 -0
- package/dist/download-trigger.cjs +53 -0
- package/dist/download-trigger.d.cts +22 -0
- package/dist/download-trigger.d.ts +22 -0
- package/dist/download-trigger.js +51 -0
- package/dist/drawer.cjs +296 -0
- package/dist/drawer.d.cts +115 -0
- package/dist/drawer.d.ts +115 -0
- package/dist/drawer.js +264 -0
- package/dist/editable.cjs +228 -0
- package/dist/editable.d.cts +79 -0
- package/dist/editable.d.ts +79 -0
- package/dist/editable.js +202 -0
- package/dist/environment-B6IaCAuQ.cjs +59 -0
- package/dist/environment-BTgKwk5E.js +42 -0
- package/dist/factory--dkoVnFK.d.cts +14 -0
- package/dist/factory--dkoVnFK.d.ts +14 -0
- package/dist/factory-CFFufs5e.cjs +59 -0
- package/dist/factory-Nm__-4xn.js +48 -0
- package/dist/field-Cy1E02DH.js +349 -0
- package/dist/field-x8H5uXB9.cjs +438 -0
- package/dist/field.cjs +22 -0
- package/dist/field.d.cts +129 -0
- package/dist/field.d.ts +129 -0
- package/dist/field.js +2 -0
- package/dist/fieldset-DWZXj1t5.cjs +232 -0
- package/dist/fieldset-fx44GCtM.js +178 -0
- package/dist/fieldset.cjs +18 -0
- package/dist/fieldset.d.cts +71 -0
- package/dist/fieldset.d.ts +71 -0
- package/dist/fieldset.js +3 -0
- package/dist/file-upload.cjs +328 -0
- package/dist/file-upload.d.cts +101 -0
- package/dist/file-upload.d.ts +101 -0
- package/dist/file-upload.js +298 -0
- package/dist/floating-panel.cjs +271 -0
- package/dist/floating-panel.d.cts +98 -0
- package/dist/floating-panel.d.ts +98 -0
- package/dist/floating-panel.js +242 -0
- package/dist/format.cjs +64 -0
- package/dist/format.d.cts +44 -0
- package/dist/format.d.ts +44 -0
- package/dist/format.js +54 -0
- package/dist/frame.cjs +85 -0
- package/dist/frame.d.cts +12 -0
- package/dist/frame.d.ts +12 -0
- package/dist/frame.js +84 -0
- package/dist/highlight.cjs +29 -0
- package/dist/highlight.d.cts +13 -0
- package/dist/highlight.d.ts +13 -0
- package/dist/highlight.js +27 -0
- package/dist/hover-card.cjs +154 -0
- package/dist/hover-card.d.cts +68 -0
- package/dist/hover-card.d.ts +68 -0
- package/dist/hover-card.js +131 -0
- package/dist/image-cropper.cjs +0 -0
- package/dist/image-cropper.d.cts +1 -0
- package/dist/image-cropper.d.ts +1 -0
- package/dist/image-cropper.js +0 -0
- package/dist/index-3Al0R5bH.d.cts +73 -0
- package/dist/index-B7wAg5Wf.d.ts +146 -0
- package/dist/index-BAn8qiCM.d.ts +73 -0
- package/dist/index-BSX88T_g.d.cts +146 -0
- package/dist/index-CQAbOgb7.d.cts +23 -0
- package/dist/index-CUyHBXOI.d.cts +33 -0
- package/dist/index-CW-Aj6aT.d.ts +95 -0
- package/dist/index-CxWYgVJk.d.ts +23 -0
- package/dist/index-D7JH9e9E.d.ts +33 -0
- package/dist/index-DTLK6Fuh.d.cts +95 -0
- package/dist/index-srZfUQNt.d.cts +20 -0
- package/dist/index-srZfUQNt.d.ts +20 -0
- package/dist/index.cjs +45 -0
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -0
- package/dist/json-tree-view.cjs +244 -0
- package/dist/json-tree-view.d.cts +45 -0
- package/dist/json-tree-view.d.ts +45 -0
- package/dist/json-tree-view.js +234 -0
- package/dist/listbox.cjs +290 -0
- package/dist/listbox.d.cts +109 -0
- package/dist/listbox.d.ts +109 -0
- package/dist/listbox.js +264 -0
- package/dist/marquee.cjs +164 -0
- package/dist/marquee.d.cts +60 -0
- package/dist/marquee.d.ts +60 -0
- package/dist/marquee.js +142 -0
- package/dist/menu.cjs +506 -0
- package/dist/menu.d.cts +162 -0
- package/dist/menu.d.ts +162 -0
- package/dist/menu.js +469 -0
- package/dist/navigation-menu.cjs +331 -0
- package/dist/navigation-menu.d.cts +89 -0
- package/dist/navigation-menu.d.ts +89 -0
- package/dist/navigation-menu.js +303 -0
- package/dist/number-input.cjs +222 -0
- package/dist/number-input.d.cts +73 -0
- package/dist/number-input.d.ts +73 -0
- package/dist/number-input.js +197 -0
- package/dist/pagination.cjs +183 -0
- package/dist/pagination.d.cts +68 -0
- package/dist/pagination.d.ts +68 -0
- package/dist/pagination.js +159 -0
- package/dist/password-input.cjs +179 -0
- package/dist/password-input.d.cts +65 -0
- package/dist/password-input.d.ts +65 -0
- package/dist/password-input.js +156 -0
- package/dist/pin-input.cjs +180 -0
- package/dist/pin-input.d.cts +58 -0
- package/dist/pin-input.d.ts +58 -0
- package/dist/pin-input.js +158 -0
- package/dist/popover.cjs +222 -0
- package/dist/popover.d.cts +93 -0
- package/dist/popover.d.ts +93 -0
- package/dist/popover.js +194 -0
- package/dist/portal-6_XzBXiA.cjs +33 -0
- package/dist/portal-QYL_2wB0.js +28 -0
- package/dist/portal.cjs +3 -0
- package/dist/portal.d.cts +9 -0
- package/dist/portal.d.ts +9 -0
- package/dist/portal.js +2 -0
- package/dist/presence-BOs-D6Cv.cjs +96 -0
- package/dist/presence-I8Rceflw.js +65 -0
- package/dist/presence.cjs +7 -0
- package/dist/presence.d.cts +2 -0
- package/dist/presence.d.ts +2 -0
- package/dist/presence.js +2 -0
- package/dist/progress.cjs +206 -0
- package/dist/progress.d.cts +78 -0
- package/dist/progress.d.ts +78 -0
- package/dist/progress.js +180 -0
- package/dist/providers-DrJEJcrE.cjs +128 -0
- package/dist/providers-FEHnDTvb.js +87 -0
- package/dist/qr-code.cjs +154 -0
- package/dist/qr-code.d.cts +58 -0
- package/dist/qr-code.d.ts +58 -0
- package/dist/qr-code.js +132 -0
- package/dist/radio-group.cjs +222 -0
- package/dist/radio-group.d.cts +78 -0
- package/dist/radio-group.d.ts +78 -0
- package/dist/radio-group.js +196 -0
- package/dist/rating-group.cjs +186 -0
- package/dist/rating-group.d.cts +68 -0
- package/dist/rating-group.d.ts +68 -0
- package/dist/rating-group.js +162 -0
- package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
- package/dist/rolldown-runtime-DakpK96I.cjs +43 -0
- package/dist/scroll-area.cjs +166 -0
- package/dist/scroll-area.d.cts +67 -0
- package/dist/scroll-area.d.ts +67 -0
- package/dist/scroll-area.js +143 -0
- package/dist/segment-group.cjs +215 -0
- package/dist/segment-group.d.cts +81 -0
- package/dist/segment-group.d.ts +81 -0
- package/dist/segment-group.js +194 -0
- package/dist/select.cjs +395 -0
- package/dist/select.d.cts +132 -0
- package/dist/select.d.ts +132 -0
- package/dist/select.js +358 -0
- package/dist/signature-pad.cjs +197 -0
- package/dist/signature-pad.d.cts +68 -0
- package/dist/signature-pad.d.ts +68 -0
- package/dist/signature-pad.js +173 -0
- package/dist/slider.cjs +260 -0
- package/dist/slider.d.cts +88 -0
- package/dist/slider.d.ts +88 -0
- package/dist/slider.js +232 -0
- package/dist/steps.cjs +271 -0
- package/dist/steps.d.cts +104 -0
- package/dist/steps.d.ts +104 -0
- package/dist/steps.js +241 -0
- package/dist/swap.cjs +134 -0
- package/dist/swap.d.cts +49 -0
- package/dist/swap.d.ts +49 -0
- package/dist/swap.js +121 -0
- package/dist/switch.cjs +166 -0
- package/dist/switch.d.cts +58 -0
- package/dist/switch.d.ts +58 -0
- package/dist/switch.js +144 -0
- package/dist/tabs.cjs +177 -0
- package/dist/tabs.d.cts +59 -0
- package/dist/tabs.d.ts +59 -0
- package/dist/tabs.js +155 -0
- package/dist/tags-input.cjs +298 -0
- package/dist/tags-input.d.cts +98 -0
- package/dist/tags-input.d.ts +98 -0
- package/dist/tags-input.js +268 -0
- package/dist/timer.cjs +167 -0
- package/dist/timer.d.cts +63 -0
- package/dist/timer.d.ts +63 -0
- package/dist/timer.js +144 -0
- package/dist/toast.cjs +154 -0
- package/dist/toast.d.cts +59 -0
- package/dist/toast.d.ts +59 -0
- package/dist/toast.js +132 -0
- package/dist/toggle-group.cjs +118 -0
- package/dist/toggle-group.d.cts +43 -0
- package/dist/toggle-group.d.ts +43 -0
- package/dist/toggle-group.js +99 -0
- package/dist/toggle.cjs +85 -0
- package/dist/toggle.d.cts +38 -0
- package/dist/toggle.d.ts +38 -0
- package/dist/toggle.js +71 -0
- package/dist/tooltip.cjs +154 -0
- package/dist/tooltip.d.cts +68 -0
- package/dist/tooltip.d.ts +68 -0
- package/dist/tooltip.js +131 -0
- package/dist/tour.cjs +290 -0
- package/dist/tour.d.cts +112 -0
- package/dist/tour.d.ts +112 -0
- package/dist/tour.js +246 -0
- package/dist/tree-view-CNTEWXlu.js +339 -0
- package/dist/tree-view-CU4Hl5X1.cjs +484 -0
- package/dist/tree-view.cjs +41 -0
- package/dist/tree-view.d.cts +3 -0
- package/dist/tree-view.d.ts +3 -0
- package/dist/tree-view.js +3 -0
- package/dist/types-BQQfrr86.d.cts +6 -0
- package/dist/types-BQQfrr86.d.ts +6 -0
- package/dist/use-context-38DKWHsx.cjs +20 -0
- package/dist/use-context-CITa6pn9.js +10 -0
- package/dist/utils-Cfwm9WW1.cjs +166 -0
- package/dist/utils-CqLmqrgj.js +107 -0
- package/package.json +274 -6
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { a as PropTypes } from "./index-CQAbOgb7.cjs";
|
|
2
|
+
import { r as Optional } from "./types-BQQfrr86.cjs";
|
|
3
|
+
import { r as PolymorphicProps, t as HTMLProps } from "./factory--dkoVnFK.cjs";
|
|
4
|
+
import { ReactNode } from "react";
|
|
5
|
+
import * as avatar from "@wirekyt/dom/machines/avatar";
|
|
6
|
+
import { StatusChangeDetails, StatusChangeDetails as AvatarStatusChangeDetails, anatomy as avatarAnatomy } from "@wirekyt/dom/machines/avatar";
|
|
7
|
+
//#region src/components/avatar/use.d.ts
|
|
8
|
+
interface UseAvatarProps extends Optional<Omit<avatar.Props, "dir" | "getRootNode">, "id"> {}
|
|
9
|
+
interface UseAvatarReturn extends avatar.Api<PropTypes> {}
|
|
10
|
+
declare const useAvatar: (props?: UseAvatarProps) => UseAvatarReturn;
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/components/avatar/use-context.d.ts
|
|
13
|
+
interface UseAvatarContext extends UseAvatarReturn {}
|
|
14
|
+
declare const AvatarProvider: import("react").Provider<UseAvatarContext>, useAvatarContext: () => UseAvatarContext;
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/components/avatar/context.d.ts
|
|
17
|
+
interface AvatarContextProps {
|
|
18
|
+
children: (context: UseAvatarContext) => ReactNode;
|
|
19
|
+
}
|
|
20
|
+
declare const AvatarContext: (props: AvatarContextProps) => ReactNode;
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/components/avatar/fallback.d.ts
|
|
23
|
+
interface AvatarFallbackBaseProps extends PolymorphicProps {}
|
|
24
|
+
interface AvatarFallbackProps extends HTMLProps<"span">, AvatarFallbackBaseProps {}
|
|
25
|
+
declare const AvatarFallback: import("react").ForwardRefExoticComponent<AvatarFallbackProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/components/avatar/image.d.ts
|
|
28
|
+
interface AvatarImageBaseProps extends PolymorphicProps {}
|
|
29
|
+
interface AvatarImageProps extends HTMLProps<"img">, AvatarImageBaseProps {}
|
|
30
|
+
declare const AvatarImage: import("react").ForwardRefExoticComponent<AvatarImageProps & import("react").RefAttributes<HTMLImageElement>>;
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/components/avatar/root.d.ts
|
|
33
|
+
interface AvatarRootBaseProps extends UseAvatarProps, PolymorphicProps {}
|
|
34
|
+
interface AvatarRootProps extends HTMLProps<"div">, AvatarRootBaseProps {}
|
|
35
|
+
declare const AvatarRoot: import("react").ForwardRefExoticComponent<AvatarRootProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/components/avatar/root-provider.d.ts
|
|
38
|
+
interface RootProviderProps {
|
|
39
|
+
value: UseAvatarReturn;
|
|
40
|
+
}
|
|
41
|
+
interface AvatarRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
|
|
42
|
+
interface AvatarRootProviderProps extends HTMLProps<"div">, AvatarRootProviderBaseProps {}
|
|
43
|
+
declare const AvatarRootProvider: import("react").ForwardRefExoticComponent<AvatarRootProviderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
44
|
+
declare namespace avatar_d_exports {
|
|
45
|
+
export { AvatarContext as Context, AvatarContextProps as ContextProps, AvatarFallback as Fallback, AvatarFallbackBaseProps as FallbackBaseProps, AvatarFallbackProps as FallbackProps, AvatarImage as Image, AvatarImageBaseProps as ImageBaseProps, AvatarImageProps as ImageProps, AvatarRoot as Root, AvatarRootBaseProps as RootBaseProps, AvatarRootProps as RootProps, AvatarRootProvider as RootProvider, AvatarRootProviderBaseProps as RootProviderBaseProps, AvatarRootProviderProps as RootProviderProps, StatusChangeDetails };
|
|
46
|
+
}
|
|
47
|
+
//#endregion
|
|
48
|
+
export { avatar_d_exports as Avatar, AvatarContext, type AvatarContextProps, AvatarFallback, type AvatarFallbackBaseProps, type AvatarFallbackProps, AvatarImage, type AvatarImageBaseProps, type AvatarImageProps, AvatarRoot, type AvatarRootBaseProps, type AvatarRootProps, AvatarRootProvider, type AvatarRootProviderBaseProps, type AvatarRootProviderProps, type AvatarStatusChangeDetails, type UseAvatarContext, type UseAvatarProps, type UseAvatarReturn, avatarAnatomy, useAvatar, useAvatarContext };
|
package/dist/avatar.d.ts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { a as PropTypes } from "./index-CxWYgVJk.js";
|
|
2
|
+
import { r as Optional } from "./types-BQQfrr86.js";
|
|
3
|
+
import { r as PolymorphicProps, t as HTMLProps } from "./factory--dkoVnFK.js";
|
|
4
|
+
import { ReactNode } from "react";
|
|
5
|
+
import * as avatar from "@wirekyt/dom/machines/avatar";
|
|
6
|
+
import { StatusChangeDetails, StatusChangeDetails as AvatarStatusChangeDetails, anatomy as avatarAnatomy } from "@wirekyt/dom/machines/avatar";
|
|
7
|
+
//#region src/components/avatar/use.d.ts
|
|
8
|
+
interface UseAvatarProps extends Optional<Omit<avatar.Props, "dir" | "getRootNode">, "id"> {}
|
|
9
|
+
interface UseAvatarReturn extends avatar.Api<PropTypes> {}
|
|
10
|
+
declare const useAvatar: (props?: UseAvatarProps) => UseAvatarReturn;
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/components/avatar/use-context.d.ts
|
|
13
|
+
interface UseAvatarContext extends UseAvatarReturn {}
|
|
14
|
+
declare const AvatarProvider: import("react").Provider<UseAvatarContext>, useAvatarContext: () => UseAvatarContext;
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/components/avatar/context.d.ts
|
|
17
|
+
interface AvatarContextProps {
|
|
18
|
+
children: (context: UseAvatarContext) => ReactNode;
|
|
19
|
+
}
|
|
20
|
+
declare const AvatarContext: (props: AvatarContextProps) => ReactNode;
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/components/avatar/fallback.d.ts
|
|
23
|
+
interface AvatarFallbackBaseProps extends PolymorphicProps {}
|
|
24
|
+
interface AvatarFallbackProps extends HTMLProps<"span">, AvatarFallbackBaseProps {}
|
|
25
|
+
declare const AvatarFallback: import("react").ForwardRefExoticComponent<AvatarFallbackProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/components/avatar/image.d.ts
|
|
28
|
+
interface AvatarImageBaseProps extends PolymorphicProps {}
|
|
29
|
+
interface AvatarImageProps extends HTMLProps<"img">, AvatarImageBaseProps {}
|
|
30
|
+
declare const AvatarImage: import("react").ForwardRefExoticComponent<AvatarImageProps & import("react").RefAttributes<HTMLImageElement>>;
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/components/avatar/root.d.ts
|
|
33
|
+
interface AvatarRootBaseProps extends UseAvatarProps, PolymorphicProps {}
|
|
34
|
+
interface AvatarRootProps extends HTMLProps<"div">, AvatarRootBaseProps {}
|
|
35
|
+
declare const AvatarRoot: import("react").ForwardRefExoticComponent<AvatarRootProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/components/avatar/root-provider.d.ts
|
|
38
|
+
interface RootProviderProps {
|
|
39
|
+
value: UseAvatarReturn;
|
|
40
|
+
}
|
|
41
|
+
interface AvatarRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
|
|
42
|
+
interface AvatarRootProviderProps extends HTMLProps<"div">, AvatarRootProviderBaseProps {}
|
|
43
|
+
declare const AvatarRootProvider: import("react").ForwardRefExoticComponent<AvatarRootProviderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
44
|
+
declare namespace avatar_d_exports {
|
|
45
|
+
export { AvatarContext as Context, AvatarContextProps as ContextProps, AvatarFallback as Fallback, AvatarFallbackBaseProps as FallbackBaseProps, AvatarFallbackProps as FallbackProps, AvatarImage as Image, AvatarImageBaseProps as ImageBaseProps, AvatarImageProps as ImageProps, AvatarRoot as Root, AvatarRootBaseProps as RootBaseProps, AvatarRootProps as RootProps, AvatarRootProvider as RootProvider, AvatarRootProviderBaseProps as RootProviderBaseProps, AvatarRootProviderProps as RootProviderProps, StatusChangeDetails };
|
|
46
|
+
}
|
|
47
|
+
//#endregion
|
|
48
|
+
export { avatar_d_exports as Avatar, AvatarContext, type AvatarContextProps, AvatarFallback, type AvatarFallbackBaseProps, type AvatarFallbackProps, AvatarImage, type AvatarImageBaseProps, type AvatarImageProps, AvatarRoot, type AvatarRootBaseProps, type AvatarRootProps, AvatarRootProvider, type AvatarRootProviderBaseProps, type AvatarRootProviderProps, type AvatarStatusChangeDetails, type UseAvatarContext, type UseAvatarProps, type UseAvatarReturn, avatarAnatomy, useAvatar, useAvatarContext };
|
package/dist/avatar.js
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
import { c as createSplitProps, u as createContext$1 } from "./utils-CqLmqrgj.js";
|
|
3
|
+
import { n as useEnvironmentContext } from "./environment-BTgKwk5E.js";
|
|
4
|
+
import { a as useMachine, i as normalizeProps, t as mergeProps } from "./core-CEYOEcVI.js";
|
|
5
|
+
import { n as wire } from "./factory-Nm__-4xn.js";
|
|
6
|
+
import { a as useLocaleContext } from "./providers-FEHnDTvb.js";
|
|
7
|
+
import { forwardRef, useId } from "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
import * as avatar from "@wirekyt/dom/machines/avatar";
|
|
10
|
+
import { anatomy as avatarAnatomy } from "@wirekyt/dom/machines/avatar";
|
|
11
|
+
//#region src/components/avatar/use-context.ts
|
|
12
|
+
const [AvatarProvider, useAvatarContext] = createContext$1({
|
|
13
|
+
name: "AvatarContext",
|
|
14
|
+
hookName: "useAvatarContext",
|
|
15
|
+
providerName: "<AvatarProvider />"
|
|
16
|
+
});
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/components/avatar/context.tsx
|
|
19
|
+
const AvatarContext = (props) => props.children(useAvatarContext());
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/components/avatar/fallback.tsx
|
|
22
|
+
const AvatarFallback = forwardRef((props, ref) => {
|
|
23
|
+
const mergedProps = mergeProps(useAvatarContext().getFallbackProps(), props);
|
|
24
|
+
return /* @__PURE__ */ jsx(wire.span, {
|
|
25
|
+
...mergedProps,
|
|
26
|
+
ref
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
AvatarFallback.displayName = "AvatarFallback";
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/components/avatar/image.tsx
|
|
32
|
+
const AvatarImage = forwardRef((props, ref) => {
|
|
33
|
+
const mergedProps = mergeProps(useAvatarContext().getImageProps(), props);
|
|
34
|
+
return /* @__PURE__ */ jsx(wire.img, {
|
|
35
|
+
...mergedProps,
|
|
36
|
+
ref
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
AvatarImage.displayName = "AvatarImage";
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region src/components/avatar/use.ts
|
|
42
|
+
const useAvatar = (props) => {
|
|
43
|
+
const id = useId();
|
|
44
|
+
const { getRootNode } = useEnvironmentContext();
|
|
45
|
+
const { dir } = useLocaleContext();
|
|
46
|
+
const context = {
|
|
47
|
+
id,
|
|
48
|
+
dir,
|
|
49
|
+
getRootNode,
|
|
50
|
+
...props
|
|
51
|
+
};
|
|
52
|
+
const service = useMachine(avatar.machine, context);
|
|
53
|
+
return avatar.connect(service, normalizeProps);
|
|
54
|
+
};
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/components/avatar/root.tsx
|
|
57
|
+
const splitRootProps = createSplitProps();
|
|
58
|
+
const AvatarRoot = forwardRef((props, ref) => {
|
|
59
|
+
const [useAvatarProps, localProps] = splitRootProps(props, [
|
|
60
|
+
"id",
|
|
61
|
+
"ids",
|
|
62
|
+
"onStatusChange"
|
|
63
|
+
]);
|
|
64
|
+
const avatar = useAvatar(useAvatarProps);
|
|
65
|
+
const mergedProps = mergeProps(avatar.getRootProps(), localProps);
|
|
66
|
+
return /* @__PURE__ */ jsx(AvatarProvider, {
|
|
67
|
+
value: avatar,
|
|
68
|
+
children: /* @__PURE__ */ jsx(wire.div, {
|
|
69
|
+
...mergedProps,
|
|
70
|
+
ref
|
|
71
|
+
})
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
AvatarRoot.displayName = "AvatarRoot";
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region src/components/avatar/root-provider.tsx
|
|
77
|
+
const splitRootProviderProps = createSplitProps();
|
|
78
|
+
const AvatarRootProvider = forwardRef((props, ref) => {
|
|
79
|
+
const [{ value: avatar }, localProps] = splitRootProviderProps(props, ["value"]);
|
|
80
|
+
const mergedProps = mergeProps(avatar.getRootProps(), localProps);
|
|
81
|
+
return /* @__PURE__ */ jsx(AvatarProvider, {
|
|
82
|
+
value: avatar,
|
|
83
|
+
children: /* @__PURE__ */ jsx(wire.div, {
|
|
84
|
+
...mergedProps,
|
|
85
|
+
ref
|
|
86
|
+
})
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
AvatarRootProvider.displayName = "AvatarRootProvider";
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region src/components/avatar/avatar.ts
|
|
92
|
+
var avatar_exports = /* @__PURE__ */ __exportAll({
|
|
93
|
+
Context: () => AvatarContext,
|
|
94
|
+
Fallback: () => AvatarFallback,
|
|
95
|
+
Image: () => AvatarImage,
|
|
96
|
+
Root: () => AvatarRoot,
|
|
97
|
+
RootProvider: () => AvatarRootProvider
|
|
98
|
+
});
|
|
99
|
+
//#endregion
|
|
100
|
+
export { avatar_exports as Avatar, AvatarContext, AvatarFallback, AvatarImage, AvatarRoot, AvatarRootProvider, avatarAnatomy, useAvatar, useAvatarContext };
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_rolldown_runtime = require("./rolldown-runtime-DakpK96I.cjs");
|
|
3
|
+
const require_utils = require("./utils-Cfwm9WW1.cjs");
|
|
4
|
+
const require_environment = require("./environment-B6IaCAuQ.cjs");
|
|
5
|
+
const require_core = require("./core-CBFAnVIP.cjs");
|
|
6
|
+
const require_factory = require("./factory-CFFufs5e.cjs");
|
|
7
|
+
const require_providers = require("./providers-DrJEJcrE.cjs");
|
|
8
|
+
let react = require("react");
|
|
9
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
|
+
let _wirekyt_dom_machines_carousel = require("@wirekyt/dom/machines/carousel");
|
|
11
|
+
_wirekyt_dom_machines_carousel = require_rolldown_runtime.__toESM(_wirekyt_dom_machines_carousel, 1);
|
|
12
|
+
let _wirekyt_dom = require("@wirekyt/dom");
|
|
13
|
+
//#region src/components/carousel/anatomy.ts
|
|
14
|
+
const carouselAnatomy = _wirekyt_dom_machines_carousel.anatomy.extendWith("progressText", "autoplayIndicator");
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/components/carousel/use-carousel-context.ts
|
|
17
|
+
const [CarouselProvider, useCarouselContext] = require_utils.createContext({
|
|
18
|
+
name: "CarouselContext",
|
|
19
|
+
hookName: "useCarouselContext",
|
|
20
|
+
providerName: "<CarouselProvider />"
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/components/carousel/autoplay-indicator.tsx
|
|
24
|
+
const parts$1 = carouselAnatomy.build();
|
|
25
|
+
const CarouselAutoplayIndicator = (0, react.forwardRef)((props, ref) => {
|
|
26
|
+
const { children, fallback, ...restProps } = props;
|
|
27
|
+
const carousel = useCarouselContext();
|
|
28
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.span, {
|
|
29
|
+
ref,
|
|
30
|
+
...parts$1.autoplayIndicator.attrs,
|
|
31
|
+
...restProps,
|
|
32
|
+
children: carousel.isPlaying ? children : fallback
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
CarouselAutoplayIndicator.displayName = "CarouselAutoplayIndicator";
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/components/carousel/progress-text.tsx
|
|
38
|
+
const parts = carouselAnatomy.build();
|
|
39
|
+
const CarouselProgressText = (0, react.forwardRef)((props, ref) => {
|
|
40
|
+
const carousel = useCarouselContext();
|
|
41
|
+
const progressText = (0, react.useMemo)(() => {
|
|
42
|
+
return `${carousel.page + 1} / ${carousel.pageSnapPoints.length}`;
|
|
43
|
+
}, [carousel.page, carousel.pageSnapPoints.length]);
|
|
44
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.span, {
|
|
45
|
+
ref,
|
|
46
|
+
...parts.progressText.attrs,
|
|
47
|
+
...props,
|
|
48
|
+
children: props.children || progressText
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
CarouselProgressText.displayName = "CarouselProgressText";
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/components/carousel/autoplay-trigger.tsx
|
|
54
|
+
const CarouselAutoplayTrigger = (0, react.forwardRef)((props, ref) => {
|
|
55
|
+
const mergedProps = (0, _wirekyt_dom.mergeProps)(useCarouselContext().getAutoplayTriggerProps(), props);
|
|
56
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.button, {
|
|
57
|
+
...mergedProps,
|
|
58
|
+
ref
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
CarouselAutoplayTrigger.displayName = "CarouselAutoplayTrigger";
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region src/components/carousel/context.tsx
|
|
64
|
+
const CarouselContext = (props) => props.children(useCarouselContext());
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/components/carousel/control.tsx
|
|
67
|
+
const CarouselControl = (0, react.forwardRef)((props, ref) => {
|
|
68
|
+
const mergedProps = (0, _wirekyt_dom.mergeProps)(useCarouselContext().getControlProps(), props);
|
|
69
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.div, {
|
|
70
|
+
...mergedProps,
|
|
71
|
+
...props,
|
|
72
|
+
ref
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
CarouselControl.displayName = "CarouselControl";
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region src/components/carousel/indicator.tsx
|
|
78
|
+
const splitIndicatorProps = require_utils.createSplitProps();
|
|
79
|
+
const CarouselIndicator = (0, react.forwardRef)((props, ref) => {
|
|
80
|
+
const [indicatorProps, localProps] = splitIndicatorProps(props, ["readOnly", "index"]);
|
|
81
|
+
const mergedProps = (0, _wirekyt_dom.mergeProps)(useCarouselContext().getIndicatorProps(indicatorProps), localProps);
|
|
82
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.button, {
|
|
83
|
+
...mergedProps,
|
|
84
|
+
ref
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
CarouselIndicator.displayName = "CarouselIndicator";
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region src/components/carousel/indicator-group.tsx
|
|
90
|
+
const CarouselIndicatorGroup = (0, react.forwardRef)((props, ref) => {
|
|
91
|
+
const mergedProps = (0, _wirekyt_dom.mergeProps)(useCarouselContext().getIndicatorGroupProps(), props);
|
|
92
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.div, {
|
|
93
|
+
...mergedProps,
|
|
94
|
+
ref
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
CarouselIndicatorGroup.displayName = "CarouselIndicatorGroup";
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region src/components/carousel/item.tsx
|
|
100
|
+
const splitItemProps = require_utils.createSplitProps();
|
|
101
|
+
const CarouselItem = (0, react.forwardRef)((props, ref) => {
|
|
102
|
+
const [itemProps, localProps] = splitItemProps(props, ["index", "snapAlign"]);
|
|
103
|
+
const mergedProps = (0, _wirekyt_dom.mergeProps)(useCarouselContext().getItemProps(itemProps), localProps);
|
|
104
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.div, {
|
|
105
|
+
...mergedProps,
|
|
106
|
+
ref
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
CarouselItem.displayName = "CarouselItem";
|
|
110
|
+
//#endregion
|
|
111
|
+
//#region src/components/carousel/item-group.tsx
|
|
112
|
+
const CarouselItemGroup = (0, react.forwardRef)((props, ref) => {
|
|
113
|
+
const mergedProps = (0, _wirekyt_dom.mergeProps)(useCarouselContext().getItemGroupProps(), props);
|
|
114
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.div, {
|
|
115
|
+
...mergedProps,
|
|
116
|
+
ref
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
CarouselItemGroup.displayName = "CarouselItemGroup";
|
|
120
|
+
//#endregion
|
|
121
|
+
//#region src/components/carousel/next-trigger.tsx
|
|
122
|
+
const CarouselNextTrigger = (0, react.forwardRef)((props, ref) => {
|
|
123
|
+
const mergedProps = (0, _wirekyt_dom.mergeProps)(useCarouselContext().getNextTriggerProps(), props);
|
|
124
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.button, {
|
|
125
|
+
...mergedProps,
|
|
126
|
+
ref
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
CarouselNextTrigger.displayName = "CarouselNextTrigger";
|
|
130
|
+
//#endregion
|
|
131
|
+
//#region src/components/carousel/prev-trigger.tsx
|
|
132
|
+
const CarouselPrevTrigger = (0, react.forwardRef)((props, ref) => {
|
|
133
|
+
const mergedProps = (0, _wirekyt_dom.mergeProps)(useCarouselContext().getPrevTriggerProps(), props);
|
|
134
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.button, {
|
|
135
|
+
...mergedProps,
|
|
136
|
+
ref
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
CarouselPrevTrigger.displayName = "CarouselPrevTrigger";
|
|
140
|
+
//#endregion
|
|
141
|
+
//#region src/components/carousel/use-carousel.ts
|
|
142
|
+
const useCarousel = (props) => {
|
|
143
|
+
const id = (0, react.useId)();
|
|
144
|
+
const { getRootNode } = require_environment.useEnvironmentContext();
|
|
145
|
+
const { dir } = require_providers.useLocaleContext();
|
|
146
|
+
const machineProps = {
|
|
147
|
+
id,
|
|
148
|
+
dir,
|
|
149
|
+
getRootNode,
|
|
150
|
+
...props
|
|
151
|
+
};
|
|
152
|
+
const service = require_core.useMachine(_wirekyt_dom_machines_carousel.machine, machineProps);
|
|
153
|
+
return _wirekyt_dom_machines_carousel.connect(service, require_core.normalizeProps);
|
|
154
|
+
};
|
|
155
|
+
//#endregion
|
|
156
|
+
//#region src/components/carousel/root.tsx
|
|
157
|
+
const splitRootProps = require_utils.createSplitProps();
|
|
158
|
+
const CarouselRoot = (0, react.forwardRef)((props, ref) => {
|
|
159
|
+
const [useCarouselProps, localProps] = splitRootProps(props, [
|
|
160
|
+
"allowMouseDrag",
|
|
161
|
+
"autoplay",
|
|
162
|
+
"autoSize",
|
|
163
|
+
"defaultPage",
|
|
164
|
+
"id",
|
|
165
|
+
"ids",
|
|
166
|
+
"inViewThreshold",
|
|
167
|
+
"loop",
|
|
168
|
+
"onAutoplayStatusChange",
|
|
169
|
+
"onDragStatusChange",
|
|
170
|
+
"onPageChange",
|
|
171
|
+
"orientation",
|
|
172
|
+
"padding",
|
|
173
|
+
"page",
|
|
174
|
+
"slideCount",
|
|
175
|
+
"slidesPerMove",
|
|
176
|
+
"slidesPerPage",
|
|
177
|
+
"snapType",
|
|
178
|
+
"spacing",
|
|
179
|
+
"translations"
|
|
180
|
+
]);
|
|
181
|
+
const carousel = useCarousel(useCarouselProps);
|
|
182
|
+
const mergedProps = (0, _wirekyt_dom.mergeProps)(carousel.getRootProps(), localProps);
|
|
183
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CarouselProvider, {
|
|
184
|
+
value: carousel,
|
|
185
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.div, {
|
|
186
|
+
...mergedProps,
|
|
187
|
+
ref
|
|
188
|
+
})
|
|
189
|
+
});
|
|
190
|
+
});
|
|
191
|
+
CarouselRoot.displayName = "CarouselRoot";
|
|
192
|
+
//#endregion
|
|
193
|
+
//#region src/components/carousel/root-provider.tsx
|
|
194
|
+
const splitRootProviderProps = require_utils.createSplitProps();
|
|
195
|
+
const CarouselRootProvider = (0, react.forwardRef)((props, ref) => {
|
|
196
|
+
const [{ value: carousel }, localProps] = splitRootProviderProps(props, ["value"]);
|
|
197
|
+
const mergedProps = (0, _wirekyt_dom.mergeProps)(carousel.getRootProps(), localProps);
|
|
198
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CarouselProvider, {
|
|
199
|
+
value: carousel,
|
|
200
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.div, {
|
|
201
|
+
...mergedProps,
|
|
202
|
+
ref
|
|
203
|
+
})
|
|
204
|
+
});
|
|
205
|
+
});
|
|
206
|
+
CarouselRootProvider.displayName = "CarouselRootProvider";
|
|
207
|
+
//#endregion
|
|
208
|
+
//#region src/components/carousel/carousel.ts
|
|
209
|
+
var carousel_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
|
|
210
|
+
AutoplayIndicator: () => CarouselAutoplayIndicator,
|
|
211
|
+
AutoplayTrigger: () => CarouselAutoplayTrigger,
|
|
212
|
+
Context: () => CarouselContext,
|
|
213
|
+
Control: () => CarouselControl,
|
|
214
|
+
Indicator: () => CarouselIndicator,
|
|
215
|
+
IndicatorGroup: () => CarouselIndicatorGroup,
|
|
216
|
+
Item: () => CarouselItem,
|
|
217
|
+
ItemGroup: () => CarouselItemGroup,
|
|
218
|
+
NextTrigger: () => CarouselNextTrigger,
|
|
219
|
+
PrevTrigger: () => CarouselPrevTrigger,
|
|
220
|
+
ProgressText: () => CarouselProgressText,
|
|
221
|
+
Root: () => CarouselRoot,
|
|
222
|
+
RootProvider: () => CarouselRootProvider
|
|
223
|
+
});
|
|
224
|
+
//#endregion
|
|
225
|
+
Object.defineProperty(exports, "Carousel", {
|
|
226
|
+
enumerable: true,
|
|
227
|
+
get: function() {
|
|
228
|
+
return carousel_exports;
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
exports.CarouselAutoplayIndicator = CarouselAutoplayIndicator;
|
|
232
|
+
exports.CarouselAutoplayTrigger = CarouselAutoplayTrigger;
|
|
233
|
+
exports.CarouselContext = CarouselContext;
|
|
234
|
+
exports.CarouselControl = CarouselControl;
|
|
235
|
+
exports.CarouselIndicator = CarouselIndicator;
|
|
236
|
+
exports.CarouselIndicatorGroup = CarouselIndicatorGroup;
|
|
237
|
+
exports.CarouselItem = CarouselItem;
|
|
238
|
+
exports.CarouselItemGroup = CarouselItemGroup;
|
|
239
|
+
exports.CarouselNextTrigger = CarouselNextTrigger;
|
|
240
|
+
exports.CarouselPrevTrigger = CarouselPrevTrigger;
|
|
241
|
+
exports.CarouselProgressText = CarouselProgressText;
|
|
242
|
+
exports.CarouselRoot = CarouselRoot;
|
|
243
|
+
exports.CarouselRootProvider = CarouselRootProvider;
|
|
244
|
+
exports.carouselAnatomy = carouselAnatomy;
|
|
245
|
+
exports.useCarousel = useCarousel;
|
|
246
|
+
exports.useCarouselContext = useCarouselContext;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { a as PropTypes } from "./index-CQAbOgb7.cjs";
|
|
2
|
+
import { r as Optional } from "./types-BQQfrr86.cjs";
|
|
3
|
+
import { r as PolymorphicProps, t as HTMLProps } from "./factory--dkoVnFK.cjs";
|
|
4
|
+
import { ReactNode } from "react";
|
|
5
|
+
import * as carousel from "@wirekyt/dom/machines/carousel";
|
|
6
|
+
import { AutoplayStatusDetails, AutoplayStatusDetails as CarouselAutoplayStatusDetails, DragStatusDetails, DragStatusDetails as CarouselDragStatusDetails, IndicatorProps, ItemProps, PageChangeDetails, PageChangeDetails as CarouselPageChangeDetails } from "@wirekyt/dom/machines/carousel";
|
|
7
|
+
import { AnatomyInstance } from "@wirekyt/dom/anatomy";
|
|
8
|
+
//#region src/components/carousel/autoplay-indicator.d.ts
|
|
9
|
+
interface CarouselAutoplayIndicatorBaseProps extends PolymorphicProps {
|
|
10
|
+
fallback?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
interface CarouselAutoplayIndicatorProps extends HTMLProps<"span">, CarouselAutoplayIndicatorBaseProps {}
|
|
13
|
+
declare const CarouselAutoplayIndicator: import("react").ForwardRefExoticComponent<CarouselAutoplayIndicatorProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/components/carousel/progress-text.d.ts
|
|
16
|
+
interface CarouselProgressTextBaseProps extends PolymorphicProps {}
|
|
17
|
+
interface CarouselProgressTextProps extends HTMLProps<"span">, CarouselProgressTextBaseProps {}
|
|
18
|
+
declare const CarouselProgressText: import("react").ForwardRefExoticComponent<CarouselProgressTextProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/components/carousel/autoplay-trigger.d.ts
|
|
21
|
+
interface CarouselAutoplayTriggerBaseProps extends PolymorphicProps {}
|
|
22
|
+
interface CarouselAutoplayTriggerProps extends HTMLProps<"button">, CarouselAutoplayTriggerBaseProps {}
|
|
23
|
+
declare const CarouselAutoplayTrigger: import("react").ForwardRefExoticComponent<CarouselAutoplayTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/components/carousel/use-carousel.d.ts
|
|
26
|
+
interface UseCarouselProps extends Optional<Omit<carousel.Props, "dir" | "getRootNode">, "id"> {}
|
|
27
|
+
interface UseCarouselReturn extends carousel.Api<PropTypes> {}
|
|
28
|
+
declare const useCarousel: (props: UseCarouselProps) => UseCarouselReturn;
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/components/carousel/use-carousel-context.d.ts
|
|
31
|
+
interface UseCarouselContext extends UseCarouselReturn {}
|
|
32
|
+
declare const CarouselProvider: import("react").Provider<UseCarouselContext>, useCarouselContext: () => UseCarouselContext;
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region src/components/carousel/context.d.ts
|
|
35
|
+
interface CarouselContextProps {
|
|
36
|
+
children: (context: UseCarouselContext) => ReactNode;
|
|
37
|
+
}
|
|
38
|
+
declare const CarouselContext: (props: CarouselContextProps) => ReactNode;
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/components/carousel/control.d.ts
|
|
41
|
+
interface CarouselControlBaseProps extends PolymorphicProps {}
|
|
42
|
+
interface CarouselControlProps extends HTMLProps<"div">, CarouselControlBaseProps {}
|
|
43
|
+
declare const CarouselControl: import("react").ForwardRefExoticComponent<CarouselControlProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region src/components/carousel/indicator.d.ts
|
|
46
|
+
interface CarouselIndicatorBaseProps extends IndicatorProps, PolymorphicProps {}
|
|
47
|
+
interface CarouselIndicatorProps extends HTMLProps<"button">, CarouselIndicatorBaseProps {}
|
|
48
|
+
declare const CarouselIndicator: import("react").ForwardRefExoticComponent<CarouselIndicatorProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region src/components/carousel/indicator-group.d.ts
|
|
51
|
+
interface CarouselIndicatorGroupBaseProps extends PolymorphicProps {}
|
|
52
|
+
interface CarouselIndicatorGroupProps extends HTMLProps<"div">, CarouselIndicatorGroupBaseProps {}
|
|
53
|
+
declare const CarouselIndicatorGroup: import("react").ForwardRefExoticComponent<CarouselIndicatorGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/components/carousel/item.d.ts
|
|
56
|
+
interface CarouselItemBaseProps extends ItemProps, PolymorphicProps {}
|
|
57
|
+
interface CarouselItemProps extends HTMLProps<"div">, CarouselItemBaseProps {}
|
|
58
|
+
declare const CarouselItem: import("react").ForwardRefExoticComponent<CarouselItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region src/components/carousel/item-group.d.ts
|
|
61
|
+
interface CarouselItemGroupBaseProps extends PolymorphicProps {}
|
|
62
|
+
interface CarouselItemGroupProps extends HTMLProps<"div">, CarouselItemGroupBaseProps {}
|
|
63
|
+
declare const CarouselItemGroup: import("react").ForwardRefExoticComponent<CarouselItemGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region src/components/carousel/next-trigger.d.ts
|
|
66
|
+
interface CarouselNextTriggerBaseProps extends PolymorphicProps {}
|
|
67
|
+
interface CarouselNextTriggerProps extends HTMLProps<"button">, CarouselNextTriggerBaseProps {}
|
|
68
|
+
declare const CarouselNextTrigger: import("react").ForwardRefExoticComponent<CarouselNextTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
69
|
+
//#endregion
|
|
70
|
+
//#region src/components/carousel/prev-trigger.d.ts
|
|
71
|
+
interface CarouselPrevTriggerBaseProps extends PolymorphicProps {}
|
|
72
|
+
interface CarouselPrevTriggerProps extends HTMLProps<"button">, CarouselPrevTriggerBaseProps {}
|
|
73
|
+
declare const CarouselPrevTrigger: import("react").ForwardRefExoticComponent<CarouselPrevTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region src/components/carousel/root.d.ts
|
|
76
|
+
interface CarouselRootBaseProps extends UseCarouselProps, PolymorphicProps {}
|
|
77
|
+
interface CarouselRootProps extends HTMLProps<"div">, CarouselRootBaseProps {}
|
|
78
|
+
declare const CarouselRoot: import("react").ForwardRefExoticComponent<CarouselRootProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region src/components/carousel/root-provider.d.ts
|
|
81
|
+
interface RootProviderProps {
|
|
82
|
+
value: UseCarouselReturn;
|
|
83
|
+
}
|
|
84
|
+
interface CarouselRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
|
|
85
|
+
interface CarouselRootProviderProps extends HTMLProps<"div">, CarouselRootProviderBaseProps {}
|
|
86
|
+
declare const CarouselRootProvider: import("react").ForwardRefExoticComponent<CarouselRootProviderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
87
|
+
//#endregion
|
|
88
|
+
//#region src/components/carousel/anatomy.d.ts
|
|
89
|
+
declare const carouselAnatomy: AnatomyInstance<"root" | "itemGroup" | "item" | "control" | "nextTrigger" | "prevTrigger" | "indicatorGroup" | "indicator" | "autoplayTrigger" | "progressText" | "autoplayIndicator">;
|
|
90
|
+
declare namespace carousel_d_exports {
|
|
91
|
+
export { CarouselAutoplayIndicator as AutoplayIndicator, CarouselAutoplayIndicatorBaseProps as AutoplayIndicatorBaseProps, CarouselAutoplayIndicatorProps as AutoplayIndicatorProps, AutoplayStatusDetails, CarouselAutoplayTrigger as AutoplayTrigger, CarouselAutoplayTriggerBaseProps as AutoplayTriggerBaseProps, CarouselAutoplayTriggerProps as AutoplayTriggerProps, CarouselContext as Context, CarouselContextProps as ContextProps, CarouselControl as Control, CarouselControlBaseProps as ControlBaseProps, CarouselControlProps as ControlProps, DragStatusDetails, CarouselIndicator as Indicator, CarouselIndicatorBaseProps as IndicatorBaseProps, CarouselIndicatorGroup as IndicatorGroup, CarouselIndicatorGroupBaseProps as IndicatorGroupBaseProps, CarouselIndicatorGroupProps as IndicatorGroupProps, CarouselIndicatorProps as IndicatorProps, CarouselItem as Item, CarouselItemBaseProps as ItemBaseProps, CarouselItemGroup as ItemGroup, CarouselItemGroupBaseProps as ItemGroupBaseProps, CarouselItemGroupProps as ItemGroupProps, CarouselItemProps as ItemProps, CarouselNextTrigger as NextTrigger, CarouselNextTriggerBaseProps as NextTriggerBaseProps, CarouselNextTriggerProps as NextTriggerProps, PageChangeDetails, CarouselPrevTrigger as PrevTrigger, CarouselPrevTriggerBaseProps as PrevTriggerBaseProps, CarouselPrevTriggerProps as PrevTriggerProps, CarouselProgressText as ProgressText, CarouselProgressTextBaseProps as ProgressTextBaseProps, CarouselProgressTextProps as ProgressTextProps, CarouselRoot as Root, CarouselRootBaseProps as RootBaseProps, CarouselRootProps as RootProps, CarouselRootProvider as RootProvider, CarouselRootProviderBaseProps as RootProviderBaseProps, CarouselRootProviderProps as RootProviderProps };
|
|
92
|
+
}
|
|
93
|
+
//#endregion
|
|
94
|
+
export { carousel_d_exports as Carousel, CarouselAutoplayIndicator, type CarouselAutoplayIndicatorBaseProps, type CarouselAutoplayIndicatorProps, type CarouselAutoplayStatusDetails, CarouselAutoplayTrigger, type CarouselAutoplayTriggerBaseProps, type CarouselAutoplayTriggerProps, CarouselContext, type CarouselContextProps, CarouselControl, type CarouselControlBaseProps, type CarouselControlProps, type CarouselDragStatusDetails, CarouselIndicator, type CarouselIndicatorBaseProps, CarouselIndicatorGroup, type CarouselIndicatorGroupBaseProps, type CarouselIndicatorGroupProps, type CarouselIndicatorProps, CarouselItem, type CarouselItemBaseProps, CarouselItemGroup, type CarouselItemGroupBaseProps, type CarouselItemGroupProps, type CarouselItemProps, CarouselNextTrigger, type CarouselNextTriggerBaseProps, type CarouselNextTriggerProps, type CarouselPageChangeDetails, CarouselPrevTrigger, type CarouselPrevTriggerBaseProps, type CarouselPrevTriggerProps, CarouselProgressText, type CarouselProgressTextBaseProps, type CarouselProgressTextProps, CarouselRoot, type CarouselRootBaseProps, type CarouselRootProps, CarouselRootProvider, type CarouselRootProviderBaseProps, type CarouselRootProviderProps, type UseCarouselContext, type UseCarouselProps, type UseCarouselReturn, carouselAnatomy, useCarousel, useCarouselContext };
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { a as PropTypes } from "./index-CxWYgVJk.js";
|
|
2
|
+
import { r as Optional } from "./types-BQQfrr86.js";
|
|
3
|
+
import { r as PolymorphicProps, t as HTMLProps } from "./factory--dkoVnFK.js";
|
|
4
|
+
import { ReactNode } from "react";
|
|
5
|
+
import * as carousel from "@wirekyt/dom/machines/carousel";
|
|
6
|
+
import { AutoplayStatusDetails, AutoplayStatusDetails as CarouselAutoplayStatusDetails, DragStatusDetails, DragStatusDetails as CarouselDragStatusDetails, IndicatorProps, ItemProps, PageChangeDetails, PageChangeDetails as CarouselPageChangeDetails } from "@wirekyt/dom/machines/carousel";
|
|
7
|
+
import { AnatomyInstance } from "@wirekyt/dom/anatomy";
|
|
8
|
+
//#region src/components/carousel/autoplay-indicator.d.ts
|
|
9
|
+
interface CarouselAutoplayIndicatorBaseProps extends PolymorphicProps {
|
|
10
|
+
fallback?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
interface CarouselAutoplayIndicatorProps extends HTMLProps<"span">, CarouselAutoplayIndicatorBaseProps {}
|
|
13
|
+
declare const CarouselAutoplayIndicator: import("react").ForwardRefExoticComponent<CarouselAutoplayIndicatorProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/components/carousel/progress-text.d.ts
|
|
16
|
+
interface CarouselProgressTextBaseProps extends PolymorphicProps {}
|
|
17
|
+
interface CarouselProgressTextProps extends HTMLProps<"span">, CarouselProgressTextBaseProps {}
|
|
18
|
+
declare const CarouselProgressText: import("react").ForwardRefExoticComponent<CarouselProgressTextProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/components/carousel/autoplay-trigger.d.ts
|
|
21
|
+
interface CarouselAutoplayTriggerBaseProps extends PolymorphicProps {}
|
|
22
|
+
interface CarouselAutoplayTriggerProps extends HTMLProps<"button">, CarouselAutoplayTriggerBaseProps {}
|
|
23
|
+
declare const CarouselAutoplayTrigger: import("react").ForwardRefExoticComponent<CarouselAutoplayTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/components/carousel/use-carousel.d.ts
|
|
26
|
+
interface UseCarouselProps extends Optional<Omit<carousel.Props, "dir" | "getRootNode">, "id"> {}
|
|
27
|
+
interface UseCarouselReturn extends carousel.Api<PropTypes> {}
|
|
28
|
+
declare const useCarousel: (props: UseCarouselProps) => UseCarouselReturn;
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/components/carousel/use-carousel-context.d.ts
|
|
31
|
+
interface UseCarouselContext extends UseCarouselReturn {}
|
|
32
|
+
declare const CarouselProvider: import("react").Provider<UseCarouselContext>, useCarouselContext: () => UseCarouselContext;
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region src/components/carousel/context.d.ts
|
|
35
|
+
interface CarouselContextProps {
|
|
36
|
+
children: (context: UseCarouselContext) => ReactNode;
|
|
37
|
+
}
|
|
38
|
+
declare const CarouselContext: (props: CarouselContextProps) => ReactNode;
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/components/carousel/control.d.ts
|
|
41
|
+
interface CarouselControlBaseProps extends PolymorphicProps {}
|
|
42
|
+
interface CarouselControlProps extends HTMLProps<"div">, CarouselControlBaseProps {}
|
|
43
|
+
declare const CarouselControl: import("react").ForwardRefExoticComponent<CarouselControlProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region src/components/carousel/indicator.d.ts
|
|
46
|
+
interface CarouselIndicatorBaseProps extends IndicatorProps, PolymorphicProps {}
|
|
47
|
+
interface CarouselIndicatorProps extends HTMLProps<"button">, CarouselIndicatorBaseProps {}
|
|
48
|
+
declare const CarouselIndicator: import("react").ForwardRefExoticComponent<CarouselIndicatorProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region src/components/carousel/indicator-group.d.ts
|
|
51
|
+
interface CarouselIndicatorGroupBaseProps extends PolymorphicProps {}
|
|
52
|
+
interface CarouselIndicatorGroupProps extends HTMLProps<"div">, CarouselIndicatorGroupBaseProps {}
|
|
53
|
+
declare const CarouselIndicatorGroup: import("react").ForwardRefExoticComponent<CarouselIndicatorGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/components/carousel/item.d.ts
|
|
56
|
+
interface CarouselItemBaseProps extends ItemProps, PolymorphicProps {}
|
|
57
|
+
interface CarouselItemProps extends HTMLProps<"div">, CarouselItemBaseProps {}
|
|
58
|
+
declare const CarouselItem: import("react").ForwardRefExoticComponent<CarouselItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region src/components/carousel/item-group.d.ts
|
|
61
|
+
interface CarouselItemGroupBaseProps extends PolymorphicProps {}
|
|
62
|
+
interface CarouselItemGroupProps extends HTMLProps<"div">, CarouselItemGroupBaseProps {}
|
|
63
|
+
declare const CarouselItemGroup: import("react").ForwardRefExoticComponent<CarouselItemGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region src/components/carousel/next-trigger.d.ts
|
|
66
|
+
interface CarouselNextTriggerBaseProps extends PolymorphicProps {}
|
|
67
|
+
interface CarouselNextTriggerProps extends HTMLProps<"button">, CarouselNextTriggerBaseProps {}
|
|
68
|
+
declare const CarouselNextTrigger: import("react").ForwardRefExoticComponent<CarouselNextTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
69
|
+
//#endregion
|
|
70
|
+
//#region src/components/carousel/prev-trigger.d.ts
|
|
71
|
+
interface CarouselPrevTriggerBaseProps extends PolymorphicProps {}
|
|
72
|
+
interface CarouselPrevTriggerProps extends HTMLProps<"button">, CarouselPrevTriggerBaseProps {}
|
|
73
|
+
declare const CarouselPrevTrigger: import("react").ForwardRefExoticComponent<CarouselPrevTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region src/components/carousel/root.d.ts
|
|
76
|
+
interface CarouselRootBaseProps extends UseCarouselProps, PolymorphicProps {}
|
|
77
|
+
interface CarouselRootProps extends HTMLProps<"div">, CarouselRootBaseProps {}
|
|
78
|
+
declare const CarouselRoot: import("react").ForwardRefExoticComponent<CarouselRootProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region src/components/carousel/root-provider.d.ts
|
|
81
|
+
interface RootProviderProps {
|
|
82
|
+
value: UseCarouselReturn;
|
|
83
|
+
}
|
|
84
|
+
interface CarouselRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
|
|
85
|
+
interface CarouselRootProviderProps extends HTMLProps<"div">, CarouselRootProviderBaseProps {}
|
|
86
|
+
declare const CarouselRootProvider: import("react").ForwardRefExoticComponent<CarouselRootProviderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
87
|
+
//#endregion
|
|
88
|
+
//#region src/components/carousel/anatomy.d.ts
|
|
89
|
+
declare const carouselAnatomy: AnatomyInstance<"root" | "itemGroup" | "item" | "control" | "nextTrigger" | "prevTrigger" | "indicatorGroup" | "indicator" | "autoplayTrigger" | "progressText" | "autoplayIndicator">;
|
|
90
|
+
declare namespace carousel_d_exports {
|
|
91
|
+
export { CarouselAutoplayIndicator as AutoplayIndicator, CarouselAutoplayIndicatorBaseProps as AutoplayIndicatorBaseProps, CarouselAutoplayIndicatorProps as AutoplayIndicatorProps, AutoplayStatusDetails, CarouselAutoplayTrigger as AutoplayTrigger, CarouselAutoplayTriggerBaseProps as AutoplayTriggerBaseProps, CarouselAutoplayTriggerProps as AutoplayTriggerProps, CarouselContext as Context, CarouselContextProps as ContextProps, CarouselControl as Control, CarouselControlBaseProps as ControlBaseProps, CarouselControlProps as ControlProps, DragStatusDetails, CarouselIndicator as Indicator, CarouselIndicatorBaseProps as IndicatorBaseProps, CarouselIndicatorGroup as IndicatorGroup, CarouselIndicatorGroupBaseProps as IndicatorGroupBaseProps, CarouselIndicatorGroupProps as IndicatorGroupProps, CarouselIndicatorProps as IndicatorProps, CarouselItem as Item, CarouselItemBaseProps as ItemBaseProps, CarouselItemGroup as ItemGroup, CarouselItemGroupBaseProps as ItemGroupBaseProps, CarouselItemGroupProps as ItemGroupProps, CarouselItemProps as ItemProps, CarouselNextTrigger as NextTrigger, CarouselNextTriggerBaseProps as NextTriggerBaseProps, CarouselNextTriggerProps as NextTriggerProps, PageChangeDetails, CarouselPrevTrigger as PrevTrigger, CarouselPrevTriggerBaseProps as PrevTriggerBaseProps, CarouselPrevTriggerProps as PrevTriggerProps, CarouselProgressText as ProgressText, CarouselProgressTextBaseProps as ProgressTextBaseProps, CarouselProgressTextProps as ProgressTextProps, CarouselRoot as Root, CarouselRootBaseProps as RootBaseProps, CarouselRootProps as RootProps, CarouselRootProvider as RootProvider, CarouselRootProviderBaseProps as RootProviderBaseProps, CarouselRootProviderProps as RootProviderProps };
|
|
92
|
+
}
|
|
93
|
+
//#endregion
|
|
94
|
+
export { carousel_d_exports as Carousel, CarouselAutoplayIndicator, type CarouselAutoplayIndicatorBaseProps, type CarouselAutoplayIndicatorProps, type CarouselAutoplayStatusDetails, CarouselAutoplayTrigger, type CarouselAutoplayTriggerBaseProps, type CarouselAutoplayTriggerProps, CarouselContext, type CarouselContextProps, CarouselControl, type CarouselControlBaseProps, type CarouselControlProps, type CarouselDragStatusDetails, CarouselIndicator, type CarouselIndicatorBaseProps, CarouselIndicatorGroup, type CarouselIndicatorGroupBaseProps, type CarouselIndicatorGroupProps, type CarouselIndicatorProps, CarouselItem, type CarouselItemBaseProps, CarouselItemGroup, type CarouselItemGroupBaseProps, type CarouselItemGroupProps, type CarouselItemProps, CarouselNextTrigger, type CarouselNextTriggerBaseProps, type CarouselNextTriggerProps, type CarouselPageChangeDetails, CarouselPrevTrigger, type CarouselPrevTriggerBaseProps, type CarouselPrevTriggerProps, CarouselProgressText, type CarouselProgressTextBaseProps, type CarouselProgressTextProps, CarouselRoot, type CarouselRootBaseProps, type CarouselRootProps, CarouselRootProvider, type CarouselRootProviderBaseProps, type CarouselRootProviderProps, type UseCarouselContext, type UseCarouselProps, type UseCarouselReturn, carouselAnatomy, useCarousel, useCarouselContext };
|