@avenue-ticketing/native 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dialog.js +2 -2
- package/dist/dialog.js.map +1 -1
- package/package.json +1 -1
package/dist/dialog.js
CHANGED
|
@@ -226,9 +226,9 @@ var DialogContent = ({
|
|
|
226
226
|
flex: 1,
|
|
227
227
|
width: windowWidth,
|
|
228
228
|
backgroundColor: bgPrimary,
|
|
229
|
-
paddingBottom:
|
|
229
|
+
paddingBottom: 12
|
|
230
230
|
}),
|
|
231
|
-
[bgPrimary,
|
|
231
|
+
[bgPrimary, windowWidth]
|
|
232
232
|
);
|
|
233
233
|
return /* @__PURE__ */ jsx(
|
|
234
234
|
Modal,
|
package/dist/dialog.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../core/src/cx.ts","../../core/src/dialog.ts","../../../native/components/base/dialog/dialog.tsx"],"names":["value"],"mappings":";;;;;;;;;;;AAEA,IAAM,UAAU,mBAAA,CAAoB;AAAA,EAChC,MAAA,EAAQ;AAAA,IACJ,KAAA,EAAO;AAAA,MACH,MAAM,CAAC,YAAA,EAAc,cAAc,YAAA,EAAc,YAAA,EAAc,cAAc,aAAa;AAAA;AAC9F;AAER,CAAC,CAAA;AAGM,IAAM,EAAA,GAAK,OAAA;AAGX,SAAS,OAAsH,OAAA,EAAe;AACjJ,EAAA,OAAO,OAAA;AACX;;;ACSO,IAAM,sBAAA,GAAyB,GAAA;AAE/B,IAAM,sBAAA,GAAyB,GAAA;AAkB/B,IAAM,0BAAA,GAA6B,CAAC,IAAA,EAAM,CAAA,EAAG,MAAM,CAAC,CAAA;AAEpD,IAAM,yBAAA,GAA4B,CAAC,IAAA,EAAM,CAAA,EAAG,GAAG,IAAI,CAAA;AAWnD,IAAM,sBAAA,GAAyB,EAAA;AAK/B,SAAS,2BAA2B,aAAA,EAAqC;AAC5E,EAAA,MAAM,UAAA,G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AAA,GAAgE,CAAC,EAAE,QAAA,EAAU,WAAU,KAAM;AACtG,EAAA,uBAAO,GAAA,CAAC,QAAK,SAAA,EAAW,EAAA,CAAG,aAAa,KAAA,EAAO,SAAS,GAAI,QAAA,EAAS,CAAA;AACzE;AAEO,IAAM,iBAAA,GAAsE,CAAC,EAAE,QAAA,EAAU,WAAU,KAAM;AAC5G,EAAA,uBAAO,GAAA,CAAC,QAAK,SAAA,EAAW,EAAA,CAAG,aAAa,WAAA,EAAa,SAAS,GAAI,QAAA,EAAS,CAAA;AAC/E","file":"dialog.js","sourcesContent":["import { extendTailwindMerge } from \"tailwind-merge\";\n\nconst twMerge = extendTailwindMerge({\n extend: {\n theme: {\n text: [\"display-xs\", \"display-sm\", \"display-md\", \"display-lg\", \"display-xl\", \"display-2xl\"],\n },\n },\n});\n\n/** Merge Tailwind / NativeWind class strings. */\nexport const cx = twMerge;\n\n/** Identity helper so Tailwind IntelliSense can sort style maps. */\nexport function sortCx<T extends Record<string, string | number | Record<string, string | number | Record<string, string | number>>>>(classes: T): T {\n return classes;\n}\n","import { sortCx } from \"./cx\";\n\n//////////////////////////////////////////////// TYPES\n\nexport const DIALOG_SIZES = [\"sm\", \"md\", \"lg\", \"xl\", \"full\"] as const;\nexport type DialogSize = (typeof DIALOG_SIZES)[number];\n\nexport interface DialogMobileOptions {\n /** When `false`, keep the centered modal. Default `true` (bottom sheet on narrow / native). */\n sheet?: boolean;\n /** When `true`, the sheet uses the full viewport height. Default `false`. */\n fullScreen?: boolean;\n /** Dimmed backdrop on partial sheets. Default `true`. Ignored when `fullScreen` or `size` is `full`. */\n overlay?: boolean;\n /** Extra classes on the panel. */\n className?: string;\n}\n\n//////////////////////////////////////////////// MOTION / LAYOUT CONSTANTS\n// Shared by web CSS transitions and native Reanimated. Changing these changes\n// both shells — keep values identical to the previous web-local constants.\n\n/** Web desktop scale-fade / `slideEntrance` duration (ms). */\nexport const DIALOG_MOTION_MS = 200;\n/** Sheet / mobile enter-exit duration (ms). Same as select mobile sheet. */\nexport const DIALOG_SHEET_MOTION_MS = 175;\n/** Full-size / sheet enter travel (px). */\nexport const DIALOG_SLIDE_OFFSET_PX = 120;\n/** Shorter slide for sm–xl desktop `slideEntrance`. */\nexport const DIALOG_SLIDE_OFFSET_COMPACT_PX = 16;\n\nexport const DIALOG_SLIDE_OFFSET_BY_SIZE: Record<DialogSize, number> = {\n sm: DIALOG_SLIDE_OFFSET_COMPACT_PX,\n md: DIALOG_SLIDE_OFFSET_COMPACT_PX,\n lg: DIALOG_SLIDE_OFFSET_COMPACT_PX,\n xl: DIALOG_SLIDE_OFFSET_COMPACT_PX,\n full: DIALOG_SLIDE_OFFSET_PX,\n};\n\n/** CSS `transition-timing-function` — entry (open). */\nexport const DIALOG_ENTRY_MOTION_EASING = \"cubic-bezier(0.85, 0, 0.15, 1)\";\n/** CSS `transition-timing-function` — exit (close). */\nexport const DIALOG_EXIT_MOTION_EASING = \"cubic-bezier(0.85, 0, 1, 0.15)\";\n\n/** Bezier control points for `Easing.bezier(...DIALOG_ENTRY_EASING_BEZIER)`. */\nexport const DIALOG_ENTRY_EASING_BEZIER = [0.85, 0, 0.15, 1] as const;\n/** Bezier control points for `Easing.bezier(...DIALOG_EXIT_EASING_BEZIER)`. */\nexport const DIALOG_EXIT_EASING_BEZIER = [0.85, 0, 1, 0.15] as const;\n\n/** Matches `SHEET_MOBILE_MAX_WIDTH_PX` / select mobile sheet breakpoint. */\nexport const DIALOG_MOBILE_BOTTOM_SHEET_MAX_PX = 1024;\n\n/** Portal stacking: outermost dialog uses this z-index. */\nexport const DIALOG_Z_BASE = 50;\n/** Added per nested dialog depth beyond the first. */\nexport const DIALOG_Z_STEP = 10;\n\n/** Top corner radius for sheet chrome (`rounded-t-2xl` = 16). */\nexport const DIALOG_SHEET_RADIUS_PX = 16;\n\n//////////////////////////////////////////////// HELPERS\n\n/** Resolve `mobileOptions` — shared by web + native shells. */\nexport function resolveDialogMobileOptions(mobileOptions?: DialogMobileOptions) {\n const fullScreen = mobileOptions?.fullScreen ?? false;\n return {\n sheet: mobileOptions?.sheet ?? true,\n fullScreen,\n overlay: fullScreen ? false : (mobileOptions?.overlay ?? true),\n panelClassName: mobileOptions?.className,\n };\n}\n\n/** Nested portal z-index from dialog depth (1 = outermost). */\nexport function dialogPortalZIndex(depth: number): number {\n return DIALOG_Z_BASE + (depth - 1) * DIALOG_Z_STEP;\n}\n\n/** Entry vs exit CSS easing string. */\nexport function dialogMotionEasingCss(open: boolean): string {\n return open ? DIALOG_ENTRY_MOTION_EASING : DIALOG_EXIT_MOTION_EASING;\n}\n\n/**\n * Panel unmount / transition duration (ms).\n * Bottom-sheet motion and `slideEntrance` ignore the consumer `duration` prop.\n */\nexport function resolveDialogPanelCloseMs(options: {\n useBottomSheetMotion: boolean;\n slideEntrance: boolean;\n duration: number;\n}): number {\n if (options.useBottomSheetMotion) return DIALOG_SHEET_MOTION_MS;\n if (options.slideEntrance) return DIALOG_MOTION_MS;\n return options.duration;\n}\n\n/** Plain transition bag — assignable to web `CSSProperties` without importing React. */\nexport type DialogTransitionStyle = {\n transform?: string;\n opacity?: number;\n transitionProperty?: string;\n transitionDuration?: string;\n transitionTimingFunction?: string;\n willChange?: string;\n};\n\n/** Sheet panel slide + fade (web CSS). */\nexport function dialogSheetMotionStyle(\n isVisible: boolean,\n open: boolean,\n slideOffsetPx: number | \"full\" = DIALOG_SLIDE_OFFSET_PX,\n): DialogTransitionStyle {\n const hiddenTransform =\n slideOffsetPx === \"full\" ? \"translateY(100%)\" : `translateY(${slideOffsetPx}px)`;\n\n return {\n transform: isVisible ? \"translateY(0)\" : hiddenTransform,\n opacity: isVisible ? 1 : 0,\n transitionProperty: \"transform, opacity\",\n transitionDuration: `${DIALOG_SHEET_MOTION_MS}ms`,\n transitionTimingFunction: dialogMotionEasingCss(open),\n willChange: \"transform, opacity\",\n };\n}\n\n/** Sheet backdrop fade (web CSS). */\nexport function dialogSheetBackdropStyle(isVisible: boolean, open: boolean): DialogTransitionStyle {\n return {\n opacity: isVisible ? 1 : 0,\n transitionProperty: \"opacity\",\n transitionDuration: `${DIALOG_SHEET_MOTION_MS}ms`,\n transitionTimingFunction: dialogMotionEasingCss(open),\n };\n}\n\n/** Desktop `slideEntrance` panel transform + fade. */\nexport function dialogDesktopSlideStyle(\n isAnimating: boolean,\n open: boolean,\n slideOffsetPx: number,\n): DialogTransitionStyle {\n return {\n transform: isAnimating ? \"translateY(0)\" : `translateY(${slideOffsetPx}px)`,\n opacity: isAnimating ? 1 : 0,\n transitionProperty: \"transform, opacity\",\n transitionDuration: `${DIALOG_MOTION_MS}ms`,\n transitionTimingFunction: dialogMotionEasingCss(open),\n };\n}\n\n//////////////////////////////////////////////// SHARED STYLES\n// Visual contract for web + native. Native shells may pin sheet chrome with RN\n// layout styles where NativeWind width/border/radius are unreliable.\n\nexport const dialogStyles = sortCx({\n root: \"flex\",\n rootFull: \"h-full w-full flex-col bg-primary\",\n rootSheet: \"flex-col justify-end\",\n rootModal: \"flex-col items-center justify-center p-4\",\n\n overlay: \"absolute inset-0 bg-overlay/70\",\n\n panel: \"relative z-10 w-full overflow-hidden bg-primary\",\n panelElevated: \"shadow-xl\",\n panelFull: \"flex min-h-0 flex-1 flex-col\",\n /**\n * Web sheet chrome (≤1024). Native pins the same chrome with RN layout styles\n * (`DIALOG_SHEET_RADIUS_PX` + token colors) because NativeWind border/radius\n * on sheets leave side gaps and bottom transparency.\n */\n panelSheet:\n \"w-full max-h-[90%] rounded-t-2xl rounded-b-none border border-solid border-secondary border-x-0 border-b-0 border-t\",\n panelModal: \"w-full rounded-2xl border border-solid border-secondary\",\n\n sizes: {\n sm: \"max-w-sm\",\n md: \"max-w-md\",\n lg: \"max-w-lg\",\n xl: \"max-w-xl\",\n },\n sizesLgOnly: {\n sm: \"lg:max-w-sm\",\n md: \"lg:max-w-md\",\n lg: \"lg:max-w-lg\",\n xl: \"lg:max-w-xl\",\n },\n sizesSmUp: {\n sm: \"sm:max-w-sm\",\n md: \"sm:max-w-md\",\n lg: \"sm:max-w-lg\",\n xl: \"sm:max-w-xl\",\n },\n\n header: \"flex-col gap-1.5 p-6 pr-14\",\n headerFixed: \"border-b border-solid border-secondary bg-primary\",\n footer: \"flex-col-reverse gap-2 p-6\",\n footerFixed: \"border-t border-solid border-secondary bg-primary\",\n title: \"text-xl font-semibold text-primary\",\n description: \"text-sm text-tertiary\",\n close:\n \"size-12 items-center justify-center rounded-full bg-primary active:scale-[0.96] active:bg-primary_hover\",\n closePosition: \"absolute top-4 right-4 z-20\",\n});\n\n//////////////////////////////////////////////// WEB-ONLY STYLES\n// Extracted from the web dialog shell so class strings live in core. Native must\n// not apply these (`print:`, `sm:`/`lg:`, `hover:`, `cursor-pointer`, `dvh`, …).\n\nexport const dialogWebStyles = sortCx({\n root: \"fixed inset-0 print:static print:block print:h-auto print:overflow-visible print:p-0\",\n rootSheetResponsive:\n \"max-lg:flex-col max-lg:items-stretch max-lg:justify-end max-lg:p-0 lg:flex-col lg:items-center lg:justify-center lg:p-4\",\n overlay: \"fixed print:hidden\",\n overlayFade: \"transition-opacity ease-in-out\",\n panelPrint: \"print:static print:h-auto print:max-h-none print:max-w-none print:overflow-visible print:shadow-none\",\n panelFullViewport: \"min-h-dvh h-dvh max-h-dvh border-0\",\n panelScaleTransition: \"transition-all ease-in-out\",\n panelScaleOpen: \"scale-100 opacity-100\",\n panelScaleClosed: \"scale-95 opacity-0\",\n close:\n \"flex cursor-pointer text-fg-primary transition duration-100 ease-linear hover:bg-primary_hover hover:text-fg-primary focus-visible:outline-none focus-visible:[box-shadow:0px_0px_0px_2px_var(--color-bg-primary),0px_0px_0px_4px_var(--color-focus-ring)] print:hidden\",\n header: \"text-center sm:text-left\",\n footer: \"sm:flex-row sm:justify-end sm:gap-2 sm:space-x-0\",\n footerFixedSafe: \"pb-[max(1.5rem,env(safe-area-inset-bottom))]\",\n title: \"leading-none\",\n});\n","import {\n cloneElement,\n createContext,\n isValidElement,\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useState,\n type FC,\n type ReactElement,\n type ReactNode,\n} from \"react\";\nimport { Modal, useWindowDimensions, type GestureResponderEvent } from \"react-native\";\nimport { Pressable, Text, View } from \"react-native-css/components\";\nimport { useNativeVariable } from \"react-native-css\";\nimport { useSafeAreaInsets } from \"react-native-safe-area-context\";\nimport Animated, { Easing, FadeIn, FadeInDown, FadeOut, FadeOutDown } from \"react-native-reanimated\";\nimport { XIcon } from \"phosphor-react-native/src/icons/X\";\nimport {\n DIALOG_ENTRY_EASING_BEZIER,\n DIALOG_EXIT_EASING_BEZIER,\n DIALOG_SHEET_MOTION_MS,\n DIALOG_SHEET_RADIUS_PX,\n DIALOG_SLIDE_OFFSET_PX,\n dialogStyles,\n resolveDialogMobileOptions,\n type DialogMobileOptions,\n type DialogSize,\n} from \"@avenue-ticketing/core/dialog\";\nimport { cx } from \"@avenue-ticketing/core/cx\";\n\nexport type { DialogMobileOptions, DialogSize };\n\n//////////////////////////////////////////////// CONTEXT\n\ntype DialogContextValue = {\n open: boolean;\n setOpen: (open: boolean) => void;\n};\n\nconst DialogContext = createContext<DialogContextValue | undefined>(undefined);\n\nfunction useDialog() {\n const context = useContext(DialogContext);\n if (!context) {\n throw new Error(\"Dialog components must be used within a <Dialog />\");\n }\n return context;\n}\n\nfunction mergeAsChildPress(children: ReactNode, onPress: () => void): ReactNode {\n if (!isValidElement(children)) return children;\n const child = children as ReactElement<{ onPress?: (event: GestureResponderEvent) => void }>;\n return cloneElement(child, {\n onPress: (event: GestureResponderEvent) => {\n child.props.onPress?.(event);\n onPress();\n },\n });\n}\n\n//////////////////////////////////////////////// MOTION\n\nconst DIALOG_ENTRY_EASING = Easing.bezier(...DIALOG_ENTRY_EASING_BEZIER);\nconst DIALOG_EXIT_EASING = Easing.bezier(...DIALOG_EXIT_EASING_BEZIER);\n\nconst overlayEntering = FadeIn.duration(DIALOG_SHEET_MOTION_MS).easing(DIALOG_ENTRY_EASING);\nconst overlayExiting = FadeOut.duration(DIALOG_SHEET_MOTION_MS).easing(DIALOG_EXIT_EASING);\n\n/** 70% wash so `FadeIn` (0 → 1) eases the dim in instead of popping a solid fill. */\nfunction overlayFill(color: string) {\n const hex = /^#([\\da-f]{6})$/i.exec(color);\n if (!hex) return \"rgba(10, 13, 18, 0.7)\";\n const value = parseInt(hex[1], 16);\n return `rgba(${(value >> 16) & 255}, ${(value >> 8) & 255}, ${value & 255}, 0.7)`;\n}\nconst panelEntering = FadeInDown.duration(DIALOG_SHEET_MOTION_MS)\n .easing(DIALOG_ENTRY_EASING)\n .withInitialValues({ opacity: 0, transform: [{ translateY: DIALOG_SLIDE_OFFSET_PX }] });\nconst panelExiting = FadeOutDown.duration(DIALOG_SHEET_MOTION_MS)\n .easing(DIALOG_EXIT_EASING)\n .withTargetValues({ opacity: 0, transform: [{ translateY: DIALOG_SLIDE_OFFSET_PX }] });\n\nfunction useDialogPresence(open: boolean) {\n const [shouldRender, setShouldRender] = useState(open);\n\n useEffect(() => {\n if (open) {\n setShouldRender(true);\n return;\n }\n const hide = setTimeout(() => setShouldRender(false), DIALOG_SHEET_MOTION_MS);\n return () => clearTimeout(hide);\n }, [open]);\n\n return shouldRender;\n}\n\n//////////////////////////////////////////////// MAIN\n\nexport const Dialog: FC<{\n children: ReactNode;\n open?: boolean;\n onOpenChange?: (open: boolean) => void;\n}> = ({ children, open: controlledOpen, onOpenChange }) => {\n const [internalOpen, setInternalOpen] = useState(false);\n const isControlled = controlledOpen !== undefined;\n const open = isControlled ? controlledOpen : internalOpen;\n\n const setOpen = useCallback(\n (value: boolean) => {\n if (!isControlled) setInternalOpen(value);\n onOpenChange?.(value);\n },\n [isControlled, onOpenChange],\n );\n\n const value = useMemo<DialogContextValue>(() => ({ open, setOpen }), [open, setOpen]);\n\n return <DialogContext.Provider value={value}>{children}</DialogContext.Provider>;\n};\n\nexport const DialogTrigger: FC<{ children: ReactNode; asChild?: boolean }> = ({ children, asChild }) => {\n const { setOpen } = useDialog();\n const open = () => setOpen(true);\n\n if (asChild) return mergeAsChildPress(children, open);\n\n return (\n <Pressable accessibilityRole=\"button\" onPress={open}>\n {typeof children === \"string\" || typeof children === \"number\" ? <Text>{children}</Text> : children}\n </Pressable>\n );\n};\n\nexport const DialogClose: FC<{ children: ReactNode; asChild?: boolean }> = ({ children, asChild }) => {\n const { setOpen } = useDialog();\n const close = () => setOpen(false);\n\n if (asChild) return mergeAsChildPress(children, close);\n\n return (\n <Pressable accessibilityRole=\"button\" onPress={close}>\n {typeof children === \"string\" || typeof children === \"number\" ? <Text>{children}</Text> : children}\n </Pressable>\n );\n};\n\n//////////////////////////////////////////////// CLOSE\n\nexport const DialogCloseButton: FC<{\n className?: string;\n onPress?: () => void;\n /** Distance from the top of the panel (px). Full-screen passes status-bar inset. */\n top?: number;\n}> = ({ className, onPress, top = 16 }) => {\n const { setOpen } = useDialog();\n const [pressed, setPressed] = useState(false);\n const fgPrimary = useNativeVariable(\"--color-fg-primary\") ?? \"#181d27\";\n\n return (\n <Animated.View style={{ position: \"absolute\", top, right: 16, zIndex: 20 }}>\n <Pressable\n accessibilityRole=\"button\"\n accessibilityLabel=\"Close\"\n onPressIn={() => setPressed(true)}\n onPressOut={() => setPressed(false)}\n onPress={() => {\n onPress?.();\n if (onPress == null) setOpen(false);\n }}\n className={cx(\n dialogStyles.close,\n pressed && \"scale-[0.96] bg-primary_hover\",\n className,\n )}\n >\n <XIcon size={20} weight=\"regular\" color={fgPrimary} />\n </Pressable>\n </Animated.View>\n );\n};\n\nDialogCloseButton.displayName = \"DialogCloseButton\";\n\n//////////////////////////////////////////////// CONTENT\n\nexport const DialogContent: FC<{\n children?: ReactNode;\n size?: DialogSize;\n closeOnOverlayClick?: boolean;\n showClose?: boolean;\n mobileOptions?: DialogMobileOptions;\n className?: string;\n}> = ({\n children,\n size = \"md\",\n closeOnOverlayClick = true,\n showClose = true,\n mobileOptions,\n className,\n}) => {\n const { open, setOpen } = useDialog();\n const shouldRender = useDialogPresence(open);\n const insets = useSafeAreaInsets();\n const { width: windowWidth } = useWindowDimensions();\n const bgPrimary = useNativeVariable(\"--color-bg-primary\") ?? \"#ffffff\";\n const borderSecondary = useNativeVariable(\"--color-border-secondary\") ?? \"#e9eaeb\";\n const overlayColor = useNativeVariable(\"--color-bg-overlay\") ?? \"#0a0d12\";\n const resolvedMobile = useMemo(() => resolveDialogMobileOptions(mobileOptions), [mobileOptions]);\n\n const useMobileSheet = resolvedMobile.sheet;\n const useMobileFullScreen = useMobileSheet && resolvedMobile.fullScreen;\n const isFullSizeDialog = size === \"full\" || useMobileFullScreen;\n const useMobileBottomSheetChrome = useMobileSheet && !useMobileFullScreen && size !== \"full\";\n const showOverlay = !isFullSizeDialog && (!useMobileSheet || resolvedMobile.overlay);\n const sizeKey = size === \"full\" ? null : size;\n\n const handleOverlayPress = useCallback(() => {\n if (closeOnOverlayClick) setOpen(false);\n }, [closeOnOverlayClick, setOpen]);\n\n const sheetChromeStyle = useMemo(\n () => ({\n position: \"absolute\" as const,\n left: 0,\n right: 0,\n bottom: 0,\n width: windowWidth,\n maxHeight: \"90%\" as const,\n zIndex: 10,\n overflow: \"hidden\" as const,\n backgroundColor: bgPrimary,\n borderTopLeftRadius: DIALOG_SHEET_RADIUS_PX,\n borderTopRightRadius: DIALOG_SHEET_RADIUS_PX,\n borderBottomLeftRadius: 0,\n borderBottomRightRadius: 0,\n borderTopWidth: 1,\n borderLeftWidth: 0,\n borderRightWidth: 0,\n borderBottomWidth: 0,\n borderTopColor: borderSecondary,\n paddingBottom: insets.bottom,\n }),\n [bgPrimary, borderSecondary, insets.bottom, windowWidth],\n );\n\n const fullChromeStyle = useMemo(\n () => ({\n flex: 1,\n width: windowWidth,\n backgroundColor: bgPrimary,\n paddingBottom: insets.bottom,\n }),\n [bgPrimary, insets.bottom, windowWidth],\n );\n\n return (\n <Modal\n visible={shouldRender}\n transparent\n animationType=\"none\"\n presentationStyle=\"overFullScreen\"\n onRequestClose={() => setOpen(false)}\n statusBarTranslucent\n >\n <View\n className={cx(\n dialogStyles.root,\n \"flex-1\",\n isFullSizeDialog\n ? dialogStyles.rootFull\n : useMobileSheet\n ? dialogStyles.rootSheet\n : dialogStyles.rootModal,\n )}\n >\n {open && showOverlay && (\n <View className={dialogStyles.overlay}>\n <Animated.View\n entering={overlayEntering}\n exiting={overlayExiting}\n style={{ flex: 1, backgroundColor: overlayFill(overlayColor) }}\n >\n <Pressable\n accessibilityRole=\"button\"\n accessibilityLabel=\"Dismiss\"\n onPress={handleOverlayPress}\n className=\"flex-1\"\n />\n </Animated.View>\n </View>\n )}\n\n {open && (\n <Animated.View\n collapsable={false}\n entering={panelEntering}\n exiting={panelExiting}\n style={\n isFullSizeDialog\n ? fullChromeStyle\n : useMobileBottomSheetChrome\n ? sheetChromeStyle\n : { width: \"100%\", maxWidth: 448, alignSelf: \"center\" as const }\n }\n >\n <View\n className={cx(\n dialogStyles.panel,\n isFullSizeDialog && dialogStyles.panelFull,\n !isFullSizeDialog &&\n !useMobileBottomSheetChrome &&\n dialogStyles.panelModal,\n sizeKey && !useMobileBottomSheetChrome && dialogStyles.sizes[sizeKey],\n resolvedMobile.panelClassName,\n className,\n )}\n >\n {isFullSizeDialog && <Animated.View style={{ height: insets.top }} />}\n {children}\n {showClose && (\n <DialogCloseButton top={isFullSizeDialog ? insets.top + 16 : 16} />\n )}\n </View>\n </Animated.View>\n )}\n </View>\n </Modal>\n );\n};\n\nDialogContent.displayName = \"DialogContent\";\n\n//////////////////////////////////////////////// CHROME\n\nexport const DialogHeader: FC<{ children?: ReactNode; className?: string; fixed?: boolean }> = ({\n children,\n className,\n fixed,\n}) => {\n return <View className={cx(dialogStyles.header, fixed && dialogStyles.headerFixed, className)}>{children}</View>;\n};\n\nexport const DialogFooter: FC<{ children?: ReactNode; className?: string; fixed?: boolean }> = ({\n children,\n className,\n fixed,\n}) => {\n return <View className={cx(dialogStyles.footer, fixed && dialogStyles.footerFixed, className)}>{children}</View>;\n};\n\nexport const DialogTitle: FC<{ children?: ReactNode; className?: string }> = ({ children, className }) => {\n return <Text className={cx(dialogStyles.title, className)}>{children}</Text>;\n};\n\nexport const DialogDescription: FC<{ children?: ReactNode; className?: string }> = ({ children, className }) => {\n return <Text className={cx(dialogStyles.description, className)}>{children}</Text>;\n};\n"]}
|
|
1
|
+
{"version":3,"sources":["../../core/src/cx.ts","../../core/src/dialog.ts","../../../native/components/base/dialog/dialog.tsx"],"names":["value"],"mappings":";;;;;;;;;;;AAEA,IAAM,UAAU,mBAAA,CAAoB;AAAA,EAChC,MAAA,EAAQ;AAAA,IACJ,KAAA,EAAO;AAAA,MACH,MAAM,CAAC,YAAA,EAAc,cAAc,YAAA,EAAc,YAAA,EAAc,cAAc,aAAa;AAAA;AAC9F;AAER,CAAC,CAAA;AAGM,IAAM,EAAA,GAAK,OAAA;AAGX,SAAS,OAAsH,OAAA,EAAe;AACjJ,EAAA,OAAO,OAAA;AACX;;;ACSO,IAAM,sBAAA,GAAyB,GAAA;AAE/B,IAAM,sBAAA,GAAyB,GAAA;AAkB/B,IAAM,0BAAA,GAA6B,CAAC,IAAA,EAAM,CAAA,EAAG,MAAM,CAAC,CAAA;AAEpD,IAAM,yBAAA,GAA4B,CAAC,IAAA,EAAM,CAAA,EAAG,GAAG,IAAI,CAAA;AAWnD,IAAM,sBAAA,GAAyB,EAAA;AAK/B,SAAS,2BAA2B,aAAA,EAAqC;AAC5E,EAAA,MAAM,UAAA,GAAa,eAAe,UAAA,IAAc,KAAA;AAChD,EAAA,OAAO;AAAA,IACH,KAAA,EAAO,eAAe,KAAA,IAAS,IAAA;AAAA,IAC/B,UAAA;AAAA,IACA,OAAA,EAAS,UAAA,GAAa,KAAA,GAAS,aAAA,EAAe,OAAA,IAAW,IAAA;AAAA,IACzD,gBAAgB,aAAA,EAAe;AAAA,GACnC;AACJ;AAoFO,IAAM,eAAe,MAAA,CAAO;AAAA,EAC/B,IAAA,EAAM,MAAA;AAAA,EACN,QAAA,EAAU,mCAAA;AAAA,EACV,SAAA,EAAW,sBAAA;AAAA,EACX,SAAA,EA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extend: {\n theme: {\n text: [\"display-xs\", \"display-sm\", \"display-md\", \"display-lg\", \"display-xl\", \"display-2xl\"],\n },\n },\n});\n\n/** Merge Tailwind / NativeWind class strings. */\nexport const cx = twMerge;\n\n/** Identity helper so Tailwind IntelliSense can sort style maps. */\nexport function sortCx<T extends Record<string, string | number | Record<string, string | number | Record<string, string | number>>>>(classes: T): T {\n return classes;\n}\n","import { sortCx } from \"./cx\";\n\n//////////////////////////////////////////////// TYPES\n\nexport const DIALOG_SIZES = [\"sm\", \"md\", \"lg\", \"xl\", \"full\"] as const;\nexport type DialogSize = (typeof DIALOG_SIZES)[number];\n\nexport interface DialogMobileOptions {\n /** When `false`, keep the centered modal. Default `true` (bottom sheet on narrow / native). */\n sheet?: boolean;\n /** When `true`, the sheet uses the full viewport height. Default `false`. */\n fullScreen?: boolean;\n /** Dimmed backdrop on partial sheets. Default `true`. Ignored when `fullScreen` or `size` is `full`. */\n overlay?: boolean;\n /** Extra classes on the panel. */\n className?: string;\n}\n\n//////////////////////////////////////////////// MOTION / LAYOUT CONSTANTS\n// Shared by web CSS transitions and native Reanimated. Changing these changes\n// both shells — keep values identical to the previous web-local constants.\n\n/** Web desktop scale-fade / `slideEntrance` duration (ms). */\nexport const DIALOG_MOTION_MS = 200;\n/** Sheet / mobile enter-exit duration (ms). Same as select mobile sheet. */\nexport const DIALOG_SHEET_MOTION_MS = 175;\n/** Full-size / sheet enter travel (px). */\nexport const DIALOG_SLIDE_OFFSET_PX = 120;\n/** Shorter slide for sm–xl desktop `slideEntrance`. */\nexport const DIALOG_SLIDE_OFFSET_COMPACT_PX = 16;\n\nexport const DIALOG_SLIDE_OFFSET_BY_SIZE: Record<DialogSize, number> = {\n sm: DIALOG_SLIDE_OFFSET_COMPACT_PX,\n md: DIALOG_SLIDE_OFFSET_COMPACT_PX,\n lg: DIALOG_SLIDE_OFFSET_COMPACT_PX,\n xl: DIALOG_SLIDE_OFFSET_COMPACT_PX,\n full: DIALOG_SLIDE_OFFSET_PX,\n};\n\n/** CSS `transition-timing-function` — entry (open). */\nexport const DIALOG_ENTRY_MOTION_EASING = \"cubic-bezier(0.85, 0, 0.15, 1)\";\n/** CSS `transition-timing-function` — exit (close). */\nexport const DIALOG_EXIT_MOTION_EASING = \"cubic-bezier(0.85, 0, 1, 0.15)\";\n\n/** Bezier control points for `Easing.bezier(...DIALOG_ENTRY_EASING_BEZIER)`. */\nexport const DIALOG_ENTRY_EASING_BEZIER = [0.85, 0, 0.15, 1] as const;\n/** Bezier control points for `Easing.bezier(...DIALOG_EXIT_EASING_BEZIER)`. */\nexport const DIALOG_EXIT_EASING_BEZIER = [0.85, 0, 1, 0.15] as const;\n\n/** Matches `SHEET_MOBILE_MAX_WIDTH_PX` / select mobile sheet breakpoint. */\nexport const DIALOG_MOBILE_BOTTOM_SHEET_MAX_PX = 1024;\n\n/** Portal stacking: outermost dialog uses this z-index. */\nexport const DIALOG_Z_BASE = 50;\n/** Added per nested dialog depth beyond the first. */\nexport const DIALOG_Z_STEP = 10;\n\n/** Top corner radius for sheet chrome (`rounded-t-2xl` = 16). */\nexport const DIALOG_SHEET_RADIUS_PX = 16;\n\n//////////////////////////////////////////////// HELPERS\n\n/** Resolve `mobileOptions` — shared by web + native shells. */\nexport function resolveDialogMobileOptions(mobileOptions?: DialogMobileOptions) {\n const fullScreen = mobileOptions?.fullScreen ?? false;\n return {\n sheet: mobileOptions?.sheet ?? true,\n fullScreen,\n overlay: fullScreen ? false : (mobileOptions?.overlay ?? true),\n panelClassName: mobileOptions?.className,\n };\n}\n\n/** Nested portal z-index from dialog depth (1 = outermost). */\nexport function dialogPortalZIndex(depth: number): number {\n return DIALOG_Z_BASE + (depth - 1) * DIALOG_Z_STEP;\n}\n\n/** Entry vs exit CSS easing string. */\nexport function dialogMotionEasingCss(open: boolean): string {\n return open ? DIALOG_ENTRY_MOTION_EASING : DIALOG_EXIT_MOTION_EASING;\n}\n\n/**\n * Panel unmount / transition duration (ms).\n * Bottom-sheet motion and `slideEntrance` ignore the consumer `duration` prop.\n */\nexport function resolveDialogPanelCloseMs(options: {\n useBottomSheetMotion: boolean;\n slideEntrance: boolean;\n duration: number;\n}): number {\n if (options.useBottomSheetMotion) return DIALOG_SHEET_MOTION_MS;\n if (options.slideEntrance) return DIALOG_MOTION_MS;\n return options.duration;\n}\n\n/** Plain transition bag — assignable to web `CSSProperties` without importing React. */\nexport type DialogTransitionStyle = {\n transform?: string;\n opacity?: number;\n transitionProperty?: string;\n transitionDuration?: string;\n transitionTimingFunction?: string;\n willChange?: string;\n};\n\n/** Sheet panel slide + fade (web CSS). */\nexport function dialogSheetMotionStyle(\n isVisible: boolean,\n open: boolean,\n slideOffsetPx: number | \"full\" = DIALOG_SLIDE_OFFSET_PX,\n): DialogTransitionStyle {\n const hiddenTransform =\n slideOffsetPx === \"full\" ? \"translateY(100%)\" : `translateY(${slideOffsetPx}px)`;\n\n return {\n transform: isVisible ? \"translateY(0)\" : hiddenTransform,\n opacity: isVisible ? 1 : 0,\n transitionProperty: \"transform, opacity\",\n transitionDuration: `${DIALOG_SHEET_MOTION_MS}ms`,\n transitionTimingFunction: dialogMotionEasingCss(open),\n willChange: \"transform, opacity\",\n };\n}\n\n/** Sheet backdrop fade (web CSS). */\nexport function dialogSheetBackdropStyle(isVisible: boolean, open: boolean): DialogTransitionStyle {\n return {\n opacity: isVisible ? 1 : 0,\n transitionProperty: \"opacity\",\n transitionDuration: `${DIALOG_SHEET_MOTION_MS}ms`,\n transitionTimingFunction: dialogMotionEasingCss(open),\n };\n}\n\n/** Desktop `slideEntrance` panel transform + fade. */\nexport function dialogDesktopSlideStyle(\n isAnimating: boolean,\n open: boolean,\n slideOffsetPx: number,\n): DialogTransitionStyle {\n return {\n transform: isAnimating ? \"translateY(0)\" : `translateY(${slideOffsetPx}px)`,\n opacity: isAnimating ? 1 : 0,\n transitionProperty: \"transform, opacity\",\n transitionDuration: `${DIALOG_MOTION_MS}ms`,\n transitionTimingFunction: dialogMotionEasingCss(open),\n };\n}\n\n//////////////////////////////////////////////// SHARED STYLES\n// Visual contract for web + native. Native shells may pin sheet chrome with RN\n// layout styles where NativeWind width/border/radius are unreliable.\n\nexport const dialogStyles = sortCx({\n root: \"flex\",\n rootFull: \"h-full w-full flex-col bg-primary\",\n rootSheet: \"flex-col justify-end\",\n rootModal: \"flex-col items-center justify-center p-4\",\n\n overlay: \"absolute inset-0 bg-overlay/70\",\n\n panel: \"relative z-10 w-full overflow-hidden bg-primary\",\n panelElevated: \"shadow-xl\",\n panelFull: \"flex min-h-0 flex-1 flex-col\",\n /**\n * Web sheet chrome (≤1024). Native pins the same chrome with RN layout styles\n * (`DIALOG_SHEET_RADIUS_PX` + token colors) because NativeWind border/radius\n * on sheets leave side gaps and bottom transparency.\n */\n panelSheet:\n \"w-full max-h-[90%] rounded-t-2xl rounded-b-none border border-solid border-secondary border-x-0 border-b-0 border-t\",\n panelModal: \"w-full rounded-2xl border border-solid border-secondary\",\n\n sizes: {\n sm: \"max-w-sm\",\n md: \"max-w-md\",\n lg: \"max-w-lg\",\n xl: \"max-w-xl\",\n },\n sizesLgOnly: {\n sm: \"lg:max-w-sm\",\n md: \"lg:max-w-md\",\n lg: \"lg:max-w-lg\",\n xl: \"lg:max-w-xl\",\n },\n sizesSmUp: {\n sm: \"sm:max-w-sm\",\n md: \"sm:max-w-md\",\n lg: \"sm:max-w-lg\",\n xl: \"sm:max-w-xl\",\n },\n\n header: \"flex-col gap-1.5 p-6 pr-14\",\n headerFixed: \"border-b border-solid border-secondary bg-primary\",\n footer: \"flex-col-reverse gap-2 p-6\",\n footerFixed: \"border-t border-solid border-secondary bg-primary\",\n title: \"text-xl font-semibold text-primary\",\n description: \"text-sm text-tertiary\",\n close:\n \"size-12 items-center justify-center rounded-full bg-primary active:scale-[0.96] active:bg-primary_hover\",\n closePosition: \"absolute top-4 right-4 z-20\",\n});\n\n//////////////////////////////////////////////// WEB-ONLY STYLES\n// Extracted from the web dialog shell so class strings live in core. Native must\n// not apply these (`print:`, `sm:`/`lg:`, `hover:`, `cursor-pointer`, `dvh`, …).\n\nexport const dialogWebStyles = sortCx({\n root: \"fixed inset-0 print:static print:block print:h-auto print:overflow-visible print:p-0\",\n rootSheetResponsive:\n \"max-lg:flex-col max-lg:items-stretch max-lg:justify-end max-lg:p-0 lg:flex-col lg:items-center lg:justify-center lg:p-4\",\n overlay: \"fixed print:hidden\",\n overlayFade: \"transition-opacity ease-in-out\",\n panelPrint: \"print:static print:h-auto print:max-h-none print:max-w-none print:overflow-visible print:shadow-none\",\n panelFullViewport: \"min-h-dvh h-dvh max-h-dvh border-0\",\n panelScaleTransition: \"transition-all ease-in-out\",\n panelScaleOpen: \"scale-100 opacity-100\",\n panelScaleClosed: \"scale-95 opacity-0\",\n close:\n \"flex cursor-pointer text-fg-primary transition duration-100 ease-linear hover:bg-primary_hover hover:text-fg-primary focus-visible:outline-none focus-visible:[box-shadow:0px_0px_0px_2px_var(--color-bg-primary),0px_0px_0px_4px_var(--color-focus-ring)] print:hidden\",\n header: \"text-center sm:text-left\",\n footer: \"sm:flex-row sm:justify-end sm:gap-2 sm:space-x-0\",\n footerFixedSafe: \"pb-[max(1.5rem,env(safe-area-inset-bottom))]\",\n title: \"leading-none\",\n});\n","import {\n cloneElement,\n createContext,\n isValidElement,\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useState,\n type FC,\n type ReactElement,\n type ReactNode,\n} from \"react\";\nimport { Modal, useWindowDimensions, type GestureResponderEvent } from \"react-native\";\nimport { Pressable, Text, View } from \"react-native-css/components\";\nimport { useNativeVariable } from \"react-native-css\";\nimport { useSafeAreaInsets } from \"react-native-safe-area-context\";\nimport Animated, { Easing, FadeIn, FadeInDown, FadeOut, FadeOutDown } from \"react-native-reanimated\";\nimport { XIcon } from \"phosphor-react-native/src/icons/X\";\nimport {\n DIALOG_ENTRY_EASING_BEZIER,\n DIALOG_EXIT_EASING_BEZIER,\n DIALOG_SHEET_MOTION_MS,\n DIALOG_SHEET_RADIUS_PX,\n DIALOG_SLIDE_OFFSET_PX,\n dialogStyles,\n resolveDialogMobileOptions,\n type DialogMobileOptions,\n type DialogSize,\n} from \"@avenue-ticketing/core/dialog\";\nimport { cx } from \"@avenue-ticketing/core/cx\";\n\nexport type { DialogMobileOptions, DialogSize };\n\n//////////////////////////////////////////////// CONTEXT\n\ntype DialogContextValue = {\n open: boolean;\n setOpen: (open: boolean) => void;\n};\n\nconst DialogContext = createContext<DialogContextValue | undefined>(undefined);\n\nfunction useDialog() {\n const context = useContext(DialogContext);\n if (!context) {\n throw new Error(\"Dialog components must be used within a <Dialog />\");\n }\n return context;\n}\n\nfunction mergeAsChildPress(children: ReactNode, onPress: () => void): ReactNode {\n if (!isValidElement(children)) return children;\n const child = children as ReactElement<{ onPress?: (event: GestureResponderEvent) => void }>;\n return cloneElement(child, {\n onPress: (event: GestureResponderEvent) => {\n child.props.onPress?.(event);\n onPress();\n },\n });\n}\n\n//////////////////////////////////////////////// MOTION\n\nconst DIALOG_ENTRY_EASING = Easing.bezier(...DIALOG_ENTRY_EASING_BEZIER);\nconst DIALOG_EXIT_EASING = Easing.bezier(...DIALOG_EXIT_EASING_BEZIER);\n\nconst overlayEntering = FadeIn.duration(DIALOG_SHEET_MOTION_MS).easing(DIALOG_ENTRY_EASING);\nconst overlayExiting = FadeOut.duration(DIALOG_SHEET_MOTION_MS).easing(DIALOG_EXIT_EASING);\n\n/** 70% wash so `FadeIn` (0 → 1) eases the dim in instead of popping a solid fill. */\nfunction overlayFill(color: string) {\n const hex = /^#([\\da-f]{6})$/i.exec(color);\n if (!hex) return \"rgba(10, 13, 18, 0.7)\";\n const value = parseInt(hex[1], 16);\n return `rgba(${(value >> 16) & 255}, ${(value >> 8) & 255}, ${value & 255}, 0.7)`;\n}\nconst panelEntering = FadeInDown.duration(DIALOG_SHEET_MOTION_MS)\n .easing(DIALOG_ENTRY_EASING)\n .withInitialValues({ opacity: 0, transform: [{ translateY: DIALOG_SLIDE_OFFSET_PX }] });\nconst panelExiting = FadeOutDown.duration(DIALOG_SHEET_MOTION_MS)\n .easing(DIALOG_EXIT_EASING)\n .withTargetValues({ opacity: 0, transform: [{ translateY: DIALOG_SLIDE_OFFSET_PX }] });\n\nfunction useDialogPresence(open: boolean) {\n const [shouldRender, setShouldRender] = useState(open);\n\n useEffect(() => {\n if (open) {\n setShouldRender(true);\n return;\n }\n const hide = setTimeout(() => setShouldRender(false), DIALOG_SHEET_MOTION_MS);\n return () => clearTimeout(hide);\n }, [open]);\n\n return shouldRender;\n}\n\n//////////////////////////////////////////////// MAIN\n\nexport const Dialog: FC<{\n children: ReactNode;\n open?: boolean;\n onOpenChange?: (open: boolean) => void;\n}> = ({ children, open: controlledOpen, onOpenChange }) => {\n const [internalOpen, setInternalOpen] = useState(false);\n const isControlled = controlledOpen !== undefined;\n const open = isControlled ? controlledOpen : internalOpen;\n\n const setOpen = useCallback(\n (value: boolean) => {\n if (!isControlled) setInternalOpen(value);\n onOpenChange?.(value);\n },\n [isControlled, onOpenChange],\n );\n\n const value = useMemo<DialogContextValue>(() => ({ open, setOpen }), [open, setOpen]);\n\n return <DialogContext.Provider value={value}>{children}</DialogContext.Provider>;\n};\n\nexport const DialogTrigger: FC<{ children: ReactNode; asChild?: boolean }> = ({ children, asChild }) => {\n const { setOpen } = useDialog();\n const open = () => setOpen(true);\n\n if (asChild) return mergeAsChildPress(children, open);\n\n return (\n <Pressable accessibilityRole=\"button\" onPress={open}>\n {typeof children === \"string\" || typeof children === \"number\" ? <Text>{children}</Text> : children}\n </Pressable>\n );\n};\n\nexport const DialogClose: FC<{ children: ReactNode; asChild?: boolean }> = ({ children, asChild }) => {\n const { setOpen } = useDialog();\n const close = () => setOpen(false);\n\n if (asChild) return mergeAsChildPress(children, close);\n\n return (\n <Pressable accessibilityRole=\"button\" onPress={close}>\n {typeof children === \"string\" || typeof children === \"number\" ? <Text>{children}</Text> : children}\n </Pressable>\n );\n};\n\n//////////////////////////////////////////////// CLOSE\n\nexport const DialogCloseButton: FC<{\n className?: string;\n onPress?: () => void;\n /** Distance from the top of the panel (px). Full-screen passes status-bar inset. */\n top?: number;\n}> = ({ className, onPress, top = 16 }) => {\n const { setOpen } = useDialog();\n const [pressed, setPressed] = useState(false);\n const fgPrimary = useNativeVariable(\"--color-fg-primary\") ?? \"#181d27\";\n\n return (\n <Animated.View style={{ position: \"absolute\", top, right: 16, zIndex: 20 }}>\n <Pressable\n accessibilityRole=\"button\"\n accessibilityLabel=\"Close\"\n onPressIn={() => setPressed(true)}\n onPressOut={() => setPressed(false)}\n onPress={() => {\n onPress?.();\n if (onPress == null) setOpen(false);\n }}\n className={cx(\n dialogStyles.close,\n pressed && \"scale-[0.96] bg-primary_hover\",\n className,\n )}\n >\n <XIcon size={20} weight=\"regular\" color={fgPrimary} />\n </Pressable>\n </Animated.View>\n );\n};\n\nDialogCloseButton.displayName = \"DialogCloseButton\";\n\n//////////////////////////////////////////////// CONTENT\n\nexport const DialogContent: FC<{\n children?: ReactNode;\n size?: DialogSize;\n closeOnOverlayClick?: boolean;\n showClose?: boolean;\n mobileOptions?: DialogMobileOptions;\n className?: string;\n}> = ({\n children,\n size = \"md\",\n closeOnOverlayClick = true,\n showClose = true,\n mobileOptions,\n className,\n}) => {\n const { open, setOpen } = useDialog();\n const shouldRender = useDialogPresence(open);\n const insets = useSafeAreaInsets();\n const { width: windowWidth } = useWindowDimensions();\n const bgPrimary = useNativeVariable(\"--color-bg-primary\") ?? \"#ffffff\";\n const borderSecondary = useNativeVariable(\"--color-border-secondary\") ?? \"#e9eaeb\";\n const overlayColor = useNativeVariable(\"--color-bg-overlay\") ?? \"#0a0d12\";\n const resolvedMobile = useMemo(() => resolveDialogMobileOptions(mobileOptions), [mobileOptions]);\n\n const useMobileSheet = resolvedMobile.sheet;\n const useMobileFullScreen = useMobileSheet && resolvedMobile.fullScreen;\n const isFullSizeDialog = size === \"full\" || useMobileFullScreen;\n const useMobileBottomSheetChrome = useMobileSheet && !useMobileFullScreen && size !== \"full\";\n const showOverlay = !isFullSizeDialog && (!useMobileSheet || resolvedMobile.overlay);\n const sizeKey = size === \"full\" ? null : size;\n\n const handleOverlayPress = useCallback(() => {\n if (closeOnOverlayClick) setOpen(false);\n }, [closeOnOverlayClick, setOpen]);\n\n const sheetChromeStyle = useMemo(\n () => ({\n position: \"absolute\" as const,\n left: 0,\n right: 0,\n bottom: 0,\n width: windowWidth,\n maxHeight: \"90%\" as const,\n zIndex: 10,\n overflow: \"hidden\" as const,\n backgroundColor: bgPrimary,\n borderTopLeftRadius: DIALOG_SHEET_RADIUS_PX,\n borderTopRightRadius: DIALOG_SHEET_RADIUS_PX,\n borderBottomLeftRadius: 0,\n borderBottomRightRadius: 0,\n borderTopWidth: 1,\n borderLeftWidth: 0,\n borderRightWidth: 0,\n borderBottomWidth: 0,\n borderTopColor: borderSecondary,\n paddingBottom: insets.bottom,\n }),\n [bgPrimary, borderSecondary, insets.bottom, windowWidth],\n );\n\n const fullChromeStyle = useMemo(\n () => ({\n flex: 1,\n width: windowWidth,\n backgroundColor: bgPrimary,\n paddingBottom: 12,\n }),\n [bgPrimary, windowWidth],\n );\n\n return (\n <Modal\n visible={shouldRender}\n transparent\n animationType=\"none\"\n presentationStyle=\"overFullScreen\"\n onRequestClose={() => setOpen(false)}\n statusBarTranslucent\n >\n <View\n className={cx(\n dialogStyles.root,\n \"flex-1\",\n isFullSizeDialog\n ? dialogStyles.rootFull\n : useMobileSheet\n ? dialogStyles.rootSheet\n : dialogStyles.rootModal,\n )}\n >\n {open && showOverlay && (\n <View className={dialogStyles.overlay}>\n <Animated.View\n entering={overlayEntering}\n exiting={overlayExiting}\n style={{ flex: 1, backgroundColor: overlayFill(overlayColor) }}\n >\n <Pressable\n accessibilityRole=\"button\"\n accessibilityLabel=\"Dismiss\"\n onPress={handleOverlayPress}\n className=\"flex-1\"\n />\n </Animated.View>\n </View>\n )}\n\n {open && (\n <Animated.View\n collapsable={false}\n entering={panelEntering}\n exiting={panelExiting}\n style={\n isFullSizeDialog\n ? fullChromeStyle\n : useMobileBottomSheetChrome\n ? sheetChromeStyle\n : { width: \"100%\", maxWidth: 448, alignSelf: \"center\" as const }\n }\n >\n <View\n className={cx(\n dialogStyles.panel,\n isFullSizeDialog && dialogStyles.panelFull,\n !isFullSizeDialog &&\n !useMobileBottomSheetChrome &&\n dialogStyles.panelModal,\n sizeKey && !useMobileBottomSheetChrome && dialogStyles.sizes[sizeKey],\n resolvedMobile.panelClassName,\n className,\n )}\n >\n {isFullSizeDialog && <Animated.View style={{ height: insets.top }} />}\n {children}\n {showClose && (\n <DialogCloseButton top={isFullSizeDialog ? insets.top + 16 : 16} />\n )}\n </View>\n </Animated.View>\n )}\n </View>\n </Modal>\n );\n};\n\nDialogContent.displayName = \"DialogContent\";\n\n//////////////////////////////////////////////// CHROME\n\nexport const DialogHeader: FC<{ children?: ReactNode; className?: string; fixed?: boolean }> = ({\n children,\n className,\n fixed,\n}) => {\n return <View className={cx(dialogStyles.header, fixed && dialogStyles.headerFixed, className)}>{children}</View>;\n};\n\nexport const DialogFooter: FC<{ children?: ReactNode; className?: string; fixed?: boolean }> = ({\n children,\n className,\n fixed,\n}) => {\n return <View className={cx(dialogStyles.footer, fixed && dialogStyles.footerFixed, className)}>{children}</View>;\n};\n\nexport const DialogTitle: FC<{ children?: ReactNode; className?: string }> = ({ children, className }) => {\n return <Text className={cx(dialogStyles.title, className)}>{children}</Text>;\n};\n\nexport const DialogDescription: FC<{ children?: ReactNode; className?: string }> = ({ children, className }) => {\n return <Text className={cx(dialogStyles.description, className)}>{children}</Text>;\n};\n"]}
|