@zayne-labs/ui-react 0.9.16 → 0.9.18
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/esm/await-Fe4LFRKd.js +89 -0
- package/dist/esm/await-Fe4LFRKd.js.map +1 -0
- package/dist/esm/card-DRjs-vtv.js +54 -0
- package/dist/esm/card-DRjs-vtv.js.map +1 -0
- package/dist/esm/carousel-Dznupnx8.js +270 -0
- package/dist/esm/carousel-Dznupnx8.js.map +1 -0
- package/dist/esm/chunk-Cl8Af3a2.js +11 -0
- package/dist/esm/cn-_FbtIrlZ.js +8 -0
- package/dist/esm/cn-_FbtIrlZ.js.map +1 -0
- package/dist/esm/common-BYWy8Q78.js +0 -0
- package/dist/esm/components/common/await/index.d.ts +6 -14
- package/dist/esm/components/common/await/index.js +10 -8
- package/dist/esm/components/common/error-boundary/index.d.ts +2 -17
- package/dist/esm/components/common/error-boundary/index.js +6 -4
- package/dist/esm/components/common/for/index.d.ts +2 -10
- package/dist/esm/components/common/for/index.js +3 -4
- package/dist/esm/components/common/index.d.ts +11 -13
- package/dist/esm/components/common/index.js +13 -14
- package/dist/esm/components/common/show/index.d.ts +2 -26
- package/dist/esm/components/common/show/index.js +7 -5
- package/dist/esm/components/common/slot/index.d.ts +2 -12
- package/dist/esm/components/common/slot/index.js +3 -4
- package/dist/esm/components/common/suspense-with-boundary/index.d.ts +3 -11
- package/dist/esm/components/common/suspense-with-boundary/index.js +4 -5
- package/dist/esm/components/common/switch/index.d.ts +2 -25
- package/dist/esm/components/common/switch/index.js +7 -5
- package/dist/esm/components/common/teleport/index.d.ts +2 -12
- package/dist/esm/components/common/teleport/index.js +3 -4
- package/dist/esm/components/ui/card/index.d.ts +2 -17
- package/dist/esm/components/ui/card/index.js +5 -6
- package/dist/esm/components/ui/carousel/index.d.ts +2 -95
- package/dist/esm/components/ui/carousel/index.js +18 -16
- package/dist/esm/components/ui/drag-scroll/index.d.ts +2 -21
- package/dist/esm/components/ui/drag-scroll/index.js +4 -5
- package/dist/esm/components/ui/drop-zone/index.d.ts +3 -11
- package/dist/esm/components/ui/drop-zone/index.js +18 -16
- package/dist/esm/components/ui/form/index.d.ts +2 -228
- package/dist/esm/components/ui/form/index.js +10 -8
- package/dist/esm/components/ui/index.d.ts +7 -11
- package/dist/esm/components/ui/index.js +19 -20
- package/dist/esm/drag-scroll-BLjij7aI.js +111 -0
- package/dist/esm/drag-scroll-BLjij7aI.js.map +1 -0
- package/dist/esm/drop-zone-_YK9C3Xj.js +313 -0
- package/dist/esm/drop-zone-_YK9C3Xj.js.map +1 -0
- package/dist/esm/error-boundary-B3ycUZ1t.js +126 -0
- package/dist/esm/error-boundary-B3ycUZ1t.js.map +1 -0
- package/dist/esm/for-aTw1TgJo.js +42 -0
- package/dist/esm/for-aTw1TgJo.js.map +1 -0
- package/dist/esm/form-DytCfL6R.js +590 -0
- package/dist/esm/form-DytCfL6R.js.map +1 -0
- package/dist/esm/getSlot-BIcGgBwN.js +85 -0
- package/dist/esm/getSlot-BIcGgBwN.js.map +1 -0
- package/dist/esm/{getSlotMap-DTkxtGhd.d.ts → getSlotMap-DA_uhXqU.d.ts} +17 -16
- package/dist/esm/index--1COprHP.d.ts +32 -0
- package/dist/esm/index-1UCPJf7B.d.ts +19 -0
- package/dist/esm/index-ASoFjmZ6.d.ts +196 -0
- package/dist/esm/index-BC0r1cBF.d.ts +104 -0
- package/dist/esm/index-BSJ30pGj.d.ts +68 -0
- package/dist/esm/{for-BH5FhFuV.d.ts → index-BhpBx8dH.d.ts} +14 -6
- package/dist/esm/index-BuSQsDCX.d.ts +22 -0
- package/dist/esm/index-C0XZoIZD.d.ts +35 -0
- package/dist/esm/index-CTZr4PTO.d.ts +24 -0
- package/dist/esm/index-CqlM1M0j.d.ts +14 -0
- package/dist/esm/index-D-j2Cn1J.d.ts +61 -0
- package/dist/esm/index-DQ1yFGd2.d.ts +229 -0
- package/dist/esm/index-DnaUCh8d.d.ts +15 -0
- package/dist/esm/index-TBkPiipk.d.ts +49 -0
- package/dist/esm/lib/utils/index.d.ts +3 -61
- package/dist/esm/lib/utils/index.js +4 -5
- package/dist/esm/show-BgYrfIxJ.js +41 -0
- package/dist/esm/show-BgYrfIxJ.js.map +1 -0
- package/dist/esm/slot-RXTKo4L7.js +58 -0
- package/dist/esm/slot-RXTKo4L7.js.map +1 -0
- package/dist/esm/suspense-with-boundary-TrQxYRG6.js +21 -0
- package/dist/esm/suspense-with-boundary-TrQxYRG6.js.map +1 -0
- package/dist/esm/switch-PF5xTJfr.js +42 -0
- package/dist/esm/switch-PF5xTJfr.js.map +1 -0
- package/dist/esm/teleport-dlSjWj_t.js +32 -0
- package/dist/esm/teleport-dlSjWj_t.js.map +1 -0
- package/dist/esm/utils-D4YNWj2X.js +89 -0
- package/dist/esm/utils-D4YNWj2X.js.map +1 -0
- package/package.json +4 -3
- package/dist/esm/await-parts-BJ6C-y1f.d.ts +0 -36
- package/dist/esm/chunk-6QJYHPBL.js +0 -45
- package/dist/esm/chunk-6QJYHPBL.js.map +0 -1
- package/dist/esm/chunk-BJ7WR4XW.js +0 -274
- package/dist/esm/chunk-BJ7WR4XW.js.map +0 -1
- package/dist/esm/chunk-CWUEUCR5.js +0 -3
- package/dist/esm/chunk-CWUEUCR5.js.map +0 -1
- package/dist/esm/chunk-D6QZA3UT.js +0 -56
- package/dist/esm/chunk-D6QZA3UT.js.map +0 -1
- package/dist/esm/chunk-EYWTW54R.js +0 -42
- package/dist/esm/chunk-EYWTW54R.js.map +0 -1
- package/dist/esm/chunk-G5BNZM66.js +0 -32
- package/dist/esm/chunk-G5BNZM66.js.map +0 -1
- package/dist/esm/chunk-JC52CA2O.js +0 -113
- package/dist/esm/chunk-JC52CA2O.js.map +0 -1
- package/dist/esm/chunk-M7YXNGT6.js +0 -48
- package/dist/esm/chunk-M7YXNGT6.js.map +0 -1
- package/dist/esm/chunk-MRYXZN2P.js +0 -336
- package/dist/esm/chunk-MRYXZN2P.js.map +0 -1
- package/dist/esm/chunk-MT2MQDK2.js +0 -13
- package/dist/esm/chunk-MT2MQDK2.js.map +0 -1
- package/dist/esm/chunk-N4274N5K.js +0 -50
- package/dist/esm/chunk-N4274N5K.js.map +0 -1
- package/dist/esm/chunk-NXZZXJRH.js +0 -41
- package/dist/esm/chunk-NXZZXJRH.js.map +0 -1
- package/dist/esm/chunk-OHG7GB7O.js +0 -8
- package/dist/esm/chunk-OHG7GB7O.js.map +0 -1
- package/dist/esm/chunk-P5QP73HG.js +0 -626
- package/dist/esm/chunk-P5QP73HG.js.map +0 -1
- package/dist/esm/chunk-PZ5AY32C.js +0 -9
- package/dist/esm/chunk-PZ5AY32C.js.map +0 -1
- package/dist/esm/chunk-V5ZPMMIH.js +0 -121
- package/dist/esm/chunk-V5ZPMMIH.js.map +0 -1
- package/dist/esm/chunk-YO5LJ7ZJ.js +0 -74
- package/dist/esm/chunk-YO5LJ7ZJ.js.map +0 -1
- package/dist/esm/chunk-YSDKXBU7.js +0 -68
- package/dist/esm/chunk-YSDKXBU7.js.map +0 -1
- package/dist/esm/components/common/await/index.js.map +0 -1
- package/dist/esm/components/common/error-boundary/index.js.map +0 -1
- package/dist/esm/components/common/for/index.js.map +0 -1
- package/dist/esm/components/common/index.js.map +0 -1
- package/dist/esm/components/common/show/index.js.map +0 -1
- package/dist/esm/components/common/slot/index.js.map +0 -1
- package/dist/esm/components/common/suspense-with-boundary/index.js.map +0 -1
- package/dist/esm/components/common/switch/index.js.map +0 -1
- package/dist/esm/components/common/teleport/index.js.map +0 -1
- package/dist/esm/components/ui/card/index.js.map +0 -1
- package/dist/esm/components/ui/carousel/index.js.map +0 -1
- package/dist/esm/components/ui/drag-scroll/index.js.map +0 -1
- package/dist/esm/components/ui/drop-zone/index.js.map +0 -1
- package/dist/esm/components/ui/form/index.js.map +0 -1
- package/dist/esm/components/ui/index.js.map +0 -1
- package/dist/esm/drop-zone-parts-CvseSoXA.d.ts +0 -186
- package/dist/esm/error-boundary-BD0X61Sg.d.ts +0 -28
- package/dist/esm/lib/utils/index.js.map +0 -1
- package/dist/esm/types-mdfDDNrr.d.ts +0 -25
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import "../../utils-D4YNWj2X.js";
|
|
2
|
+
import "../../getSlot-BIcGgBwN.js";
|
|
3
|
+
import { ErrorBoundary } from "../../error-boundary-B3ycUZ1t.js";
|
|
4
|
+
import { slot_parts_exports } from "../../slot-RXTKo4L7.js";
|
|
5
|
+
import { await_parts_exports } from "../../await-Fe4LFRKd.js";
|
|
6
|
+
import { For, ForWithWrapper } from "../../for-aTw1TgJo.js";
|
|
7
|
+
import { show_parts_exports } from "../../show-BgYrfIxJ.js";
|
|
8
|
+
import { SuspenseWithBoundary } from "../../suspense-with-boundary-TrQxYRG6.js";
|
|
9
|
+
import { switch_parts_exports } from "../../switch-PF5xTJfr.js";
|
|
10
|
+
import { Teleport } from "../../teleport-dlSjWj_t.js";
|
|
11
|
+
import "../../common-BYWy8Q78.js";
|
|
12
|
+
|
|
13
|
+
export { await_parts_exports as Await, ErrorBoundary, For, ForWithWrapper, show_parts_exports as Show, slot_parts_exports as Slot, SuspenseWithBoundary, switch_parts_exports as Switch, Teleport };
|
|
@@ -1,26 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
type ShowProps<TWhen> = {
|
|
4
|
-
children: React.ReactNode | ((value: TWhen) => React.ReactNode);
|
|
5
|
-
fallback?: React.ReactNode;
|
|
6
|
-
when: false | TWhen | null | undefined;
|
|
7
|
-
};
|
|
8
|
-
declare function ShowRoot<TWhen>(props: ShowProps<TWhen>): React.ReactNode;
|
|
9
|
-
declare function ShowContent({ children }: {
|
|
10
|
-
children: React.ReactNode;
|
|
11
|
-
}): React.ReactNode;
|
|
12
|
-
declare namespace ShowContent {
|
|
13
|
-
var slotSymbol: symbol;
|
|
14
|
-
}
|
|
15
|
-
declare function ShowFallback({ children }: {
|
|
16
|
-
children: React.ReactNode;
|
|
17
|
-
}): React.ReactNode;
|
|
18
|
-
declare namespace ShowFallback {
|
|
19
|
-
var slotSymbol: symbol;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
declare namespace showParts {
|
|
23
|
-
export { ShowContent as Content, ShowFallback as Fallback, ShowFallback as Otherwise, ShowRoot as Root };
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export { showParts as Show, ShowContent, ShowFallback, ShowRoot };
|
|
1
|
+
import { ShowContent$1 as ShowContent, ShowFallback$1 as ShowFallback, ShowRoot$1 as ShowRoot, show_parts_d_exports } from "../../../index-C0XZoIZD.js";
|
|
2
|
+
export { show_parts_d_exports as Show, ShowContent, ShowFallback, ShowRoot };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import "../../../getSlot-BIcGgBwN.js";
|
|
5
|
+
import { ShowContent, ShowFallback, ShowRoot, show_parts_exports } from "../../../show-BgYrfIxJ.js";
|
|
6
|
+
|
|
7
|
+
export { show_parts_exports as Show, ShowContent, ShowFallback, ShowRoot };
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
type SlotProps = InferProps<HTMLElement>;
|
|
5
|
-
declare function SlotSlottable({ children }: Pick<SlotProps, "children">): React.ReactNode;
|
|
6
|
-
declare function SlotRoot(props: SlotProps): React.JSX.Element | null;
|
|
7
|
-
|
|
8
|
-
declare namespace slotParts {
|
|
9
|
-
export { SlotRoot as Root, SlotSlottable as Slottable };
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export { slotParts as Slot, SlotRoot, SlotSlottable };
|
|
1
|
+
import { SlotRoot$1 as SlotRoot, SlotSlottable$1 as SlotSlottable, slot_parts_d_exports } from "../../../index-1UCPJf7B.js";
|
|
2
|
+
export { slot_parts_d_exports as Slot, SlotRoot, SlotSlottable };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { SlotRoot, SlotSlottable, slot_parts_exports } from "../../../slot-RXTKo4L7.js";
|
|
2
|
+
|
|
3
|
+
export { slot_parts_exports as Slot, SlotRoot, SlotSlottable };
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
type SuspenseWithBoundaryProps = {
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
errorFallback?: ErrorBoundaryProps["fallback"];
|
|
7
|
-
fallback?: React.ReactNode;
|
|
8
|
-
};
|
|
9
|
-
declare function SuspenseWithBoundary(props: SuspenseWithBoundaryProps): React$1.JSX.Element;
|
|
10
|
-
|
|
11
|
-
export { SuspenseWithBoundary, type SuspenseWithBoundaryProps };
|
|
1
|
+
import "../../../index-BSJ30pGj.js";
|
|
2
|
+
import { SuspenseWithBoundary$1 as SuspenseWithBoundary, SuspenseWithBoundaryProps } from "../../../index-CqlM1M0j.js";
|
|
3
|
+
export { SuspenseWithBoundary, SuspenseWithBoundaryProps };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import "../../../error-boundary-B3ycUZ1t.js";
|
|
2
|
+
import { SuspenseWithBoundary } from "../../../suspense-with-boundary-TrQxYRG6.js";
|
|
3
|
+
|
|
4
|
+
export { SuspenseWithBoundary };
|
|
@@ -1,25 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
type ValidSwitchComponentType = React.ReactElement<SwitchMatchProps<unknown>>;
|
|
4
|
-
type SwitchProps = {
|
|
5
|
-
children: ValidSwitchComponentType | ValidSwitchComponentType[];
|
|
6
|
-
value?: unknown;
|
|
7
|
-
};
|
|
8
|
-
declare function SwitchRoot(props: SwitchProps): React.ReactNode;
|
|
9
|
-
type SwitchMatchProps<TWhen> = {
|
|
10
|
-
children: React.ReactNode | ((value: TWhen) => React.ReactNode);
|
|
11
|
-
when: false | TWhen | null | undefined;
|
|
12
|
-
};
|
|
13
|
-
declare function SwitchMatch<TWhen>(props: SwitchMatchProps<TWhen>): React.ReactNode;
|
|
14
|
-
declare function SwitchDefault({ children }: {
|
|
15
|
-
children: React.ReactNode;
|
|
16
|
-
}): React.ReactNode;
|
|
17
|
-
declare namespace SwitchDefault {
|
|
18
|
-
var slotSymbol: symbol;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
declare namespace switchParts {
|
|
22
|
-
export { SwitchDefault as Default, SwitchMatch as Match, SwitchRoot as Root };
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export { switchParts as Switch, SwitchDefault, SwitchMatch, SwitchRoot };
|
|
1
|
+
import { SwitchDefault$1 as SwitchDefault, SwitchMatch$1 as SwitchMatch, SwitchRoot$1 as SwitchRoot, switch_parts_d_exports } from "../../../index--1COprHP.js";
|
|
2
|
+
export { switch_parts_d_exports as Switch, SwitchDefault, SwitchMatch, SwitchRoot };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import "../../../getSlot-BIcGgBwN.js";
|
|
5
|
+
import { SwitchDefault, SwitchMatch, SwitchRoot, switch_parts_exports } from "../../../switch-PF5xTJfr.js";
|
|
6
|
+
|
|
7
|
+
export { switch_parts_exports as Switch, SwitchDefault, SwitchMatch, SwitchRoot };
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
type ValidHtmlTags = keyof HTMLElementTagNameMap;
|
|
5
|
-
type PortalProps = {
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
insertPosition?: InsertPosition;
|
|
8
|
-
to: AnyString | HTMLElement | ValidHtmlTags | null;
|
|
9
|
-
};
|
|
10
|
-
declare function Teleport(props: PortalProps): React.ReactPortal | null;
|
|
11
|
-
|
|
12
|
-
export { Teleport };
|
|
1
|
+
import { Teleport$1 as Teleport } from "../../../index-DnaUCh8d.js";
|
|
2
|
+
export { Teleport };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { Teleport } from "../../../teleport-dlSjWj_t.js";
|
|
2
|
+
|
|
3
|
+
export { Teleport };
|
|
@@ -1,17 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
declare function CardRoot<TElement extends React.ElementType = "article">(props: PolymorphicProps<TElement>): React.JSX.Element;
|
|
5
|
-
declare function CardHeader<TElement extends React.ElementType = "header">(props: PolymorphicProps<TElement>): React.JSX.Element;
|
|
6
|
-
declare function CardTitle<TElement extends React.ElementType = "h3">(props: PolymorphicProps<TElement>): React.JSX.Element;
|
|
7
|
-
declare function CardDescription<TElement extends React.ElementType = "p">(props: PolymorphicProps<TElement>): React.JSX.Element;
|
|
8
|
-
declare function CardContent<TElement extends React.ElementType = "div">(props: PolymorphicProps<TElement>): React.JSX.Element;
|
|
9
|
-
declare function CardFooter<TElement extends React.ElementType = "footer">(props: PolymorphicProps<TElement, {
|
|
10
|
-
asChild?: boolean;
|
|
11
|
-
}>): React.JSX.Element;
|
|
12
|
-
|
|
13
|
-
declare namespace cardParts {
|
|
14
|
-
export { CardContent as Content, CardDescription as Description, CardFooter as Footer, CardHeader as Header, CardRoot as Root, CardTitle as Title };
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export { cardParts as Card, CardContent, CardDescription, CardFooter, CardHeader, CardRoot, CardTitle };
|
|
1
|
+
import { CardContent$1 as CardContent, CardDescription$1 as CardDescription, CardFooter$1 as CardFooter, CardHeader$1 as CardHeader, CardRoot$1 as CardRoot, CardTitle$1 as CardTitle, card_parts_d_exports } from "../../../index-BuSQsDCX.js";
|
|
2
|
+
export { card_parts_d_exports as Card, CardContent, CardDescription, CardFooter, CardHeader, CardRoot, CardTitle };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import "../../../slot-RXTKo4L7.js";
|
|
2
|
+
import "../../../cn-_FbtIrlZ.js";
|
|
3
|
+
import { CardContent, CardDescription, CardFooter, CardHeader, CardRoot, CardTitle, card_parts_exports } from "../../../card-DRjs-vtv.js";
|
|
4
|
+
|
|
5
|
+
export { card_parts_exports as Card, CardContent, CardDescription, CardFooter, CardHeader, CardRoot, CardTitle };
|
|
@@ -1,95 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import { StoreApi } from '@zayne-labs/toolkit-core';
|
|
4
|
-
import { UnionDiscriminator, Prettify } from '@zayne-labs/toolkit-type-helpers';
|
|
5
|
-
|
|
6
|
-
type ImagesType = Array<Record<string, string>> | string[];
|
|
7
|
-
type CarouselStore<TImages extends ImagesType = ImagesType> = {
|
|
8
|
-
actions: {
|
|
9
|
-
goToNextSlide: () => void;
|
|
10
|
-
goToPreviousSlide: () => void;
|
|
11
|
-
goToSlide: (newValue: number) => void;
|
|
12
|
-
};
|
|
13
|
-
currentSlide: number;
|
|
14
|
-
images: TImages;
|
|
15
|
-
maxSlide: number;
|
|
16
|
-
};
|
|
17
|
-
type CarouselStoreApi<TImages extends ImagesType = ImagesType> = StoreApi<CarouselStore<TImages>>;
|
|
18
|
-
type CarouselProviderProps<TImages extends ImagesType = ImagesType> = {
|
|
19
|
-
children: React.ReactNode;
|
|
20
|
-
images: CarouselStore<TImages>["images"];
|
|
21
|
-
onSlideBtnClick?: () => void;
|
|
22
|
-
};
|
|
23
|
-
type CarouselContentProps = {
|
|
24
|
-
autoSlideInterval?: number;
|
|
25
|
-
children: React.ReactNode;
|
|
26
|
-
classNames?: {
|
|
27
|
-
base?: string;
|
|
28
|
-
scrollContainer?: string;
|
|
29
|
-
};
|
|
30
|
-
hasAutoSlide?: boolean;
|
|
31
|
-
shouldPauseOnHover?: boolean;
|
|
32
|
-
};
|
|
33
|
-
type CarouselButtonsProps = {
|
|
34
|
-
classNames?: {
|
|
35
|
-
base?: string;
|
|
36
|
-
defaultIcon?: string;
|
|
37
|
-
iconContainer?: string;
|
|
38
|
-
};
|
|
39
|
-
icon?: React.ReactElement;
|
|
40
|
-
variant: "next" | "prev";
|
|
41
|
-
};
|
|
42
|
-
type CarouselControlProps = {
|
|
43
|
-
classNames?: {
|
|
44
|
-
base?: string;
|
|
45
|
-
defaultIcon?: string;
|
|
46
|
-
iconContainer?: string;
|
|
47
|
-
};
|
|
48
|
-
icon?: UnionDiscriminator<[
|
|
49
|
-
{
|
|
50
|
-
icon?: React.ReactElement;
|
|
51
|
-
iconType: "nextIcon" | "prevIcon";
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
next?: React.ReactElement;
|
|
55
|
-
prev?: React.ReactElement;
|
|
56
|
-
}
|
|
57
|
-
]>;
|
|
58
|
-
};
|
|
59
|
-
type CarouselIndicatorProps = {
|
|
60
|
-
classNames?: {
|
|
61
|
-
base?: string;
|
|
62
|
-
button?: string;
|
|
63
|
-
isActive?: string;
|
|
64
|
-
};
|
|
65
|
-
currentIndex: number;
|
|
66
|
-
};
|
|
67
|
-
type RenderPropFn<TArrayItem> = (item: NoInfer<TArrayItem>, index: number, array: NoInfer<TArrayItem[]>) => React.ReactNode;
|
|
68
|
-
type BaseWrapperProps<TArrayItem> = Prettify<DiscriminatedRenderProps<RenderPropFn<TArrayItem>> & {
|
|
69
|
-
each?: TArrayItem[];
|
|
70
|
-
}>;
|
|
71
|
-
type CarouselWrapperProps<TArrayItem> = BaseWrapperProps<TArrayItem> & {
|
|
72
|
-
className?: string;
|
|
73
|
-
};
|
|
74
|
-
type OtherCarouselProps = {
|
|
75
|
-
children?: React.ReactNode;
|
|
76
|
-
className?: string;
|
|
77
|
-
style?: React.CSSProperties;
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
declare function CarouselContent<TElement extends React$1.ElementType = "article">(props: PolymorphicProps<TElement, CarouselContentProps>): React$1.JSX.Element;
|
|
81
|
-
declare function CarouselButton(props: CarouselButtonsProps): React$1.JSX.Element;
|
|
82
|
-
declare function CarouselControls(props: CarouselControlProps): React$1.JSX.Element;
|
|
83
|
-
declare function CarouselItemGroup<TArrayItem>(props: CarouselWrapperProps<TArrayItem>): React$1.JSX.Element;
|
|
84
|
-
declare function CarouselItem({ children, className, ...restOfProps }: OtherCarouselProps): React$1.JSX.Element;
|
|
85
|
-
declare function CarouselCaption<TElement extends React$1.ElementType = "div">(props: PolymorphicProps<TElement, OtherCarouselProps>): React$1.JSX.Element;
|
|
86
|
-
declare function CarouselIndicatorGroup<TArrayItem>(props: CarouselWrapperProps<TArrayItem>): React$1.JSX.Element;
|
|
87
|
-
declare function CarouselIndicator(props: CarouselIndicatorProps): React$1.JSX.Element;
|
|
88
|
-
|
|
89
|
-
declare function CarouselContextProvider<TImages extends ImagesType>(props: CarouselProviderProps<TImages>): React$1.JSX.Element;
|
|
90
|
-
|
|
91
|
-
declare namespace carouselParts {
|
|
92
|
-
export { CarouselButton as Button, CarouselCaption as Caption, CarouselContent as Content, CarouselControls as Controls, CarouselIndicator as Indicator, CarouselIndicatorGroup as IndicatorGroup, CarouselItem as Item, CarouselItemGroup as ItemGroup, CarouselContextProvider as Root };
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export { carouselParts as Carousel, CarouselButton, type CarouselButtonsProps, CarouselCaption, CarouselContent, type CarouselContentProps, type CarouselControlProps, CarouselControls, CarouselIndicator, CarouselIndicatorGroup, type CarouselIndicatorProps, CarouselItem, CarouselItemGroup, type CarouselProviderProps, type CarouselStore, type CarouselStoreApi, type CarouselWrapperProps, type ImagesType, type OtherCarouselProps };
|
|
1
|
+
import { CarouselButton$1 as CarouselButton, CarouselButtonsProps, CarouselCaption$1 as CarouselCaption, CarouselContent$1 as CarouselContent, CarouselContentProps, CarouselControlProps, CarouselControls$1 as CarouselControls, CarouselIndicator$1 as CarouselIndicator, CarouselIndicatorGroup$1 as CarouselIndicatorGroup, CarouselIndicatorProps, CarouselItem$1 as CarouselItem, CarouselItemGroup$1 as CarouselItemGroup, CarouselProviderProps, CarouselStore, CarouselStoreApi, CarouselWrapperProps, ImagesType, OtherCarouselProps, carousel_parts_d_exports } from "../../../index-BC0r1cBF.js";
|
|
2
|
+
export { carousel_parts_d_exports as Carousel, CarouselButton, CarouselButtonsProps, CarouselCaption, CarouselContent, CarouselContentProps, CarouselControlProps, CarouselControls, CarouselIndicator, CarouselIndicatorGroup, CarouselIndicatorProps, CarouselItem, CarouselItemGroup, CarouselProviderProps, CarouselStore, CarouselStoreApi, CarouselWrapperProps, ImagesType, OtherCarouselProps };
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import "../../../utils-D4YNWj2X.js";
|
|
5
|
+
import "../../../getSlot-BIcGgBwN.js";
|
|
6
|
+
import "../../../error-boundary-B3ycUZ1t.js";
|
|
7
|
+
import "../../../slot-RXTKo4L7.js";
|
|
8
|
+
import "../../../await-Fe4LFRKd.js";
|
|
9
|
+
import "../../../for-aTw1TgJo.js";
|
|
10
|
+
import "../../../show-BgYrfIxJ.js";
|
|
11
|
+
import "../../../suspense-with-boundary-TrQxYRG6.js";
|
|
12
|
+
import "../../../switch-PF5xTJfr.js";
|
|
13
|
+
import "../../../teleport-dlSjWj_t.js";
|
|
14
|
+
import "../../../common-BYWy8Q78.js";
|
|
15
|
+
import "../../../cn-_FbtIrlZ.js";
|
|
16
|
+
import { CarouselButton, CarouselCaption, CarouselContent, CarouselControls, CarouselIndicator, CarouselIndicatorGroup, CarouselItem, CarouselItemGroup, carousel_parts_exports } from "../../../carousel-Dznupnx8.js";
|
|
17
|
+
|
|
18
|
+
export { carousel_parts_exports as Carousel, CarouselButton, CarouselCaption, CarouselContent, CarouselControls, CarouselIndicator, CarouselIndicatorGroup, CarouselItem, CarouselItemGroup };
|
|
@@ -1,21 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
type ItemProps<TItemElement extends HTMLElement> = Omit<InferProps<TItemElement>, "children">;
|
|
4
|
-
type RootProps<TElement extends HTMLElement> = Omit<InferProps<TElement>, "children">;
|
|
5
|
-
type DragScrollProps<TElement extends HTMLElement, TItemElement extends HTMLElement> = {
|
|
6
|
-
classNames?: {
|
|
7
|
-
base?: string;
|
|
8
|
-
item?: string;
|
|
9
|
-
};
|
|
10
|
-
extraItemProps?: ItemProps<TItemElement>;
|
|
11
|
-
extraRootProps?: InferProps<TElement>;
|
|
12
|
-
orientation?: "both" | "horizontal" | "vertical";
|
|
13
|
-
usage?: "allScreens" | "desktopOnly" | "mobileAndTabletOnly";
|
|
14
|
-
};
|
|
15
|
-
type DragScrollResult<TElement extends HTMLElement, TItemElement extends HTMLElement> = {
|
|
16
|
-
getItemProps: (itemProps?: ItemProps<TItemElement>) => ItemProps<TItemElement>;
|
|
17
|
-
getRootProps: (rootProps?: RootProps<TElement>) => RootProps<TElement>;
|
|
18
|
-
};
|
|
19
|
-
declare const useDragScroll: <TElement extends HTMLElement, TItemElement extends HTMLElement = HTMLElement>(props?: DragScrollProps<TElement, TItemElement>) => DragScrollResult<TElement, TItemElement>;
|
|
20
|
-
|
|
21
|
-
export { useDragScroll };
|
|
1
|
+
import { useDragScroll$1 as useDragScroll } from "../../../index-CTZr4PTO.js";
|
|
2
|
+
export { useDragScroll };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import "../../../cn-_FbtIrlZ.js";
|
|
2
|
+
import { useDragScroll } from "../../../drag-scroll-BLjij7aI.js";
|
|
3
|
+
|
|
4
|
+
export { useDragScroll };
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import '../../../getSlotMap-DTkxtGhd.js';
|
|
5
|
-
import '@zayne-labs/toolkit-type-helpers';
|
|
6
|
-
import '@zayne-labs/toolkit-react/utils';
|
|
7
|
-
import '@zayne-labs/toolkit-core';
|
|
8
|
-
|
|
9
|
-
declare const useDropZoneContext: () => UseDropZoneResult;
|
|
10
|
-
|
|
11
|
-
export { UseDropZoneResult, useDropZoneContext };
|
|
1
|
+
import "../../../getSlotMap-DA_uhXqU.js";
|
|
2
|
+
import { ContainerProps, DropZoneActions, DropZoneContainer$1 as DropZoneContainer, DropZoneContext$1 as DropZoneContext, DropZoneImagePreview$1 as DropZoneImagePreview, DropZoneInput$1 as DropZoneInput, DropZoneRenderPropType, DropZoneRoot$1 as DropZoneRoot, DropZoneRootProps, DropZoneState, FileWithPreview, InputProps, UseDropZoneProps, UseDropZoneResult, drop_zone_parts_d_exports, useDropZone$1 as useDropZone, useDropZoneContext$1 as useDropZoneContext } from "../../../index-ASoFjmZ6.js";
|
|
3
|
+
export { ContainerProps, drop_zone_parts_d_exports as DropZone, DropZoneActions, DropZoneContainer, DropZoneContext, DropZoneImagePreview, DropZoneInput, DropZoneRenderPropType, DropZoneRoot, DropZoneRootProps, DropZoneState, FileWithPreview, InputProps, UseDropZoneProps, UseDropZoneResult, useDropZone, useDropZoneContext };
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import "../../../utils-D4YNWj2X.js";
|
|
5
|
+
import "../../../getSlot-BIcGgBwN.js";
|
|
6
|
+
import "../../../error-boundary-B3ycUZ1t.js";
|
|
7
|
+
import "../../../slot-RXTKo4L7.js";
|
|
8
|
+
import "../../../await-Fe4LFRKd.js";
|
|
9
|
+
import "../../../for-aTw1TgJo.js";
|
|
10
|
+
import "../../../show-BgYrfIxJ.js";
|
|
11
|
+
import "../../../suspense-with-boundary-TrQxYRG6.js";
|
|
12
|
+
import "../../../switch-PF5xTJfr.js";
|
|
13
|
+
import "../../../teleport-dlSjWj_t.js";
|
|
14
|
+
import "../../../common-BYWy8Q78.js";
|
|
15
|
+
import "../../../cn-_FbtIrlZ.js";
|
|
16
|
+
import { DropZoneContainer, DropZoneContext, DropZoneImagePreview, DropZoneInput, DropZoneRoot, drop_zone_parts_exports, useDropZone, useDropZoneContext } from "../../../drop-zone-_YK9C3Xj.js";
|
|
17
|
+
|
|
18
|
+
export { drop_zone_parts_exports as DropZone, DropZoneContainer, DropZoneContext, DropZoneImagePreview, DropZoneInput, DropZoneRoot, useDropZone, useDropZoneContext };
|