@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.
Files changed (138) hide show
  1. package/dist/esm/await-Fe4LFRKd.js +89 -0
  2. package/dist/esm/await-Fe4LFRKd.js.map +1 -0
  3. package/dist/esm/card-DRjs-vtv.js +54 -0
  4. package/dist/esm/card-DRjs-vtv.js.map +1 -0
  5. package/dist/esm/carousel-Dznupnx8.js +270 -0
  6. package/dist/esm/carousel-Dznupnx8.js.map +1 -0
  7. package/dist/esm/chunk-Cl8Af3a2.js +11 -0
  8. package/dist/esm/cn-_FbtIrlZ.js +8 -0
  9. package/dist/esm/cn-_FbtIrlZ.js.map +1 -0
  10. package/dist/esm/common-BYWy8Q78.js +0 -0
  11. package/dist/esm/components/common/await/index.d.ts +6 -14
  12. package/dist/esm/components/common/await/index.js +10 -8
  13. package/dist/esm/components/common/error-boundary/index.d.ts +2 -17
  14. package/dist/esm/components/common/error-boundary/index.js +6 -4
  15. package/dist/esm/components/common/for/index.d.ts +2 -10
  16. package/dist/esm/components/common/for/index.js +3 -4
  17. package/dist/esm/components/common/index.d.ts +11 -13
  18. package/dist/esm/components/common/index.js +13 -14
  19. package/dist/esm/components/common/show/index.d.ts +2 -26
  20. package/dist/esm/components/common/show/index.js +7 -5
  21. package/dist/esm/components/common/slot/index.d.ts +2 -12
  22. package/dist/esm/components/common/slot/index.js +3 -4
  23. package/dist/esm/components/common/suspense-with-boundary/index.d.ts +3 -11
  24. package/dist/esm/components/common/suspense-with-boundary/index.js +4 -5
  25. package/dist/esm/components/common/switch/index.d.ts +2 -25
  26. package/dist/esm/components/common/switch/index.js +7 -5
  27. package/dist/esm/components/common/teleport/index.d.ts +2 -12
  28. package/dist/esm/components/common/teleport/index.js +3 -4
  29. package/dist/esm/components/ui/card/index.d.ts +2 -17
  30. package/dist/esm/components/ui/card/index.js +5 -6
  31. package/dist/esm/components/ui/carousel/index.d.ts +2 -95
  32. package/dist/esm/components/ui/carousel/index.js +18 -16
  33. package/dist/esm/components/ui/drag-scroll/index.d.ts +2 -21
  34. package/dist/esm/components/ui/drag-scroll/index.js +4 -5
  35. package/dist/esm/components/ui/drop-zone/index.d.ts +3 -11
  36. package/dist/esm/components/ui/drop-zone/index.js +18 -16
  37. package/dist/esm/components/ui/form/index.d.ts +2 -228
  38. package/dist/esm/components/ui/form/index.js +10 -8
  39. package/dist/esm/components/ui/index.d.ts +7 -11
  40. package/dist/esm/components/ui/index.js +19 -20
  41. package/dist/esm/drag-scroll-BLjij7aI.js +111 -0
  42. package/dist/esm/drag-scroll-BLjij7aI.js.map +1 -0
  43. package/dist/esm/drop-zone-_YK9C3Xj.js +313 -0
  44. package/dist/esm/drop-zone-_YK9C3Xj.js.map +1 -0
  45. package/dist/esm/error-boundary-B3ycUZ1t.js +126 -0
  46. package/dist/esm/error-boundary-B3ycUZ1t.js.map +1 -0
  47. package/dist/esm/for-aTw1TgJo.js +42 -0
  48. package/dist/esm/for-aTw1TgJo.js.map +1 -0
  49. package/dist/esm/form-DytCfL6R.js +590 -0
  50. package/dist/esm/form-DytCfL6R.js.map +1 -0
  51. package/dist/esm/getSlot-BIcGgBwN.js +85 -0
  52. package/dist/esm/getSlot-BIcGgBwN.js.map +1 -0
  53. package/dist/esm/{getSlotMap-DTkxtGhd.d.ts → getSlotMap-DA_uhXqU.d.ts} +17 -16
  54. package/dist/esm/index--1COprHP.d.ts +32 -0
  55. package/dist/esm/index-1UCPJf7B.d.ts +19 -0
  56. package/dist/esm/index-ASoFjmZ6.d.ts +196 -0
  57. package/dist/esm/index-BC0r1cBF.d.ts +104 -0
  58. package/dist/esm/index-BSJ30pGj.d.ts +68 -0
  59. package/dist/esm/{for-BH5FhFuV.d.ts → index-BhpBx8dH.d.ts} +14 -6
  60. package/dist/esm/index-BuSQsDCX.d.ts +22 -0
  61. package/dist/esm/index-C0XZoIZD.d.ts +35 -0
  62. package/dist/esm/index-CTZr4PTO.d.ts +24 -0
  63. package/dist/esm/index-CqlM1M0j.d.ts +14 -0
  64. package/dist/esm/index-D-j2Cn1J.d.ts +61 -0
  65. package/dist/esm/index-DQ1yFGd2.d.ts +229 -0
  66. package/dist/esm/index-DnaUCh8d.d.ts +15 -0
  67. package/dist/esm/index-TBkPiipk.d.ts +49 -0
  68. package/dist/esm/lib/utils/index.d.ts +3 -61
  69. package/dist/esm/lib/utils/index.js +4 -5
  70. package/dist/esm/show-BgYrfIxJ.js +41 -0
  71. package/dist/esm/show-BgYrfIxJ.js.map +1 -0
  72. package/dist/esm/slot-RXTKo4L7.js +58 -0
  73. package/dist/esm/slot-RXTKo4L7.js.map +1 -0
  74. package/dist/esm/suspense-with-boundary-TrQxYRG6.js +21 -0
  75. package/dist/esm/suspense-with-boundary-TrQxYRG6.js.map +1 -0
  76. package/dist/esm/switch-PF5xTJfr.js +42 -0
  77. package/dist/esm/switch-PF5xTJfr.js.map +1 -0
  78. package/dist/esm/teleport-dlSjWj_t.js +32 -0
  79. package/dist/esm/teleport-dlSjWj_t.js.map +1 -0
  80. package/dist/esm/utils-D4YNWj2X.js +89 -0
  81. package/dist/esm/utils-D4YNWj2X.js.map +1 -0
  82. package/package.json +4 -3
  83. package/dist/esm/await-parts-BJ6C-y1f.d.ts +0 -36
  84. package/dist/esm/chunk-6QJYHPBL.js +0 -45
  85. package/dist/esm/chunk-6QJYHPBL.js.map +0 -1
  86. package/dist/esm/chunk-BJ7WR4XW.js +0 -274
  87. package/dist/esm/chunk-BJ7WR4XW.js.map +0 -1
  88. package/dist/esm/chunk-CWUEUCR5.js +0 -3
  89. package/dist/esm/chunk-CWUEUCR5.js.map +0 -1
  90. package/dist/esm/chunk-D6QZA3UT.js +0 -56
  91. package/dist/esm/chunk-D6QZA3UT.js.map +0 -1
  92. package/dist/esm/chunk-EYWTW54R.js +0 -42
  93. package/dist/esm/chunk-EYWTW54R.js.map +0 -1
  94. package/dist/esm/chunk-G5BNZM66.js +0 -32
  95. package/dist/esm/chunk-G5BNZM66.js.map +0 -1
  96. package/dist/esm/chunk-JC52CA2O.js +0 -113
  97. package/dist/esm/chunk-JC52CA2O.js.map +0 -1
  98. package/dist/esm/chunk-M7YXNGT6.js +0 -48
  99. package/dist/esm/chunk-M7YXNGT6.js.map +0 -1
  100. package/dist/esm/chunk-MRYXZN2P.js +0 -336
  101. package/dist/esm/chunk-MRYXZN2P.js.map +0 -1
  102. package/dist/esm/chunk-MT2MQDK2.js +0 -13
  103. package/dist/esm/chunk-MT2MQDK2.js.map +0 -1
  104. package/dist/esm/chunk-N4274N5K.js +0 -50
  105. package/dist/esm/chunk-N4274N5K.js.map +0 -1
  106. package/dist/esm/chunk-NXZZXJRH.js +0 -41
  107. package/dist/esm/chunk-NXZZXJRH.js.map +0 -1
  108. package/dist/esm/chunk-OHG7GB7O.js +0 -8
  109. package/dist/esm/chunk-OHG7GB7O.js.map +0 -1
  110. package/dist/esm/chunk-P5QP73HG.js +0 -626
  111. package/dist/esm/chunk-P5QP73HG.js.map +0 -1
  112. package/dist/esm/chunk-PZ5AY32C.js +0 -9
  113. package/dist/esm/chunk-PZ5AY32C.js.map +0 -1
  114. package/dist/esm/chunk-V5ZPMMIH.js +0 -121
  115. package/dist/esm/chunk-V5ZPMMIH.js.map +0 -1
  116. package/dist/esm/chunk-YO5LJ7ZJ.js +0 -74
  117. package/dist/esm/chunk-YO5LJ7ZJ.js.map +0 -1
  118. package/dist/esm/chunk-YSDKXBU7.js +0 -68
  119. package/dist/esm/chunk-YSDKXBU7.js.map +0 -1
  120. package/dist/esm/components/common/await/index.js.map +0 -1
  121. package/dist/esm/components/common/error-boundary/index.js.map +0 -1
  122. package/dist/esm/components/common/for/index.js.map +0 -1
  123. package/dist/esm/components/common/index.js.map +0 -1
  124. package/dist/esm/components/common/show/index.js.map +0 -1
  125. package/dist/esm/components/common/slot/index.js.map +0 -1
  126. package/dist/esm/components/common/suspense-with-boundary/index.js.map +0 -1
  127. package/dist/esm/components/common/switch/index.js.map +0 -1
  128. package/dist/esm/components/common/teleport/index.js.map +0 -1
  129. package/dist/esm/components/ui/card/index.js.map +0 -1
  130. package/dist/esm/components/ui/carousel/index.js.map +0 -1
  131. package/dist/esm/components/ui/drag-scroll/index.js.map +0 -1
  132. package/dist/esm/components/ui/drop-zone/index.js.map +0 -1
  133. package/dist/esm/components/ui/form/index.js.map +0 -1
  134. package/dist/esm/components/ui/index.js.map +0 -1
  135. package/dist/esm/drop-zone-parts-CvseSoXA.d.ts +0 -186
  136. package/dist/esm/error-boundary-BD0X61Sg.d.ts +0 -28
  137. package/dist/esm/lib/utils/index.js.map +0 -1
  138. package/dist/esm/types-mdfDDNrr.d.ts +0 -25
@@ -0,0 +1,68 @@
1
+ import * as React$1 from "react";
2
+ import { Component } from "react";
3
+
4
+ //#region src/components/common/error-boundary/types.d.ts
5
+ type FallbackProps = {
6
+ error: unknown;
7
+ resetErrorBoundary: (...args: unknown[]) => void;
8
+ };
9
+ type ErrorBoundaryProps = {
10
+ children: React.ReactNode;
11
+ fallback?: React.ReactNode | ((props: FallbackProps) => React.ReactNode);
12
+ onError?: (context: {
13
+ error: Error;
14
+ info: React.ErrorInfo & {
15
+ ownerStack?: string;
16
+ };
17
+ }) => void;
18
+ onReset?: (context: {
19
+ args: unknown[];
20
+ reason: "imperative-api";
21
+ } | {
22
+ next: unknown[] | undefined;
23
+ prev: unknown[] | undefined;
24
+ reason: "keys";
25
+ }) => void;
26
+ resetKeys?: unknown[];
27
+ }; //#endregion
28
+ //#region src/components/common/error-boundary/error-boundary.d.ts
29
+ type ErrorBoundaryState = {
30
+ error: Error;
31
+ hasError: true;
32
+ } | {
33
+ error: null;
34
+ hasError: false;
35
+ };
36
+ /**
37
+ * Copied from react-error-boundary package
38
+ * @see https://github.com/bvaughn/react-error-boundary
39
+ */
40
+ declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
41
+ #private;
42
+ constructor(props: ErrorBoundaryProps);
43
+ static getDerivedStateFromError(error: Error): {
44
+ error: Error;
45
+ hasError: boolean;
46
+ };
47
+ componentDidCatch(error: Error, info: React$1.ErrorInfo): void;
48
+ componentDidUpdate(prevProps: ErrorBoundaryProps, prevState: ErrorBoundaryState): void;
49
+ render(): React$1.JSX.Element;
50
+ }
51
+
52
+ //#endregion
53
+ //#region src/components/common/error-boundary/error-boundary-context.d.ts
54
+ type ErrorBoundaryContextType = {
55
+ error: unknown;
56
+ hasError: boolean;
57
+ resetErrorBoundary: (...args: unknown[]) => void;
58
+ };
59
+ //#endregion
60
+ //#region src/components/common/error-boundary/useErrorBoundary.d.ts
61
+ declare const useErrorBoundary: <TError extends Error>() => {
62
+ resetBoundary: () => void;
63
+ showBoundary: (error: TError) => void;
64
+ };
65
+
66
+ //#endregion
67
+ export { ErrorBoundary as ErrorBoundary$1, ErrorBoundaryContextType, ErrorBoundaryProps, FallbackProps, useErrorBoundary as useErrorBoundary$1, useErrorBoundaryContext as useErrorBoundaryContext$1 };
68
+ //# sourceMappingURL=index-BSJ30pGj.d.ts.map
@@ -1,14 +1,22 @@
1
- import * as React from 'react';
2
- import { DiscriminatedRenderProps, PolymorphicProps } from '@zayne-labs/toolkit-react/utils';
3
- import { Prettify, ExtractUnion } from '@zayne-labs/toolkit-type-helpers';
1
+ import * as React from "react";
2
+ import { ExtractUnion, Prettify } from "@zayne-labs/toolkit-type-helpers";
3
+ import { DiscriminatedRenderProps, PolymorphicProps } from "@zayne-labs/toolkit-react/utils";
4
4
 
5
+ //#region src/components/common/for/for.d.ts
5
6
  type RenderPropFn<TArray> = (item: TArray extends readonly unknown[] ? ExtractUnion<TArray> : TArray extends number ? number : unknown, index: number, array: TArray extends readonly unknown[] ? TArray : TArray extends number ? number[] : unknown[]) => React.ReactNode;
6
7
  type ForRenderProps<TArrayItem> = DiscriminatedRenderProps<RenderPropFn<TArrayItem>>;
7
8
  type ForProps<TArray> = Prettify<{
8
- each: TArray;
9
- fallback?: React.ReactNode;
9
+ each: TArray;
10
+ fallback?: React.ReactNode;
10
11
  } & ForRenderProps<TArray>>;
11
12
  declare function For<const TArray>(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;
12
13
  declare function ForWithWrapper<TArrayItem, TElement extends React.ElementType = "ul">(props: PolymorphicProps<TElement, ForProps<TArrayItem>>): React.JSX.Element;
13
14
 
14
- export { For as F, ForWithWrapper as a, type ForRenderProps as b };
15
+ //#endregion
16
+ //#region src/components/common/for/getElementList.d.ts
17
+ type GetElementListResult<TVariant extends "base" | "withWrapper"> = TVariant extends "base" ? [typeof For] : [typeof ForWithWrapper];
18
+ declare const getElementList: <TVariant extends "base" | "withWrapper" = "withWrapper">(variant?: TVariant) => GetElementListResult<TVariant>;
19
+
20
+ //#endregion
21
+ export { For as For$1, ForRenderProps, ForWithWrapper as ForWithWrapper$1, getElementList as getElementList$1 };
22
+ //# sourceMappingURL=index-BhpBx8dH.d.ts.map
@@ -0,0 +1,22 @@
1
+ import { __export } from "./chunk-Cl8Af3a2.js";
2
+ import * as React from "react";
3
+ import { PolymorphicProps } from "@zayne-labs/toolkit-react/utils";
4
+
5
+ //#region src/components/ui/card/card.d.ts
6
+ declare function CardRoot<TElement extends React.ElementType = "article">(props: PolymorphicProps<TElement>): React.JSX.Element;
7
+ declare function CardHeader<TElement extends React.ElementType = "header">(props: PolymorphicProps<TElement>): React.JSX.Element;
8
+ declare function CardTitle<TElement extends React.ElementType = "h3">(props: PolymorphicProps<TElement>): React.JSX.Element;
9
+ declare function CardDescription<TElement extends React.ElementType = "p">(props: PolymorphicProps<TElement>): React.JSX.Element;
10
+ declare function CardContent<TElement extends React.ElementType = "div">(props: PolymorphicProps<TElement>): React.JSX.Element;
11
+ declare function CardFooter<TElement extends React.ElementType = "footer">(props: PolymorphicProps<TElement, {
12
+ asChild?: boolean;
13
+ }>): React.JSX.Element;
14
+
15
+ //#endregion
16
+ //#region src/components/ui/card/card-parts.d.ts
17
+ declare namespace card_parts_d_exports {
18
+ export { CardContent as Content, CardDescription as Description, CardFooter as Footer, CardHeader as Header, CardRoot as Root, CardTitle as Title };
19
+ }
20
+ //#endregion
21
+ export { CardContent as CardContent$1, CardDescription as CardDescription$1, CardFooter as CardFooter$1, CardHeader as CardHeader$1, CardRoot as CardRoot$1, CardTitle as CardTitle$1, card_parts_d_exports };
22
+ //# sourceMappingURL=index-BuSQsDCX.d.ts.map
@@ -0,0 +1,35 @@
1
+ import { __export } from "./chunk-Cl8Af3a2.js";
2
+ import * as React from "react";
3
+
4
+ //#region src/components/common/show/show.d.ts
5
+ type ShowProps<TWhen> = {
6
+ children: React.ReactNode | ((value: TWhen) => React.ReactNode);
7
+ fallback?: React.ReactNode;
8
+ when: false | TWhen | null | undefined;
9
+ };
10
+ declare function ShowRoot<TWhen>(props: ShowProps<TWhen>): 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;
11
+ declare function ShowContent({
12
+ children
13
+ }: {
14
+ children: React.ReactNode;
15
+ }): React.ReactNode;
16
+ declare namespace ShowContent {
17
+ var slotSymbol: symbol;
18
+ }
19
+ declare function ShowFallback({
20
+ children
21
+ }: {
22
+ children: React.ReactNode;
23
+ }): React.ReactNode;
24
+ declare namespace ShowFallback {
25
+ var slotSymbol: symbol;
26
+ }
27
+
28
+ //#endregion
29
+ //#region src/components/common/show/show-parts.d.ts
30
+ declare namespace show_parts_d_exports {
31
+ export { ShowContent as Content, ShowFallback as Fallback, ShowFallback as Otherwise, ShowRoot as Root };
32
+ }
33
+ //#endregion
34
+ export { ShowContent as ShowContent$1, ShowFallback as ShowFallback$1, ShowRoot as ShowRoot$1, show_parts_d_exports };
35
+ //# sourceMappingURL=index-C0XZoIZD.d.ts.map
@@ -0,0 +1,24 @@
1
+ import { InferProps } from "@zayne-labs/toolkit-react/utils";
2
+
3
+ //#region src/components/ui/drag-scroll/use-drag-scroll.d.ts
4
+ type ItemProps<TItemElement extends HTMLElement> = Omit<InferProps<TItemElement>, "children">;
5
+ type RootProps<TElement extends HTMLElement> = Omit<InferProps<TElement>, "children">;
6
+ type DragScrollProps<TElement extends HTMLElement, TItemElement extends HTMLElement> = {
7
+ classNames?: {
8
+ base?: string;
9
+ item?: string;
10
+ };
11
+ extraItemProps?: ItemProps<TItemElement>;
12
+ extraRootProps?: InferProps<TElement>;
13
+ orientation?: "both" | "horizontal" | "vertical";
14
+ usage?: "allScreens" | "desktopOnly" | "mobileAndTabletOnly";
15
+ };
16
+ type DragScrollResult<TElement extends HTMLElement, TItemElement extends HTMLElement> = {
17
+ getItemProps: (itemProps?: ItemProps<TItemElement>) => ItemProps<TItemElement>;
18
+ getRootProps: (rootProps?: RootProps<TElement>) => RootProps<TElement>;
19
+ };
20
+ declare const useDragScroll: <TElement extends HTMLElement, TItemElement extends HTMLElement = HTMLElement>(props?: DragScrollProps<TElement, TItemElement>) => DragScrollResult<TElement, TItemElement>;
21
+
22
+ //#endregion
23
+ export { useDragScroll as useDragScroll$1 };
24
+ //# sourceMappingURL=index-CTZr4PTO.d.ts.map
@@ -0,0 +1,14 @@
1
+ import { ErrorBoundaryProps } from "./index-BSJ30pGj.js";
2
+ import * as react1 from "react";
3
+
4
+ //#region src/components/common/suspense-with-boundary/suspense-with-boundary.d.ts
5
+ type SuspenseWithBoundaryProps = {
6
+ children: React.ReactNode;
7
+ errorFallback?: ErrorBoundaryProps["fallback"];
8
+ fallback?: React.ReactNode;
9
+ };
10
+ declare function SuspenseWithBoundary(props: SuspenseWithBoundaryProps): react1.JSX.Element;
11
+
12
+ //#endregion
13
+ export { SuspenseWithBoundary as SuspenseWithBoundary$1, SuspenseWithBoundaryProps };
14
+ //# sourceMappingURL=index-CqlM1M0j.d.ts.map
@@ -0,0 +1,61 @@
1
+ import * as react8 from "react";
2
+ import { Prettify, UnknownObject } from "@zayne-labs/toolkit-type-helpers";
3
+
4
+ //#region src/lib/utils/getSlot/getSlot.d.ts
5
+ type FunctionalComponent<TProps extends UnknownObject = never> = React.FunctionComponent<TProps>;
6
+ /**
7
+ * @description Checks if a react child (within the children array) matches the provided SlotComponent using multiple matching strategies:
8
+ * 1. Matches by slot symbol property
9
+ * 2. Matches by component name
10
+ */
11
+ declare const matchesSlotComponent: (child: React.ReactNode, SlotComponent: FunctionalComponent) => boolean;
12
+ /**
13
+ * @description Checks if a react child (within the children array) matches any of the provided SlotComponents.
14
+ */
15
+ declare const matchesAnySlotComponent: (child: React.ReactNode, SlotComponents: FunctionalComponent[]) => boolean;
16
+ type SlotOptions = {
17
+ /**
18
+ * @description The error message to throw when multiple slots are found for a given slot component
19
+ */
20
+ errorMessage?: string;
21
+ /**
22
+ * @description When true, an AssertionError will be thrown if multiple slots are found for a given slot component
23
+ */
24
+ throwOnMultipleSlotMatch?: boolean;
25
+ };
26
+ /**
27
+ * @description Retrieves a single slot element from a collection of React children that matches the provided SlotComponent component.
28
+ *
29
+ * @throws { AssertionError } when throwOnMultipleSlotMatch is true and multiple slots are found
30
+ */
31
+ declare const getSingleSlot: (children: React.ReactNode, SlotComponent: FunctionalComponent, options?: SlotOptions) => react8.ReactNode;
32
+ type MultipleSlotsOptions = {
33
+ /**
34
+ * @description The error message to throw when multiple slots are found for a given slot component
35
+ * If a string is provided, the same message will be used for all slot components
36
+ * If an array is provided, each string in the array will be used as the errorMessage for the corresponding slot component
37
+ */
38
+ errorMessage?: string | string[];
39
+ /**
40
+ * @description When true, an AssertionError will be thrown if multiple slots are found for a given slot component
41
+ * If a boolean is provided, the same value will be used for all slot components
42
+ * If an array is provided, each boolean in the array will be used as the throwOnMultipleSlotMatch value for the corresponding slot component
43
+ */
44
+ throwOnMultipleSlotMatch?: boolean | boolean[];
45
+ };
46
+ type GetMultipleSlotsResult<TSlotComponents extends FunctionalComponent[]> = {
47
+ regularChildren: React.ReactNode[];
48
+ slots: { [Key in keyof TSlotComponents]: ReturnType<TSlotComponents[Key]> };
49
+ };
50
+ /**
51
+ * @description The same as getSingleSlot, but for multiple slot components
52
+ */
53
+ declare const getMultipleSlots: <const TSlotComponents extends FunctionalComponent[]>(children: React.ReactNode, SlotComponents: TSlotComponents, options?: MultipleSlotsOptions) => Prettify<GetMultipleSlotsResult<TSlotComponents>>;
54
+ /**
55
+ * @description Returns all children that are not slot elements (i.e., don't match any of the provided slot components)
56
+ */
57
+ declare const getRegularChildren: (children: React.ReactNode, SlotComponentOrComponents: FunctionalComponent | FunctionalComponent[]) => react8.ReactNode[];
58
+
59
+ //#endregion
60
+ export { FunctionalComponent, getMultipleSlots, getRegularChildren, getSingleSlot, matchesAnySlotComponent, matchesSlotComponent };
61
+ //# sourceMappingURL=index-D-j2Cn1J.d.ts.map
@@ -0,0 +1,229 @@
1
+ import { __export } from "./chunk-Cl8Af3a2.js";
2
+ import * as React$1 from "react";
3
+ import { UnionDiscriminator } from "@zayne-labs/toolkit-type-helpers";
4
+ import { DiscriminatedRenderProps, InferProps, PolymorphicProps } from "@zayne-labs/toolkit-react/utils";
5
+ import { Control, ControllerFieldState, ControllerProps, ControllerRenderProps, FieldPath, FieldPathValue, FieldPathValues, RegisterOptions, UseFormReturn, UseFormStateReturn, useFormContext as useFormRootContext } from "react-hook-form";
6
+
7
+ //#region src/components/ui/form/form-context.d.ts
8
+
9
+ type RenderIconProps = {
10
+ isPasswordVisible: boolean;
11
+ };
12
+ type EyeIconObject = UnionDiscriminator<[{
13
+ closed: React.ReactNode;
14
+ open: React.ReactNode;
15
+ }, {
16
+ renderIcon: (props: RenderIconProps) => React.ReactNode;
17
+ }]>;
18
+ type FormRootContext = {
19
+ withEyeIcon: boolean | EyeIconObject | undefined;
20
+ };
21
+ type FieldContextValue = {
22
+ formDescriptionId: `${string}-(${string})-form-item-description`;
23
+ formItemId: `${string}-(${string})-form-item`;
24
+ formMessageId: `${string}-(${string})-form-item-message`;
25
+ name: string;
26
+ };
27
+ type FormFieldContextProps = DiscriminatedRenderProps<(contextValue: FieldContextValue) => React.ReactNode>;
28
+ type FieldState = {
29
+ errors?: UseFormStateReturn<FieldValues>["errors"];
30
+ isDisabled?: boolean;
31
+ isInvalid?: boolean;
32
+ }; //#endregion
33
+ //#region src/components/ui/form/form.d.ts
34
+ type FieldValues = Record<string, unknown>;
35
+ type FormRootProps<TFieldValues extends FieldValues> = Partial<FormRootContext> & React$1.ComponentPropsWithoutRef<"form"> & {
36
+ children: React$1.ReactNode;
37
+ methods: UseFormReturn<TFieldValues>;
38
+ };
39
+ declare function FormRoot<TValues extends FieldValues>(props: FormRootProps<TValues>): React$1.JSX.Element;
40
+ type FormFieldProps<TControl, TFieldValues extends FieldValues> = (TControl extends Control<infer TValues> ? {
41
+ control?: never;
42
+ name: FieldPath<TValues>;
43
+ } : {
44
+ control?: Control<TFieldValues>;
45
+ name: FieldPath<TFieldValues>;
46
+ }) & ((InferProps<"div"> & {
47
+ withWrapper?: true;
48
+ }) | {
49
+ children: React$1.ReactNode;
50
+ className?: never;
51
+ withWrapper: false;
52
+ });
53
+ declare function FormField<TControl, TFieldValues extends FieldValues = FieldValues>(props: FormFieldProps<TControl, TFieldValues>): React$1.JSX.Element;
54
+ type FormFieldControllerRenderFn = (props: {
55
+ field: Omit<ControllerRenderProps, "value"> & {
56
+ value: never;
57
+ };
58
+ fieldState: ControllerFieldState;
59
+ formState: UseFormStateReturn<never>;
60
+ }) => React$1.ReactElement;
61
+ type FormFieldControllerProps = Omit<ControllerProps<FieldValues, FieldPath<FieldValues>>, "control" | "name" | "render"> & {
62
+ render: FormFieldControllerRenderFn;
63
+ };
64
+ declare function FormFieldController(props: FormFieldControllerProps): React$1.JSX.Element;
65
+ declare function FormFieldControlledField<TFieldValues extends FieldValues>(props: ControllerProps<TFieldValues>): React$1.JSX.Element;
66
+ declare function FormFieldContext(props: FormFieldContextProps): React$1.ReactNode;
67
+ declare function FormLabel(props: InferProps<"label">): React$1.JSX.Element;
68
+ declare function FormInputGroup(props: InferProps<"div">): React$1.JSX.Element;
69
+ type FormSideItemProps = {
70
+ children?: React$1.ReactNode;
71
+ className?: string;
72
+ };
73
+ declare function FormInputLeftItem<TElement extends React$1.ElementType = "span">(props: PolymorphicProps<TElement, FormSideItemProps>): React$1.JSX.Element;
74
+ declare namespace FormInputLeftItem {
75
+ var slotSymbol: symbol;
76
+ }
77
+ declare function FormInputRightItem<TElement extends React$1.ElementType = "span">(props: PolymorphicProps<TElement, FormSideItemProps>): React$1.JSX.Element;
78
+ declare namespace FormInputRightItem {
79
+ var slotSymbol: symbol;
80
+ }
81
+ type FormInputPrimitiveProps<TFieldValues extends FieldValues = FieldValues> = Omit<React$1.ComponentPropsWithRef<"input">, "children"> & {
82
+ classNames?: {
83
+ error?: string;
84
+ eyeIcon?: string;
85
+ input?: string;
86
+ inputGroup?: string;
87
+ };
88
+ control?: Control<TFieldValues>;
89
+ fieldState?: FieldState;
90
+ name?: FieldPath<TFieldValues>;
91
+ withEyeIcon?: FormRootContext["withEyeIcon"];
92
+ };
93
+ type FormTextAreaPrimitiveProps<TFieldValues extends FieldValues = FieldValues> = React$1.ComponentPropsWithRef<"textarea"> & {
94
+ classNames?: {
95
+ base?: string;
96
+ error?: string;
97
+ };
98
+ control?: Control<TFieldValues>;
99
+ fieldState?: FieldState;
100
+ name?: FieldPath<TFieldValues>;
101
+ };
102
+ type FormSelectPrimitiveProps<TFieldValues extends FieldValues = FieldValues> = React$1.ComponentPropsWithRef<"select"> & {
103
+ classNames?: {
104
+ base?: string;
105
+ error?: string;
106
+ };
107
+ control?: Control<TFieldValues>;
108
+ fieldState?: FieldState;
109
+ name?: FieldPath<TFieldValues>;
110
+ };
111
+ declare function FormInputPrimitive<TFieldValues extends FieldValues>(props: FormInputPrimitiveProps<TFieldValues> & {
112
+ rules?: RegisterOptions;
113
+ }): React$1.JSX.Element;
114
+ declare function FormTextAreaPrimitive<TFieldValues extends FieldValues>(props: FormTextAreaPrimitiveProps<TFieldValues> & {
115
+ rules?: RegisterOptions;
116
+ }): React$1.JSX.Element;
117
+ declare function FormSelectPrimitive<TFieldValues extends FieldValues>(props: FormSelectPrimitiveProps<TFieldValues> & {
118
+ rules?: RegisterOptions;
119
+ }): React$1.JSX.Element;
120
+ type PrimitivePropsToOmit = "control" | "formState" | "name";
121
+ type FormInputProps = Omit<FormInputPrimitiveProps, PrimitivePropsToOmit> & {
122
+ rules?: RegisterOptions;
123
+ };
124
+ type FormTextAreaProps = Omit<FormTextAreaPrimitiveProps, PrimitivePropsToOmit> & {
125
+ rules?: RegisterOptions;
126
+ };
127
+ type FormSelectProps = Omit<FormSelectPrimitiveProps, PrimitivePropsToOmit> & {
128
+ rules?: RegisterOptions;
129
+ };
130
+ type CombinedFormInputProps = (FormSelectProps & {
131
+ type: "select";
132
+ }) | (FormTextAreaProps & {
133
+ type: "textarea";
134
+ }) | FormInputProps;
135
+ declare function FormInput(props: CombinedFormInputProps & {
136
+ rules?: RegisterOptions;
137
+ }): React$1.JSX.Element;
138
+ declare function FormTextArea(props: FormTextAreaProps): React$1.JSX.Element;
139
+ declare function FormSelect(props: FormSelectProps): React$1.JSX.Element;
140
+ declare function FormDescription(props: InferProps<"p">): React$1.JSX.Element;
141
+ type ErrorMessageRenderProps = {
142
+ className: string;
143
+ "data-index": number;
144
+ "data-part": "error-message";
145
+ "data-scope": "form";
146
+ "data-slot": "form-error-message";
147
+ id: string | undefined;
148
+ ref: React$1.RefCallback<HTMLElement>;
149
+ };
150
+ type ErrorMessageRenderState = {
151
+ errorMessage: string;
152
+ errorMessageArray: string[];
153
+ index: number;
154
+ };
155
+ type ErrorMessageRenderFn = (context: {
156
+ props: ErrorMessageRenderProps;
157
+ state: ErrorMessageRenderState;
158
+ }) => React$1.ReactNode;
159
+ type FormErrorMessagePrimitiveProps<TFieldValues extends FieldValues> = DiscriminatedRenderProps<ErrorMessageRenderFn> & {
160
+ className?: string;
161
+ classNames?: {
162
+ container?: string;
163
+ errorMessage?: string;
164
+ errorMessageAnimation?: string;
165
+ };
166
+ control?: Control<TFieldValues>;
167
+ disableErrorAnimation?: boolean;
168
+ disableScrollToErrorField?: boolean;
169
+ } & ({
170
+ fieldName: FieldPath<TFieldValues>;
171
+ type?: "regular";
172
+ } | {
173
+ fieldName: string;
174
+ type: "root";
175
+ });
176
+ type FormErrorMessagePrimitiveType = {
177
+ <TFieldValues extends FieldValues>(props: Extract<FormErrorMessagePrimitiveProps<TFieldValues>, {
178
+ type?: "regular";
179
+ }>): React$1.ReactNode;
180
+ <TFieldValues extends FieldValues>(props: Extract<FormErrorMessagePrimitiveProps<TFieldValues>, {
181
+ type: "root";
182
+ }>): React$1.ReactNode;
183
+ };
184
+ declare const FormErrorMessagePrimitive: FormErrorMessagePrimitiveType;
185
+ type FormErrorMessageProps<TControl, TFieldValues extends FieldValues> = (TControl extends Control<infer TValues> ? {
186
+ className?: string;
187
+ control?: never;
188
+ errorField?: FieldPath<TValues>;
189
+ type?: "regular";
190
+ } : {
191
+ className?: string;
192
+ control?: Control<TFieldValues>;
193
+ errorField?: FieldPath<TFieldValues>;
194
+ type?: "regular";
195
+ }) | {
196
+ className?: string;
197
+ control?: never;
198
+ errorField: string;
199
+ type: "root";
200
+ };
201
+ declare function FormErrorMessage<TControl, TFieldValues extends FieldValues = FieldValues>(props: FormErrorMessageProps<TControl, TFieldValues>): React$1.JSX.Element;
202
+ type FormSubmitProps = InferProps<"button"> & {
203
+ asChild?: boolean;
204
+ };
205
+ declare function FormSubmit<TElement extends React$1.ElementType = "button">(props: PolymorphicProps<TElement, FormSubmitProps>): React$1.JSX.Element;
206
+ type GetFieldValue<TFieldPathOrPaths, TFieldValues extends FieldValues> = TFieldPathOrPaths extends Array<FieldPath<TFieldValues>> ? FieldPathValues<TFieldValues, TFieldPathOrPaths> : TFieldPathOrPaths extends FieldPath<TFieldValues> ? FieldPathValue<TFieldValues, TFieldPathOrPaths> : unknown;
207
+ type FormSubscribeToFieldValueRenderFn<TFieldValues extends FieldValues, TFieldPathOrPaths> = (props: {
208
+ value: GetFieldValue<TFieldPathOrPaths, TFieldValues>;
209
+ }) => React$1.ReactNode;
210
+ type FormSubscribeToFieldValueProps<TFieldValues extends FieldValues, TFieldPathOrPaths> = DiscriminatedRenderProps<FormSubscribeToFieldValueRenderFn<TFieldValues, TFieldPathOrPaths>> & {
211
+ control: Control<TFieldValues>;
212
+ name?: TFieldPathOrPaths;
213
+ };
214
+ declare function FormSubscribeToFieldValue<TFieldValues extends FieldValues, const TFieldPathOrPaths extends Array<FieldPath<TFieldValues>> | FieldPath<TFieldValues>>(props: FormSubscribeToFieldValueProps<TFieldValues, TFieldPathOrPaths>): React$1.ReactNode;
215
+ type FormSubscribeToFormStateRenderFn<TFieldValues extends FieldValues> = (props: UseFormStateReturn<TFieldValues>) => React$1.ReactNode;
216
+ type FormSubscribeToFormStateProps<TFieldValues extends FieldValues> = DiscriminatedRenderProps<FormSubscribeToFormStateRenderFn<TFieldValues>> & {
217
+ control?: Control<TFieldValues>;
218
+ name?: Array<FieldPath<TFieldValues>> | FieldPath<TFieldValues>;
219
+ };
220
+ declare function FormSubscribeToFormState<TFieldValues extends FieldValues = FieldValues>(props: FormSubscribeToFormStateProps<TFieldValues>): React$1.ReactNode;
221
+
222
+ //#endregion
223
+ //#region src/components/ui/form/form-parts.d.ts
224
+ declare namespace form_parts_d_exports {
225
+ export { FormFieldControlledField as ControlledField, FormDescription as Description, FormErrorMessage as ErrorMessage, FormErrorMessagePrimitive as ErrorMessagePrimitive, FormField as Field, FormFieldContext as FieldContext, FormFieldController as FieldController, FormInput as Input, FormInputGroup as InputGroup, FormInputLeftItem as InputLeftItem, FormInputPrimitive as InputPrimitive, FormInputRightItem as InputRightItem, FormLabel as Label, FormRoot as Root, FormSelect as Select, FormSubmit as Submit, FormSubscribeToFieldValue as SubscribeToFieldValue, FormSubscribeToFormState as SubscribeToFormState, FormTextArea as TextArea, FormTextAreaPrimitive as TextAreaPrimitive };
226
+ }
227
+ //#endregion
228
+ export { FieldValues, FormDescription as FormDescription$1, FormErrorMessage as FormErrorMessage$1, FormErrorMessagePrimitive as FormErrorMessagePrimitive$1, FormErrorMessagePrimitiveProps, FormField as FormField$1, FormFieldContext as FormFieldContext$1, FormFieldControlledField as FormFieldControlledField$1, FormFieldController as FormFieldController$1, FormInput as FormInput$1, FormInputGroup as FormInputGroup$1, FormInputLeftItem as FormInputLeftItem$1, FormInputPrimitive as FormInputPrimitive$1, FormInputProps, FormInputRightItem as FormInputRightItem$1, FormLabel as FormLabel$1, FormRoot as FormRoot$1, FormSelect as FormSelect$1, FormSelectPrimitive as FormSelectPrimitive$1, FormSelectProps, FormSubmit as FormSubmit$1, FormSubscribeToFieldValue as FormSubscribeToFieldValue$1, FormSubscribeToFormState as FormSubscribeToFormState$1, FormTextArea as FormTextArea$1, FormTextAreaPrimitive as FormTextAreaPrimitive$1, FormTextAreaProps, form_parts_d_exports, useFormRootContext as useFormRootContext$1, useStrictFormFieldContext as useStrictFormFieldContext$1 };
229
+ //# sourceMappingURL=index-DQ1yFGd2.d.ts.map
@@ -0,0 +1,15 @@
1
+ import * as React from "react";
2
+ import { AnyString } from "@zayne-labs/toolkit-type-helpers";
3
+
4
+ //#region src/components/common/teleport/teleport.d.ts
5
+ type ValidHtmlTags = keyof HTMLElementTagNameMap;
6
+ type PortalProps = {
7
+ children: React.ReactNode;
8
+ insertPosition?: InsertPosition;
9
+ to: AnyString | HTMLElement | ValidHtmlTags | null;
10
+ };
11
+ declare function Teleport(props: PortalProps): React.ReactPortal | null;
12
+
13
+ //#endregion
14
+ export { Teleport as Teleport$1 };
15
+ //# sourceMappingURL=index-DnaUCh8d.d.ts.map
@@ -0,0 +1,49 @@
1
+ import { __export } from "./chunk-Cl8Af3a2.js";
2
+ import { GetSlotComponentProps } from "./getSlotMap-DA_uhXqU.js";
3
+ import { ErrorBoundaryProps } from "./index-BSJ30pGj.js";
4
+ import { SuspenseWithBoundaryProps } from "./index-CqlM1M0j.js";
5
+ import * as React from "react";
6
+
7
+ //#region src/components/common/await/await.d.ts
8
+ type RenderPropFn<TValue> = (result: TValue) => React.ReactNode;
9
+ type ChildrenType<TValue> = React.ReactNode | RenderPropFn<TValue>;
10
+ type AwaitRootProps<TValue> = Pick<SuspenseWithBoundaryProps, "errorFallback" | "fallback"> & {
11
+ asChild?: boolean;
12
+ children: ChildrenType<TValue>;
13
+ promise: Promise<TValue>;
14
+ wrapperVariant?: "all" | "none" | "only-errorBoundary" | "only-suspense";
15
+ };
16
+ declare function AwaitRoot<TValue>(props: AwaitRootProps<TValue>): React.JSX.Element;
17
+ type AwaitSuccessProps<TValue = unknown> = GetSlotComponentProps<"default", ChildrenType<TValue>>;
18
+ declare function AwaitSuccess<TPromiseOrValue, TValue = Awaited<TPromiseOrValue>>(props: Pick<AwaitSuccessProps<TValue>, "children">): React.ReactNode;
19
+ type AwaitPendingProps = GetSlotComponentProps<"pending", React.SuspenseProps["fallback"]>;
20
+ declare const AwaitPending: {
21
+ (props: Pick<AwaitPendingProps, "children">): React.ReactNode;
22
+ readonly slotName?: "pending" | undefined;
23
+ readonly slotSymbol?: symbol;
24
+ };
25
+ type AwaitErrorProps = GetSlotComponentProps<"error", ErrorBoundaryProps["fallback"]>;
26
+ declare const AwaitError: {
27
+ (props: Pick<AwaitErrorProps, "children"> & {
28
+ asChild?: boolean;
29
+ }): React.ReactNode;
30
+ readonly slotName?: "error" | undefined;
31
+ readonly slotSymbol?: symbol;
32
+ };
33
+
34
+ //#endregion
35
+ //#region src/components/common/await/await-parts.d.ts
36
+ declare namespace await_parts_d_exports {
37
+ export { AwaitError as Error, AwaitPending as Pending, AwaitRoot as Root, AwaitSuccess as Success };
38
+ }
39
+ //#endregion
40
+ //#region src/components/common/await/await-context.d.ts
41
+ type AwaitContextType<TValue = unknown> = {
42
+ promise: Promise<TValue>;
43
+ result: TValue;
44
+ };
45
+ declare const useAwaitContext: <TValue>() => AwaitContextType<TValue>;
46
+
47
+ //#endregion
48
+ export { AwaitError as AwaitError$1, AwaitPending as AwaitPending$1, AwaitRoot as AwaitRoot$1, AwaitSuccess as AwaitSuccess$1, await_parts_d_exports, useAwaitContext as useAwaitContext$1 };
49
+ //# sourceMappingURL=index-TBkPiipk.d.ts.map
@@ -1,61 +1,3 @@
1
- export { a as GetSlotComponentProps, G as GetSlotMapResult, c as createSlotComponent, g as getSlotMap, s as slotComponentSymbol, w as withSlotNameAndSymbol } from '../../getSlotMap-DTkxtGhd.js';
2
- import * as React$1 from 'react';
3
- import { UnknownObject, Prettify } from '@zayne-labs/toolkit-type-helpers';
4
-
5
- type FunctionalComponent<TProps extends UnknownObject = never> = React.FunctionComponent<TProps>;
6
- /**
7
- * @description Checks if a react child (within the children array) matches the provided SlotComponent using multiple matching strategies:
8
- * 1. Matches by slot symbol property
9
- * 2. Matches by component name
10
- */
11
- declare const matchesSlotComponent: (child: React.ReactNode, SlotComponent: FunctionalComponent) => boolean;
12
- /**
13
- * @description Checks if a react child (within the children array) matches any of the provided SlotComponents.
14
- */
15
- declare const matchesAnySlotComponent: (child: React.ReactNode, SlotComponents: FunctionalComponent[]) => boolean;
16
- type SlotOptions = {
17
- /**
18
- * @description The error message to throw when multiple slots are found for a given slot component
19
- */
20
- errorMessage?: string;
21
- /**
22
- * @description When true, an AssertionError will be thrown if multiple slots are found for a given slot component
23
- */
24
- throwOnMultipleSlotMatch?: boolean;
25
- };
26
- /**
27
- * @description Retrieves a single slot element from a collection of React children that matches the provided SlotComponent component.
28
- *
29
- * @throws { AssertionError } when throwOnMultipleSlotMatch is true and multiple slots are found
30
- */
31
- declare const getSingleSlot: (children: React.ReactNode, SlotComponent: FunctionalComponent, options?: SlotOptions) => React$1.ReactNode;
32
- type MultipleSlotsOptions = {
33
- /**
34
- * @description The error message to throw when multiple slots are found for a given slot component
35
- * If a string is provided, the same message will be used for all slot components
36
- * If an array is provided, each string in the array will be used as the errorMessage for the corresponding slot component
37
- */
38
- errorMessage?: string | string[];
39
- /**
40
- * @description When true, an AssertionError will be thrown if multiple slots are found for a given slot component
41
- * If a boolean is provided, the same value will be used for all slot components
42
- * If an array is provided, each boolean in the array will be used as the throwOnMultipleSlotMatch value for the corresponding slot component
43
- */
44
- throwOnMultipleSlotMatch?: boolean | boolean[];
45
- };
46
- type GetMultipleSlotsResult<TSlotComponents extends FunctionalComponent[]> = {
47
- regularChildren: React.ReactNode[];
48
- slots: {
49
- [Key in keyof TSlotComponents]: ReturnType<TSlotComponents[Key]>;
50
- };
51
- };
52
- /**
53
- * @description The same as getSingleSlot, but for multiple slot components
54
- */
55
- declare const getMultipleSlots: <const TSlotComponents extends FunctionalComponent[]>(children: React.ReactNode, SlotComponents: TSlotComponents, options?: MultipleSlotsOptions) => Prettify<GetMultipleSlotsResult<TSlotComponents>>;
56
- /**
57
- * @description Returns all children that are not slot elements (i.e., don't match any of the provided slot components)
58
- */
59
- declare const getRegularChildren: (children: React.ReactNode, SlotComponentOrComponents: FunctionalComponent | FunctionalComponent[]) => React$1.ReactNode[];
60
-
61
- export { type FunctionalComponent, getMultipleSlots, getRegularChildren, getSingleSlot, matchesAnySlotComponent, matchesSlotComponent };
1
+ import { GetSlotComponentProps, GetSlotMapResult, createSlotComponent$1 as createSlotComponent, getSlotMap$1 as getSlotMap, slotComponentSymbol$1 as slotComponentSymbol, withSlotNameAndSymbol$1 as withSlotNameAndSymbol } from "../../getSlotMap-DA_uhXqU.js";
2
+ import { FunctionalComponent, getMultipleSlots, getRegularChildren, getSingleSlot, matchesAnySlotComponent, matchesSlotComponent } from "../../index-D-j2Cn1J.js";
3
+ export { FunctionalComponent, GetSlotComponentProps, GetSlotMapResult, createSlotComponent, getMultipleSlots, getRegularChildren, getSingleSlot, getSlotMap, matchesAnySlotComponent, matchesSlotComponent, slotComponentSymbol, withSlotNameAndSymbol };
@@ -1,5 +1,4 @@
1
- export { createSlotComponent, getSlotMap, slotComponentSymbol, withSlotNameAndSymbol } from '../../chunk-N4274N5K.js';
2
- export { getMultipleSlots, getRegularChildren, getSingleSlot, matchesAnySlotComponent, matchesSlotComponent } from '../../chunk-YO5LJ7ZJ.js';
3
- import '../../chunk-PZ5AY32C.js';
4
- //# sourceMappingURL=index.js.map
5
- //# sourceMappingURL=index.js.map
1
+ import { createSlotComponent, getSlotMap, slotComponentSymbol, withSlotNameAndSymbol } from "../../utils-D4YNWj2X.js";
2
+ import { getMultipleSlots$1 as getMultipleSlots, getRegularChildren$1 as getRegularChildren, getSingleSlot$1 as getSingleSlot, matchesAnySlotComponent$1 as matchesAnySlotComponent, matchesSlotComponent$1 as matchesSlotComponent } from "../../getSlot-BIcGgBwN.js";
3
+
4
+ export { createSlotComponent, getMultipleSlots, getRegularChildren, getSingleSlot, getSlotMap, matchesAnySlotComponent, matchesSlotComponent, slotComponentSymbol, withSlotNameAndSymbol };