@ngrok/mantle 0.93.7 → 0.94.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -2
- package/dist/accordion.d.ts +73 -21
- package/dist/accordion.js +1 -1
- package/dist/agent.json +1234 -84
- package/dist/alert-BkJHDx9X.js +1 -0
- package/dist/{alert-BcSBNR3S.d.ts → alert-D0zRRUHV.d.ts} +35 -25
- package/dist/alert-center.d.ts +67 -55
- package/dist/alert-center.js +1 -1
- package/dist/alert-dialog.d.ts +35 -10
- package/dist/alert-dialog.js +1 -1
- package/dist/alert.d.ts +6 -1
- package/dist/alert.js +1 -1
- package/dist/anchor-Dc6IgvXV.js +1 -0
- package/dist/anchor.d.ts +17 -5
- package/dist/anchor.js +1 -1
- package/dist/app-layout.d.ts +33 -18
- package/dist/app-layout.js +1 -1
- package/dist/area-chart.d.ts +153 -97
- package/dist/area-chart.js +1 -1
- package/dist/avatar.d.ts +36 -24
- package/dist/avatar.js +1 -1
- package/dist/badge.d.ts +19 -7
- package/dist/badge.js +1 -1
- package/dist/bar-chart.d.ts +155 -100
- package/dist/bar-chart.js +1 -1
- package/dist/breadcrumb.d.ts +47 -36
- package/dist/breadcrumb.js +1 -1
- package/dist/browser-only-CZfkNw5A.js +1 -0
- package/dist/browser-only-ymFoM3Ya.js +1 -0
- package/dist/browser-only.d.ts +8 -0
- package/dist/browser-only.js +1 -1
- package/dist/{button-BX-4lYUn.d.ts → button-5Pc7Mby_.d.ts} +4 -4
- package/dist/button-B9bChDgl.js +1 -0
- package/dist/button-D8jixIbH.js +1 -0
- package/dist/button-DNLTJ32M.js +1 -0
- package/dist/{button-CPsKGDK0.d.ts → button-Ddj6yr10.d.ts} +34 -27
- package/dist/{button-Yxyu1XMd.d.ts → button-DnYv7IOT.d.ts} +29 -22
- package/dist/button.d.ts +9 -3
- package/dist/button.js +1 -1
- package/dist/calendar.d.ts +8 -1
- package/dist/calendar.js +1 -1
- package/dist/card.d.ts +7 -2
- package/dist/card.js +1 -1
- package/dist/centered-layout.d.ts +34 -23
- package/dist/centered-layout.js +1 -1
- package/dist/chart-BLCqzt56.js +1 -0
- package/dist/chart-CChZiCrt.js +1 -0
- package/dist/chart-CUmSu9d7.js +1 -0
- package/dist/{chart-BpfbtOUN.d.ts → chart-Dl8gFo_D.d.ts} +117 -121
- package/dist/chart-DtgZBAas.js +2 -0
- package/dist/checkbox-Cu5cgZmk.js +1 -0
- package/dist/checkbox.d.ts +15 -2
- package/dist/checkbox.js +1 -1
- package/dist/choice-CCVG2hb9.js +1 -0
- package/dist/{choice-BLR0_MeB.d.ts → choice-CNiOSzqV.d.ts} +26 -20
- package/dist/choice.d.ts +6 -1
- package/dist/choice.js +1 -1
- package/dist/code-BPKNY1_w.js +1 -0
- package/dist/{code-block-BGdV4Yty.d.ts → code-block-BDw6MEwH.d.ts} +9 -9
- package/dist/{code-block-W3kWPxCJ.js → code-block-CKzsAMzj.js} +3 -3
- package/dist/code-block.d.ts +28 -19
- package/dist/code-block.js +1 -1
- package/dist/code-block_highlight-utils.d.ts +6 -1
- package/dist/code-block_highlight-utils.js +1 -1
- package/dist/code.d.ts +16 -3
- package/dist/code.js +1 -1
- package/dist/color-CHZbU1Ww.js +1 -0
- package/dist/color.js +1 -1
- package/dist/combobox.d.ts +42 -28
- package/dist/combobox.js +1 -1
- package/dist/command.d.ts +59 -47
- package/dist/command.js +1 -1
- package/dist/compose-refs-BdRUneoc.js +1 -0
- package/dist/{copy-to-clipboard-DInu78k_.js → copy-to-clipboard-Dd83caRw.js} +1 -1
- package/dist/cx.d.ts +4 -4
- package/dist/cx.js +1 -1
- package/dist/{data-slot-B-LqAcBB.d.ts → data-slot-BW8KQ9Xo.d.ts} +2 -2
- package/dist/data-table.d.ts +83 -52
- package/dist/data-table.js +1 -1
- package/dist/description-list.d.ts +13 -2
- package/dist/description-list.js +1 -1
- package/dist/{dialog-2fRO4ca4.d.ts → dialog-CIEuwNys.d.ts} +32 -8
- package/dist/dialog-CbEEA0fl.d.ts +32 -0
- package/dist/dialog-DmzoDfY3.js +1 -0
- package/dist/dialog.d.ts +7 -2
- package/dist/dialog.js +1 -1
- package/dist/{dropdown-menu-CpjRwMWe.d.ts → dropdown-menu-CeY498yk.d.ts} +41 -33
- package/dist/dropdown-menu-uheL0prz.js +1 -0
- package/dist/dropdown-menu.d.ts +6 -1
- package/dist/dropdown-menu.js +1 -1
- package/dist/empty.d.ts +7 -2
- package/dist/empty.js +1 -1
- package/dist/field-Bpvn4tQp.js +1 -0
- package/dist/{field-V_gnkcmN.d.ts → field-BshcNVe_.d.ts} +1 -1
- package/dist/field-Cai_4c1l.js +1 -0
- package/dist/field.d.ts +53 -42
- package/dist/field.js +1 -1
- package/dist/flag.d.ts +11 -3
- package/dist/flag.js +1 -1
- package/dist/hooks.d.ts +35 -10
- package/dist/hooks.js +1 -1
- package/dist/hover-card.d.ts +25 -14
- package/dist/hover-card.js +1 -1
- package/dist/{icon-CgNqu-fl.d.ts → icon--purqHRo.d.ts} +1 -1
- package/dist/{icon-ByLVhdYq.d.ts → icon-DuIYoyft.d.ts} +8 -2
- package/dist/{icon-DXDyhy2N.d.ts → icon-QCm1ui29.d.ts} +2 -2
- package/dist/icon-xb7d9M7X.js +1 -0
- package/dist/icon.d.ts +8 -3
- package/dist/icon.js +1 -1
- package/dist/icons-DEDCLZ8B.js +1 -0
- package/dist/icons-DXadFwpo.js +1 -0
- package/dist/icons-DcesO4Ng.js +1 -0
- package/dist/icons.d.ts +13 -1
- package/dist/icons.js +1 -1
- package/dist/{in-view-B3nMAzfE.d.ts → in-view-C_daNafg.d.ts} +4 -23
- package/dist/{index-BhfgyurF.d.ts → index-KJ06KK6t.d.ts} +3 -3
- package/dist/input-BjCDSOPA.js +1 -0
- package/dist/{input-Dx5owTCc.d.ts → input-DC4nW0Sr.d.ts} +12 -2
- package/dist/input-fW8QSZEO.js +1 -0
- package/dist/input.d.ts +37 -5
- package/dist/input.js +1 -1
- package/dist/kbd-P1nQshWo.js +1 -0
- package/dist/kbd.d.ts +17 -5
- package/dist/kbd.js +1 -1
- package/dist/label-DO1RlMKl.js +1 -0
- package/dist/{label-Dn5CPJUj.d.ts → label-epgtywRz.d.ts} +14 -8
- package/dist/label.d.ts +6 -1
- package/dist/label.js +1 -1
- package/dist/layer-container-DL4yclOu.js +1 -0
- package/dist/layer-container.d.ts +2 -2
- package/dist/layer-container.js +1 -1
- package/dist/line-chart.d.ts +147 -90
- package/dist/line-chart.js +1 -1
- package/dist/list-cQZPSjfz.js +1 -0
- package/dist/list.d.ts +34 -16
- package/dist/list.js +1 -1
- package/dist/live-region-Dhapu8a5.js +1 -0
- package/dist/live-region.d.ts +15 -2
- package/dist/live-region.js +1 -1
- package/dist/llms.txt +82 -79
- package/dist/main-CHyWYDak.js +1 -0
- package/dist/main.d.ts +13 -1
- package/dist/main.js +1 -1
- package/dist/mantle.css +133 -88
- package/dist/media-object.d.ts +16 -4
- package/dist/media-object.js +1 -1
- package/dist/migrations/0014-chart-named-colors.yml +1389 -0
- package/dist/migrations/0015-segmented-control.yml +788 -0
- package/dist/multi-select.d.ts +42 -29
- package/dist/multi-select.js +1 -1
- package/dist/otp-input.d.ts +20 -8
- package/dist/otp-input.js +1 -1
- package/dist/pagination.d.ts +93 -4
- package/dist/pagination.js +1 -1
- package/dist/{popover-BfB2I9G0.d.ts → popover-Bei0jyfH.d.ts} +87 -12
- package/dist/popover-DhgunktK.js +1 -0
- package/dist/popover-T2EyaqGK.d.ts +1 -0
- package/dist/popover.d.ts +7 -2
- package/dist/popover.js +1 -1
- package/dist/primitive-D8CzV_Ft.js +1 -0
- package/dist/progress.d.ts +28 -11
- package/dist/progress.js +1 -1
- package/dist/qr-code.d.ts +11 -3
- package/dist/qr-code.js +1 -1
- package/dist/query-filter.d.ts +6 -6
- package/dist/query.d.ts +9 -4
- package/dist/query.js +1 -1
- package/dist/radio-group-BJQ6EOqh.d.ts +27 -0
- package/dist/radio-group-BliblUqe.js +1 -0
- package/dist/radio-group-ggEkCi0V.js +1 -0
- package/dist/radio-group.d.ts +21 -100
- package/dist/radio-group.js +1 -1
- package/dist/sandbar.d.ts +43 -30
- package/dist/sandbar.js +1 -1
- package/dist/sandboxed-on-click-D4PL5_GR.js +1 -0
- package/dist/sandboxed-on-click.d.ts +8 -0
- package/dist/sandboxed-on-click.js +1 -1
- package/dist/scatter-plot.d.ts +137 -76
- package/dist/scatter-plot.js +1 -1
- package/dist/segmented-control.d.ts +136 -0
- package/dist/segmented-control.js +1 -0
- package/dist/select-1xuUx_os.js +1 -0
- package/dist/{select-BkhBxtOT.d.ts → select-BpaXHxJm.d.ts} +33 -25
- package/dist/select.d.ts +6 -1
- package/dist/select.js +1 -1
- package/dist/selectable-list.d.ts +29 -18
- package/dist/selectable-list.js +1 -1
- package/dist/{separator-D9AWEkcJ.d.ts → separator-Ck4sPrdN.d.ts} +4 -2
- package/dist/separator-DnvhwY2J.js +1 -0
- package/dist/separator.d.ts +6 -1
- package/dist/separator.js +1 -1
- package/dist/{shake-DL6WhMXM.js → shake-CAUpKBHe.js} +1 -1
- package/dist/sheet-DHy_vlme.js +1 -0
- package/dist/sheet.d.ts +36 -7
- package/dist/sheet.js +1 -1
- package/dist/sidebar.d.ts +53 -37
- package/dist/sidebar.js +1 -1
- package/dist/skeleton-DHfyjuQi.js +1 -0
- package/dist/skeleton.d.ts +15 -4
- package/dist/skeleton.js +1 -1
- package/dist/skip-to-main-link.d.ts +12 -1
- package/dist/skip-to-main-link.js +1 -1
- package/dist/slider.d.ts +11 -1
- package/dist/slider.js +1 -1
- package/dist/slot-B7rwscwd.js +1 -0
- package/dist/{slot-C0OCJjdJ.d.ts → slot-BEMQMbk3.d.ts} +6 -4
- package/dist/slot.d.ts +6 -1
- package/dist/slot.js +1 -1
- package/dist/source-all.css +5 -1
- package/dist/split-button.d.ts +20 -9
- package/dist/split-button.js +1 -1
- package/dist/strata.d.ts +35 -22
- package/dist/strata.js +1 -1
- package/dist/{suggestions-NkqYTT49.d.ts → suggestions-BJeGvwDa.d.ts} +7 -7
- package/dist/switch.d.ts +14 -2
- package/dist/switch.js +1 -1
- package/dist/table-BnLdXUai.js +1 -0
- package/dist/{table-vT6Okwfa.d.ts → table-Ii9hHUWN.d.ts} +84 -5
- package/dist/table.d.ts +6 -1
- package/dist/table.js +1 -1
- package/dist/tabs.d.ts +24 -12
- package/dist/tabs.js +1 -1
- package/dist/text-area.d.ts +12 -2
- package/dist/text-area.js +1 -1
- package/dist/theme-BNdZl352.js +1 -0
- package/dist/theme-switcher.d.ts +18 -4
- package/dist/theme-switcher.js +1 -1
- package/dist/theme.d.ts +25 -11
- package/dist/theme.js +1 -1
- package/dist/toast.d.ts +15 -2
- package/dist/toast.js +1 -1
- package/dist/tokens.dark.json +3261 -0
- package/dist/tokens.json +4933 -0
- package/dist/tokens.resolver.json +37 -0
- package/dist/{tooltip-NcLIeBy5.d.ts → tooltip-CstGDKwy.d.ts} +18 -11
- package/dist/tooltip-DQO40Mrq.js +1 -0
- package/dist/tooltip.d.ts +6 -1
- package/dist/tooltip.js +1 -1
- package/dist/truncated-text.d.ts +28 -14
- package/dist/truncated-text.js +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/dist/use-breakpoint-B4Kh0xE6.js +1 -0
- package/dist/use-callback-ref-DiOXFQzM.js +1 -0
- package/dist/use-composed-refs-DPYmLDSe.js +1 -0
- package/dist/use-copy-to-clipboard-hBL6_65i.js +1 -0
- package/dist/use-inert-siblings-C4RHXrZc.js +1 -0
- package/dist/use-is-apple-platform-Bq6_KbVX.js +1 -0
- package/dist/use-is-hydrated-BeLOGKwE.js +1 -0
- package/dist/use-is-hydrated-after-paint-CrHt3OHw.js +1 -0
- package/dist/use-isomorphic-layout-effect-CL6iq0Bj.js +1 -0
- package/dist/use-matches-media-query-FfvtNKQe.js +1 -0
- package/dist/use-prefers-reduced-motion-Ck6dnOM9.js +1 -0
- package/dist/use-swipe-to-dismiss-BYdlca8r.js +1 -0
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/dist/visually-hidden.d.ts +14 -1
- package/dist/visually-hidden.js +1 -1
- package/dist/well.d.ts +7 -2
- package/dist/well.js +1 -1
- package/package.json +21 -7
- package/src/components/chart/d3-license.md +25 -0
- package/dist/alert-P9lwn25X.js +0 -1
- package/dist/anchor-CgcbWEUs.js +0 -1
- package/dist/browser-only-BTSrYWLj.js +0 -1
- package/dist/button-69InNC_m.js +0 -1
- package/dist/button-B8k98Pby.js +0 -1
- package/dist/button-Dge0D5bl.js +0 -1
- package/dist/chart-BpWfQAwf.js +0 -2
- package/dist/checkbox-DmSQXs26.js +0 -1
- package/dist/choice-2Lrv8_nl.js +0 -1
- package/dist/code-DUJzSl4K.js +0 -1
- package/dist/compose-refs-sFdxsL7k.js +0 -1
- package/dist/dialog-7TUgiSzX.js +0 -1
- package/dist/dialog-Dp0QGWwo.d.ts +0 -28
- package/dist/dropdown-menu-BHBzCDSZ.js +0 -1
- package/dist/field-Bihblt8U.js +0 -1
- package/dist/field-CPvjazWN.js +0 -1
- package/dist/icon-kK0c-POG.js +0 -1
- package/dist/icons-CDLz5lpI.js +0 -1
- package/dist/icons-CSwTVV2m.js +0 -1
- package/dist/icons-DP3lQw5O.js +0 -1
- package/dist/input-CpQ6jlpI.js +0 -1
- package/dist/kbd-CLHsJ99p.js +0 -1
- package/dist/label-nHqqYS7e.js +0 -1
- package/dist/layer-container-kEQiE4zV.js +0 -1
- package/dist/list-RFRIQxU2.js +0 -1
- package/dist/live-region-DQ1QLv3L.js +0 -1
- package/dist/main-CC1L9IsH.js +0 -1
- package/dist/popover-C96V8SXi.d.ts +0 -1
- package/dist/popover-DxOqLKxy.js +0 -1
- package/dist/primitive-Dz9Al-us.js +0 -1
- package/dist/radio-group-HDVxTNPi.js +0 -1
- package/dist/sandboxed-on-click-C7pPu-2M.js +0 -1
- package/dist/select-CAAYk4Yj.js +0 -1
- package/dist/separator-DfzxVutO.js +0 -1
- package/dist/sheet-CSJc_sB4.js +0 -1
- package/dist/skeleton-DBpI-ko5.js +0 -1
- package/dist/slot-DdYN1L1C.js +0 -1
- package/dist/table-CFHiDBW8.js +0 -1
- package/dist/theme-C-glc5Q-.js +0 -1
- package/dist/tooltip-b6oiTaWq.js +0 -1
- package/dist/use-breakpoint--mo7kr9d.js +0 -1
- package/dist/use-callback-ref-BvVyI5K1.js +0 -1
- package/dist/use-copy-to-clipboard-Dy_0Qzb7.js +0 -1
- package/dist/use-is-apple-platform-D4nifHMx.js +0 -1
- package/dist/use-is-hydrated-after-paint-r9Cl2mGp.js +0 -1
- package/dist/use-isomorphic-layout-effect-CLSmHzo4.js +0 -1
- package/dist/use-matches-media-query-m860lols.js +0 -1
- package/dist/use-prefers-reduced-motion-CU6mWmOe.js +0 -1
- package/dist/use-swipe-to-dismiss-DceYk1Id.js +0 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ComponentProps, ComponentPropsWithoutRef, Ref } from "react";
|
|
2
|
+
import { Content as Content$1, Description as Description$1, Overlay as Overlay$1, Portal as Portal$1, Root as Root$1 } from "@radix-ui/react-dialog";
|
|
3
|
+
type DialogPrimitiveContentProps = ComponentProps<typeof Content$1>;
|
|
4
|
+
/**
|
|
5
|
+
* The Radix dialog root, with the open state kept here so that mantle can
|
|
6
|
+
* close the dialog from outside Radix. It is controlled when `open` is set.
|
|
7
|
+
*/
|
|
8
|
+
declare const Root: ({ defaultOpen, onOpenChange, open: openProp, ...props }: ComponentProps<typeof Root$1>) => import("react").JSX.Element;
|
|
9
|
+
declare const Trigger: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
/**
|
|
11
|
+
* Mounts dialog layers into the nearest layer container: an enclosing
|
|
12
|
+
* overlay's positioner when one is open, else `document.body`. An explicit
|
|
13
|
+
* `container` prop wins over both.
|
|
14
|
+
*/
|
|
15
|
+
declare const Portal: ({ container, ...props }: ComponentProps<typeof Portal$1>) => import("react").JSX.Element;
|
|
16
|
+
declare const Close: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
17
|
+
declare const Overlay: (props: ComponentProps<typeof Overlay$1>) => import("react").JSX.Element;
|
|
18
|
+
declare const Content: ({ onEscapeKeyDown, onInteractOutside, onPointerDownOutside, ref, ...props }: DialogPrimitiveContentProps) => import("react").JSX.Element;
|
|
19
|
+
declare const Title: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
20
|
+
/**
|
|
21
|
+
* An accessible description for the dialog primitive.
|
|
22
|
+
* This is a low-level primitive used by higher-level dialog components.
|
|
23
|
+
* Renders as a `div` by default, but can be changed to any other element using the `asChild` prop.
|
|
24
|
+
*/
|
|
25
|
+
declare const Description: ({ asChild, children, ref, ...props }: ComponentPropsWithoutRef<typeof Description$1> & {
|
|
26
|
+
ref?: Ref<HTMLDivElement>;
|
|
27
|
+
}) => import("react").JSX.Element;
|
|
28
|
+
/**
|
|
29
|
+
* Type guard to check if the event target is the overlay component
|
|
30
|
+
*/
|
|
31
|
+
declare function isDialogOverlayTarget(target: EventTarget | null): boolean;
|
|
32
|
+
export { Portal as a, Trigger as c, Overlay as i, isDialogOverlayTarget as l, Content as n, Root as o, Description as r, Title as s, Close as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{t as e}from"./cx-CK7o_rVv.js";import{t}from"./data-slot-EM6s2WEU.js";import{t as n}from"./layer-container-DL4yclOu.js";import{t as r}from"./button-B9bChDgl.js";import{a as i,c as a,i as o,n as s,o as c,r as l,s as u,t as d}from"./primitive-D8CzV_Ft.js";import{c as f}from"react/compiler-runtime";import{jsx as p,jsxs as m}from"react/jsx-runtime";import{XIcon as h}from"@phosphor-icons/react/X";const g=c,_=e=>{let n=f(8),r,i;n[0]===e?(r=n[1],i=n[2]):({"data-slot":r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let o;n[3]===r?o=n[4]:(o=t(r,`dialog-trigger`),n[3]=r,n[4]=o);let s;return n[5]!==i||n[6]!==o?(s=/* @__PURE__ */ p(a,{"data-slot":o,...i}),n[5]=i,n[6]=o,n[7]=s):s=n[7],s},v=i,y=e=>{let n=f(8),r,i;n[0]===e?(r=n[1],i=n[2]):({"data-slot":r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let a;n[3]===r?a=n[4]:(a=t(r,`dialog-close`),n[3]=r,n[4]=a);let o;return n[5]!==i||n[6]!==a?(o=/* @__PURE__ */ p(d,{"data-slot":a,...i}),n[5]=i,n[6]=a,n[7]=o):o=n[7],o},b=n=>{let r=f(14),i,a,s,c;r[0]===n?(i=r[1],a=r[2],s=r[3],c=r[4]):({"data-slot":a,className:i,ref:c,...s}=n,r[0]=n,r[1]=i,r[2]=a,r[3]=s,r[4]=c);let l;r[5]===a?l=r[6]:(l=t(a,`dialog-overlay`),r[5]=a,r[6]=l);let u;r[7]===i?u=r[8]:(u=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 duration-200 ease-out-strong data-state-closed:duration-150 fixed inset-0 z-60 backdrop-blur-xs`,i),r[7]=i,r[8]=u);let d;return r[9]!==s||r[10]!==c||r[11]!==l||r[12]!==u?(d=/* @__PURE__ */ p(o,{ref:c,"data-slot":l,className:u,...s}),r[9]=s,r[10]=c,r[11]=l,r[12]=u,r[13]=d):d=r[13],d},x={centered:`inset-4`,"full-page":`inset-4`,"full-bleed":`inset-0`},S={centered:`border-dialog rounded-xl border`,"full-page":`border-dialog h-full max-w-none rounded-xl border`,"full-bleed":`h-full max-w-none`},C={Root:g,Body:n=>{let r=f(12),i,a,o;r[0]===n?(i=r[1],a=r[2],o=r[3]):({"data-slot":a,className:i,...o}=n,r[0]=n,r[1]=i,r[2]=a,r[3]=o);let s;r[4]===a?s=r[5]:(s=t(a,`dialog-body`),r[4]=a,r[5]=s);let c;r[6]===i?c=r[7]:(c=e(`scrollbar scrollbar-gutter-stable text-body flex-1 overflow-y-auto p-6`,i),r[6]=i,r[7]=c);let l;return r[8]!==o||r[9]!==s||r[10]!==c?(l=/* @__PURE__ */ p(`div`,{"data-slot":s,className:c,...o}),r[8]=o,r[9]=s,r[10]=c,r[11]=l):l=r[11],l},Close:y,CloseIconButton:e=>{let n=f(19),i,a,o,s,c,l,u;n[0]===e?(i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7]):({"data-slot":i,size:o,type:s,label:c,appearance:l,intent:u,...a}=e,n[0]=e,n[1]=i,n[2]=a,n[3]=o,n[4]=s,n[5]=c,n[6]=l,n[7]=u);let m=o===void 0?`md`:o,g=s===void 0?`button`:s,_=c===void 0?`Close Dialog`:c,v=l===void 0?`ghost`:l,y=u===void 0?`neutral`:u,b;n[8]===i?b=n[9]:(b=t(i,`dialog-close-icon-button`),n[8]=i,n[9]=b);let x;n[10]===Symbol.for(`react.memo_cache_sentinel`)?(x=/* @__PURE__ */ p(h,{}),n[10]=x):x=n[10];let S;return n[11]!==v||n[12]!==y||n[13]!==_||n[14]!==a||n[15]!==m||n[16]!==b||n[17]!==g?(S=/* @__PURE__ */ p(d,{asChild:!0,children:/* @__PURE__ */ p(r,{appearance:v,"data-slot":b,icon:x,intent:y,label:_,size:m,type:g,...a})}),n[11]=v,n[12]=y,n[13]=_,n[14]=a,n[15]=m,n[16]=b,n[17]=g,n[18]=S):S=n[18],S},Content:r=>{let i=f(27),a,o,c,l,u,d,h;i[0]===r?(a=i[1],o=i[2],c=i[3],l=i[4],u=i[5],d=i[6],h=i[7]):({"data-slot":c,appearance:h,children:a,className:o,preferredWidth:l,ref:d,...u}=r,i[0]=r,i[1]=a,i[2]=o,i[3]=c,i[4]=l,i[5]=u,i[6]=d,i[7]=h);let g=h===void 0?`centered`:h,_;i[8]===Symbol.for(`react.memo_cache_sentinel`)?(_=/* @__PURE__ */ p(b,{}),i[8]=_):_=i[8];let y=x[g],C;i[9]===y?C=i[10]:(C=e(`fixed z-60 flex items-center justify-center motion-safe:not-has-[>[data-mantle-modal-content][data-state=open]]:animate-exit-hold`,y),i[9]=y,i[10]=C);let w;i[11]===c?w=i[12]:(w=t(c,`dialog-content`),i[11]=c,i[12]=w);let T=S[g],E=g===`centered`&&(l??`max-w-lg`),D;i[13]!==o||i[14]!==T||i[15]!==E?(D=e(`flex max-h-full w-full flex-1 flex-col`,`outline-hidden focus-within:outline-hidden`,`bg-dialog shadow-lg duration-200 ease-out-strong data-state-closed:duration-150 motion-reduce:animate-none!`,`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`,T,E,o),i[13]=o,i[14]=T,i[15]=E,i[16]=D):D=i[16];let O;i[17]!==g||i[18]!==a||i[19]!==u||i[20]!==d||i[21]!==w||i[22]!==D?(O=/* @__PURE__ */ p(s,{"data-appearance":g,"data-mantle-modal-content":!0,"data-slot":w,className:D,ref:d,...u,children:a}),i[17]=g,i[18]=a,i[19]=u,i[20]=d,i[21]=w,i[22]=D,i[23]=O):O=i[23];let k;return i[24]!==C||i[25]!==O?(k=/* @__PURE__ */ m(v,{children:[_,/* @__PURE__ */ p(n,{"data-slot":`dialog-positioner`,className:C,children:O})]}),i[24]=C,i[25]=O,i[26]=k):k=i[26],k},Description:n=>{let r=f(14),i,a,o,s;r[0]===n?(i=r[1],a=r[2],o=r[3],s=r[4]):({"data-slot":a,className:i,ref:s,...o}=n,r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s);let c;r[5]===a?c=r[6]:(c=t(a,`dialog-description`),r[5]=a,r[6]=c);let u;r[7]===i?u=r[8]:(u=e(`text-muted`,i),r[7]=i,r[8]=u);let d;return r[9]!==o||r[10]!==s||r[11]!==c||r[12]!==u?(d=/* @__PURE__ */ p(l,{ref:s,"data-slot":c,className:u,...o}),r[9]=o,r[10]=s,r[11]=c,r[12]=u,r[13]=d):d=r[13],d},Footer:n=>{let r=f(12),i,a,o;r[0]===n?(i=r[1],a=r[2],o=r[3]):({"data-slot":a,className:i,...o}=n,r[0]=n,r[1]=i,r[2]=a,r[3]=o);let s;r[4]===a?s=r[5]:(s=t(a,`dialog-footer`),r[4]=a,r[5]=s);let c;r[6]===i?c=r[7]:(c=e(`border-dialog-muted flex shrink-0 justify-end gap-2 border-t px-6 py-4`,i),r[6]=i,r[7]=c);let l;return r[8]!==o||r[9]!==s||r[10]!==c?(l=/* @__PURE__ */ p(`div`,{"data-slot":s,className:c,...o}),r[8]=o,r[9]=s,r[10]=c,r[11]=l):l=r[11],l},Header:n=>{let r=f(14),i,a,o,s;r[0]===n?(i=r[1],a=r[2],o=r[3],s=r[4]):({"data-slot":o,className:a,children:i,...s}=n,r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s);let c;r[5]===o?c=r[6]:(c=t(o,`dialog-header`),r[5]=o,r[6]=c);let l;r[7]===a?l=r[8]:(l=e(`border-dialog-muted text-strong relative flex shrink-0 flex-wrap items-center justify-between gap-2 border-b px-6 py-4`,`*:data-[slot~=dialog-title]:flex-1`,`*:data-[slot~=dialog-description]:order-last *:data-[slot~=dialog-description]:basis-full`,`has-[.icon-button]:pr-4`,a),r[7]=a,r[8]=l);let u;return r[9]!==i||r[10]!==s||r[11]!==c||r[12]!==l?(u=/* @__PURE__ */ p(`div`,{"data-slot":c,className:l,...s,children:i}),r[9]=i,r[10]=s,r[11]=c,r[12]=l,r[13]=u):u=r[13],u},Overlay:b,Portal:v,Title:n=>{let r=f(14),i,a,o,s;r[0]===n?(i=r[1],a=r[2],o=r[3],s=r[4]):({"data-slot":a,className:i,ref:s,...o}=n,r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s);let c;r[5]===a?c=r[6]:(c=t(a,`dialog-title`),r[5]=a,r[6]=c);let l;r[7]===i?l=r[8]:(l=e(`text-strong truncate text-lg font-medium`,i),r[7]=i,r[8]=l);let d;return r[9]!==o||r[10]!==s||r[11]!==c||r[12]!==l?(d=/* @__PURE__ */ p(u,{ref:s,"data-slot":c,className:l,...o}),r[9]=o,r[10]=s,r[11]=c,r[12]=l,r[13]=d):d=r[13],d},Trigger:_};export{C as t};
|
package/dist/dialog.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Re-exports for the Dialog component.
|
|
3
|
+
*
|
|
4
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog
|
|
5
|
+
*/
|
|
6
|
+
import { t as Dialog } from "./dialog-CIEuwNys.js";
|
|
7
|
+
import { l as isDialogOverlayTarget } from "./dialog-CbEEA0fl.js";
|
|
3
8
|
export { Dialog, isDialogOverlayTarget };
|
package/dist/dialog.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{t as e}from"./dialog-DmzoDfY3.js";import{d as t}from"./primitive-D8CzV_Ft.js";export{e as Dialog,t as isDialogOverlayTarget};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as WithDataSlot } from "./data-slot-
|
|
2
|
-
import { n as Separator } from "./separator-
|
|
1
|
+
import { t as WithDataSlot } from "./data-slot-BW8KQ9Xo.js";
|
|
2
|
+
import { n as Separator } from "./separator-Ck4sPrdN.js";
|
|
3
3
|
import { ComponentProps } from "react";
|
|
4
|
-
import { CheckboxItem, Content, Group, Item, Label, RadioGroup, RadioItem, SubContent, SubTrigger, Trigger } from "@radix-ui/react-dropdown-menu";
|
|
4
|
+
import { CheckboxItem as CheckboxItem$1, Content as Content$1, Group as Group$1, Item as Item$1, Label as Label$1, RadioGroup as RadioGroup$1, RadioItem as RadioItem$1, SubContent as SubContent$1, SubTrigger as SubTrigger$1, Trigger as Trigger$1 } from "@radix-ui/react-dropdown-menu";
|
|
5
5
|
/**
|
|
6
6
|
* The trigger button that opens the dropdown menu.
|
|
7
7
|
*
|
|
@@ -21,7 +21,7 @@ import { CheckboxItem, Content, Group, Item, Label, RadioGroup, RadioItem, SubCo
|
|
|
21
21
|
* </DropdownMenu.Root>
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
|
-
declare const Trigger
|
|
24
|
+
declare const Trigger: ({ "data-slot": dataSlot, ...props }: ComponentProps<typeof Trigger$1> & WithDataSlot) => import("react").JSX.Element;
|
|
25
25
|
/**
|
|
26
26
|
* A group container for organizing related dropdown menu items.
|
|
27
27
|
*
|
|
@@ -41,7 +41,7 @@ declare const Trigger$1: ({ "data-slot": dataSlot, ...props }: ComponentProps<ty
|
|
|
41
41
|
* </DropdownMenu.Root>
|
|
42
42
|
* ```
|
|
43
43
|
*/
|
|
44
|
-
declare const Group
|
|
44
|
+
declare const Group: ({ "data-slot": dataSlot, className, ...props }: ComponentProps<typeof Group$1> & WithDataSlot) => import("react").JSX.Element;
|
|
45
45
|
/**
|
|
46
46
|
* A radio group container for exclusive selection within the dropdown menu.
|
|
47
47
|
*
|
|
@@ -60,11 +60,11 @@ declare const Group$1: ({ "data-slot": dataSlot, className, ...props }: Componen
|
|
|
60
60
|
* </DropdownMenu.Root>
|
|
61
61
|
* ```
|
|
62
62
|
*/
|
|
63
|
-
declare const RadioGroup
|
|
63
|
+
declare const RadioGroup: ({ "data-slot": dataSlot, className, ...props }: ComponentProps<typeof RadioGroup$1> & WithDataSlot) => import("react").JSX.Element;
|
|
64
64
|
/**
|
|
65
65
|
* Props for `DropdownMenu.SubTrigger`.
|
|
66
66
|
*/
|
|
67
|
-
type DropdownMenuSubTriggerProps = ComponentProps<typeof SubTrigger> & {
|
|
67
|
+
type DropdownMenuSubTriggerProps = ComponentProps<typeof SubTrigger$1> & {
|
|
68
68
|
inset?: boolean;
|
|
69
69
|
} & WithDataSlot;
|
|
70
70
|
/**
|
|
@@ -79,7 +79,7 @@ type DropdownMenuSubTriggerProps = ComponentProps<typeof SubTrigger> & {
|
|
|
79
79
|
* `display: contents`, so an icon and its label stay flex items of the item and
|
|
80
80
|
* keep its `gap`. An icon you pass as a child is now a grandchild, so a
|
|
81
81
|
* `[&>svg]` class of your own no longer reaches it. Match the part's own
|
|
82
|
-
* variant instead
|
|
82
|
+
* variant instead: `[&>[data-slot=dropdown-menu-sub-trigger-label]>svg]:size-4`.
|
|
83
83
|
* A `[&_svg]` class or a class on the icon loses to the default, which is more
|
|
84
84
|
* specific.
|
|
85
85
|
*
|
|
@@ -111,7 +111,7 @@ type DropdownMenuSubTriggerProps = ComponentProps<typeof SubTrigger> & {
|
|
|
111
111
|
* </DropdownMenu.Root>
|
|
112
112
|
* ```
|
|
113
113
|
*/
|
|
114
|
-
declare const SubTrigger
|
|
114
|
+
declare const SubTrigger: ({ "data-slot": dataSlot, className, inset, children, ...props }: DropdownMenuSubTriggerProps) => import("react").JSX.Element;
|
|
115
115
|
/**
|
|
116
116
|
* The content container for a dropdown menu sub-menu.
|
|
117
117
|
*
|
|
@@ -140,8 +140,8 @@ declare const SubTrigger$1: ({ "data-slot": dataSlot, className, inset, children
|
|
|
140
140
|
* </DropdownMenu.Root>
|
|
141
141
|
* ```
|
|
142
142
|
*/
|
|
143
|
-
declare const SubContent
|
|
144
|
-
type DropdownMenuContentProps = ComponentProps<typeof Content> & WithDataSlot & {
|
|
143
|
+
declare const SubContent: ({ "data-slot": dataSlot, className, loop, onEscapeKeyDown, ...props }: ComponentProps<typeof SubContent$1> & WithDataSlot) => import("react").JSX.Element;
|
|
144
|
+
type DropdownMenuContentProps = ComponentProps<typeof Content$1> & WithDataSlot & {
|
|
145
145
|
/**
|
|
146
146
|
* Whether the DropdownMenuContent should match the width of the trigger or use the intrinsic content width.
|
|
147
147
|
*/
|
|
@@ -174,7 +174,7 @@ type DropdownMenuContentProps = ComponentProps<typeof Content> & WithDataSlot &
|
|
|
174
174
|
* </DropdownMenu.Root>
|
|
175
175
|
* ```
|
|
176
176
|
*/
|
|
177
|
-
declare const Content
|
|
177
|
+
declare const Content: ({ className, "data-slot": dataSlot, onClick, onEscapeKeyDown, loop, width, ...props }: DropdownMenuContentProps) => import("react").JSX.Element;
|
|
178
178
|
/**
|
|
179
179
|
* An item in the dropdown menu.
|
|
180
180
|
*
|
|
@@ -195,13 +195,13 @@ declare const Content$1: ({ className, "data-slot": dataSlot, onClick, loop, wid
|
|
|
195
195
|
* </DropdownMenu.Root>
|
|
196
196
|
* ```
|
|
197
197
|
*/
|
|
198
|
-
declare const Item
|
|
198
|
+
declare const Item: ({ "data-slot": dataSlot, className, inset, ...props }: ComponentProps<typeof Item$1> & {
|
|
199
199
|
inset?: boolean;
|
|
200
200
|
} & WithDataSlot) => import("react").JSX.Element;
|
|
201
201
|
/**
|
|
202
202
|
* Props for `DropdownMenu.CheckboxItem`.
|
|
203
203
|
*/
|
|
204
|
-
type DropdownMenuCheckboxItemProps = ComponentProps<typeof CheckboxItem> & WithDataSlot;
|
|
204
|
+
type DropdownMenuCheckboxItemProps = ComponentProps<typeof CheckboxItem$1> & WithDataSlot;
|
|
205
205
|
/**
|
|
206
206
|
* A menu item with a checkbox that can be controlled or uncontrolled.
|
|
207
207
|
*
|
|
@@ -213,7 +213,7 @@ type DropdownMenuCheckboxItemProps = ComponentProps<typeof CheckboxItem> & WithD
|
|
|
213
213
|
* `display: contents`, so an icon and its label stay flex items of the item and
|
|
214
214
|
* keep its `gap`. An icon you pass as a child is now a grandchild, so a
|
|
215
215
|
* `[&>svg]` class of your own no longer reaches it. Match the part's own
|
|
216
|
-
* variant instead
|
|
216
|
+
* variant instead: `[&>[data-slot=dropdown-menu-checkbox-item-label]>svg]:size-4`.
|
|
217
217
|
* A `[&_svg]` class or a class on the icon loses to the default, which is more
|
|
218
218
|
* specific.
|
|
219
219
|
*
|
|
@@ -241,11 +241,11 @@ type DropdownMenuCheckboxItemProps = ComponentProps<typeof CheckboxItem> & WithD
|
|
|
241
241
|
* </DropdownMenu.Root>
|
|
242
242
|
* ```
|
|
243
243
|
*/
|
|
244
|
-
declare const CheckboxItem
|
|
244
|
+
declare const CheckboxItem: ({ "data-slot": dataSlot, className, children, checked, ...props }: DropdownMenuCheckboxItemProps) => import("react").JSX.Element;
|
|
245
245
|
/**
|
|
246
246
|
* Props for `DropdownMenu.RadioItem`.
|
|
247
247
|
*/
|
|
248
|
-
type DropdownMenuRadioItemProps = ComponentProps<typeof RadioItem> & {
|
|
248
|
+
type DropdownMenuRadioItemProps = ComponentProps<typeof RadioItem$1> & {
|
|
249
249
|
name?: string;
|
|
250
250
|
id?: string;
|
|
251
251
|
} & WithDataSlot;
|
|
@@ -261,7 +261,7 @@ type DropdownMenuRadioItemProps = ComponentProps<typeof RadioItem> & {
|
|
|
261
261
|
* `display: contents`, so an icon and its label stay flex items of the item and
|
|
262
262
|
* keep its `gap`. An icon you pass as a child is now a grandchild, so a
|
|
263
263
|
* `[&>svg]` class of your own no longer reaches it. Match the part's own
|
|
264
|
-
* variant instead
|
|
264
|
+
* variant instead: `[&>[data-slot=dropdown-menu-radio-item-label]>svg]:size-4`.
|
|
265
265
|
* A `[&_svg]` class or a class on the icon loses to the default, which is more
|
|
266
266
|
* specific.
|
|
267
267
|
*
|
|
@@ -291,7 +291,7 @@ type DropdownMenuRadioItemProps = ComponentProps<typeof RadioItem> & {
|
|
|
291
291
|
* </DropdownMenu.Root>
|
|
292
292
|
* ```
|
|
293
293
|
*/
|
|
294
|
-
declare const RadioItem
|
|
294
|
+
declare const RadioItem: ({ "data-slot": dataSlot, className, children, ...props }: DropdownMenuRadioItemProps) => import("react").JSX.Element;
|
|
295
295
|
/**
|
|
296
296
|
* A label for a group of dropdown menu items.
|
|
297
297
|
*
|
|
@@ -309,7 +309,7 @@ declare const RadioItem$1: ({ "data-slot": dataSlot, className, children, ...pro
|
|
|
309
309
|
* </DropdownMenu.Root>
|
|
310
310
|
* ```
|
|
311
311
|
*/
|
|
312
|
-
declare const Label
|
|
312
|
+
declare const Label: ({ "data-slot": dataSlot, className, inset, ...props }: ComponentProps<typeof Label$1> & {
|
|
313
313
|
inset?: boolean;
|
|
314
314
|
} & WithDataSlot) => import("react").JSX.Element;
|
|
315
315
|
/**
|
|
@@ -361,6 +361,14 @@ declare const Shortcut: ({ "data-slot": dataSlot, className, ...props }: Omit<Co
|
|
|
361
361
|
* `document.body`, below the overlay tier (`z-60`). When sibling floats share a
|
|
362
362
|
* container, the most recently mounted float paints on top.
|
|
363
363
|
*
|
|
364
|
+
* @useWhen Show a menu of actions or options when the user clicks a button.
|
|
365
|
+
*
|
|
366
|
+
* @siblings
|
|
367
|
+
* - `Select`: the user picks one value for a form field.
|
|
368
|
+
* - `SplitButton`: a default action runs on one click, and the menu holds its alternatives.
|
|
369
|
+
* - `Command`: the user searches many actions or pages from the keyboard.
|
|
370
|
+
* - `Popover`: the floating content is a small form or other content, not a menu.
|
|
371
|
+
*
|
|
364
372
|
* @see https://mantle.ngrok.com/components/overlays/dropdown-menu
|
|
365
373
|
*
|
|
366
374
|
* @example
|
|
@@ -436,7 +444,7 @@ declare const DropdownMenu: {
|
|
|
436
444
|
* `display: contents`, so an icon and its label stay flex items of the item and
|
|
437
445
|
* keep its `gap`. An icon you pass as a child is now a grandchild, so a
|
|
438
446
|
* `[&>svg]` class of your own no longer reaches it. Match the part's own
|
|
439
|
-
* variant instead
|
|
447
|
+
* variant instead: `[&>[data-slot=dropdown-menu-checkbox-item-label]>svg]:size-4`.
|
|
440
448
|
* A `[&_svg]` class or a class on the icon loses to the default, which is more
|
|
441
449
|
* specific.
|
|
442
450
|
*
|
|
@@ -464,7 +472,7 @@ declare const DropdownMenu: {
|
|
|
464
472
|
* </DropdownMenu.Root>
|
|
465
473
|
* ```
|
|
466
474
|
*/
|
|
467
|
-
readonly CheckboxItem: typeof CheckboxItem
|
|
475
|
+
readonly CheckboxItem: typeof CheckboxItem;
|
|
468
476
|
/**
|
|
469
477
|
* The container for the dropdown menu content. Appears in a portal with scrolling and animations.
|
|
470
478
|
*
|
|
@@ -488,7 +496,7 @@ declare const DropdownMenu: {
|
|
|
488
496
|
* </DropdownMenu.Root>
|
|
489
497
|
* ```
|
|
490
498
|
*/
|
|
491
|
-
readonly Content: typeof Content
|
|
499
|
+
readonly Content: typeof Content;
|
|
492
500
|
/**
|
|
493
501
|
* A group container for organizing related dropdown menu items.
|
|
494
502
|
*
|
|
@@ -508,7 +516,7 @@ declare const DropdownMenu: {
|
|
|
508
516
|
* </DropdownMenu.Root>
|
|
509
517
|
* ```
|
|
510
518
|
*/
|
|
511
|
-
readonly Group: typeof Group
|
|
519
|
+
readonly Group: typeof Group;
|
|
512
520
|
/**
|
|
513
521
|
* A standard item in the dropdown menu that can be selected or activated.
|
|
514
522
|
*
|
|
@@ -529,7 +537,7 @@ declare const DropdownMenu: {
|
|
|
529
537
|
* </DropdownMenu.Root>
|
|
530
538
|
* ```
|
|
531
539
|
*/
|
|
532
|
-
readonly Item: typeof Item
|
|
540
|
+
readonly Item: typeof Item;
|
|
533
541
|
/**
|
|
534
542
|
* A label for grouping and describing sections within the dropdown menu.
|
|
535
543
|
*
|
|
@@ -547,7 +555,7 @@ declare const DropdownMenu: {
|
|
|
547
555
|
* </DropdownMenu.Root>
|
|
548
556
|
* ```
|
|
549
557
|
*/
|
|
550
|
-
readonly Label: typeof Label
|
|
558
|
+
readonly Label: typeof Label;
|
|
551
559
|
/**
|
|
552
560
|
* A radio group container for exclusive selection within the dropdown menu.
|
|
553
561
|
*
|
|
@@ -566,7 +574,7 @@ declare const DropdownMenu: {
|
|
|
566
574
|
* </DropdownMenu.Root>
|
|
567
575
|
* ```
|
|
568
576
|
*/
|
|
569
|
-
readonly RadioGroup: typeof RadioGroup
|
|
577
|
+
readonly RadioGroup: typeof RadioGroup;
|
|
570
578
|
/**
|
|
571
579
|
* A radio item in the dropdown menu where only one item in the group can be selected.
|
|
572
580
|
*
|
|
@@ -578,7 +586,7 @@ declare const DropdownMenu: {
|
|
|
578
586
|
* `display: contents`, so an icon and its label stay flex items of the item and
|
|
579
587
|
* keep its `gap`. An icon you pass as a child is now a grandchild, so a
|
|
580
588
|
* `[&>svg]` class of your own no longer reaches it. Match the part's own
|
|
581
|
-
* variant instead
|
|
589
|
+
* variant instead: `[&>[data-slot=dropdown-menu-radio-item-label]>svg]:size-4`.
|
|
582
590
|
* A `[&_svg]` class or a class on the icon loses to the default, which is more
|
|
583
591
|
* specific.
|
|
584
592
|
*
|
|
@@ -608,7 +616,7 @@ declare const DropdownMenu: {
|
|
|
608
616
|
* </DropdownMenu.Root>
|
|
609
617
|
* ```
|
|
610
618
|
*/
|
|
611
|
-
readonly RadioItem: typeof RadioItem
|
|
619
|
+
readonly RadioItem: typeof RadioItem;
|
|
612
620
|
/**
|
|
613
621
|
* A visual separator for dividing sections within the dropdown menu.
|
|
614
622
|
*
|
|
@@ -697,7 +705,7 @@ declare const DropdownMenu: {
|
|
|
697
705
|
* </DropdownMenu.Root>
|
|
698
706
|
* ```
|
|
699
707
|
*/
|
|
700
|
-
readonly SubContent: typeof SubContent
|
|
708
|
+
readonly SubContent: typeof SubContent;
|
|
701
709
|
/**
|
|
702
710
|
* A trigger for a dropdown menu sub-menu. It opens the submenu on hover, or on
|
|
703
711
|
* ArrowRight or Enter.
|
|
@@ -710,7 +718,7 @@ declare const DropdownMenu: {
|
|
|
710
718
|
* `display: contents`, so an icon and its label stay flex items of the item and
|
|
711
719
|
* keep its `gap`. An icon you pass as a child is now a grandchild, so a
|
|
712
720
|
* `[&>svg]` class of your own no longer reaches it. Match the part's own
|
|
713
|
-
* variant instead
|
|
721
|
+
* variant instead: `[&>[data-slot=dropdown-menu-sub-trigger-label]>svg]:size-4`.
|
|
714
722
|
* A `[&_svg]` class or a class on the icon loses to the default, which is more
|
|
715
723
|
* specific.
|
|
716
724
|
*
|
|
@@ -742,7 +750,7 @@ declare const DropdownMenu: {
|
|
|
742
750
|
* </DropdownMenu.Root>
|
|
743
751
|
* ```
|
|
744
752
|
*/
|
|
745
|
-
readonly SubTrigger: typeof SubTrigger
|
|
753
|
+
readonly SubTrigger: typeof SubTrigger;
|
|
746
754
|
/**
|
|
747
755
|
* The trigger button that opens the dropdown menu.
|
|
748
756
|
*
|
|
@@ -762,6 +770,6 @@ declare const DropdownMenu: {
|
|
|
762
770
|
* </DropdownMenu.Root>
|
|
763
771
|
* ```
|
|
764
772
|
*/
|
|
765
|
-
readonly Trigger: typeof Trigger
|
|
773
|
+
readonly Trigger: typeof Trigger;
|
|
766
774
|
};
|
|
767
775
|
export { DropdownMenu as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{t as e}from"./cx-CK7o_rVv.js";import{i as t,s as n}from"./layer-container-DL4yclOu.js";import{t as r}from"./data-slot-EM6s2WEU.js";import{t as i}from"./icon-xb7d9M7X.js";import{n as a}from"./separator-DnvhwY2J.js";import{c as o}from"react/compiler-runtime";import{jsx as s,jsxs as c}from"react/jsx-runtime";import{Slottable as l}from"@radix-ui/react-slot";import{CheckIcon as u}from"@phosphor-icons/react/Check";import{CaretRightIcon as d}from"@phosphor-icons/react/CaretRight";import{CheckboxItem as f,Content as p,Group as m,Item as h,ItemIndicator as g,Label as _,Portal as v,RadioGroup as y,RadioItem as b,Root as x,Sub as S,SubContent as C,SubTrigger as w,Trigger as T}from"@radix-ui/react-dropdown-menu";const E=x,D=e=>{let t=o(8),n,i;t[0]===e?(n=t[1],i=t[2]):({"data-slot":n,...i}=e,t[0]=e,t[1]=n,t[2]=i);let a;t[3]===n?a=t[4]:(a=r(n,`dropdown-menu-trigger`),t[3]=n,t[4]=a);let c;return t[5]!==i||t[6]!==a?(c=/* @__PURE__ */ s(T,{"data-slot":a,...i}),t[5]=i,t[6]=a,t[7]=c):c=t[7],c},O=t=>{let n=o(12),i,a,c;n[0]===t?(i=n[1],a=n[2],c=n[3]):({"data-slot":a,className:i,...c}=t,n[0]=t,n[1]=i,n[2]=a,n[3]=c);let l;n[4]===a?l=n[5]:(l=r(a,`dropdown-menu-group`),n[4]=a,n[5]=l);let u;n[6]===i?u=n[7]:(u=e(`space-y-px`,i),n[6]=i,n[7]=u);let d;return n[8]!==c||n[9]!==l||n[10]!==u?(d=/* @__PURE__ */ s(m,{"data-slot":l,className:u,...c}),n[8]=c,n[9]=l,n[10]=u,n[11]=d):d=n[11],d},k=e=>{let t=o(6),r,i;t[0]===e?(r=t[1],i=t[2]):({container:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a=n(),c=r??a,l;return t[3]!==i||t[4]!==c?(l=/* @__PURE__ */ s(v,{container:c,...i}),t[3]=i,t[4]=c,t[5]=l):l=t[5],l},A={Root:E,CheckboxItem:t=>{let n=o(19),a,d,p,m,h;n[0]===t?(a=n[1],d=n[2],p=n[3],m=n[4],h=n[5]):({"data-slot":m,className:p,children:d,checked:a,...h}=t,n[0]=t,n[1]=a,n[2]=d,n[3]=p,n[4]=m,n[5]=h);let _;n[6]===m?_=n[7]:(_=r(m,`dropdown-menu-checkbox-item`),n[6]=m,n[7]=_);let v;n[8]===p?v=n[9]:(v=e(`text-strong data-disabled:pointer-events-none data-disabled:opacity-50 relative flex cursor-pointer select-none items-center gap-2 rounded-md py-1.5 pl-2 pr-9 text-sm font-normal outline-hidden`,`data-highlighted:bg-active-menu-item`,`aria-checked:bg-selected-menu-item`,`data-highlighted:aria-checked:bg-active-selected-menu-item!`,`[&>[data-slot=dropdown-menu-checkbox-item-label]>svg]:size-5 [&_svg]:shrink-0`,p),n[8]=p,n[9]=v);let y;n[10]===Symbol.for(`react.memo_cache_sentinel`)?(y=/* @__PURE__ */ s(`span`,{className:`absolute right-2 flex items-center`,children:/* @__PURE__ */ s(g,{children:/* @__PURE__ */ s(i,{svg:/* @__PURE__ */ s(u,{weight:`bold`}),className:`size-4 text-accent-600`})})}),n[10]=y):y=n[10];let b;n[11]===d?b=n[12]:(b=/* @__PURE__ */ s(l,{child:d,children:M}),n[11]=d,n[12]=b);let x;return n[13]!==a||n[14]!==h||n[15]!==_||n[16]!==v||n[17]!==b?(x=/* @__PURE__ */ c(f,{"data-slot":_,className:v,checked:a,...h,children:[y,b]}),n[13]=a,n[14]=h,n[15]=_,n[16]=v,n[17]=b,n[18]=x):x=n[18],x},Content:n=>{let i=o(22),a,c,l,u,d,f,m;i[0]===n?(a=i[1],c=i[2],l=i[3],u=i[4],d=i[5],f=i[6],m=i[7]):({className:a,"data-slot":c,onClick:l,onEscapeKeyDown:u,loop:f,width:m,...d}=n,i[0]=n,i[1]=a,i[2]=c,i[3]=l,i[4]=u,i[5]=d,i[6]=f,i[7]=m);let h=f===void 0||f,g=t(u),_;i[8]===c?_=i[9]:(_=r(c,`dropdown-menu-content`),i[8]=c,i[9]=_);let v=m===`trigger`&&`w-(--radix-dropdown-menu-trigger-width)`,y;i[10]!==a||i[11]!==v?(y=e(`scrollbar`,`text-popover-foreground border-popover bg-popover p-1.25 z-50 min-w-32 overflow-hidden rounded-md border shadow-xl outline-hidden space-y-px font-sans`,`data-side-bottom:slide-in-from-top-1 data-side-left:slide-in-from-right-1 data-side-right:slide-in-from-left-1 data-side-top:slide-in-from-bottom-1 data-side-bottom:slide-out-to-top-1 data-side-left:slide-out-to-right-1 data-side-right:slide-out-to-left-1 data-side-top:slide-out-to-bottom-1 duration-200 ease-out-strong data-state-closed:duration-150 motion-reduce:animate-none! 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`,`my-2 max-h-[calc(var(--radix-dropdown-menu-content-available-height)-16px)] overflow-auto`,v,a),i[10]=a,i[11]=v,i[12]=y):y=i[12];let b;i[13]===l?b=i[14]:(b=e=>{e.stopPropagation(),l?.(e)},i[13]=l,i[14]=b);let x;return i[15]!==g||i[16]!==h||i[17]!==d||i[18]!==_||i[19]!==y||i[20]!==b?(x=/* @__PURE__ */ s(k,{children:/* @__PURE__ */ s(p,{"data-slot":_,className:y,loop:h,onClick:b,onEscapeKeyDown:g,...d})}),i[15]=g,i[16]=h,i[17]=d,i[18]=_,i[19]=y,i[20]=b,i[21]=x):x=i[21],x},Group:O,Item:t=>{let n=o(14),i,a,c,l;n[0]===t?(i=n[1],a=n[2],c=n[3],l=n[4]):({"data-slot":a,className:i,inset:c,...l}=t,n[0]=t,n[1]=i,n[2]=a,n[3]=c,n[4]=l);let u;n[5]===a?u=n[6]:(u=r(a,`dropdown-menu-item`),n[5]=a,n[6]=u);let d=c&&`pl-8`,f;n[7]!==i||n[8]!==d?(f=e(`relative flex cursor-pointer select-none items-center rounded-md px-2 py-1.5 text-strong text-sm font-normal outline-hidden transition-colors`,`data-highlighted:bg-active-menu-item`,`focus:bg-accent focus:text-accent-foreground`,`data-disabled:cursor-default data-disabled:opacity-50`,`[&>svg]:size-5 [&_svg]:shrink-0`,d,i),n[7]=i,n[8]=d,n[9]=f):f=n[9];let p;return n[10]!==l||n[11]!==u||n[12]!==f?(p=/* @__PURE__ */ s(h,{"data-slot":u,className:f,...l}),n[10]=l,n[11]=u,n[12]=f,n[13]=p):p=n[13],p},Label:t=>{let n=o(14),i,a,c,l;n[0]===t?(i=n[1],a=n[2],c=n[3],l=n[4]):({"data-slot":a,className:i,inset:c,...l}=t,n[0]=t,n[1]=i,n[2]=a,n[3]=c,n[4]=l);let u;n[5]===a?u=n[6]:(u=r(a,`dropdown-menu-label`),n[5]=a,n[6]=u);let d=c&&`pl-8`,f;n[7]!==i||n[8]!==d?(f=e(`px-2 py-1.5 text-sm font-medium`,d,i),n[7]=i,n[8]=d,n[9]=f):f=n[9];let p;return n[10]!==l||n[11]!==u||n[12]!==f?(p=/* @__PURE__ */ s(_,{"data-slot":u,className:f,...l}),n[10]=l,n[11]=u,n[12]=f,n[13]=p):p=n[13],p},RadioGroup:t=>{let n=o(12),i,a,c;n[0]===t?(i=n[1],a=n[2],c=n[3]):({"data-slot":a,className:i,...c}=t,n[0]=t,n[1]=i,n[2]=a,n[3]=c);let l;n[4]===a?l=n[5]:(l=r(a,`dropdown-menu-radio-group`),n[4]=a,n[5]=l);let u;n[6]===i?u=n[7]:(u=e(`space-y-px`,i),n[6]=i,n[7]=u);let d;return n[8]!==c||n[9]!==l||n[10]!==u?(d=/* @__PURE__ */ s(y,{"data-slot":l,className:u,...c}),n[8]=c,n[9]=l,n[10]=u,n[11]=d):d=n[11],d},RadioItem:t=>{let n=o(17),a,d,f,p;n[0]===t?(a=n[1],d=n[2],f=n[3],p=n[4]):({"data-slot":f,className:d,children:a,...p}=t,n[0]=t,n[1]=a,n[2]=d,n[3]=f,n[4]=p);let m;n[5]===f?m=n[6]:(m=r(f,`dropdown-menu-radio-item`),n[5]=f,n[6]=m);let h;n[7]===d?h=n[8]:(h=e(`group/dropdown-menu-radio-item`,`text-strong data-disabled:pointer-events-none data-disabled:opacity-50 relative flex cursor-pointer select-none items-center gap-2 rounded-md py-1.5 px-2 text-sm font-normal outline-none`,`data-highlighted:bg-active-menu-item`,`aria-checked:bg-selected-menu-item aria-checked:pr-9`,`data-highlighted:aria-checked:bg-active-selected-menu-item!`,`[&>[data-slot=dropdown-menu-radio-item-label]>svg]:size-5 [&_svg]:shrink-0`,d),n[7]=d,n[8]=h);let _;n[9]===Symbol.for(`react.memo_cache_sentinel`)?(_=/* @__PURE__ */ s(`span`,{className:`absolute right-2 items-center hidden group-aria-checked/dropdown-menu-radio-item:flex`,children:/* @__PURE__ */ s(g,{children:/* @__PURE__ */ s(i,{svg:/* @__PURE__ */ s(u,{weight:`bold`}),className:`size-4 text-accent-600`})})}),n[9]=_):_=n[9];let v;n[10]===a?v=n[11]:(v=/* @__PURE__ */ s(l,{child:a,children:N}),n[10]=a,n[11]=v);let y;return n[12]!==p||n[13]!==m||n[14]!==h||n[15]!==v?(y=/* @__PURE__ */ c(b,{"data-slot":m,className:h,...p,children:[_,v]}),n[12]=p,n[13]=m,n[14]=h,n[15]=v,n[16]=y):y=n[16],y},Separator:t=>{let n=o(12),i,c,l;n[0]===t?(i=n[1],c=n[2],l=n[3]):({"data-slot":c,className:i,...l}=t,n[0]=t,n[1]=i,n[2]=c,n[3]=l);let u;n[4]===c?u=n[5]:(u=r(c,`dropdown-menu-separator`),n[4]=c,n[5]=u);let d;n[6]===i?d=n[7]:(d=e(`-mx-1.25 my-1 w-auto`,i),n[6]=i,n[7]=d);let f;return n[8]!==l||n[9]!==u||n[10]!==d?(f=/* @__PURE__ */ s(a,{"data-slot":u,className:d,...l}),n[8]=l,n[9]=u,n[10]=d,n[11]=f):f=n[11],f},Shortcut:t=>{let n=o(12),i,a,c;n[0]===t?(i=n[1],a=n[2],c=n[3]):({"data-slot":a,className:i,...c}=t,n[0]=t,n[1]=i,n[2]=a,n[3]=c);let l;n[4]===a?l=n[5]:(l=r(a,`dropdown-menu-shortcut`),n[4]=a,n[5]=l);let u;n[6]===i?u=n[7]:(u=e(`ml-auto text-xs tracking-widest opacity-60`,i),n[6]=i,n[7]=u);let d;return n[8]!==c||n[9]!==l||n[10]!==u?(d=/* @__PURE__ */ s(`span`,{"data-slot":l,className:u,...c,translate:`no`}),n[8]=c,n[9]=l,n[10]=u,n[11]=d):d=n[11],d},Sub:S,SubContent:n=>{let i=o(16),a,c,l,u,d;i[0]===n?(a=i[1],c=i[2],l=i[3],u=i[4],d=i[5]):({"data-slot":c,className:a,loop:d,onEscapeKeyDown:l,...u}=n,i[0]=n,i[1]=a,i[2]=c,i[3]=l,i[4]=u,i[5]=d);let f=d===void 0||d,p=t(l),m;i[6]===c?m=i[7]:(m=r(c,`dropdown-menu-sub-content`),i[6]=c,i[7]=m);let h;i[8]===a?h=i[9]:(h=e(`scrollbar`,`text-popover-foreground border-popover bg-popover p-1.25 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 data-side-bottom:slide-in-from-top-1 data-side-left:slide-in-from-right-1 data-side-right:slide-in-from-left-1 data-side-top:slide-in-from-bottom-1 data-side-bottom:slide-out-to-top-1 data-side-left:slide-out-to-right-1 data-side-right:slide-out-to-left-1 data-side-top:slide-out-to-bottom-1 duration-200 ease-out-strong data-state-closed:duration-150 motion-reduce:animate-none! z-50 min-w-32 overflow-hidden rounded-md border shadow-xl space-y-px font-sans`,`my-2 max-h-[calc(var(--radix-dropdown-menu-content-available-height)-16px)] overflow-auto`,a),i[8]=a,i[9]=h);let g;return i[10]!==p||i[11]!==f||i[12]!==u||i[13]!==m||i[14]!==h?(g=/* @__PURE__ */ s(k,{children:/* @__PURE__ */ s(C,{"data-slot":m,className:h,loop:f,onEscapeKeyDown:p,...u})}),i[10]=p,i[11]=f,i[12]=u,i[13]=m,i[14]=h,i[15]=g):g=i[15],g},SubTrigger:t=>{let n=o(19),a,u,f,p,m;n[0]===t?(a=n[1],u=n[2],f=n[3],p=n[4],m=n[5]):({"data-slot":f,className:u,inset:p,children:a,...m}=t,n[0]=t,n[1]=a,n[2]=u,n[3]=f,n[4]=p,n[5]=m);let h;n[6]===f?h=n[7]:(h=r(f,`dropdown-menu-sub-trigger`),n[6]=f,n[7]=h);let g=p&&`pl-8`,_;n[8]!==u||n[9]!==g?(_=e(`focus:bg-accent data-state-open:bg-accent relative flex select-none items-center rounded-md py-1.5 pl-2 pr-9 text-sm outline-hidden`,`data-highlighted:bg-active-menu-item data-state-open:bg-active-menu-item`,`[&>[data-slot=dropdown-menu-sub-trigger-label]>svg]:size-5 [&_svg]:shrink-0`,g,u),n[8]=u,n[9]=g,n[10]=_):_=n[10];let v;n[11]===a?v=n[12]:(v=/* @__PURE__ */ s(l,{child:a,children:j}),n[11]=a,n[12]=v);let y;n[13]===Symbol.for(`react.memo_cache_sentinel`)?(y=/* @__PURE__ */ s(`span`,{className:`absolute right-2 flex items-center`,children:/* @__PURE__ */ s(i,{svg:/* @__PURE__ */ s(d,{weight:`bold`}),className:`size-4`})}),n[13]=y):y=n[13];let b;return n[14]!==m||n[15]!==h||n[16]!==_||n[17]!==v?(b=/* @__PURE__ */ c(w,{"data-slot":h,className:_,...m,children:[v,y]}),n[14]=m,n[15]=h,n[16]=_,n[17]=v,n[18]=b):b=n[18],b},Trigger:D};function j(e){return/* @__PURE__ */ s(`span`,{"data-slot":`dropdown-menu-sub-trigger-label`,className:`contents`,children:e})}function M(e){return/* @__PURE__ */ s(`span`,{"data-slot":`dropdown-menu-checkbox-item-label`,className:`contents`,children:e})}function N(e){return/* @__PURE__ */ s(`span`,{"data-slot":`dropdown-menu-radio-item-label`,className:`contents`,children:e})}export{A as t};
|
package/dist/dropdown-menu.d.ts
CHANGED
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Re-exports for the Dropdown Menu component.
|
|
3
|
+
*
|
|
4
|
+
* @see https://mantle.ngrok.com/components/overlays/dropdown-menu
|
|
5
|
+
*/
|
|
6
|
+
import { t as DropdownMenu } from "./dropdown-menu-CeY498yk.js";
|
|
2
7
|
export { DropdownMenu };
|
package/dist/dropdown-menu.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{t as DropdownMenu}from"./dropdown-menu-
|
|
1
|
+
export{t as DropdownMenu}from"./dropdown-menu-uheL0prz.js";
|
package/dist/empty.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-exports for the Empty component.
|
|
3
|
+
*
|
|
4
|
+
* @see https://mantle.ngrok.com/components/feedback/empty
|
|
5
|
+
*/
|
|
1
6
|
import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
|
|
2
|
-
import { t as WithDataSlot } from "./data-slot-
|
|
3
|
-
import { t as SvgAttributes } from "./icon
|
|
7
|
+
import { t as WithDataSlot } from "./data-slot-BW8KQ9Xo.js";
|
|
8
|
+
import { t as SvgAttributes } from "./icon--purqHRo.js";
|
|
4
9
|
import { ComponentProps, ReactNode } from "react";
|
|
5
10
|
/**
|
|
6
11
|
* The root container for an empty state. Centers content horizontally
|
package/dist/empty.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./cx-CK7o_rVv.js";import{t}from"./data-slot-EM6s2WEU.js";import{t as n}from"./icon-BudQMD2S.js";import{t as r}from"./slot-
|
|
1
|
+
"use client";import{t as e}from"./cx-CK7o_rVv.js";import{t}from"./data-slot-EM6s2WEU.js";import{t as n}from"./icon-BudQMD2S.js";import{t as r}from"./slot-B7rwscwd.js";import{c as i}from"react/compiler-runtime";import{jsx as a}from"react/jsx-runtime";const o={Root:n=>{let o=i(16),s,c,l,u,d;o[0]===n?(s=o[1],c=o[2],l=o[3],u=o[4],d=o[5]):({"data-slot":u,asChild:s,children:c,className:l,...d}=n,o[0]=n,o[1]=s,o[2]=c,o[3]=l,o[4]=u,o[5]=d);let f=s?r:`div`,p;o[6]===u?p=o[7]:(p=t(u,`empty`),o[6]=u,o[7]=p);let m;o[8]===l?m=o[9]:(m=e(`mx-auto flex max-w-lg flex-col items-center p-6 text-center`,l),o[8]=l,o[9]=m);let h;return o[10]!==f||o[11]!==c||o[12]!==d||o[13]!==p||o[14]!==m?(h=/* @__PURE__ */ a(f,{"data-slot":p,className:m,...d,children:c}),o[10]=f,o[11]=c,o[12]=d,o[13]=p,o[14]=m,o[15]=h):h=o[15],h},Icon:r=>{let o=i(14),s,c,l,u;o[0]===r?(s=o[1],c=o[2],l=o[3],u=o[4]):({"data-slot":c,className:s,svg:u,...l}=r,o[0]=r,o[1]=s,o[2]=c,o[3]=l,o[4]=u);let d;o[5]===c?d=o[6]:(d=t(c,`empty-icon`),o[5]=c,o[6]=d);let f;o[7]===s?f=o[8]:(f=e(`mb-1 size-10 text-neutral-400`,s),o[7]=s,o[8]=f);let p;return o[9]!==l||o[10]!==u||o[11]!==d||o[12]!==f?(p=/* @__PURE__ */ a(n,{"data-slot":d,className:f,svg:u,...l}),o[9]=l,o[10]=u,o[11]=d,o[12]=f,o[13]=p):p=o[13],p},Title:n=>{let o=i(16),s,c,l,u,d;o[0]===n?(s=o[1],c=o[2],l=o[3],u=o[4],d=o[5]):({"data-slot":u,asChild:s,children:c,className:l,...d}=n,o[0]=n,o[1]=s,o[2]=c,o[3]=l,o[4]=u,o[5]=d);let f=s?r:`h3`,p;o[6]===u?p=o[7]:(p=t(u,`empty-title`),o[6]=u,o[7]=p);let m;o[8]===l?m=o[9]:(m=e(`text-strong text-pretty text-sm font-medium font-sans`,l),o[8]=l,o[9]=m);let h;return o[10]!==f||o[11]!==c||o[12]!==d||o[13]!==p||o[14]!==m?(h=/* @__PURE__ */ a(f,{"data-slot":p,className:m,...d,children:c}),o[10]=f,o[11]=c,o[12]=d,o[13]=p,o[14]=m,o[15]=h):h=o[15],h},Description:n=>{let o=i(16),s,c,l,u,d;o[0]===n?(s=o[1],c=o[2],l=o[3],u=o[4],d=o[5]):({"data-slot":u,asChild:s,children:c,className:l,...d}=n,o[0]=n,o[1]=s,o[2]=c,o[3]=l,o[4]=u,o[5]=d);let f=s?r:`div`,p;o[6]===u?p=o[7]:(p=t(u,`empty-description`),o[6]=u,o[7]=p);let m;o[8]===l?m=o[9]:(m=e(`text-muted space-y-4 text-pretty text-sm font-sans`,l),o[8]=l,o[9]=m);let h;return o[10]!==f||o[11]!==c||o[12]!==d||o[13]!==p||o[14]!==m?(h=/* @__PURE__ */ a(f,{"data-slot":p,className:m,...d,children:c}),o[10]=f,o[11]=c,o[12]=d,o[13]=p,o[14]=m,o[15]=h):h=o[15],h},Actions:n=>{let o=i(16),s,c,l,u,d;o[0]===n?(s=o[1],c=o[2],l=o[3],u=o[4],d=o[5]):({"data-slot":u,asChild:s,children:c,className:l,...d}=n,o[0]=n,o[1]=s,o[2]=c,o[3]=l,o[4]=u,o[5]=d);let f=s?r:`div`,p;o[6]===u?p=o[7]:(p=t(u,`empty-actions`),o[6]=u,o[7]=p);let m;o[8]===l?m=o[9]:(m=e(`mt-4 flex items-center gap-2`,l),o[8]=l,o[9]=m);let h;return o[10]!==f||o[11]!==c||o[12]!==d||o[13]!==p||o[14]!==m?(h=/* @__PURE__ */ a(f,{"data-slot":p,className:m,...d,children:c}),o[10]=f,o[11]=c,o[12]=d,o[13]=p,o[14]=m,o[15]=h):h=o[15],h}};export{o as Empty};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{createContext as e,createElement as t,useContext as n}from"react";const r=e(void 0),i=({children:e,validation:n})=>t(r.Provider,{value:n},e),a=()=>n(r),o=e=>e!=null&&e!==!1&&e!==`false`,s=e=>(typeof e==`function`?e():e)||void 0,c=({validation:e,defaultAriaInvalid:t})=>e===`error`||!t&&void 0,l=({"aria-invalid":e,defaultAriaInvalid:t=!0,validation:n})=>{let r=o(e)?`error`:s(n),i=e??c({validation:r,defaultAriaInvalid:t});return{isInvalid:o(i),ariaInvalid:i,validation:r}};export{a,s as i,o as n,l as r,i as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{r as e}from"./field-Bpvn4tQp.js";import{createContext as t}from"react";const n=t(null),r=t(null),i=({context:t})=>{if(!t)return{ariaProps:{},validation:void 0};let n=e({defaultAriaInvalid:!1,validation:t.validation});return{ariaProps:{"aria-describedby":`${t.descriptionId} ${t.errorId}`,"aria-errormessage":n.isInvalid?t.errorId:void 0,"aria-invalid":n.ariaInvalid,id:t.controlId,name:t.name},validation:n.validation}};export{n,i as r,r as t};
|