@constructive-io/ui 0.1.0 → 0.2.0
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/README.md +236 -0
- package/dist/components/alert-dialog.js.map +1 -1
- package/dist/components/autocomplete.js +11 -3
- package/dist/components/autocomplete.js.map +1 -1
- package/dist/components/avatar.js.map +1 -1
- package/dist/components/breadcrumb.js.map +1 -1
- package/dist/components/card.d.ts +1 -1
- package/dist/components/combobox.d.ts +1 -1
- package/dist/components/combobox.js +49 -13
- package/dist/components/combobox.js.map +1 -1
- package/dist/components/command.d.ts +16 -35
- package/dist/components/command.js +72 -508
- package/dist/components/command.js.map +1 -1
- package/dist/components/dialog.js.map +1 -1
- package/dist/components/drawer.js +1 -1
- package/dist/components/drawer.js.map +1 -1
- package/dist/components/dropdown-menu.js.map +1 -1
- package/dist/components/form-control.js.map +1 -1
- package/dist/components/form.js.map +1 -1
- package/dist/components/input-group.js +2 -2
- package/dist/components/input-group.js.map +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/input.js.map +1 -1
- package/dist/components/json-input.js.map +1 -1
- package/dist/components/multi-select.js.map +1 -1
- package/dist/components/pagination.js.map +1 -1
- package/dist/components/popover.js.map +1 -1
- package/dist/components/portal.js.map +1 -1
- package/dist/components/record-picker.js +1 -1
- package/dist/components/record-picker.js.map +1 -1
- package/dist/components/resizable.js.map +1 -1
- package/dist/components/responsive-diagram.js +6 -4
- package/dist/components/responsive-diagram.js.map +1 -1
- package/dist/components/select.d.ts +2 -2
- package/dist/components/select.js +3 -3
- package/dist/components/select.js.map +1 -1
- package/dist/components/sheet.js.map +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/sidebar.js.map +1 -1
- package/dist/components/stack/index.d.ts +11 -0
- package/dist/components/stack/index.js +33 -6
- package/dist/components/stack/index.js.map +1 -1
- package/dist/components/stepper.js.map +1 -1
- package/dist/components/table.js.map +1 -1
- package/dist/components/tabs.js.map +1 -1
- package/dist/components/tags.d.ts +1 -3
- package/dist/components/tags.js +107 -388
- package/dist/components/tags.js.map +1 -1
- package/dist/components/textarea.js +1 -1
- package/dist/components/textarea.js.map +1 -1
- package/dist/components/tooltip.js.map +1 -1
- package/dist/index.cjs +348 -363
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -24
- package/dist/index.d.ts +22 -24
- package/dist/index.js +235 -250
- package/dist/index.js.map +1 -1
- package/package.json +12 -15
- package/src/styles/globals.css +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/motion/motion-config.ts","../../src/components/portal.tsx","../../src/lib/slot.tsx","../../src/lib/utils.ts","../../src/components/sheet.tsx"],"names":["React","React2","jsx","SheetPrimitive","offset"],"mappings":";;;;;;;;;;AAsBO,IAAM,OAAA,GAAU;AAAA,EAiBK;AAAA,EAG3B,YAAA,EAAc,CAAC,GAAA,EAAK,CAAA,EAAG,KAAK,CAAC;AAC9B,CAAA;AAUO,IAAM,SAAA,GAAY;AAAA,EAEf;AAAA,EAGT,IAAA,EAAM,IAAA;AAAA;AAAA,EAGN,MAAA,EAAQ,GAOT,CAAA;ACxBO,IAAM,cAAA,GAAiB,aAAA;AAM9B,IAAM,gBAAsBA,MAAA,CAAA,aAAA,CAAkC;AAAA,EAC7D,KAAA,EAAO,MAAA;AAAA,EACP,KAAA,EAAO,CAAA;AAAA,EACP,sBAAA,EAAwB,MAAA;AAAA,EACxB,cAAA,EAAgB;AACjB,CAAC,CAAA;AAuBM,SAAS,gBAAA,CAAiB;AAAA,EAChC,QAAA;AAAA,EACA,sBAAA,GAAyB,QAAA;AAAA,EACzB,cAAA,GAAiB;AAClB,CAAA,EAIG;AACF,EAAA,MAAM,aAAA,GAAsBA,kBAAW,aAAa,CAAA;AAGpD,EAAA,MAAM,QAAQ,aAAA,CAAc,KAAA,KAAU,OAAA,GAAU,aAAA,CAAc,QAAQ,CAAA,GAAI,CAAA;AAE1E,EAAA,MAAM,KAAA,GAAcA,MAA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n\n/**\n * Shared motion configuration for consistent animations across the app.\n * Based on practical animation tips from https://emilkowal.ski/ui/7-practical-animation-tips\n *\n * Key principles:\n * 1. Keep UI animations under 300ms\n * 2. Never animate from scale(0) - use 0.9+ for natural feel\n * 3. Use custom easing curves for more impactful animations\n * 4. Make animations origin-aware when possible\n * 5. Use blur to smooth transitions when needed\n */\n\n// =============================================================================\n// Easing Curves\n// =============================================================================\n\n/**\n * Standard easing curves for UI animations.\n * Reference: https://easings.co/\n */\nexport const easings = {\n\t/** Smooth deceleration - good for elements entering the screen */\n\teaseOut: [0.25, 0.1, 0.25, 1] as const,\n\n\t/** Smooth acceleration - good for elements leaving the screen */\n\teaseIn: [0.42, 0, 1, 1] as const,\n\n\t/** Smooth both ways - good for hover states and toggles */\n\teaseInOut: [0.42, 0, 0.58, 1] as const,\n\n\t/** Snappy entrance with soft landing - great for modals/dialogs */\n\tsnappy: [0.2, 0, 0, 1] as const,\n\n\t/** Bouncy feel - use sparingly for playful interactions */\n\tbounce: [0.34, 1.56, 0.64, 1] as const,\n\n\t/** Quick start, gradual stop - good for quick feedback */\n\temphasized: [0.4, 0, 0.2, 1] as const,\n\n\t/** Physical feel for exit animations */\n\tphysicalExit: [0.4, 0, 0.6, 1] as const,\n} as const;\n\n// =============================================================================\n// Duration Presets\n// =============================================================================\n\n/**\n * Duration presets in seconds.\n * Rule: UI animations should be under 300ms (0.3s)\n */\nexport const durations = {\n\t/** Instant feedback (button press, toggle) */\n\tinstant: 0.1,\n\n\t/** Quick transitions (tooltips, small elements) */\n\tfast: 0.15,\n\n\t/** Standard UI transitions (modals, panels) */\n\tnormal: 0.2,\n\n\t/** Deliberate animations (page transitions, complex reveals) */\n\tslow: 0.3,\n\n\t/** Maximum for UI - use rarely */\n\tdeliberate: 0.4,\n} as const;\n\n// =============================================================================\n// Spring Presets\n// =============================================================================\n\n/**\n * Spring configurations for physics-based animations.\n * These create more natural, organic motion.\n */\nexport const springs = {\n\t/** Snappy spring - good for quick interactions */\n\tsnappy: {\n\t\ttype: 'spring' as const,\n\t\tstiffness: 400,\n\t\tdamping: 30,\n\t\tmass: 0.8,\n\t},\n\n\t/** Bouncy spring - good for playful elements */\n\tbouncy: {\n\t\ttype: 'spring' as const,\n\t\tstiffness: 300,\n\t\tdamping: 20,\n\t\tmass: 0.6,\n\t},\n\n\t/** Gentle spring - good for large elements */\n\tgentle: {\n\t\ttype: 'spring' as const,\n\t\tstiffness: 150,\n\t\tdamping: 25,\n\t\tmass: 1,\n\t},\n\n\t/** Stiff spring - good for precise movements */\n\tstiff: {\n\t\ttype: 'spring' as const,\n\t\tstiffness: 500,\n\t\tdamping: 35,\n\t\tmass: 0.5,\n\t},\n\n\t/** Panel/sheet animations */\n\tpanel: {\n\t\ttype: 'spring' as const,\n\t\tstiffness: 150,\n\t\tdamping: 25,\n\t},\n} as const;\n\n// =============================================================================\n// Transition Presets\n// =============================================================================\n\n/**\n * Pre-configured transitions for common animation patterns.\n */\nexport const transitions = {\n\t/** Fast fade for overlays and simple elements */\n\tfade: {\n\t\tduration: durations.fast,\n\t\tease: easings.easeOut,\n\t} satisfies Transition,\n\n\t/** Standard enter/exit for UI elements */\n\tenterExit: {\n\t\tduration: durations.normal,\n\t\tease: easings.easeOut,\n\t} satisfies Transition,\n\n\t/** Snappy transition for interactive elements */\n\tsnappy: {\n\t\tduration: durations.fast,\n\t\tease: easings.snappy,\n\t} satisfies Transition,\n\n\t/** Panel slide transition */\n\tpanel: {\n\t\ttype: 'spring',\n\t\tstiffness: 150,\n\t\tdamping: 25,\n\t} satisfies Transition,\n\n\t/** Exit transition with physical feel */\n\texit: {\n\t\ttype: 'tween',\n\t\tduration: durations.normal,\n\t\tease: easings.physicalExit,\n\t} satisfies Transition,\n\n\t/** Layout animations */\n\tlayout: {\n\t\ttype: 'spring',\n\t\tstiffness: 300,\n\t\tdamping: 30,\n\t} satisfies Transition,\n} as const;\n\n// =============================================================================\n// Animation Variants\n// =============================================================================\n\n/**\n * Common animation variants for AnimatePresence patterns.\n * Follows the rule: never animate from scale(0), use 0.9+ instead.\n */\nexport const variants = {\n\t/** Fade with subtle scale - good for modals, cards */\n\tfadeScale: {\n\t\tinitial: { opacity: 0, scale: 0.95 },\n\t\tanimate: { opacity: 1, scale: 1 },\n\t\texit: { opacity: 0, scale: 0.95 },\n\t},\n\n\t/** Fade with subtle slide up - good for content reveals */\n\tfadeSlideUp: {\n\t\tinitial: { opacity: 0, y: 8 },\n\t\tanimate: { opacity: 1, y: 0 },\n\t\texit: { opacity: 0, y: -8 },\n\t},\n\n\t/** Fade with subtle slide down - good for dropdowns */\n\tfadeSlideDown: {\n\t\tinitial: { opacity: 0, y: -8 },\n\t\tanimate: { opacity: 1, y: 0 },\n\t\texit: { opacity: 0, y: 8 },\n\t},\n\n\t/** Simple fade - for overlays */\n\tfade: {\n\t\tinitial: { opacity: 0 },\n\t\tanimate: { opacity: 1 },\n\t\texit: { opacity: 0 },\n\t},\n\n\t/** Dock/floating element - scales from bottom */\n\tfloatUp: {\n\t\tinitial: { opacity: 0, y: 8, scale: 0.98 },\n\t\tanimate: { opacity: 1, y: 0, scale: 1 },\n\t\texit: { opacity: 0, y: 8, scale: 0.98 },\n\t},\n} as const;\n","'use client';\n\nimport * as React from 'react';\n\n// ============================================================================\n// Types\n// ============================================================================\n\n/**\n * Overlay layer type:\n * - 'base': Root level (page content, base floating elements)\n * - 'modal': Inside a modal overlay (dialog, sheet, drawer)\n */\nexport type OverlayLayer = 'base' | 'modal';\n\n/**\n * Where floating overlays should portal:\n * - 'root': always portal into #portal-root\n * - 'nested': let Base UI nest portals into the nearest Base UI portal node\n */\nexport type FloatingPortalStrategy = 'root' | 'nested';\n\n/**\n * Z-index mode for floating overlays.\n * - 'default': --z-layer-floating\n * - 'elevated': --z-layer-floating-elevated\n */\nexport type FloatingZIndex = 'default' | 'elevated';\n\ninterface PortalContextValue {\n\t/** Current overlay layer */\n\tlayer: OverlayLayer;\n\t/** Modal nesting depth (0 for first modal, 1 for nested, etc.) */\n\tdepth: number;\n\t/** Strategy for where floating overlays should portal */\n\tfloatingPortalStrategy: FloatingPortalStrategy;\n\t/** Z-index mode for floating overlays */\n\tfloatingZIndex: FloatingZIndex;\n}\n\n// ============================================================================\n// Constants\n// ============================================================================\n\nexport const PORTAL_ROOT_ID = 'portal-root';\n\n// ============================================================================\n// Context\n// ============================================================================\n\nconst PortalContext = React.createContext<PortalContextValue>({\n\tlayer: 'base',\n\tdepth: 0,\n\tfloatingPortalStrategy: 'root',\n\tfloatingZIndex: 'default',\n});\n\n// ============================================================================\n// Providers\n// ============================================================================\n\n/**\n * Provider for modal overlays (Dialog, Sheet, Drawer, etc.)\n *\n * Wraps modal content to:\n * 1. Create a scoped portal container for nested floating elements\n * 2. Track the overlay layer (so floating elements know to use elevated z-index)\n * 3. Track nesting depth for stacked modals\n *\n * Usage:\n * ```tsx\n * <DialogPopup>\n * <ModalPortalScope>\n * {children} // Popovers inside here will render in the scoped container\n * </ModalPortalScope>\n * </DialogPopup>\n * ```\n */\nexport function ModalPortalScope({\n\tchildren,\n\tfloatingPortalStrategy = 'nested',\n\tfloatingZIndex = 'default',\n}: {\n\tchildren: React.ReactNode;\n\tfloatingPortalStrategy?: FloatingPortalStrategy;\n\tfloatingZIndex?: FloatingZIndex;\n}) {\n\tconst parentContext = React.useContext(PortalContext);\n\n\t// Increment depth from parent if already in modal layer\n\tconst depth = parentContext.layer === 'modal' ? parentContext.depth + 1 : 0;\n\n\tconst value = React.useMemo<PortalContextValue>(\n\t\t() => ({\n\t\t\tlayer: 'modal',\n\t\t\tdepth,\n\t\t\tfloatingPortalStrategy,\n\t\t\tfloatingZIndex,\n\t\t}),\n\t\t[depth, floatingPortalStrategy, floatingZIndex],\n\t);\n\n\treturn <PortalContext.Provider value={value}>{children}</PortalContext.Provider>;\n}\n\n// ============================================================================\n// Hooks\n// ============================================================================\n\n/**\n * Get the current portal context value.\n * Used internally by other hooks.\n */\nexport function usePortalContext(): PortalContextValue {\n\treturn React.useContext(PortalContext);\n}\n\nexport function useInModalOverlay(): boolean {\n\treturn React.useContext(PortalContext).layer === 'modal';\n}\n\n/**\n * Get the root portal container element.\n * Used by modal components (Dialog, Sheet, etc.) to render their portals.\n *\n * @returns The root portal container, or null during SSR/before mount\n */\nexport function useRootPortalContainer(): HTMLElement | null {\n\tconst [container, setContainer] = React.useState<HTMLElement | null>(null);\n\n\tReact.useLayoutEffect(() => {\n\t\tconst el = document.getElementById(PORTAL_ROOT_ID);\n\t\tsetContainer(el);\n\t}, []);\n\n\treturn container;\n}\n\n/**\n * Centralized portal + z-index policy for floating overlays.\n *\n * - When `floatingPortalStrategy` is 'nested', Base UI will automatically portal\n * into the nearest Base UI portal node (so dialog \"inert\" behavior includes it).\n * - When it's 'root', we portal into #portal-root.\n */\nexport function useFloatingOverlayPortalProps(): {\n\tcontainer?: HTMLElement | null;\n\tzIndexClass: string;\n} {\n\tconst rootContainer = useRootPortalContainer();\n\tconst { floatingPortalStrategy, floatingZIndex } = React.useContext(PortalContext);\n\n\tconst container = floatingPortalStrategy === 'nested' ? undefined : (rootContainer ?? null);\n\tconst zIndexClass =\n\t\tfloatingZIndex === 'elevated'\n\t\t\t? 'z-[var(--z-layer-floating-elevated)]'\n\t\t\t: 'z-[var(--z-layer-floating)]';\n\n\treturn { container, zIndexClass };\n}\n\n// ============================================================================\n// Components\n// ============================================================================\n\n/**\n * Portal root component to render in app layout.\n * All overlay components will render their portals inside this container.\n *\n * Usage in layout.tsx:\n * ```tsx\n * import { PortalRoot } from '@constructive-io/ui/portal';\n *\n * export default function RootLayout({ children }) {\n * return (\n * <html>\n * <body>\n * {children}\n * <PortalRoot />\n * </body>\n * </html>\n * );\n * }\n * ```\n */\nexport function PortalRoot() {\n\treturn (\n\t\t<div\n\t\t\tid={PORTAL_ROOT_ID}\n\t\t\tdata-slot='portal-root'\n\t\t\tstyle={{\n\t\t\t\tposition: 'fixed',\n\t\t\t\tinset: 0,\n\t\t\t\tzIndex: 'var(--z-layer-portal-root)',\n\t\t\t\tpointerEvents: 'none',\n\t\t\t\t// Children (portal contents) will have pointer-events: auto\n\t\t\t}}\n\t\t/>\n\t);\n}\n\n/**\n * Hook to get the portal container element for rendering floating UI elements.\n * Returns the element with id=\"portal-root\" if it exists in the DOM.\n *\n * @deprecated Use useRootPortalContainer or useFloatingOverlayPortalProps instead\n */\nexport function usePortalContainer(): HTMLElement | undefined {\n\tif (typeof document === 'undefined') return undefined;\n\tconst el = document.getElementById(PORTAL_ROOT_ID);\n\treturn el instanceof HTMLElement ? el : undefined;\n}\n","'use client';\n\nimport * as React from 'react';\n\n/**\n * Merges refs into a single callback ref.\n * React 19 compatible - handles refs as regular props.\n */\nfunction composeRefs<T>(...refs: (React.Ref<T> | undefined)[]): React.RefCallback<T> {\n\treturn (node) => {\n\t\trefs.forEach((ref) => {\n\t\t\tif (typeof ref === 'function') {\n\t\t\t\tref(node);\n\t\t\t} else if (ref != null) {\n\t\t\t\t(ref as React.MutableRefObject<T | null>).current = node;\n\t\t\t}\n\t\t});\n\t};\n}\n\n/**\n * Merges props, handling special cases for className, style, and event handlers.\n * Excludes 'ref' from merging as it's handled separately.\n */\nfunction mergeProps(\n\tslotProps: Record<string, unknown>,\n\tchildProps: Record<string, unknown>,\n): Record<string, unknown> {\n\tconst overrideProps: Record<string, unknown> = { ...childProps };\n\n\tfor (const propName in childProps) {\n\t\t// Skip ref - handled separately for composition\n\t\tif (propName === 'ref') continue;\n\n\t\tconst slotPropValue = slotProps[propName];\n\t\tconst childPropValue = childProps[propName];\n\n\t\t// Compose event handlers\n\t\tif (/^on[A-Z]/.test(propName) && typeof slotPropValue === 'function' && typeof childPropValue === 'function') {\n\t\t\toverrideProps[propName] = (...args: unknown[]) => {\n\t\t\t\tchildPropValue(...args);\n\t\t\t\tslotPropValue(...args);\n\t\t\t};\n\t\t}\n\t\t// Merge className\n\t\telse if (propName === 'className' && typeof slotPropValue === 'string' && typeof childPropValue === 'string') {\n\t\t\toverrideProps[propName] = `${slotPropValue} ${childPropValue}`.trim();\n\t\t}\n\t\t// Merge style\n\t\telse if (propName === 'style' && typeof slotPropValue === 'object' && typeof childPropValue === 'object') {\n\t\t\toverrideProps[propName] = { ...slotPropValue, ...childPropValue };\n\t\t}\n\t}\n\n\treturn { ...slotProps, ...overrideProps };\n}\n\n/**\n * Merges props from a parent component with a child element's props,\n * including proper ref composition. Use this in render prop patterns\n * where the parent needs to merge its props with the child's.\n *\n * @param parentProps - Props from the parent component (e.g., triggerProps from Base UI)\n * @param childElement - The child React element whose props will be merged\n * @returns Merged props object ready to pass to React.cloneElement\n */\nfunction mergePropsWithRef<T = HTMLElement>(\n\tparentProps: Record<string, unknown>,\n\tchildElement: React.ReactElement,\n): Record<string, unknown> {\n\tconst childProps = childElement.props as Record<string, unknown>;\n\tconst parentRef = parentProps.ref as React.Ref<T> | undefined;\n\tconst childRef = childProps.ref as React.Ref<T> | undefined;\n\n\tconst mergedProps = mergeProps(parentProps, childProps);\n\n\t// Compose refs if either exists\n\tif (parentRef || childRef) {\n\t\tmergedProps.ref = composeRefs(parentRef, childRef);\n\t}\n\n\treturn mergedProps;\n}\n\n/**\n * Check if a value is a valid slottable child (single React element).\n */\nfunction isSlottable(child: React.ReactNode): child is React.ReactElement {\n\treturn React.isValidElement(child);\n}\n\nexport interface SlotProps extends React.HTMLAttributes<HTMLElement> {\n\tchildren?: React.ReactNode;\n}\n\n/**\n * Slot component - renders its child element with merged props.\n * Used for the `asChild` pattern where parent props are passed to child.\n * React 19 compatible - accesses ref from props instead of element.ref.\n */\nconst Slot = React.forwardRef<HTMLElement, SlotProps>((props, forwardedRef) => {\n\tconst { children, ...slotProps } = props;\n\n\t// Handle single child\n\tif (isSlottable(children)) {\n\t\tconst childProps = children.props as Record<string, unknown>;\n\t\t// React 19: ref is now a regular prop, not element.ref\n\t\tconst childRef = childProps.ref as React.Ref<HTMLElement> | undefined;\n\n\t\treturn React.cloneElement(children, {\n\t\t\t...mergeProps(slotProps, childProps),\n\t\t\tref: forwardedRef ? composeRefs(forwardedRef, childRef) : childRef,\n\t\t} as React.Attributes);\n\t}\n\n\t// Handle multiple children - wrap Slottable content\n\tif (React.Children.count(children) > 1) {\n\t\tconst childrenArray = React.Children.toArray(children);\n\t\tconst slottableChild = childrenArray.find(\n\t\t\t(child) => React.isValidElement(child) && child.type === Slottable,\n\t\t) as React.ReactElement<{ children: React.ReactNode }> | undefined;\n\n\t\tif (slottableChild) {\n\t\t\tconst newElement = slottableChild.props.children;\n\t\t\tif (isSlottable(newElement)) {\n\t\t\t\tconst newElementProps = newElement.props as Record<string, unknown> & { children?: React.ReactNode };\n\t\t\t\tconst newChildren = childrenArray.map((child) => {\n\t\t\t\t\tif (child === slottableChild) {\n\t\t\t\t\t\treturn React.Children.count(newElementProps.children) > 1\n\t\t\t\t\t\t\t? React.Children.only(null)\n\t\t\t\t\t\t\t: newElementProps.children;\n\t\t\t\t\t}\n\t\t\t\t\treturn child;\n\t\t\t\t});\n\n\t\t\t\t// React 19: ref is now a regular prop\n\t\t\t\tconst childRef = newElementProps.ref as React.Ref<HTMLElement> | undefined;\n\n\t\t\t\treturn React.cloneElement(newElement, {\n\t\t\t\t\t...mergeProps(slotProps, newElementProps),\n\t\t\t\t\tref: forwardedRef ? composeRefs(forwardedRef, childRef) : childRef,\n\t\t\t\t\tchildren: newChildren,\n\t\t\t\t} as React.Attributes);\n\t\t\t}\n\t\t}\n\t}\n\n\t// Fallback: render children as-is (shouldn't normally happen with proper usage)\n\treturn <>{children}</>;\n});\n\nSlot.displayName = 'Slot';\n\n/**\n * Slottable component - marks content that should receive slot props.\n * Used when Slot has multiple children and you want to specify which one receives props.\n */\nfunction Slottable({ children }: { children: React.ReactNode }) {\n\treturn <>{children}</>;\n}\n\nexport { Slot, Slottable, composeRefs, mergeProps, mergePropsWithRef };\n","import { clsx, type ClassValue } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n","'use client';\n\nimport * as React from 'react';\nimport { Dialog as SheetPrimitive } from '@base-ui/react/dialog';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { X } from 'lucide-react';\nimport { AnimatePresence, motion, type HTMLMotionProps, type Transition } from 'motion/react';\n\nimport { durations, easings } from '../lib/motion/motion-config';\nimport { ModalPortalScope, useRootPortalContainer } from './portal';\nimport { mergePropsWithRef } from '../lib/slot';\nimport { cn } from '../lib/utils';\n\n// ============================================================================\n// Sheet Stack Context - Manages nested/stacked sheets\n// ============================================================================\n\ntype SheetInfo = {\n\tid: string;\n\tdepth: number;\n\tclose: () => void;\n};\n\ntype SheetSize = {\n\twidth: number;\n\theight: number;\n};\n\ntype StackMode = 'cascade' | 'collapse';\n\ntype SheetStackContextType = {\n\tsheets: SheetInfo[];\n\tsheetSizes: Record<string, SheetSize | undefined>;\n\tstackMode: StackMode;\n\tregisterSheet: (info: SheetInfo) => void;\n\tunregisterSheet: (id: string) => void;\n\tsetSheetSize: (id: string, size: SheetSize) => void;\n\tgetSheetSize: (id: string) => SheetSize | undefined;\n\tisTopSheet: (id: string) => boolean;\n\tgetSheetsAbove: (id: string) => number;\n};\n\nconst SheetStackContext = React.createContext<SheetStackContextType | undefined>(undefined);\n\nconst SHEET_INDENT = 24; // pixels to push outer sheets when inner opens\n\ntype SheetStackProviderProps = {\n\tchildren: React.ReactNode;\n\t/** Controls how sheets are pushed when stacking.\n\t * - 'cascade' (default): Each sheet is incrementally indented by SHEET_INDENT\n\t * - 'collapse': Only the sheet directly below the top gets full-width push, others cascade relative to it\n\t */\n\tstackMode?: StackMode;\n};\n\nfunction SheetStackProvider({ children, stackMode = 'cascade' }: SheetStackProviderProps) {\n\tconst [sheets, setSheets] = React.useState<SheetInfo[]>([]);\n\tconst [sheetSizes, setSheetSizes] = React.useState<Record<string, SheetSize | undefined>>({});\n\n\t// Use ref to access current sheets in callbacks without causing re-renders\n\tconst sheetsRef = React.useRef<SheetInfo[]>([]);\n\tsheetsRef.current = sheets;\n\n\t// Register sheet - insert sorted by depth (lower depth = earlier in array)\n\t// This ensures sheets are ordered correctly regardless of registration timing\n\tconst registerSheet = React.useCallback((info: SheetInfo) => {\n\t\tsetSheets((prev) => {\n\t\t\tif (prev.some((s) => s.id === info.id)) return prev;\n\t\t\t// Insert in sorted order by depth\n\t\t\tconst newSheets = [...prev, info];\n\t\t\tnewSheets.sort((a, b) => a.depth - b.depth);\n\t\t\treturn newSheets;\n\t\t});\n\t}, []);\n\n\tconst unregisterSheet = React.useCallback((id: string) => {\n\t\tsetSheets((prev) => prev.filter((s) => s.id !== id));\n\t\tsetSheetSizes((prev) => {\n\t\t\tif (!prev[id]) return prev;\n\t\t\tconst next = { ...prev };\n\t\t\tdelete next[id];\n\t\t\treturn next;\n\t\t});\n\t}, []);\n\n\tconst setSheetSize = React.useCallback((id: string, size: SheetSize) => {\n\t\tsetSheetSizes((prev) => {\n\t\t\tconst current = prev[id];\n\t\t\tif (current && current.width === size.width && current.height === size.height) return prev;\n\t\t\treturn { ...prev, [id]: size };\n\t\t});\n\t}, []);\n\n\tconst getSheetSize = React.useCallback((id: string) => sheetSizes[id], [sheetSizes]);\n\n\t// Topmost sheet = highest depth = last in sorted array\n\t// Use ref to avoid callback changing when sheets changes\n\tconst isTopSheet = React.useCallback((id: string) => {\n\t\tconst currentSheets = sheetsRef.current;\n\t\tif (currentSheets.length === 0) return false;\n\t\treturn currentSheets[currentSheets.length - 1]?.id === id;\n\t}, []);\n\n\t// Sheets above = sheets with higher depth than this one\n\t// Use ref to avoid callback changing when sheets changes\n\tconst getSheetsAbove = React.useCallback((id: string) => {\n\t\tconst currentSheets = sheetsRef.current;\n\t\tconst index = currentSheets.findIndex((s) => s.id === id);\n\t\tif (index === -1) return 0;\n\t\t// Sheets after this index have higher depth (are on top)\n\t\treturn currentSheets.length - index - 1;\n\t}, []);\n\n\t// Global escape key handler - only close the topmost sheet (highest depth)\n\tReact.useEffect(() => {\n\t\tconst handleGlobalEscape = (event: KeyboardEvent) => {\n\t\t\tconst currentSheets = sheetsRef.current;\n\t\t\tif (event.key === 'Escape' && currentSheets.length > 0) {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tevent.stopPropagation();\n\t\t\t\t// Close the topmost sheet (last in sorted array = highest depth)\n\t\t\t\tconst topSheet = currentSheets[currentSheets.length - 1];\n\t\t\t\ttopSheet?.close();\n\t\t\t}\n\t\t};\n\n\t\tdocument.addEventListener('keydown', handleGlobalEscape, true);\n\t\treturn () => document.removeEventListener('keydown', handleGlobalEscape, true);\n\t}, []);\n\n\t// Memoize value - callbacks are stable, only sheets changes\n\tconst value = React.useMemo(\n\t\t() => ({\n\t\t\tsheets,\n\t\t\tsheetSizes,\n\t\t\tstackMode,\n\t\t\tregisterSheet,\n\t\t\tunregisterSheet,\n\t\t\tsetSheetSize,\n\t\t\tgetSheetSize,\n\t\t\tisTopSheet,\n\t\t\tgetSheetsAbove,\n\t\t}),\n\t\t[sheets, sheetSizes, stackMode, registerSheet, unregisterSheet, setSheetSize, getSheetSize, isTopSheet, getSheetsAbove],\n\t);\n\n\treturn <SheetStackContext.Provider value={value}>{children}</SheetStackContext.Provider>;\n}\n\nconst useSheetStack = (): SheetStackContextType | undefined => {\n\treturn React.useContext(SheetStackContext);\n};\n\n// ============================================================================\n// Sheet Nesting Context - Tracks nesting level via React tree\n// ============================================================================\n\ntype SheetNestingContextType = {\n\tlevel: number;\n\tparentSheetId: string | null;\n};\n\nconst SheetNestingContext = React.createContext<SheetNestingContextType>({\n\tlevel: 0,\n\tparentSheetId: null,\n});\n\nconst useSheetNesting = () => React.useContext(SheetNestingContext);\n\n// ============================================================================\n// Individual Sheet Context\n// ============================================================================\n\ntype SheetContextType = {\n\tisOpen: boolean;\n\tsheetId: string;\n\tdepth: number;\n\tsheetsAbove: number;\n\tisTopSheet: boolean;\n\tclose: () => void;\n};\n\nconst SheetContext = React.createContext<SheetContextType | undefined>(undefined);\n\nconst useSheet = (): SheetContextType => {\n\tconst context = React.useContext(SheetContext);\n\tif (!context) {\n\t\tthrow new Error('useSheet must be used within a Sheet');\n\t}\n\treturn context;\n};\n\ntype DialogChangeEventDetails = Parameters<NonNullable<React.ComponentProps<typeof SheetPrimitive.Root>['onOpenChange']>>[1];\n\ntype SheetProps = Omit<React.ComponentProps<typeof SheetPrimitive.Root>, 'onOpenChange'> & {\n\t/** Unique identifier for this sheet in a stack. Auto-generated if not provided. */\n\tsheetId?: string;\n\t/** Callback when open state changes - simplified to just boolean for backwards compatibility */\n\tonOpenChange?: (open: boolean) => void;\n};\n\nlet sheetIdCounter = 0;\n\nfunction Sheet({ children, sheetId: providedId, ...props }: SheetProps) {\n\tconst [isOpen, setIsOpen] = React.useState(props?.open ?? props?.defaultOpen ?? false);\n\tconst sheetStack = useSheetStack();\n\tconst nesting = useSheetNesting();\n\tconst sheetIdRef = React.useRef(providedId ?? `sheet-${++sheetIdCounter}`);\n\tconst sheetId = sheetIdRef.current;\n\n\t// Depth is determined by nesting level in React tree\n\tconst depth = nesting.level;\n\n\t// Use ref for onOpenChange to keep close callback stable\n\tconst onOpenChangeRef = React.useRef(props.onOpenChange);\n\tonOpenChangeRef.current = props.onOpenChange;\n\n\t// Stable close callback using ref\n\tconst close = React.useCallback(() => {\n\t\tsetIsOpen(false);\n\t\tonOpenChangeRef.current?.(false);\n\t}, []);\n\n\t// Store stable references to stack functions\n\tconst registerSheetRef = React.useRef(sheetStack?.registerSheet);\n\tconst unregisterSheetRef = React.useRef(sheetStack?.unregisterSheet);\n\tregisterSheetRef.current = sheetStack?.registerSheet;\n\tunregisterSheetRef.current = sheetStack?.unregisterSheet;\n\n\t// Register/unregister with stack when open state changes\n\t// Only depend on isOpen, sheetId, depth - not on sheetStack object\n\tReact.useEffect(() => {\n\t\tif (registerSheetRef.current && isOpen) {\n\t\t\t// Close any open dropdowns/popovers by blurring active element\n\t\t\t// This ensures selects close before the sheet stacks on top\n\t\t\tif (document.activeElement instanceof HTMLElement) {\n\t\t\t\tdocument.activeElement.blur();\n\t\t\t}\n\t\t\tregisterSheetRef.current({ id: sheetId, depth, close });\n\t\t\treturn () => unregisterSheetRef.current?.(sheetId);\n\t\t}\n\t}, [isOpen, sheetId, depth, close]);\n\n\t// Sync controlled state\n\tReact.useEffect(() => {\n\t\tif (props?.open !== undefined) setIsOpen(props.open);\n\t}, [props?.open]);\n\n\t// Stable handleOpenChange using ref - Base UI passes (open, eventDetails)\n\tconst handleOpenChange = React.useCallback((open: boolean, _eventDetails: DialogChangeEventDetails) => {\n\t\tsetIsOpen(open);\n\t\tonOpenChangeRef.current?.(open);\n\t}, []);\n\n\t// Calculate sheets above and whether this is the top sheet\n\tconst sheetsAbove = sheetStack?.getSheetsAbove(sheetId) ?? 0;\n\tconst isTopSheet = sheetStack?.isTopSheet(sheetId) ?? true;\n\n\t// Nested sheets must be non-modal to prevent Base UI from closing parent on interaction\n\tconst isNested = depth > 0;\n\n\treturn (\n\t\t<SheetNestingContext.Provider value={{ level: depth + 1, parentSheetId: sheetId }}>\n\t\t\t<SheetContext.Provider value={{ isOpen, sheetId, depth, sheetsAbove, isTopSheet, close }}>\n\t\t\t\t<SheetPrimitive.Root\n\t\t\t\t\tdata-slot='sheet'\n\t\t\t\t\t{...props}\n\t\t\t\t\topen={isOpen}\n\t\t\t\t\tmodal={isNested ? false : props.modal}\n\t\t\t\t\tonOpenChange={handleOpenChange}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</SheetPrimitive.Root>\n\t\t\t</SheetContext.Provider>\n\t\t</SheetNestingContext.Provider>\n\t);\n}\n\ntype SheetTriggerProps = Omit<React.ComponentProps<typeof SheetPrimitive.Trigger>, 'render' | 'nativeButton'> & {\n\t/** When true, merges props onto the child element instead of rendering a button */\n\tasChild?: boolean;\n\t/** Whether the child renders a native button. Defaults to true when asChild is used. */\n\tnativeButton?: boolean;\n};\n\nfunction SheetTrigger({ asChild, nativeButton, children, ...props }: SheetTriggerProps) {\n\tif (asChild && React.isValidElement(children)) {\n\t\treturn (\n\t\t\t<SheetPrimitive.Trigger\n\t\t\t\tdata-slot='sheet-trigger'\n\t\t\t\tnativeButton={nativeButton ?? true}\n\t\t\t\t{...props}\n\t\t\t\trender={(triggerProps) => {\n\t\t\t\t\tconst { nativeButton: _, ...rest } = triggerProps as Record<string, unknown>;\n\t\t\t\t\treturn React.cloneElement(\n\t\t\t\t\t\tchildren as React.ReactElement<Record<string, unknown>>,\n\t\t\t\t\t\tmergePropsWithRef(rest, children as React.ReactElement),\n\t\t\t\t\t);\n\t\t\t\t}}\n\t\t\t/>\n\t\t);\n\t}\n\treturn (\n\t\t<SheetPrimitive.Trigger data-slot='sheet-trigger' nativeButton={nativeButton} {...props}>\n\t\t\t{children}\n\t\t</SheetPrimitive.Trigger>\n\t);\n}\n\ntype SheetCloseProps = Omit<React.ComponentProps<typeof SheetPrimitive.Close>, 'render' | 'nativeButton'> & {\n\t/** When true, merges props onto the child element instead of rendering a button */\n\tasChild?: boolean;\n\t/** Whether the child renders a native button. Defaults to true when asChild is used. */\n\tnativeButton?: boolean;\n};\n\nfunction SheetClose({ asChild, nativeButton, children, ...props }: SheetCloseProps) {\n\tif (asChild && React.isValidElement(children)) {\n\t\treturn (\n\t\t\t<SheetPrimitive.Close\n\t\t\t\tdata-slot='sheet-close'\n\t\t\t\tnativeButton={nativeButton ?? true}\n\t\t\t\t{...props}\n\t\t\t\trender={(closeProps) => {\n\t\t\t\t\tconst { nativeButton: _, ...rest } = closeProps as Record<string, unknown>;\n\t\t\t\t\treturn React.cloneElement(\n\t\t\t\t\t\tchildren as React.ReactElement<Record<string, unknown>>,\n\t\t\t\t\t\tmergePropsWithRef(rest, children as React.ReactElement),\n\t\t\t\t\t);\n\t\t\t\t}}\n\t\t\t/>\n\t\t);\n\t}\n\treturn (\n\t\t<SheetPrimitive.Close data-slot='sheet-close' nativeButton={nativeButton} {...props}>\n\t\t\t{children}\n\t\t</SheetPrimitive.Close>\n\t);\n}\n\ntype SheetPortalProps = React.ComponentProps<typeof SheetPrimitive.Portal> & {\n\t/** @deprecated Base UI manages mounting automatically */\n\tforceMount?: boolean;\n};\n\nfunction SheetPortal({ forceMount: _forceMount, ...props }: SheetPortalProps) {\n\tconst container = useRootPortalContainer();\n\n\tconst style = {\n\t\t...(props.style ?? {}),\n\t\t['--z-layer-floating' as any]: 'var(--z-layer-floating-elevated)',\n\t} satisfies React.CSSProperties;\n\n\treturn <SheetPrimitive.Portal data-slot='sheet-portal' container={container} {...props} style={style} />;\n}\n\ntype SheetOverlayProps = React.HTMLAttributes<HTMLDivElement> & {\n\t/** @deprecated Base UI Backdrop handles child elements natively */\n\tasChild?: boolean;\n\t/** @deprecated Base UI manages mounting automatically */\n\tforceMount?: boolean;\n};\n\nfunction SheetOverlay({ className, asChild: _asChild, forceMount: _forceMount, ...props }: SheetOverlayProps) {\n\treturn (\n\t\t<SheetPrimitive.Backdrop\n\t\t\tdata-slot='sheet-overlay'\n\t\t\tclassName={cn('fixed inset-0 z-[var(--z-layer-modal-backdrop)] bg-black/80', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nconst sheetVariants = cva('fixed flex flex-col gap-3 bg-background p-4 shadow-lg', {\n\tvariants: {\n\t\tside: {\n\t\t\ttop: 'inset-x-0 top-0 border-b',\n\t\t\tbottom: 'inset-x-0 bottom-0 border-t',\n\t\t\tleft: 'inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm',\n\t\t\tright: 'inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm',\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tside: 'right',\n\t},\n});\n\ntype SheetContentProps = Omit<React.ComponentProps<typeof SheetPrimitive.Popup>, 'children'> &\n\tVariantProps<typeof sheetVariants> &\n\tHTMLMotionProps<'div'> & {\n\t\ttransition?: Transition;\n\t\toverlay?: boolean;\n\t\t/** Whether to show the close button. Defaults to true. */\n\t\tshowClose?: boolean;\n\t\tchildren?: React.ReactNode;\n\t\t/** @deprecated Base UI manages mounting automatically */\n\t\tforceMount?: boolean;\n\t\t/** @deprecated Use onOpenChange on Root instead */\n\t\tonInteractOutside?: (e: Event) => void;\n\t\t/** @deprecated Use onOpenChange on Root instead */\n\t\tonPointerDownOutside?: (e: Event) => void;\n\t\t/** @deprecated Use onOpenChange on Root instead */\n\t\tonEscapeKeyDown?: (e: KeyboardEvent) => void;\n\t\t/** @deprecated Use onOpenChange on Root instead */\n\t\tonFocusOutside?: (e: Event) => void;\n\t};\n\n// Default width for nested sheets (used for collapse mode calculations)\n// Using max-w-md (28rem = 448px) as the typical nested sheet width\nconst NESTED_SHEET_WIDTH = 448;\n\n// Gap between the top two visible sheets in collapse mode\nconst SHEET_STACK_GAP = 0;\n\n/**\n * Calculate the push offset based on side, number of sheets above, and stack mode.\n * - 'cascade': Each sheet is incrementally indented by SHEET_INDENT per layer above\n * - 'collapse': Bottom sheets are pushed to opposite side to make room for top sheet\n */\nfunction getPushOffset(\n\tside: 'top' | 'bottom' | 'left' | 'right',\n\tsheetsAbove: number,\n\tstackMode: StackMode = 'cascade',\n\tcollapseBaseSize: number = NESTED_SHEET_WIDTH,\n): { x?: number | string; y?: number | string } {\n\tif (sheetsAbove === 0) {\n\t\treturn { x: 0, y: 0 };\n\t}\n\n\tif (stackMode === 'collapse') {\n\t\t// Keep the top 2 sheets visible:\n\t\t// - The sheet directly under the top is pushed by (top sheet width + small gap)\n\t\t// - Deeper sheets cascade under that with a small indent per extra layer\n\t\tconst baseOffset = collapseBaseSize + SHEET_STACK_GAP;\n\t\tconst offset = baseOffset + (sheetsAbove - 1) * SHEET_INDENT;\n\n\t\tswitch (side) {\n\t\t\tcase 'right':\n\t\t\t\treturn { x: -offset };\n\t\t\tcase 'left':\n\t\t\t\treturn { x: offset };\n\t\t\tcase 'top':\n\t\t\t\treturn { y: offset };\n\t\t\tcase 'bottom':\n\t\t\t\treturn { y: -offset };\n\t\t}\n\t}\n\n\t// Cascade mode: incremental indent\n\tconst offset = sheetsAbove * SHEET_INDENT;\n\n\tswitch (side) {\n\t\tcase 'right':\n\t\t\treturn { x: -offset };\n\t\tcase 'left':\n\t\t\treturn { x: offset };\n\t\tcase 'top':\n\t\t\treturn { y: offset };\n\t\tcase 'bottom':\n\t\t\treturn { y: -offset };\n\t}\n}\n\n/**\n * Get the initial position for sheet animation based on side.\n * Pure transform animation for GPU acceleration - no opacity/scale changes.\n */\nfunction getInitialPosition(side: 'top' | 'bottom' | 'left' | 'right') {\n\tswitch (side) {\n\t\tcase 'right':\n\t\t\treturn { x: '100%' };\n\t\tcase 'left':\n\t\t\treturn { x: '-100%' };\n\t\tcase 'top':\n\t\t\treturn { y: '-100%' };\n\t\tcase 'bottom':\n\t\t\treturn { y: '100%' };\n\t}\n}\n\n/**\n * Get the exit position for sheet animation based on side.\n * Pure transform for smooth GPU-accelerated exit.\n */\nfunction getExitPosition(side: 'top' | 'bottom' | 'left' | 'right') {\n\tswitch (side) {\n\t\tcase 'right':\n\t\t\treturn { x: '100%' };\n\t\tcase 'left':\n\t\t\treturn { x: '-100%' };\n\t\tcase 'top':\n\t\t\treturn { y: '-100%' };\n\t\tcase 'bottom':\n\t\t\treturn { y: '100%' };\n\t}\n}\n\n// Default sheet transition - fast tween for snappy, jank-free animation\nconst defaultSheetTransition: Transition = {\n\ttype: 'tween',\n\tduration: durations.normal,\n\tease: [0.32, 0.72, 0, 1], // Custom ease-out for snappy feel\n};\n\nfunction SheetContent({\n\tside = 'right',\n\tclassName,\n\ttransition = defaultSheetTransition,\n\toverlay = true,\n\tshowClose = true,\n\tchildren,\n\tforceMount: _forceMount,\n\tonInteractOutside: _onInteractOutside,\n\tonPointerDownOutside: _onPointerDownOutside,\n\tonEscapeKeyDown: _onEscapeKeyDown,\n\tonFocusOutside: _onFocusOutside,\n\t...props\n}: SheetContentProps) {\n\tconst { isOpen, depth, sheetId, close } = useSheet();\n\tconst sheetStack = useSheetStack();\n\n\t// Calculate sheetsAbove directly from stack to ensure it's always current\n\t// sheetsAbove = number of sheets with higher depth (on top of this one)\n\tconst sheetsAbove = sheetStack?.getSheetsAbove(sheetId) ?? 0;\n\tconst stackMode = sheetStack?.stackMode ?? 'cascade';\n\n\t// Ensure side is never null (default already handles undefined, but TS needs explicit assertion)\n\tconst resolvedSide = side ?? 'right';\n\n\t// Calculate z-index based on depth (base modal content z-index + depth * 10)\n\t// We use a calc() string to reference the CSS variable\n\tconst zIndex = `calc(var(--z-layer-modal-content) + ${depth * 10})`;\n\n\t// Push offset for when sheets are stacked above this one\n\t// sheetsAbove > 0 means there are sheets on top, so this sheet should be pushed back\n\tconst topSheetId = sheetStack?.sheets[sheetStack.sheets.length - 1]?.id;\n\tconst topSheetSize = topSheetId ? sheetStack?.getSheetSize(topSheetId) : undefined;\n\tconst collapseBaseSize = topSheetSize\n\t\t? resolvedSide === 'left' || resolvedSide === 'right'\n\t\t\t? topSheetSize.width\n\t\t\t: topSheetSize.height\n\t\t: undefined;\n\n\tconst pushOffset = getPushOffset(resolvedSide, sheetsAbove, stackMode, collapseBaseSize ?? NESTED_SHEET_WIDTH);\n\n\tconst contentRef = React.useRef<HTMLDivElement>(null);\n\tReact.useLayoutEffect(() => {\n\t\tif (!isOpen) return;\n\t\tif (!sheetStack) return;\n\t\tconst el = contentRef.current;\n\t\tif (!el) return;\n\t\tlet rafId = 0;\n\t\tconst update = () => {\n\t\t\tconst rect = el.getBoundingClientRect();\n\t\t\tsheetStack.setSheetSize(sheetId, { width: rect.width, height: rect.height });\n\t\t};\n\t\tupdate();\n\t\tif (typeof ResizeObserver === 'undefined') return;\n\t\tconst ro = new ResizeObserver(() => {\n\t\t\tcancelAnimationFrame(rafId);\n\t\t\trafId = requestAnimationFrame(update);\n\t\t});\n\t\tro.observe(el);\n\t\treturn () => {\n\t\t\tcancelAnimationFrame(rafId);\n\t\t\tro.disconnect();\n\t\t};\n\t}, [isOpen, sheetId, sheetStack]);\n\n\t// Animate position includes base position (0) plus any push offset\n\t// Only transform properties for GPU acceleration\n\tconst animatePosition = {\n\t\tx: pushOffset.x ?? 0,\n\t\ty: pushOffset.y ?? 0,\n\t};\n\n\t// Exit transition - slightly faster and snappier for physical feel\n\tconst exitTransition: Transition = {\n\t\ttype: 'tween',\n\t\tduration: durations.normal,\n\t\tease: easings.physicalExit,\n\t};\n\n\t// Helper to check if an event target is inside any sheet content\n\tconst isTargetInsideSheet = React.useCallback((target: EventTarget | null) => {\n\t\tif (!target || !(target instanceof HTMLElement)) return false;\n\t\treturn !!target.closest('[data-slot=\"sheet-content\"]');\n\t}, []);\n\n\t// Helper to allow interactions with portaled popups (select/dropdown/popover/tooltip)\n\t// These render outside the sheet DOM, but are still conceptually part of the sheet UI.\n\tconst isTargetInsidePopup = React.useCallback((target: EventTarget | null) => {\n\t\tif (!target || !(target instanceof HTMLElement)) return false;\n\t\treturn !!target.closest(\n\t\t\t[\n\t\t\t\t'[data-slot=\"select-popup\"]',\n\t\t\t\t'[data-slot=\"autocomplete-popup\"]',\n\t\t\t\t'[data-slot=\"dropdown-menu-content\"]',\n\t\t\t\t'[data-slot=\"dropdown-menu-sub-content\"]',\n\t\t\t\t'[data-slot=\"popover-content\"]',\n\t\t\t\t'[data-slot=\"tooltip-content\"]',\n\t\t\t].join(', '),\n\t\t);\n\t}, []);\n\n\t// Custom click-outside handler since Base UI doesn't have fine-grained event callbacks\n\tReact.useEffect(() => {\n\t\tif (!isOpen) return;\n\n\t\tconst handlePointerDown = (event: PointerEvent) => {\n\t\t\t// Ignore if there are sheets above this one\n\t\t\tif (sheetsAbove > 0) return;\n\n\t\t\tconst target = event.target;\n\t\t\tif (isTargetInsideSheet(target) || isTargetInsidePopup(target)) return;\n\n\t\t\t// Close this sheet when clicking outside\n\t\t\tclose();\n\t\t};\n\n\t\t// Use capture phase to handle before other handlers\n\t\tdocument.addEventListener('pointerdown', handlePointerDown);\n\t\treturn () => document.removeEventListener('pointerdown', handlePointerDown);\n\t}, [isOpen, sheetsAbove, isTargetInsideSheet, isTargetInsidePopup, close]);\n\n\treturn (\n\t\t<AnimatePresence>\n\t\t\t{isOpen && (\n\t\t\t\t<SheetPortal data-slot='sheet-portal'>\n\t\t\t\t\t{/* Only show overlay for the first (bottom-most) sheet in stack */}\n\t\t\t\t\t{overlay && depth === 0 && (\n\t\t\t\t\t\t<motion.div\n\t\t\t\t\t\t\tkey='sheet-overlay'\n\t\t\t\t\t\t\tdata-slot='sheet-overlay'\n\t\t\t\t\t\t\tclassName='fixed inset-0 bg-black/80'\n\t\t\t\t\t\t\tinitial={{ opacity: 0 }}\n\t\t\t\t\t\t\tanimate={{ opacity: 1 }}\n\t\t\t\t\t\t\texit={{ opacity: 0 }}\n\t\t\t\t\t\t\ttransition={{ duration: durations.fast, ease: 'easeOut' }}\n\t\t\t\t\t\t\tstyle={{ willChange: 'opacity', zIndex: 'var(--z-layer-modal-backdrop)' }}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\t\t\t\t\t<SheetPrimitive.Popup\n\t\t\t\t\t\tdata-slot='sheet-content'\n\t\t\t\t\t\tdata-sheet-depth={depth}\n\t\t\t\t\t\tdata-sheet-id={sheetId}\n\t\t\t\t\t\t{...props}\n\t\t\t\t\t\trender={\n\t\t\t\t\t\t\t<motion.div\n\t\t\t\t\t\t\t\tkey={`sheet-content-${sheetId}`}\n\t\t\t\t\t\t\t\tref={contentRef}\n\t\t\t\t\t\t\t\tvariants={{\n\t\t\t\t\t\t\t\t\tinitial: getInitialPosition(resolvedSide),\n\t\t\t\t\t\t\t\t\tanimate: animatePosition,\n\t\t\t\t\t\t\t\t\texit: {\n\t\t\t\t\t\t\t\t\t\t...getExitPosition(resolvedSide),\n\t\t\t\t\t\t\t\t\t\ttransition: exitTransition,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\tinitial='initial'\n\t\t\t\t\t\t\t\tanimate='animate'\n\t\t\t\t\t\t\t\texit='exit'\n\t\t\t\t\t\t\t\ttransition={transition}\n\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\tzIndex,\n\t\t\t\t\t\t\t\t\twillChange: 'transform',\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\tclassName={cn(sheetVariants({ side: resolvedSide }), className)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t}\n\t\t\t\t\t>\n\t\t\t\t\t\t{/* ModalPortalScope creates a scoped portal container for floating elements inside */}\n\t\t\t\t\t\t<ModalPortalScope>\n\t\t\t\t\t\t\t{children}\n\t\t\t\t\t\t</ModalPortalScope>\n\t\t\t\t\t\t{showClose && (\n\t\t\t\t\t\t\t<SheetPrimitive.Close\n\t\t\t\t\t\t\t\tdata-slot='sheet-close'\n\t\t\t\t\t\t\t\tclassName='ring-offset-background focus:ring-ring data-[open]:bg-secondary absolute top-4 right-4\n\t\t\t\t\t\t\t\t\trounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2\n\t\t\t\t\t\t\t\t\tfocus:outline-none disabled:pointer-events-none'\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<X className='h-4 w-4' />\n\t\t\t\t\t\t\t\t<span className='sr-only'>Close</span>\n\t\t\t\t\t\t\t</SheetPrimitive.Close>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</SheetPrimitive.Popup>\n\t\t\t\t</SheetPortal>\n\t\t\t)}\n\t\t</AnimatePresence>\n\t);\n}\n\ntype SheetHeaderProps = React.ComponentProps<'div'>;\n\nfunction SheetHeader({ className, ...props }: SheetHeaderProps) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot='sheet-header'\n\t\t\tclassName={cn('flex flex-col space-y-2 pb-4 text-center sm:text-left', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\ntype SheetFooterProps = React.ComponentProps<'div'>;\n\nfunction SheetFooter({ className, ...props }: SheetFooterProps) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot='sheet-footer'\n\t\t\tclassName={cn('flex flex-col-reverse pt-4 sm:flex-row sm:justify-end sm:space-x-2', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\ntype SheetTitleProps = React.ComponentProps<typeof SheetPrimitive.Title>;\n\nfunction SheetTitle({ className, ...props }: SheetTitleProps) {\n\treturn (\n\t\t<SheetPrimitive.Title\n\t\t\tdata-slot='sheet-title'\n\t\t\tclassName={cn('text-foreground text-lg font-semibold', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\ntype SheetDescriptionProps = React.ComponentProps<typeof SheetPrimitive.Description>;\n\nfunction SheetDescription({ className, ...props }: SheetDescriptionProps) {\n\treturn (\n\t\t<SheetPrimitive.Description\n\t\t\tdata-slot='sheet-description'\n\t\t\tclassName={cn('text-muted-foreground text-sm', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport {\n\t// Stack provider for nested sheets\n\tSheetStackProvider,\n\tuseSheetStack,\n\t// Individual sheet hooks\n\tuseSheet,\n\t// Components\n\tSheet,\n\tSheetPortal,\n\tSheetOverlay,\n\tSheetTrigger,\n\tSheetClose,\n\tSheetContent,\n\tSheetHeader,\n\tSheetFooter,\n\tSheetTitle,\n\tSheetDescription,\n\t// Constants\n\tSHEET_INDENT,\n\t// Types\n\ttype StackMode,\n\ttype SheetStackProviderProps,\n\ttype SheetProps,\n\ttype SheetPortalProps,\n\ttype SheetOverlayProps,\n\ttype SheetTriggerProps,\n\ttype SheetCloseProps,\n\ttype SheetContentProps,\n\ttype SheetHeaderProps,\n\ttype SheetFooterProps,\n\ttype SheetTitleProps,\n\ttype SheetDescriptionProps,\n};\n"]}
|
|
1
|
+
{"version":3,"sources":["../../src/lib/motion/motion-config.ts","../../src/components/portal.tsx","../../src/lib/slot.tsx","../../src/lib/utils.ts","../../src/components/sheet.tsx"],"names":["React","React2","jsx","SheetPrimitive","offset"],"mappings":";;;;;;;;;;AAsBO,IAAM,OAAA,GAAU;AAAA,EAiBK;AAAA,EAG3B,YAAA,EAAc,CAAC,GAAA,EAAK,CAAA,EAAG,KAAK,CAAC;AAC9B,CAAA;AAUO,IAAM,SAAA,GAAY;AAAA,EAEf;AAAA,EAGT,IAAA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GACL;AAEF;AAIA,SAAS,UAAA,CAAW,EAAE,SAAA,EAAW,GAAG,OAAM,EAAoB;AAC7D,EAAA,uBACCA,GAAAA;AAAA,IAACC,MAAA,CAAe,KAAA;AAAA,IAAf;AAAA,MACA,WAAA,EAAU,aAAA;AAAA,MACV,SAAA,EAAW,EAAA,CAAG,uCAAA,EAAyC,SAAS,CAAA;AAAA,MAC/D,GAAG;AAAA;AAAA,GACL;AAEF;AAIA,SAAS,gBAAA,CAAiB,EAAE,SAAA,EAAW,GAAG,OAAM,EAA0B;AACzE,EAAA,uBACCD,GAAAA;AAAA,IAACC,MAAA,CAAe,WAAA;AAAA,IAAf;AAAA,MACA,WAAA,EAAU,mBAAA;AAAA,MACV,SAAA,EAAW,EAAA,CAAG,+BAAA,EAAiC,SAAS,CAAA;AAAA,MACvD,GAAG;AAAA;AAAA,GACL;AAEF","file":"sheet.js","sourcesContent":["import type { Transition } from 'motion/react';\n\n/**\n * Shared motion configuration for consistent animations across the app.\n * Based on practical animation tips from https://emilkowal.ski/ui/7-practical-animation-tips\n *\n * Key principles:\n * 1. Keep UI animations under 300ms\n * 2. Never animate from scale(0) - use 0.9+ for natural feel\n * 3. Use custom easing curves for more impactful animations\n * 4. Make animations origin-aware when possible\n * 5. Use blur to smooth transitions when needed\n */\n\n// =============================================================================\n// Easing Curves\n// =============================================================================\n\n/**\n * Standard easing curves for UI animations.\n * Reference: https://easings.co/\n */\nexport const easings = {\n\t/** Smooth deceleration - good for elements entering the screen */\n\teaseOut: [0.25, 0.1, 0.25, 1] as const,\n\n\t/** Smooth acceleration - good for elements leaving the screen */\n\teaseIn: [0.42, 0, 1, 1] as const,\n\n\t/** Smooth both ways - good for hover states and toggles */\n\teaseInOut: [0.42, 0, 0.58, 1] as const,\n\n\t/** Snappy entrance with soft landing - great for modals/dialogs */\n\tsnappy: [0.2, 0, 0, 1] as const,\n\n\t/** Bouncy feel - use sparingly for playful interactions */\n\tbounce: [0.34, 1.56, 0.64, 1] as const,\n\n\t/** Quick start, gradual stop - good for quick feedback */\n\temphasized: [0.4, 0, 0.2, 1] as const,\n\n\t/** Physical feel for exit animations */\n\tphysicalExit: [0.4, 0, 0.6, 1] as const,\n} as const;\n\n// =============================================================================\n// Duration Presets\n// =============================================================================\n\n/**\n * Duration presets in seconds.\n * Rule: UI animations should be under 300ms (0.3s)\n */\nexport const durations = {\n\t/** Instant feedback (button press, toggle) */\n\tinstant: 0.1,\n\n\t/** Quick transitions (tooltips, small elements) */\n\tfast: 0.15,\n\n\t/** Standard UI transitions (modals, panels) */\n\tnormal: 0.2,\n\n\t/** Deliberate animations (page transitions, complex reveals) */\n\tslow: 0.3,\n\n\t/** Maximum for UI - use rarely */\n\tdeliberate: 0.4,\n} as const;\n\n// =============================================================================\n// Spring Presets\n// =============================================================================\n\n/**\n * Spring configurations for physics-based animations.\n * These create more natural, organic motion.\n */\nexport const springs = {\n\t/** Snappy spring - good for quick interactions */\n\tsnappy: {\n\t\ttype: 'spring' as const,\n\t\tstiffness: 400,\n\t\tdamping: 30,\n\t\tmass: 0.8,\n\t},\n\n\t/** Bouncy spring - good for playful elements */\n\tbouncy: {\n\t\ttype: 'spring' as const,\n\t\tstiffness: 300,\n\t\tdamping: 20,\n\t\tmass: 0.6,\n\t},\n\n\t/** Gentle spring - good for large elements */\n\tgentle: {\n\t\ttype: 'spring' as const,\n\t\tstiffness: 150,\n\t\tdamping: 25,\n\t\tmass: 1,\n\t},\n\n\t/** Stiff spring - good for precise movements */\n\tstiff: {\n\t\ttype: 'spring' as const,\n\t\tstiffness: 500,\n\t\tdamping: 35,\n\t\tmass: 0.5,\n\t},\n\n\t/** Panel/sheet animations */\n\tpanel: {\n\t\ttype: 'spring' as const,\n\t\tstiffness: 150,\n\t\tdamping: 25,\n\t},\n} as const;\n\n// =============================================================================\n// Transition Presets\n// =============================================================================\n\n/**\n * Pre-configured transitions for common animation patterns.\n */\nexport const transitions = {\n\t/** Fast fade for overlays and simple elements */\n\tfade: {\n\t\tduration: durations.fast,\n\t\tease: easings.easeOut,\n\t} satisfies Transition,\n\n\t/** Standard enter/exit for UI elements */\n\tenterExit: {\n\t\tduration: durations.normal,\n\t\tease: easings.easeOut,\n\t} satisfies Transition,\n\n\t/** Snappy transition for interactive elements */\n\tsnappy: {\n\t\tduration: durations.fast,\n\t\tease: easings.snappy,\n\t} satisfies Transition,\n\n\t/** Panel slide transition */\n\tpanel: {\n\t\ttype: 'spring',\n\t\tstiffness: 150,\n\t\tdamping: 25,\n\t} satisfies Transition,\n\n\t/** Exit transition with physical feel */\n\texit: {\n\t\ttype: 'tween',\n\t\tduration: durations.normal,\n\t\tease: easings.physicalExit,\n\t} satisfies Transition,\n\n\t/** Layout animations */\n\tlayout: {\n\t\ttype: 'spring',\n\t\tstiffness: 300,\n\t\tdamping: 30,\n\t} satisfies Transition,\n} as const;\n\n// =============================================================================\n// Animation Variants\n// =============================================================================\n\n/**\n * Common animation variants for AnimatePresence patterns.\n * Follows the rule: never animate from scale(0), use 0.9+ instead.\n */\nexport const variants = {\n\t/** Fade with subtle scale - good for modals, cards */\n\tfadeScale: {\n\t\tinitial: { opacity: 0, scale: 0.95 },\n\t\tanimate: { opacity: 1, scale: 1 },\n\t\texit: { opacity: 0, scale: 0.95 },\n\t},\n\n\t/** Fade with subtle slide up - good for content reveals */\n\tfadeSlideUp: {\n\t\tinitial: { opacity: 0, y: 8 },\n\t\tanimate: { opacity: 1, y: 0 },\n\t\texit: { opacity: 0, y: -8 },\n\t},\n\n\t/** Fade with subtle slide down - good for dropdowns */\n\tfadeSlideDown: {\n\t\tinitial: { opacity: 0, y: -8 },\n\t\tanimate: { opacity: 1, y: 0 },\n\t\texit: { opacity: 0, y: 8 },\n\t},\n\n\t/** Simple fade - for overlays */\n\tfade: {\n\t\tinitial: { opacity: 0 },\n\t\tanimate: { opacity: 1 },\n\t\texit: { opacity: 0 },\n\t},\n\n\t/** Dock/floating element - scales from bottom */\n\tfloatUp: {\n\t\tinitial: { opacity: 0, y: 8, scale: 0.98 },\n\t\tanimate: { opacity: 1, y: 0, scale: 1 },\n\t\texit: { opacity: 0, y: 8, scale: 0.98 },\n\t},\n} as const;\n","'use client';\n\nimport * as React from 'react';\n\n// ============================================================================\n// Types\n// ============================================================================\n\n/**\n * Overlay layer type:\n * - 'base': Root level (page content, base floating elements)\n * - 'modal': Inside a modal overlay (dialog, sheet, drawer)\n */\nexport type OverlayLayer = 'base' | 'modal';\n\n/**\n * Where floating overlays should portal:\n * - 'root': always portal into #portal-root\n * - 'nested': let Base UI nest portals into the nearest Base UI portal node\n */\nexport type FloatingPortalStrategy = 'root' | 'nested';\n\n/**\n * Z-index mode for floating overlays.\n * - 'default': --z-layer-floating\n * - 'elevated': --z-layer-floating-elevated\n */\nexport type FloatingZIndex = 'default' | 'elevated';\n\ninterface PortalContextValue {\n\t/** Current overlay layer */\n\tlayer: OverlayLayer;\n\t/** Modal nesting depth (0 for first modal, 1 for nested, etc.) */\n\tdepth: number;\n\t/** Strategy for where floating overlays should portal */\n\tfloatingPortalStrategy: FloatingPortalStrategy;\n\t/** Z-index mode for floating overlays */\n\tfloatingZIndex: FloatingZIndex;\n}\n\n// ============================================================================\n// Constants\n// ============================================================================\n\nexport const PORTAL_ROOT_ID = 'portal-root';\n\n// ============================================================================\n// Context\n// ============================================================================\n\nconst PortalContext = React.createContext<PortalContextValue>({\n\tlayer: 'base',\n\tdepth: 0,\n\tfloatingPortalStrategy: 'root',\n\tfloatingZIndex: 'default',\n});\n\n// ============================================================================\n// Providers\n// ============================================================================\n\n/**\n * Provider for modal overlays (Dialog, Sheet, Drawer, etc.)\n *\n * Wraps modal content to:\n * 1. Create a scoped portal container for nested floating elements\n * 2. Track the overlay layer (so floating elements know to use elevated z-index)\n * 3. Track nesting depth for stacked modals\n *\n * Usage:\n * ```tsx\n * <DialogPopup>\n * <ModalPortalScope>\n * {children} // Popovers inside here will render in the scoped container\n * </ModalPortalScope>\n * </DialogPopup>\n * ```\n */\nexport function ModalPortalScope({\n\tchildren,\n\tfloatingPortalStrategy = 'nested',\n\tfloatingZIndex = 'default',\n}: {\n\tchildren: React.ReactNode;\n\tfloatingPortalStrategy?: FloatingPortalStrategy;\n\tfloatingZIndex?: FloatingZIndex;\n}) {\n\tconst parentContext = React.useContext(PortalContext);\n\n\t// Increment depth from parent if already in modal layer\n\tconst depth = parentContext.layer === 'modal' ? parentContext.depth + 1 : 0;\n\n\tconst value = React.useMemo<PortalContextValue>(\n\t\t() => ({\n\t\t\tlayer: 'modal',\n\t\t\tdepth,\n\t\t\tfloatingPortalStrategy,\n\t\t\tfloatingZIndex,\n\t\t}),\n\t\t[depth, floatingPortalStrategy, floatingZIndex],\n\t);\n\n\treturn <PortalContext.Provider value={value}>{children}</PortalContext.Provider>;\n}\n\n// ============================================================================\n// Hooks\n// ============================================================================\n\n/**\n * Get the current portal context value.\n * Used internally by other hooks.\n */\nexport function usePortalContext(): PortalContextValue {\n\treturn React.useContext(PortalContext);\n}\n\nexport function useInModalOverlay(): boolean {\n\treturn React.useContext(PortalContext).layer === 'modal';\n}\n\n/**\n * Get the root portal container element.\n * Used by modal components (Dialog, Sheet, etc.) to render their portals.\n *\n * @returns The root portal container, or null during SSR/before mount\n */\nexport function useRootPortalContainer(): HTMLElement | null {\n\tconst [container, setContainer] = React.useState<HTMLElement | null>(null);\n\n\tReact.useLayoutEffect(() => {\n\t\tconst el = document.getElementById(PORTAL_ROOT_ID);\n\t\tsetContainer(el);\n\t}, []);\n\n\treturn container;\n}\n\n/**\n * Centralized portal + z-index policy for floating overlays.\n *\n * - When `floatingPortalStrategy` is 'nested', Base UI will automatically portal\n * into the nearest Base UI portal node (so dialog \"inert\" behavior includes it).\n * - When it's 'root', we portal into #portal-root.\n */\nexport function useFloatingOverlayPortalProps(): {\n\tcontainer?: HTMLElement | null;\n\tzIndexClass: string;\n} {\n\tconst rootContainer = useRootPortalContainer();\n\tconst { floatingPortalStrategy, floatingZIndex } = React.useContext(PortalContext);\n\n\tconst container = floatingPortalStrategy === 'nested' ? undefined : (rootContainer ?? null);\n\tconst zIndexClass =\n\t\tfloatingZIndex === 'elevated'\n\t\t\t? 'z-[var(--z-layer-floating-elevated)]'\n\t\t\t: 'z-[var(--z-layer-floating)]';\n\n\treturn { container, zIndexClass };\n}\n\n// ============================================================================\n// Components\n// ============================================================================\n\n/**\n * Portal root component to render in app layout.\n * All overlay components will render their portals inside this container.\n *\n * Usage in layout.tsx:\n * ```tsx\n * import { PortalRoot } from '@constructive-io/ui/portal';\n *\n * export default function RootLayout({ children }) {\n * return (\n * <html>\n * <body>\n * {children}\n * <PortalRoot />\n * </body>\n * </html>\n * );\n * }\n * ```\n */\nexport function PortalRoot() {\n\treturn (\n\t\t<div\n\t\t\tid={PORTAL_ROOT_ID}\n\t\t\tdata-slot=\"portal-root\"\n\t\t\tstyle={{\n\t\t\t\tposition: 'fixed',\n\t\t\t\tinset: 0,\n\t\t\t\tzIndex: 'var(--z-layer-portal-root)',\n\t\t\t\tpointerEvents: 'none',\n\t\t\t\t// Children (portal contents) will have pointer-events: auto\n\t\t\t}}\n\t\t/>\n\t);\n}\n\n/**\n * Hook to get the portal container element for rendering floating UI elements.\n * Returns the element with id=\"portal-root\" if it exists in the DOM.\n *\n * @deprecated Use useRootPortalContainer or useFloatingOverlayPortalProps instead\n */\nexport function usePortalContainer(): HTMLElement | undefined {\n\tif (typeof document === 'undefined') return undefined;\n\tconst el = document.getElementById(PORTAL_ROOT_ID);\n\treturn el instanceof HTMLElement ? el : undefined;\n}\n","'use client';\n\nimport * as React from 'react';\n\n/**\n * Merges refs into a single callback ref.\n * React 19 compatible - handles refs as regular props.\n */\nfunction composeRefs<T>(...refs: (React.Ref<T> | undefined)[]): React.RefCallback<T> {\n\treturn (node) => {\n\t\trefs.forEach((ref) => {\n\t\t\tif (typeof ref === 'function') {\n\t\t\t\tref(node);\n\t\t\t} else if (ref != null) {\n\t\t\t\t(ref as React.MutableRefObject<T | null>).current = node;\n\t\t\t}\n\t\t});\n\t};\n}\n\n/**\n * Merges props, handling special cases for className, style, and event handlers.\n * Excludes 'ref' from merging as it's handled separately.\n */\nfunction mergeProps(\n\tslotProps: Record<string, unknown>,\n\tchildProps: Record<string, unknown>,\n): Record<string, unknown> {\n\tconst overrideProps: Record<string, unknown> = { ...childProps };\n\n\tfor (const propName in childProps) {\n\t\t// Skip ref - handled separately for composition\n\t\tif (propName === 'ref') continue;\n\n\t\tconst slotPropValue = slotProps[propName];\n\t\tconst childPropValue = childProps[propName];\n\n\t\t// Compose event handlers\n\t\tif (/^on[A-Z]/.test(propName) && typeof slotPropValue === 'function' && typeof childPropValue === 'function') {\n\t\t\toverrideProps[propName] = (...args: unknown[]) => {\n\t\t\t\tchildPropValue(...args);\n\t\t\t\tslotPropValue(...args);\n\t\t\t};\n\t\t}\n\t\t// Merge className\n\t\telse if (propName === 'className' && typeof slotPropValue === 'string' && typeof childPropValue === 'string') {\n\t\t\toverrideProps[propName] = `${slotPropValue} ${childPropValue}`.trim();\n\t\t}\n\t\t// Merge style\n\t\telse if (propName === 'style' && typeof slotPropValue === 'object' && typeof childPropValue === 'object') {\n\t\t\toverrideProps[propName] = { ...slotPropValue, ...childPropValue };\n\t\t}\n\t}\n\n\treturn { ...slotProps, ...overrideProps };\n}\n\n/**\n * Merges props from a parent component with a child element's props,\n * including proper ref composition. Use this in render prop patterns\n * where the parent needs to merge its props with the child's.\n *\n * @param parentProps - Props from the parent component (e.g., triggerProps from Base UI)\n * @param childElement - The child React element whose props will be merged\n * @returns Merged props object ready to pass to React.cloneElement\n */\nfunction mergePropsWithRef<T = HTMLElement>(\n\tparentProps: Record<string, unknown>,\n\tchildElement: React.ReactElement,\n): Record<string, unknown> {\n\tconst childProps = childElement.props as Record<string, unknown>;\n\tconst parentRef = parentProps.ref as React.Ref<T> | undefined;\n\tconst childRef = childProps.ref as React.Ref<T> | undefined;\n\n\tconst mergedProps = mergeProps(parentProps, childProps);\n\n\t// Compose refs if either exists\n\tif (parentRef || childRef) {\n\t\tmergedProps.ref = composeRefs(parentRef, childRef);\n\t}\n\n\treturn mergedProps;\n}\n\n/**\n * Check if a value is a valid slottable child (single React element).\n */\nfunction isSlottable(child: React.ReactNode): child is React.ReactElement {\n\treturn React.isValidElement(child);\n}\n\nexport interface SlotProps extends React.HTMLAttributes<HTMLElement> {\n\tchildren?: React.ReactNode;\n}\n\n/**\n * Slot component - renders its child element with merged props.\n * Used for the `asChild` pattern where parent props are passed to child.\n * React 19 compatible - accesses ref from props instead of element.ref.\n */\nconst Slot = React.forwardRef<HTMLElement, SlotProps>((props, forwardedRef) => {\n\tconst { children, ...slotProps } = props;\n\n\t// Handle single child\n\tif (isSlottable(children)) {\n\t\tconst childProps = children.props as Record<string, unknown>;\n\t\t// React 19: ref is now a regular prop, not element.ref\n\t\tconst childRef = childProps.ref as React.Ref<HTMLElement> | undefined;\n\n\t\treturn React.cloneElement(children, {\n\t\t\t...mergeProps(slotProps, childProps),\n\t\t\tref: forwardedRef ? composeRefs(forwardedRef, childRef) : childRef,\n\t\t} as React.Attributes);\n\t}\n\n\t// Handle multiple children - wrap Slottable content\n\tif (React.Children.count(children) > 1) {\n\t\tconst childrenArray = React.Children.toArray(children);\n\t\tconst slottableChild = childrenArray.find(\n\t\t\t(child) => React.isValidElement(child) && child.type === Slottable,\n\t\t) as React.ReactElement<{ children: React.ReactNode }> | undefined;\n\n\t\tif (slottableChild) {\n\t\t\tconst newElement = slottableChild.props.children;\n\t\t\tif (isSlottable(newElement)) {\n\t\t\t\tconst newElementProps = newElement.props as Record<string, unknown> & { children?: React.ReactNode };\n\t\t\t\tconst newChildren = childrenArray.map((child) => {\n\t\t\t\t\tif (child === slottableChild) {\n\t\t\t\t\t\treturn React.Children.count(newElementProps.children) > 1\n\t\t\t\t\t\t\t? React.Children.only(null)\n\t\t\t\t\t\t\t: newElementProps.children;\n\t\t\t\t\t}\n\t\t\t\t\treturn child;\n\t\t\t\t});\n\n\t\t\t\t// React 19: ref is now a regular prop\n\t\t\t\tconst childRef = newElementProps.ref as React.Ref<HTMLElement> | undefined;\n\n\t\t\t\treturn React.cloneElement(newElement, {\n\t\t\t\t\t...mergeProps(slotProps, newElementProps),\n\t\t\t\t\tref: forwardedRef ? composeRefs(forwardedRef, childRef) : childRef,\n\t\t\t\t\tchildren: newChildren,\n\t\t\t\t} as React.Attributes);\n\t\t\t}\n\t\t}\n\t}\n\n\t// Fallback: render children as-is (shouldn't normally happen with proper usage)\n\treturn <>{children}</>;\n});\n\nSlot.displayName = 'Slot';\n\n/**\n * Slottable component - marks content that should receive slot props.\n * Used when Slot has multiple children and you want to specify which one receives props.\n */\nfunction Slottable({ children }: { children: React.ReactNode }) {\n\treturn <>{children}</>;\n}\n\nexport { Slot, Slottable, composeRefs, mergeProps, mergePropsWithRef };\n","import { clsx, type ClassValue } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n","'use client';\n\nimport * as React from 'react';\nimport { Dialog as SheetPrimitive } from '@base-ui/react/dialog';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { X } from 'lucide-react';\nimport { AnimatePresence, motion, type HTMLMotionProps, type Transition } from 'motion/react';\n\nimport { durations, easings } from '../lib/motion/motion-config';\nimport { ModalPortalScope, useRootPortalContainer } from './portal';\nimport { mergePropsWithRef } from '../lib/slot';\nimport { cn } from '../lib/utils';\n\n// ============================================================================\n// Sheet Stack Context - Manages nested/stacked sheets\n// ============================================================================\n\ntype SheetInfo = {\n\tid: string;\n\tdepth: number;\n\tclose: () => void;\n};\n\ntype SheetSize = {\n\twidth: number;\n\theight: number;\n};\n\ntype StackMode = 'cascade' | 'collapse';\n\ntype SheetStackContextType = {\n\tsheets: SheetInfo[];\n\tsheetSizes: Record<string, SheetSize | undefined>;\n\tstackMode: StackMode;\n\tregisterSheet: (info: SheetInfo) => void;\n\tunregisterSheet: (id: string) => void;\n\tsetSheetSize: (id: string, size: SheetSize) => void;\n\tgetSheetSize: (id: string) => SheetSize | undefined;\n\tisTopSheet: (id: string) => boolean;\n\tgetSheetsAbove: (id: string) => number;\n};\n\nconst SheetStackContext = React.createContext<SheetStackContextType | undefined>(undefined);\n\nconst SHEET_INDENT = 24; // pixels to push outer sheets when inner opens\n\ntype SheetStackProviderProps = {\n\tchildren: React.ReactNode;\n\t/** Controls how sheets are pushed when stacking.\n\t * - 'cascade' (default): Each sheet is incrementally indented by SHEET_INDENT\n\t * - 'collapse': Only the sheet directly below the top gets full-width push, others cascade relative to it\n\t */\n\tstackMode?: StackMode;\n};\n\nfunction SheetStackProvider({ children, stackMode = 'cascade' }: SheetStackProviderProps) {\n\tconst [sheets, setSheets] = React.useState<SheetInfo[]>([]);\n\tconst [sheetSizes, setSheetSizes] = React.useState<Record<string, SheetSize | undefined>>({});\n\n\t// Use ref to access current sheets in callbacks without causing re-renders\n\tconst sheetsRef = React.useRef<SheetInfo[]>([]);\n\tsheetsRef.current = sheets;\n\n\t// Register sheet - insert sorted by depth (lower depth = earlier in array)\n\t// This ensures sheets are ordered correctly regardless of registration timing\n\tconst registerSheet = React.useCallback((info: SheetInfo) => {\n\t\tsetSheets((prev) => {\n\t\t\tif (prev.some((s) => s.id === info.id)) return prev;\n\t\t\t// Insert in sorted order by depth\n\t\t\tconst newSheets = [...prev, info];\n\t\t\tnewSheets.sort((a, b) => a.depth - b.depth);\n\t\t\treturn newSheets;\n\t\t});\n\t}, []);\n\n\tconst unregisterSheet = React.useCallback((id: string) => {\n\t\tsetSheets((prev) => prev.filter((s) => s.id !== id));\n\t\tsetSheetSizes((prev) => {\n\t\t\tif (!prev[id]) return prev;\n\t\t\tconst next = { ...prev };\n\t\t\tdelete next[id];\n\t\t\treturn next;\n\t\t});\n\t}, []);\n\n\tconst setSheetSize = React.useCallback((id: string, size: SheetSize) => {\n\t\tsetSheetSizes((prev) => {\n\t\t\tconst current = prev[id];\n\t\t\tif (current && current.width === size.width && current.height === size.height) return prev;\n\t\t\treturn { ...prev, [id]: size };\n\t\t});\n\t}, []);\n\n\tconst getSheetSize = React.useCallback((id: string) => sheetSizes[id], [sheetSizes]);\n\n\t// Topmost sheet = highest depth = last in sorted array\n\t// Use ref to avoid callback changing when sheets changes\n\tconst isTopSheet = React.useCallback((id: string) => {\n\t\tconst currentSheets = sheetsRef.current;\n\t\tif (currentSheets.length === 0) return false;\n\t\treturn currentSheets[currentSheets.length - 1]?.id === id;\n\t}, []);\n\n\t// Sheets above = sheets with higher depth than this one\n\t// Use ref to avoid callback changing when sheets changes\n\tconst getSheetsAbove = React.useCallback((id: string) => {\n\t\tconst currentSheets = sheetsRef.current;\n\t\tconst index = currentSheets.findIndex((s) => s.id === id);\n\t\tif (index === -1) return 0;\n\t\t// Sheets after this index have higher depth (are on top)\n\t\treturn currentSheets.length - index - 1;\n\t}, []);\n\n\t// Global escape key handler - only close the topmost sheet (highest depth)\n\tReact.useEffect(() => {\n\t\tconst handleGlobalEscape = (event: KeyboardEvent) => {\n\t\t\tconst currentSheets = sheetsRef.current;\n\t\t\tif (event.key === 'Escape' && currentSheets.length > 0) {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tevent.stopPropagation();\n\t\t\t\t// Close the topmost sheet (last in sorted array = highest depth)\n\t\t\t\tconst topSheet = currentSheets[currentSheets.length - 1];\n\t\t\t\ttopSheet?.close();\n\t\t\t}\n\t\t};\n\n\t\tdocument.addEventListener('keydown', handleGlobalEscape, true);\n\t\treturn () => document.removeEventListener('keydown', handleGlobalEscape, true);\n\t}, []);\n\n\t// Memoize value - callbacks are stable, only sheets changes\n\tconst value = React.useMemo(\n\t\t() => ({\n\t\t\tsheets,\n\t\t\tsheetSizes,\n\t\t\tstackMode,\n\t\t\tregisterSheet,\n\t\t\tunregisterSheet,\n\t\t\tsetSheetSize,\n\t\t\tgetSheetSize,\n\t\t\tisTopSheet,\n\t\t\tgetSheetsAbove,\n\t\t}),\n\t\t[sheets, sheetSizes, stackMode, registerSheet, unregisterSheet, setSheetSize, getSheetSize, isTopSheet, getSheetsAbove],\n\t);\n\n\treturn <SheetStackContext.Provider value={value}>{children}</SheetStackContext.Provider>;\n}\n\nconst useSheetStack = (): SheetStackContextType | undefined => {\n\treturn React.useContext(SheetStackContext);\n};\n\n// ============================================================================\n// Sheet Nesting Context - Tracks nesting level via React tree\n// ============================================================================\n\ntype SheetNestingContextType = {\n\tlevel: number;\n\tparentSheetId: string | null;\n};\n\nconst SheetNestingContext = React.createContext<SheetNestingContextType>({\n\tlevel: 0,\n\tparentSheetId: null,\n});\n\nconst useSheetNesting = () => React.useContext(SheetNestingContext);\n\n// ============================================================================\n// Individual Sheet Context\n// ============================================================================\n\ntype SheetContextType = {\n\tisOpen: boolean;\n\tsheetId: string;\n\tdepth: number;\n\tsheetsAbove: number;\n\tisTopSheet: boolean;\n\tclose: () => void;\n};\n\nconst SheetContext = React.createContext<SheetContextType | undefined>(undefined);\n\nconst useSheet = (): SheetContextType => {\n\tconst context = React.useContext(SheetContext);\n\tif (!context) {\n\t\tthrow new Error('useSheet must be used within a Sheet');\n\t}\n\treturn context;\n};\n\ntype DialogChangeEventDetails = Parameters<NonNullable<React.ComponentProps<typeof SheetPrimitive.Root>['onOpenChange']>>[1];\n\ntype SheetProps = Omit<React.ComponentProps<typeof SheetPrimitive.Root>, 'onOpenChange'> & {\n\t/** Unique identifier for this sheet in a stack. Auto-generated if not provided. */\n\tsheetId?: string;\n\t/** Callback when open state changes - simplified to just boolean for backwards compatibility */\n\tonOpenChange?: (open: boolean) => void;\n};\n\nlet sheetIdCounter = 0;\n\nfunction Sheet({ children, sheetId: providedId, ...props }: SheetProps) {\n\tconst [isOpen, setIsOpen] = React.useState(props?.open ?? props?.defaultOpen ?? false);\n\tconst sheetStack = useSheetStack();\n\tconst nesting = useSheetNesting();\n\tconst sheetIdRef = React.useRef(providedId ?? `sheet-${++sheetIdCounter}`);\n\tconst sheetId = sheetIdRef.current;\n\n\t// Depth is determined by nesting level in React tree\n\tconst depth = nesting.level;\n\n\t// Use ref for onOpenChange to keep close callback stable\n\tconst onOpenChangeRef = React.useRef(props.onOpenChange);\n\tonOpenChangeRef.current = props.onOpenChange;\n\n\t// Stable close callback using ref\n\tconst close = React.useCallback(() => {\n\t\tsetIsOpen(false);\n\t\tonOpenChangeRef.current?.(false);\n\t}, []);\n\n\t// Store stable references to stack functions\n\tconst registerSheetRef = React.useRef(sheetStack?.registerSheet);\n\tconst unregisterSheetRef = React.useRef(sheetStack?.unregisterSheet);\n\tregisterSheetRef.current = sheetStack?.registerSheet;\n\tunregisterSheetRef.current = sheetStack?.unregisterSheet;\n\n\t// Register/unregister with stack when open state changes\n\t// Only depend on isOpen, sheetId, depth - not on sheetStack object\n\tReact.useEffect(() => {\n\t\tif (registerSheetRef.current && isOpen) {\n\t\t\t// Close any open dropdowns/popovers by blurring active element\n\t\t\t// This ensures selects close before the sheet stacks on top\n\t\t\tif (document.activeElement instanceof HTMLElement) {\n\t\t\t\tdocument.activeElement.blur();\n\t\t\t}\n\t\t\tregisterSheetRef.current({ id: sheetId, depth, close });\n\t\t\treturn () => unregisterSheetRef.current?.(sheetId);\n\t\t}\n\t}, [isOpen, sheetId, depth, close]);\n\n\t// Sync controlled state\n\tReact.useEffect(() => {\n\t\tif (props?.open !== undefined) setIsOpen(props.open);\n\t}, [props?.open]);\n\n\t// Stable handleOpenChange using ref - Base UI passes (open, eventDetails)\n\tconst handleOpenChange = React.useCallback((open: boolean, _eventDetails: DialogChangeEventDetails) => {\n\t\tsetIsOpen(open);\n\t\tonOpenChangeRef.current?.(open);\n\t}, []);\n\n\t// Calculate sheets above and whether this is the top sheet\n\tconst sheetsAbove = sheetStack?.getSheetsAbove(sheetId) ?? 0;\n\tconst isTopSheet = sheetStack?.isTopSheet(sheetId) ?? true;\n\n\t// Nested sheets must be non-modal to prevent Base UI from closing parent on interaction\n\tconst isNested = depth > 0;\n\n\treturn (\n\t\t<SheetNestingContext.Provider value={{ level: depth + 1, parentSheetId: sheetId }}>\n\t\t\t<SheetContext.Provider value={{ isOpen, sheetId, depth, sheetsAbove, isTopSheet, close }}>\n\t\t\t\t<SheetPrimitive.Root\n\t\t\t\t\tdata-slot=\"sheet\"\n\t\t\t\t\t{...props}\n\t\t\t\t\topen={isOpen}\n\t\t\t\t\tmodal={isNested ? false : props.modal}\n\t\t\t\t\tonOpenChange={handleOpenChange}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</SheetPrimitive.Root>\n\t\t\t</SheetContext.Provider>\n\t\t</SheetNestingContext.Provider>\n\t);\n}\n\ntype SheetTriggerProps = Omit<React.ComponentProps<typeof SheetPrimitive.Trigger>, 'render' | 'nativeButton'> & {\n\t/** When true, merges props onto the child element instead of rendering a button */\n\tasChild?: boolean;\n\t/** Whether the child renders a native button. Defaults to true when asChild is used. */\n\tnativeButton?: boolean;\n};\n\nfunction SheetTrigger({ asChild, nativeButton, children, ...props }: SheetTriggerProps) {\n\tif (asChild && React.isValidElement(children)) {\n\t\treturn (\n\t\t\t<SheetPrimitive.Trigger\n\t\t\t\tdata-slot=\"sheet-trigger\"\n\t\t\t\tnativeButton={nativeButton ?? true}\n\t\t\t\t{...props}\n\t\t\t\trender={(triggerProps) => {\n\t\t\t\t\tconst { nativeButton: _, ...rest } = triggerProps as Record<string, unknown>;\n\t\t\t\t\treturn React.cloneElement(\n\t\t\t\t\t\tchildren as React.ReactElement<Record<string, unknown>>,\n\t\t\t\t\t\tmergePropsWithRef(rest, children as React.ReactElement),\n\t\t\t\t\t);\n\t\t\t\t}}\n\t\t\t/>\n\t\t);\n\t}\n\treturn (\n\t\t<SheetPrimitive.Trigger data-slot=\"sheet-trigger\" nativeButton={nativeButton} {...props}>\n\t\t\t{children}\n\t\t</SheetPrimitive.Trigger>\n\t);\n}\n\ntype SheetCloseProps = Omit<React.ComponentProps<typeof SheetPrimitive.Close>, 'render' | 'nativeButton'> & {\n\t/** When true, merges props onto the child element instead of rendering a button */\n\tasChild?: boolean;\n\t/** Whether the child renders a native button. Defaults to true when asChild is used. */\n\tnativeButton?: boolean;\n};\n\nfunction SheetClose({ asChild, nativeButton, children, ...props }: SheetCloseProps) {\n\tif (asChild && React.isValidElement(children)) {\n\t\treturn (\n\t\t\t<SheetPrimitive.Close\n\t\t\t\tdata-slot=\"sheet-close\"\n\t\t\t\tnativeButton={nativeButton ?? true}\n\t\t\t\t{...props}\n\t\t\t\trender={(closeProps) => {\n\t\t\t\t\tconst { nativeButton: _, ...rest } = closeProps as Record<string, unknown>;\n\t\t\t\t\treturn React.cloneElement(\n\t\t\t\t\t\tchildren as React.ReactElement<Record<string, unknown>>,\n\t\t\t\t\t\tmergePropsWithRef(rest, children as React.ReactElement),\n\t\t\t\t\t);\n\t\t\t\t}}\n\t\t\t/>\n\t\t);\n\t}\n\treturn (\n\t\t<SheetPrimitive.Close data-slot=\"sheet-close\" nativeButton={nativeButton} {...props}>\n\t\t\t{children}\n\t\t</SheetPrimitive.Close>\n\t);\n}\n\ntype SheetPortalProps = React.ComponentProps<typeof SheetPrimitive.Portal> & {\n\t/** @deprecated Base UI manages mounting automatically */\n\tforceMount?: boolean;\n};\n\nfunction SheetPortal({ forceMount: _forceMount, ...props }: SheetPortalProps) {\n\tconst container = useRootPortalContainer();\n\n\tconst style = {\n\t\t...(props.style ?? {}),\n\t\t['--z-layer-floating' as any]: 'var(--z-layer-floating-elevated)',\n\t} satisfies React.CSSProperties;\n\n\treturn <SheetPrimitive.Portal data-slot=\"sheet-portal\" container={container} {...props} style={style} />;\n}\n\ntype SheetOverlayProps = React.HTMLAttributes<HTMLDivElement> & {\n\t/** @deprecated Base UI Backdrop handles child elements natively */\n\tasChild?: boolean;\n\t/** @deprecated Base UI manages mounting automatically */\n\tforceMount?: boolean;\n};\n\nfunction SheetOverlay({ className, asChild: _asChild, forceMount: _forceMount, ...props }: SheetOverlayProps) {\n\treturn (\n\t\t<SheetPrimitive.Backdrop\n\t\t\tdata-slot=\"sheet-overlay\"\n\t\t\tclassName={cn('fixed inset-0 z-[var(--z-layer-modal-backdrop)] bg-black/80', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nconst sheetVariants = cva('fixed flex flex-col gap-3 bg-background p-4 shadow-lg', {\n\tvariants: {\n\t\tside: {\n\t\t\ttop: 'inset-x-0 top-0 border-b',\n\t\t\tbottom: 'inset-x-0 bottom-0 border-t',\n\t\t\tleft: 'inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm',\n\t\t\tright: 'inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm',\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tside: 'right',\n\t},\n});\n\ntype SheetContentProps = Omit<React.ComponentProps<typeof SheetPrimitive.Popup>, 'children'> &\n\tVariantProps<typeof sheetVariants> &\n\tHTMLMotionProps<'div'> & {\n\t\ttransition?: Transition;\n\t\toverlay?: boolean;\n\t\t/** Whether to show the close button. Defaults to true. */\n\t\tshowClose?: boolean;\n\t\tchildren?: React.ReactNode;\n\t\t/** @deprecated Base UI manages mounting automatically */\n\t\tforceMount?: boolean;\n\t\t/** @deprecated Use onOpenChange on Root instead */\n\t\tonInteractOutside?: (e: Event) => void;\n\t\t/** @deprecated Use onOpenChange on Root instead */\n\t\tonPointerDownOutside?: (e: Event) => void;\n\t\t/** @deprecated Use onOpenChange on Root instead */\n\t\tonEscapeKeyDown?: (e: KeyboardEvent) => void;\n\t\t/** @deprecated Use onOpenChange on Root instead */\n\t\tonFocusOutside?: (e: Event) => void;\n\t};\n\n// Default width for nested sheets (used for collapse mode calculations)\n// Using max-w-md (28rem = 448px) as the typical nested sheet width\nconst NESTED_SHEET_WIDTH = 448;\n\n// Gap between the top two visible sheets in collapse mode\nconst SHEET_STACK_GAP = 0;\n\n/**\n * Calculate the push offset based on side, number of sheets above, and stack mode.\n * - 'cascade': Each sheet is incrementally indented by SHEET_INDENT per layer above\n * - 'collapse': Bottom sheets are pushed to opposite side to make room for top sheet\n */\nfunction getPushOffset(\n\tside: 'top' | 'bottom' | 'left' | 'right',\n\tsheetsAbove: number,\n\tstackMode: StackMode = 'cascade',\n\tcollapseBaseSize: number = NESTED_SHEET_WIDTH,\n): { x?: number | string; y?: number | string } {\n\tif (sheetsAbove === 0) {\n\t\treturn { x: 0, y: 0 };\n\t}\n\n\tif (stackMode === 'collapse') {\n\t\t// Keep the top 2 sheets visible:\n\t\t// - The sheet directly under the top is pushed by (top sheet width + small gap)\n\t\t// - Deeper sheets cascade under that with a small indent per extra layer\n\t\tconst baseOffset = collapseBaseSize + SHEET_STACK_GAP;\n\t\tconst offset = baseOffset + (sheetsAbove - 1) * SHEET_INDENT;\n\n\t\tswitch (side) {\n\t\t\tcase 'right':\n\t\t\t\treturn { x: -offset };\n\t\t\tcase 'left':\n\t\t\t\treturn { x: offset };\n\t\t\tcase 'top':\n\t\t\t\treturn { y: offset };\n\t\t\tcase 'bottom':\n\t\t\t\treturn { y: -offset };\n\t\t}\n\t}\n\n\t// Cascade mode: incremental indent\n\tconst offset = sheetsAbove * SHEET_INDENT;\n\n\tswitch (side) {\n\t\tcase 'right':\n\t\t\treturn { x: -offset };\n\t\tcase 'left':\n\t\t\treturn { x: offset };\n\t\tcase 'top':\n\t\t\treturn { y: offset };\n\t\tcase 'bottom':\n\t\t\treturn { y: -offset };\n\t}\n}\n\n/**\n * Get the initial position for sheet animation based on side.\n * Pure transform animation for GPU acceleration - no opacity/scale changes.\n */\nfunction getInitialPosition(side: 'top' | 'bottom' | 'left' | 'right') {\n\tswitch (side) {\n\t\tcase 'right':\n\t\t\treturn { x: '100%' };\n\t\tcase 'left':\n\t\t\treturn { x: '-100%' };\n\t\tcase 'top':\n\t\t\treturn { y: '-100%' };\n\t\tcase 'bottom':\n\t\t\treturn { y: '100%' };\n\t}\n}\n\n/**\n * Get the exit position for sheet animation based on side.\n * Pure transform for smooth GPU-accelerated exit.\n */\nfunction getExitPosition(side: 'top' | 'bottom' | 'left' | 'right') {\n\tswitch (side) {\n\t\tcase 'right':\n\t\t\treturn { x: '100%' };\n\t\tcase 'left':\n\t\t\treturn { x: '-100%' };\n\t\tcase 'top':\n\t\t\treturn { y: '-100%' };\n\t\tcase 'bottom':\n\t\t\treturn { y: '100%' };\n\t}\n}\n\n// Default sheet transition - fast tween for snappy, jank-free animation\nconst defaultSheetTransition: Transition = {\n\ttype: 'tween',\n\tduration: durations.normal,\n\tease: [0.32, 0.72, 0, 1], // Custom ease-out for snappy feel\n};\n\nfunction SheetContent({\n\tside = 'right',\n\tclassName,\n\ttransition = defaultSheetTransition,\n\toverlay = true,\n\tshowClose = true,\n\tchildren,\n\tforceMount: _forceMount,\n\tonInteractOutside: _onInteractOutside,\n\tonPointerDownOutside: _onPointerDownOutside,\n\tonEscapeKeyDown: _onEscapeKeyDown,\n\tonFocusOutside: _onFocusOutside,\n\t...props\n}: SheetContentProps) {\n\tconst { isOpen, depth, sheetId, close } = useSheet();\n\tconst sheetStack = useSheetStack();\n\n\t// Calculate sheetsAbove directly from stack to ensure it's always current\n\t// sheetsAbove = number of sheets with higher depth (on top of this one)\n\tconst sheetsAbove = sheetStack?.getSheetsAbove(sheetId) ?? 0;\n\tconst stackMode = sheetStack?.stackMode ?? 'cascade';\n\n\t// Ensure side is never null (default already handles undefined, but TS needs explicit assertion)\n\tconst resolvedSide = side ?? 'right';\n\n\t// Calculate z-index based on depth (base modal content z-index + depth * 10)\n\t// We use a calc() string to reference the CSS variable\n\tconst zIndex = `calc(var(--z-layer-modal-content) + ${depth * 10})`;\n\n\t// Push offset for when sheets are stacked above this one\n\t// sheetsAbove > 0 means there are sheets on top, so this sheet should be pushed back\n\tconst topSheetId = sheetStack?.sheets[sheetStack.sheets.length - 1]?.id;\n\tconst topSheetSize = topSheetId ? sheetStack?.getSheetSize(topSheetId) : undefined;\n\tconst collapseBaseSize = topSheetSize\n\t\t? resolvedSide === 'left' || resolvedSide === 'right'\n\t\t\t? topSheetSize.width\n\t\t\t: topSheetSize.height\n\t\t: undefined;\n\n\tconst pushOffset = getPushOffset(resolvedSide, sheetsAbove, stackMode, collapseBaseSize ?? NESTED_SHEET_WIDTH);\n\n\tconst contentRef = React.useRef<HTMLDivElement>(null);\n\tReact.useLayoutEffect(() => {\n\t\tif (!isOpen) return;\n\t\tif (!sheetStack) return;\n\t\tconst el = contentRef.current;\n\t\tif (!el) return;\n\t\tlet rafId = 0;\n\t\tconst update = () => {\n\t\t\tconst rect = el.getBoundingClientRect();\n\t\t\tsheetStack.setSheetSize(sheetId, { width: rect.width, height: rect.height });\n\t\t};\n\t\tupdate();\n\t\tif (typeof ResizeObserver === 'undefined') return;\n\t\tconst ro = new ResizeObserver(() => {\n\t\t\tcancelAnimationFrame(rafId);\n\t\t\trafId = requestAnimationFrame(update);\n\t\t});\n\t\tro.observe(el);\n\t\treturn () => {\n\t\t\tcancelAnimationFrame(rafId);\n\t\t\tro.disconnect();\n\t\t};\n\t}, [isOpen, sheetId, sheetStack]);\n\n\t// Animate position includes base position (0) plus any push offset\n\t// Only transform properties for GPU acceleration\n\tconst animatePosition = {\n\t\tx: pushOffset.x ?? 0,\n\t\ty: pushOffset.y ?? 0,\n\t};\n\n\t// Exit transition - slightly faster and snappier for physical feel\n\tconst exitTransition: Transition = {\n\t\ttype: 'tween',\n\t\tduration: durations.normal,\n\t\tease: easings.physicalExit,\n\t};\n\n\t// Helper to check if an event target is inside any sheet content\n\tconst isTargetInsideSheet = React.useCallback((target: EventTarget | null) => {\n\t\tif (!target || !(target instanceof HTMLElement)) return false;\n\t\treturn !!target.closest('[data-slot=\"sheet-content\"]');\n\t}, []);\n\n\t// Helper to allow interactions with portaled popups (select/dropdown/popover/tooltip)\n\t// These render outside the sheet DOM, but are still conceptually part of the sheet UI.\n\tconst isTargetInsidePopup = React.useCallback((target: EventTarget | null) => {\n\t\tif (!target || !(target instanceof HTMLElement)) return false;\n\t\treturn !!target.closest(\n\t\t\t[\n\t\t\t\t'[data-slot=\"select-popup\"]',\n\t\t\t\t'[data-slot=\"autocomplete-popup\"]',\n\t\t\t\t'[data-slot=\"dropdown-menu-content\"]',\n\t\t\t\t'[data-slot=\"dropdown-menu-sub-content\"]',\n\t\t\t\t'[data-slot=\"popover-content\"]',\n\t\t\t\t'[data-slot=\"tooltip-content\"]',\n\t\t\t].join(', '),\n\t\t);\n\t}, []);\n\n\t// Custom click-outside handler since Base UI doesn't have fine-grained event callbacks\n\tReact.useEffect(() => {\n\t\tif (!isOpen) return;\n\n\t\tconst handlePointerDown = (event: PointerEvent) => {\n\t\t\t// Ignore if there are sheets above this one\n\t\t\tif (sheetsAbove > 0) return;\n\n\t\t\tconst target = event.target;\n\t\t\tif (isTargetInsideSheet(target) || isTargetInsidePopup(target)) return;\n\n\t\t\t// Close this sheet when clicking outside\n\t\t\tclose();\n\t\t};\n\n\t\t// Use capture phase to handle before other handlers\n\t\tdocument.addEventListener('pointerdown', handlePointerDown);\n\t\treturn () => document.removeEventListener('pointerdown', handlePointerDown);\n\t}, [isOpen, sheetsAbove, isTargetInsideSheet, isTargetInsidePopup, close]);\n\n\treturn (\n\t\t<AnimatePresence>\n\t\t\t{isOpen && (\n\t\t\t\t<SheetPortal data-slot='sheet-portal'>\n\t\t\t\t\t{/* Only show overlay for the first (bottom-most) sheet in stack */}\n\t\t\t\t\t{overlay && depth === 0 && (\n\t\t\t\t\t\t<motion.div\n\t\t\t\t\t\t\tkey='sheet-overlay'\n\t\t\t\t\t\t\tdata-slot=\"sheet-overlay\"\n\t\t\t\t\t\t\tclassName='fixed inset-0 bg-black/80'\n\t\t\t\t\t\t\tinitial={{ opacity: 0 }}\n\t\t\t\t\t\t\tanimate={{ opacity: 1 }}\n\t\t\t\t\t\t\texit={{ opacity: 0 }}\n\t\t\t\t\t\t\ttransition={{ duration: durations.fast, ease: 'easeOut' }}\n\t\t\t\t\t\t\tstyle={{ willChange: 'opacity', zIndex: 'var(--z-layer-modal-backdrop)' }}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\t\t\t\t\t<SheetPrimitive.Popup\n\t\t\t\t\t\tdata-slot=\"sheet-content\"\n\t\t\t\t\t\tdata-sheet-depth={depth}\n\t\t\t\t\t\tdata-sheet-id={sheetId}\n\t\t\t\t\t\t{...props}\n\t\t\t\t\t\trender={\n\t\t\t\t\t\t\t<motion.div\n\t\t\t\t\t\t\t\tkey={`sheet-content-${sheetId}`}\n\t\t\t\t\t\t\t\tref={contentRef}\n\t\t\t\t\t\t\t\tvariants={{\n\t\t\t\t\t\t\t\t\tinitial: getInitialPosition(resolvedSide),\n\t\t\t\t\t\t\t\t\tanimate: animatePosition,\n\t\t\t\t\t\t\t\t\texit: {\n\t\t\t\t\t\t\t\t\t\t...getExitPosition(resolvedSide),\n\t\t\t\t\t\t\t\t\t\ttransition: exitTransition,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\tinitial='initial'\n\t\t\t\t\t\t\t\tanimate='animate'\n\t\t\t\t\t\t\t\texit='exit'\n\t\t\t\t\t\t\t\ttransition={transition}\n\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\tzIndex,\n\t\t\t\t\t\t\t\t\twillChange: 'transform',\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\tclassName={cn(sheetVariants({ side: resolvedSide }), className)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t}\n\t\t\t\t\t>\n\t\t\t\t\t\t{/* ModalPortalScope creates a scoped portal container for floating elements inside */}\n\t\t\t\t\t\t<ModalPortalScope>\n\t\t\t\t\t\t\t{children}\n\t\t\t\t\t\t</ModalPortalScope>\n\t\t\t\t\t\t{showClose && (\n\t\t\t\t\t\t\t<SheetPrimitive.Close\n\t\t\t\t\t\t\t\tdata-slot=\"sheet-close\"\n\t\t\t\t\t\t\t\tclassName='ring-offset-background focus:ring-ring data-[open]:bg-secondary absolute top-4 right-4\n\t\t\t\t\t\t\t\t\trounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2\n\t\t\t\t\t\t\t\t\tfocus:outline-none disabled:pointer-events-none'\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<X className='h-4 w-4' />\n\t\t\t\t\t\t\t\t<span className='sr-only'>Close</span>\n\t\t\t\t\t\t\t</SheetPrimitive.Close>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</SheetPrimitive.Popup>\n\t\t\t\t</SheetPortal>\n\t\t\t)}\n\t\t</AnimatePresence>\n\t);\n}\n\ntype SheetHeaderProps = React.ComponentProps<'div'>;\n\nfunction SheetHeader({ className, ...props }: SheetHeaderProps) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"sheet-header\"\n\t\t\tclassName={cn('flex flex-col space-y-2 pb-4 text-center sm:text-left', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\ntype SheetFooterProps = React.ComponentProps<'div'>;\n\nfunction SheetFooter({ className, ...props }: SheetFooterProps) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"sheet-footer\"\n\t\t\tclassName={cn('flex flex-col-reverse pt-4 sm:flex-row sm:justify-end sm:space-x-2', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\ntype SheetTitleProps = React.ComponentProps<typeof SheetPrimitive.Title>;\n\nfunction SheetTitle({ className, ...props }: SheetTitleProps) {\n\treturn (\n\t\t<SheetPrimitive.Title\n\t\t\tdata-slot=\"sheet-title\"\n\t\t\tclassName={cn('text-foreground text-lg font-semibold', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\ntype SheetDescriptionProps = React.ComponentProps<typeof SheetPrimitive.Description>;\n\nfunction SheetDescription({ className, ...props }: SheetDescriptionProps) {\n\treturn (\n\t\t<SheetPrimitive.Description\n\t\t\tdata-slot=\"sheet-description\"\n\t\t\tclassName={cn('text-muted-foreground text-sm', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport {\n\t// Stack provider for nested sheets\n\tSheetStackProvider,\n\tuseSheetStack,\n\t// Individual sheet hooks\n\tuseSheet,\n\t// Components\n\tSheet,\n\tSheetPortal,\n\tSheetOverlay,\n\tSheetTrigger,\n\tSheetClose,\n\tSheetContent,\n\tSheetHeader,\n\tSheetFooter,\n\tSheetTitle,\n\tSheetDescription,\n\t// Constants\n\tSHEET_INDENT,\n\t// Types\n\ttype StackMode,\n\ttype SheetStackProviderProps,\n\ttype SheetProps,\n\ttype SheetPortalProps,\n\ttype SheetOverlayProps,\n\ttype SheetTriggerProps,\n\ttype SheetCloseProps,\n\ttype SheetContentProps,\n\ttype SheetHeaderProps,\n\ttype SheetFooterProps,\n\ttype SheetTitleProps,\n\ttype SheetDescriptionProps,\n};\n"]}
|
|
@@ -166,7 +166,7 @@ function Input({ className, size = "default", unstyled = false, ...props }) {
|
|
|
166
166
|
className: cn(
|
|
167
167
|
!unstyled && [
|
|
168
168
|
// Base layout
|
|
169
|
-
"relative inline-flex w-full rounded-lg border border-input bg-background bg-clip-padding text-base
|
|
169
|
+
"relative inline-flex w-full rounded-lg border border-input bg-background bg-clip-padding text-base transition-shadow",
|
|
170
170
|
// Inner shadow highlight
|
|
171
171
|
"before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)]",
|
|
172
172
|
"not-has-disabled:not-has-focus-visible:not-has-aria-invalid:before:shadow-[0_1px_--theme(--color-black/4%)]",
|