@adamosuiteservices/ui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/accordion-rounded.cjs +6 -0
- package/dist/accordion-rounded.js +85 -0
- package/dist/accordion.cjs +1 -0
- package/dist/accordion.js +65 -0
- package/dist/alert.cjs +1 -0
- package/dist/alert.js +69 -0
- package/dist/avatar.cjs +17 -0
- package/dist/avatar.js +248 -0
- package/dist/badge.cjs +1 -0
- package/dist/badge.js +54 -0
- package/dist/button-BFK0LYE1.js +58 -0
- package/dist/button-BnuVhhWO.cjs +1 -0
- package/dist/button-group.cjs +1 -0
- package/dist/button-group.js +76 -0
- package/dist/button.cjs +1 -0
- package/dist/button.js +5 -0
- package/dist/calendar.cjs +1 -0
- package/dist/calendar.js +2852 -0
- package/dist/card.cjs +1 -0
- package/dist/card.js +112 -0
- package/dist/check-CLxNVljQ.cjs +6 -0
- package/dist/check-Ci0GjV-B.js +11 -0
- package/dist/checkbox-BlfeC4MI.js +271 -0
- package/dist/checkbox-uByYIkZe.cjs +1 -0
- package/dist/checkbox.cjs +1 -0
- package/dist/checkbox.js +4 -0
- package/dist/chevron-down-BqEHzml5.cjs +6 -0
- package/dist/chevron-down-CpVS2Z7w.js +11 -0
- package/dist/chevron-left-B8QsBNvc.cjs +6 -0
- package/dist/chevron-left-Eal-WYLp.js +11 -0
- package/dist/chevron-right-BpzggHsr.cjs +6 -0
- package/dist/chevron-right-Cnc2tB4-.js +11 -0
- package/dist/circle-CX7JIirj.cjs +6 -0
- package/dist/circle-DYv-7Qb9.js +11 -0
- package/dist/collapsible.cjs +1 -0
- package/dist/collapsible.js +34 -0
- package/dist/colors.css +1 -0
- package/dist/combobox.cjs +6 -0
- package/dist/combobox.js +515 -0
- package/dist/components/layout/sidebar/index.d.ts +1 -0
- package/dist/components/layout/sidebar/sidebar.d.ts +17 -0
- package/dist/components/layout/sidebar/sidebar.stories.d.ts +6 -0
- package/dist/components/layout/toaster/index.d.ts +2 -0
- package/dist/components/layout/toaster/toaster.d.ts +26 -0
- package/dist/components/layout/toaster/toaster.stories.d.ts +15 -0
- package/dist/components/layout/toaster/use-toast.d.ts +1 -0
- package/dist/components/ui/accordion/accordion.d.ts +7 -0
- package/dist/components/ui/accordion/accordion.stories.d.ts +17 -0
- package/dist/components/ui/accordion/index.d.ts +1 -0
- package/dist/components/ui/accordion-rounded/accordion-rounded.d.ts +11 -0
- package/dist/components/ui/accordion-rounded/accordion-rounded.stories.d.ts +21 -0
- package/dist/components/ui/accordion-rounded/index.d.ts +1 -0
- package/dist/components/ui/alert/alert.d.ts +9 -0
- package/dist/components/ui/alert/alert.stories.d.ts +24 -0
- package/dist/components/ui/alert/index.d.ts +1 -0
- package/dist/components/ui/avatar/avatar.d.ts +6 -0
- package/dist/components/ui/avatar/avatar.stories.d.ts +14 -0
- package/dist/components/ui/avatar/index.d.ts +1 -0
- package/dist/components/ui/badge/badge.d.ts +10 -0
- package/dist/components/ui/badge/badge.stories.d.ts +41 -0
- package/dist/components/ui/badge/index.d.ts +1 -0
- package/dist/components/ui/button/button.d.ts +10 -0
- package/dist/components/ui/button/button.stories.d.ts +38 -0
- package/dist/components/ui/button/index.d.ts +1 -0
- package/dist/components/ui/button-group/button-group.d.ts +11 -0
- package/dist/components/ui/button-group/button-group.stories.d.ts +19 -0
- package/dist/components/ui/button-group/index.d.ts +1 -0
- package/dist/components/ui/calendar/calendar.d.ts +8 -0
- package/dist/components/ui/calendar/calendar.stories.d.ts +27 -0
- package/dist/components/ui/calendar/index.d.ts +1 -0
- package/dist/components/ui/card/card.d.ts +13 -0
- package/dist/components/ui/card/card.stories.d.ts +18 -0
- package/dist/components/ui/card/index.d.ts +1 -0
- package/dist/components/ui/checkbox/checkbox.d.ts +4 -0
- package/dist/components/ui/checkbox/checkbox.stories.d.ts +15 -0
- package/dist/components/ui/checkbox/index.d.ts +1 -0
- package/dist/components/ui/collapsible/collapsible.d.ts +5 -0
- package/dist/components/ui/collapsible/collapsible.stories.d.ts +12 -0
- package/dist/components/ui/collapsible/index.d.ts +1 -0
- package/dist/components/ui/combobox/combobox.d.ts +35 -0
- package/dist/components/ui/combobox/combobox.stories.d.ts +27 -0
- package/dist/components/ui/combobox/index.d.ts +1 -0
- package/dist/components/ui/command/command.d.ts +18 -0
- package/dist/components/ui/command/index.d.ts +1 -0
- package/dist/components/ui/context-menu/context-menu.d.ts +25 -0
- package/dist/components/ui/context-menu/context-menu.stories.d.ts +10 -0
- package/dist/components/ui/context-menu/index.d.ts +1 -0
- package/dist/components/ui/dialog/dialog.d.ts +17 -0
- package/dist/components/ui/dialog/dialog.stories.d.ts +13 -0
- package/dist/components/ui/dialog/index.d.ts +1 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +25 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu.stories.d.ts +14 -0
- package/dist/components/ui/dropdown-menu/index.d.ts +1 -0
- package/dist/components/ui/field/field.d.ts +24 -0
- package/dist/components/ui/field/field.stories.d.ts +18 -0
- package/dist/components/ui/field/index.d.ts +1 -0
- package/dist/components/ui/hover-card/hover-card.d.ts +6 -0
- package/dist/components/ui/hover-card/hover-card.stories.d.ts +25 -0
- package/dist/components/ui/hover-card/index.d.ts +1 -0
- package/dist/components/ui/input/index.d.ts +1 -0
- package/dist/components/ui/input/input.d.ts +3 -0
- package/dist/components/ui/input/input.stories.d.ts +23 -0
- package/dist/components/ui/input-group/Input-group.stories.d.ts +28 -0
- package/dist/components/ui/input-group/index.d.ts +1 -0
- package/dist/components/ui/input-group/input-group.d.ts +16 -0
- package/dist/components/ui/kbd/index.d.ts +1 -0
- package/dist/components/ui/kbd/kbd.d.ts +3 -0
- package/dist/components/ui/kbd/kbd.stories.d.ts +26 -0
- package/dist/components/ui/label/index.d.ts +1 -0
- package/dist/components/ui/label/label.d.ts +4 -0
- package/dist/components/ui/label/label.stories.d.ts +24 -0
- package/dist/components/ui/pagination/index.d.ts +1 -0
- package/dist/components/ui/pagination/pagination.d.ts +13 -0
- package/dist/components/ui/pagination/pagination.stories.d.ts +28 -0
- package/dist/components/ui/popover/index.d.ts +1 -0
- package/dist/components/ui/popover/popover.d.ts +7 -0
- package/dist/components/ui/popover/popover.stories.d.ts +26 -0
- package/dist/components/ui/progress/index.d.ts +1 -0
- package/dist/components/ui/progress/progress.d.ts +9 -0
- package/dist/components/ui/progress/progress.stories.d.ts +29 -0
- package/dist/components/ui/radio-group/index.d.ts +1 -0
- package/dist/components/ui/radio-group/radio-group.d.ts +5 -0
- package/dist/components/ui/radio-group/radio-group.stories.d.ts +18 -0
- package/dist/components/ui/select/index.d.ts +1 -0
- package/dist/components/ui/select/select.d.ts +15 -0
- package/dist/components/ui/select/select.stories.d.ts +19 -0
- package/dist/components/ui/separator/index.d.ts +1 -0
- package/dist/components/ui/separator/separator.d.ts +4 -0
- package/dist/components/ui/separator/separator.stories.d.ts +18 -0
- package/dist/components/ui/sheet/index.d.ts +1 -0
- package/dist/components/ui/sheet/sheet.d.ts +14 -0
- package/dist/components/ui/sheet/sheet.stories.d.ts +17 -0
- package/dist/components/ui/skeleton/index.d.ts +1 -0
- package/dist/components/ui/skeleton/skeleton.d.ts +2 -0
- package/dist/components/ui/skeleton/skeleton.stories.d.ts +22 -0
- package/dist/components/ui/slider/index.d.ts +1 -0
- package/dist/components/ui/slider/slider.d.ts +7 -0
- package/dist/components/ui/slider/slider.stories.d.ts +21 -0
- package/dist/components/ui/spinner/index.d.ts +1 -0
- package/dist/components/ui/spinner/spinner.d.ts +2 -0
- package/dist/components/ui/spinner/spinner.stories.d.ts +20 -0
- package/dist/components/ui/switch/index.d.ts +1 -0
- package/dist/components/ui/switch/switch.d.ts +4 -0
- package/dist/components/ui/switch/switch.stories.d.ts +17 -0
- package/dist/components/ui/table/index.d.ts +1 -0
- package/dist/components/ui/table/table.d.ts +10 -0
- package/dist/components/ui/table/table.stories.d.ts +11 -0
- package/dist/components/ui/tabs/index.d.ts +1 -0
- package/dist/components/ui/tabs/tabs.d.ts +7 -0
- package/dist/components/ui/tabs/tabs.stories.d.ts +16 -0
- package/dist/components/ui/tabs-underline/index.d.ts +1 -0
- package/dist/components/ui/tabs-underline/tabs-underline.d.ts +7 -0
- package/dist/components/ui/tabs-underline/tabs-underline.stories.d.ts +16 -0
- package/dist/components/ui/textarea/index.d.ts +1 -0
- package/dist/components/ui/textarea/textarea.d.ts +3 -0
- package/dist/components/ui/textarea/textarea.stories.d.ts +21 -0
- package/dist/components/ui/toggle/index.d.ts +1 -0
- package/dist/components/ui/toggle/toggle.d.ts +9 -0
- package/dist/components/ui/toggle/toggle.stories.d.ts +21 -0
- package/dist/components/ui/tooltip/index.d.ts +1 -0
- package/dist/components/ui/tooltip/tooltip.d.ts +7 -0
- package/dist/components/ui/tooltip/tooltip.stories.d.ts +19 -0
- package/dist/components/ui/typography/index.d.ts +1 -0
- package/dist/components/ui/typography/typography.d.ts +8 -0
- package/dist/components/ui/typography/typography.stories.d.ts +33 -0
- package/dist/context-menu.cjs +1 -0
- package/dist/context-menu.js +427 -0
- package/dist/createLucideIcon-B_8CJpcQ.js +94 -0
- package/dist/createLucideIcon-CAtnV-yz.cjs +21 -0
- package/dist/custom-layered-styles.css +1 -0
- package/dist/dialog.cjs +1 -0
- package/dist/dialog.js +139 -0
- package/dist/dropdown-menu.cjs +1 -0
- package/dist/dropdown-menu.js +423 -0
- package/dist/field.cjs +1 -0
- package/dist/field.js +221 -0
- package/dist/fonts.css +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/use-portal-container.d.ts +31 -0
- package/dist/hover-card.cjs +1 -0
- package/dist/hover-card.js +210 -0
- package/dist/index-0ioNhtNM.js +10 -0
- package/dist/index-6oTEokEx.js +82 -0
- package/dist/index-B-NyefE0.js +243 -0
- package/dist/index-B-ZRqW0J.js +118 -0
- package/dist/index-B-cHTKrs.js +158 -0
- package/dist/index-BGQepRFJ.js +27 -0
- package/dist/index-BGiGvaq8.cjs +1 -0
- package/dist/index-BKbK2GzY.cjs +1 -0
- package/dist/index-BMitW9UR.cjs +1 -0
- package/dist/index-BRLtxFFr.cjs +1 -0
- package/dist/index-BWaO7kQK.cjs +1 -0
- package/dist/index-BZPx6jYI.js +8 -0
- package/dist/index-BpvjJ_T6.cjs +5 -0
- package/dist/index-C0UREtMP.js +59 -0
- package/dist/index-C329e3yQ.js +134 -0
- package/dist/index-C5wjudc-.js +36 -0
- package/dist/index-C8ni3LLa.cjs +1 -0
- package/dist/index-CAOY367Y.js +1540 -0
- package/dist/index-CCKe-Mpx.js +6 -0
- package/dist/index-CQhYMnjT.js +34 -0
- package/dist/index-Ce3QBKyj.cjs +1 -0
- package/dist/index-CezwiPd_.js +615 -0
- package/dist/index-Cv867SGx.js +13 -0
- package/dist/index-CwUFT-GQ.js +228 -0
- package/dist/index-CzY-WZXL.cjs +1 -0
- package/dist/index-D02K8KOB.js +54 -0
- package/dist/index-D3S7dBDI.cjs +1 -0
- package/dist/index-D3wSWKST.cjs +1 -0
- package/dist/index-D7hQvndv.cjs +1 -0
- package/dist/index-DQvx1rG_.cjs +1 -0
- package/dist/index-DXQ-7kNJ.cjs +41 -0
- package/dist/index-DYxWvftI.cjs +1 -0
- package/dist/index-DnS_sBBe.cjs +1 -0
- package/dist/index-DulPG3F9.js +179 -0
- package/dist/index-EUea2gfp.js +70 -0
- package/dist/index-FxyLF8MY.js +68 -0
- package/dist/index-IKJMQref.cjs +1 -0
- package/dist/index-MQ0c3ZX_.cjs +1 -0
- package/dist/index-P1sVIHE3.js +32 -0
- package/dist/index-VIUqZjyP.cjs +1 -0
- package/dist/index-WIv2ndLu.cjs +1 -0
- package/dist/index-bSPhqlcX.cjs +1 -0
- package/dist/index-cwZN7ZY3.cjs +1 -0
- package/dist/index-gO_QEiaK.cjs +1 -0
- package/dist/index-iAvn1gzj.cjs +1 -0
- package/dist/index-o0sNTcKe.js +674 -0
- package/dist/index-rKs9bXHr.js +6 -0
- package/dist/index-yR-v1A4G.js +15 -0
- package/dist/input-3MDa_DYk.cjs +1 -0
- package/dist/input-Cl7xmQYQ.js +22 -0
- package/dist/input-group.cjs +1 -0
- package/dist/input-group.js +152 -0
- package/dist/input.cjs +1 -0
- package/dist/input.js +4 -0
- package/dist/jsx-runtime-BB_1_6y_.cjs +22 -0
- package/dist/jsx-runtime-BzflLqGi.js +282 -0
- package/dist/kbd.cjs +1 -0
- package/dist/kbd.js +31 -0
- package/dist/label-MxqN87DQ.cjs +1 -0
- package/dist/label-hg_jN6Y8.js +35 -0
- package/dist/label.cjs +1 -0
- package/dist/label.js +4 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/minus-C0pHPx21.cjs +6 -0
- package/dist/minus-DE-onYs2.js +11 -0
- package/dist/pagination.cjs +6 -0
- package/dist/pagination.js +134 -0
- package/dist/popover-BBXe2myL.cjs +1 -0
- package/dist/popover-DNiRNCdn.js +263 -0
- package/dist/popover.cjs +1 -0
- package/dist/popover.js +7 -0
- package/dist/progress.cjs +6 -0
- package/dist/progress.js +137 -0
- package/dist/radio-group.cjs +1 -0
- package/dist/radio-group.js +271 -0
- package/dist/radius.css +1 -0
- package/dist/select.cjs +6 -0
- package/dist/select.js +987 -0
- package/dist/separator-C9kqOQR-.js +44 -0
- package/dist/separator-Dbx-SVIs.cjs +1 -0
- package/dist/separator.cjs +1 -0
- package/dist/separator.js +4 -0
- package/dist/sheet-0jRbqkzj.cjs +1 -0
- package/dist/sheet-RAbg4M5A.js +128 -0
- package/dist/sheet.cjs +1 -0
- package/dist/sheet.js +11 -0
- package/dist/sidebar.cjs +6 -0
- package/dist/sidebar.js +139 -0
- package/dist/skeleton.cjs +1 -0
- package/dist/skeleton.js +15 -0
- package/dist/slider.cjs +1 -0
- package/dist/slider.js +486 -0
- package/dist/space.css +1 -0
- package/dist/spinner.cjs +6 -0
- package/dist/spinner.js +24 -0
- package/dist/styles.css +1 -0
- package/dist/switch.cjs +1 -0
- package/dist/switch.js +154 -0
- package/dist/table.cjs +1 -0
- package/dist/table.js +115 -0
- package/dist/tabs-underline.cjs +1 -0
- package/dist/tabs-underline.js +68 -0
- package/dist/tabs.cjs +1 -0
- package/dist/tabs.js +68 -0
- package/dist/tailwind-animations.css +1 -0
- package/dist/tailwind-colors.css +1 -0
- package/dist/tailwind-fonts.css +1 -0
- package/dist/tailwind-radius.css +1 -0
- package/dist/tailwind-spacing.css +1 -0
- package/dist/tailwind-theme.css +1 -0
- package/dist/textarea-D76719tg.js +19 -0
- package/dist/textarea-UdELO_Jn.cjs +1 -0
- package/dist/textarea.cjs +1 -0
- package/dist/textarea.js +4 -0
- package/dist/themes.css +1 -0
- package/dist/toaster.cjs +1 -0
- package/dist/toaster.js +87 -0
- package/dist/toggle.cjs +1 -0
- package/dist/toggle.js +69 -0
- package/dist/tooltip.cjs +1 -0
- package/dist/tooltip.js +375 -0
- package/dist/types/theme.type.d.ts +2 -0
- package/dist/typography.cjs +1 -0
- package/dist/typography.js +34 -0
- package/dist/use-portal-container.cjs +1 -0
- package/dist/use-portal-container.js +21 -0
- package/dist/utils-CRiPKpXj.js +2743 -0
- package/dist/utils-DoxiiusW.cjs +1 -0
- package/dist/x-CBKgg4YL.cjs +6 -0
- package/dist/x-Dl66o_vF.js +14 -0
- package/package.json +275 -0
package/dist/dialog.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./jsx-runtime-BB_1_6y_.cjs");require("react");const o=require("./index-BpvjJ_T6.cjs"),d=require("./utils-DoxiiusW.cjs"),m=require("./x-CBKgg4YL.cjs");function u({...a}){return t.jsxRuntimeExports.jsx(o.Root,{"data-slot":"dialog",...a})}function g({...a}){return t.jsxRuntimeExports.jsx(o.Trigger,{"data-slot":"dialog-trigger",...a})}function s({...a}){return t.jsxRuntimeExports.jsx(o.Portal,{"data-slot":"dialog-portal",...a})}function x({...a}){return t.jsxRuntimeExports.jsx(o.Close,{"data-slot":"dialog-close",...a})}function n({className:a,...e}){return t.jsxRuntimeExports.jsx(o.Overlay,{"data-slot":"dialog-overlay",className:d.cn("adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:fixed adm:inset-0 adm:z-50 adm:bg-black/50",a),...e})}function c({className:a,children:e,showCloseButton:i=!0,theme:r,...l}){return t.jsxRuntimeExports.jsxs(s,{"data-slot":"dialog-portal",children:[t.jsxRuntimeExports.jsx(n,{}),t.jsxRuntimeExports.jsxs(o.Content,{"data-theme":r,"data-slot":"dialog-content",className:d.cn("adm:bg-background adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:fixed adm:top-[50%] adm:left-[50%] adm:z-50 adm:grid adm:w-full adm:max-w-[calc(100%-2rem)] adm:translate-x-[-50%] adm:translate-y-[-50%] adm:gap-4 adm:rounded-lg adm:border adm:p-6 adm:shadow-lg adm:duration-200 adm:sm:max-w-lg",a),...l,children:[e,i&&t.jsxRuntimeExports.jsxs(o.Close,{"data-slot":"dialog-close",className:"adm:ring-offset-background adm:focus:ring-ring adm:data-[state=open]:bg-accent adm:data-[state=open]:text-muted-foreground adm:absolute adm:top-4 adm:right-4 adm:rounded-xs adm:opacity-70 adm:transition-opacity adm:hover:opacity-100 adm:focus:ring-2 adm:focus:ring-offset-2 adm:focus:outline-hidden adm:disabled:pointer-events-none adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",children:[t.jsxRuntimeExports.jsx(m.X,{}),t.jsxRuntimeExports.jsx("span",{className:"adm:sr-only",children:"Close"})]})]})]})}function p({className:a,...e}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-header",className:d.cn("adm:flex adm:flex-col adm:gap-2 adm:text-center adm:sm:text-left",a),...e})}function f({className:a,...e}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-footer",className:d.cn("adm:flex adm:flex-col-reverse adm:gap-2 adm:sm:flex-row adm:sm:justify-end",a),...e})}function j({className:a,...e}){return t.jsxRuntimeExports.jsx(o.Title,{"data-slot":"dialog-title",className:d.cn("adm:text-lg adm:leading-none adm:font-semibold",a),...e})}function D({className:a,...e}){return t.jsxRuntimeExports.jsx(o.Description,{"data-slot":"dialog-description",className:d.cn("adm:text-muted-foreground adm:text-sm",a),...e})}exports.Dialog=u;exports.DialogClose=x;exports.DialogContent=c;exports.DialogDescription=D;exports.DialogFooter=f;exports.DialogHeader=p;exports.DialogOverlay=n;exports.DialogPortal=s;exports.DialogTitle=j;exports.DialogTrigger=g;
|
package/dist/dialog.js
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { j as t } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { R as i, C as o, a as l, D as r, O as c, P as g, T as u, b as f } from "./index-B-NyefE0.js";
|
|
4
|
+
import { c as e } from "./utils-CRiPKpXj.js";
|
|
5
|
+
import { X as x } from "./x-Dl66o_vF.js";
|
|
6
|
+
function N({
|
|
7
|
+
...a
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ t.jsx(i, { "data-slot": "dialog", ...a });
|
|
10
|
+
}
|
|
11
|
+
function z({
|
|
12
|
+
...a
|
|
13
|
+
}) {
|
|
14
|
+
return /* @__PURE__ */ t.jsx(f, { "data-slot": "dialog-trigger", ...a });
|
|
15
|
+
}
|
|
16
|
+
function p({
|
|
17
|
+
...a
|
|
18
|
+
}) {
|
|
19
|
+
return /* @__PURE__ */ t.jsx(g, { "data-slot": "dialog-portal", ...a });
|
|
20
|
+
}
|
|
21
|
+
function C({
|
|
22
|
+
...a
|
|
23
|
+
}) {
|
|
24
|
+
return /* @__PURE__ */ t.jsx(o, { "data-slot": "dialog-close", ...a });
|
|
25
|
+
}
|
|
26
|
+
function j({
|
|
27
|
+
className: a,
|
|
28
|
+
...d
|
|
29
|
+
}) {
|
|
30
|
+
return /* @__PURE__ */ t.jsx(
|
|
31
|
+
c,
|
|
32
|
+
{
|
|
33
|
+
"data-slot": "dialog-overlay",
|
|
34
|
+
className: e(
|
|
35
|
+
"adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:fixed adm:inset-0 adm:z-50 adm:bg-black/50",
|
|
36
|
+
a
|
|
37
|
+
),
|
|
38
|
+
...d
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
function w({
|
|
43
|
+
className: a,
|
|
44
|
+
children: d,
|
|
45
|
+
showCloseButton: s = !0,
|
|
46
|
+
theme: m,
|
|
47
|
+
...n
|
|
48
|
+
}) {
|
|
49
|
+
return /* @__PURE__ */ t.jsxs(p, { "data-slot": "dialog-portal", children: [
|
|
50
|
+
/* @__PURE__ */ t.jsx(j, {}),
|
|
51
|
+
/* @__PURE__ */ t.jsxs(
|
|
52
|
+
l,
|
|
53
|
+
{
|
|
54
|
+
"data-theme": m,
|
|
55
|
+
"data-slot": "dialog-content",
|
|
56
|
+
className: e(
|
|
57
|
+
"adm:bg-background adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:fixed adm:top-[50%] adm:left-[50%] adm:z-50 adm:grid adm:w-full adm:max-w-[calc(100%-2rem)] adm:translate-x-[-50%] adm:translate-y-[-50%] adm:gap-4 adm:rounded-lg adm:border adm:p-6 adm:shadow-lg adm:duration-200 adm:sm:max-w-lg",
|
|
58
|
+
a
|
|
59
|
+
),
|
|
60
|
+
...n,
|
|
61
|
+
children: [
|
|
62
|
+
d,
|
|
63
|
+
s && /* @__PURE__ */ t.jsxs(
|
|
64
|
+
o,
|
|
65
|
+
{
|
|
66
|
+
"data-slot": "dialog-close",
|
|
67
|
+
className: "adm:ring-offset-background adm:focus:ring-ring adm:data-[state=open]:bg-accent adm:data-[state=open]:text-muted-foreground adm:absolute adm:top-4 adm:right-4 adm:rounded-xs adm:opacity-70 adm:transition-opacity adm:hover:opacity-100 adm:focus:ring-2 adm:focus:ring-offset-2 adm:focus:outline-hidden adm:disabled:pointer-events-none adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",
|
|
68
|
+
children: [
|
|
69
|
+
/* @__PURE__ */ t.jsx(x, {}),
|
|
70
|
+
/* @__PURE__ */ t.jsx("span", { className: "adm:sr-only", children: "Close" })
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
] });
|
|
78
|
+
}
|
|
79
|
+
function T({ className: a, ...d }) {
|
|
80
|
+
return /* @__PURE__ */ t.jsx(
|
|
81
|
+
"div",
|
|
82
|
+
{
|
|
83
|
+
"data-slot": "dialog-header",
|
|
84
|
+
className: e("adm:flex adm:flex-col adm:gap-2 adm:text-center adm:sm:text-left", a),
|
|
85
|
+
...d
|
|
86
|
+
}
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
function k({ className: a, ...d }) {
|
|
90
|
+
return /* @__PURE__ */ t.jsx(
|
|
91
|
+
"div",
|
|
92
|
+
{
|
|
93
|
+
"data-slot": "dialog-footer",
|
|
94
|
+
className: e(
|
|
95
|
+
"adm:flex adm:flex-col-reverse adm:gap-2 adm:sm:flex-row adm:sm:justify-end",
|
|
96
|
+
a
|
|
97
|
+
),
|
|
98
|
+
...d
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
function O({
|
|
103
|
+
className: a,
|
|
104
|
+
...d
|
|
105
|
+
}) {
|
|
106
|
+
return /* @__PURE__ */ t.jsx(
|
|
107
|
+
u,
|
|
108
|
+
{
|
|
109
|
+
"data-slot": "dialog-title",
|
|
110
|
+
className: e("adm:text-lg adm:leading-none adm:font-semibold", a),
|
|
111
|
+
...d
|
|
112
|
+
}
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
function P({
|
|
116
|
+
className: a,
|
|
117
|
+
...d
|
|
118
|
+
}) {
|
|
119
|
+
return /* @__PURE__ */ t.jsx(
|
|
120
|
+
r,
|
|
121
|
+
{
|
|
122
|
+
"data-slot": "dialog-description",
|
|
123
|
+
className: e("adm:text-muted-foreground adm:text-sm", a),
|
|
124
|
+
...d
|
|
125
|
+
}
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
export {
|
|
129
|
+
N as Dialog,
|
|
130
|
+
C as DialogClose,
|
|
131
|
+
w as DialogContent,
|
|
132
|
+
P as DialogDescription,
|
|
133
|
+
k as DialogFooter,
|
|
134
|
+
T as DialogHeader,
|
|
135
|
+
j as DialogOverlay,
|
|
136
|
+
p as DialogPortal,
|
|
137
|
+
O as DialogTitle,
|
|
138
|
+
z as DialogTrigger
|
|
139
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./jsx-runtime-BB_1_6y_.cjs"),q=require("react"),x=require("./index-BWaO7kQK.cjs"),L=require("./index-BKbK2GzY.cjs"),H=require("./index-cwZN7ZY3.cjs"),K=require("./index-DQvx1rG_.cjs"),d=require("./index-BMitW9UR.cjs"),M=require("./index-WIv2ndLu.cjs"),c=require("./utils-DoxiiusW.cjs"),U=require("./check-CLxNVljQ.cjs"),B=require("./circle-CX7JIirj.cjs"),F=require("./chevron-right-BpzggHsr.cjs");function W(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const t=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,t.get?t:{enumerable:!0,get:()=>e[n]})}}return o.default=e,Object.freeze(o)}const u=W(q);var g="DropdownMenu",[X]=H.createContextScope(g,[d.createMenuScope]),m=d.createMenuScope(),[J,D]=X(g),R=e=>{const{__scopeDropdownMenu:o,children:n,dir:t,open:a,defaultOpen:i,onOpenChange:p,modal:s=!0}=e,l=m(o),v=u.useRef(null),[f,w]=x.useControllableState({prop:a,defaultProp:i??!1,onChange:p,caller:g});return r.jsxRuntimeExports.jsx(J,{scope:o,triggerId:M.useId(),triggerRef:v,contentId:M.useId(),open:f,onOpenChange:w,onOpenToggle:u.useCallback(()=>w($=>!$),[w]),modal:s,children:r.jsxRuntimeExports.jsx(d.Root3,{...l,open:f,onOpenChange:w,dir:t,modal:s,children:n})})};R.displayName=g;var b="DropdownMenuTrigger",h=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,disabled:t=!1,...a}=e,i=D(b,n),p=m(n);return r.jsxRuntimeExports.jsx(d.Anchor2,{asChild:!0,...p,children:r.jsxRuntimeExports.jsx(K.Primitive.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":t?"":void 0,disabled:t,...a,ref:L.composeRefs(o,i.triggerRef),onPointerDown:x.composeEventHandlers(e.onPointerDown,s=>{!t&&s.button===0&&s.ctrlKey===!1&&(i.onOpenToggle(),i.open||s.preventDefault())}),onKeyDown:x.composeEventHandlers(e.onKeyDown,s=>{t||(["Enter"," "].includes(s.key)&&i.onOpenToggle(),s.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});h.displayName=b;var Q="DropdownMenuPortal",j=e=>{const{__scopeDropdownMenu:o,...n}=e,t=m(o);return r.jsxRuntimeExports.jsx(d.Portal,{...t,...n})};j.displayName=Q;var E="DropdownMenuContent",_=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=D(E,n),i=m(n),p=u.useRef(!1);return r.jsxRuntimeExports.jsx(d.Content2,{id:a.contentId,"aria-labelledby":a.triggerId,...i,...t,ref:o,onCloseAutoFocus:x.composeEventHandlers(e.onCloseAutoFocus,s=>{p.current||a.triggerRef.current?.focus(),p.current=!1,s.preventDefault()}),onInteractOutside:x.composeEventHandlers(e.onInteractOutside,s=>{const l=s.detail.originalEvent,v=l.button===0&&l.ctrlKey===!0,f=l.button===2||v;(!a.modal||f)&&(p.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});_.displayName=E;var V="DropdownMenuGroup",S=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.Group,{...a,...t,ref:o})});S.displayName=V;var Y="DropdownMenuLabel",N=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.Label,{...a,...t,ref:o})});N.displayName=Y;var Z="DropdownMenuItem",I=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.Item2,{...a,...t,ref:o})});I.displayName=Z;var ee="DropdownMenuCheckboxItem",C=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.CheckboxItem,{...a,...t,ref:o})});C.displayName=ee;var oe="DropdownMenuRadioGroup",y=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.RadioGroup,{...a,...t,ref:o})});y.displayName=oe;var ne="DropdownMenuRadioItem",P=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.RadioItem,{...a,...t,ref:o})});P.displayName=ne;var te="DropdownMenuItemIndicator",O=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.ItemIndicator,{...a,...t,ref:o})});O.displayName=te;var re="DropdownMenuSeparator",A=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.Separator,{...a,...t,ref:o})});A.displayName=re;var ae="DropdownMenuArrow",de=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.Arrow2,{...a,...t,ref:o})});de.displayName=ae;var se=e=>{const{__scopeDropdownMenu:o,children:n,open:t,onOpenChange:a,defaultOpen:i}=e,p=m(o),[s,l]=x.useControllableState({prop:t,defaultProp:i??!1,onChange:a,caller:"DropdownMenuSub"});return r.jsxRuntimeExports.jsx(d.Sub,{...p,open:s,onOpenChange:l,children:n})},ie="DropdownMenuSubTrigger",T=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.SubTrigger,{...a,...t,ref:o})});T.displayName=ie;var ue="DropdownMenuSubContent",k=u.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,a=m(n);return r.jsxRuntimeExports.jsx(d.SubContent,{...a,...t,ref:o,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});k.displayName=ue;var me=R,pe=h,z=j,ce=_,le=S,xe=N,fe=I,we=C,ge=y,ve=P,G=O,Me=A,De=se,Re=T,be=k;function he({...e}){return r.jsxRuntimeExports.jsx(me,{"data-slot":"dropdown-menu",...e})}function je({...e}){return r.jsxRuntimeExports.jsx(z,{"data-slot":"dropdown-menu-portal",...e})}function Ee({...e}){return r.jsxRuntimeExports.jsx(pe,{"data-slot":"dropdown-menu-trigger",...e})}function _e({className:e,sideOffset:o=4,...n}){return r.jsxRuntimeExports.jsx(z,{children:r.jsxRuntimeExports.jsx(ce,{"data-slot":"dropdown-menu-content",sideOffset:o,className:c.cn("adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:z-50 adm:max-h-(--radix-dropdown-menu-content-available-height) adm:min-w-[8rem] adm:origin-(--radix-dropdown-menu-content-transform-origin) adm:overflow-x-hidden adm:overflow-y-auto adm:rounded-md adm:border adm:p-1 adm:shadow-md",e),...n})})}function Se({...e}){return r.jsxRuntimeExports.jsx(le,{"data-slot":"dropdown-menu-group",...e})}function Ne({className:e,inset:o,variant:n="default",...t}){return r.jsxRuntimeExports.jsx(fe,{"data-slot":"dropdown-menu-item","data-inset":o,"data-variant":n,className:c.cn("adm:focus:bg-accent adm:focus:text-accent-foreground adm:data-[variant=destructive]:text-destructive adm:data-[variant=destructive]:focus:bg-destructive/10 adm:dark:data-[variant=destructive]:focus:bg-destructive/20 adm:data-[variant=destructive]:focus:text-destructive adm:data-[variant=destructive]:*:[svg]:!text-destructive adm:[&_svg:not([class*=text-])]:text-muted-foreground adm:relative adm:flex adm:cursor-default adm:items-center adm:gap-2 adm:rounded-sm adm:px-2 adm:py-1.5 adm:text-sm adm:outline-hidden adm:select-none adm:data-[disabled]:pointer-events-none adm:data-[disabled]:opacity-50 adm:data-[inset]:pl-8 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",e),...t})}function Ie({className:e,children:o,checked:n,...t}){return r.jsxRuntimeExports.jsxs(we,{"data-slot":"dropdown-menu-checkbox-item",className:c.cn("adm:focus:bg-accent adm:focus:text-accent-foreground adm:relative adm:flex adm:cursor-default adm:items-center adm:gap-2 adm:rounded-sm adm:py-1.5 adm:pr-2 adm:pl-8 adm:text-sm adm:outline-hidden adm:select-none adm:data-[disabled]:pointer-events-none adm:data-[disabled]:opacity-50 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",e),checked:n,...t,children:[r.jsxRuntimeExports.jsx("span",{className:"adm:pointer-events-none adm:absolute adm:left-2 adm:flex adm:size-3.5 adm:items-center adm:justify-center",children:r.jsxRuntimeExports.jsx(G,{children:r.jsxRuntimeExports.jsx(U.Check,{className:"adm:size-4"})})}),o]})}function Ce({...e}){return r.jsxRuntimeExports.jsx(ge,{"data-slot":"dropdown-menu-radio-group",...e})}function ye({className:e,children:o,...n}){return r.jsxRuntimeExports.jsxs(ve,{"data-slot":"dropdown-menu-radio-item",className:c.cn("adm:focus:bg-accent adm:focus:text-accent-foreground adm:relative adm:flex adm:cursor-default adm:items-center adm:gap-2 adm:rounded-sm adm:py-1.5 adm:pr-2 adm:pl-8 adm:text-sm adm:outline-hidden adm:select-none adm:data-[disabled]:pointer-events-none adm:data-[disabled]:opacity-50 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",e),...n,children:[r.jsxRuntimeExports.jsx("span",{className:"adm:pointer-events-none adm:absolute adm:left-2 adm:flex adm:size-3.5 adm:items-center adm:justify-center",children:r.jsxRuntimeExports.jsx(G,{children:r.jsxRuntimeExports.jsx(B.Circle,{className:"adm:size-2 adm:fill-current"})})}),o]})}function Pe({className:e,inset:o,...n}){return r.jsxRuntimeExports.jsx(xe,{"data-slot":"dropdown-menu-label","data-inset":o,className:c.cn("adm:px-2 adm:py-1.5 adm:text-sm adm:font-medium adm:data-[inset]:pl-8",e),...n})}function Oe({className:e,...o}){return r.jsxRuntimeExports.jsx(Me,{"data-slot":"dropdown-menu-separator",className:c.cn("adm:bg-border adm:-mx-1 adm:my-1 adm:h-px",e),...o})}function Ae({className:e,...o}){return r.jsxRuntimeExports.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:c.cn("adm:text-muted-foreground adm:ml-auto adm:text-xs adm:tracking-widest",e),...o})}function Te({...e}){return r.jsxRuntimeExports.jsx(De,{"data-slot":"dropdown-menu-sub",...e})}function ke({className:e,inset:o,children:n,...t}){return r.jsxRuntimeExports.jsxs(Re,{"data-slot":"dropdown-menu-sub-trigger","data-inset":o,className:c.cn("adm:focus:bg-accent adm:focus:text-accent-foreground adm:data-[state=open]:bg-accent adm:data-[state=open]:text-accent-foreground adm:[&_svg:not([class*=text-])]:text-muted-foreground adm:flex adm:cursor-default adm:items-center adm:gap-2 adm:rounded-sm adm:px-2 adm:py-1.5 adm:text-sm adm:outline-hidden adm:select-none adm:data-[inset]:pl-8 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",e),...t,children:[n,r.jsxRuntimeExports.jsx(F.ChevronRight,{className:"adm:ml-auto adm:size-4"})]})}function ze({className:e,...o}){return r.jsxRuntimeExports.jsx(be,{"data-slot":"dropdown-menu-sub-content",className:c.cn("adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:z-50 adm:min-w-[8rem] adm:origin-(--radix-dropdown-menu-content-transform-origin) adm:overflow-hidden adm:rounded-md adm:border adm:p-1 adm:shadow-lg",e),...o})}exports.DropdownMenu=he;exports.DropdownMenuCheckboxItem=Ie;exports.DropdownMenuContent=_e;exports.DropdownMenuGroup=Se;exports.DropdownMenuItem=Ne;exports.DropdownMenuLabel=Pe;exports.DropdownMenuPortal=je;exports.DropdownMenuRadioGroup=Ce;exports.DropdownMenuRadioItem=ye;exports.DropdownMenuSeparator=Oe;exports.DropdownMenuShortcut=Ae;exports.DropdownMenuSub=Te;exports.DropdownMenuSubContent=ze;exports.DropdownMenuSubTrigger=ke;exports.DropdownMenuTrigger=Ee;
|
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
import { j as n } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
+
import * as m from "react";
|
|
3
|
+
import { u as M, c as w } from "./index-C0UREtMP.js";
|
|
4
|
+
import { c as K } from "./index-6oTEokEx.js";
|
|
5
|
+
import { c as U } from "./index-FxyLF8MY.js";
|
|
6
|
+
import { P as B } from "./index-C5wjudc-.js";
|
|
7
|
+
import { c as h, R as F, P as H, A as W, C as X, G as q, L as J, I as Q, a as V, b as Y, h as Z, d as ee, S as oe, e as ae, g as ne, f as re, i as te } from "./index-CezwiPd_.js";
|
|
8
|
+
import { u as x } from "./index-Cv867SGx.js";
|
|
9
|
+
import { c as u } from "./utils-CRiPKpXj.js";
|
|
10
|
+
import { C as de } from "./check-Ci0GjV-B.js";
|
|
11
|
+
import { C as se } from "./circle-DYv-7Qb9.js";
|
|
12
|
+
import { C as me } from "./chevron-right-Cnc2tB4-.js";
|
|
13
|
+
var g = "DropdownMenu", [ie] = U(
|
|
14
|
+
g,
|
|
15
|
+
[h]
|
|
16
|
+
), i = h(), [pe, b] = ie(g), D = (e) => {
|
|
17
|
+
const {
|
|
18
|
+
__scopeDropdownMenu: o,
|
|
19
|
+
children: a,
|
|
20
|
+
dir: r,
|
|
21
|
+
open: t,
|
|
22
|
+
defaultOpen: s,
|
|
23
|
+
onOpenChange: p,
|
|
24
|
+
modal: d = !0
|
|
25
|
+
} = e, c = i(o), v = m.useRef(null), [l, f] = M({
|
|
26
|
+
prop: t,
|
|
27
|
+
defaultProp: s ?? !1,
|
|
28
|
+
onChange: p,
|
|
29
|
+
caller: g
|
|
30
|
+
});
|
|
31
|
+
return /* @__PURE__ */ n.jsx(
|
|
32
|
+
pe,
|
|
33
|
+
{
|
|
34
|
+
scope: o,
|
|
35
|
+
triggerId: x(),
|
|
36
|
+
triggerRef: v,
|
|
37
|
+
contentId: x(),
|
|
38
|
+
open: l,
|
|
39
|
+
onOpenChange: f,
|
|
40
|
+
onOpenToggle: m.useCallback(() => f((L) => !L), [f]),
|
|
41
|
+
modal: d,
|
|
42
|
+
children: /* @__PURE__ */ n.jsx(F, { ...c, open: l, onOpenChange: f, dir: r, modal: d, children: a })
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
};
|
|
46
|
+
D.displayName = g;
|
|
47
|
+
var _ = "DropdownMenuTrigger", R = m.forwardRef(
|
|
48
|
+
(e, o) => {
|
|
49
|
+
const { __scopeDropdownMenu: a, disabled: r = !1, ...t } = e, s = b(_, a), p = i(a);
|
|
50
|
+
return /* @__PURE__ */ n.jsx(W, { asChild: !0, ...p, children: /* @__PURE__ */ n.jsx(
|
|
51
|
+
B.button,
|
|
52
|
+
{
|
|
53
|
+
type: "button",
|
|
54
|
+
id: s.triggerId,
|
|
55
|
+
"aria-haspopup": "menu",
|
|
56
|
+
"aria-expanded": s.open,
|
|
57
|
+
"aria-controls": s.open ? s.contentId : void 0,
|
|
58
|
+
"data-state": s.open ? "open" : "closed",
|
|
59
|
+
"data-disabled": r ? "" : void 0,
|
|
60
|
+
disabled: r,
|
|
61
|
+
...t,
|
|
62
|
+
ref: K(o, s.triggerRef),
|
|
63
|
+
onPointerDown: w(e.onPointerDown, (d) => {
|
|
64
|
+
!r && d.button === 0 && d.ctrlKey === !1 && (s.onOpenToggle(), s.open || d.preventDefault());
|
|
65
|
+
}),
|
|
66
|
+
onKeyDown: w(e.onKeyDown, (d) => {
|
|
67
|
+
r || (["Enter", " "].includes(d.key) && s.onOpenToggle(), d.key === "ArrowDown" && s.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(d.key) && d.preventDefault());
|
|
68
|
+
})
|
|
69
|
+
}
|
|
70
|
+
) });
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
R.displayName = _;
|
|
74
|
+
var ue = "DropdownMenuPortal", N = (e) => {
|
|
75
|
+
const { __scopeDropdownMenu: o, ...a } = e, r = i(o);
|
|
76
|
+
return /* @__PURE__ */ n.jsx(H, { ...r, ...a });
|
|
77
|
+
};
|
|
78
|
+
N.displayName = ue;
|
|
79
|
+
var C = "DropdownMenuContent", I = m.forwardRef(
|
|
80
|
+
(e, o) => {
|
|
81
|
+
const { __scopeDropdownMenu: a, ...r } = e, t = b(C, a), s = i(a), p = m.useRef(!1);
|
|
82
|
+
return /* @__PURE__ */ n.jsx(
|
|
83
|
+
X,
|
|
84
|
+
{
|
|
85
|
+
id: t.contentId,
|
|
86
|
+
"aria-labelledby": t.triggerId,
|
|
87
|
+
...s,
|
|
88
|
+
...r,
|
|
89
|
+
ref: o,
|
|
90
|
+
onCloseAutoFocus: w(e.onCloseAutoFocus, (d) => {
|
|
91
|
+
p.current || t.triggerRef.current?.focus(), p.current = !1, d.preventDefault();
|
|
92
|
+
}),
|
|
93
|
+
onInteractOutside: w(e.onInteractOutside, (d) => {
|
|
94
|
+
const c = d.detail.originalEvent, v = c.button === 0 && c.ctrlKey === !0, l = c.button === 2 || v;
|
|
95
|
+
(!t.modal || l) && (p.current = !0);
|
|
96
|
+
}),
|
|
97
|
+
style: {
|
|
98
|
+
...e.style,
|
|
99
|
+
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
100
|
+
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
101
|
+
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
102
|
+
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
103
|
+
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
);
|
|
109
|
+
I.displayName = C;
|
|
110
|
+
var ce = "DropdownMenuGroup", j = m.forwardRef(
|
|
111
|
+
(e, o) => {
|
|
112
|
+
const { __scopeDropdownMenu: a, ...r } = e, t = i(a);
|
|
113
|
+
return /* @__PURE__ */ n.jsx(q, { ...t, ...r, ref: o });
|
|
114
|
+
}
|
|
115
|
+
);
|
|
116
|
+
j.displayName = ce;
|
|
117
|
+
var le = "DropdownMenuLabel", S = m.forwardRef(
|
|
118
|
+
(e, o) => {
|
|
119
|
+
const { __scopeDropdownMenu: a, ...r } = e, t = i(a);
|
|
120
|
+
return /* @__PURE__ */ n.jsx(J, { ...t, ...r, ref: o });
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
S.displayName = le;
|
|
124
|
+
var fe = "DropdownMenuItem", y = m.forwardRef(
|
|
125
|
+
(e, o) => {
|
|
126
|
+
const { __scopeDropdownMenu: a, ...r } = e, t = i(a);
|
|
127
|
+
return /* @__PURE__ */ n.jsx(Q, { ...t, ...r, ref: o });
|
|
128
|
+
}
|
|
129
|
+
);
|
|
130
|
+
y.displayName = fe;
|
|
131
|
+
var we = "DropdownMenuCheckboxItem", P = m.forwardRef((e, o) => {
|
|
132
|
+
const { __scopeDropdownMenu: a, ...r } = e, t = i(a);
|
|
133
|
+
return /* @__PURE__ */ n.jsx(V, { ...t, ...r, ref: o });
|
|
134
|
+
});
|
|
135
|
+
P.displayName = we;
|
|
136
|
+
var ge = "DropdownMenuRadioGroup", A = m.forwardRef((e, o) => {
|
|
137
|
+
const { __scopeDropdownMenu: a, ...r } = e, t = i(a);
|
|
138
|
+
return /* @__PURE__ */ n.jsx(Z, { ...t, ...r, ref: o });
|
|
139
|
+
});
|
|
140
|
+
A.displayName = ge;
|
|
141
|
+
var ve = "DropdownMenuRadioItem", E = m.forwardRef((e, o) => {
|
|
142
|
+
const { __scopeDropdownMenu: a, ...r } = e, t = i(a);
|
|
143
|
+
return /* @__PURE__ */ n.jsx(ee, { ...t, ...r, ref: o });
|
|
144
|
+
});
|
|
145
|
+
E.displayName = ve;
|
|
146
|
+
var xe = "DropdownMenuItemIndicator", O = m.forwardRef((e, o) => {
|
|
147
|
+
const { __scopeDropdownMenu: a, ...r } = e, t = i(a);
|
|
148
|
+
return /* @__PURE__ */ n.jsx(Y, { ...t, ...r, ref: o });
|
|
149
|
+
});
|
|
150
|
+
O.displayName = xe;
|
|
151
|
+
var Me = "DropdownMenuSeparator", T = m.forwardRef((e, o) => {
|
|
152
|
+
const { __scopeDropdownMenu: a, ...r } = e, t = i(a);
|
|
153
|
+
return /* @__PURE__ */ n.jsx(oe, { ...t, ...r, ref: o });
|
|
154
|
+
});
|
|
155
|
+
T.displayName = Me;
|
|
156
|
+
var he = "DropdownMenuArrow", be = m.forwardRef(
|
|
157
|
+
(e, o) => {
|
|
158
|
+
const { __scopeDropdownMenu: a, ...r } = e, t = i(a);
|
|
159
|
+
return /* @__PURE__ */ n.jsx(te, { ...t, ...r, ref: o });
|
|
160
|
+
}
|
|
161
|
+
);
|
|
162
|
+
be.displayName = he;
|
|
163
|
+
var De = (e) => {
|
|
164
|
+
const { __scopeDropdownMenu: o, children: a, open: r, onOpenChange: t, defaultOpen: s } = e, p = i(o), [d, c] = M({
|
|
165
|
+
prop: r,
|
|
166
|
+
defaultProp: s ?? !1,
|
|
167
|
+
onChange: t,
|
|
168
|
+
caller: "DropdownMenuSub"
|
|
169
|
+
});
|
|
170
|
+
return /* @__PURE__ */ n.jsx(ae, { ...p, open: d, onOpenChange: c, children: a });
|
|
171
|
+
}, _e = "DropdownMenuSubTrigger", k = m.forwardRef((e, o) => {
|
|
172
|
+
const { __scopeDropdownMenu: a, ...r } = e, t = i(a);
|
|
173
|
+
return /* @__PURE__ */ n.jsx(ne, { ...t, ...r, ref: o });
|
|
174
|
+
});
|
|
175
|
+
k.displayName = _e;
|
|
176
|
+
var Re = "DropdownMenuSubContent", z = m.forwardRef((e, o) => {
|
|
177
|
+
const { __scopeDropdownMenu: a, ...r } = e, t = i(a);
|
|
178
|
+
return /* @__PURE__ */ n.jsx(
|
|
179
|
+
re,
|
|
180
|
+
{
|
|
181
|
+
...t,
|
|
182
|
+
...r,
|
|
183
|
+
ref: o,
|
|
184
|
+
style: {
|
|
185
|
+
...e.style,
|
|
186
|
+
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
187
|
+
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
188
|
+
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
189
|
+
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
190
|
+
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
);
|
|
194
|
+
});
|
|
195
|
+
z.displayName = Re;
|
|
196
|
+
var Ne = D, Ce = R, G = N, Ie = I, je = j, Se = S, ye = y, Pe = P, Ae = A, Ee = E, $ = O, Oe = T, Te = De, ke = k, ze = z;
|
|
197
|
+
function Je({
|
|
198
|
+
...e
|
|
199
|
+
}) {
|
|
200
|
+
return /* @__PURE__ */ n.jsx(Ne, { "data-slot": "dropdown-menu", ...e });
|
|
201
|
+
}
|
|
202
|
+
function Qe({
|
|
203
|
+
...e
|
|
204
|
+
}) {
|
|
205
|
+
return /* @__PURE__ */ n.jsx(G, { "data-slot": "dropdown-menu-portal", ...e });
|
|
206
|
+
}
|
|
207
|
+
function Ve({
|
|
208
|
+
...e
|
|
209
|
+
}) {
|
|
210
|
+
return /* @__PURE__ */ n.jsx(
|
|
211
|
+
Ce,
|
|
212
|
+
{
|
|
213
|
+
"data-slot": "dropdown-menu-trigger",
|
|
214
|
+
...e
|
|
215
|
+
}
|
|
216
|
+
);
|
|
217
|
+
}
|
|
218
|
+
function Ye({
|
|
219
|
+
className: e,
|
|
220
|
+
sideOffset: o = 4,
|
|
221
|
+
...a
|
|
222
|
+
}) {
|
|
223
|
+
return /* @__PURE__ */ n.jsx(G, { children: /* @__PURE__ */ n.jsx(
|
|
224
|
+
Ie,
|
|
225
|
+
{
|
|
226
|
+
"data-slot": "dropdown-menu-content",
|
|
227
|
+
sideOffset: o,
|
|
228
|
+
className: u(
|
|
229
|
+
"adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:z-50 adm:max-h-(--radix-dropdown-menu-content-available-height) adm:min-w-[8rem] adm:origin-(--radix-dropdown-menu-content-transform-origin) adm:overflow-x-hidden adm:overflow-y-auto adm:rounded-md adm:border adm:p-1 adm:shadow-md",
|
|
230
|
+
e
|
|
231
|
+
),
|
|
232
|
+
...a
|
|
233
|
+
}
|
|
234
|
+
) });
|
|
235
|
+
}
|
|
236
|
+
function Ze({
|
|
237
|
+
...e
|
|
238
|
+
}) {
|
|
239
|
+
return /* @__PURE__ */ n.jsx(je, { "data-slot": "dropdown-menu-group", ...e });
|
|
240
|
+
}
|
|
241
|
+
function eo({
|
|
242
|
+
className: e,
|
|
243
|
+
inset: o,
|
|
244
|
+
variant: a = "default",
|
|
245
|
+
...r
|
|
246
|
+
}) {
|
|
247
|
+
return /* @__PURE__ */ n.jsx(
|
|
248
|
+
ye,
|
|
249
|
+
{
|
|
250
|
+
"data-slot": "dropdown-menu-item",
|
|
251
|
+
"data-inset": o,
|
|
252
|
+
"data-variant": a,
|
|
253
|
+
className: u(
|
|
254
|
+
"adm:focus:bg-accent adm:focus:text-accent-foreground adm:data-[variant=destructive]:text-destructive adm:data-[variant=destructive]:focus:bg-destructive/10 adm:dark:data-[variant=destructive]:focus:bg-destructive/20 adm:data-[variant=destructive]:focus:text-destructive adm:data-[variant=destructive]:*:[svg]:!text-destructive adm:[&_svg:not([class*=text-])]:text-muted-foreground adm:relative adm:flex adm:cursor-default adm:items-center adm:gap-2 adm:rounded-sm adm:px-2 adm:py-1.5 adm:text-sm adm:outline-hidden adm:select-none adm:data-[disabled]:pointer-events-none adm:data-[disabled]:opacity-50 adm:data-[inset]:pl-8 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",
|
|
255
|
+
e
|
|
256
|
+
),
|
|
257
|
+
...r
|
|
258
|
+
}
|
|
259
|
+
);
|
|
260
|
+
}
|
|
261
|
+
function oo({
|
|
262
|
+
className: e,
|
|
263
|
+
children: o,
|
|
264
|
+
checked: a,
|
|
265
|
+
...r
|
|
266
|
+
}) {
|
|
267
|
+
return /* @__PURE__ */ n.jsxs(
|
|
268
|
+
Pe,
|
|
269
|
+
{
|
|
270
|
+
"data-slot": "dropdown-menu-checkbox-item",
|
|
271
|
+
className: u(
|
|
272
|
+
"adm:focus:bg-accent adm:focus:text-accent-foreground adm:relative adm:flex adm:cursor-default adm:items-center adm:gap-2 adm:rounded-sm adm:py-1.5 adm:pr-2 adm:pl-8 adm:text-sm adm:outline-hidden adm:select-none adm:data-[disabled]:pointer-events-none adm:data-[disabled]:opacity-50 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",
|
|
273
|
+
e
|
|
274
|
+
),
|
|
275
|
+
checked: a,
|
|
276
|
+
...r,
|
|
277
|
+
children: [
|
|
278
|
+
/* @__PURE__ */ n.jsx("span", { className: "adm:pointer-events-none adm:absolute adm:left-2 adm:flex adm:size-3.5 adm:items-center adm:justify-center", children: /* @__PURE__ */ n.jsx($, { children: /* @__PURE__ */ n.jsx(de, { className: "adm:size-4" }) }) }),
|
|
279
|
+
o
|
|
280
|
+
]
|
|
281
|
+
}
|
|
282
|
+
);
|
|
283
|
+
}
|
|
284
|
+
function ao({
|
|
285
|
+
...e
|
|
286
|
+
}) {
|
|
287
|
+
return /* @__PURE__ */ n.jsx(
|
|
288
|
+
Ae,
|
|
289
|
+
{
|
|
290
|
+
"data-slot": "dropdown-menu-radio-group",
|
|
291
|
+
...e
|
|
292
|
+
}
|
|
293
|
+
);
|
|
294
|
+
}
|
|
295
|
+
function no({
|
|
296
|
+
className: e,
|
|
297
|
+
children: o,
|
|
298
|
+
...a
|
|
299
|
+
}) {
|
|
300
|
+
return /* @__PURE__ */ n.jsxs(
|
|
301
|
+
Ee,
|
|
302
|
+
{
|
|
303
|
+
"data-slot": "dropdown-menu-radio-item",
|
|
304
|
+
className: u(
|
|
305
|
+
"adm:focus:bg-accent adm:focus:text-accent-foreground adm:relative adm:flex adm:cursor-default adm:items-center adm:gap-2 adm:rounded-sm adm:py-1.5 adm:pr-2 adm:pl-8 adm:text-sm adm:outline-hidden adm:select-none adm:data-[disabled]:pointer-events-none adm:data-[disabled]:opacity-50 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",
|
|
306
|
+
e
|
|
307
|
+
),
|
|
308
|
+
...a,
|
|
309
|
+
children: [
|
|
310
|
+
/* @__PURE__ */ n.jsx("span", { className: "adm:pointer-events-none adm:absolute adm:left-2 adm:flex adm:size-3.5 adm:items-center adm:justify-center", children: /* @__PURE__ */ n.jsx($, { children: /* @__PURE__ */ n.jsx(se, { className: "adm:size-2 adm:fill-current" }) }) }),
|
|
311
|
+
o
|
|
312
|
+
]
|
|
313
|
+
}
|
|
314
|
+
);
|
|
315
|
+
}
|
|
316
|
+
function ro({
|
|
317
|
+
className: e,
|
|
318
|
+
inset: o,
|
|
319
|
+
...a
|
|
320
|
+
}) {
|
|
321
|
+
return /* @__PURE__ */ n.jsx(
|
|
322
|
+
Se,
|
|
323
|
+
{
|
|
324
|
+
"data-slot": "dropdown-menu-label",
|
|
325
|
+
"data-inset": o,
|
|
326
|
+
className: u(
|
|
327
|
+
"adm:px-2 adm:py-1.5 adm:text-sm adm:font-medium adm:data-[inset]:pl-8",
|
|
328
|
+
e
|
|
329
|
+
),
|
|
330
|
+
...a
|
|
331
|
+
}
|
|
332
|
+
);
|
|
333
|
+
}
|
|
334
|
+
function to({
|
|
335
|
+
className: e,
|
|
336
|
+
...o
|
|
337
|
+
}) {
|
|
338
|
+
return /* @__PURE__ */ n.jsx(
|
|
339
|
+
Oe,
|
|
340
|
+
{
|
|
341
|
+
"data-slot": "dropdown-menu-separator",
|
|
342
|
+
className: u("adm:bg-border adm:-mx-1 adm:my-1 adm:h-px", e),
|
|
343
|
+
...o
|
|
344
|
+
}
|
|
345
|
+
);
|
|
346
|
+
}
|
|
347
|
+
function so({
|
|
348
|
+
className: e,
|
|
349
|
+
...o
|
|
350
|
+
}) {
|
|
351
|
+
return /* @__PURE__ */ n.jsx(
|
|
352
|
+
"span",
|
|
353
|
+
{
|
|
354
|
+
"data-slot": "dropdown-menu-shortcut",
|
|
355
|
+
className: u(
|
|
356
|
+
"adm:text-muted-foreground adm:ml-auto adm:text-xs adm:tracking-widest",
|
|
357
|
+
e
|
|
358
|
+
),
|
|
359
|
+
...o
|
|
360
|
+
}
|
|
361
|
+
);
|
|
362
|
+
}
|
|
363
|
+
function mo({
|
|
364
|
+
...e
|
|
365
|
+
}) {
|
|
366
|
+
return /* @__PURE__ */ n.jsx(Te, { "data-slot": "dropdown-menu-sub", ...e });
|
|
367
|
+
}
|
|
368
|
+
function io({
|
|
369
|
+
className: e,
|
|
370
|
+
inset: o,
|
|
371
|
+
children: a,
|
|
372
|
+
...r
|
|
373
|
+
}) {
|
|
374
|
+
return /* @__PURE__ */ n.jsxs(
|
|
375
|
+
ke,
|
|
376
|
+
{
|
|
377
|
+
"data-slot": "dropdown-menu-sub-trigger",
|
|
378
|
+
"data-inset": o,
|
|
379
|
+
className: u(
|
|
380
|
+
"adm:focus:bg-accent adm:focus:text-accent-foreground adm:data-[state=open]:bg-accent adm:data-[state=open]:text-accent-foreground adm:[&_svg:not([class*=text-])]:text-muted-foreground adm:flex adm:cursor-default adm:items-center adm:gap-2 adm:rounded-sm adm:px-2 adm:py-1.5 adm:text-sm adm:outline-hidden adm:select-none adm:data-[inset]:pl-8 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",
|
|
381
|
+
e
|
|
382
|
+
),
|
|
383
|
+
...r,
|
|
384
|
+
children: [
|
|
385
|
+
a,
|
|
386
|
+
/* @__PURE__ */ n.jsx(me, { className: "adm:ml-auto adm:size-4" })
|
|
387
|
+
]
|
|
388
|
+
}
|
|
389
|
+
);
|
|
390
|
+
}
|
|
391
|
+
function po({
|
|
392
|
+
className: e,
|
|
393
|
+
...o
|
|
394
|
+
}) {
|
|
395
|
+
return /* @__PURE__ */ n.jsx(
|
|
396
|
+
ze,
|
|
397
|
+
{
|
|
398
|
+
"data-slot": "dropdown-menu-sub-content",
|
|
399
|
+
className: u(
|
|
400
|
+
"adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:z-50 adm:min-w-[8rem] adm:origin-(--radix-dropdown-menu-content-transform-origin) adm:overflow-hidden adm:rounded-md adm:border adm:p-1 adm:shadow-lg",
|
|
401
|
+
e
|
|
402
|
+
),
|
|
403
|
+
...o
|
|
404
|
+
}
|
|
405
|
+
);
|
|
406
|
+
}
|
|
407
|
+
export {
|
|
408
|
+
Je as DropdownMenu,
|
|
409
|
+
oo as DropdownMenuCheckboxItem,
|
|
410
|
+
Ye as DropdownMenuContent,
|
|
411
|
+
Ze as DropdownMenuGroup,
|
|
412
|
+
eo as DropdownMenuItem,
|
|
413
|
+
ro as DropdownMenuLabel,
|
|
414
|
+
Qe as DropdownMenuPortal,
|
|
415
|
+
ao as DropdownMenuRadioGroup,
|
|
416
|
+
no as DropdownMenuRadioItem,
|
|
417
|
+
to as DropdownMenuSeparator,
|
|
418
|
+
so as DropdownMenuShortcut,
|
|
419
|
+
mo as DropdownMenuSub,
|
|
420
|
+
po as DropdownMenuSubContent,
|
|
421
|
+
io as DropdownMenuSubTrigger,
|
|
422
|
+
Ve as DropdownMenuTrigger
|
|
423
|
+
};
|
package/dist/field.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./jsx-runtime-BB_1_6y_.cjs"),n=require("react"),u=require("./index-iAvn1gzj.cjs"),d=require("./utils-DoxiiusW.cjs"),c=require("./label-MxqN87DQ.cjs"),f=require("./separator-Dbx-SVIs.cjs");function x({className:e,...a}){return t.jsxRuntimeExports.jsx("fieldset",{"data-slot":"field-set",className:d.cn("adm:flex adm:flex-col adm:gap-6","adm:has-[>[data-slot=checkbox-group]]:gap-3 adm:has-[>[data-slot=radio-group]]:gap-3",e),...a})}function p({className:e,variant:a="legend",...l}){return t.jsxRuntimeExports.jsx("legend",{"data-slot":"field-legend","data-variant":a,className:d.cn("adm:mb-3 adm:font-medium","adm:data-[variant=legend]:text-base","adm:data-[variant=label]:text-sm",e),...l})}function g({className:e,...a}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"field-group",className:d.cn("adm:group/field-group adm:@container/field-group adm:flex adm:w-full adm:flex-col adm:gap-7 adm:data-[slot=checkbox-group]:gap-3 adm:[&>[data-slot=field-group]]:gap-4",e),...a})}const b=u.cva("adm:group/field adm:flex adm:w-full adm:gap-2 adm:data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:["adm:flex-col adm:[&>*]:w-full adm:[&>.sr-only]:w-auto"],horizontal:["adm:flex-row adm:items-center","adm:[&>[data-slot=field-label]]:flex-auto","adm:has-[>[data-slot=field-content]]:items-start adm:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"],responsive:["adm:flex-col adm:[&>*]:w-full adm:[&>.sr-only]:w-auto adm:@md/field-group:flex-row adm:@md/field-group:items-center adm:@md/field-group:[&>*]:w-auto","adm:@md/field-group:[&>[data-slot=field-label]]:flex-auto","adm:@md/field-group:has-[>[data-slot=field-content]]:items-start adm:@md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});function j({className:e,orientation:a="vertical",...l}){return t.jsxRuntimeExports.jsx("div",{role:"group","data-slot":"field","data-orientation":a,className:d.cn(b({orientation:a}),e),...l})}function h({className:e,...a}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"field-content",className:d.cn("adm:group/field-content adm:flex adm:flex-1 adm:flex-col adm:gap-1.5 adm:leading-snug",e),...a})}function v({className:e,...a}){return t.jsxRuntimeExports.jsx(c.Label,{"data-slot":"field-label",className:d.cn("adm:group/field-label adm:peer/field-label adm:flex adm:w-fit adm:gap-2 adm:leading-snug adm:group-data-[disabled=true]/field:opacity-50","adm:has-[>[data-slot=field]]:w-full adm:has-[>[data-slot=field]]:flex-col adm:has-[>[data-slot=field]]:rounded-md adm:has-[>[data-slot=field]]:border adm:[&>*]:data-[slot=field]:p-4","adm:has-data-[state=checked]:bg-primary/5 adm:has-data-[state=checked]:border-primary adm:dark:has-data-[state=checked]:bg-primary/10",e),...a})}function F({className:e,...a}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"field-label",className:d.cn("adm:flex adm:w-fit adm:items-center adm:gap-2 adm:text-sm adm:leading-snug adm:font-medium adm:group-data-[disabled=true]/field:opacity-50",e),...a})}function E({className:e,...a}){return t.jsxRuntimeExports.jsx("p",{"data-slot":"field-description",className:d.cn("adm:text-muted-foreground adm:text-sm adm:leading-normal adm:font-normal adm:group-has-[[data-orientation=horizontal]]/field:text-balance","adm:last:mt-0 adm:nth-last-2:-mt-1 adm:[[data-variant=legend]+&]:-mt-1.5","adm:[&>a:hover]:text-primary adm:[&>a]:underline adm:[&>a]:underline-offset-4",e),...a})}function R({children:e,className:a,...l}){return t.jsxRuntimeExports.jsxs("div",{"data-slot":"field-separator","data-content":!!e,className:d.cn("adm:relative adm:-my-2 adm:h-5 adm:text-sm adm:group-data-[variant=outline]/field-group:-mb-2",a),...l,children:[t.jsxRuntimeExports.jsx(f.Separator,{className:"adm:absolute adm:inset-0 adm:top-1/2"}),e&&t.jsxRuntimeExports.jsx("span",{className:"adm:bg-background adm:text-muted-foreground adm:relative adm:mx-auto adm:block adm:w-fit adm:px-2","data-slot":"field-separator-content",children:e})]})}function w({className:e,children:a,errors:l,...o}){const i=n.useMemo(()=>{if(a)return a;if(!l?.length)return null;const s=[...new Map(l.map(m=>[m?.message,m])).values()];return s?.length==1?s[0]?.message:t.jsxRuntimeExports.jsx("ul",{className:"adm:ml-4 adm:flex adm:list-disc adm:flex-col adm:gap-1",children:s.map((m,r)=>m?.message&&t.jsxRuntimeExports.jsx("li",{children:m.message},r))})},[a,l]);return i?t.jsxRuntimeExports.jsx("div",{role:"alert","data-slot":"field-error",className:d.cn("adm:text-destructive adm:text-sm adm:font-normal",e),...o,children:i}):null}exports.Field=j;exports.FieldContent=h;exports.FieldDescription=E;exports.FieldError=w;exports.FieldGroup=g;exports.FieldLabel=v;exports.FieldLegend=p;exports.FieldSeparator=R;exports.FieldSet=x;exports.FieldTitle=F;
|