@zayne-labs/ui-react 0.10.7 → 0.10.8
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-Da5w2vIc.js → await-DDgVzpvI.js} +8 -7
- package/dist/esm/{await-Da5w2vIc.js.map → await-DDgVzpvI.js.map} +1 -1
- package/dist/esm/common/await/index.d.ts +3 -3
- package/dist/esm/common/await/index.js +1 -1
- package/dist/esm/common/error-boundary/index.d.ts +1 -1
- package/dist/esm/common/for/index.d.ts +1 -1
- package/dist/esm/common/index.d.ts +5 -5
- package/dist/esm/common/index.js +1 -1
- package/dist/esm/common/slot/index.d.ts +1 -1
- package/dist/esm/common/suspense-with-boundary/index.d.ts +2 -2
- package/dist/esm/{index-ATxxr1XS.d.ts → index-B4K9g2v-.d.ts} +4 -4
- package/dist/esm/{index-BWD8WVO-.d.ts → index-BoZe50e8.d.ts} +26 -26
- package/dist/esm/{index-CuJVxLEc.d.ts → index-Bx2BzRRJ.d.ts} +3 -3
- package/dist/esm/{index-BAywimP3.d.ts → index-C8_O0zCb.d.ts} +3 -3
- package/dist/esm/{index-C889t8UO.d.ts → index-DWl-QZ3Q.d.ts} +12 -8
- package/dist/esm/{index-Dpt8KDv1.d.ts → index-DZxgPnK1.d.ts} +10 -10
- package/dist/esm/{index-B4YvRWlE.d.ts → index-DbiE_few.d.ts} +19 -19
- package/dist/esm/{index-BT0UvcRp.d.ts → index-Df39YVRj.d.ts} +3 -3
- package/dist/esm/{index-DVBtz0VB.d.ts → index-SX3cnKP6.d.ts} +9 -9
- package/dist/esm/ui/card/index.d.ts +1 -1
- package/dist/esm/ui/carousel/index.d.ts +1 -1
- package/dist/esm/ui/carousel/index.js +1 -1
- package/dist/esm/ui/drop-zone/index.d.ts +1 -1
- package/dist/esm/ui/drop-zone/index.js +1 -1
- package/dist/esm/ui/form/index.d.ts +1 -1
- package/dist/esm/ui/index.d.ts +4 -4
- package/dist/esm/ui/index.js +1 -1
- package/package.json +1 -1
|
@@ -54,12 +54,14 @@ function AwaitRootInner(props) {
|
|
|
54
54
|
}
|
|
55
55
|
function AwaitSuccess(props) {
|
|
56
56
|
const { children } = props;
|
|
57
|
-
if (
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
if (isFunction(children)) {
|
|
58
|
+
const { result } = useAwaitContext();
|
|
59
|
+
return children(result);
|
|
60
|
+
}
|
|
61
|
+
return children;
|
|
60
62
|
}
|
|
61
63
|
Object.assign(AwaitSuccess, withSlotNameAndSymbol("default"));
|
|
62
|
-
|
|
64
|
+
const AwaitError = withSlotNameAndSymbol("error", (props) => {
|
|
63
65
|
const { asChild, children } = props;
|
|
64
66
|
const errorBoundaryContext = useErrorBoundaryContext();
|
|
65
67
|
const Component$1 = asChild ? SlotRoot : Fragment;
|
|
@@ -68,8 +70,7 @@ function AwaitError(props) {
|
|
|
68
70
|
...asChild && errorBoundaryContext,
|
|
69
71
|
children: resolvedChildren
|
|
70
72
|
});
|
|
71
|
-
}
|
|
72
|
-
Object.assign(AwaitError, withSlotNameAndSymbol("error"));
|
|
73
|
+
});
|
|
73
74
|
const AwaitPending = withSlotNameAndSymbol("pending");
|
|
74
75
|
|
|
75
76
|
//#endregion
|
|
@@ -83,4 +84,4 @@ var await_parts_exports = __export({
|
|
|
83
84
|
|
|
84
85
|
//#endregion
|
|
85
86
|
export { AwaitError, AwaitPending, AwaitRoot, AwaitSuccess, await_parts_exports, useAwaitContext };
|
|
86
|
-
//# sourceMappingURL=await-
|
|
87
|
+
//# sourceMappingURL=await-DDgVzpvI.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"await-
|
|
1
|
+
{"version":3,"file":"await-DDgVzpvI.js","names":["ReactFragment","Component","Slot.Root"],"sources":["../../src/components/common/await/await-context.ts","../../src/components/common/await/await.tsx","../../src/components/common/await/await-parts.ts"],"sourcesContent":["import { createCustomContext } from \"@zayne-labs/toolkit-react\";\n\nexport type AwaitContextType<TValue = unknown> = {\n\tpromise: Promise<TValue>;\n\tresult: TValue;\n};\n\nconst [AwaitContextProvider, useAwaitContextImpl] = createCustomContext<AwaitContextType>({\n\thookName: \"useAwaitContext\",\n\tname: \"AwaitContext\",\n\tproviderName: \"AwaitInner\",\n});\n\nconst useAwaitContext = <TValue>() => useAwaitContextImpl() as AwaitContextType<TValue>;\n\nexport { useAwaitContext, AwaitContextProvider };\n","\"use client\";\n\nimport {\n\ttype GetSlotComponentProps,\n\tgetSlotMap,\n\twithSlotNameAndSymbol,\n} from \"@zayne-labs/toolkit-react/utils\";\nimport { isFunction } from \"@zayne-labs/toolkit-type-helpers\";\nimport * as React from \"react\";\nimport { Fragment as ReactFragment, Suspense, use, useMemo } from \"react\";\nimport { ErrorBoundary, type ErrorBoundaryProps, useErrorBoundaryContext } from \"../error-boundary\";\nimport { Slot } from \"../slot\";\nimport type { SuspenseWithBoundaryProps } from \"../suspense-with-boundary\";\nimport { AwaitContextProvider, useAwaitContext } from \"./await-context\";\n\ntype RenderPropFn<TValue> = (result: TValue) => React.ReactNode;\n\ntype ChildrenType<TValue> = React.ReactNode | RenderPropFn<TValue>;\n\ntype AwaitRootProps<TValue> = Pick<SuspenseWithBoundaryProps, \"errorFallback\" | \"fallback\"> & {\n\tasChild?: boolean;\n\tchildren: ChildrenType<TValue>;\n\tpromise: Promise<TValue>;\n\twithErrorBoundary?: boolean;\n\twithSuspense?: boolean;\n};\n\nexport function AwaitRoot<TValue>(props: AwaitRootProps<TValue>) {\n\tconst {\n\t\tchildren,\n\t\terrorFallback,\n\t\tfallback,\n\t\twithErrorBoundary = true,\n\t\twithSuspense = true,\n\t\t...restOfProps\n\t} = props;\n\n\tconst WithErrorBoundary = withErrorBoundary ? ErrorBoundary : ReactFragment;\n\tconst WithSuspense = withSuspense ? Suspense : ReactFragment;\n\n\tconst slots =\n\t\t!isFunction(children) ?\n\t\t\tgetSlotMap<SlotComponentProps>(children)\n\t\t:\t({ default: children } as unknown as ReturnType<typeof getSlotMap<SlotComponentProps>>);\n\n\tconst selectedPendingFallback = slots.pending ?? fallback;\n\tconst selectedErrorFallback = slots.error ?? errorFallback;\n\n\treturn (\n\t\t<WithErrorBoundary {...(Boolean(selectedErrorFallback) && { fallback: selectedErrorFallback })}>\n\t\t\t<WithSuspense {...(Boolean(selectedPendingFallback) && { fallback: selectedPendingFallback })}>\n\t\t\t\t<AwaitRootInner {...restOfProps}>{slots.default}</AwaitRootInner>\n\t\t\t</WithSuspense>\n\t\t</WithErrorBoundary>\n\t);\n}\n\ntype AwaitRootInnerProps<TValue> = Pick<AwaitRootProps<TValue>, \"asChild\" | \"children\" | \"promise\">;\n\nfunction AwaitRootInner<TValue>(props: AwaitRootInnerProps<TValue>) {\n\tconst { asChild, children, promise } = props;\n\n\tconst result = use(promise);\n\n\tconst resolvedChildren = isFunction(children) ? children(result) : children;\n\n\tconst Component = asChild ? Slot.Root : ReactFragment;\n\n\tconst contextValue = useMemo(() => ({ promise, result }), [promise, result]);\n\n\treturn (\n\t\t<AwaitContextProvider value={contextValue}>\n\t\t\t<Component {...(asChild && contextValue)}>{resolvedChildren}</Component>\n\t\t</AwaitContextProvider>\n\t);\n}\n\ntype SlotComponentProps = AwaitErrorProps | AwaitPendingProps | AwaitSuccessProps;\n\ntype AwaitSuccessProps<TValue = unknown> = GetSlotComponentProps<\"default\", ChildrenType<TValue>>;\n\nexport function AwaitSuccess<TPromiseOrValue, TValue = Awaited<TPromiseOrValue>>(\n\tprops: Pick<AwaitSuccessProps<TValue>, \"children\">\n) {\n\tconst { children } = props;\n\n\tif (isFunction(children)) {\n\t\t// eslint-disable-next-line react-hooks/rules-of-hooks -- This hook only uses `use` under the hood so this is safe\n\t\tconst { result } = useAwaitContext<TValue>();\n\n\t\treturn children(result);\n\t}\n\n\treturn children;\n}\n\nObject.assign(AwaitSuccess, withSlotNameAndSymbol<AwaitSuccessProps>(\"default\"));\n\ntype AwaitErrorProps = GetSlotComponentProps<\"error\", ErrorBoundaryProps[\"fallback\"]>;\n\nexport const AwaitError = withSlotNameAndSymbol<AwaitErrorProps, { asChild?: boolean }>(\n\t\"error\",\n\t(props) => {\n\t\tconst { asChild, children } = props;\n\n\t\tconst errorBoundaryContext = useErrorBoundaryContext();\n\n\t\tconst Component = asChild ? Slot.Root : ReactFragment;\n\n\t\tconst resolvedChildren = isFunction(children) ? children(errorBoundaryContext) : children;\n\n\t\treturn <Component {...(asChild && errorBoundaryContext)}>{resolvedChildren}</Component>;\n\t}\n);\n\ntype AwaitPendingProps = GetSlotComponentProps<\"pending\", React.SuspenseProps[\"fallback\"]>;\n\nexport const AwaitPending = withSlotNameAndSymbol<AwaitPendingProps>(\"pending\");\n","export {\n\tAwaitRoot as Root,\n\tAwaitError as Error,\n\tAwaitPending as Pending,\n\tAwaitSuccess as Success,\n} from \"./await\";\n"],"mappings":";;;;;;;;;;AAOA,MAAM,CAAC,sBAAsB,uBAAuB,oBAAsC;CACzF,UAAU;CACV,MAAM;CACN,cAAc;CACd,CAAC;AAEF,MAAM,wBAAgC,qBAAqB;;;;ACc3D,SAAgB,UAAkB,OAA+B;CAChE,MAAM,EACL,UACA,eACA,UACA,oBAAoB,MACpB,eAAe,KACf,GAAG,gBACA;CAEJ,MAAM,oBAAoB,oBAAoB,gBAAgBA;CAC9D,MAAM,eAAe,eAAe,WAAWA;CAE/C,MAAM,QACL,CAAC,WAAW,SAAS,GACpB,WAA+B,SAAS,GACtC,EAAE,SAAS,UAAU;CAEzB,MAAM,0BAA0B,MAAM,WAAW;CACjD,MAAM,wBAAwB,MAAM,SAAS;AAE7C,QACC,oBAAC;EAAkB,GAAK,QAAQ,sBAAsB,IAAI,EAAE,UAAU,uBAAuB;YAC5F,oBAAC;GAAa,GAAK,QAAQ,wBAAwB,IAAI,EAAE,UAAU,yBAAyB;aAC3F,oBAAC;IAAe,GAAI;cAAc,MAAM;KAAyB;IACnD;GACI;;AAMtB,SAAS,eAAuB,OAAoC;CACnE,MAAM,EAAE,SAAS,UAAU,YAAY;CAEvC,MAAM,SAAS,IAAI,QAAQ;CAE3B,MAAM,mBAAmB,WAAW,SAAS,GAAG,SAAS,OAAO,GAAG;CAEnE,MAAMC,cAAY,UAAUC,WAAYF;CAExC,MAAM,eAAe,eAAe;EAAE;EAAS;EAAQ,GAAG,CAAC,SAAS,OAAO,CAAC;AAE5E,QACC,oBAAC;EAAqB,OAAO;YAC5B,oBAACC;GAAU,GAAK,WAAW;aAAgB;IAA6B;GAClD;;AAQzB,SAAgB,aACf,OACC;CACD,MAAM,EAAE,aAAa;AAErB,KAAI,WAAW,SAAS,EAAE;EAEzB,MAAM,EAAE,WAAW,iBAAyB;AAE5C,SAAO,SAAS,OAAO;;AAGxB,QAAO;;AAGR,OAAO,OAAO,cAAc,sBAAyC,UAAU,CAAC;AAIhF,MAAa,aAAa,sBACzB,UACC,UAAU;CACV,MAAM,EAAE,SAAS,aAAa;CAE9B,MAAM,uBAAuB,yBAAyB;CAEtD,MAAMA,cAAY,UAAUC,WAAYF;CAExC,MAAM,mBAAmB,WAAW,SAAS,GAAG,SAAS,qBAAqB,GAAG;AAEjF,QAAO,oBAACC;EAAU,GAAK,WAAW;YAAwB;GAA6B;EAExF;AAID,MAAa,eAAe,sBAAyC,UAAU"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../index-
|
|
2
|
-
import "../../index-
|
|
3
|
-
import { AwaitError, AwaitPending, AwaitRoot, AwaitSuccess, await_parts_d_exports, useAwaitContext } from "../../index-
|
|
1
|
+
import "../../index-C8_O0zCb.js";
|
|
2
|
+
import "../../index-B4K9g2v-.js";
|
|
3
|
+
import { AwaitError, AwaitPending, AwaitRoot, AwaitSuccess, await_parts_d_exports, useAwaitContext } from "../../index-DWl-QZ3Q.js";
|
|
4
4
|
export { await_parts_d_exports as Await, AwaitError, AwaitPending, AwaitRoot, AwaitSuccess, useAwaitContext };
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
|
|
4
4
|
import "../../error-boundary-y9Samt_s.js";
|
|
5
5
|
import "../../slot-WVWfOlr3.js";
|
|
6
|
-
import { AwaitError, AwaitPending, AwaitRoot, AwaitSuccess, await_parts_exports, useAwaitContext } from "../../await-
|
|
6
|
+
import { AwaitError, AwaitPending, AwaitRoot, AwaitSuccess, await_parts_exports, useAwaitContext } from "../../await-DDgVzpvI.js";
|
|
7
7
|
|
|
8
8
|
export { await_parts_exports as Await, AwaitError, AwaitPending, AwaitRoot, AwaitSuccess, useAwaitContext };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ErrorBoundary, ErrorBoundaryContextType, ErrorBoundaryProps, FallbackProps, useErrorBoundary, useErrorBoundaryContext } from "../../index-
|
|
1
|
+
import { ErrorBoundary, ErrorBoundaryContextType, ErrorBoundaryProps, FallbackProps, useErrorBoundary, useErrorBoundaryContext } from "../../index-C8_O0zCb.js";
|
|
2
2
|
export { ErrorBoundary, ErrorBoundaryContextType, ErrorBoundaryProps, FallbackProps, useErrorBoundary, useErrorBoundaryContext };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { For, ForRenderProps, ForWithWrapper, getElementList } from "../../index-
|
|
1
|
+
import { For, ForRenderProps, ForWithWrapper, getElementList } from "../../index-Df39YVRj.js";
|
|
2
2
|
export { For, ForRenderProps, ForWithWrapper, getElementList };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ErrorBoundary } from "../index-
|
|
2
|
-
import { SuspenseWithBoundary } from "../index-
|
|
3
|
-
import { await_parts_d_exports } from "../index-
|
|
4
|
-
import { For, ForWithWrapper } from "../index-
|
|
1
|
+
import { ErrorBoundary } from "../index-C8_O0zCb.js";
|
|
2
|
+
import { SuspenseWithBoundary } from "../index-B4K9g2v-.js";
|
|
3
|
+
import { await_parts_d_exports } from "../index-DWl-QZ3Q.js";
|
|
4
|
+
import { For, ForWithWrapper } from "../index-Df39YVRj.js";
|
|
5
5
|
import { show_parts_d_exports } from "../index-BsGxDKlt.js";
|
|
6
|
-
import { slot_parts_d_exports } from "../index-
|
|
6
|
+
import { slot_parts_d_exports } from "../index-Bx2BzRRJ.js";
|
|
7
7
|
import { switch_parts_d_exports } from "../index-CffEFE66.js";
|
|
8
8
|
import { Teleport } from "../index-CZjeBSoQ.js";
|
|
9
9
|
export { await_parts_d_exports as Await, ErrorBoundary, For, ForWithWrapper, show_parts_d_exports as Show, slot_parts_d_exports as Slot, SuspenseWithBoundary, switch_parts_d_exports as Switch, Teleport };
|
package/dist/esm/common/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ErrorBoundary } from "../error-boundary-y9Samt_s.js";
|
|
2
2
|
import { slot_parts_exports } from "../slot-WVWfOlr3.js";
|
|
3
|
-
import { await_parts_exports } from "../await-
|
|
3
|
+
import { await_parts_exports } from "../await-DDgVzpvI.js";
|
|
4
4
|
import { For, ForWithWrapper } from "../for-DK5rEY_m.js";
|
|
5
5
|
import { show_parts_exports } from "../show-N1ZXBhoA.js";
|
|
6
6
|
import { SuspenseWithBoundary } from "../suspense-with-boundary-D-1NYDV4.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SlotRoot, SlotSlottable, slot_parts_d_exports } from "../../index-
|
|
1
|
+
import { SlotRoot, SlotSlottable, slot_parts_d_exports } from "../../index-Bx2BzRRJ.js";
|
|
2
2
|
export { slot_parts_d_exports as Slot, SlotRoot, SlotSlottable };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../../index-
|
|
2
|
-
import { SuspenseWithBoundary, SuspenseWithBoundaryProps } from "../../index-
|
|
1
|
+
import "../../index-C8_O0zCb.js";
|
|
2
|
+
import { SuspenseWithBoundary, SuspenseWithBoundaryProps } from "../../index-B4K9g2v-.js";
|
|
3
3
|
export { SuspenseWithBoundary, SuspenseWithBoundaryProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ErrorBoundaryProps } from "./index-
|
|
1
|
+
import { ErrorBoundaryProps } from "./index-C8_O0zCb.js";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/common/suspense-with-boundary/suspense-with-boundary.d.ts
|
|
6
6
|
type SuspenseWithBoundaryProps = {
|
|
@@ -8,7 +8,7 @@ type SuspenseWithBoundaryProps = {
|
|
|
8
8
|
errorFallback?: ErrorBoundaryProps["fallback"];
|
|
9
9
|
fallback?: React.ReactNode;
|
|
10
10
|
};
|
|
11
|
-
declare function SuspenseWithBoundary(props: SuspenseWithBoundaryProps):
|
|
11
|
+
declare function SuspenseWithBoundary(props: SuspenseWithBoundaryProps): react_jsx_runtime0.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { SuspenseWithBoundary, SuspenseWithBoundaryProps };
|
|
14
|
-
//# sourceMappingURL=index-
|
|
14
|
+
//# sourceMappingURL=index-B4K9g2v-.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { InferProps, PolymorphicPropsStrict } from "@zayne-labs/toolkit-react/utils";
|
|
2
2
|
import * as _zayne_labs_toolkit_type_helpers0 from "@zayne-labs/toolkit-type-helpers";
|
|
3
3
|
import { Awaitable, SelectorFn } from "@zayne-labs/toolkit-type-helpers";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react4 from "react";
|
|
5
5
|
import "@zayne-labs/toolkit-react";
|
|
6
|
-
import * as
|
|
6
|
+
import * as react_jsx_runtime36 from "react/jsx-runtime";
|
|
7
7
|
import * as _zayne_labs_toolkit_core1 from "@zayne-labs/toolkit-core";
|
|
8
8
|
import { FileMeta, FileOrFileMeta, FileValidationErrorContextEach, FileValidationHooksAsync, FileValidationSettingsAsync } from "@zayne-labs/toolkit-core";
|
|
9
9
|
|
|
@@ -228,75 +228,75 @@ declare const createDropZoneStore: (initStoreValues: InitStoreValues) => _zayne_
|
|
|
228
228
|
declare const DropZoneStoreContextProvider: (props: {
|
|
229
229
|
children: React.ReactNode;
|
|
230
230
|
store: _zayne_labs_toolkit_core1.StoreApi<DropZoneStore>;
|
|
231
|
-
}) =>
|
|
231
|
+
}) => react4.FunctionComponentElement<react4.ProviderProps<_zayne_labs_toolkit_core1.StoreApi<DropZoneStore>>>, useDropZoneStoreContext: <TResult = DropZoneStore>(selector?: _zayne_labs_toolkit_type_helpers0.SelectorFn<DropZoneStore, TResult> | undefined) => TResult;
|
|
232
232
|
type FileItemContextType = {
|
|
233
233
|
fileState: FileState | undefined;
|
|
234
234
|
};
|
|
235
235
|
//#endregion
|
|
236
236
|
//#region src/components/ui/drop-zone/drop-zone.d.ts
|
|
237
237
|
type DropZoneRootProps = UseDropZoneProps & {
|
|
238
|
-
children:
|
|
238
|
+
children: react4.ReactNode;
|
|
239
239
|
};
|
|
240
|
-
declare function DropZoneRoot(props: DropZoneRootProps):
|
|
240
|
+
declare function DropZoneRoot(props: DropZoneRootProps): react_jsx_runtime36.JSX.Element;
|
|
241
241
|
type DropZoneContextProps<TSlice> = {
|
|
242
|
-
children:
|
|
242
|
+
children: react4.ReactNode | ((props: TSlice) => react4.ReactNode);
|
|
243
243
|
selector?: SelectorFn<DropZoneStore, TSlice>;
|
|
244
244
|
};
|
|
245
|
-
declare function DropZoneContext<TSlice = DropZoneStore>(props: DropZoneContextProps<TSlice>):
|
|
245
|
+
declare function DropZoneContext<TSlice = DropZoneStore>(props: DropZoneContextProps<TSlice>): react4.ReactNode;
|
|
246
246
|
type DropZoneContainerProps = PartInputProps["container"] & {
|
|
247
247
|
asChild?: boolean;
|
|
248
248
|
};
|
|
249
|
-
declare function DropZoneContainer<TElement extends
|
|
249
|
+
declare function DropZoneContainer<TElement extends react4.ElementType = "div">(props: PolymorphicPropsStrict<TElement, DropZoneContainerProps>): react_jsx_runtime36.JSX.Element;
|
|
250
250
|
type DropZoneInputProps = PartInputProps["input"] & {
|
|
251
251
|
asChild?: boolean;
|
|
252
252
|
};
|
|
253
|
-
declare function DropZoneInput(props: DropZoneInputProps):
|
|
253
|
+
declare function DropZoneInput(props: DropZoneInputProps): react_jsx_runtime36.JSX.Element;
|
|
254
254
|
type DropZoneAreaProps<TSlice> = {
|
|
255
|
-
children:
|
|
255
|
+
children: react4.ReactNode | ((props: TSlice) => react4.ReactNode);
|
|
256
256
|
classNames?: Partial<Record<Extract<keyof PartInputProps, "container" | "input">, string>>;
|
|
257
257
|
extraProps?: Pick<PartInputProps, "container" | "input">;
|
|
258
258
|
selector?: SelectorFn<DropZoneStore, TSlice>;
|
|
259
259
|
};
|
|
260
|
-
declare function DropZoneArea<TSlice = DropZoneStore>(props: DropZoneAreaProps<TSlice>):
|
|
260
|
+
declare function DropZoneArea<TSlice = DropZoneStore>(props: DropZoneAreaProps<TSlice>): react_jsx_runtime36.JSX.Element;
|
|
261
261
|
type DropZoneTriggerProps = PartInputProps["trigger"] & {
|
|
262
262
|
asChild?: boolean;
|
|
263
263
|
};
|
|
264
|
-
declare function DropZoneTrigger(props: DropZoneTriggerProps):
|
|
264
|
+
declare function DropZoneTrigger(props: DropZoneTriggerProps): react_jsx_runtime36.JSX.Element;
|
|
265
265
|
type FileListPerItemVariant = {
|
|
266
|
-
children:
|
|
266
|
+
children: react4.ReactNode | ((props: {
|
|
267
267
|
actions: DropZoneStore["actions"];
|
|
268
268
|
array: DropZoneStore["fileStateArray"];
|
|
269
269
|
fileState: DropZoneStore["fileStateArray"][number];
|
|
270
270
|
index: number;
|
|
271
|
-
}) =>
|
|
271
|
+
}) => react4.ReactNode);
|
|
272
272
|
renderMode?: "per-item";
|
|
273
273
|
};
|
|
274
274
|
type FileListManualListVariant = {
|
|
275
|
-
children:
|
|
275
|
+
children: react4.ReactNode | ((props: Pick<DropZoneStore, "actions" | "fileStateArray">) => react4.ReactNode);
|
|
276
276
|
renderMode: "manual-list";
|
|
277
277
|
};
|
|
278
278
|
type DropZoneFileListProps = Omit<PartInputProps["fileList"], "children"> & {
|
|
279
279
|
asChild?: boolean;
|
|
280
280
|
forceMount?: boolean;
|
|
281
281
|
} & (FileListManualListVariant | FileListPerItemVariant);
|
|
282
|
-
declare function DropZoneFileList<TElement extends
|
|
282
|
+
declare function DropZoneFileList<TElement extends react4.ElementType = "ul">(props: PolymorphicPropsStrict<TElement, DropZoneFileListProps>): react_jsx_runtime36.JSX.Element;
|
|
283
283
|
type DropZoneFileItemProps = FileItemContextType & PartInputProps["fileItem"] & {
|
|
284
284
|
asChild?: boolean;
|
|
285
285
|
};
|
|
286
|
-
declare function DropZoneFileItem<TElement extends
|
|
286
|
+
declare function DropZoneFileItem<TElement extends react4.ElementType = "li">(props: PolymorphicPropsStrict<TElement, DropZoneFileItemProps>): react_jsx_runtime36.JSX.Element;
|
|
287
287
|
type DropZoneFileItemDeleteProps = PartInputProps["fileItemDelete"] & {
|
|
288
288
|
asChild?: boolean;
|
|
289
289
|
};
|
|
290
|
-
declare function DropZoneFileItemDelete(props: DropZoneFileItemDeleteProps):
|
|
290
|
+
declare function DropZoneFileItemDelete(props: DropZoneFileItemDeleteProps): react_jsx_runtime36.JSX.Element;
|
|
291
291
|
type DropZoneFileItemProgressProps = PartInputProps["fileItemProgress"] & {
|
|
292
292
|
asChild?: boolean;
|
|
293
293
|
forceMount?: boolean;
|
|
294
294
|
size?: number;
|
|
295
295
|
};
|
|
296
|
-
declare function DropZoneFileItemProgress<TElement extends
|
|
296
|
+
declare function DropZoneFileItemProgress<TElement extends react4.ElementType = "span">(props: PolymorphicPropsStrict<TElement, DropZoneFileItemProgressProps>): react_jsx_runtime36.JSX.Element | null;
|
|
297
297
|
type RenderPreviewDetails = {
|
|
298
298
|
className?: string;
|
|
299
|
-
node?:
|
|
299
|
+
node?: react4.ReactNode;
|
|
300
300
|
};
|
|
301
301
|
type RenderPreviewProp = (props: Pick<FileItemContextType, "fileState">) => {
|
|
302
302
|
archive?: RenderPreviewDetails;
|
|
@@ -310,25 +310,25 @@ type RenderPreviewProp = (props: Pick<FileItemContextType, "fileState">) => {
|
|
|
310
310
|
};
|
|
311
311
|
type DropZoneFileItemPreviewProps = Omit<PartInputProps["fileItemPreview"], "children"> & Partial<Pick<FileItemContextType, "fileState">> & {
|
|
312
312
|
asChild?: boolean;
|
|
313
|
-
children?:
|
|
313
|
+
children?: react4.ReactNode | ((props: Pick<FileItemContextType, "fileState">) => react4.ReactNode);
|
|
314
314
|
renderPreview?: boolean | RenderPreviewProp;
|
|
315
315
|
};
|
|
316
|
-
declare function DropZoneFileItemPreview<TElement extends
|
|
316
|
+
declare function DropZoneFileItemPreview<TElement extends react4.ElementType>(props: PolymorphicPropsStrict<TElement, DropZoneFileItemPreviewProps>): react_jsx_runtime36.JSX.Element | null;
|
|
317
317
|
type DropZoneFileItemMetadataProps = Omit<PartInputProps["fileItemMetadata"], "children"> & Partial<Pick<FileItemContextType, "fileState">> & {
|
|
318
318
|
asChild?: boolean;
|
|
319
|
-
children?:
|
|
319
|
+
children?: react4.ReactNode | ((props: Pick<FileItemContextType, "fileState">) => react4.ReactNode);
|
|
320
320
|
classNames?: {
|
|
321
321
|
name?: string;
|
|
322
322
|
size?: string;
|
|
323
323
|
};
|
|
324
324
|
size?: "default" | "sm";
|
|
325
325
|
};
|
|
326
|
-
declare function DropZoneFileItemMetadata(props: DropZoneFileItemMetadataProps):
|
|
326
|
+
declare function DropZoneFileItemMetadata(props: DropZoneFileItemMetadataProps): react_jsx_runtime36.JSX.Element | null;
|
|
327
327
|
type DropZoneFileClearProps = PartInputProps["fileItemClear"] & {
|
|
328
328
|
asChild?: boolean;
|
|
329
329
|
forceMount?: boolean;
|
|
330
330
|
};
|
|
331
|
-
declare function DropZoneFileClear(props: DropZoneFileClearProps):
|
|
331
|
+
declare function DropZoneFileClear(props: DropZoneFileClearProps): react_jsx_runtime36.JSX.Element | null;
|
|
332
332
|
declare namespace drop_zone_parts_d_exports {
|
|
333
333
|
export { DropZoneArea as Area, DropZoneContainer as Container, DropZoneContext as Context, DropZoneFileClear as FileClear, DropZoneFileItem as FileItem, DropZoneFileItemDelete as FileItemDelete, DropZoneFileItemMetadata as FileItemMetadata, DropZoneFileItemPreview as FileItemPreview, DropZoneFileItemProgress as FileItemProgress, DropZoneFileList as FileList, DropZoneInput as Input, DropZoneRoot as Root, DropZoneTrigger as Trigger };
|
|
334
334
|
}
|
|
@@ -337,4 +337,4 @@ declare namespace drop_zone_parts_d_exports {
|
|
|
337
337
|
declare const useDropZone: (props?: UseDropZoneProps) => UseDropZoneResult;
|
|
338
338
|
//#endregion
|
|
339
339
|
export { DropZoneArea, DropZoneContainer, DropZoneContext, DropZoneError, DropZoneFileClear, DropZoneFileItem, DropZoneFileItemDelete, DropZoneFileItemMetadata, DropZoneFileItemPreview, DropZoneFileItemProgress, DropZoneFileList, DropZoneInput, DropZoneRoot, DropZoneTrigger, drop_zone_parts_d_exports, useDropZone, useDropZoneStoreContext };
|
|
340
|
-
//# sourceMappingURL=index-
|
|
340
|
+
//# sourceMappingURL=index-BoZe50e8.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { InferProps } from "@zayne-labs/toolkit-react/utils";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/common/slot/slot.d.ts
|
|
6
6
|
type SlotProps = InferProps<HTMLElement>;
|
|
7
|
-
declare function SlotRoot(props: SlotProps):
|
|
7
|
+
declare function SlotRoot(props: SlotProps): react_jsx_runtime1.JSX.Element | null;
|
|
8
8
|
declare function SlotSlottable({
|
|
9
9
|
children
|
|
10
10
|
}: Pick<SlotProps, "children">): React.ReactNode;
|
|
@@ -13,4 +13,4 @@ declare namespace slot_parts_d_exports {
|
|
|
13
13
|
}
|
|
14
14
|
//#endregion
|
|
15
15
|
export { SlotRoot, SlotSlottable, slot_parts_d_exports };
|
|
16
|
-
//# sourceMappingURL=index-
|
|
16
|
+
//# sourceMappingURL=index-Bx2BzRRJ.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
import { Component } from "react";
|
|
3
3
|
import "@zayne-labs/toolkit-react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/common/error-boundary/types.d.ts
|
|
7
7
|
type FallbackProps = {
|
|
@@ -49,7 +49,7 @@ declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryS
|
|
|
49
49
|
};
|
|
50
50
|
componentDidCatch(error: Error, info: React$1.ErrorInfo): void;
|
|
51
51
|
componentDidUpdate(prevProps: ErrorBoundaryProps, prevState: ErrorBoundaryState): void;
|
|
52
|
-
render():
|
|
52
|
+
render(): react_jsx_runtime0.JSX.Element;
|
|
53
53
|
}
|
|
54
54
|
//#endregion
|
|
55
55
|
//#region src/components/common/error-boundary/error-boundary-context.d.ts
|
|
@@ -66,4 +66,4 @@ declare const useErrorBoundary: <TError extends Error>() => {
|
|
|
66
66
|
};
|
|
67
67
|
//#endregion
|
|
68
68
|
export { ErrorBoundary, type ErrorBoundaryContextType, ErrorBoundaryProps, FallbackProps, useErrorBoundary, useErrorBoundaryContext };
|
|
69
|
-
//# sourceMappingURL=index-
|
|
69
|
+
//# sourceMappingURL=index-C8_O0zCb.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ErrorBoundaryProps } from "./index-
|
|
2
|
-
import { SuspenseWithBoundaryProps } from "./index-
|
|
1
|
+
import { ErrorBoundaryProps } from "./index-C8_O0zCb.js";
|
|
2
|
+
import { SuspenseWithBoundaryProps } from "./index-B4K9g2v-.js";
|
|
3
3
|
import { GetSlotComponentProps } from "@zayne-labs/toolkit-react/utils";
|
|
4
4
|
import * as React from "react";
|
|
5
|
-
import * as
|
|
5
|
+
import * as react_jsx_runtime35 from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/components/common/await/await.d.ts
|
|
8
8
|
type RenderPropFn<TValue> = (result: TValue) => React.ReactNode;
|
|
@@ -14,13 +14,17 @@ type AwaitRootProps<TValue> = Pick<SuspenseWithBoundaryProps, "errorFallback" |
|
|
|
14
14
|
withErrorBoundary?: boolean;
|
|
15
15
|
withSuspense?: boolean;
|
|
16
16
|
};
|
|
17
|
-
declare function AwaitRoot<TValue>(props: AwaitRootProps<TValue>):
|
|
17
|
+
declare function AwaitRoot<TValue>(props: AwaitRootProps<TValue>): react_jsx_runtime35.JSX.Element;
|
|
18
18
|
type AwaitSuccessProps<TValue = unknown> = GetSlotComponentProps<"default", ChildrenType<TValue>>;
|
|
19
19
|
declare function AwaitSuccess<TPromiseOrValue, TValue = Awaited<TPromiseOrValue>>(props: Pick<AwaitSuccessProps<TValue>, "children">): React.ReactNode;
|
|
20
20
|
type AwaitErrorProps = GetSlotComponentProps<"error", ErrorBoundaryProps["fallback"]>;
|
|
21
|
-
declare
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
declare const AwaitError: {
|
|
22
|
+
(props: Pick<AwaitErrorProps, "children"> & {
|
|
23
|
+
asChild?: boolean;
|
|
24
|
+
}): React.ReactNode;
|
|
25
|
+
readonly slotName?: "error" | undefined;
|
|
26
|
+
readonly slotSymbol?: symbol;
|
|
27
|
+
};
|
|
24
28
|
type AwaitPendingProps = GetSlotComponentProps<"pending", React.SuspenseProps["fallback"]>;
|
|
25
29
|
declare const AwaitPending: {
|
|
26
30
|
(props: Pick<AwaitPendingProps, "children">): React.ReactNode;
|
|
@@ -39,4 +43,4 @@ declare namespace await_parts_d_exports {
|
|
|
39
43
|
}
|
|
40
44
|
//#endregion
|
|
41
45
|
export { AwaitError, AwaitPending, AwaitRoot, AwaitSuccess, await_parts_d_exports, useAwaitContext };
|
|
42
|
-
//# sourceMappingURL=index-
|
|
46
|
+
//# sourceMappingURL=index-DWl-QZ3Q.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PolymorphicPropsStrict } from "@zayne-labs/toolkit-react/utils";
|
|
2
2
|
import { UnionDiscriminator } from "@zayne-labs/toolkit-type-helpers";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime26 from "react/jsx-runtime";
|
|
5
5
|
import { StoreApi } from "@zayne-labs/toolkit-core";
|
|
6
6
|
|
|
7
7
|
//#region src/components/ui/carousel/types.d.ts
|
|
@@ -79,17 +79,17 @@ type OtherCarouselProps = {
|
|
|
79
79
|
};
|
|
80
80
|
//#endregion
|
|
81
81
|
//#region src/components/ui/carousel/carousel.d.ts
|
|
82
|
-
declare function CarouselRoot<TImages extends ImagesType, TElement extends React$1.ElementType = "div">(props: PolymorphicPropsStrict<TElement, CarouselRootProps<TImages>>):
|
|
83
|
-
declare function CarouselButton(props: CarouselButtonsProps):
|
|
84
|
-
declare function CarouselControls(props: CarouselControlProps):
|
|
85
|
-
declare function CarouselItemList<TArrayItem>(props: CarouselWrapperProps<TArrayItem>):
|
|
86
|
-
declare function CarouselItem(props: OtherCarouselProps):
|
|
87
|
-
declare function CarouselCaption<TElement extends React$1.ElementType = "div">(props: PolymorphicPropsStrict<TElement, OtherCarouselProps>):
|
|
88
|
-
declare function CarouselIndicatorList<TArrayItem>(props: CarouselWrapperProps<TArrayItem>):
|
|
89
|
-
declare function CarouselIndicator(props: CarouselIndicatorProps):
|
|
82
|
+
declare function CarouselRoot<TImages extends ImagesType, TElement extends React$1.ElementType = "div">(props: PolymorphicPropsStrict<TElement, CarouselRootProps<TImages>>): react_jsx_runtime26.JSX.Element;
|
|
83
|
+
declare function CarouselButton(props: CarouselButtonsProps): react_jsx_runtime26.JSX.Element;
|
|
84
|
+
declare function CarouselControls(props: CarouselControlProps): react_jsx_runtime26.JSX.Element;
|
|
85
|
+
declare function CarouselItemList<TArrayItem>(props: CarouselWrapperProps<TArrayItem>): react_jsx_runtime26.JSX.Element;
|
|
86
|
+
declare function CarouselItem(props: OtherCarouselProps): react_jsx_runtime26.JSX.Element;
|
|
87
|
+
declare function CarouselCaption<TElement extends React$1.ElementType = "div">(props: PolymorphicPropsStrict<TElement, OtherCarouselProps>): react_jsx_runtime26.JSX.Element;
|
|
88
|
+
declare function CarouselIndicatorList<TArrayItem>(props: CarouselWrapperProps<TArrayItem>): react_jsx_runtime26.JSX.Element;
|
|
89
|
+
declare function CarouselIndicator(props: CarouselIndicatorProps): react_jsx_runtime26.JSX.Element;
|
|
90
90
|
declare namespace carousel_parts_d_exports {
|
|
91
91
|
export { CarouselButton as Button, CarouselCaption as Caption, CarouselControls as Controls, CarouselIndicator as Indicator, CarouselIndicatorList as IndicatorGroup, CarouselItem as Item, CarouselItemList as ItemGroup, CarouselRoot as Root };
|
|
92
92
|
}
|
|
93
93
|
//#endregion
|
|
94
94
|
export { CarouselButton, CarouselButtonsProps, CarouselCaption, CarouselControlProps, CarouselControls, CarouselIndicator, CarouselIndicatorList, CarouselIndicatorProps, CarouselItem, CarouselItemList, CarouselRoot, CarouselRootProps, CarouselStore, CarouselStoreApi, CarouselWrapperProps, ImagesType, OtherCarouselProps, carousel_parts_d_exports };
|
|
95
|
-
//# sourceMappingURL=index-
|
|
95
|
+
//# sourceMappingURL=index-DZxgPnK1.d.ts.map
|
|
@@ -2,7 +2,7 @@ import { DiscriminatedRenderItemProps, DiscriminatedRenderProps, InferProps, Pol
|
|
|
2
2
|
import { UnionDiscriminator } from "@zayne-labs/toolkit-type-helpers";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
import "@zayne-labs/toolkit-react";
|
|
5
|
-
import * as
|
|
5
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
6
6
|
import { Control, ControllerFieldState, ControllerProps, ControllerRenderProps, FieldPath, FieldPathValue, FieldPathValues, RegisterOptions, UseFormReturn, UseFormStateReturn, useFormContext as useFormRootContext } from "react-hook-form";
|
|
7
7
|
|
|
8
8
|
//#region src/components/ui/form/form-context.d.ts
|
|
@@ -38,7 +38,7 @@ type FormRootProps<TFieldValues extends FieldValues> = InferProps<"form"> & Part
|
|
|
38
38
|
children: React$1.ReactNode;
|
|
39
39
|
methods: UseFormReturn<TFieldValues>;
|
|
40
40
|
};
|
|
41
|
-
declare function FormRoot<TValues extends FieldValues>(props: FormRootProps<TValues>):
|
|
41
|
+
declare function FormRoot<TValues extends FieldValues>(props: FormRootProps<TValues>): react_jsx_runtime9.JSX.Element;
|
|
42
42
|
type FormFieldProps<TControl, TFieldValues extends FieldValues> = (TControl extends (Control<infer TValues>) ? {
|
|
43
43
|
control?: never;
|
|
44
44
|
name: FieldPath<TValues>;
|
|
@@ -52,7 +52,7 @@ type FormFieldProps<TControl, TFieldValues extends FieldValues> = (TControl exte
|
|
|
52
52
|
className?: never;
|
|
53
53
|
withWrapper: false;
|
|
54
54
|
});
|
|
55
|
-
declare function FormField<TControl, TFieldValues extends FieldValues = FieldValues>(props: FormFieldProps<TControl, TFieldValues>):
|
|
55
|
+
declare function FormField<TControl, TFieldValues extends FieldValues = FieldValues>(props: FormFieldProps<TControl, TFieldValues>): react_jsx_runtime9.JSX.Element;
|
|
56
56
|
type FormFieldControllerRenderFn = (props: {
|
|
57
57
|
field: Omit<ControllerRenderProps, "value"> & {
|
|
58
58
|
value: never;
|
|
@@ -63,20 +63,20 @@ type FormFieldControllerRenderFn = (props: {
|
|
|
63
63
|
type FormFieldControllerProps = Omit<ControllerProps<FieldValues, FieldPath<FieldValues>>, "control" | "name" | "render"> & {
|
|
64
64
|
render: FormFieldControllerRenderFn;
|
|
65
65
|
};
|
|
66
|
-
declare function FormFieldController(props: FormFieldControllerProps):
|
|
67
|
-
declare function FormFieldControlledField<TFieldValues extends FieldValues>(props: ControllerProps<TFieldValues>):
|
|
66
|
+
declare function FormFieldController(props: FormFieldControllerProps): react_jsx_runtime9.JSX.Element;
|
|
67
|
+
declare function FormFieldControlledField<TFieldValues extends FieldValues>(props: ControllerProps<TFieldValues>): react_jsx_runtime9.JSX.Element;
|
|
68
68
|
declare function FormFieldContext(props: FormFieldContextProps): React$1.ReactNode;
|
|
69
|
-
declare function FormLabel(props: InferProps<"label">):
|
|
70
|
-
declare function FormInputGroup(props: InferProps<"div">):
|
|
69
|
+
declare function FormLabel(props: InferProps<"label">): react_jsx_runtime9.JSX.Element;
|
|
70
|
+
declare function FormInputGroup(props: InferProps<"div">): react_jsx_runtime9.JSX.Element;
|
|
71
71
|
type FormSideItemProps = {
|
|
72
72
|
children?: React$1.ReactNode;
|
|
73
73
|
className?: string;
|
|
74
74
|
};
|
|
75
|
-
declare function FormInputLeftItem<TElement extends React$1.ElementType = "span">(props: PolymorphicPropsStrict<TElement, FormSideItemProps>):
|
|
75
|
+
declare function FormInputLeftItem<TElement extends React$1.ElementType = "span">(props: PolymorphicPropsStrict<TElement, FormSideItemProps>): react_jsx_runtime9.JSX.Element;
|
|
76
76
|
declare namespace FormInputLeftItem {
|
|
77
77
|
var slotSymbol: symbol;
|
|
78
78
|
}
|
|
79
|
-
declare function FormInputRightItem<TElement extends React$1.ElementType = "span">(props: PolymorphicPropsStrict<TElement, FormSideItemProps>):
|
|
79
|
+
declare function FormInputRightItem<TElement extends React$1.ElementType = "span">(props: PolymorphicPropsStrict<TElement, FormSideItemProps>): react_jsx_runtime9.JSX.Element;
|
|
80
80
|
declare namespace FormInputRightItem {
|
|
81
81
|
var slotSymbol: symbol;
|
|
82
82
|
}
|
|
@@ -112,13 +112,13 @@ type FormSelectPrimitiveProps<TFieldValues extends FieldValues = FieldValues> =
|
|
|
112
112
|
};
|
|
113
113
|
declare function FormInputPrimitive<TFieldValues extends FieldValues>(props: FormInputPrimitiveProps<TFieldValues> & {
|
|
114
114
|
rules?: RegisterOptions;
|
|
115
|
-
}):
|
|
115
|
+
}): react_jsx_runtime9.JSX.Element;
|
|
116
116
|
declare function FormTextAreaPrimitive<TFieldValues extends FieldValues>(props: FormTextAreaPrimitiveProps<TFieldValues> & {
|
|
117
117
|
rules?: RegisterOptions;
|
|
118
|
-
}):
|
|
118
|
+
}): react_jsx_runtime9.JSX.Element;
|
|
119
119
|
declare function FormSelectPrimitive<TFieldValues extends FieldValues>(props: FormSelectPrimitiveProps<TFieldValues> & {
|
|
120
120
|
rules?: RegisterOptions;
|
|
121
|
-
}):
|
|
121
|
+
}): react_jsx_runtime9.JSX.Element;
|
|
122
122
|
type PrimitivePropsToOmit = "control" | "formState" | "name";
|
|
123
123
|
type FormInputProps = Omit<FormInputPrimitiveProps, PrimitivePropsToOmit> & {
|
|
124
124
|
rules?: RegisterOptions;
|
|
@@ -136,10 +136,10 @@ type CombinedFormInputProps = (FormSelectProps & {
|
|
|
136
136
|
}) | FormInputProps;
|
|
137
137
|
declare function FormInput(props: CombinedFormInputProps & {
|
|
138
138
|
rules?: RegisterOptions;
|
|
139
|
-
}):
|
|
140
|
-
declare function FormTextArea(props: FormTextAreaProps):
|
|
141
|
-
declare function FormSelect(props: FormSelectProps):
|
|
142
|
-
declare function FormDescription(props: InferProps<"p">):
|
|
139
|
+
}): react_jsx_runtime9.JSX.Element;
|
|
140
|
+
declare function FormTextArea(props: FormTextAreaProps): react_jsx_runtime9.JSX.Element;
|
|
141
|
+
declare function FormSelect(props: FormSelectProps): react_jsx_runtime9.JSX.Element;
|
|
142
|
+
declare function FormDescription(props: InferProps<"p">): react_jsx_runtime9.JSX.Element;
|
|
143
143
|
type ErrorMessageRenderProps = {
|
|
144
144
|
className: string;
|
|
145
145
|
"data-index": number;
|
|
@@ -199,11 +199,11 @@ type FormErrorMessageProps<TControl, TFieldValues extends FieldValues> = (TContr
|
|
|
199
199
|
errorField: string;
|
|
200
200
|
type: "root";
|
|
201
201
|
};
|
|
202
|
-
declare function FormErrorMessage<TControl, TFieldValues extends FieldValues = FieldValues>(props: FormErrorMessageProps<TControl, TFieldValues>):
|
|
202
|
+
declare function FormErrorMessage<TControl, TFieldValues extends FieldValues = FieldValues>(props: FormErrorMessageProps<TControl, TFieldValues>): react_jsx_runtime9.JSX.Element;
|
|
203
203
|
type FormSubmitProps = InferProps<"button"> & {
|
|
204
204
|
asChild?: boolean;
|
|
205
205
|
};
|
|
206
|
-
declare function FormSubmit<TElement extends React$1.ElementType = "button">(props: PolymorphicPropsStrict<TElement, FormSubmitProps>):
|
|
206
|
+
declare function FormSubmit<TElement extends React$1.ElementType = "button">(props: PolymorphicPropsStrict<TElement, FormSubmitProps>): react_jsx_runtime9.JSX.Element;
|
|
207
207
|
type GetFieldValue<TFieldPathOrPaths, TFieldValues extends FieldValues> = TFieldPathOrPaths extends Array<FieldPath<TFieldValues>> ? FieldPathValues<TFieldValues, TFieldPathOrPaths> : TFieldPathOrPaths extends FieldPath<TFieldValues> ? FieldPathValue<TFieldValues, TFieldPathOrPaths> : unknown;
|
|
208
208
|
type FormSubscribeToFieldValueRenderFn<TFieldValues extends FieldValues, TFieldPathOrPaths> = (props: {
|
|
209
209
|
value: GetFieldValue<TFieldPathOrPaths, TFieldValues>;
|
|
@@ -224,4 +224,4 @@ declare namespace form_parts_d_exports {
|
|
|
224
224
|
}
|
|
225
225
|
//#endregion
|
|
226
226
|
export { FieldValues, FormDescription, FormErrorMessage, FormErrorMessagePrimitive, FormErrorMessagePrimitiveProps, FormField, FormFieldContext, FormFieldControlledField, FormFieldController, FormInput, FormInputGroup, FormInputLeftItem, FormInputPrimitive, FormInputProps, FormInputRightItem, FormLabel, FormRoot, FormSelect, FormSelectPrimitive, FormSelectProps, FormSubmit, FormSubscribeToFieldValue, FormSubscribeToFormState, FormTextArea, FormTextAreaPrimitive, FormTextAreaProps, form_parts_d_exports, useFormRootContext, useStrictFormFieldContext };
|
|
227
|
-
//# sourceMappingURL=index-
|
|
227
|
+
//# sourceMappingURL=index-DbiE_few.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DiscriminatedRenderItemProps, PolymorphicPropsStrict } from "@zayne-labs/toolkit-react/utils";
|
|
2
2
|
import { Prettify } from "@zayne-labs/toolkit-type-helpers";
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime34 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/common/for/for.d.ts
|
|
7
7
|
type ArrayOrNumber = number | readonly unknown[];
|
|
@@ -13,11 +13,11 @@ type ForProps<TArray extends ArrayOrNumber> = Prettify<{
|
|
|
13
13
|
fallback?: React.ReactNode;
|
|
14
14
|
} & ForRenderProps<TArray>>;
|
|
15
15
|
declare function For<const TArray extends ArrayOrNumber>(props: ForProps<TArray>): string | number | bigint | boolean | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null;
|
|
16
|
-
declare function ForWithWrapper<const TArray extends ArrayOrNumber, TElement extends React.ElementType = "ul">(props: PolymorphicPropsStrict<TElement, ForProps<TArray>>):
|
|
16
|
+
declare function ForWithWrapper<const TArray extends ArrayOrNumber, TElement extends React.ElementType = "ul">(props: PolymorphicPropsStrict<TElement, ForProps<TArray>>): react_jsx_runtime34.JSX.Element;
|
|
17
17
|
//#endregion
|
|
18
18
|
//#region src/components/common/for/getElementList.d.ts
|
|
19
19
|
type GetElementListResult<TVariant extends "base" | "withWrapper"> = TVariant extends "base" ? [typeof For] : [typeof ForWithWrapper];
|
|
20
20
|
declare const getElementList: <TVariant extends "base" | "withWrapper" = "withWrapper">(variant?: TVariant) => GetElementListResult<TVariant>;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { For, ForRenderProps, ForWithWrapper, getElementList };
|
|
23
|
-
//# sourceMappingURL=index-
|
|
23
|
+
//# sourceMappingURL=index-Df39YVRj.d.ts.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { PolymorphicProps } from "@zayne-labs/toolkit-react/utils";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ui/card/card.d.ts
|
|
6
|
-
declare function CardRoot<TElement extends React.ElementType = "article">(props: PolymorphicProps<TElement>):
|
|
7
|
-
declare function CardHeader<TElement extends React.ElementType = "header">(props: PolymorphicProps<TElement>):
|
|
8
|
-
declare function CardTitle<TElement extends React.ElementType = "h3">(props: PolymorphicProps<TElement>):
|
|
9
|
-
declare function CardDescription<TElement extends React.ElementType = "p">(props: PolymorphicProps<TElement>):
|
|
10
|
-
declare function CardContent<TElement extends React.ElementType = "div">(props: PolymorphicProps<TElement>):
|
|
11
|
-
declare function CardAction<TElement extends React.ElementType = "div">(props: PolymorphicProps<TElement>):
|
|
6
|
+
declare function CardRoot<TElement extends React.ElementType = "article">(props: PolymorphicProps<TElement>): react_jsx_runtime2.JSX.Element;
|
|
7
|
+
declare function CardHeader<TElement extends React.ElementType = "header">(props: PolymorphicProps<TElement>): react_jsx_runtime2.JSX.Element;
|
|
8
|
+
declare function CardTitle<TElement extends React.ElementType = "h3">(props: PolymorphicProps<TElement>): react_jsx_runtime2.JSX.Element;
|
|
9
|
+
declare function CardDescription<TElement extends React.ElementType = "p">(props: PolymorphicProps<TElement>): react_jsx_runtime2.JSX.Element;
|
|
10
|
+
declare function CardContent<TElement extends React.ElementType = "div">(props: PolymorphicProps<TElement>): react_jsx_runtime2.JSX.Element;
|
|
11
|
+
declare function CardAction<TElement extends React.ElementType = "div">(props: PolymorphicProps<TElement>): react_jsx_runtime2.JSX.Element;
|
|
12
12
|
declare function CardFooter<TElement extends React.ElementType = "footer">(props: PolymorphicProps<TElement, {
|
|
13
13
|
asChild?: boolean;
|
|
14
|
-
}>):
|
|
14
|
+
}>): react_jsx_runtime2.JSX.Element;
|
|
15
15
|
declare namespace card_parts_d_exports {
|
|
16
16
|
export { CardAction as Action, CardContent as Content, CardDescription as Description, CardFooter as Footer, CardHeader as Header, CardRoot as Root, CardTitle as Title };
|
|
17
17
|
}
|
|
18
18
|
//#endregion
|
|
19
19
|
export { CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardRoot, CardTitle, card_parts_d_exports };
|
|
20
|
-
//# sourceMappingURL=index-
|
|
20
|
+
//# sourceMappingURL=index-SX3cnKP6.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardRoot, CardTitle, card_parts_d_exports } from "../../index-
|
|
1
|
+
import { CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardRoot, CardTitle, card_parts_d_exports } from "../../index-SX3cnKP6.js";
|
|
2
2
|
export { card_parts_d_exports as Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardRoot, CardTitle };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CarouselButton, CarouselButtonsProps, CarouselCaption, CarouselControlProps, CarouselControls, CarouselIndicator, CarouselIndicatorList, CarouselIndicatorProps, CarouselItem, CarouselItemList, CarouselRoot, CarouselRootProps, CarouselStore, CarouselStoreApi, CarouselWrapperProps, ImagesType, OtherCarouselProps, carousel_parts_d_exports } from "../../index-
|
|
1
|
+
import { CarouselButton, CarouselButtonsProps, CarouselCaption, CarouselControlProps, CarouselControls, CarouselIndicator, CarouselIndicatorList, CarouselIndicatorProps, CarouselItem, CarouselItemList, CarouselRoot, CarouselRootProps, CarouselStore, CarouselStoreApi, CarouselWrapperProps, ImagesType, OtherCarouselProps, carousel_parts_d_exports } from "../../index-DZxgPnK1.js";
|
|
2
2
|
export { carousel_parts_d_exports as Carousel, CarouselButton, CarouselButtonsProps, CarouselCaption, CarouselControlProps, CarouselControls, CarouselIndicator, CarouselIndicatorList, CarouselIndicatorProps, CarouselItem, CarouselItemList, CarouselRoot, CarouselRootProps, CarouselStore, CarouselStoreApi, CarouselWrapperProps, ImagesType, OtherCarouselProps };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import "../../error-boundary-y9Samt_s.js";
|
|
5
5
|
import "../../slot-WVWfOlr3.js";
|
|
6
|
-
import "../../await-
|
|
6
|
+
import "../../await-DDgVzpvI.js";
|
|
7
7
|
import "../../for-DK5rEY_m.js";
|
|
8
8
|
import "../../show-N1ZXBhoA.js";
|
|
9
9
|
import "../../suspense-with-boundary-D-1NYDV4.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DropZoneArea, DropZoneContainer, DropZoneContext, DropZoneError, DropZoneFileClear, DropZoneFileItem, DropZoneFileItemDelete, DropZoneFileItemMetadata, DropZoneFileItemPreview, DropZoneFileItemProgress, DropZoneFileList, DropZoneInput, DropZoneRoot, DropZoneTrigger, drop_zone_parts_d_exports, useDropZone, useDropZoneStoreContext } from "../../index-
|
|
1
|
+
import { DropZoneArea, DropZoneContainer, DropZoneContext, DropZoneError, DropZoneFileClear, DropZoneFileItem, DropZoneFileItemDelete, DropZoneFileItemMetadata, DropZoneFileItemPreview, DropZoneFileItemProgress, DropZoneFileList, DropZoneInput, DropZoneRoot, DropZoneTrigger, drop_zone_parts_d_exports, useDropZone, useDropZoneStoreContext } from "../../index-BoZe50e8.js";
|
|
2
2
|
export { drop_zone_parts_d_exports as DropZone, DropZoneArea, DropZoneContainer, DropZoneContext, DropZoneError, DropZoneFileClear, DropZoneFileItem, DropZoneFileItemDelete, DropZoneFileItemMetadata, DropZoneFileItemPreview, DropZoneFileItemProgress, DropZoneFileList, DropZoneInput, DropZoneRoot, DropZoneTrigger, useDropZone, useDropZoneStoreContext };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import "../../error-boundary-y9Samt_s.js";
|
|
5
5
|
import "../../slot-WVWfOlr3.js";
|
|
6
|
-
import "../../await-
|
|
6
|
+
import "../../await-DDgVzpvI.js";
|
|
7
7
|
import "../../for-DK5rEY_m.js";
|
|
8
8
|
import "../../show-N1ZXBhoA.js";
|
|
9
9
|
import "../../suspense-with-boundary-D-1NYDV4.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FieldValues, FormDescription, FormErrorMessage, FormErrorMessagePrimitive, FormErrorMessagePrimitiveProps, FormField, FormFieldContext, FormFieldControlledField, FormFieldController, FormInput, FormInputGroup, FormInputLeftItem, FormInputPrimitive, FormInputProps, FormInputRightItem, FormLabel, FormRoot, FormSelect, FormSelectPrimitive, FormSelectProps, FormSubmit, FormSubscribeToFieldValue, FormSubscribeToFormState, FormTextArea, FormTextAreaPrimitive, FormTextAreaProps, form_parts_d_exports, useFormRootContext, useStrictFormFieldContext } from "../../index-
|
|
1
|
+
import { FieldValues, FormDescription, FormErrorMessage, FormErrorMessagePrimitive, FormErrorMessagePrimitiveProps, FormField, FormFieldContext, FormFieldControlledField, FormFieldController, FormInput, FormInputGroup, FormInputLeftItem, FormInputPrimitive, FormInputProps, FormInputRightItem, FormLabel, FormRoot, FormSelect, FormSelectPrimitive, FormSelectProps, FormSubmit, FormSubscribeToFieldValue, FormSubscribeToFormState, FormTextArea, FormTextAreaPrimitive, FormTextAreaProps, form_parts_d_exports, useFormRootContext, useStrictFormFieldContext } from "../../index-DbiE_few.js";
|
|
2
2
|
export { FieldValues, form_parts_d_exports as Form, FormDescription, FormErrorMessage, FormErrorMessagePrimitive, FormErrorMessagePrimitiveProps, FormField, FormFieldContext, FormFieldControlledField, FormFieldController, FormInput, FormInputGroup, FormInputLeftItem, FormInputPrimitive, FormInputProps, FormInputRightItem, FormLabel, FormRoot, FormSelect, FormSelectPrimitive, FormSelectProps, FormSubmit, FormSubscribeToFieldValue, FormSubscribeToFormState, FormTextArea, FormTextAreaPrimitive, FormTextAreaProps, useStrictFormFieldContext as useFormFieldContext, useFormRootContext };
|
package/dist/esm/ui/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { card_parts_d_exports } from "../index-
|
|
2
|
-
import { carousel_parts_d_exports } from "../index-
|
|
1
|
+
import { card_parts_d_exports } from "../index-SX3cnKP6.js";
|
|
2
|
+
import { carousel_parts_d_exports } from "../index-DZxgPnK1.js";
|
|
3
3
|
import { useDragScroll } from "../index-C1GPFYKG.js";
|
|
4
|
-
import { drop_zone_parts_d_exports, useDropZone } from "../index-
|
|
5
|
-
import { form_parts_d_exports } from "../index-
|
|
4
|
+
import { drop_zone_parts_d_exports, useDropZone } from "../index-BoZe50e8.js";
|
|
5
|
+
import { form_parts_d_exports } from "../index-DbiE_few.js";
|
|
6
6
|
export { card_parts_d_exports as Card, carousel_parts_d_exports as Carousel, drop_zone_parts_d_exports as DropZone, form_parts_d_exports as Form, useDragScroll, useDropZone };
|
package/dist/esm/ui/index.js
CHANGED