@gv-tech/ui-web 2.29.2 → 2.29.3
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.cjs +1 -1
- package/dist/accordion.mjs +53 -1
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.mjs +99 -1
- package/dist/alert.cjs +1 -1
- package/dist/alert.mjs +1 -1
- package/dist/aspect-ratio.cjs +1 -1
- package/dist/aspect-ratio.mjs +10 -1
- package/dist/attachment.cjs +1 -1
- package/dist/attachment.mjs +25 -24
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.mjs +49 -1
- package/dist/badge.cjs +1 -1
- package/dist/badge.mjs +5 -4
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.mjs +12 -11
- package/dist/bubble.cjs +1 -1
- package/dist/bubble.mjs +4 -3
- package/dist/button-group.cjs +1 -1
- package/dist/button-group.mjs +12 -11
- package/dist/button.cjs +1 -1
- package/dist/button.mjs +4 -3
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.mjs +97 -1
- package/dist/card.cjs +1 -1
- package/dist/card.mjs +1 -1
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.mjs +107 -1
- package/dist/chart.cjs +2 -2
- package/dist/chart.mjs +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.mjs +19 -1
- package/dist/collapsible.cjs +1 -1
- package/dist/collapsible.mjs +12 -12
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.mjs +161 -1
- package/dist/command.cjs +1 -1
- package/dist/command.mjs +89 -1
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.mjs +123 -1
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.mjs +40 -40
- package/dist/direction.cjs +1 -1
- package/dist/direction.mjs +7 -7
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.mjs +1 -1
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.mjs +126 -1
- package/dist/empty.cjs +1 -1
- package/dist/empty.mjs +1 -1
- package/dist/field.cjs +1 -1
- package/dist/field.mjs +36 -36
- package/dist/form.cjs +1 -1
- package/dist/form.mjs +36 -36
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.mjs +30 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +36 -36
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.mjs +26 -26
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.mjs +45 -1
- package/dist/input.cjs +1 -1
- package/dist/input.mjs +1 -1
- package/dist/item.cjs +1 -1
- package/dist/item.mjs +28 -27
- package/dist/kbd.cjs +1 -1
- package/dist/kbd.mjs +1 -1
- package/dist/label.cjs +1 -1
- package/dist/label.mjs +13 -1
- package/dist/marker.cjs +1 -1
- package/dist/marker.mjs +4 -3
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.mjs +133 -1
- package/dist/message-scroller.cjs +1 -1
- package/dist/message-scroller.mjs +59 -1
- package/dist/message.cjs +1 -1
- package/dist/message.mjs +1 -1
- package/dist/native-select.cjs +1 -1
- package/dist/native-select.mjs +1 -1
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.mjs +79 -1
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.mjs +14 -14
- package/dist/popover.cjs +1 -1
- package/dist/popover.mjs +54 -1
- package/dist/progress.cjs +1 -1
- package/dist/progress.mjs +19 -1
- package/dist/questionnaire.cjs +1 -1
- package/dist/questionnaire.mjs +168 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.mjs +25 -1
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.mjs +26 -1
- package/dist/rolldown-runtime-BocRIvOZ.js +1 -0
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.mjs +35 -1
- package/dist/scroll-to-top.cjs +1 -1
- package/dist/search.cjs +1 -1
- package/dist/search.mjs +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.mjs +98 -1
- package/dist/separator.cjs +1 -1
- package/dist/separator.mjs +15 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.mjs +38 -38
- package/dist/{sidebar-C2ax_A0G.mjs → sidebar-DrU3nKaL.mjs} +138 -134
- package/dist/sidebar-uOtFHnBs.js +1 -0
- package/dist/sidebar.cjs +1 -1
- package/dist/sidebar.mjs +3 -1
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.mjs +1 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.mjs +34 -1
- package/dist/spinner.cjs +1 -1
- package/dist/spinner.mjs +1 -1
- package/dist/support-fab.cjs +1 -1
- package/dist/switch.cjs +1 -1
- package/dist/switch.mjs +18 -1
- package/dist/table-of-contents.cjs +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.mjs +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.mjs +44 -1
- package/dist/text.cjs +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.mjs +1 -1
- package/dist/{theme-toggle-BSMwXb8o.mjs → theme-toggle-9KtAIRxy.mjs} +6 -6
- package/dist/theme-toggle-DkNI3bfh.js +1 -0
- package/dist/theme-toggle.cjs +1 -1
- package/dist/theme-toggle.mjs +2 -1
- package/dist/toast.cjs +1 -1
- package/dist/toast.mjs +52 -1
- package/dist/{toaster-D2BV6jez.mjs → toaster-8RrHPtlc.mjs} +8 -8
- package/dist/toaster-AFud4l6l.js +1 -0
- package/dist/toaster.cjs +1 -1
- package/dist/toaster.mjs +2 -1
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.mjs +49 -1
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.mjs +35 -1
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.mjs +34 -1
- package/package.json +1 -1
- package/dist/accordion-Bd0-CZQn.js +0 -1
- package/dist/accordion-Cf6DNbLH.mjs +0 -244
- package/dist/alert-dialog-BxFH0Lwn.mjs +0 -180
- package/dist/alert-dialog-C6vNmGBL.js +0 -1
- package/dist/aspect-ratio-CdQevcDV.mjs +0 -38
- package/dist/aspect-ratio-Z4Nkc56X.js +0 -1
- package/dist/avatar-B5PWwGhY.mjs +0 -136
- package/dist/avatar-CFhYRM52.js +0 -1
- package/dist/calendar-D5qgt2o2.js +0 -1
- package/dist/calendar-DIqXNjOR.mjs +0 -3029
- package/dist/carousel-D-xEqRCX.js +0 -1
- package/dist/carousel-DPjWmM_A.mjs +0 -1169
- package/dist/checkbox-DEPm1BBc.mjs +0 -184
- package/dist/checkbox-DI9Hn_e_.js +0 -1
- package/dist/chunk-HBS6WEDP-D2-yWzIN.js +0 -1
- package/dist/chunk-HBS6WEDP-DD8ZmxRM.mjs +0 -62
- package/dist/combobox-C4y8AbZX.mjs +0 -5644
- package/dist/combobox-boXp-mix.js +0 -3
- package/dist/command-BnW6UIVk.js +0 -1
- package/dist/command-Cbsp7PBx.mjs +0 -542
- package/dist/context-menu-CwsdFpx1.js +0 -1
- package/dist/context-menu-FNgV55ZV.mjs +0 -315
- package/dist/dist-7YyzJonC.mjs +0 -39
- package/dist/dist-AlmToDtO.mjs +0 -17
- package/dist/dist-B76UOZbx.mjs +0 -40
- package/dist/dist-B7Ph9-T6.mjs +0 -44
- package/dist/dist-B7jnFMko.js +0 -1
- package/dist/dist-BOiFyvyS.mjs +0 -10
- package/dist/dist-BQkDLAY7.js +0 -1
- package/dist/dist-Bal96K8t.js +0 -1
- package/dist/dist-Blgp9lfa.js +0 -1
- package/dist/dist-BnlI08Je.mjs +0 -96
- package/dist/dist-Bu-uFV1C.mjs +0 -191
- package/dist/dist-C2BHd5i1.mjs +0 -460
- package/dist/dist-C516Vwxy.mjs +0 -116
- package/dist/dist-CBlqVBTk.js +0 -1
- package/dist/dist-CDcZ8WMF.js +0 -1
- package/dist/dist-CDksSmTD.mjs +0 -189
- package/dist/dist-CF-qVmmV.js +0 -1
- package/dist/dist-CIgGRTmJ.js +0 -1
- package/dist/dist-CJqVmdrU.js +0 -1
- package/dist/dist-COqM3IM6.mjs +0 -89
- package/dist/dist-CbWpCWog.mjs +0 -180
- package/dist/dist-CcGLWbPa.mjs +0 -19
- package/dist/dist-Cn4F8XlY.mjs +0 -220
- package/dist/dist-CoTs6T03.js +0 -1
- package/dist/dist-Co_xSt6d.js +0 -1
- package/dist/dist-Cu0GG-3j.mjs +0 -15
- package/dist/dist-DJqkhIXb.js +0 -1
- package/dist/dist-DKI-XYwI.mjs +0 -98
- package/dist/dist-DQeXXRYL.mjs +0 -201
- package/dist/dist-DW2ltK5-.js +0 -1
- package/dist/dist-DWcKY_sJ.js +0 -1
- package/dist/dist-DZiOPWLp.js +0 -1
- package/dist/dist-DdAeWIwf.js +0 -1
- package/dist/dist-DhubV_gU.mjs +0 -4
- package/dist/dist-DmY7elIQ.js +0 -1
- package/dist/dist-DoWtzxYc.mjs +0 -684
- package/dist/dist-DuQlxGyN.js +0 -1
- package/dist/dist-KFF7QKuL.js +0 -1
- package/dist/dist-RXrZgzkO.js +0 -1
- package/dist/dist-R_G5UQRm.js +0 -1
- package/dist/dist-dwRwxUPt.mjs +0 -22
- package/dist/dist-fzmUl3YX.mjs +0 -553
- package/dist/dist-hBsne-A2.mjs +0 -92
- package/dist/dist-ljiGYyay.mjs +0 -29
- package/dist/dist-pqMcQ1Nk.js +0 -1
- package/dist/dist-zmnQp5Xf.js +0 -1
- package/dist/dropdown-menu-ChuqZeix.js +0 -1
- package/dist/dropdown-menu-DU7KNoXP.mjs +0 -311
- package/dist/es2015-BooeZGhO.mjs +0 -554
- package/dist/es2015-Dggv0vx3.js +0 -41
- package/dist/floating-ui.react-dom-2hihjuTL.mjs +0 -1057
- package/dist/floating-ui.react-dom-BtFIezY4.js +0 -1
- package/dist/hover-card-BeqCs_2R.js +0 -1
- package/dist/hover-card-w8PmCyw2.mjs +0 -176
- package/dist/input-otp-Bn_Uy1mR.mjs +0 -398
- package/dist/input-otp-CTRB_0Xp.js +0 -20
- package/dist/label-Da0kELfR.mjs +0 -26
- package/dist/label-JMa1tFfC.js +0 -1
- package/dist/menubar-B7sRxpE4.mjs +0 -405
- package/dist/menubar-Bd-QKMcw.js +0 -1
- package/dist/message-scroller-B8AU0v3Y.mjs +0 -805
- package/dist/message-scroller-BJb4Mh_I.js +0 -1
- package/dist/navigation-menu-B-RwfscB.mjs +0 -638
- package/dist/navigation-menu-kPwxYZCR.js +0 -1
- package/dist/popover-Cq5cTNtC.js +0 -1
- package/dist/popover-T6Ra737i.mjs +0 -241
- package/dist/progress-e9YzxvRo.mjs +0 -90
- package/dist/progress-iUSEI7J9.js +0 -6
- package/dist/questionnaire-BLCvUX1C.mjs +0 -1137
- package/dist/questionnaire-CcymIPae.js +0 -1
- package/dist/radio-group-BKpiDcIb.mjs +0 -264
- package/dist/radio-group-DPEzCmxe.js +0 -1
- package/dist/resizable-ByF0NmN9.mjs +0 -2153
- package/dist/resizable-oL3v42zT.js +0 -1
- package/dist/rolldown-runtime-D7yIeQp2.mjs +0 -13
- package/dist/rolldown-runtime-DbbDpzbe.js +0 -1
- package/dist/scroll-area-BzNeOQ6C.mjs +0 -568
- package/dist/scroll-area-s4_ZJK59.js +0 -1
- package/dist/select-B_nRxX2Y.mjs +0 -831
- package/dist/select-j5_dph9S.js +0 -1
- package/dist/separator-Bn-3XUSJ.js +0 -1
- package/dist/separator-CCcMNS78.mjs +0 -38
- package/dist/sidebar-Cnem2n5A.js +0 -1
- package/dist/slider-B2PUTc7W.mjs +0 -484
- package/dist/slider-wZuXwuib.js +0 -1
- package/dist/switch-CD675xU7.js +0 -1
- package/dist/switch-ikzIzrme.mjs +0 -172
- package/dist/tabs-DCm5zOYB.mjs +0 -158
- package/dist/tabs-fcahDQDp.js +0 -1
- package/dist/theme-toggle-BGTJsIA-.js +0 -1
- package/dist/toast-C31v9P1K.js +0 -1
- package/dist/toast-vU5ISM03.mjs +0 -445
- package/dist/toaster-CaJyOCyC.js +0 -1
- package/dist/toggle-CSZdCCwX.js +0 -1
- package/dist/toggle-Cv9YYwLI.mjs +0 -58
- package/dist/toggle-group-RT8wyBwK.js +0 -1
- package/dist/toggle-group-qvjasXS-.mjs +0 -166
- package/dist/tooltip-7ERoN5mV.mjs +0 -386
- package/dist/tooltip-CC9_spXT.js +0 -1
package/dist/toggle.mjs
CHANGED
|
@@ -1,2 +1,36 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
import { cn as e } from "cn";
|
|
3
|
+
import { Toggle as t } from "radix-ui";
|
|
4
|
+
import "react";
|
|
5
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
6
|
+
import { cva as r } from "class-variance-authority";
|
|
7
|
+
// src/toggle.tsx
|
|
8
|
+
var i = r("group/toggle hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
default: "bg-transparent",
|
|
12
|
+
outline: "border-input hover:bg-muted border bg-transparent"
|
|
13
|
+
},
|
|
14
|
+
size: {
|
|
15
|
+
default: "h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2",
|
|
16
|
+
sm: "h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&_svg:not([class*='size-'])]:size-3.5",
|
|
17
|
+
lg: "h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
defaultVariants: {
|
|
21
|
+
variant: "default",
|
|
22
|
+
size: "default"
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
function a({ className: r, variant: a = "default", size: o = "default", ...s }) {
|
|
26
|
+
return /* @__PURE__ */ n(t.Root, {
|
|
27
|
+
"data-slot": "toggle",
|
|
28
|
+
className: e(i({
|
|
29
|
+
variant: a,
|
|
30
|
+
size: o,
|
|
31
|
+
className: r
|
|
32
|
+
})),
|
|
33
|
+
...s
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
export { a as Toggle, i as toggleVariants };
|
package/dist/tooltip.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./
|
|
1
|
+
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-BocRIvOZ.js");let t=require("cn"),n=require("radix-ui"),r=require("react");r=e.t(r);let i=require("react/jsx-runtime");function a({delayDuration:e=0,...t}){return(0,i.jsx)(n.Tooltip.Provider,{"data-slot":`tooltip-provider`,delayDuration:e,...t})}function o({...e}){return(0,i.jsx)(n.Tooltip.Root,{"data-slot":`tooltip`,...e})}function s({...e}){return(0,i.jsx)(n.Tooltip.Trigger,{"data-slot":`tooltip-trigger`,...e})}function c({className:e,sideOffset:r=0,children:a,...o}){return(0,i.jsx)(n.Tooltip.Portal,{children:(0,i.jsxs)(n.Tooltip.Content,{"data-slot":`tooltip-content`,sideOffset:r,className:(0,t.cn)(`bg-foreground text-background data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-md px-3 py-1.5 text-xs has-data-[slot=kbd]:pe-1.5 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm`,e),...o,children:[a,(0,i.jsx)(n.Tooltip.Arrow,{className:`bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]`})]})})}exports.Tooltip=o,exports.TooltipContent=c,exports.TooltipProvider=a,exports.TooltipTrigger=s;
|
package/dist/tooltip.mjs
CHANGED
|
@@ -1,3 +1,36 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
|
|
3
|
+
import { cn as e } from "cn";
|
|
4
|
+
import { Tooltip as t } from "radix-ui";
|
|
5
|
+
import "react";
|
|
6
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
7
|
+
// src/tooltip.tsx
|
|
8
|
+
function i({ delayDuration: e = 0, ...r }) {
|
|
9
|
+
return /* @__PURE__ */ n(t.Provider, {
|
|
10
|
+
"data-slot": "tooltip-provider",
|
|
11
|
+
delayDuration: e,
|
|
12
|
+
...r
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function a({ ...e }) {
|
|
16
|
+
return /* @__PURE__ */ n(t.Root, {
|
|
17
|
+
"data-slot": "tooltip",
|
|
18
|
+
...e
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function o({ ...e }) {
|
|
22
|
+
return /* @__PURE__ */ n(t.Trigger, {
|
|
23
|
+
"data-slot": "tooltip-trigger",
|
|
24
|
+
...e
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function s({ className: i, sideOffset: a = 0, children: o, ...s }) {
|
|
28
|
+
return /* @__PURE__ */ n(t.Portal, { children: /* @__PURE__ */ r(t.Content, {
|
|
29
|
+
"data-slot": "tooltip-content",
|
|
30
|
+
sideOffset: a,
|
|
31
|
+
className: e("bg-foreground text-background data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-md px-3 py-1.5 text-xs has-data-[slot=kbd]:pe-1.5 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm", i),
|
|
32
|
+
...s,
|
|
33
|
+
children: [o, /* @__PURE__ */ n(t.Arrow, { className: "bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })]
|
|
34
|
+
}) });
|
|
35
|
+
}
|
|
36
|
+
export { a as Tooltip, s as TooltipContent, i as TooltipProvider, o as TooltipTrigger };
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./dist-CoTs6T03.js"),n=require("./dist-DW2ltK5-.js"),r=require("./dist-Co_xSt6d.js"),i=require("./dist-CJqVmdrU.js"),a=require("./dist-DZiOPWLp.js"),o=require("./dist-zmnQp5Xf.js"),s=require("./dist-CBlqVBTk.js"),c=require("./dist-DWcKY_sJ.js"),l=require("./dist-RXrZgzkO.js"),u=require("./dist-DdAeWIwf.js");let d=require("lucide-react"),f=require("react"),p=e.r(f,1);f=e.r(f);let m=require("react/jsx-runtime");var h=Object.defineProperty,g=(e,t)=>h(e,`name`,{value:t,configurable:!0}),_={Single:`single`,Multiple:`multiple`},v={Vertical:`vertical`,Horizontal:`horizontal`},y={LTR:`ltr`,RTL:`rtl`},b=`Accordion`,x=[`Home`,`End`,`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`],[S,{useGetCollection:C,createCollectionScope:w}]=r.n(b),[T,E]=n.t(b,[w,c.i]),D=c.i(),O=p.forwardRef(g(function(e,t){let{type:n,...r}=e,i=r,a=r;return(0,m.jsx)(S.Provider,{scope:e.__scopeAccordion,children:n===_.Multiple?(0,m.jsx)(P,{...a,ref:t}):(0,m.jsx)(N,{...i,ref:t})})},`Accordion`)),[k,A]=T(b),[j,M]=T(b,{collapsible:!1}),N=p.forwardRef(g(function(e,t){let{value:n,defaultValue:r,onValueChange:i=g(()=>{},`onValueChange`),collapsible:a=!1,...s}=e,[c,l]=o.t({prop:n,defaultProp:r??``,onChange:i,caller:b});return(0,m.jsx)(k,{scope:e.__scopeAccordion,value:p.useMemo(()=>c?[c]:[],[c]),onItemOpen:l,onItemClose:p.useCallback(()=>a&&l(``),[a,l]),children:(0,m.jsx)(j,{scope:e.__scopeAccordion,collapsible:a,children:(0,m.jsx)(L,{...s,ref:t})})})},`AccordionImplSingle`)),P=p.forwardRef(g(function(e,t){let{value:n,defaultValue:r,onValueChange:i=g(()=>{},`onValueChange`),...a}=e,[s,c]=o.t({prop:n,defaultProp:r??[],onChange:i,caller:b}),l=p.useCallback(e=>c((t=[])=>[...t,e]),[c]),u=p.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,m.jsx)(k,{scope:e.__scopeAccordion,value:s,onItemOpen:l,onItemClose:u,children:(0,m.jsx)(j,{scope:e.__scopeAccordion,collapsible:!0,children:(0,m.jsx)(L,{...a,ref:t})})})},`AccordionImplMultiple`)),[F,I]=T(b),L=p.forwardRef(g(function(e,t){let{__scopeAccordion:n,disabled:r,dir:o,orientation:c=v.Vertical,...l}=e,d=p.useRef(null),f=i.a(d,t),h=C(n),_=u.n(o)===y.LTR,b=a.t(e.onKeyDown,e=>{if(!x.includes(e.key))return;let t=h(),n=e.target,r=t.filter(([,e])=>!e.element.disabled),i=r.findIndex(([,e])=>e.element===n),a=r.size;if(i===-1)return;e.preventDefault();let o=i,s=a-1,l=g(()=>{o=i+1,o>s&&(o=0)},`moveNext`),u=g(()=>{o=i-1,o<0&&(o=s)},`movePrev`);switch(e.key){case`Home`:o=0;break;case`End`:o=s;break;case`ArrowRight`:c===v.Horizontal&&(_?l():u());break;case`ArrowDown`:c===v.Vertical&&l();break;case`ArrowLeft`:c===v.Horizontal&&(_?u():l());break;case`ArrowUp`:c===v.Vertical&&u()}let d=o%a;r.at(d)?.element.focus()});return(0,m.jsx)(F,{scope:n,disabled:r,direction:o,orientation:c,children:(0,m.jsx)(S.Slot,{scope:n,children:(0,m.jsx)(s.t.div,{...l,"data-orientation":c,ref:f,onKeyDown:r?void 0:b})})})},`AccordionImpl`)),R=`AccordionItem`,[z,B]=T(R),V=p.forwardRef(g(function(e,t){let{__scopeAccordion:n,value:r,...i}=e,a=I(R,n),o=A(R,n),s=D(n),u=l.t(),d=r&&o.value.includes(r)||!1,f=a.disabled||e.disabled;return(0,m.jsx)(z,{scope:n,open:d,disabled:f,triggerId:u,children:(0,m.jsx)(c.t,{"data-orientation":a.orientation,"data-state":J(d),...s,...i,ref:t,disabled:f,open:d,onOpenChange:e=>{e?o.onItemOpen(r):o.onItemClose(r)}})})},`AccordionItem`)),H=`AccordionHeader`,U=p.forwardRef(g(function(e,t){let{__scopeAccordion:n,...r}=e,i=I(b,n),a=B(H,n);return(0,m.jsx)(s.t.h3,{"data-orientation":i.orientation,"data-state":J(a.open),"data-disabled":a.disabled?``:void 0,...r,ref:t})},`AccordionHeader`)),W=`AccordionTrigger`,G=p.forwardRef(g(function(e,t){let{__scopeAccordion:n,...r}=e,i=I(b,n),a=B(W,n),o=M(W,n),s=D(n);return(0,m.jsx)(S.ItemSlot,{scope:n,children:(0,m.jsx)(c.r,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...r,ref:t})})},`AccordionTrigger`)),K=`AccordionContent`,q=p.forwardRef(g(function(e,t){let{__scopeAccordion:n,...r}=e,i=I(b,n),a=B(K,n),o=D(n);return(0,m.jsx)(c.n,{role:`region`,"aria-labelledby":a.triggerId,"data-orientation":i.orientation,...o,...r,ref:t,style:{"--radix-accordion-content-height":`var(--radix-collapsible-content-height)`,"--radix-accordion-content-width":`var(--radix-collapsible-content-width)`,...e.style}})},`AccordionContent`));function J(e){return e?`open`:`closed`}g(J,`getState`);function Y({className:e,...n}){return(0,m.jsx)(O,{"data-slot":`accordion`,className:t.t(`flex w-full flex-col`,e),...n})}function X({className:e,...n}){return(0,m.jsx)(V,{"data-slot":`accordion-item`,className:t.t(`not-last:border-b`,e),...n})}function Z({className:e,children:n,...r}){return(0,m.jsx)(U,{className:`flex`,children:(0,m.jsxs)(G,{"data-slot":`accordion-trigger`,className:t.t(`group/accordion-trigger focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:after:border-ring **:data-[slot=accordion-trigger-icon]:text-muted-foreground relative flex flex-1 items-start justify-between rounded-lg border border-transparent py-2.5 text-start text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-3 disabled:pointer-events-none disabled:opacity-50 **:data-[slot=accordion-trigger-icon]:ms-auto **:data-[slot=accordion-trigger-icon]:size-4`,e),...r,children:[n,(0,m.jsx)(d.ChevronDownIcon,{"data-slot":`accordion-trigger-icon`,className:`pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden`}),(0,m.jsx)(d.ChevronUpIcon,{"data-slot":`accordion-trigger-icon`,className:`pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline`})]})})}function Q({className:e,children:n,...r}){return(0,m.jsx)(q,{"data-slot":`accordion-content`,className:`data-open:animate-accordion-down data-closed:animate-accordion-up overflow-hidden text-sm`,...r,children:(0,m.jsx)(`div`,{className:t.t(`[&_a]:hover:text-foreground h-(--radix-accordion-content-height) pt-0 pb-2.5 [&_a]:underline [&_a]:underline-offset-3 [&_p:not(:last-child)]:mb-4`,e),children:n})})}Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return Z}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return X}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return Y}});
|
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./dist-DoWtzxYc.mjs";
|
|
2
|
-
import { t } from "./dist-COqM3IM6.mjs";
|
|
3
|
-
import { n } from "./dist-C2BHd5i1.mjs";
|
|
4
|
-
import { a as r } from "./dist-C516Vwxy.mjs";
|
|
5
|
-
import { t as i } from "./dist-B76UOZbx.mjs";
|
|
6
|
-
import { t as a } from "./dist-DKI-XYwI.mjs";
|
|
7
|
-
import { t as o } from "./dist-B7Ph9-T6.mjs";
|
|
8
|
-
import { i as s, n as c, r as l, t as u } from "./dist-hBsne-A2.mjs";
|
|
9
|
-
import { t as d } from "./dist-Cu0GG-3j.mjs";
|
|
10
|
-
import { n as f } from "./dist-dwRwxUPt.mjs";
|
|
11
|
-
import { ChevronDownIcon as p, ChevronUpIcon as m } from "lucide-react";
|
|
12
|
-
import * as h from "react";
|
|
13
|
-
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
14
|
-
// ../../node_modules/.bun/@radix-ui+react-accordion@1.3.1+2b23df507bdda662/node_modules/@radix-ui/react-accordion/dist/index.mjs
|
|
15
|
-
var v = Object.defineProperty, y = (e, t) => v(e, "name", {
|
|
16
|
-
value: t,
|
|
17
|
-
configurable: !0
|
|
18
|
-
}), b = {
|
|
19
|
-
Single: "single",
|
|
20
|
-
Multiple: "multiple"
|
|
21
|
-
}, x = {
|
|
22
|
-
Vertical: "vertical",
|
|
23
|
-
Horizontal: "horizontal"
|
|
24
|
-
}, S = {
|
|
25
|
-
LTR: "ltr",
|
|
26
|
-
RTL: "rtl"
|
|
27
|
-
}, C = "Accordion", w = [
|
|
28
|
-
"Home",
|
|
29
|
-
"End",
|
|
30
|
-
"ArrowDown",
|
|
31
|
-
"ArrowUp",
|
|
32
|
-
"ArrowLeft",
|
|
33
|
-
"ArrowRight"
|
|
34
|
-
], [T, { useGetCollection: E, createCollectionScope: D }] = n(C), [O, ee] = t(C, [D, s]), k = s(), A = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ y(function(e, t) {
|
|
35
|
-
let { type: n, ...r } = e, i = r, a = r;
|
|
36
|
-
return /* @__PURE__ */ g(T.Provider, {
|
|
37
|
-
scope: e.__scopeAccordion,
|
|
38
|
-
children: n === b.Multiple ? /* @__PURE__ */ g(I, {
|
|
39
|
-
...a,
|
|
40
|
-
ref: t
|
|
41
|
-
}) : /* @__PURE__ */ g(F, {
|
|
42
|
-
...i,
|
|
43
|
-
ref: t
|
|
44
|
-
})
|
|
45
|
-
});
|
|
46
|
-
}, "Accordion")), [j, M] = O(C), [N, P] = O(C, { collapsible: !1 }), F = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ y(function(e, t) {
|
|
47
|
-
let { value: n, defaultValue: r, onValueChange: i = /* @__PURE__ */ y(() => {}, "onValueChange"), collapsible: o = !1, ...s } = e, [c, l] = a({
|
|
48
|
-
prop: n,
|
|
49
|
-
defaultProp: r ?? "",
|
|
50
|
-
onChange: i,
|
|
51
|
-
caller: C
|
|
52
|
-
});
|
|
53
|
-
return /* @__PURE__ */ g(j, {
|
|
54
|
-
scope: e.__scopeAccordion,
|
|
55
|
-
value: h.useMemo(() => c ? [c] : [], [c]),
|
|
56
|
-
onItemOpen: l,
|
|
57
|
-
onItemClose: h.useCallback(() => o && l(""), [o, l]),
|
|
58
|
-
children: /* @__PURE__ */ g(N, {
|
|
59
|
-
scope: e.__scopeAccordion,
|
|
60
|
-
collapsible: o,
|
|
61
|
-
children: /* @__PURE__ */ g(z, {
|
|
62
|
-
...s,
|
|
63
|
-
ref: t
|
|
64
|
-
})
|
|
65
|
-
})
|
|
66
|
-
});
|
|
67
|
-
}, "AccordionImplSingle")), I = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ y(function(e, t) {
|
|
68
|
-
let { value: n, defaultValue: r, onValueChange: i = /* @__PURE__ */ y(() => {}, "onValueChange"), ...o } = e, [s, c] = a({
|
|
69
|
-
prop: n,
|
|
70
|
-
defaultProp: r ?? [],
|
|
71
|
-
onChange: i,
|
|
72
|
-
caller: C
|
|
73
|
-
}), l = h.useCallback((e) => c((t = []) => [...t, e]), [c]), u = h.useCallback((e) => c((t = []) => t.filter((t) => t !== e)), [c]);
|
|
74
|
-
return /* @__PURE__ */ g(j, {
|
|
75
|
-
scope: e.__scopeAccordion,
|
|
76
|
-
value: s,
|
|
77
|
-
onItemOpen: l,
|
|
78
|
-
onItemClose: u,
|
|
79
|
-
children: /* @__PURE__ */ g(N, {
|
|
80
|
-
scope: e.__scopeAccordion,
|
|
81
|
-
collapsible: !0,
|
|
82
|
-
children: /* @__PURE__ */ g(z, {
|
|
83
|
-
...o,
|
|
84
|
-
ref: t
|
|
85
|
-
})
|
|
86
|
-
})
|
|
87
|
-
});
|
|
88
|
-
}, "AccordionImplMultiple")), [L, R] = O(C), z = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ y(function(e, t) {
|
|
89
|
-
let { __scopeAccordion: n, disabled: a, dir: s, orientation: c = x.Vertical, ...l } = e, u = h.useRef(null), d = r(u, t), p = E(n), m = f(s) === S.LTR, _ = i(e.onKeyDown, (e) => {
|
|
90
|
-
if (!w.includes(e.key)) return;
|
|
91
|
-
let t = p(), n = e.target, r = t.filter(([, e]) => !e.element.disabled), i = r.findIndex(([, e]) => e.element === n), a = r.size;
|
|
92
|
-
if (i === -1) return;
|
|
93
|
-
e.preventDefault();
|
|
94
|
-
let o = i, s = a - 1, l = /* @__PURE__ */ y(() => {
|
|
95
|
-
o = i + 1, o > s && (o = 0);
|
|
96
|
-
}, "moveNext"), u = /* @__PURE__ */ y(() => {
|
|
97
|
-
o = i - 1, o < 0 && (o = s);
|
|
98
|
-
}, "movePrev");
|
|
99
|
-
switch (e.key) {
|
|
100
|
-
case "Home":
|
|
101
|
-
o = 0;
|
|
102
|
-
break;
|
|
103
|
-
case "End":
|
|
104
|
-
o = s;
|
|
105
|
-
break;
|
|
106
|
-
case "ArrowRight":
|
|
107
|
-
c === x.Horizontal && (m ? l() : u());
|
|
108
|
-
break;
|
|
109
|
-
case "ArrowDown":
|
|
110
|
-
c === x.Vertical && l();
|
|
111
|
-
break;
|
|
112
|
-
case "ArrowLeft":
|
|
113
|
-
c === x.Horizontal && (m ? u() : l());
|
|
114
|
-
break;
|
|
115
|
-
case "ArrowUp": c === x.Vertical && u();
|
|
116
|
-
}
|
|
117
|
-
let d = o % a;
|
|
118
|
-
r.at(d)?.element.focus();
|
|
119
|
-
});
|
|
120
|
-
return /* @__PURE__ */ g(L, {
|
|
121
|
-
scope: n,
|
|
122
|
-
disabled: a,
|
|
123
|
-
direction: s,
|
|
124
|
-
orientation: c,
|
|
125
|
-
children: /* @__PURE__ */ g(T.Slot, {
|
|
126
|
-
scope: n,
|
|
127
|
-
children: /* @__PURE__ */ g(o.div, {
|
|
128
|
-
...l,
|
|
129
|
-
"data-orientation": c,
|
|
130
|
-
ref: d,
|
|
131
|
-
onKeyDown: a ? void 0 : _
|
|
132
|
-
})
|
|
133
|
-
})
|
|
134
|
-
});
|
|
135
|
-
}, "AccordionImpl")), B = "AccordionItem", [V, H] = O(B), U = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ y(function(e, t) {
|
|
136
|
-
let { __scopeAccordion: n, value: r, ...i } = e, a = R(B, n), o = M(B, n), s = k(n), c = d(), l = r && o.value.includes(r) || !1, f = a.disabled || e.disabled;
|
|
137
|
-
return /* @__PURE__ */ g(V, {
|
|
138
|
-
scope: n,
|
|
139
|
-
open: l,
|
|
140
|
-
disabled: f,
|
|
141
|
-
triggerId: c,
|
|
142
|
-
children: /* @__PURE__ */ g(u, {
|
|
143
|
-
"data-orientation": a.orientation,
|
|
144
|
-
"data-state": X(l),
|
|
145
|
-
...s,
|
|
146
|
-
...i,
|
|
147
|
-
ref: t,
|
|
148
|
-
disabled: f,
|
|
149
|
-
open: l,
|
|
150
|
-
onOpenChange: (e) => {
|
|
151
|
-
e ? o.onItemOpen(r) : o.onItemClose(r);
|
|
152
|
-
}
|
|
153
|
-
})
|
|
154
|
-
});
|
|
155
|
-
}, "AccordionItem")), W = "AccordionHeader", G = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ y(function(e, t) {
|
|
156
|
-
let { __scopeAccordion: n, ...r } = e, i = R(C, n), a = H(W, n);
|
|
157
|
-
return /* @__PURE__ */ g(o.h3, {
|
|
158
|
-
"data-orientation": i.orientation,
|
|
159
|
-
"data-state": X(a.open),
|
|
160
|
-
"data-disabled": a.disabled ? "" : void 0,
|
|
161
|
-
...r,
|
|
162
|
-
ref: t
|
|
163
|
-
});
|
|
164
|
-
}, "AccordionHeader")), K = "AccordionTrigger", q = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ y(function(e, t) {
|
|
165
|
-
let { __scopeAccordion: n, ...r } = e, i = R(C, n), a = H(K, n), o = P(K, n), s = k(n);
|
|
166
|
-
return /* @__PURE__ */ g(T.ItemSlot, {
|
|
167
|
-
scope: n,
|
|
168
|
-
children: /* @__PURE__ */ g(l, {
|
|
169
|
-
"aria-disabled": a.open && !o.collapsible || void 0,
|
|
170
|
-
"data-orientation": i.orientation,
|
|
171
|
-
id: a.triggerId,
|
|
172
|
-
...s,
|
|
173
|
-
...r,
|
|
174
|
-
ref: t
|
|
175
|
-
})
|
|
176
|
-
});
|
|
177
|
-
}, "AccordionTrigger")), J = "AccordionContent", Y = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ y(function(e, t) {
|
|
178
|
-
let { __scopeAccordion: n, ...r } = e, i = R(C, n), a = H(J, n), o = k(n);
|
|
179
|
-
return /* @__PURE__ */ g(c, {
|
|
180
|
-
role: "region",
|
|
181
|
-
"aria-labelledby": a.triggerId,
|
|
182
|
-
"data-orientation": i.orientation,
|
|
183
|
-
...o,
|
|
184
|
-
...r,
|
|
185
|
-
ref: t,
|
|
186
|
-
style: {
|
|
187
|
-
"--radix-accordion-content-height": "var(--radix-collapsible-content-height)",
|
|
188
|
-
"--radix-accordion-content-width": "var(--radix-collapsible-content-width)",
|
|
189
|
-
...e.style
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
}, "AccordionContent"));
|
|
193
|
-
function X(e) {
|
|
194
|
-
return e ? "open" : "closed";
|
|
195
|
-
}
|
|
196
|
-
y(X, "getState");
|
|
197
|
-
// src/accordion.tsx
|
|
198
|
-
function Z({ className: t, ...n }) {
|
|
199
|
-
return /* @__PURE__ */ g(A, {
|
|
200
|
-
"data-slot": "accordion",
|
|
201
|
-
className: e("flex w-full flex-col", t),
|
|
202
|
-
...n
|
|
203
|
-
});
|
|
204
|
-
}
|
|
205
|
-
function Q({ className: t, ...n }) {
|
|
206
|
-
return /* @__PURE__ */ g(U, {
|
|
207
|
-
"data-slot": "accordion-item",
|
|
208
|
-
className: e("not-last:border-b", t),
|
|
209
|
-
...n
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
function $({ className: t, children: n, ...r }) {
|
|
213
|
-
return /* @__PURE__ */ g(G, {
|
|
214
|
-
className: "flex",
|
|
215
|
-
children: /* @__PURE__ */ _(q, {
|
|
216
|
-
"data-slot": "accordion-trigger",
|
|
217
|
-
className: e("group/accordion-trigger focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:after:border-ring **:data-[slot=accordion-trigger-icon]:text-muted-foreground relative flex flex-1 items-start justify-between rounded-lg border border-transparent py-2.5 text-start text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-3 disabled:pointer-events-none disabled:opacity-50 **:data-[slot=accordion-trigger-icon]:ms-auto **:data-[slot=accordion-trigger-icon]:size-4", t),
|
|
218
|
-
...r,
|
|
219
|
-
children: [
|
|
220
|
-
n,
|
|
221
|
-
/* @__PURE__ */ g(p, {
|
|
222
|
-
"data-slot": "accordion-trigger-icon",
|
|
223
|
-
className: "pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden"
|
|
224
|
-
}),
|
|
225
|
-
/* @__PURE__ */ g(m, {
|
|
226
|
-
"data-slot": "accordion-trigger-icon",
|
|
227
|
-
className: "pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline"
|
|
228
|
-
})
|
|
229
|
-
]
|
|
230
|
-
})
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
function te({ className: t, children: n, ...r }) {
|
|
234
|
-
return /* @__PURE__ */ g(Y, {
|
|
235
|
-
"data-slot": "accordion-content",
|
|
236
|
-
className: "data-open:animate-accordion-down data-closed:animate-accordion-up overflow-hidden text-sm",
|
|
237
|
-
...r,
|
|
238
|
-
children: /* @__PURE__ */ g("div", {
|
|
239
|
-
className: e("[&_a]:hover:text-foreground h-(--radix-accordion-content-height) pt-0 pb-2.5 [&_a]:underline [&_a]:underline-offset-3 [&_p:not(:last-child)]:mb-4", t),
|
|
240
|
-
children: n
|
|
241
|
-
})
|
|
242
|
-
});
|
|
243
|
-
}
|
|
244
|
-
export { $ as i, te as n, Q as r, Z as t };
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./dist-DoWtzxYc.mjs";
|
|
2
|
-
import { t } from "./dist-COqM3IM6.mjs";
|
|
3
|
-
import { a as n } from "./dist-C516Vwxy.mjs";
|
|
4
|
-
import { a as r, c as i, i as a, l as o, n as s, o as c, r as l, s as u, t as d } from "./dist-DQeXXRYL.mjs";
|
|
5
|
-
import { t as f } from "./dist-B76UOZbx.mjs";
|
|
6
|
-
import { Button as p } from "./button.mjs";
|
|
7
|
-
import * as m from "react";
|
|
8
|
-
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
9
|
-
// ../../node_modules/.bun/@radix-ui+react-alert-dialog@1.2.1+2b23df507bdda662/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs
|
|
10
|
-
var _ = Object.defineProperty, v = (e, t) => _(e, "name", {
|
|
11
|
-
value: t,
|
|
12
|
-
configurable: !0
|
|
13
|
-
}), [y, b] = t("AlertDialog", [o]), x = o(), S = /* @__PURE__ */ v((e) => {
|
|
14
|
-
let { __scopeAlertDialog: t, ...n } = e, r = x(t);
|
|
15
|
-
return /* @__PURE__ */ h(d, {
|
|
16
|
-
...r,
|
|
17
|
-
...n,
|
|
18
|
-
modal: !0
|
|
19
|
-
});
|
|
20
|
-
}, "AlertDialog"), C = m.forwardRef(/* @__PURE__ */ v(function(e, t) {
|
|
21
|
-
let { __scopeAlertDialog: n, ...r } = e, a = x(n);
|
|
22
|
-
return /* @__PURE__ */ h(i, {
|
|
23
|
-
...a,
|
|
24
|
-
...r,
|
|
25
|
-
ref: t
|
|
26
|
-
});
|
|
27
|
-
}, "AlertDialogTrigger")), w = /* @__PURE__ */ v((e) => {
|
|
28
|
-
let { __scopeAlertDialog: t, ...n } = e, r = x(t);
|
|
29
|
-
return /* @__PURE__ */ h(c, {
|
|
30
|
-
...r,
|
|
31
|
-
...n
|
|
32
|
-
});
|
|
33
|
-
}, "AlertDialogPortal"), T = m.forwardRef(/* @__PURE__ */ v(function(e, t) {
|
|
34
|
-
let { __scopeAlertDialog: n, ...i } = e, a = x(n);
|
|
35
|
-
return /* @__PURE__ */ h(r, {
|
|
36
|
-
...a,
|
|
37
|
-
...i,
|
|
38
|
-
ref: t
|
|
39
|
-
});
|
|
40
|
-
}, "AlertDialogOverlay")), [E, D] = y("AlertDialogContent"), O = m.forwardRef(/* @__PURE__ */ v(function(e, t) {
|
|
41
|
-
let { __scopeAlertDialog: r, children: i, ...a } = e, o = x(r), s = m.useRef(null), c = n(t, s), u = m.useRef(null);
|
|
42
|
-
return /* @__PURE__ */ h(E, {
|
|
43
|
-
scope: r,
|
|
44
|
-
cancelRef: u,
|
|
45
|
-
children: /* @__PURE__ */ h(l, {
|
|
46
|
-
role: "alertdialog",
|
|
47
|
-
...o,
|
|
48
|
-
...a,
|
|
49
|
-
ref: c,
|
|
50
|
-
onOpenAutoFocus: f(a.onOpenAutoFocus, (e) => {
|
|
51
|
-
e.preventDefault(), u.current?.focus({ preventScroll: !0 });
|
|
52
|
-
}),
|
|
53
|
-
onPointerDownOutside: (e) => e.preventDefault(),
|
|
54
|
-
onInteractOutside: (e) => e.preventDefault(),
|
|
55
|
-
children: i
|
|
56
|
-
})
|
|
57
|
-
});
|
|
58
|
-
}, "AlertDialogContent")), k = m.forwardRef(/* @__PURE__ */ v(function(e, t) {
|
|
59
|
-
let { __scopeAlertDialog: n, ...r } = e, i = x(n);
|
|
60
|
-
return /* @__PURE__ */ h(u, {
|
|
61
|
-
...i,
|
|
62
|
-
...r,
|
|
63
|
-
ref: t
|
|
64
|
-
});
|
|
65
|
-
}, "AlertDialogTitle")), A = m.forwardRef(/* @__PURE__ */ v(function(e, t) {
|
|
66
|
-
let { __scopeAlertDialog: n, ...r } = e, i = x(n);
|
|
67
|
-
return /* @__PURE__ */ h(a, {
|
|
68
|
-
...i,
|
|
69
|
-
...r,
|
|
70
|
-
ref: t
|
|
71
|
-
});
|
|
72
|
-
}, "AlertDialogDescription")), j = m.forwardRef(/* @__PURE__ */ v(function(e, t) {
|
|
73
|
-
let { __scopeAlertDialog: n, ...r } = e, i = x(n);
|
|
74
|
-
return /* @__PURE__ */ h(s, {
|
|
75
|
-
...i,
|
|
76
|
-
...r,
|
|
77
|
-
ref: t
|
|
78
|
-
});
|
|
79
|
-
}, "AlertDialogAction")), M = "AlertDialogCancel", N = m.forwardRef(/* @__PURE__ */ v(function(e, t) {
|
|
80
|
-
let { __scopeAlertDialog: r, ...i } = e, { cancelRef: a } = D(M, r), o = x(r), c = n(t, a);
|
|
81
|
-
return /* @__PURE__ */ h(s, {
|
|
82
|
-
...o,
|
|
83
|
-
...i,
|
|
84
|
-
ref: c
|
|
85
|
-
});
|
|
86
|
-
}, "AlertDialogCancel"));
|
|
87
|
-
// src/alert-dialog.tsx
|
|
88
|
-
function P({ ...e }) {
|
|
89
|
-
return /* @__PURE__ */ h(S, {
|
|
90
|
-
"data-slot": "alert-dialog",
|
|
91
|
-
...e
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
function F({ ...e }) {
|
|
95
|
-
return /* @__PURE__ */ h(C, {
|
|
96
|
-
"data-slot": "alert-dialog-trigger",
|
|
97
|
-
...e
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
function I({ ...e }) {
|
|
101
|
-
return /* @__PURE__ */ h(w, {
|
|
102
|
-
"data-slot": "alert-dialog-portal",
|
|
103
|
-
...e
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
function L({ className: t, ...n }) {
|
|
107
|
-
return /* @__PURE__ */ h(T, {
|
|
108
|
-
"data-slot": "alert-dialog-overlay",
|
|
109
|
-
className: e("data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs", t),
|
|
110
|
-
...n
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
function R({ className: t, size: n = "default", ...r }) {
|
|
114
|
-
return /* @__PURE__ */ g(I, { children: [/* @__PURE__ */ h(L, {}), /* @__PURE__ */ h(O, {
|
|
115
|
-
"data-slot": "alert-dialog-content",
|
|
116
|
-
"data-size": n,
|
|
117
|
-
className: e("group/alert-dialog-content bg-popover text-popover-foreground ring-foreground/10 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 fixed start-1/2 top-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl p-4 ring-1 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm rtl:translate-x-1/2", t),
|
|
118
|
-
...r
|
|
119
|
-
})] });
|
|
120
|
-
}
|
|
121
|
-
function z({ className: t, ...n }) {
|
|
122
|
-
return /* @__PURE__ */ h("div", {
|
|
123
|
-
"data-slot": "alert-dialog-header",
|
|
124
|
-
className: e("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-start sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]", t),
|
|
125
|
-
...n
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
function B({ className: t, ...n }) {
|
|
129
|
-
return /* @__PURE__ */ h("div", {
|
|
130
|
-
"data-slot": "alert-dialog-footer",
|
|
131
|
-
className: e("bg-muted/50 -mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end", t),
|
|
132
|
-
...n
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
function V({ className: t, ...n }) {
|
|
136
|
-
return /* @__PURE__ */ h("div", {
|
|
137
|
-
"data-slot": "alert-dialog-media",
|
|
138
|
-
className: e("bg-muted mb-2 inline-flex size-10 items-center justify-center rounded-md sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-6", t),
|
|
139
|
-
...n
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
function H({ className: t, ...n }) {
|
|
143
|
-
return /* @__PURE__ */ h(k, {
|
|
144
|
-
"data-slot": "alert-dialog-title",
|
|
145
|
-
className: e("text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2", t),
|
|
146
|
-
...n
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
function U({ className: t, ...n }) {
|
|
150
|
-
return /* @__PURE__ */ h(A, {
|
|
151
|
-
"data-slot": "alert-dialog-description",
|
|
152
|
-
className: e("text-muted-foreground *:[a]:hover:text-foreground text-sm text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3", t),
|
|
153
|
-
...n
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
function W({ className: t, variant: n = "default", size: r = "default", ...i }) {
|
|
157
|
-
return /* @__PURE__ */ h(p, {
|
|
158
|
-
variant: n,
|
|
159
|
-
size: r,
|
|
160
|
-
asChild: !0,
|
|
161
|
-
children: /* @__PURE__ */ h(j, {
|
|
162
|
-
"data-slot": "alert-dialog-action",
|
|
163
|
-
className: e(t),
|
|
164
|
-
...i
|
|
165
|
-
})
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
function G({ className: t, variant: n = "outline", size: r = "default", ...i }) {
|
|
169
|
-
return /* @__PURE__ */ h(p, {
|
|
170
|
-
variant: n,
|
|
171
|
-
size: r,
|
|
172
|
-
asChild: !0,
|
|
173
|
-
children: /* @__PURE__ */ h(N, {
|
|
174
|
-
"data-slot": "alert-dialog-cancel",
|
|
175
|
-
className: e(t),
|
|
176
|
-
...i
|
|
177
|
-
})
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
export { U as a, V as c, H as d, F as f, R as i, L as l, W as n, B as o, G as r, z as s, P as t, I as u };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./dist-CoTs6T03.js"),n=require("./dist-DW2ltK5-.js"),r=require("./dist-CJqVmdrU.js"),i=require("./dist-DuQlxGyN.js"),a=require("./dist-DZiOPWLp.js"),o=require("./button.cjs");let s=require("react"),c=e.r(s,1);s=e.r(s);let l=require("react/jsx-runtime");var u=Object.defineProperty,d=(e,t)=>u(e,`name`,{value:t,configurable:!0}),[f,p]=n.t(`AlertDialog`,[i.l]),m=i.l(),h=d(e=>{let{__scopeAlertDialog:t,...n}=e,r=m(t);return(0,l.jsx)(i.t,{...r,...n,modal:!0})},`AlertDialog`),g=c.forwardRef(d(function(e,t){let{__scopeAlertDialog:n,...r}=e,a=m(n);return(0,l.jsx)(i.c,{...a,...r,ref:t})},`AlertDialogTrigger`)),_=d(e=>{let{__scopeAlertDialog:t,...n}=e,r=m(t);return(0,l.jsx)(i.o,{...r,...n})},`AlertDialogPortal`),v=c.forwardRef(d(function(e,t){let{__scopeAlertDialog:n,...r}=e,a=m(n);return(0,l.jsx)(i.a,{...a,...r,ref:t})},`AlertDialogOverlay`)),[y,b]=f(`AlertDialogContent`),x=c.forwardRef(d(function(e,t){let{__scopeAlertDialog:n,children:o,...s}=e,u=m(n),d=c.useRef(null),f=r.a(t,d),p=c.useRef(null);return(0,l.jsx)(y,{scope:n,cancelRef:p,children:(0,l.jsx)(i.r,{role:`alertdialog`,...u,...s,ref:f,onOpenAutoFocus:a.t(s.onOpenAutoFocus,e=>{e.preventDefault(),p.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:o})})},`AlertDialogContent`)),S=c.forwardRef(d(function(e,t){let{__scopeAlertDialog:n,...r}=e,a=m(n);return(0,l.jsx)(i.s,{...a,...r,ref:t})},`AlertDialogTitle`)),C=c.forwardRef(d(function(e,t){let{__scopeAlertDialog:n,...r}=e,a=m(n);return(0,l.jsx)(i.i,{...a,...r,ref:t})},`AlertDialogDescription`)),w=c.forwardRef(d(function(e,t){let{__scopeAlertDialog:n,...r}=e,a=m(n);return(0,l.jsx)(i.n,{...a,...r,ref:t})},`AlertDialogAction`)),T=`AlertDialogCancel`,E=c.forwardRef(d(function(e,t){let{__scopeAlertDialog:n,...a}=e,{cancelRef:o}=b(T,n),s=m(n),c=r.a(t,o);return(0,l.jsx)(i.n,{...s,...a,ref:c})},`AlertDialogCancel`));function D({...e}){return(0,l.jsx)(h,{"data-slot":`alert-dialog`,...e})}function O({...e}){return(0,l.jsx)(g,{"data-slot":`alert-dialog-trigger`,...e})}function k({...e}){return(0,l.jsx)(_,{"data-slot":`alert-dialog-portal`,...e})}function A({className:e,...n}){return(0,l.jsx)(v,{"data-slot":`alert-dialog-overlay`,className:t.t(`data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs`,e),...n})}function j({className:e,size:n=`default`,...r}){return(0,l.jsxs)(k,{children:[(0,l.jsx)(A,{}),(0,l.jsx)(x,{"data-slot":`alert-dialog-content`,"data-size":n,className:t.t(`group/alert-dialog-content bg-popover text-popover-foreground ring-foreground/10 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 fixed start-1/2 top-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl p-4 ring-1 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm rtl:translate-x-1/2`,e),...r})]})}function M({className:e,...n}){return(0,l.jsx)(`div`,{"data-slot":`alert-dialog-header`,className:t.t(`grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-start sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]`,e),...n})}function N({className:e,...n}){return(0,l.jsx)(`div`,{"data-slot":`alert-dialog-footer`,className:t.t(`bg-muted/50 -mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end`,e),...n})}function P({className:e,...n}){return(0,l.jsx)(`div`,{"data-slot":`alert-dialog-media`,className:t.t(`bg-muted mb-2 inline-flex size-10 items-center justify-center rounded-md sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-6`,e),...n})}function F({className:e,...n}){return(0,l.jsx)(S,{"data-slot":`alert-dialog-title`,className:t.t(`text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2`,e),...n})}function I({className:e,...n}){return(0,l.jsx)(C,{"data-slot":`alert-dialog-description`,className:t.t(`text-muted-foreground *:[a]:hover:text-foreground text-sm text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3`,e),...n})}function L({className:e,variant:n=`default`,size:r=`default`,...i}){return(0,l.jsx)(o.Button,{variant:n,size:r,asChild:!0,children:(0,l.jsx)(w,{"data-slot":`alert-dialog-action`,className:t.t(e),...i})})}function R({className:e,variant:n=`outline`,size:r=`default`,...i}){return(0,l.jsx)(o.Button,{variant:n,size:r,asChild:!0,children:(0,l.jsx)(E,{"data-slot":`alert-dialog-cancel`,className:t.t(e),...i})})}Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return R}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return k}});
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./dist-B7Ph9-T6.mjs";
|
|
2
|
-
import * as t from "react";
|
|
3
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
-
// ../../node_modules/.bun/@radix-ui+react-aspect-ratio@1.2.0+2b23df507bdda662/node_modules/@radix-ui/react-aspect-ratio/dist/index.mjs
|
|
5
|
-
var r = Object.defineProperty, i = /* @__PURE__ */ t.forwardRef(/* @__PURE__ */ ((e, t) => r(e, "name", {
|
|
6
|
-
value: t,
|
|
7
|
-
configurable: !0
|
|
8
|
-
}))(function(t, r) {
|
|
9
|
-
let { ratio: i = 1, style: a, ...o } = t;
|
|
10
|
-
return /* @__PURE__ */ n("div", {
|
|
11
|
-
style: {
|
|
12
|
-
position: "relative",
|
|
13
|
-
width: "100%",
|
|
14
|
-
paddingBottom: `${100 / i}%`
|
|
15
|
-
},
|
|
16
|
-
"data-radix-aspect-ratio-wrapper": "",
|
|
17
|
-
children: /* @__PURE__ */ n(e.div, {
|
|
18
|
-
...o,
|
|
19
|
-
ref: r,
|
|
20
|
-
style: {
|
|
21
|
-
...a,
|
|
22
|
-
position: "absolute",
|
|
23
|
-
top: 0,
|
|
24
|
-
right: 0,
|
|
25
|
-
bottom: 0,
|
|
26
|
-
left: 0
|
|
27
|
-
}
|
|
28
|
-
})
|
|
29
|
-
});
|
|
30
|
-
}, "AspectRatio"));
|
|
31
|
-
// src/aspect-ratio.tsx
|
|
32
|
-
function a({ ...e }) {
|
|
33
|
-
return /* @__PURE__ */ n(i, {
|
|
34
|
-
"data-slot": "aspect-ratio",
|
|
35
|
-
...e
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
export { a as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./dist-CBlqVBTk.js");let n=require("react"),r=e.r(n,1);n=e.r(n);let i=require("react/jsx-runtime");var a=Object.defineProperty,o=r.forwardRef(((e,t)=>a(e,`name`,{value:t,configurable:!0}))(function(e,n){let{ratio:r=1,style:a,...o}=e;return(0,i.jsx)(`div`,{style:{position:`relative`,width:`100%`,paddingBottom:`${100/r}%`},"data-radix-aspect-ratio-wrapper":``,children:(0,i.jsx)(t.t.div,{...o,ref:n,style:{...a,position:`absolute`,top:0,right:0,bottom:0,left:0}})})},`AspectRatio`));function s({...e}){return(0,i.jsx)(o,{"data-slot":`aspect-ratio`,...e})}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return s}});
|