@ngrok/mantle 0.66.11 → 0.66.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/alert-dialog.d.ts +4 -4
  2. package/dist/alert-dialog.js +1 -1
  3. package/dist/{button-CKL-3sIr.d.ts → button-ByK1wG1b.d.ts} +4 -4
  4. package/dist/button.d.ts +2 -2
  5. package/dist/checkbox.d.ts +1 -1
  6. package/dist/code-block.d.ts +1 -1
  7. package/dist/command.d.ts +96 -57
  8. package/dist/command.js +1 -1
  9. package/dist/command.js.map +1 -1
  10. package/dist/data-table.d.ts +3 -3
  11. package/dist/{dialog-BswTx6oS.js → dialog-nNRT5LpD.js} +2 -2
  12. package/dist/{dialog-BswTx6oS.js.map → dialog-nNRT5LpD.js.map} +1 -1
  13. package/dist/dialog.d.ts +422 -3
  14. package/dist/dialog.js +1 -1
  15. package/dist/{direction-deXpJFDZ.d.ts → direction-DYYpi-JC.d.ts} +1 -1
  16. package/dist/{dropdown-menu-D_ZoY1AH.d.ts → dropdown-menu-BEjpuGrT.d.ts} +1 -1
  17. package/dist/dropdown-menu.d.ts +1 -1
  18. package/dist/hooks.d.ts +1 -1
  19. package/dist/icon.d.ts +1 -1
  20. package/dist/icons.d.ts +2 -2
  21. package/dist/{in-view-CTQRT44m.d.ts → in-view-ca-moloX.d.ts} +1 -1
  22. package/dist/{index-CMbK9igL.d.ts → index-ViSCOUrU.d.ts} +2 -2
  23. package/dist/pagination.d.ts +2 -2
  24. package/dist/{primitive-vy5KrN2J.js → primitive-qv3vtV4B.js} +2 -2
  25. package/dist/{primitive-vy5KrN2J.js.map → primitive-qv3vtV4B.js.map} +1 -1
  26. package/dist/{select-39Jfc1Cb.d.ts → select-BkvbNKQ7.d.ts} +1 -1
  27. package/dist/select.d.ts +1 -1
  28. package/dist/sheet.js +1 -1
  29. package/dist/split-button.d.ts +2 -2
  30. package/dist/{svg-only-Dti1FvNV.d.ts → svg-only-Ct2mB46K.d.ts} +1 -1
  31. package/dist/{table-Dpt192qt.d.ts → table-Bs1D5Aj7.d.ts} +1 -1
  32. package/dist/table.d.ts +1 -1
  33. package/dist/theme.d.ts +2 -2
  34. package/dist/{themes-ClppRAGt.d.ts → themes-Dk0VkyqX.d.ts} +1 -1
  35. package/dist/toast.d.ts +1 -1
  36. package/dist/utils.d.ts +2 -2
  37. package/package.json +1 -1
  38. package/dist/dialog-BuD_JQf_.d.ts +0 -422
@@ -1 +1 @@
1
- {"version":3,"file":"primitive-vy5KrN2J.js","names":[],"sources":["../src/components/dialog/primitive.tsx"],"sourcesContent":["\"use client\";\n\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport {\n\ttype ComponentPropsWithoutRef,\n\ttype ComponentRef,\n\tcreateContext,\n\tforwardRef,\n\tuseContext,\n\tuseEffect,\n\tuseState,\n} from \"react\";\nimport { Slot } from \"../slot/index.js\";\nimport { preventCloseOnPromptInteraction } from \"../toast/toast.js\";\nimport { parseBooleanish } from \"../../types/booleanish.js\";\n\ntype DialogPrimitiveContentProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Content>;\n\ntype InternalDialogContextValue = {\n\thasDescription: boolean;\n\tsetHasDescription: (value: boolean) => void;\n};\n\nconst InternalDialogContext = createContext<InternalDialogContextValue>({\n\thasDescription: false,\n\tsetHasDescription: () => {},\n});\n\nfunction Root(props: ComponentPropsWithoutRef<typeof DialogPrimitive.Root>) {\n\tconst [hasDescription, setHasDescription] = useState(false);\n\n\treturn (\n\t\t<InternalDialogContext.Provider value={{ hasDescription, setHasDescription }}>\n\t\t\t<DialogPrimitive.Root {...props} />\n\t\t</InternalDialogContext.Provider>\n\t);\n}\nRoot.displayName = \"DialogPrimitiveRoot\";\n\nconst Trigger = DialogPrimitive.Trigger;\nTrigger.displayName = \"DialogPrimitiveTrigger\";\n\nconst Portal = DialogPrimitive.Portal;\nPortal.displayName = \"DialogPrimitivePortal\";\n\nconst Close = DialogPrimitive.Close;\nClose.displayName = \"DialogPrimitiveClose\";\n\nconst Overlay = forwardRef<\n\tComponentRef<typeof DialogPrimitive.Overlay>,\n\tComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\n>((props, ref) => (\n\t<DialogPrimitive.Overlay\n\t\t/**\n\t\t * Mark the overlay with a data attribute so we can target it, e.g. in\n\t\t * event handlers\n\t\t */\n\t\tdata-overlay\n\t\tref={ref}\n\t\t{...props}\n\t/>\n));\nOverlay.displayName = \"DialogPrimitiveOverlay\";\n\nconst Content = forwardRef<ComponentRef<\"div\">, DialogPrimitiveContentProps>(\n\t({ onEscapeKeyDown, onInteractOutside, onPointerDownOutside, ...props }, ref) => {\n\t\tconst ctx = useContext(InternalDialogContext);\n\n\t\treturn (\n\t\t\t<DialogPrimitive.Content\n\t\t\t\tref={ref}\n\t\t\t\tonEscapeKeyDown={(event) => {\n\t\t\t\t\tpreventCloseOnNestedPopupEscape(event);\n\t\t\t\t\tonEscapeKeyDown?.(event);\n\t\t\t\t}}\n\t\t\t\tonInteractOutside={(event) => {\n\t\t\t\t\tpreventCloseOnPromptInteraction(event);\n\t\t\t\t\tonInteractOutside?.(event);\n\t\t\t\t}}\n\t\t\t\tonPointerDownOutside={(event) => {\n\t\t\t\t\tpreventCloseOnPromptInteraction(event);\n\t\t\t\t\tonPointerDownOutside?.(event);\n\t\t\t\t}}\n\t\t\t\t// If there's no description, we remove the default applied aria-describedby attribute from radix dialog\n\t\t\t\t{...(!ctx.hasDescription ? { \"aria-describedby\": undefined } : {})}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t);\n\t},\n);\nContent.displayName = \"DialogPrimitiveContent\";\n\nconst Title = DialogPrimitive.Title;\n\n/**\n * An accessible description for the dialog primitive.\n * This is a low-level primitive used by higher-level dialog components.\n * Renders as a `div` by default, but can be changed to any other element using the `asChild` prop.\n */\nconst Description = forwardRef<\n\tComponentRef<\"div\">,\n\tComponentPropsWithoutRef<typeof DialogPrimitive.Description>\n>(({ asChild, children, ...props }, ref) => {\n\tconst ctx = useContext(InternalDialogContext);\n\n\tuseEffect(() => {\n\t\tctx.setHasDescription(true);\n\t\treturn () => ctx.setHasDescription(false);\n\t}, [ctx]);\n\n\tconst Component = asChild ? Slot : \"div\";\n\n\treturn (\n\t\t<DialogPrimitive.Description ref={ref} asChild>\n\t\t\t<Component {...props}>{children}</Component>\n\t\t</DialogPrimitive.Description>\n\t);\n});\nDescription.displayName = \"DialogPrimitiveDescription\";\n\n/**\n * Type guard to check if the event target is the overlay component\n */\nfunction isDialogOverlayTarget(target: EventTarget | null): boolean {\n\tif (target instanceof HTMLElement) {\n\t\treturn target.hasAttribute(\"data-overlay\");\n\t}\n\treturn false;\n}\n\nexport {\n\t//,\n\tRoot,\n\tTrigger,\n\tPortal,\n\tClose,\n\tOverlay,\n\tContent,\n\tDescription,\n\tTitle,\n\tisDialogOverlayTarget,\n};\n\n/**\n * Prevents the parent dialog/sheet/alert-dialog from closing on Escape when a\n * nested popup owner inside the same modal content is currently expanded.\n *\n * Flow:\n * - If focus is outside the nested popup owner, Escape closes the parent modal.\n * - If focus is inside the nested popup owner and its controlled popup is open,\n * the first Escape closes only the nested popup and keeps the parent modal open.\n * - Once the nested popup has closed, a subsequent Escape closes the parent modal.\n */\nfunction preventCloseOnNestedPopupEscape(\n\tevent: Parameters<NonNullable<DialogPrimitiveContentProps[\"onEscapeKeyDown\"]>>[0],\n): void {\n\tif (!isParentNode(event.currentTarget)) {\n\t\treturn;\n\t}\n\n\tconst currentTarget = event.currentTarget;\n\tconst activeElement =\n\t\tcurrentTarget instanceof Document\n\t\t\t? currentTarget.activeElement\n\t\t\t: (currentTarget.ownerDocument?.activeElement ?? null);\n\n\tconst owner = getExpandedPopupOwner(event.target) ?? getExpandedPopupOwner(activeElement);\n\n\tconst popup = owner ? getControlledPopup(owner) : null;\n\n\tif (\n\t\towner != null &&\n\t\tparseBooleanish(owner.getAttribute(\"aria-expanded\")) &&\n\t\tpopup != null &&\n\t\tcurrentTarget.contains(owner) &&\n\t\tcurrentTarget.contains(popup)\n\t) {\n\t\tevent.preventDefault();\n\t}\n}\n\n/**\n * Finds the nearest expanded popup owner for a node using ARIA relationships.\n *\n * A matching owner must expose `aria-expanded=\"true\"` and `aria-controls`, which\n * lets nested controls like comboboxes and input-attached popovers signal that an\n * inner surface is currently open.\n */\nfunction getExpandedPopupOwner(node: EventTarget | null): HTMLElement | null {\n\tif (!isHTMLElement(node)) {\n\t\treturn null;\n\t}\n\n\tconst owner = node.closest<HTMLElement>(\"[aria-expanded='true'][aria-controls]\");\n\treturn owner;\n}\n\n/**\n * Resolves the popup element controlled by an expanded owner via `aria-controls`.\n */\nfunction getControlledPopup(owner: HTMLElement): HTMLElement | null {\n\tconst popupId = owner.getAttribute(\"aria-controls\");\n\tif (!popupId) {\n\t\treturn null;\n\t}\n\n\tconst popup = owner.ownerDocument.getElementById(popupId);\n\treturn popup instanceof HTMLElement ? popup : null;\n}\n\n/**\n * Narrows an event target to an HTMLElement so DOM traversal helpers can be used safely.\n */\nfunction isHTMLElement(value: EventTarget | null): value is HTMLElement {\n\treturn value instanceof HTMLElement;\n}\n\n/**\n * Narrows an event target to a queryable DOM parent node, such as an Element or Document.\n */\nfunction isParentNode(value: EventTarget | null): value is ParentNode & Node {\n\treturn value instanceof Node && \"querySelector\" in value;\n}\n"],"mappings":"2SAuBA,MAAM,EAAwB,EAA0C,CACvE,eAAgB,GAChB,sBAAyB,GACzB,CAAC,CAEF,SAAS,EAAK,EAA8D,CAC3E,GAAM,CAAC,EAAgB,GAAqB,EAAS,GAAM,CAE3D,OACC,EAAC,EAAsB,SAAvB,CAAgC,MAAO,CAAE,iBAAgB,oBAAmB,UAC3E,EAAC,EAAgB,KAAjB,CAAsB,GAAI,EAAS,CAAA,CACH,CAAA,CAGnC,EAAK,YAAc,sBAEnB,MAAM,EAAU,EAAgB,QAChC,EAAQ,YAAc,yBAEtB,MAAM,EAAS,EAAgB,OAC/B,EAAO,YAAc,wBAErB,MAAM,EAAQ,EAAgB,MAC9B,EAAM,YAAc,uBAEpB,MAAM,EAAU,GAGb,EAAO,IACT,EAAC,EAAgB,QAAjB,CAKC,eAAA,GACK,MACL,GAAI,EACH,CAAA,CACD,CACF,EAAQ,YAAc,yBAEtB,MAAM,EAAU,GACd,CAAE,kBAAiB,oBAAmB,uBAAsB,GAAG,GAAS,IAAQ,CAChF,IAAM,EAAM,EAAW,EAAsB,CAE7C,OACC,EAAC,EAAgB,QAAjB,CACM,MACL,gBAAkB,GAAU,CAC3B,EAAgC,EAAM,CACtC,IAAkB,EAAM,EAEzB,kBAAoB,GAAU,CAC7B,EAAgC,EAAM,CACtC,IAAoB,EAAM,EAE3B,qBAAuB,GAAU,CAChC,EAAgC,EAAM,CACtC,IAAuB,EAAM,EAG9B,GAAM,EAAI,eAAqD,EAAE,CAAtC,CAAE,mBAAoB,IAAA,GAAW,CAC5D,GAAI,EACH,CAAA,EAGJ,CACD,EAAQ,YAAc,yBAEtB,MAAM,EAAQ,EAAgB,MAOxB,EAAc,GAGjB,CAAE,UAAS,WAAU,GAAG,GAAS,IAAQ,CAC3C,IAAM,EAAM,EAAW,EAAsB,CAE7C,OACC,EAAI,kBAAkB,GAAK,KACd,EAAI,kBAAkB,GAAM,EACvC,CAAC,EAAI,CAAC,CAET,IAAM,EAAY,EAAU,EAAO,MAEnC,OACC,EAAC,EAAgB,YAAjB,CAAkC,MAAK,QAAA,YACtC,EAAC,EAAD,CAAW,GAAI,EAAQ,WAAqB,CAAA,CACf,CAAA,EAE9B,CACF,EAAY,YAAc,6BAK1B,SAAS,EAAsB,EAAqC,CAInE,OAHI,aAAkB,YACd,EAAO,aAAa,eAAe,CAEpC,GA0BR,SAAS,EACR,EACO,CACP,GAAI,CAAC,EAAa,EAAM,cAAc,CACrC,OAGD,IAAM,EAAgB,EAAM,cACtB,EACL,aAAyB,SACtB,EAAc,cACb,EAAc,eAAe,eAAiB,KAE7C,EAAQ,EAAsB,EAAM,OAAO,EAAI,EAAsB,EAAc,CAEnF,EAAQ,EAAQ,EAAmB,EAAM,CAAG,KAGjD,GAAS,MACT,EAAgB,EAAM,aAAa,gBAAgB,CAAC,EACpD,GAAS,MACT,EAAc,SAAS,EAAM,EAC7B,EAAc,SAAS,EAAM,EAE7B,EAAM,gBAAgB,CAWxB,SAAS,EAAsB,EAA8C,CAM5E,OALK,EAAc,EAAK,CAIV,EAAK,QAAqB,wCAAwC,CAHxE,KAUT,SAAS,EAAmB,EAAwC,CACnE,IAAM,EAAU,EAAM,aAAa,gBAAgB,CACnD,GAAI,CAAC,EACJ,OAAO,KAGR,IAAM,EAAQ,EAAM,cAAc,eAAe,EAAQ,CACzD,OAAO,aAAiB,YAAc,EAAQ,KAM/C,SAAS,EAAc,EAAiD,CACvE,OAAO,aAAiB,YAMzB,SAAS,EAAa,EAAuD,CAC5E,OAAO,aAAiB,MAAQ,kBAAmB"}
1
+ {"version":3,"file":"primitive-qv3vtV4B.js","names":[],"sources":["../src/components/dialog/primitive.tsx"],"sourcesContent":["\"use client\";\n\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport {\n\ttype ComponentPropsWithoutRef,\n\ttype ComponentRef,\n\tcreateContext,\n\tforwardRef,\n\tuseContext,\n\tuseEffect,\n\tuseState,\n} from \"react\";\nimport { Slot } from \"../slot/index.js\";\nimport { preventCloseOnPromptInteraction } from \"../toast/toast.js\";\nimport { parseBooleanish } from \"../../types/booleanish.js\";\n\ntype DialogPrimitiveContentProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Content>;\n\ntype InternalDialogContextValue = {\n\thasDescription: boolean;\n\tsetHasDescription: (value: boolean) => void;\n};\n\nconst InternalDialogContext = createContext<InternalDialogContextValue>({\n\thasDescription: false,\n\tsetHasDescription: () => {},\n});\n\nfunction Root(props: ComponentPropsWithoutRef<typeof DialogPrimitive.Root>) {\n\tconst [hasDescription, setHasDescription] = useState(false);\n\n\treturn (\n\t\t<InternalDialogContext.Provider value={{ hasDescription, setHasDescription }}>\n\t\t\t<DialogPrimitive.Root {...props} />\n\t\t</InternalDialogContext.Provider>\n\t);\n}\nRoot.displayName = \"DialogPrimitiveRoot\";\n\nconst Trigger = DialogPrimitive.Trigger;\nTrigger.displayName = \"DialogPrimitiveTrigger\";\n\nconst Portal = DialogPrimitive.Portal;\nPortal.displayName = \"DialogPrimitivePortal\";\n\nconst Close = DialogPrimitive.Close;\nClose.displayName = \"DialogPrimitiveClose\";\n\nconst Overlay = forwardRef<\n\tComponentRef<typeof DialogPrimitive.Overlay>,\n\tComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\n>((props, ref) => (\n\t<DialogPrimitive.Overlay\n\t\t/**\n\t\t * Mark the overlay with a data attribute so we can target it, e.g. in\n\t\t * event handlers\n\t\t */\n\t\tdata-overlay\n\t\tref={ref}\n\t\t{...props}\n\t/>\n));\nOverlay.displayName = \"DialogPrimitiveOverlay\";\n\nconst Content = forwardRef<ComponentRef<\"div\">, DialogPrimitiveContentProps>(\n\t({ onEscapeKeyDown, onInteractOutside, onPointerDownOutside, ...props }, ref) => {\n\t\tconst ctx = useContext(InternalDialogContext);\n\n\t\treturn (\n\t\t\t<DialogPrimitive.Content\n\t\t\t\tref={ref}\n\t\t\t\tonEscapeKeyDown={(event) => {\n\t\t\t\t\tpreventCloseOnNestedPopupEscape(event);\n\t\t\t\t\tonEscapeKeyDown?.(event);\n\t\t\t\t}}\n\t\t\t\tonInteractOutside={(event) => {\n\t\t\t\t\tpreventCloseOnPromptInteraction(event);\n\t\t\t\t\tonInteractOutside?.(event);\n\t\t\t\t}}\n\t\t\t\tonPointerDownOutside={(event) => {\n\t\t\t\t\tpreventCloseOnPromptInteraction(event);\n\t\t\t\t\tonPointerDownOutside?.(event);\n\t\t\t\t}}\n\t\t\t\t// If there's no description, we remove the default applied aria-describedby attribute from radix dialog\n\t\t\t\t{...(!ctx.hasDescription ? { \"aria-describedby\": undefined } : {})}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t);\n\t},\n);\nContent.displayName = \"DialogPrimitiveContent\";\n\nconst Title = DialogPrimitive.Title;\n\n/**\n * An accessible description for the dialog primitive.\n * This is a low-level primitive used by higher-level dialog components.\n * Renders as a `div` by default, but can be changed to any other element using the `asChild` prop.\n */\nconst Description = forwardRef<\n\tComponentRef<\"div\">,\n\tComponentPropsWithoutRef<typeof DialogPrimitive.Description>\n>(({ asChild, children, ...props }, ref) => {\n\tconst ctx = useContext(InternalDialogContext);\n\n\tuseEffect(() => {\n\t\tctx.setHasDescription(true);\n\t\treturn () => ctx.setHasDescription(false);\n\t}, [ctx]);\n\n\tconst Component = asChild ? Slot : \"div\";\n\n\treturn (\n\t\t<DialogPrimitive.Description ref={ref} asChild>\n\t\t\t<Component {...props}>{children}</Component>\n\t\t</DialogPrimitive.Description>\n\t);\n});\nDescription.displayName = \"DialogPrimitiveDescription\";\n\n/**\n * Type guard to check if the event target is the overlay component\n */\nfunction isDialogOverlayTarget(target: EventTarget | null): boolean {\n\tif (target instanceof HTMLElement) {\n\t\treturn target.hasAttribute(\"data-overlay\");\n\t}\n\treturn false;\n}\n\nexport {\n\t//,\n\tRoot,\n\tTrigger,\n\tPortal,\n\tClose,\n\tOverlay,\n\tContent,\n\tDescription,\n\tTitle,\n\tisDialogOverlayTarget,\n};\n\n/**\n * Prevents the parent dialog/sheet/alert-dialog from closing on Escape when a\n * nested popup owner inside the same modal content is currently expanded.\n *\n * Flow:\n * - If focus is outside the nested popup owner, Escape closes the parent modal.\n * - If focus is inside the nested popup owner and its controlled popup is open,\n * the first Escape closes only the nested popup and keeps the parent modal open.\n * - Once the nested popup has closed, a subsequent Escape closes the parent modal.\n */\nfunction preventCloseOnNestedPopupEscape(\n\tevent: Parameters<NonNullable<DialogPrimitiveContentProps[\"onEscapeKeyDown\"]>>[0],\n): void {\n\tif (!isParentNode(event.currentTarget)) {\n\t\treturn;\n\t}\n\n\tconst currentTarget = event.currentTarget;\n\tconst activeElement =\n\t\tcurrentTarget instanceof Document\n\t\t\t? currentTarget.activeElement\n\t\t\t: (currentTarget.ownerDocument?.activeElement ?? null);\n\n\tconst owner = getExpandedPopupOwner(event.target) ?? getExpandedPopupOwner(activeElement);\n\n\tconst popup = owner ? getControlledPopup(owner) : null;\n\n\tif (\n\t\towner != null &&\n\t\tparseBooleanish(owner.getAttribute(\"aria-expanded\")) &&\n\t\tpopup != null &&\n\t\tcurrentTarget.contains(owner) &&\n\t\tcurrentTarget.contains(popup) &&\n\t\t// Only block closing if the popup is actively open. Always-visible lists\n\t\t// without open/close state (e.g. cmdk) carry neither attribute and should\n\t\t// never block the dialog from closing.\n\t\t// - Ariakit sets `data-open=\"true\"` when its popover is open.\n\t\t// - Radix sets `data-state=\"open\"` when its popup is open.\n\t\t(popup.getAttribute(\"data-open\") === \"true\" || popup.getAttribute(\"data-state\") === \"open\")\n\t) {\n\t\tevent.preventDefault();\n\t}\n}\n\n/**\n * Finds the nearest expanded popup owner for a node using ARIA relationships.\n *\n * A matching owner must expose `aria-expanded=\"true\"` and `aria-controls`, which\n * lets nested controls like comboboxes and input-attached popovers signal that an\n * inner surface is currently open.\n */\nfunction getExpandedPopupOwner(node: EventTarget | null): HTMLElement | null {\n\tif (!isHTMLElement(node)) {\n\t\treturn null;\n\t}\n\n\tconst owner = node.closest<HTMLElement>(\"[aria-expanded='true'][aria-controls]\");\n\treturn owner;\n}\n\n/**\n * Resolves the popup element controlled by an expanded owner via `aria-controls`.\n */\nfunction getControlledPopup(owner: HTMLElement): HTMLElement | null {\n\tconst popupId = owner.getAttribute(\"aria-controls\");\n\tif (!popupId) {\n\t\treturn null;\n\t}\n\n\tconst popup = owner.ownerDocument.getElementById(popupId);\n\treturn popup instanceof HTMLElement ? popup : null;\n}\n\n/**\n * Narrows an event target to an HTMLElement so DOM traversal helpers can be used safely.\n */\nfunction isHTMLElement(value: EventTarget | null): value is HTMLElement {\n\treturn value instanceof HTMLElement;\n}\n\n/**\n * Narrows an event target to a queryable DOM parent node, such as an Element or Document.\n */\nfunction isParentNode(value: EventTarget | null): value is ParentNode & Node {\n\treturn value instanceof Node && \"querySelector\" in value;\n}\n"],"mappings":"2SAuBA,MAAM,EAAwB,EAA0C,CACvE,eAAgB,GAChB,sBAAyB,GACzB,CAAC,CAEF,SAAS,EAAK,EAA8D,CAC3E,GAAM,CAAC,EAAgB,GAAqB,EAAS,GAAM,CAE3D,OACC,EAAC,EAAsB,SAAvB,CAAgC,MAAO,CAAE,iBAAgB,oBAAmB,UAC3E,EAAC,EAAgB,KAAjB,CAAsB,GAAI,EAAS,CAAA,CACH,CAAA,CAGnC,EAAK,YAAc,sBAEnB,MAAM,EAAU,EAAgB,QAChC,EAAQ,YAAc,yBAEtB,MAAM,EAAS,EAAgB,OAC/B,EAAO,YAAc,wBAErB,MAAM,EAAQ,EAAgB,MAC9B,EAAM,YAAc,uBAEpB,MAAM,EAAU,GAGb,EAAO,IACT,EAAC,EAAgB,QAAjB,CAKC,eAAA,GACK,MACL,GAAI,EACH,CAAA,CACD,CACF,EAAQ,YAAc,yBAEtB,MAAM,EAAU,GACd,CAAE,kBAAiB,oBAAmB,uBAAsB,GAAG,GAAS,IAAQ,CAChF,IAAM,EAAM,EAAW,EAAsB,CAE7C,OACC,EAAC,EAAgB,QAAjB,CACM,MACL,gBAAkB,GAAU,CAC3B,EAAgC,EAAM,CACtC,IAAkB,EAAM,EAEzB,kBAAoB,GAAU,CAC7B,EAAgC,EAAM,CACtC,IAAoB,EAAM,EAE3B,qBAAuB,GAAU,CAChC,EAAgC,EAAM,CACtC,IAAuB,EAAM,EAG9B,GAAM,EAAI,eAAqD,EAAE,CAAtC,CAAE,mBAAoB,IAAA,GAAW,CAC5D,GAAI,EACH,CAAA,EAGJ,CACD,EAAQ,YAAc,yBAEtB,MAAM,EAAQ,EAAgB,MAOxB,EAAc,GAGjB,CAAE,UAAS,WAAU,GAAG,GAAS,IAAQ,CAC3C,IAAM,EAAM,EAAW,EAAsB,CAE7C,OACC,EAAI,kBAAkB,GAAK,KACd,EAAI,kBAAkB,GAAM,EACvC,CAAC,EAAI,CAAC,CAET,IAAM,EAAY,EAAU,EAAO,MAEnC,OACC,EAAC,EAAgB,YAAjB,CAAkC,MAAK,QAAA,YACtC,EAAC,EAAD,CAAW,GAAI,EAAQ,WAAqB,CAAA,CACf,CAAA,EAE9B,CACF,EAAY,YAAc,6BAK1B,SAAS,EAAsB,EAAqC,CAInE,OAHI,aAAkB,YACd,EAAO,aAAa,eAAe,CAEpC,GA0BR,SAAS,EACR,EACO,CACP,GAAI,CAAC,EAAa,EAAM,cAAc,CACrC,OAGD,IAAM,EAAgB,EAAM,cACtB,EACL,aAAyB,SACtB,EAAc,cACb,EAAc,eAAe,eAAiB,KAE7C,EAAQ,EAAsB,EAAM,OAAO,EAAI,EAAsB,EAAc,CAEnF,EAAQ,EAAQ,EAAmB,EAAM,CAAG,KAGjD,GAAS,MACT,EAAgB,EAAM,aAAa,gBAAgB,CAAC,EACpD,GAAS,MACT,EAAc,SAAS,EAAM,EAC7B,EAAc,SAAS,EAAM,GAM5B,EAAM,aAAa,YAAY,GAAK,QAAU,EAAM,aAAa,aAAa,GAAK,SAEpF,EAAM,gBAAgB,CAWxB,SAAS,EAAsB,EAA8C,CAM5E,OALK,EAAc,EAAK,CAIV,EAAK,QAAqB,wCAAwC,CAHxE,KAUT,SAAS,EAAmB,EAAwC,CACnE,IAAM,EAAU,EAAM,aAAa,gBAAgB,CACnD,GAAI,CAAC,EACJ,OAAO,KAGR,IAAM,EAAQ,EAAM,cAAc,eAAe,EAAQ,CACzD,OAAO,aAAiB,YAAc,EAAQ,KAM/C,SAAS,EAAc,EAAiD,CACvE,OAAO,aAAiB,YAMzB,SAAS,EAAa,EAAuD,CAC5E,OAAO,aAAiB,MAAQ,kBAAmB"}
@@ -262,4 +262,4 @@ declare const Select: {
262
262
  };
263
263
  //#endregion
264
264
  export { Select as t };
265
- //# sourceMappingURL=select-39Jfc1Cb.d.ts.map
265
+ //# sourceMappingURL=select-BkvbNKQ7.d.ts.map
package/dist/select.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { t as Select } from "./select-39Jfc1Cb.js";
1
+ import { t as Select } from "./select-BkvbNKQ7.js";
2
2
  export { Select };
package/dist/sheet.js CHANGED
@@ -1,2 +1,2 @@
1
- import{t as e}from"./cx-bKromGBh.js";import{t}from"./icon-button-D4e9-dq-.js";import{a as n,c as r,i,n as a,o,r as s,s as c,t as l}from"./primitive-vy5KrN2J.js";import{forwardRef as u}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";import{XIcon as p}from"@phosphor-icons/react/X";import{cva as m}from"class-variance-authority";const h=o;h.displayName=`Sheet`;const g=r;g.displayName=`SheetTrigger`;const _=l;_.displayName=`SheetClose`;const v=n;v.displayName=`SheetPortal`;const y=u(({className:t,...n},r)=>d(i,{className:e(`bg-overlay data-state-closed:animate-out data-state-closed:fade-out-0 data-state-open:animate-in data-state-open:fade-in-0 fixed inset-0 z-40 backdrop-blur-xs`,t),...n,ref:r}));y.displayName=i.displayName;const b=m(`bg-dialog border-dialog inset-y-0 h-full w-full fixed z-40 flex flex-col shadow-lg outline-hidden transition ease-in-out focus-within:outline-hidden data-state-closed:duration-100 data-state-closed:animate-out data-state-open:duration-100 data-state-open:animate-in`,{variants:{side:{left:`data-state-closed:slide-out-to-left data-state-open:slide-in-from-left left-0 border-r`,right:`data-state-closed:slide-out-to-right data-state-open:slide-in-from-right right-0 border-l`}},defaultVariants:{side:`right`}}),x=u(({children:t,className:n,preferredWidth:r=`sm:max-w-[30rem]`,side:i=`right`,...o},s)=>f(v,{children:[d(y,{}),d(a,{"data-mantle-modal-content":!0,className:e(b({side:i}),r,n),ref:s,...o,children:t})]}));x.displayName=a.displayName;const S=({size:e=`md`,type:n=`button`,label:r=`Close Sheet`,appearance:i=`ghost`,...a})=>d(l,{asChild:!0,children:d(t,{appearance:i,icon:d(p,{}),label:r,size:e,type:n,...a})});S.displayName=`SheetCloseIconButton`;const C=({className:t,...n})=>d(`div`,{className:e(`scrollbar text-body flex-1 overflow-y-auto p-6`,t),...n});C.displayName=`SheetBody`;const w=({className:t,...n})=>d(`div`,{className:e(`border-dialog-muted flex shrink-0 flex-col gap-2 border-b py-4 pl-6 pr-4`,`has-[.icon-button]:pr-4`,t),...n});w.displayName=`SheetHeader`;const T=({className:t,...n})=>d(`div`,{className:e(`border-dialog-muted flex shrink-0 justify-end gap-2 border-t px-6 py-2.5`,t),...n});T.displayName=`SheetFooter`;const E=u(({className:t,...n},r)=>d(c,{ref:r,className:e(`text-strong flex-1 truncate text-lg font-medium`,t),...n}));E.displayName=c.displayName;const D=u(({children:t,className:n,...r},i)=>d(`div`,{className:e(`flex items-center justify-between gap-2`,n),...r,ref:i,children:t}));D.displayName=`SheetTitleGroup`;const O=u(({className:t,...n},r)=>d(s,{ref:r,className:e(`text-body text-sm`,t),...n}));O.displayName=s.displayName;const k=u(({children:t,className:n,...r},i)=>d(`div`,{className:e(`flex h-full items-center gap-2`,n),...r,ref:i,children:t}));k.displayName=`SheetActions`;const A={Root:h,Actions:k,Body:C,Close:_,CloseIconButton:S,Content:x,Description:O,Footer:T,Header:w,Title:E,TitleGroup:D,Trigger:g};export{A as Sheet};
1
+ import{t as e}from"./cx-bKromGBh.js";import{t}from"./icon-button-D4e9-dq-.js";import{a as n,c as r,i,n as a,o,r as s,s as c,t as l}from"./primitive-qv3vtV4B.js";import{forwardRef as u}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";import{XIcon as p}from"@phosphor-icons/react/X";import{cva as m}from"class-variance-authority";const h=o;h.displayName=`Sheet`;const g=r;g.displayName=`SheetTrigger`;const _=l;_.displayName=`SheetClose`;const v=n;v.displayName=`SheetPortal`;const y=u(({className:t,...n},r)=>d(i,{className:e(`bg-overlay data-state-closed:animate-out data-state-closed:fade-out-0 data-state-open:animate-in data-state-open:fade-in-0 fixed inset-0 z-40 backdrop-blur-xs`,t),...n,ref:r}));y.displayName=i.displayName;const b=m(`bg-dialog border-dialog inset-y-0 h-full w-full fixed z-40 flex flex-col shadow-lg outline-hidden transition ease-in-out focus-within:outline-hidden data-state-closed:duration-100 data-state-closed:animate-out data-state-open:duration-100 data-state-open:animate-in`,{variants:{side:{left:`data-state-closed:slide-out-to-left data-state-open:slide-in-from-left left-0 border-r`,right:`data-state-closed:slide-out-to-right data-state-open:slide-in-from-right right-0 border-l`}},defaultVariants:{side:`right`}}),x=u(({children:t,className:n,preferredWidth:r=`sm:max-w-[30rem]`,side:i=`right`,...o},s)=>f(v,{children:[d(y,{}),d(a,{"data-mantle-modal-content":!0,className:e(b({side:i}),r,n),ref:s,...o,children:t})]}));x.displayName=a.displayName;const S=({size:e=`md`,type:n=`button`,label:r=`Close Sheet`,appearance:i=`ghost`,...a})=>d(l,{asChild:!0,children:d(t,{appearance:i,icon:d(p,{}),label:r,size:e,type:n,...a})});S.displayName=`SheetCloseIconButton`;const C=({className:t,...n})=>d(`div`,{className:e(`scrollbar text-body flex-1 overflow-y-auto p-6`,t),...n});C.displayName=`SheetBody`;const w=({className:t,...n})=>d(`div`,{className:e(`border-dialog-muted flex shrink-0 flex-col gap-2 border-b py-4 pl-6 pr-4`,`has-[.icon-button]:pr-4`,t),...n});w.displayName=`SheetHeader`;const T=({className:t,...n})=>d(`div`,{className:e(`border-dialog-muted flex shrink-0 justify-end gap-2 border-t px-6 py-2.5`,t),...n});T.displayName=`SheetFooter`;const E=u(({className:t,...n},r)=>d(c,{ref:r,className:e(`text-strong flex-1 truncate text-lg font-medium`,t),...n}));E.displayName=c.displayName;const D=u(({children:t,className:n,...r},i)=>d(`div`,{className:e(`flex items-center justify-between gap-2`,n),...r,ref:i,children:t}));D.displayName=`SheetTitleGroup`;const O=u(({className:t,...n},r)=>d(s,{ref:r,className:e(`text-body text-sm`,t),...n}));O.displayName=s.displayName;const k=u(({children:t,className:n,...r},i)=>d(`div`,{className:e(`flex h-full items-center gap-2`,n),...r,ref:i,children:t}));k.displayName=`SheetActions`;const A={Root:h,Actions:k,Body:C,Close:_,CloseIconButton:S,Content:x,Description:O,Footer:T,Header:w,Title:E,TitleGroup:D,Trigger:g};export{A as Sheet};
2
2
  //# sourceMappingURL=sheet.js.map
@@ -1,6 +1,6 @@
1
1
  import { t as IconButton } from "./icon-button-2r6S3HVA.js";
2
- import { t as Button } from "./button-CKL-3sIr.js";
3
- import { t as DropdownMenu } from "./dropdown-menu-D_ZoY1AH.js";
2
+ import { t as Button } from "./button-ByK1wG1b.js";
3
+ import { t as DropdownMenu } from "./dropdown-menu-BEjpuGrT.js";
4
4
  import * as react from "react";
5
5
  import { ComponentProps, ReactNode } from "react";
6
6
  import * as _radix_ui_react_dropdown_menu0 from "@radix-ui/react-dropdown-menu";
@@ -25,4 +25,4 @@ type SvgOnlyProps = Omit<SvgAttributes, "children"> & {
25
25
  declare const SvgOnly: react.ForwardRefExoticComponent<Omit<SvgOnlyProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
26
26
  //#endregion
27
27
  export { SvgOnlyProps as n, SvgOnly as t };
28
- //# sourceMappingURL=svg-only-Dti1FvNV.d.ts.map
28
+ //# sourceMappingURL=svg-only-Ct2mB46K.d.ts.map
@@ -395,4 +395,4 @@ declare const Table: {
395
395
  };
396
396
  //#endregion
397
397
  export { Table as t };
398
- //# sourceMappingURL=table-Dpt192qt.d.ts.map
398
+ //# sourceMappingURL=table-Bs1D5Aj7.d.ts.map
package/dist/table.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { t as Table } from "./table-Dpt192qt.js";
1
+ import { t as Table } from "./table-Bs1D5Aj7.js";
2
2
  export { Table };
package/dist/theme.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as isResolvedTheme, c as themes, i as Theme, n as $theme, o as isTheme, r as ResolvedTheme, s as resolvedThemes, t as $resolvedTheme } from "./themes-ClppRAGt.js";
1
+ import { a as isResolvedTheme, c as themes, i as Theme, n as $theme, o as isTheme, r as ResolvedTheme, s as resolvedThemes, t as $resolvedTheme } from "./themes-Dk0VkyqX.js";
2
2
  import { PropsWithChildren } from "react";
3
3
  import * as react_jsx_runtime0 from "react/jsx-runtime";
4
4
 
@@ -203,7 +203,7 @@ declare function useTheme(): ThemeProviderState;
203
203
  */
204
204
  declare function readThemeFromHtmlElement(): {
205
205
  appliedTheme: "dark" | "light" | "light-high-contrast" | "dark-high-contrast" | undefined;
206
- theme: "dark" | "light" | "system" | "light-high-contrast" | "dark-high-contrast" | undefined;
206
+ theme: "dark" | "light" | "light-high-contrast" | "dark-high-contrast" | "system" | undefined;
207
207
  };
208
208
  /**
209
209
  * If the theme is "system", it will resolve the theme based on the user's media query preferences, otherwise it will return the theme as is.
@@ -33,4 +33,4 @@ declare const $resolvedTheme: <T extends ResolvedTheme = ResolvedTheme>(value: T
33
33
  declare function isResolvedTheme(value: unknown): value is ResolvedTheme;
34
34
  //#endregion
35
35
  export { isResolvedTheme as a, themes as c, Theme as i, $theme as n, isTheme as o, ResolvedTheme as r, resolvedThemes as s, $resolvedTheme as t };
36
- //# sourceMappingURL=themes-ClppRAGt.d.ts.map
36
+ //# sourceMappingURL=themes-Dk0VkyqX.d.ts.map
package/dist/toast.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { t as WithAsChild } from "./as-child-XMVTepJu.js";
2
2
  import { t as WithStyleProps } from "./with-style-props-D1QFTzj6.js";
3
- import { n as SvgOnlyProps } from "./svg-only-Dti1FvNV.js";
3
+ import { n as SvgOnlyProps } from "./svg-only-Ct2mB46K.js";
4
4
  import * as react from "react";
5
5
  import { ComponentProps, ReactNode } from "react";
6
6
  import * as react_jsx_runtime0 from "react/jsx-runtime";
package/dist/utils.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as timeSortingDirections, a as AlphanumericSortingDirection, c as TimeSortingDirection, d as isSortingDirection, f as isSortingMode, g as timeSortingByDirection, h as sortingModes, i as $timeSortingDirection, l as alphanumericSortingDirections, m as sortingDirections, n as $sortingDirection, o as SortingDirection, p as isTimeSortingDirection, r as $sortingMode, s as SortingMode, t as $alphanumericSortingDirection, u as isAlphanumericSortingDirection } from "./direction-deXpJFDZ.js";
2
- import { a as composeRefs, i as inView, n as MarginType, r as ViewChangeHandler, t as InViewOptions } from "./in-view-CTQRT44m.js";
1
+ import { _ as timeSortingDirections, a as AlphanumericSortingDirection, c as TimeSortingDirection, d as isSortingDirection, f as isSortingMode, g as timeSortingByDirection, h as sortingModes, i as $timeSortingDirection, l as alphanumericSortingDirections, m as sortingDirections, n as $sortingDirection, o as SortingDirection, p as isTimeSortingDirection, r as $sortingMode, s as SortingMode, t as $alphanumericSortingDirection, u as isAlphanumericSortingDirection } from "./direction-DYYpi-JC.js";
2
+ import { a as composeRefs, i as inView, n as MarginType, r as ViewChangeHandler, t as InViewOptions } from "./in-view-ca-moloX.js";
3
3
 
4
4
  //#region src/utils/sorting/compare.d.ts
5
5
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngrok/mantle",
3
- "version": "0.66.11",
3
+ "version": "0.66.12",
4
4
  "description": "mantle is ngrok's UI library and design system.",
5
5
  "homepage": "https://mantle.ngrok.com",
6
6
  "license": "MIT",
@@ -1,422 +0,0 @@
1
- import { t as Root } from "./primitive-tuHqhoRE.js";
2
- import { n as IconButtonProps } from "./icon-button-2r6S3HVA.js";
3
- import * as react from "react";
4
- import { ComponentProps } from "react";
5
- import * as react_jsx_runtime0 from "react/jsx-runtime";
6
- import * as _radix_ui_react_dialog0 from "@radix-ui/react-dialog";
7
-
8
- //#region src/components/dialog/dialog.d.ts
9
- type CloseIconButtonProps = Partial<Omit<IconButtonProps, "icon">>;
10
- /**
11
- * A window overlaid on either the primary window or another dialog window.
12
- *
13
- * @see https://mantle.ngrok.com/components/dialog
14
- *
15
- * @example
16
- * ```tsx
17
- * <Dialog.Root>
18
- * <Dialog.Trigger asChild>
19
- * <Button type="button" appearance="outlined">
20
- * Open Dialog
21
- * </Button>
22
- * </Dialog.Trigger>
23
- * <Dialog.Content>
24
- * <Dialog.Header>
25
- * <Dialog.Title>Dialog Title</Dialog.Title>
26
- * <Dialog.CloseIconButton />
27
- * </Dialog.Header>
28
- * <Dialog.Body>
29
- * <p>This is the dialog content.</p>
30
- * </Dialog.Body>
31
- * <Dialog.Footer>
32
- * <Button type="button" appearance="outlined">
33
- * Cancel
34
- * </Button>
35
- * <Button type="button" appearance="filled">
36
- * Save
37
- * </Button>
38
- * </Dialog.Footer>
39
- * </Dialog.Content>
40
- * </Dialog.Root>
41
- * ```
42
- */
43
- declare const Dialog: {
44
- /**
45
- * A window overlaid on either the primary window or another dialog window.
46
- * The root stateful component for the Dialog.
47
- *
48
- * @see https://mantle.ngrok.com/components/dialog#dialogroot
49
- *
50
- * @example
51
- * ```tsx
52
- * <Dialog.Root>
53
- * <Dialog.Trigger asChild>
54
- * <Button type="button" appearance="outlined">
55
- * Open Dialog
56
- * </Button>
57
- * </Dialog.Trigger>
58
- * <Dialog.Content>
59
- * <Dialog.Header>
60
- * <Dialog.Title>Dialog Title</Dialog.Title>
61
- * <Dialog.CloseIconButton />
62
- * </Dialog.Header>
63
- * <Dialog.Body>
64
- * <p>This is the dialog content.</p>
65
- * </Dialog.Body>
66
- * <Dialog.Footer>
67
- * <Button type="button" appearance="outlined">
68
- * Cancel
69
- * </Button>
70
- * <Button type="button" appearance="filled">
71
- * Save
72
- * </Button>
73
- * </Dialog.Footer>
74
- * </Dialog.Content>
75
- * </Dialog.Root>
76
- * ```
77
- */
78
- readonly Root: typeof Root;
79
- /**
80
- * Contains the main content of the dialog.
81
- *
82
- * @see https://mantle.ngrok.com/components/dialog#dialogbody
83
- *
84
- * @example
85
- * ```tsx
86
- * <Dialog.Root>
87
- * <Dialog.Trigger asChild>
88
- * <Button type="button" appearance="outlined">
89
- * Open Dialog
90
- * </Button>
91
- * </Dialog.Trigger>
92
- * <Dialog.Content>
93
- * <Dialog.Header>
94
- * <Dialog.Title>Dialog Title</Dialog.Title>
95
- * </Dialog.Header>
96
- * <Dialog.Body>
97
- * <p>This is the dialog content.</p>
98
- * </Dialog.Body>
99
- * </Dialog.Content>
100
- * </Dialog.Root>
101
- * ```
102
- */
103
- readonly Body: {
104
- ({
105
- className,
106
- ...props
107
- }: ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
108
- displayName: string;
109
- };
110
- /**
111
- * A button that closes the dialog when clicked.
112
- *
113
- * @see https://mantle.ngrok.com/components/dialog#dialogclose
114
- *
115
- * @example
116
- * ```tsx
117
- * <Dialog.Root>
118
- * <Dialog.Trigger asChild>
119
- * <Button type="button">Open Dialog</Button>
120
- * </Dialog.Trigger>
121
- * <Dialog.Content>
122
- * <Dialog.Header>
123
- * <Dialog.Title>Confirm Action</Dialog.Title>
124
- * </Dialog.Header>
125
- * <Dialog.Body>
126
- * <Text>Are you sure you want to proceed?</Text>
127
- * </Dialog.Body>
128
- * <Dialog.Footer>
129
- * <Dialog.Close asChild>
130
- * <Button type="button" appearance="outlined">Cancel</Button>
131
- * </Dialog.Close>
132
- * <Button type="submit">Confirm</Button>
133
- * </Dialog.Footer>
134
- * </Dialog.Content>
135
- * </Dialog.Root>
136
- * ```
137
- */
138
- readonly Close: react.ForwardRefExoticComponent<_radix_ui_react_dialog0.DialogCloseProps & react.RefAttributes<HTMLButtonElement>>;
139
- /**
140
- * An icon button that closes the dialog when clicked.
141
- *
142
- * @see https://mantle.ngrok.com/components/dialog#dialogcloseiconbutton
143
- *
144
- * @example
145
- * ```tsx
146
- * <Dialog.Root>
147
- * <Dialog.Trigger asChild>
148
- * <Button type="button" appearance="outlined">
149
- * Open Dialog
150
- * </Button>
151
- * </Dialog.Trigger>
152
- * <Dialog.Content>
153
- * <Dialog.Header>
154
- * <Dialog.Title>Dialog Title</Dialog.Title>
155
- * <Dialog.CloseIconButton />
156
- * </Dialog.Header>
157
- * <Dialog.Body>
158
- * <p>This is the dialog content.</p>
159
- * </Dialog.Body>
160
- * </Dialog.Content>
161
- * </Dialog.Root>
162
- * ```
163
- */
164
- readonly CloseIconButton: {
165
- ({
166
- size,
167
- type,
168
- label,
169
- appearance,
170
- ...props
171
- }: CloseIconButtonProps): react_jsx_runtime0.JSX.Element;
172
- displayName: string;
173
- };
174
- /**
175
- * The container for the dialog content.
176
- * Renders on top of the overlay and is centered in the viewport.
177
- *
178
- * @see https://mantle.ngrok.com/components/dialog#dialogcontent
179
- *
180
- * @example
181
- * ```tsx
182
- * <Dialog.Root>
183
- * <Dialog.Trigger asChild>
184
- * <Button type="button" appearance="outlined">
185
- * Open Dialog
186
- * </Button>
187
- * </Dialog.Trigger>
188
- * <Dialog.Content>
189
- * <Dialog.Header>
190
- * <Dialog.Title>Dialog Title</Dialog.Title>
191
- * <Dialog.CloseIconButton />
192
- * </Dialog.Header>
193
- * <Dialog.Body>
194
- * <p>This is the dialog content.</p>
195
- * </Dialog.Body>
196
- * <Dialog.Footer>
197
- * <Button type="button" appearance="outlined">
198
- * Cancel
199
- * </Button>
200
- * <Button type="button" appearance="filled">
201
- * Save
202
- * </Button>
203
- * </Dialog.Footer>
204
- * </Dialog.Content>
205
- * </Dialog.Root>
206
- * ```
207
- */
208
- readonly Content: react.ForwardRefExoticComponent<Omit<Omit<_radix_ui_react_dialog0.DialogContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>, "ref"> & {
209
- /**
210
- * The preferred width of the `Dialog.Content` as a tailwind `max-w-` class.
211
- *
212
- * By default, a `Dialog`'s content width is responsive with a default
213
- * preferred width: the maximum width of the `Dialog.Content`
214
- *
215
- * @default `max-w-lg`
216
- */
217
- preferredWidth?: `max-w-${string}`;
218
- } & react.RefAttributes<HTMLDivElement>>;
219
- /**
220
- * An accessible description to be announced when the dialog is opened.
221
- *
222
- * @see https://mantle.ngrok.com/components/dialog#dialogdescription
223
- *
224
- * @example
225
- * ```tsx
226
- * <Dialog.Root>
227
- * <Dialog.Trigger asChild>
228
- * <Button type="button" appearance="outlined">
229
- * Open Dialog
230
- * </Button>
231
- * </Dialog.Trigger>
232
- * <Dialog.Content>
233
- * <Dialog.Header>
234
- * <Dialog.Title>Dialog Title</Dialog.Title>
235
- * <Dialog.Description>
236
- * This is an optional description.
237
- * </Dialog.Description>
238
- * </Dialog.Header>
239
- * <Dialog.Body>
240
- * <p>This is the dialog content.</p>
241
- * </Dialog.Body>
242
- * </Dialog.Content>
243
- * </Dialog.Root>
244
- * ```
245
- */
246
- readonly Description: react.ForwardRefExoticComponent<Omit<Omit<_radix_ui_react_dialog0.DialogDescriptionProps & react.RefAttributes<HTMLParagraphElement>, "ref"> & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
247
- /**
248
- * Contains the footer content of the dialog, including action buttons.
249
- *
250
- * @see https://mantle.ngrok.com/components/dialog#dialogfooter
251
- *
252
- * @example
253
- * ```tsx
254
- * <Dialog.Root>
255
- * <Dialog.Trigger asChild>
256
- * <Button type="button" appearance="outlined">
257
- * Open Dialog
258
- * </Button>
259
- * </Dialog.Trigger>
260
- * <Dialog.Content>
261
- * <Dialog.Header>
262
- * <Dialog.Title>Dialog Title</Dialog.Title>
263
- * </Dialog.Header>
264
- * <Dialog.Body>
265
- * <p>This is the dialog content.</p>
266
- * </Dialog.Body>
267
- * <Dialog.Footer>
268
- * <Button type="button" appearance="outlined">
269
- * Cancel
270
- * </Button>
271
- * <Button type="button" appearance="filled">
272
- * Save
273
- * </Button>
274
- * </Dialog.Footer>
275
- * </Dialog.Content>
276
- * </Dialog.Root>
277
- * ```
278
- */
279
- readonly Footer: {
280
- ({
281
- className,
282
- ...props
283
- }: ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
284
- displayName: string;
285
- };
286
- /**
287
- * Contains the header content of the dialog, including the title and close button.
288
- *
289
- * @see https://mantle.ngrok.com/components/dialog#dialogheader
290
- *
291
- * @example
292
- * ```tsx
293
- * <Dialog.Root>
294
- * <Dialog.Trigger asChild>
295
- * <Button type="button" appearance="outlined">
296
- * Open Dialog
297
- * </Button>
298
- * </Dialog.Trigger>
299
- * <Dialog.Content>
300
- * <Dialog.Header>
301
- * <Dialog.Title>Dialog Title</Dialog.Title>
302
- * <Dialog.CloseIconButton />
303
- * </Dialog.Header>
304
- * <Dialog.Body>
305
- * <p>This is the dialog content.</p>
306
- * </Dialog.Body>
307
- * </Dialog.Content>
308
- * </Dialog.Root>
309
- * ```
310
- */
311
- readonly Header: {
312
- ({
313
- className,
314
- children,
315
- ...props
316
- }: ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
317
- displayName: string;
318
- };
319
- /**
320
- * The overlay backdrop for the dialog.
321
- *
322
- * @see https://mantle.ngrok.com/components/dialog#api-reference
323
- *
324
- * @example
325
- * ```tsx
326
- * <Dialog.Root>
327
- * <Dialog.Portal>
328
- * <Dialog.Overlay />
329
- * <Dialog.Content>
330
- * <Dialog.Header>
331
- * <Dialog.Title>Dialog Title</Dialog.Title>
332
- * </Dialog.Header>
333
- * <Dialog.Body>
334
- * <Text>Dialog content here.</Text>
335
- * </Dialog.Body>
336
- * </Dialog.Content>
337
- * </Dialog.Portal>
338
- * </Dialog.Root>
339
- * ```
340
- */
341
- readonly Overlay: react.ForwardRefExoticComponent<Omit<Omit<_radix_ui_react_dialog0.DialogOverlayProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
342
- /**
343
- * The portal container for the dialog.
344
- *
345
- * @see https://mantle.ngrok.com/components/dialog#api-reference
346
- *
347
- * @example
348
- * ```tsx
349
- * <Dialog.Root>
350
- * <Dialog.Trigger asChild>
351
- * <Button type="button">Open Dialog</Button>
352
- * </Dialog.Trigger>
353
- * <Dialog.Portal>
354
- * <Dialog.Overlay />
355
- * <Dialog.Content>
356
- * <Dialog.Header>
357
- * <Dialog.Title>Portal Dialog</Dialog.Title>
358
- * </Dialog.Header>
359
- * <Dialog.Body>
360
- * <Text>This dialog is rendered in a portal.</Text>
361
- * </Dialog.Body>
362
- * </Dialog.Content>
363
- * </Dialog.Portal>
364
- * </Dialog.Root>
365
- * ```
366
- */
367
- readonly Portal: react.FC<_radix_ui_react_dialog0.DialogPortalProps>;
368
- /**
369
- * An accessible name to be announced when the dialog is opened.
370
- *
371
- * @see https://mantle.ngrok.com/components/dialog#dialogtitle
372
- *
373
- * @example
374
- * ```tsx
375
- * <Dialog.Root>
376
- * <Dialog.Trigger asChild>
377
- * <Button type="button" appearance="outlined">
378
- * Open Dialog
379
- * </Button>
380
- * </Dialog.Trigger>
381
- * <Dialog.Content>
382
- * <Dialog.Header>
383
- * <Dialog.Title>Dialog Title</Dialog.Title>
384
- * <Dialog.CloseIconButton />
385
- * </Dialog.Header>
386
- * <Dialog.Body>
387
- * <p>This is the dialog content.</p>
388
- * </Dialog.Body>
389
- * </Dialog.Content>
390
- * </Dialog.Root>
391
- * ```
392
- */
393
- readonly Title: react.ForwardRefExoticComponent<Omit<_radix_ui_react_dialog0.DialogTitleProps & react.RefAttributes<HTMLHeadingElement>, "ref"> & react.RefAttributes<HTMLHeadingElement>>;
394
- /**
395
- * A button that opens the dialog.
396
- *
397
- * @see https://mantle.ngrok.com/components/dialog#dialogtrigger
398
- *
399
- * @example
400
- * ```tsx
401
- * <Dialog.Root>
402
- * <Dialog.Trigger asChild>
403
- * <Button type="button" appearance="outlined">
404
- * Open Dialog
405
- * </Button>
406
- * </Dialog.Trigger>
407
- * <Dialog.Content>
408
- * <Dialog.Header>
409
- * <Dialog.Title>Dialog Title</Dialog.Title>
410
- * </Dialog.Header>
411
- * <Dialog.Body>
412
- * <p>This is the dialog content.</p>
413
- * </Dialog.Body>
414
- * </Dialog.Content>
415
- * </Dialog.Root>
416
- * ```
417
- */
418
- readonly Trigger: react.ForwardRefExoticComponent<_radix_ui_react_dialog0.DialogTriggerProps & react.RefAttributes<HTMLButtonElement>>;
419
- };
420
- //#endregion
421
- export { Dialog as t };
422
- //# sourceMappingURL=dialog-BuD_JQf_.d.ts.map