@ngrok/mantle 0.77.0 → 0.79.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/dist/accordion.d.ts +63 -21
- package/dist/accordion.js +1 -1
- package/dist/agent.json +4 -1
- package/dist/alert-dialog.d.ts +102 -70
- package/dist/alert-dialog.js +1 -1
- package/dist/alert.d.ts +39 -39
- package/dist/alert.js +1 -1
- package/dist/{anchor-BtgEJoPN.js → anchor-C_tjSVy6.js} +1 -1
- package/dist/anchor.d.ts +3 -4
- package/dist/anchor.js +1 -1
- package/dist/{as-child-uN_018tj.d.ts → as-child-CYEVu1WY.d.ts} +0 -7
- package/dist/badge.d.ts +5 -56
- package/dist/badge.js +1 -1
- package/dist/breadcrumb.d.ts +212 -0
- package/dist/breadcrumb.js +1 -0
- package/dist/browser-only.d.ts +2 -6
- package/dist/{button-CERx95KE.js → button-5t6-JS_I.js} +1 -1
- package/dist/button-ClC60Nzg.js +1 -0
- package/dist/button-DcXOWUYo.d.ts +131 -0
- package/dist/button.d.ts +6 -4
- package/dist/button.js +1 -1
- package/dist/calendar.d.ts +2 -8
- package/dist/calendar.js +1 -1
- package/dist/card.d.ts +8 -8
- package/dist/card.js +1 -1
- package/dist/centered-layout.d.ts +147 -0
- package/dist/centered-layout.js +1 -0
- package/dist/checkbox-DJ2xl7Rc.js +1 -0
- package/dist/checkbox.d.ts +9 -11
- package/dist/checkbox.js +1 -1
- package/dist/{choice-D6S38dPs.js → choice-DOdyNzFC.js} +1 -1
- package/dist/choice.d.ts +16 -14
- package/dist/choice.js +1 -1
- package/dist/code-block.d.ts +5 -17
- package/dist/code-block.js +1 -1
- package/dist/code-block_highlight-utils.d.ts +1 -1
- package/dist/code-block_highlight-utils.js +1 -1
- package/dist/code.d.ts +4 -5
- package/dist/code.js +1 -1
- package/dist/combobox.d.ts +40 -19
- package/dist/combobox.js +1 -1
- package/dist/command.d.ts +71 -49
- package/dist/command.js +1 -1
- package/dist/cx-IiQEAKf5.js +1 -0
- package/dist/cx.js +1 -1
- package/dist/data-slot-CChfb_cv.d.ts +17 -0
- package/dist/data-table.d.ts +77 -137
- package/dist/data-table.js +1 -1
- package/dist/description-list.d.ts +7 -7
- package/dist/description-list.js +1 -1
- package/dist/{dialog-uyJcNks7.js → dialog-ZCgG41hx.js} +1 -1
- package/dist/dialog.d.ts +213 -88
- package/dist/dialog.js +1 -1
- package/dist/{direction-CcTY0FmA.d.ts → direction-BjU0bPST.d.ts} +1 -1
- package/dist/{dropdown-menu-OEuW4GLp.js → dropdown-menu-ByUQkAvJ.js} +1 -1
- package/dist/{dropdown-menu-CADgs9gz.d.ts → dropdown-menu-DMNw8ItM.d.ts} +26 -27
- package/dist/dropdown-menu.d.ts +2 -1
- package/dist/dropdown-menu.js +1 -1
- package/dist/empty.d.ts +139 -59
- package/dist/empty.js +1 -1
- package/dist/{field-context-4k1kI7Bo.js → field-context-BR01g789.js} +1 -1
- package/dist/field.d.ts +41 -36
- package/dist/field.js +1 -1
- package/dist/flag.d.ts +2 -9
- package/dist/flag.js +1 -1
- package/dist/hooks.d.ts +13 -15
- package/dist/hooks.js +1 -1
- package/dist/hover-card.d.ts +42 -20
- package/dist/hover-card.js +1 -1
- package/dist/icon-CDtYjF_H.js +1 -0
- package/dist/{icon-n49kOh4_.d.ts → icon-Cevjo93X.d.ts} +2 -3
- package/dist/{icon-button-D7hs6bX2.d.ts → icon-button-B7uEj1qq.d.ts} +73 -11
- package/dist/icon-button-DV2-GZHf.js +1 -0
- package/dist/icon.d.ts +3 -3
- package/dist/icon.js +1 -1
- package/dist/icons.d.ts +7 -19
- package/dist/icons.js +1 -1
- package/dist/{in-view-bItE1fkG.d.ts → in-view-nkSOdED2.d.ts} +1 -6
- package/dist/{index-CTU6apE6.d.ts → index-BivvYYs-.d.ts} +8 -7
- package/dist/{index-Bed_XLWa.d.ts → index-D47aqlpz.d.ts} +3 -2
- package/dist/index-DZRbVkZa.d.ts +1 -0
- package/dist/index-Rv8RL7xy.d.ts +25 -0
- package/dist/{input-B3TS9yAP.js → input-Ct1YOqSy.js} +1 -1
- package/dist/input.d.ts +10 -11
- package/dist/input.js +1 -1
- package/dist/intents-DdSKSj1c.d.ts +28 -0
- package/dist/{kbd-D6k4Dnrf.js → kbd-K8iaZ-Ti.js} +1 -1
- package/dist/kbd.d.ts +3 -8
- package/dist/kbd.js +1 -1
- package/dist/{label-BLXfnQmn.js → label-BMlHW_2D.js} +1 -1
- package/dist/{label-PY0qM0G5.d.ts → label-v2-bv98k.d.ts} +1 -1
- package/dist/label.d.ts +1 -1
- package/dist/label.js +1 -1
- package/dist/list.d.ts +18 -60
- package/dist/list.js +1 -1
- package/dist/llms.txt +4 -1
- package/dist/main.d.ts +4 -27
- package/dist/main.js +1 -1
- package/dist/mantle.css +6 -6
- package/dist/media-object.d.ts +6 -7
- package/dist/media-object.js +1 -1
- package/dist/multi-select.d.ts +80 -33
- package/dist/multi-select.js +1 -1
- package/dist/otp-input.d.ts +7 -8
- package/dist/otp-input.js +1 -1
- package/dist/pagination.d.ts +11 -22
- package/dist/pagination.js +1 -1
- package/dist/{popover-Bq52EC7X.js → popover-D5WxxnBY.js} +1 -1
- package/dist/popover.d.ts +17 -18
- package/dist/popover.js +1 -1
- package/dist/{primitive-FoWela9a.d.ts → primitive-C64-m48O.d.ts} +0 -1
- package/dist/{primitive-BuVqb6zf.js → primitive-M-kZdNIS.js} +1 -1
- package/dist/progress.d.ts +55 -46
- package/dist/progress.js +1 -1
- package/dist/qr-code.d.ts +10 -9
- package/dist/qr-code.js +1 -1
- package/dist/radio-group.d.ts +71 -60
- package/dist/radio-group.js +1 -1
- package/dist/{resolve-pre-rendered-props-DxJ9-DAl.d.ts → resolve-pre-rendered-props-B6OlZrSI.d.ts} +13 -26
- package/dist/{resolve-pre-rendered-props-DwIF_M_K.js → resolve-pre-rendered-props-C3e5Auo3.js} +1 -1
- package/dist/sandboxed-on-click.d.ts +4 -8
- package/dist/sandboxed-on-click.js +1 -1
- package/dist/{select-BUGOJMER.d.ts → select-Bwt2YduR.d.ts} +11 -12
- package/dist/{select-Bxq_N-_o.js → select-D-5u0Blc.js} +1 -1
- package/dist/select.d.ts +1 -1
- package/dist/select.js +1 -1
- package/dist/selectable-list.d.ts +160 -146
- package/dist/selectable-list.js +1 -1
- package/dist/{separator-CqohKk4z.js → separator-kBnnv3Cw.js} +1 -1
- package/dist/separator.d.ts +6 -37
- package/dist/separator.js +1 -1
- package/dist/sheet.d.ts +302 -89
- package/dist/sheet.js +1 -1
- package/dist/sizes-BCoI4bhP.d.ts +29 -0
- package/dist/skeleton-Bu3tgNcW.js +1 -0
- package/dist/skeleton.d.ts +2 -2
- package/dist/skeleton.js +1 -1
- package/dist/skip-to-main-link.d.ts +4 -34
- package/dist/skip-to-main-link.js +1 -1
- package/dist/slider.d.ts +2 -21
- package/dist/slider.js +1 -1
- package/dist/slot-DmPrjM7N.js +1 -0
- package/dist/slot.d.ts +1 -1
- package/dist/slot.js +1 -1
- package/dist/split-button.d.ts +21 -13
- package/dist/split-button.js +1 -1
- package/dist/{svg-only-f6ToFLH0.d.ts → svg-only-BFeFS1aa.d.ts} +2 -3
- package/dist/{svg-only-CSOaF1tL.js → svg-only-DDx6FtJd.js} +1 -1
- package/dist/switch.d.ts +4 -5
- package/dist/switch.js +1 -1
- package/dist/{table-CAitdL78.js → table-CPH2md2-.js} +1 -1
- package/dist/{table-BWD9IlIN.d.ts → table-CwFHXC-G.d.ts} +10 -10
- package/dist/table.d.ts +1 -1
- package/dist/table.js +1 -1
- package/dist/tabs.d.ts +29 -15
- package/dist/tabs.js +1 -1
- package/dist/text-area.d.ts +2 -3
- package/dist/text-area.js +1 -1
- package/dist/theme-D8kZCOzM.js +1 -0
- package/dist/theme-provider-Djj_jBo6.js +1 -0
- package/dist/theme-switcher.d.ts +53 -0
- package/dist/theme-switcher.js +1 -0
- package/dist/theme.d.ts +15 -101
- package/dist/theme.js +1 -1
- package/dist/toast-D3ntBmn4.js +1 -0
- package/dist/toast.d.ts +32 -50
- package/dist/toast.js +1 -1
- package/dist/tooltip.d.ts +16 -50
- package/dist/tooltip.js +1 -1
- package/dist/{types-CTam1uIW.d.ts → types-C19IR7jf.d.ts} +1 -0
- package/dist/{types-BvUzforF.d.ts → types-D1RY5Tcj.d.ts} +0 -1
- package/dist/types.d.ts +3 -3
- package/dist/use-prefers-reduced-motion-CagaNRgm.js +1 -0
- package/dist/utils.d.ts +2 -3
- package/dist/{validation-xyX_6kph.d.ts → validation-7QeiTFwl.d.ts} +3 -12
- package/dist/{validation-DCyx-ceH.js → validation-Bpptk_9t.js} +1 -1
- package/dist/{virtual-PBNiHjMK.js → virtual-DZMBu7Ch.js} +1 -1
- package/dist/well.d.ts +3 -3
- package/dist/well.js +1 -1
- package/dist/{with-style-props-CyImx7vd.d.ts → with-style-props-Dq5Vntqy.d.ts} +0 -1
- package/package.json +17 -14
- package/dist/button-C9GW9nAr.js +0 -1
- package/dist/button-mfYak6Rx.d.ts +0 -71
- package/dist/checkbox-Apow0ipK.js +0 -1
- package/dist/cx-C1UYP5We.js +0 -1
- package/dist/icon-SUx16Sl3.js +0 -1
- package/dist/icon-button-DiX9iZ9n.js +0 -1
- package/dist/index-CJbKEKr2.d.ts +0 -20
- package/dist/slot-DT_E5BQx.js +0 -1
- package/dist/theme-provider-C5XYi2-H.js +0 -1
- package/dist/toast-CZBWjXcP.js +0 -1
- package/dist/use-prefers-reduced-motion-DBqNw1wB.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as WithAsChild } from "./as-child-
|
|
1
|
+
import { t as WithAsChild } from "./as-child-CYEVu1WY.js";
|
|
2
|
+
import "./index-D47aqlpz.js";
|
|
2
3
|
import { ComponentProps } from "react";
|
|
3
|
-
|
|
4
4
|
//#region src/components/description-list/description-list.d.ts
|
|
5
5
|
type DescriptionListProps = ComponentProps<"dl"> & WithAsChild;
|
|
6
6
|
type DescriptionListItemProps = ComponentProps<"div"> & WithAsChild;
|
|
@@ -15,7 +15,7 @@ type DescriptionListValueProps = ComponentProps<"dd"> & WithAsChild;
|
|
|
15
15
|
* Compose with `DescriptionList.Item`, `DescriptionList.Label`, and
|
|
16
16
|
* `DescriptionList.Value` as direct children.
|
|
17
17
|
*
|
|
18
|
-
* @see https://mantle.ngrok.com/components/description-list
|
|
18
|
+
* @see https://mantle.ngrok.com/components/data-display/description-list
|
|
19
19
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dl
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
@@ -47,7 +47,7 @@ declare const DescriptionList: {
|
|
|
47
47
|
/**
|
|
48
48
|
* The root container for a description list. Renders a `<dl>` element.
|
|
49
49
|
*
|
|
50
|
-
* @see https://mantle.ngrok.com/components/description-list#descriptionlistroot
|
|
50
|
+
* @see https://mantle.ngrok.com/components/data-display/description-list#descriptionlistroot
|
|
51
51
|
*
|
|
52
52
|
* @example
|
|
53
53
|
* ```tsx
|
|
@@ -64,7 +64,7 @@ declare const DescriptionList: {
|
|
|
64
64
|
* A wrapper that groups a label/value pair. Renders a `<div>` with a default
|
|
65
65
|
* subgrid layout.
|
|
66
66
|
*
|
|
67
|
-
* @see https://mantle.ngrok.com/components/description-list#descriptionlistitem
|
|
67
|
+
* @see https://mantle.ngrok.com/components/data-display/description-list#descriptionlistitem
|
|
68
68
|
*
|
|
69
69
|
* @example
|
|
70
70
|
* ```tsx
|
|
@@ -78,7 +78,7 @@ declare const DescriptionList: {
|
|
|
78
78
|
/**
|
|
79
79
|
* The label for a description list item. Renders a `<dt>` element.
|
|
80
80
|
*
|
|
81
|
-
* @see https://mantle.ngrok.com/components/description-list#descriptionlistlabel
|
|
81
|
+
* @see https://mantle.ngrok.com/components/data-display/description-list#descriptionlistlabel
|
|
82
82
|
*
|
|
83
83
|
* @example
|
|
84
84
|
* ```tsx
|
|
@@ -89,7 +89,7 @@ declare const DescriptionList: {
|
|
|
89
89
|
/**
|
|
90
90
|
* The value for a description list item. Renders a `<dd>` element.
|
|
91
91
|
*
|
|
92
|
-
* @see https://mantle.ngrok.com/components/description-list#descriptionlistvalue
|
|
92
|
+
* @see https://mantle.ngrok.com/components/data-display/description-list#descriptionlistvalue
|
|
93
93
|
*
|
|
94
94
|
* @example
|
|
95
95
|
* ```tsx
|
package/dist/description-list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./cx-
|
|
1
|
+
import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./slot-DmPrjM7N.js";import{forwardRef as n}from"react";import{jsx as r}from"react/jsx-runtime";const i=n(({asChild:n=!1,className:i,children:a,...o},s)=>r(n?t:`dl`,{ref:s,"data-slot":`description-list`,className:e(`relative scrollbar overflow-x-auto overscroll-x-none rounded-lg border border-card grid grid-cols-[auto_1fr] gap-x-4 [&>*:nth-child(odd)]:bg-neutral-500/5 p-1`,i),...o,children:a}));i.displayName=`DescriptionList`;const a=n(({asChild:n=!1,className:i,children:a,...o},s)=>r(n?t:`div`,{ref:s,"data-slot":`description-list-item`,className:e(`rounded-sm col-span-full grid grid-cols-subgrid items-center`,i),...o,children:a}));a.displayName=`DescriptionListItem`;const o=n(({asChild:n=!1,className:i,children:a,...o},s)=>r(n?t:`dt`,{ref:s,"data-slot":`description-list-label`,className:e(`text-muted text-sm font-sans font-medium min-w-36 p-2`,i),...o,children:a}));o.displayName=`DescriptionListLabel`;const s=n(({asChild:n=!1,className:i,children:a,...o},s)=>r(n?t:`dd`,{ref:s,"data-slot":`description-list-value`,className:e(`text-body font-mono text-mono py-2 px-3`,i),...o,children:a}));s.displayName=`DescriptionListValue`;const c={Root:i,Item:a,Label:o,Value:s};export{c as DescriptionList};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./cx-
|
|
1
|
+
import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./icon-button-DV2-GZHf.js";import{a as n,c as r,i,n as a,o,r as s,s as c,t as l}from"./primitive-M-kZdNIS.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";const m=o;m.displayName=`Dialog`;const h=u((e,t)=>d(r,{ref:t,"data-slot":`dialog-trigger`,...e}));h.displayName=`DialogTrigger`;const g=n;g.displayName=`DialogPortal`;const _=u((e,t)=>d(l,{ref:t,"data-slot":`dialog-close`,...e}));_.displayName=`DialogClose`;const v=u(({className:t,...n},r)=>d(i,{ref:r,"data-slot":`dialog-overlay`,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-50 backdrop-blur-xs`,t),...n}));v.displayName=`DialogOverlay`;const y=u(({children:t,className:n,preferredWidth:r=`max-w-lg`,...i},o)=>f(g,{children:[d(v,{}),d(`div`,{className:`fixed inset-4 z-50 flex items-center justify-center`,children:d(a,{"data-mantle-modal-content":!0,"data-slot":`dialog-content`,className:e(`flex max-h-full w-full flex-1 flex-col`,`outline-hidden focus-within:outline-hidden`,`border-dialog bg-dialog rounded-xl border shadow-lg transition-transform duration-200`,`data-state-closed:animate-out data-state-closed:fade-out-0 data-state-closed:zoom-out-95 data-state-open:animate-in data-state-open:fade-in-0 data-state-open:zoom-in-95`,r,n),ref:o,...i,children:t})})]}));y.displayName=`DialogContent`;const b=({className:t,children:n,...r})=>d(`div`,{"data-slot":`dialog-header`,className:e(`border-dialog-muted text-strong relative flex shrink-0 items-center justify-between gap-2 border-b px-6 py-4`,`has-[.icon-button]:pr-4`,t),...r,children:n});b.displayName=`DialogHeader`;const x=({size:e=`md`,type:n=`button`,label:r=`Close Dialog`,appearance:i=`ghost`,intent:a=`neutral`,...o})=>d(l,{asChild:!0,children:d(t,{appearance:i,"data-slot":`dialog-close-icon-button`,icon:d(p,{}),intent:a,label:r,size:e,type:n,...o})});x.displayName=`DialogCloseIconButton`;const S=({className:t,...n})=>d(`div`,{"data-slot":`dialog-body`,className:e(`scrollbar scrollbar-gutter-stable text-body flex-1 overflow-y-auto p-6`,t),...n});S.displayName=`DialogBody`;const C=({className:t,...n})=>d(`div`,{"data-slot":`dialog-footer`,className:e(`border-dialog-muted flex shrink-0 justify-end gap-2 border-t px-6 py-4`,t),...n});C.displayName=`DialogFooter`;const w=u(({className:t,...n},r)=>d(c,{ref:r,"data-slot":`dialog-title`,className:e(`text-strong truncate text-lg font-medium`,t),...n}));w.displayName=`DialogTitle`;const T=u(({className:t,...n},r)=>d(s,{ref:r,"data-slot":`dialog-description`,className:e(`text-muted`,t),...n}));T.displayName=`DialogDescription`;const E={Root:m,Body:S,Close:_,CloseIconButton:x,Content:y,Description:T,Footer:C,Header:b,Overlay:v,Portal:g,Title:w,Trigger:h};export{E as t};
|
package/dist/dialog.d.ts
CHANGED
|
@@ -1,9 +1,162 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as
|
|
1
|
+
import { t as ButtonIntent } from "./intents-DdSKSj1c.js";
|
|
2
|
+
import { n as isDialogOverlayTarget, t as Root } from "./primitive-C64-m48O.js";
|
|
3
|
+
import { n as IconButtonAppearance, r as IconButtonProps } from "./icon-button-B7uEj1qq.js";
|
|
3
4
|
import { ComponentProps } from "react";
|
|
4
|
-
|
|
5
5
|
//#region src/components/dialog/dialog.d.ts
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Contains the header content of the dialog, including the title and close button.
|
|
8
|
+
*
|
|
9
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog#dialogheader
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* <Dialog.Root>
|
|
14
|
+
* <Dialog.Trigger asChild>
|
|
15
|
+
* <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
|
|
16
|
+
* </Dialog.Trigger>
|
|
17
|
+
* <Dialog.Content>
|
|
18
|
+
* <Dialog.Header>
|
|
19
|
+
* <Dialog.Title>Dialog Title</Dialog.Title>
|
|
20
|
+
* <Dialog.Description>This is an optional description.</Dialog.Description>
|
|
21
|
+
* <Dialog.CloseIconButton />
|
|
22
|
+
* </Dialog.Header>
|
|
23
|
+
* <Dialog.Body>
|
|
24
|
+
* <p>This is the dialog content.</p>
|
|
25
|
+
* </Dialog.Body>
|
|
26
|
+
* <Dialog.Footer>
|
|
27
|
+
* <Dialog.Close asChild>
|
|
28
|
+
* <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
|
|
29
|
+
* </Dialog.Close>
|
|
30
|
+
* <Button type="button" appearance="filled" intent="neutral">Save</Button>
|
|
31
|
+
* </Dialog.Footer>
|
|
32
|
+
* </Dialog.Content>
|
|
33
|
+
* </Dialog.Root>
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
declare const Header: {
|
|
37
|
+
({ className, children, ...props }: ComponentProps<"div">): import("react").JSX.Element;
|
|
38
|
+
displayName: string;
|
|
39
|
+
};
|
|
40
|
+
type CloseIconButtonProps = Partial<Omit<IconButtonProps, "appearance" | "icon" | "intent">> & {
|
|
41
|
+
/**
|
|
42
|
+
* The visual style of the close icon button. Optional here —
|
|
43
|
+
* `Dialog.CloseIconButton` defaults to `"ghost"` so the close affordance
|
|
44
|
+
* stays visually quiet in the dialog header.
|
|
45
|
+
*
|
|
46
|
+
* @default "ghost"
|
|
47
|
+
*/
|
|
48
|
+
appearance?: IconButtonAppearance;
|
|
49
|
+
/**
|
|
50
|
+
* The tone of the close icon button. Optional here —
|
|
51
|
+
* `Dialog.CloseIconButton` defaults to `"neutral"`, the workhorse tone for
|
|
52
|
+
* routine actions like dismissing a dialog.
|
|
53
|
+
*
|
|
54
|
+
* @default "neutral"
|
|
55
|
+
*/
|
|
56
|
+
intent?: ButtonIntent;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* An icon button that closes the dialog when clicked.
|
|
60
|
+
*
|
|
61
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog#dialogcloseiconbutton
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```tsx
|
|
65
|
+
* <Dialog.Root>
|
|
66
|
+
* <Dialog.Trigger asChild>
|
|
67
|
+
* <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
|
|
68
|
+
* </Dialog.Trigger>
|
|
69
|
+
* <Dialog.Content>
|
|
70
|
+
* <Dialog.Header>
|
|
71
|
+
* <Dialog.Title>Dialog Title</Dialog.Title>
|
|
72
|
+
* <Dialog.Description>This is an optional description.</Dialog.Description>
|
|
73
|
+
* <Dialog.CloseIconButton />
|
|
74
|
+
* </Dialog.Header>
|
|
75
|
+
* <Dialog.Body>
|
|
76
|
+
* <p>This is the dialog content.</p>
|
|
77
|
+
* </Dialog.Body>
|
|
78
|
+
* <Dialog.Footer>
|
|
79
|
+
* <Dialog.Close asChild>
|
|
80
|
+
* <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
|
|
81
|
+
* </Dialog.Close>
|
|
82
|
+
* <Button type="button" appearance="filled" intent="neutral">Save</Button>
|
|
83
|
+
* </Dialog.Footer>
|
|
84
|
+
* </Dialog.Content>
|
|
85
|
+
* </Dialog.Root>
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
declare const CloseIconButton: {
|
|
89
|
+
({ size, type, label, appearance, intent, ...props }: CloseIconButtonProps): import("react").JSX.Element;
|
|
90
|
+
displayName: string;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* Contains the main content of the dialog.
|
|
94
|
+
*
|
|
95
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog#dialogbody
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* ```tsx
|
|
99
|
+
* <Dialog.Root>
|
|
100
|
+
* <Dialog.Trigger asChild>
|
|
101
|
+
* <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
|
|
102
|
+
* </Dialog.Trigger>
|
|
103
|
+
* <Dialog.Content>
|
|
104
|
+
* <Dialog.Header>
|
|
105
|
+
* <Dialog.Title>Dialog Title</Dialog.Title>
|
|
106
|
+
* <Dialog.Description>This is an optional description.</Dialog.Description>
|
|
107
|
+
* <Dialog.CloseIconButton />
|
|
108
|
+
* </Dialog.Header>
|
|
109
|
+
* <Dialog.Body>
|
|
110
|
+
* <p>This is the dialog content.</p>
|
|
111
|
+
* </Dialog.Body>
|
|
112
|
+
* <Dialog.Footer>
|
|
113
|
+
* <Dialog.Close asChild>
|
|
114
|
+
* <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
|
|
115
|
+
* </Dialog.Close>
|
|
116
|
+
* <Button type="button" appearance="filled" intent="neutral">Save</Button>
|
|
117
|
+
* </Dialog.Footer>
|
|
118
|
+
* </Dialog.Content>
|
|
119
|
+
* </Dialog.Root>
|
|
120
|
+
* ```
|
|
121
|
+
*/
|
|
122
|
+
declare const Body: {
|
|
123
|
+
({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
|
|
124
|
+
displayName: string;
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* Contains the footer content of the dialog, including action buttons.
|
|
128
|
+
*
|
|
129
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog#dialogfooter
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* ```tsx
|
|
133
|
+
* <Dialog.Root>
|
|
134
|
+
* <Dialog.Trigger asChild>
|
|
135
|
+
* <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
|
|
136
|
+
* </Dialog.Trigger>
|
|
137
|
+
* <Dialog.Content>
|
|
138
|
+
* <Dialog.Header>
|
|
139
|
+
* <Dialog.Title>Dialog Title</Dialog.Title>
|
|
140
|
+
* <Dialog.Description>This is an optional description.</Dialog.Description>
|
|
141
|
+
* <Dialog.CloseIconButton />
|
|
142
|
+
* </Dialog.Header>
|
|
143
|
+
* <Dialog.Body>
|
|
144
|
+
* <p>This is the dialog content.</p>
|
|
145
|
+
* </Dialog.Body>
|
|
146
|
+
* <Dialog.Footer>
|
|
147
|
+
* <Dialog.Close asChild>
|
|
148
|
+
* <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
|
|
149
|
+
* </Dialog.Close>
|
|
150
|
+
* <Button type="button" appearance="filled" intent="neutral">Save</Button>
|
|
151
|
+
* </Dialog.Footer>
|
|
152
|
+
* </Dialog.Content>
|
|
153
|
+
* </Dialog.Root>
|
|
154
|
+
* ```
|
|
155
|
+
*/
|
|
156
|
+
declare const Footer: {
|
|
157
|
+
({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
|
|
158
|
+
displayName: string;
|
|
159
|
+
};
|
|
7
160
|
/**
|
|
8
161
|
* A window overlaid on either the primary window or another dialog window. Use
|
|
9
162
|
* Dialog for a focused modal that interrupts the user to gather input or
|
|
@@ -16,7 +169,7 @@ type CloseIconButtonProps = Partial<Omit<IconButtonProps, "icon">>;
|
|
|
16
169
|
* floating z-index. When multiple shared layers are open, the most recently
|
|
17
170
|
* mounted layer renders on top.
|
|
18
171
|
*
|
|
19
|
-
* @see https://mantle.ngrok.com/components/dialog
|
|
172
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog
|
|
20
173
|
*
|
|
21
174
|
* @example
|
|
22
175
|
* Composition:
|
|
@@ -37,7 +190,7 @@ type CloseIconButtonProps = Partial<Omit<IconButtonProps, "icon">>;
|
|
|
37
190
|
* ```tsx
|
|
38
191
|
* <Dialog.Root>
|
|
39
192
|
* <Dialog.Trigger asChild>
|
|
40
|
-
* <Button type="button" appearance="
|
|
193
|
+
* <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
|
|
41
194
|
* </Dialog.Trigger>
|
|
42
195
|
* <Dialog.Content>
|
|
43
196
|
* <Dialog.Header>
|
|
@@ -50,9 +203,9 @@ type CloseIconButtonProps = Partial<Omit<IconButtonProps, "icon">>;
|
|
|
50
203
|
* </Dialog.Body>
|
|
51
204
|
* <Dialog.Footer>
|
|
52
205
|
* <Dialog.Close asChild>
|
|
53
|
-
* <Button type="button" appearance="outlined">Cancel</Button>
|
|
206
|
+
* <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
|
|
54
207
|
* </Dialog.Close>
|
|
55
|
-
* <Button type="button" appearance="filled">Save</Button>
|
|
208
|
+
* <Button type="button" appearance="filled" intent="neutral">Save</Button>
|
|
56
209
|
* </Dialog.Footer>
|
|
57
210
|
* </Dialog.Content>
|
|
58
211
|
* </Dialog.Root>
|
|
@@ -67,13 +220,13 @@ declare const Dialog: {
|
|
|
67
220
|
* floating z-index. When multiple shared layers are open, the most recently
|
|
68
221
|
* mounted layer renders on top.
|
|
69
222
|
*
|
|
70
|
-
* @see https://mantle.ngrok.com/components/dialog#dialogroot
|
|
223
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog#dialogroot
|
|
71
224
|
*
|
|
72
225
|
* @example
|
|
73
226
|
* ```tsx
|
|
74
227
|
* <Dialog.Root>
|
|
75
228
|
* <Dialog.Trigger asChild>
|
|
76
|
-
* <Button type="button" appearance="
|
|
229
|
+
* <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
|
|
77
230
|
* </Dialog.Trigger>
|
|
78
231
|
* <Dialog.Content>
|
|
79
232
|
* <Dialog.Header>
|
|
@@ -86,9 +239,9 @@ declare const Dialog: {
|
|
|
86
239
|
* </Dialog.Body>
|
|
87
240
|
* <Dialog.Footer>
|
|
88
241
|
* <Dialog.Close asChild>
|
|
89
|
-
* <Button type="button" appearance="outlined">Cancel</Button>
|
|
242
|
+
* <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
|
|
90
243
|
* </Dialog.Close>
|
|
91
|
-
* <Button type="button" appearance="filled">Save</Button>
|
|
244
|
+
* <Button type="button" appearance="filled" intent="neutral">Save</Button>
|
|
92
245
|
* </Dialog.Footer>
|
|
93
246
|
* </Dialog.Content>
|
|
94
247
|
* </Dialog.Root>
|
|
@@ -98,13 +251,13 @@ declare const Dialog: {
|
|
|
98
251
|
/**
|
|
99
252
|
* Contains the main content of the dialog.
|
|
100
253
|
*
|
|
101
|
-
* @see https://mantle.ngrok.com/components/dialog#dialogbody
|
|
254
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog#dialogbody
|
|
102
255
|
*
|
|
103
256
|
* @example
|
|
104
257
|
* ```tsx
|
|
105
258
|
* <Dialog.Root>
|
|
106
259
|
* <Dialog.Trigger asChild>
|
|
107
|
-
* <Button type="button" appearance="
|
|
260
|
+
* <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
|
|
108
261
|
* </Dialog.Trigger>
|
|
109
262
|
* <Dialog.Content>
|
|
110
263
|
* <Dialog.Header>
|
|
@@ -117,31 +270,25 @@ declare const Dialog: {
|
|
|
117
270
|
* </Dialog.Body>
|
|
118
271
|
* <Dialog.Footer>
|
|
119
272
|
* <Dialog.Close asChild>
|
|
120
|
-
* <Button type="button" appearance="outlined">Cancel</Button>
|
|
273
|
+
* <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
|
|
121
274
|
* </Dialog.Close>
|
|
122
|
-
* <Button type="button" appearance="filled">Save</Button>
|
|
275
|
+
* <Button type="button" appearance="filled" intent="neutral">Save</Button>
|
|
123
276
|
* </Dialog.Footer>
|
|
124
277
|
* </Dialog.Content>
|
|
125
278
|
* </Dialog.Root>
|
|
126
279
|
* ```
|
|
127
280
|
*/
|
|
128
|
-
readonly Body:
|
|
129
|
-
({
|
|
130
|
-
className,
|
|
131
|
-
...props
|
|
132
|
-
}: ComponentProps<"div">): import("react").JSX.Element;
|
|
133
|
-
displayName: string;
|
|
134
|
-
};
|
|
281
|
+
readonly Body: typeof Body;
|
|
135
282
|
/**
|
|
136
283
|
* A button that closes the dialog when clicked.
|
|
137
284
|
*
|
|
138
|
-
* @see https://mantle.ngrok.com/components/dialog#dialogclose
|
|
285
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog#dialogclose
|
|
139
286
|
*
|
|
140
287
|
* @example
|
|
141
288
|
* ```tsx
|
|
142
289
|
* <Dialog.Root>
|
|
143
290
|
* <Dialog.Trigger asChild>
|
|
144
|
-
* <Button type="button" appearance="
|
|
291
|
+
* <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
|
|
145
292
|
* </Dialog.Trigger>
|
|
146
293
|
* <Dialog.Content>
|
|
147
294
|
* <Dialog.Header>
|
|
@@ -154,9 +301,9 @@ declare const Dialog: {
|
|
|
154
301
|
* </Dialog.Body>
|
|
155
302
|
* <Dialog.Footer>
|
|
156
303
|
* <Dialog.Close asChild>
|
|
157
|
-
* <Button type="button" appearance="outlined">Cancel</Button>
|
|
304
|
+
* <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
|
|
158
305
|
* </Dialog.Close>
|
|
159
|
-
* <Button type="button" appearance="filled">Save</Button>
|
|
306
|
+
* <Button type="button" appearance="filled" intent="neutral">Save</Button>
|
|
160
307
|
* </Dialog.Footer>
|
|
161
308
|
* </Dialog.Content>
|
|
162
309
|
* </Dialog.Root>
|
|
@@ -166,13 +313,13 @@ declare const Dialog: {
|
|
|
166
313
|
/**
|
|
167
314
|
* An icon button that closes the dialog when clicked.
|
|
168
315
|
*
|
|
169
|
-
* @see https://mantle.ngrok.com/components/dialog#dialogcloseiconbutton
|
|
316
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog#dialogcloseiconbutton
|
|
170
317
|
*
|
|
171
318
|
* @example
|
|
172
319
|
* ```tsx
|
|
173
320
|
* <Dialog.Root>
|
|
174
321
|
* <Dialog.Trigger asChild>
|
|
175
|
-
* <Button type="button" appearance="
|
|
322
|
+
* <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
|
|
176
323
|
* </Dialog.Trigger>
|
|
177
324
|
* <Dialog.Content>
|
|
178
325
|
* <Dialog.Header>
|
|
@@ -185,24 +332,15 @@ declare const Dialog: {
|
|
|
185
332
|
* </Dialog.Body>
|
|
186
333
|
* <Dialog.Footer>
|
|
187
334
|
* <Dialog.Close asChild>
|
|
188
|
-
* <Button type="button" appearance="outlined">Cancel</Button>
|
|
335
|
+
* <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
|
|
189
336
|
* </Dialog.Close>
|
|
190
|
-
* <Button type="button" appearance="filled">Save</Button>
|
|
337
|
+
* <Button type="button" appearance="filled" intent="neutral">Save</Button>
|
|
191
338
|
* </Dialog.Footer>
|
|
192
339
|
* </Dialog.Content>
|
|
193
340
|
* </Dialog.Root>
|
|
194
341
|
* ```
|
|
195
342
|
*/
|
|
196
|
-
readonly CloseIconButton:
|
|
197
|
-
({
|
|
198
|
-
size,
|
|
199
|
-
type,
|
|
200
|
-
label,
|
|
201
|
-
appearance,
|
|
202
|
-
...props
|
|
203
|
-
}: CloseIconButtonProps): import("react").JSX.Element;
|
|
204
|
-
displayName: string;
|
|
205
|
-
};
|
|
343
|
+
readonly CloseIconButton: typeof CloseIconButton;
|
|
206
344
|
/**
|
|
207
345
|
* The container for the dialog content.
|
|
208
346
|
* Renders on top of the overlay and is centered in the viewport.
|
|
@@ -211,13 +349,13 @@ declare const Dialog: {
|
|
|
211
349
|
* shared floating z-index. When multiple shared layers are open, the most
|
|
212
350
|
* recently mounted layer renders on top.
|
|
213
351
|
*
|
|
214
|
-
* @see https://mantle.ngrok.com/components/dialog#dialogcontent
|
|
352
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog#dialogcontent
|
|
215
353
|
*
|
|
216
354
|
* @example
|
|
217
355
|
* ```tsx
|
|
218
356
|
* <Dialog.Root>
|
|
219
357
|
* <Dialog.Trigger asChild>
|
|
220
|
-
* <Button type="button" appearance="
|
|
358
|
+
* <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
|
|
221
359
|
* </Dialog.Trigger>
|
|
222
360
|
* <Dialog.Content>
|
|
223
361
|
* <Dialog.Header>
|
|
@@ -230,9 +368,9 @@ declare const Dialog: {
|
|
|
230
368
|
* </Dialog.Body>
|
|
231
369
|
* <Dialog.Footer>
|
|
232
370
|
* <Dialog.Close asChild>
|
|
233
|
-
* <Button type="button" appearance="outlined">Cancel</Button>
|
|
371
|
+
* <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
|
|
234
372
|
* </Dialog.Close>
|
|
235
|
-
* <Button type="button" appearance="filled">Save</Button>
|
|
373
|
+
* <Button type="button" appearance="filled" intent="neutral">Save</Button>
|
|
236
374
|
* </Dialog.Footer>
|
|
237
375
|
* </Dialog.Content>
|
|
238
376
|
* </Dialog.Root>
|
|
@@ -252,13 +390,13 @@ declare const Dialog: {
|
|
|
252
390
|
/**
|
|
253
391
|
* An accessible description to be announced when the dialog is opened.
|
|
254
392
|
*
|
|
255
|
-
* @see https://mantle.ngrok.com/components/dialog#dialogdescription
|
|
393
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog#dialogdescription
|
|
256
394
|
*
|
|
257
395
|
* @example
|
|
258
396
|
* ```tsx
|
|
259
397
|
* <Dialog.Root>
|
|
260
398
|
* <Dialog.Trigger asChild>
|
|
261
|
-
* <Button type="button" appearance="
|
|
399
|
+
* <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
|
|
262
400
|
* </Dialog.Trigger>
|
|
263
401
|
* <Dialog.Content>
|
|
264
402
|
* <Dialog.Header>
|
|
@@ -271,9 +409,9 @@ declare const Dialog: {
|
|
|
271
409
|
* </Dialog.Body>
|
|
272
410
|
* <Dialog.Footer>
|
|
273
411
|
* <Dialog.Close asChild>
|
|
274
|
-
* <Button type="button" appearance="outlined">Cancel</Button>
|
|
412
|
+
* <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
|
|
275
413
|
* </Dialog.Close>
|
|
276
|
-
* <Button type="button" appearance="filled">Save</Button>
|
|
414
|
+
* <Button type="button" appearance="filled" intent="neutral">Save</Button>
|
|
277
415
|
* </Dialog.Footer>
|
|
278
416
|
* </Dialog.Content>
|
|
279
417
|
* </Dialog.Root>
|
|
@@ -283,13 +421,13 @@ declare const Dialog: {
|
|
|
283
421
|
/**
|
|
284
422
|
* Contains the footer content of the dialog, including action buttons.
|
|
285
423
|
*
|
|
286
|
-
* @see https://mantle.ngrok.com/components/dialog#dialogfooter
|
|
424
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog#dialogfooter
|
|
287
425
|
*
|
|
288
426
|
* @example
|
|
289
427
|
* ```tsx
|
|
290
428
|
* <Dialog.Root>
|
|
291
429
|
* <Dialog.Trigger asChild>
|
|
292
|
-
* <Button type="button" appearance="
|
|
430
|
+
* <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
|
|
293
431
|
* </Dialog.Trigger>
|
|
294
432
|
* <Dialog.Content>
|
|
295
433
|
* <Dialog.Header>
|
|
@@ -302,31 +440,25 @@ declare const Dialog: {
|
|
|
302
440
|
* </Dialog.Body>
|
|
303
441
|
* <Dialog.Footer>
|
|
304
442
|
* <Dialog.Close asChild>
|
|
305
|
-
* <Button type="button" appearance="outlined">Cancel</Button>
|
|
443
|
+
* <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
|
|
306
444
|
* </Dialog.Close>
|
|
307
|
-
* <Button type="button" appearance="filled">Save</Button>
|
|
445
|
+
* <Button type="button" appearance="filled" intent="neutral">Save</Button>
|
|
308
446
|
* </Dialog.Footer>
|
|
309
447
|
* </Dialog.Content>
|
|
310
448
|
* </Dialog.Root>
|
|
311
449
|
* ```
|
|
312
450
|
*/
|
|
313
|
-
readonly Footer:
|
|
314
|
-
({
|
|
315
|
-
className,
|
|
316
|
-
...props
|
|
317
|
-
}: ComponentProps<"div">): import("react").JSX.Element;
|
|
318
|
-
displayName: string;
|
|
319
|
-
};
|
|
451
|
+
readonly Footer: typeof Footer;
|
|
320
452
|
/**
|
|
321
453
|
* Contains the header content of the dialog, including the title and close button.
|
|
322
454
|
*
|
|
323
|
-
* @see https://mantle.ngrok.com/components/dialog#dialogheader
|
|
455
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog#dialogheader
|
|
324
456
|
*
|
|
325
457
|
* @example
|
|
326
458
|
* ```tsx
|
|
327
459
|
* <Dialog.Root>
|
|
328
460
|
* <Dialog.Trigger asChild>
|
|
329
|
-
* <Button type="button" appearance="
|
|
461
|
+
* <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
|
|
330
462
|
* </Dialog.Trigger>
|
|
331
463
|
* <Dialog.Content>
|
|
332
464
|
* <Dialog.Header>
|
|
@@ -339,32 +471,25 @@ declare const Dialog: {
|
|
|
339
471
|
* </Dialog.Body>
|
|
340
472
|
* <Dialog.Footer>
|
|
341
473
|
* <Dialog.Close asChild>
|
|
342
|
-
* <Button type="button" appearance="outlined">Cancel</Button>
|
|
474
|
+
* <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
|
|
343
475
|
* </Dialog.Close>
|
|
344
|
-
* <Button type="button" appearance="filled">Save</Button>
|
|
476
|
+
* <Button type="button" appearance="filled" intent="neutral">Save</Button>
|
|
345
477
|
* </Dialog.Footer>
|
|
346
478
|
* </Dialog.Content>
|
|
347
479
|
* </Dialog.Root>
|
|
348
480
|
* ```
|
|
349
481
|
*/
|
|
350
|
-
readonly Header:
|
|
351
|
-
({
|
|
352
|
-
className,
|
|
353
|
-
children,
|
|
354
|
-
...props
|
|
355
|
-
}: ComponentProps<"div">): import("react").JSX.Element;
|
|
356
|
-
displayName: string;
|
|
357
|
-
};
|
|
482
|
+
readonly Header: typeof Header;
|
|
358
483
|
/**
|
|
359
484
|
* The overlay backdrop for the dialog.
|
|
360
485
|
*
|
|
361
|
-
* @see https://mantle.ngrok.com/components/dialog#api-reference
|
|
486
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog#api-reference
|
|
362
487
|
*
|
|
363
488
|
* @example
|
|
364
489
|
* ```tsx
|
|
365
490
|
* <Dialog.Root>
|
|
366
491
|
* <Dialog.Trigger asChild>
|
|
367
|
-
* <Button type="button" appearance="
|
|
492
|
+
* <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
|
|
368
493
|
* </Dialog.Trigger>
|
|
369
494
|
* <Dialog.Portal>
|
|
370
495
|
* <Dialog.Overlay />
|
|
@@ -379,9 +504,9 @@ declare const Dialog: {
|
|
|
379
504
|
* </Dialog.Body>
|
|
380
505
|
* <Dialog.Footer>
|
|
381
506
|
* <Dialog.Close asChild>
|
|
382
|
-
* <Button type="button" appearance="outlined">Cancel</Button>
|
|
507
|
+
* <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
|
|
383
508
|
* </Dialog.Close>
|
|
384
|
-
* <Button type="button" appearance="filled">Save</Button>
|
|
509
|
+
* <Button type="button" appearance="filled" intent="neutral">Save</Button>
|
|
385
510
|
* </Dialog.Footer>
|
|
386
511
|
* </Dialog.Content>
|
|
387
512
|
* </Dialog.Portal>
|
|
@@ -392,13 +517,13 @@ declare const Dialog: {
|
|
|
392
517
|
/**
|
|
393
518
|
* The portal container for the dialog.
|
|
394
519
|
*
|
|
395
|
-
* @see https://mantle.ngrok.com/components/dialog#api-reference
|
|
520
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog#api-reference
|
|
396
521
|
*
|
|
397
522
|
* @example
|
|
398
523
|
* ```tsx
|
|
399
524
|
* <Dialog.Root>
|
|
400
525
|
* <Dialog.Trigger asChild>
|
|
401
|
-
* <Button type="button" appearance="
|
|
526
|
+
* <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
|
|
402
527
|
* </Dialog.Trigger>
|
|
403
528
|
* <Dialog.Portal>
|
|
404
529
|
* <Dialog.Overlay />
|
|
@@ -413,9 +538,9 @@ declare const Dialog: {
|
|
|
413
538
|
* </Dialog.Body>
|
|
414
539
|
* <Dialog.Footer>
|
|
415
540
|
* <Dialog.Close asChild>
|
|
416
|
-
* <Button type="button" appearance="outlined">Cancel</Button>
|
|
541
|
+
* <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
|
|
417
542
|
* </Dialog.Close>
|
|
418
|
-
* <Button type="button" appearance="filled">Save</Button>
|
|
543
|
+
* <Button type="button" appearance="filled" intent="neutral">Save</Button>
|
|
419
544
|
* </Dialog.Footer>
|
|
420
545
|
* </Dialog.Content>
|
|
421
546
|
* </Dialog.Portal>
|
|
@@ -426,13 +551,13 @@ declare const Dialog: {
|
|
|
426
551
|
/**
|
|
427
552
|
* An accessible name to be announced when the dialog is opened.
|
|
428
553
|
*
|
|
429
|
-
* @see https://mantle.ngrok.com/components/dialog#dialogtitle
|
|
554
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog#dialogtitle
|
|
430
555
|
*
|
|
431
556
|
* @example
|
|
432
557
|
* ```tsx
|
|
433
558
|
* <Dialog.Root>
|
|
434
559
|
* <Dialog.Trigger asChild>
|
|
435
|
-
* <Button type="button" appearance="
|
|
560
|
+
* <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
|
|
436
561
|
* </Dialog.Trigger>
|
|
437
562
|
* <Dialog.Content>
|
|
438
563
|
* <Dialog.Header>
|
|
@@ -445,9 +570,9 @@ declare const Dialog: {
|
|
|
445
570
|
* </Dialog.Body>
|
|
446
571
|
* <Dialog.Footer>
|
|
447
572
|
* <Dialog.Close asChild>
|
|
448
|
-
* <Button type="button" appearance="outlined">Cancel</Button>
|
|
573
|
+
* <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
|
|
449
574
|
* </Dialog.Close>
|
|
450
|
-
* <Button type="button" appearance="filled">Save</Button>
|
|
575
|
+
* <Button type="button" appearance="filled" intent="neutral">Save</Button>
|
|
451
576
|
* </Dialog.Footer>
|
|
452
577
|
* </Dialog.Content>
|
|
453
578
|
* </Dialog.Root>
|
|
@@ -457,13 +582,13 @@ declare const Dialog: {
|
|
|
457
582
|
/**
|
|
458
583
|
* A button that opens the dialog.
|
|
459
584
|
*
|
|
460
|
-
* @see https://mantle.ngrok.com/components/dialog#dialogtrigger
|
|
585
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog#dialogtrigger
|
|
461
586
|
*
|
|
462
587
|
* @example
|
|
463
588
|
* ```tsx
|
|
464
589
|
* <Dialog.Root>
|
|
465
590
|
* <Dialog.Trigger asChild>
|
|
466
|
-
* <Button type="button" appearance="
|
|
591
|
+
* <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
|
|
467
592
|
* </Dialog.Trigger>
|
|
468
593
|
* <Dialog.Content>
|
|
469
594
|
* <Dialog.Header>
|
|
@@ -476,9 +601,9 @@ declare const Dialog: {
|
|
|
476
601
|
* </Dialog.Body>
|
|
477
602
|
* <Dialog.Footer>
|
|
478
603
|
* <Dialog.Close asChild>
|
|
479
|
-
* <Button type="button" appearance="outlined">Cancel</Button>
|
|
604
|
+
* <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
|
|
480
605
|
* </Dialog.Close>
|
|
481
|
-
* <Button type="button" appearance="filled">Save</Button>
|
|
606
|
+
* <Button type="button" appearance="filled" intent="neutral">Save</Button>
|
|
482
607
|
* </Dialog.Footer>
|
|
483
608
|
* </Dialog.Content>
|
|
484
609
|
* </Dialog.Root>
|
package/dist/dialog.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e}from"./primitive-
|
|
1
|
+
import{l as e}from"./primitive-M-kZdNIS.js";import{t}from"./dialog-ZCgG41hx.js";export{t as Dialog,e as isDialogOverlayTarget};
|
|
@@ -139,6 +139,6 @@ declare const timeSortingByDirection: {
|
|
|
139
139
|
declare function $timeSortingDirection<T extends TimeSortingDirection | SortingDirection>(value: T): {
|
|
140
140
|
readonly asc: "oldest-to-newest";
|
|
141
141
|
readonly desc: "newest-to-oldest";
|
|
142
|
-
}[(T & "
|
|
142
|
+
}[(T & "asc") | (T & "desc")] | (T & "newest-to-oldest") | (T & "oldest-to-newest");
|
|
143
143
|
//#endregion
|
|
144
144
|
export { timeSortingDirections as _, AlphanumericSortingDirection as a, TimeSortingDirection as c, isSortingDirection as d, isSortingMode as f, timeSortingByDirection as g, sortingModes as h, $timeSortingDirection as i, alphanumericSortingDirections as l, sortingDirections as m, $sortingDirection as n, SortingDirection as o, isTimeSortingDirection as p, $sortingMode as r, SortingMode as s, $alphanumericSortingDirection as t, isAlphanumericSortingDirection as u };
|