@patternmode/stacksheet 1.3.5 → 1.3.7

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 (123) hide show
  1. package/README.md +2 -8
  2. package/dist/Drag/{DragConstants.d.ts → drag-constants.d.ts} +1 -1
  3. package/dist/Drag/drag-constants.d.ts.map +1 -0
  4. package/dist/Drag/drag-geometry.d.ts +22 -0
  5. package/dist/Drag/drag-geometry.d.ts.map +1 -0
  6. package/dist/Drag/{DragTypes.d.ts → drag-types.d.ts} +1 -1
  7. package/dist/Drag/drag-types.d.ts.map +1 -0
  8. package/dist/Drag/{useDrag.d.ts → use-drag.d.ts} +4 -4
  9. package/dist/Drag/use-drag.d.ts.map +1 -0
  10. package/dist/SheetPanel/default-header.d.ts +5 -0
  11. package/dist/SheetPanel/default-header.d.ts.map +1 -0
  12. package/dist/SheetPanel/sheet-panel-content.d.ts +15 -0
  13. package/dist/SheetPanel/sheet-panel-content.d.ts.map +1 -0
  14. package/dist/SheetPanel/sheet-panel-focus.d.ts +8 -0
  15. package/dist/SheetPanel/sheet-panel-focus.d.ts.map +1 -0
  16. package/dist/SheetPanel/sheet-panel-handles.d.ts +10 -0
  17. package/dist/SheetPanel/sheet-panel-handles.d.ts.map +1 -0
  18. package/dist/SheetPanel/sheet-panel-layout.d.ts +4 -0
  19. package/dist/SheetPanel/sheet-panel-layout.d.ts.map +1 -0
  20. package/dist/SheetPanel/{SheetPanelTypes.d.ts → sheet-panel-types.d.ts} +2 -2
  21. package/dist/SheetPanel/sheet-panel-types.d.ts.map +1 -0
  22. package/dist/SheetPanel/sheet-panel.d.ts +3 -0
  23. package/dist/SheetPanel/sheet-panel.d.ts.map +1 -0
  24. package/dist/SheetParts/sheet-back.d.ts +3 -0
  25. package/dist/SheetParts/sheet-back.d.ts.map +1 -0
  26. package/dist/SheetParts/sheet-body.d.ts +3 -0
  27. package/dist/SheetParts/sheet-body.d.ts.map +1 -0
  28. package/dist/SheetParts/sheet-close.d.ts +3 -0
  29. package/dist/SheetParts/sheet-close.d.ts.map +1 -0
  30. package/dist/SheetParts/sheet-description.d.ts +3 -0
  31. package/dist/SheetParts/sheet-description.d.ts.map +1 -0
  32. package/dist/SheetParts/sheet-footer.d.ts +3 -0
  33. package/dist/SheetParts/sheet-footer.d.ts.map +1 -0
  34. package/dist/SheetParts/sheet-handle.d.ts +3 -0
  35. package/dist/SheetParts/sheet-handle.d.ts.map +1 -0
  36. package/dist/SheetParts/sheet-header.d.ts +3 -0
  37. package/dist/SheetParts/sheet-header.d.ts.map +1 -0
  38. package/dist/SheetParts/{SheetPartTypes.d.ts → sheet-part-types.d.ts} +1 -1
  39. package/dist/SheetParts/sheet-part-types.d.ts.map +1 -0
  40. package/dist/SheetParts/sheet-parts.d.ts +20 -0
  41. package/dist/SheetParts/sheet-parts.d.ts.map +1 -0
  42. package/dist/SheetParts/sheet-title.d.ts +3 -0
  43. package/dist/SheetParts/sheet-title.d.ts.map +1 -0
  44. package/dist/Store/{createSheetStore.d.ts → create-sheet-store.d.ts} +3 -3
  45. package/dist/Store/create-sheet-store.d.ts.map +1 -0
  46. package/dist/Store/store-args.d.ts +26 -0
  47. package/dist/Store/store-args.d.ts.map +1 -0
  48. package/dist/Store/{StoreTypes.d.ts → store-types.d.ts} +3 -4
  49. package/dist/Store/store-types.d.ts.map +1 -0
  50. package/dist/config.d.ts +1 -1
  51. package/dist/config.d.ts.map +1 -1
  52. package/dist/create.d.ts +1 -1
  53. package/dist/create.d.ts.map +1 -1
  54. package/dist/icons.d.ts +2 -2
  55. package/dist/icons.d.ts.map +1 -1
  56. package/dist/index.mjs +1066 -893
  57. package/dist/index.mjs.map +1 -1
  58. package/dist/media.d.ts +2 -2
  59. package/dist/media.d.ts.map +1 -1
  60. package/dist/panel-context.d.ts +1 -1
  61. package/dist/panel-context.d.ts.map +1 -1
  62. package/dist/parts.d.ts +10 -10
  63. package/dist/parts.d.ts.map +1 -1
  64. package/dist/renderer-effects.d.ts +4 -4
  65. package/dist/renderer-effects.d.ts.map +1 -1
  66. package/dist/renderer-helpers.d.ts +19 -19
  67. package/dist/renderer-helpers.d.ts.map +1 -1
  68. package/dist/renderer.d.ts +8 -7
  69. package/dist/renderer.d.ts.map +1 -1
  70. package/dist/sheet-panel.d.ts +2 -2
  71. package/dist/sheet-panel.d.ts.map +1 -1
  72. package/dist/snap-points.d.ts +3 -3
  73. package/dist/snap-points.d.ts.map +1 -1
  74. package/dist/springs.d.ts +11 -17
  75. package/dist/springs.d.ts.map +1 -1
  76. package/dist/stacking.d.ts +6 -6
  77. package/dist/stacking.d.ts.map +1 -1
  78. package/dist/store.d.ts +2 -2
  79. package/dist/store.d.ts.map +1 -1
  80. package/dist/types.d.ts +31 -35
  81. package/dist/types.d.ts.map +1 -1
  82. package/package.json +13 -12
  83. package/dist/Drag/DragConstants.d.ts.map +0 -1
  84. package/dist/Drag/DragGeometry.d.ts +0 -22
  85. package/dist/Drag/DragGeometry.d.ts.map +0 -1
  86. package/dist/Drag/DragTypes.d.ts.map +0 -1
  87. package/dist/Drag/useDrag.d.ts.map +0 -1
  88. package/dist/SheetPanel/DefaultHeader.d.ts +0 -5
  89. package/dist/SheetPanel/DefaultHeader.d.ts.map +0 -1
  90. package/dist/SheetPanel/SheetPanel.d.ts +0 -3
  91. package/dist/SheetPanel/SheetPanel.d.ts.map +0 -1
  92. package/dist/SheetPanel/SheetPanelContent.d.ts +0 -12
  93. package/dist/SheetPanel/SheetPanelContent.d.ts.map +0 -1
  94. package/dist/SheetPanel/SheetPanelFocus.d.ts +0 -8
  95. package/dist/SheetPanel/SheetPanelFocus.d.ts.map +0 -1
  96. package/dist/SheetPanel/SheetPanelHandles.d.ts +0 -10
  97. package/dist/SheetPanel/SheetPanelHandles.d.ts.map +0 -1
  98. package/dist/SheetPanel/SheetPanelLayout.d.ts +0 -4
  99. package/dist/SheetPanel/SheetPanelLayout.d.ts.map +0 -1
  100. package/dist/SheetPanel/SheetPanelTypes.d.ts.map +0 -1
  101. package/dist/SheetParts/SheetBack.d.ts +0 -3
  102. package/dist/SheetParts/SheetBack.d.ts.map +0 -1
  103. package/dist/SheetParts/SheetBody.d.ts +0 -3
  104. package/dist/SheetParts/SheetBody.d.ts.map +0 -1
  105. package/dist/SheetParts/SheetClose.d.ts +0 -3
  106. package/dist/SheetParts/SheetClose.d.ts.map +0 -1
  107. package/dist/SheetParts/SheetDescription.d.ts +0 -3
  108. package/dist/SheetParts/SheetDescription.d.ts.map +0 -1
  109. package/dist/SheetParts/SheetFooter.d.ts +0 -3
  110. package/dist/SheetParts/SheetFooter.d.ts.map +0 -1
  111. package/dist/SheetParts/SheetHandle.d.ts +0 -3
  112. package/dist/SheetParts/SheetHandle.d.ts.map +0 -1
  113. package/dist/SheetParts/SheetHeader.d.ts +0 -3
  114. package/dist/SheetParts/SheetHeader.d.ts.map +0 -1
  115. package/dist/SheetParts/SheetPartTypes.d.ts.map +0 -1
  116. package/dist/SheetParts/SheetParts.d.ts +0 -28
  117. package/dist/SheetParts/SheetParts.d.ts.map +0 -1
  118. package/dist/SheetParts/SheetTitle.d.ts +0 -3
  119. package/dist/SheetParts/SheetTitle.d.ts.map +0 -1
  120. package/dist/Store/StoreArgs.d.ts +0 -15
  121. package/dist/Store/StoreArgs.d.ts.map +0 -1
  122. package/dist/Store/StoreTypes.d.ts.map +0 -1
  123. package/dist/Store/createSheetStore.d.ts.map +0 -1
package/README.md CHANGED
@@ -64,11 +64,7 @@ function UserProfile({ userId }: { userId: string }) {
64
64
  function ViewProfileButton() {
65
65
  const { open } = useSheet();
66
66
 
67
- return (
68
- <button onClick={() => open(UserProfile, { userId: "u_abc" })}>
69
- View profile
70
- </button>
71
- );
67
+ return <button onClick={() => open(UserProfile, { userId: "u_abc" })}>View profile</button>;
72
68
  }
73
69
  ```
74
70
 
@@ -108,9 +104,7 @@ function App() {
108
104
  function OpenSettingsButton() {
109
105
  const { open } = useSheet();
110
106
  return (
111
- <button
112
- onClick={() => open("settings", "settings-root", { tab: "billing" })}
113
- >
107
+ <button onClick={() => open("settings", "settings-root", { tab: "billing" })}>
114
108
  Open settings
115
109
  </button>
116
110
  );
@@ -6,4 +6,4 @@ export declare const DEAD_ZONE = 10;
6
6
  export declare const MAX_ANGLE_DEG = 35;
7
7
  /** Rubber-band resistance factor for dragging past resting position */
8
8
  export declare const RUBBER_BAND_FACTOR = 0.6;
9
- //# sourceMappingURL=DragConstants.d.ts.map
9
+ //# sourceMappingURL=drag-constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drag-constants.d.ts","sourceRoot":"","sources":["../../src/Drag/drag-constants.ts"],"names":[],"mappings":"AAAA,iDAAiD;AACjD,eAAO,MAAM,gBAAgB,aAA0D,CAAC;AAExF,kEAAkE;AAClE,eAAO,MAAM,SAAS,KAAK,CAAC;AAE5B,sEAAsE;AACtE,eAAO,MAAM,aAAa,KAAK,CAAC;AAEhC,uEAAuE;AACvE,eAAO,MAAM,kBAAkB,MAAM,CAAC"}
@@ -0,0 +1,22 @@
1
+ import type { Side } from "../types";
2
+ import type { DragAxis, DragSign } from "./drag-types";
3
+ export declare const isInteractiveElement: (el: Element) => boolean;
4
+ /**
5
+ * Walk up from `el` to find the nearest scrollable ancestor.
6
+ * Returns null if nothing is scrollable in the dismiss axis.
7
+ */
8
+ export declare const findScrollableAncestor: (el: Element, axis: DragAxis) => Element | null;
9
+ /**
10
+ * Get the dismiss direction axis and sign for a given side.
11
+ * - right panel → dismiss by dragging right (+x)
12
+ * - left panel → dismiss by dragging left (-x)
13
+ * - bottom panel → dismiss by dragging down (+y)
14
+ */
15
+ export declare const getDismissAxis: (side: Side) => {
16
+ axis: DragAxis;
17
+ sign: DragSign;
18
+ };
19
+ /** Decide whether a pointer gesture commits as a drag or should be ignored. */
20
+ export declare const commitGesture: (dx: number, dy: number, axis: DragAxis, sign: DragSign, scrollEl: Element | null) => "drag" | "none";
21
+ export declare const getPanelDimension: (panel: HTMLDivElement | null, axis: DragAxis) => number;
22
+ //# sourceMappingURL=drag-geometry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drag-geometry.d.ts","sourceRoot":"","sources":["../../src/Drag/drag-geometry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAErC,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAEvD,eAAO,MAAM,oBAAoB,GAAI,IAAI,OAAO,KAAG,OAelD,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,GAAI,IAAI,OAAO,EAAE,MAAM,QAAQ,KAAG,OAAO,GAAG,IAmB9E,CAAC;AAcF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GACzB,MAAM,IAAI,KACT;IACD,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,QAAQ,CAAC;CAgBhB,CAAC;AA+BF,+EAA+E;AAC/E,eAAO,MAAM,aAAa,GACxB,IAAI,MAAM,EACV,IAAI,MAAM,EACV,MAAM,QAAQ,EACd,MAAM,QAAQ,EACd,UAAU,OAAO,GAAG,IAAI,KACvB,MAAM,GAAG,MASX,CAAC;AACF,eAAO,MAAM,iBAAiB,GAAI,OAAO,cAAc,GAAG,IAAI,EAAE,MAAM,QAAQ,KAAG,MAKhF,CAAC"}
@@ -31,4 +31,4 @@ export interface DragState {
31
31
  }
32
32
  export type DragAxis = "x" | "y";
33
33
  export type DragSign = 1 | -1;
34
- //# sourceMappingURL=DragTypes.d.ts.map
34
+ //# sourceMappingURL=drag-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drag-types.d.ts","sourceRoot":"","sources":["../../src/Drag/drag-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAErC,MAAM,WAAW,UAAU;IACzB,sCAAsC;IACtC,eAAe,EAAE,MAAM,CAAC;IACxB,wEAAwE;IACxE,cAAc,EAAE,MAAM,CAAC;IACvB,kDAAkD;IAClD,OAAO,EAAE,OAAO,CAAC;IACjB,qEAAqE;IACrE,QAAQ,EAAE,OAAO,CAAC;IAClB,oDAAoD;IACpD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,kDAAkD;IAClD,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,iDAAiD;IACjD,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,qDAAqD;IACrD,UAAU,EAAE,OAAO,CAAC;IACpB,uDAAuD;IACvD,IAAI,EAAE,IAAI,CAAC;IACX,oFAAoF;IACpF,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,gEAAgE;IAChE,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,SAAS;IACxB,yCAAyC;IACzC,UAAU,EAAE,OAAO,CAAC;IACpB,wDAAwD;IACxD,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,QAAQ,GAAG,GAAG,GAAG,GAAG,CAAC;AACjC,MAAM,MAAM,QAAQ,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
- import { type RefObject } from "react";
2
- import type { DragConfig, DragState } from "./DragTypes";
1
+ import type { RefObject } from "react";
2
+ import type { DragConfig, DragState } from "./drag-types";
3
3
  /**
4
4
  * Hook that manages drag gestures that can dismiss a sheet panel.
5
5
  *
@@ -16,5 +16,5 @@ import type { DragConfig, DragState } from "./DragTypes";
16
16
  * When `snapHeights` is provided, release targeting uses
17
17
  * `findSnapTarget()` instead of the simple threshold check.
18
18
  */
19
- export declare function useDrag(panelRef: RefObject<HTMLDivElement | null>, config: DragConfig, onDragUpdate: (state: DragState) => void): void;
20
- //# sourceMappingURL=useDrag.d.ts.map
19
+ export declare const useDrag: (panelRef: RefObject<HTMLDivElement | null>, config: DragConfig, onDragUpdate: (state: DragState) => void) => void;
20
+ //# sourceMappingURL=use-drag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-drag.d.ts","sourceRoot":"","sources":["../../src/Drag/use-drag.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUvC,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAmI1D;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,OAAO,GAClB,UAAU,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,EAC1C,QAAQ,UAAU,EAClB,cAAc,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,SAyDzC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { HeaderRenderProps } from "../types";
2
+ export declare const DefaultHeader: ({ isNested, onBack, onClose, className, }: HeaderRenderProps & {
3
+ className?: string;
4
+ }) => import("react").JSX.Element;
5
+ //# sourceMappingURL=default-header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-header.d.ts","sourceRoot":"","sources":["../../src/SheetPanel/default-header.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,eAAO,MAAM,aAAa,GAAI,2CAK3B,iBAAiB,GAAG;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,gCAuBA,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { ComponentType, ReactNode } from "react";
2
+ import type { HeaderRenderProps } from "../types";
3
+ export declare const PanelInnerContent: {
4
+ ({ isComposable, shouldRender, Content, data, renderHeader, headerProps, headerClassName, }: {
5
+ isComposable: boolean;
6
+ shouldRender: boolean;
7
+ Content: ComponentType<Record<string, unknown>> | undefined;
8
+ data: Record<string, unknown>;
9
+ renderHeader?: false | ((props: HeaderRenderProps) => ReactNode);
10
+ headerProps: HeaderRenderProps;
11
+ headerClassName: string | undefined;
12
+ }): import("react").JSX.Element | null;
13
+ displayName: string;
14
+ };
15
+ //# sourceMappingURL=sheet-panel-content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet-panel-content.d.ts","sourceRoot":"","sources":["../../src/SheetPanel/sheet-panel-content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAGlD,eAAO,MAAM,iBAAiB;iGAQ3B;QACD,YAAY,EAAE,OAAO,CAAC;QACtB,YAAY,EAAE,OAAO,CAAC;QACtB,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC;QAC5D,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC9B,YAAY,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,KAAK,EAAE,iBAAiB,KAAK,SAAS,CAAC,CAAC;QACjE,WAAW,EAAE,iBAAiB,CAAC;QAC/B,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;KACrC;;CAwBA,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { ReactNode, RefObject } from "react";
2
+ export declare const ModalFocusTrap: ({ enabled, active, fallbackRef, children, }: {
3
+ enabled: boolean;
4
+ active: boolean;
5
+ fallbackRef: RefObject<HTMLElement | null>;
6
+ children: ReactNode;
7
+ }) => ReactNode;
8
+ //# sourceMappingURL=sheet-panel-focus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet-panel-focus.d.ts","sourceRoot":"","sources":["../../src/SheetPanel/sheet-panel-focus.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAsClD,eAAO,MAAM,cAAc,GAAI,6CAK5B;IACD,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC3C,QAAQ,EAAE,SAAS,CAAC;CACrB,KAAG,SAyBH,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { Side } from "../types";
2
+ export declare const BottomHandle: ({ onDismiss }: {
3
+ onDismiss?: () => void;
4
+ }) => import("react").JSX.Element;
5
+ export declare const SideHandle: ({ side, isHovered, onDismiss, }: {
6
+ side: Side;
7
+ isHovered: boolean;
8
+ onDismiss?: () => void;
9
+ }) => import("react").JSX.Element;
10
+ //# sourceMappingURL=sheet-panel-handles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet-panel-handles.d.ts","sourceRoot":"","sources":["../../src/SheetPanel/sheet-panel-handles.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAErC,eAAO,MAAM,YAAY,GAAI,eAAe;IAAE,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CAAE,gCAUrE,CAAC;AACF,eAAO,MAAM,UAAU,GAAI,iCAIxB;IACD,IAAI,EAAE,IAAI,CAAC;IACX,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,gCAgBA,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ReactNode } from "react";
2
+ import type { HeaderRenderProps, StacksheetLayout } from "../types";
3
+ export declare const resolvePanelLayout: (layout: StacksheetLayout | undefined, renderHeader?: false | ((props: HeaderRenderProps) => ReactNode)) => StacksheetLayout;
4
+ //# sourceMappingURL=sheet-panel-layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet-panel-layout.d.ts","sourceRoot":"","sources":["../../src/SheetPanel/sheet-panel-layout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEpE,eAAO,MAAM,kBAAkB,GAC7B,QAAQ,gBAAgB,GAAG,SAAS,EACpC,eAAe,KAAK,GAAG,CAAC,CAAC,KAAK,EAAE,iBAAiB,KAAK,SAAS,CAAC,KAC/D,gBAKF,CAAC"}
@@ -4,7 +4,7 @@ import type { SlideValues } from "../stacking";
4
4
  import type { HeaderRenderProps, ResolvedConfig, SheetItem, Side, StacksheetLayout } from "../types";
5
5
  export interface SheetPanelProps {
6
6
  activeSnapIndex: number;
7
- Content: ComponentType<any> | undefined;
7
+ Content: ComponentType<Record<string, unknown>> | undefined;
8
8
  classNames: ResolvedClassNames;
9
9
  close: () => void;
10
10
  config: ResolvedConfig;
@@ -28,4 +28,4 @@ export interface SheetPanelProps {
28
28
  swipeClose: () => void;
29
29
  swipePop: () => void;
30
30
  }
31
- //# sourceMappingURL=SheetPanelTypes.d.ts.map
31
+ //# sourceMappingURL=sheet-panel-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet-panel-types.d.ts","sourceRoot":"","sources":["../../src/SheetPanel/sheet-panel-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EACV,iBAAiB,EACjB,cAAc,EACd,SAAS,EACT,IAAI,EACJ,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAElB,MAAM,WAAW,eAAe;IAC9B,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC;IAC5D,UAAU,EAAE,kBAAkB,CAAC;IAC/B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,MAAM,EAAE,cAAc,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,GAAG,EAAE,MAAM,IAAI,CAAC;IAChB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,YAAY,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,KAAK,EAAE,iBAAiB,KAAK,SAAS,CAAC,CAAC;IACjE,YAAY,EAAE,OAAO,CAAC;IACtB,IAAI,EAAE,IAAI,CAAC;IACX,SAAS,EAAE,WAAW,CAAC;IACvB,WAAW,EAAE,WAAW,CAAC;IACzB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB"}
@@ -0,0 +1,3 @@
1
+ import type { SheetPanelProps } from "./sheet-panel-types";
2
+ export declare const SheetPanel: (props: SheetPanelProps) => import("react").JSX.Element;
3
+ //# sourceMappingURL=sheet-panel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet-panel.d.ts","sourceRoot":"","sources":["../../src/SheetPanel/sheet-panel.tsx"],"names":[],"mappings":"AA+BA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAqR3D,eAAO,MAAM,UAAU,GAAI,OAAO,eAAe,gCAiFhD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { SheetOptionalContentPartProps } from "./sheet-part-types";
2
+ export declare const SheetBack: ({ asChild, className, style, children, }: SheetOptionalContentPartProps) => import("react").JSX.Element | null;
3
+ //# sourceMappingURL=sheet-back.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet-back.d.ts","sourceRoot":"","sources":["../../src/SheetParts/sheet-back.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AAExE,eAAO,MAAM,SAAS,GAAI,0CAKvB,6BAA6B,uCAqB/B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { SheetPartProps } from "./sheet-part-types";
2
+ export declare const SheetBody: ({ asChild, className, style, children }: SheetPartProps) => import("react").JSX.Element;
3
+ //# sourceMappingURL=sheet-body.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet-body.d.ts","sourceRoot":"","sources":["../../src/SheetParts/sheet-body.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,eAAO,MAAM,SAAS,GAAI,yCAAyC,cAAc,gCA2BhF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { SheetOptionalContentPartProps } from "./sheet-part-types";
2
+ export declare const SheetClose: ({ asChild, className, style, children, }: SheetOptionalContentPartProps) => import("react").JSX.Element;
3
+ //# sourceMappingURL=sheet-close.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet-close.d.ts","sourceRoot":"","sources":["../../src/SheetParts/sheet-close.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AAExE,eAAO,MAAM,UAAU,GAAI,0CAKxB,6BAA6B,gCAkB/B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { SheetPartProps } from "./sheet-part-types";
2
+ export declare const SheetDescription: ({ asChild, className, style, children }: SheetPartProps) => import("react").JSX.Element;
3
+ //# sourceMappingURL=sheet-description.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet-description.d.ts","sourceRoot":"","sources":["../../src/SheetParts/sheet-description.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,eAAO,MAAM,gBAAgB,GAAI,yCAAyC,cAAc,gCAUvF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { SheetPartProps } from "./sheet-part-types";
2
+ export declare const SheetFooter: ({ asChild, className, style, children }: SheetPartProps) => import("react").JSX.Element;
3
+ //# sourceMappingURL=sheet-footer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet-footer.d.ts","sourceRoot":"","sources":["../../src/SheetParts/sheet-footer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,eAAO,MAAM,WAAW,GAAI,yCAAyC,cAAc,gCASlF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { SheetOptionalContentPartProps } from "./sheet-part-types";
2
+ export declare const SheetHandle: ({ asChild, className, style, children, }: SheetOptionalContentPartProps) => import("react").JSX.Element;
3
+ //# sourceMappingURL=sheet-handle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet-handle.d.ts","sourceRoot":"","sources":["../../src/SheetParts/sheet-handle.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AAExE,eAAO,MAAM,WAAW,GAAI,0CAKzB,6BAA6B,gCAoB/B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { SheetPartProps } from "./sheet-part-types";
2
+ export declare const SheetHeader: ({ asChild, className, style, children }: SheetPartProps) => import("react").JSX.Element;
3
+ //# sourceMappingURL=sheet-header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet-header.d.ts","sourceRoot":"","sources":["../../src/SheetParts/sheet-header.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,eAAO,MAAM,WAAW,GAAI,yCAAyC,cAAc,gCAalF,CAAC"}
@@ -19,4 +19,4 @@ export type SheetFooterProps = SheetPartProps;
19
19
  export type SheetHandleProps = SheetOptionalContentPartProps;
20
20
  export type SheetHeaderProps = SheetPartProps;
21
21
  export type SheetTitleProps = SheetPartProps;
22
- //# sourceMappingURL=SheetPartTypes.d.ts.map
22
+ //# sourceMappingURL=sheet-part-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet-part-types.d.ts","sourceRoot":"","sources":["../../src/SheetParts/sheet-part-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtD,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,MAAM,WAAW,6BAA6B;IAC5C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,MAAM,MAAM,cAAc,GAAG,6BAA6B,CAAC;AAC3D,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC;AAC5C,MAAM,MAAM,eAAe,GAAG,6BAA6B,CAAC;AAC5D,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC;AACnD,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC;AAC9C,MAAM,MAAM,gBAAgB,GAAG,6BAA6B,CAAC;AAC7D,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC;AAC9C,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Composable Sheet Parts for building custom Sheet layouts.
3
+ *
4
+ * Use with `layout="composable"` on the provider to opt into composable mode:
5
+ * no auto header or scroll wrapper, full control over the Sheet structure.
6
+ *
7
+ * `Sheet.Title` and `Sheet.Description` are linked to the Panel's
8
+ * `aria-labelledby` and `aria-describedby` via matching IDs.
9
+ */
10
+ export declare const Sheet: {
11
+ readonly Back: ({ asChild, className, style, children, }: import("./sheet-part-types").SheetOptionalContentPartProps) => import("react").JSX.Element | null;
12
+ readonly Body: ({ asChild, className, style, children }: import("./sheet-part-types").SheetPartProps) => import("react").JSX.Element;
13
+ readonly Close: ({ asChild, className, style, children, }: import("./sheet-part-types").SheetOptionalContentPartProps) => import("react").JSX.Element;
14
+ readonly Description: ({ asChild, className, style, children }: import("./sheet-part-types").SheetPartProps) => import("react").JSX.Element;
15
+ readonly Footer: ({ asChild, className, style, children }: import("./sheet-part-types").SheetPartProps) => import("react").JSX.Element;
16
+ readonly Handle: ({ asChild, className, style, children, }: import("./sheet-part-types").SheetOptionalContentPartProps) => import("react").JSX.Element;
17
+ readonly Header: ({ asChild, className, style, children }: import("./sheet-part-types").SheetPartProps) => import("react").JSX.Element;
18
+ readonly Title: ({ asChild, className, style, children }: import("./sheet-part-types").SheetPartProps) => import("react").JSX.Element;
19
+ };
20
+ //# sourceMappingURL=sheet-parts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet-parts.d.ts","sourceRoot":"","sources":["../../src/SheetParts/sheet-parts.ts"],"names":[],"mappings":"AASA;;;;;;;;GAQG;AACH,eAAO,MAAM,KAAK;;;;;;;;;CASR,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { SheetPartProps } from "./sheet-part-types";
2
+ export declare const SheetTitle: ({ asChild, className, style, children }: SheetPartProps) => import("react").JSX.Element;
3
+ //# sourceMappingURL=sheet-title.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet-title.d.ts","sourceRoot":"","sources":["../../src/SheetParts/sheet-title.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,eAAO,MAAM,UAAU,GAAI,yCAAyC,cAAc,gCAUjF,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { ResolvedConfig } from "../types";
2
- import type { SheetStoreBundle } from "./StoreTypes";
2
+ import type { SheetStoreBundle } from "./store-types";
3
3
  /**
4
4
  * Create an isolated Zustand store for a sheet stack instance.
5
5
  *
@@ -11,5 +11,5 @@ import type { SheetStoreBundle } from "./StoreTypes";
11
11
  * The ad-hoc counter is scoped per instance to prevent identity leaks across
12
12
  * multiple `createStacksheet()` calls or test runs.
13
13
  */
14
- export declare function createSheetStore<TMap extends object>(config: ResolvedConfig): SheetStoreBundle<TMap>;
15
- //# sourceMappingURL=createSheetStore.d.ts.map
14
+ export declare const createSheetStore: <TMap extends object>(config: ResolvedConfig) => SheetStoreBundle<TMap>;
15
+ //# sourceMappingURL=create-sheet-store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-sheet-store.d.ts","sourceRoot":"","sources":["../../src/Store/create-sheet-store.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAa,MAAM,UAAU,CAAC;AAS1D,OAAO,KAAK,EAA8B,gBAAgB,EAAc,MAAM,eAAe,CAAC;AA2N9F;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB,GAAI,IAAI,SAAS,MAAM,EAClD,QAAQ,cAAc,KACrB,gBAAgB,CAAC,IAAI,CA6CvB,CAAC"}
@@ -0,0 +1,26 @@
1
+ import type { SheetPresentationOptions } from "../types";
2
+ import type { AnyComponent, ResolvedItem } from "./store-types";
3
+ declare global {
4
+ var process: undefined | {
5
+ env?: {
6
+ NODE_ENV?: string;
7
+ };
8
+ };
9
+ }
10
+ export declare const toRecord: (value: unknown) => Record<string, unknown>;
11
+ export declare const isComponent: (value: unknown) => value is AnyComponent;
12
+ export declare const getStringArg: (value: unknown, name: string) => string;
13
+ export declare const resolvePresentationOptions: (value: unknown) => SheetPresentationOptions | undefined;
14
+ /**
15
+ * Dev-mode warning: detect likely inline arrow functions passed as ad-hoc components.
16
+ * When a new component reference has the same displayName/name as an existing one,
17
+ * it's almost always an inline arrow being re-created every render.
18
+ */
19
+ export declare const warnInlineComponent: (component: AnyComponent, componentRegistry: Map<AnyComponent, string>, warnedNames: Set<string>) => void;
20
+ export declare const registerComponent: (component: AnyComponent, componentRegistry: Map<AnyComponent, string>, componentMap: Map<string, AnyComponent>, getNextKey: () => string, warnedNames: Set<string>) => string;
21
+ /**
22
+ * If `first` is a function (component), register it and return { type, id, data }.
23
+ * Otherwise, pass through the string-based (type, id, data) args unchanged.
24
+ */
25
+ export declare const resolveArgs: (componentRegistry: Map<AnyComponent, string>, componentMap: Map<string, AnyComponent>, getNextKey: () => string, warnedNames: Set<string>, first: unknown, second: unknown, third: unknown, fourth?: unknown) => ResolvedItem;
26
+ //# sourceMappingURL=store-args.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store-args.d.ts","sourceRoot":"","sources":["../../src/Store/store-args.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAEhE,OAAO,CAAC,MAAM,CAAC;IACb,IAAI,OAAO,EACP,SAAS,GACT;QACE,GAAG,CAAC,EAAE;YACJ,QAAQ,CAAC,EAAE,MAAM,CAAC;SACnB,CAAC;KACH,CAAC;CACP;AAKD,eAAO,MAAM,QAAQ,GAAI,OAAO,OAAO,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAmC,CAAC;AAEpG,eAAO,MAAM,WAAW,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,YAA2C,CAAC;AASlG,eAAO,MAAM,YAAY,GAAI,OAAO,OAAO,EAAE,MAAM,MAAM,KAAG,MAK3D,CAAC;AAEF,eAAO,MAAM,0BAA0B,GACrC,OAAO,OAAO,KACb,wBAAwB,GAAG,SAS7B,CAAC;AACF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAC9B,WAAW,YAAY,EACvB,mBAAmB,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC,EAC5C,aAAa,GAAG,CAAC,MAAM,CAAC,KACvB,IAyBF,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,WAAW,YAAY,EACvB,mBAAmB,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC,EAC5C,cAAc,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,EACvC,YAAY,MAAM,MAAM,EACxB,aAAa,GAAG,CAAC,MAAM,CAAC,KACvB,MAWF,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,WAAW,GACtB,mBAAmB,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC,EAC5C,cAAc,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,EACvC,YAAY,MAAM,MAAM,EACxB,aAAa,GAAG,CAAC,MAAM,CAAC,EACxB,OAAO,OAAO,EACd,QAAQ,OAAO,EACf,OAAO,OAAO,EACd,SAAS,OAAO,KACf,YA8BF,CAAC"}
@@ -1,7 +1,6 @@
1
- import type { ComponentType } from "react";
2
1
  import type { StoreApi } from "zustand";
3
- import type { SheetActions, StacksheetSnapshot } from "../types";
4
- export type AnyComponent = ComponentType<any>;
2
+ import type { SheetActions, SheetContentComponent, StacksheetSnapshot } from "../types";
3
+ export type AnyComponent = SheetContentComponent<Record<string, unknown>>;
5
4
  export type StoreState<TMap extends object> = StacksheetSnapshot<TMap> & SheetActions<TMap>;
6
5
  /** Return type of createSheetStore — store plus ad-hoc component maps */
7
6
  export interface SheetStoreBundle<TMap extends object> {
@@ -18,4 +17,4 @@ export interface ResolvedItem {
18
17
  id: string;
19
18
  type: string;
20
19
  }
21
- //# sourceMappingURL=StoreTypes.d.ts.map
20
+ //# sourceMappingURL=store-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store-types.d.ts","sourceRoot":"","sources":["../../src/Store/store-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,OAAO,KAAK,EAAE,YAAY,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAExF,MAAM,MAAM,YAAY,GAAG,qBAAqB,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAE1E,MAAM,MAAM,UAAU,CAAC,IAAI,SAAS,MAAM,IAAI,kBAAkB,CAAC,IAAI,CAAC,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;AAE5F,yEAAyE;AACzE,MAAM,WAAW,gBAAgB,CAAC,IAAI,SAAS,MAAM;IACnD,2DAA2D;IAC3D,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IACxC,6CAA6C;IAC7C,iBAAiB,EAAE,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAC7C,KAAK,EAAE,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;CACnC;AAED,qDAAqD;AACrD,MAAM,WAAW,YAAY;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd"}
package/dist/config.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import type { ResolvedConfig, StacksheetConfig } from "./types";
2
2
  /** Merge user-provided config with defaults. Resolves union types (side, spring) to concrete values. */
3
- export declare function resolveConfig(config?: StacksheetConfig): ResolvedConfig;
3
+ export declare const resolveConfig: (config?: StacksheetConfig) => ResolvedConfig;
4
4
  //# sourceMappingURL=config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,cAAc,EAKd,gBAAgB,EACjB,MAAM,SAAS,CAAC;AAuCjB,wGAAwG;AACxG,wBAAgB,aAAa,CAAC,MAAM,GAAE,gBAAqB,GAAG,cAAc,CA6B3E"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,cAAc,EAKd,gBAAgB,EACjB,MAAM,SAAS,CAAC;AAkDjB,wGAAwG;AACxG,eAAO,MAAM,aAAa,GAAI,SAAQ,gBAAqB,KAAG,cAa7D,CAAC"}
package/dist/create.d.ts CHANGED
@@ -29,5 +29,5 @@ import type { StacksheetConfig, StacksheetInstance } from "./types";
29
29
  *
30
30
  * Use `useSheetPanel()` inside content components to access `close()` and `back()`.
31
31
  */
32
- export declare function createStacksheet<TMap extends object>(config?: StacksheetConfig): StacksheetInstance<TMap>;
32
+ export declare const createStacksheet: <TMap extends object>(config?: StacksheetConfig) => StacksheetInstance<TMap>;
33
33
  //# sourceMappingURL=create.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../src/create.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAIV,gBAAgB,EAChB,kBAAkB,EAGnB,MAAM,SAAS,CAAC;AAKjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,SAAS,MAAM,EAClD,MAAM,CAAC,EAAE,gBAAgB,GACxB,kBAAkB,CAAC,IAAI,CAAC,CAmF1B"}
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../src/create.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAGV,gBAAgB,EAChB,kBAAkB,EAGnB,MAAM,SAAS,CAAC;AAGjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,gBAAgB,GAAI,IAAI,SAAS,MAAM,EAClD,SAAS,gBAAgB,KACxB,kBAAkB,CAAC,IAAI,CAmEzB,CAAC"}
package/dist/icons.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  /** Inline SVG icons — no external dependency */
2
- export declare function ArrowLeftIcon(): import("react/jsx-runtime").JSX.Element;
3
- export declare function XIcon(): import("react/jsx-runtime").JSX.Element;
2
+ export declare const ArrowLeftIcon: () => import("react").JSX.Element;
3
+ export declare const XIcon: () => import("react").JSX.Element;
4
4
  //# sourceMappingURL=icons.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../src/icons.tsx"],"names":[],"mappings":"AAAA,gDAAgD;AAEhD,wBAAgB,aAAa,4CAgB5B;AAED,wBAAgB,KAAK,4CAgBpB"}
1
+ {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../src/icons.tsx"],"names":[],"mappings":"AAAA,gDAAgD;AAChD,eAAO,MAAM,aAAa,mCAczB,CAAC;AACF,eAAO,MAAM,KAAK,mCAcjB,CAAC"}