@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/card.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./jsx-runtime-BB_1_6y_.cjs");require("react");const d=require("./utils-DoxiiusW.cjs"),n=require("./index-iAvn1gzj.cjs"),e=n.cva("adm:bg-card adm:text-card-foreground adm:flex adm:flex-col adm:gap-6 adm:rounded-xl adm:border adm:py-6 adm:shadow-sm",{variants:{variant:{default:"adm:bg-card adm:text-card-foreground",primary:"adm:bg-primary-50 adm:[&>svg]:text-current adm:*:data-[slot=alert-description]:text-primary/90",muted:"adm:bg-muted adm:[&>svg]:text-current adm:*:data-[slot=alert-description]:text-muted/90",success:"adm:bg-success-50 adm:[&>svg]:text-current adm:*:data-[slot=alert-description]:text-success/90",warning:"adm:bg-warning-50 adm:[&>svg]:text-current adm:*:data-[slot=alert-description]:text-warning/90",destructive:"adm:bg-destructive-50 adm:[&>svg]:text-current adm:*:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function o({className:a,variant:t,...s}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"card",className:d.cn(e({variant:t}),a),...s})}function i({className:a,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"card-header",className:d.cn("adm:@container/card-header adm:grid adm:auto-rows-min adm:grid-rows-[auto_auto] adm:items-start adm:gap-2 adm:px-6 adm:has-data-[slot=card-action]:grid-cols-[1fr_auto] adm:[.border-b]:pb-6",a),...t})}function m({className:a,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"card-title",className:d.cn("adm:leading-none adm:font-semibold",a),...t})}function c({className:a,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"card-description",className:d.cn("adm:text-muted-foreground adm:text-sm",a),...t})}function u({className:a,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"card-action",className:d.cn("adm:col-start-2 adm:row-span-2 adm:row-start-1 adm:self-start adm:justify-self-end",a),...t})}function l({className:a,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"card-content",className:d.cn("adm:px-6",a),...t})}function x({className:a,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"card-footer",className:d.cn("adm:flex adm:items-center adm:px-6 adm:[.border-t]:pt-6",a),...t})}exports.Card=o;exports.CardAction=u;exports.CardContent=l;exports.CardDescription=c;exports.CardFooter=x;exports.CardHeader=i;exports.CardTitle=m;exports.cardVariants=e;
|
package/dist/card.js
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { j as d } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { c as r } from "./utils-CRiPKpXj.js";
|
|
4
|
+
import { c as s } from "./index-CQhYMnjT.js";
|
|
5
|
+
const m = s(
|
|
6
|
+
"adm:bg-card adm:text-card-foreground adm:flex adm:flex-col adm:gap-6 adm:rounded-xl adm:border adm:py-6 adm:shadow-sm",
|
|
7
|
+
{
|
|
8
|
+
variants: {
|
|
9
|
+
variant: {
|
|
10
|
+
default: "adm:bg-card adm:text-card-foreground",
|
|
11
|
+
primary: "adm:bg-primary-50 adm:[&>svg]:text-current adm:*:data-[slot=alert-description]:text-primary/90",
|
|
12
|
+
muted: "adm:bg-muted adm:[&>svg]:text-current adm:*:data-[slot=alert-description]:text-muted/90",
|
|
13
|
+
success: "adm:bg-success-50 adm:[&>svg]:text-current adm:*:data-[slot=alert-description]:text-success/90",
|
|
14
|
+
warning: "adm:bg-warning-50 adm:[&>svg]:text-current adm:*:data-[slot=alert-description]:text-warning/90",
|
|
15
|
+
destructive: "adm:bg-destructive-50 adm:[&>svg]:text-current adm:*:data-[slot=alert-description]:text-destructive/90"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
defaultVariants: {
|
|
19
|
+
variant: "default"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
function u({
|
|
24
|
+
className: a,
|
|
25
|
+
variant: t,
|
|
26
|
+
...e
|
|
27
|
+
}) {
|
|
28
|
+
return /* @__PURE__ */ d.jsx(
|
|
29
|
+
"div",
|
|
30
|
+
{
|
|
31
|
+
"data-slot": "card",
|
|
32
|
+
className: r(m({ variant: t }), a),
|
|
33
|
+
...e
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
function l({ className: a, ...t }) {
|
|
38
|
+
return /* @__PURE__ */ d.jsx(
|
|
39
|
+
"div",
|
|
40
|
+
{
|
|
41
|
+
"data-slot": "card-header",
|
|
42
|
+
className: r(
|
|
43
|
+
"adm:@container/card-header adm:grid adm:auto-rows-min adm:grid-rows-[auto_auto] adm:items-start adm:gap-2 adm:px-6 adm:has-data-[slot=card-action]:grid-cols-[1fr_auto] adm:[.border-b]:pb-6",
|
|
44
|
+
a
|
|
45
|
+
),
|
|
46
|
+
...t
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
function x({ className: a, ...t }) {
|
|
51
|
+
return /* @__PURE__ */ d.jsx(
|
|
52
|
+
"div",
|
|
53
|
+
{
|
|
54
|
+
"data-slot": "card-title",
|
|
55
|
+
className: r("adm:leading-none adm:font-semibold", a),
|
|
56
|
+
...t
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
function f({ className: a, ...t }) {
|
|
61
|
+
return /* @__PURE__ */ d.jsx(
|
|
62
|
+
"div",
|
|
63
|
+
{
|
|
64
|
+
"data-slot": "card-description",
|
|
65
|
+
className: r("adm:text-muted-foreground adm:text-sm", a),
|
|
66
|
+
...t
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
function p({ className: a, ...t }) {
|
|
71
|
+
return /* @__PURE__ */ d.jsx(
|
|
72
|
+
"div",
|
|
73
|
+
{
|
|
74
|
+
"data-slot": "card-action",
|
|
75
|
+
className: r(
|
|
76
|
+
"adm:col-start-2 adm:row-span-2 adm:row-start-1 adm:self-start adm:justify-self-end",
|
|
77
|
+
a
|
|
78
|
+
),
|
|
79
|
+
...t
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
function g({ className: a, ...t }) {
|
|
84
|
+
return /* @__PURE__ */ d.jsx(
|
|
85
|
+
"div",
|
|
86
|
+
{
|
|
87
|
+
"data-slot": "card-content",
|
|
88
|
+
className: r("adm:px-6", a),
|
|
89
|
+
...t
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
function v({ className: a, ...t }) {
|
|
94
|
+
return /* @__PURE__ */ d.jsx(
|
|
95
|
+
"div",
|
|
96
|
+
{
|
|
97
|
+
"data-slot": "card-footer",
|
|
98
|
+
className: r("adm:flex adm:items-center adm:px-6 adm:[.border-t]:pt-6", a),
|
|
99
|
+
...t
|
|
100
|
+
}
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
export {
|
|
104
|
+
u as Card,
|
|
105
|
+
p as CardAction,
|
|
106
|
+
g as CardContent,
|
|
107
|
+
f as CardDescription,
|
|
108
|
+
v as CardFooter,
|
|
109
|
+
l as CardHeader,
|
|
110
|
+
x as CardTitle,
|
|
111
|
+
m as cardVariants
|
|
112
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";const c=require("./createLucideIcon-CAtnV-yz.cjs");/**
|
|
2
|
+
* @license lucide-react v0.546.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const e=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],t=c.createLucideIcon("check",e);exports.Check=t;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { c } from "./createLucideIcon-B_8CJpcQ.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.546.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const e = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], t = c("check", e);
|
|
9
|
+
export {
|
|
10
|
+
t as C
|
|
11
|
+
};
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import { j as r } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
+
import * as c from "react";
|
|
3
|
+
import { u as w } from "./index-6oTEokEx.js";
|
|
4
|
+
import { c as O } from "./index-FxyLF8MY.js";
|
|
5
|
+
import { u as H, c as N } from "./index-C0UREtMP.js";
|
|
6
|
+
import { u as G } from "./index-BZPx6jYI.js";
|
|
7
|
+
import { u as K } from "./index-BGQepRFJ.js";
|
|
8
|
+
import { P as U } from "./index-EUea2gfp.js";
|
|
9
|
+
import { P as _ } from "./index-C5wjudc-.js";
|
|
10
|
+
import { c as P } from "./utils-CRiPKpXj.js";
|
|
11
|
+
import { C as X } from "./check-Ci0GjV-B.js";
|
|
12
|
+
import { M as $ } from "./minus-DE-onYs2.js";
|
|
13
|
+
var y = "Checkbox", [J] = O(y), [Q, I] = J(y);
|
|
14
|
+
function V(t) {
|
|
15
|
+
const {
|
|
16
|
+
__scopeCheckbox: a,
|
|
17
|
+
checked: d,
|
|
18
|
+
children: m,
|
|
19
|
+
defaultChecked: n,
|
|
20
|
+
disabled: e,
|
|
21
|
+
form: p,
|
|
22
|
+
name: f,
|
|
23
|
+
onCheckedChange: i,
|
|
24
|
+
required: b,
|
|
25
|
+
value: k = "on",
|
|
26
|
+
// @ts-expect-error
|
|
27
|
+
internal_do_not_use_render: u
|
|
28
|
+
} = t, [l, v] = H({
|
|
29
|
+
prop: d,
|
|
30
|
+
defaultProp: n ?? !1,
|
|
31
|
+
onChange: i,
|
|
32
|
+
caller: y
|
|
33
|
+
}), [x, C] = c.useState(null), [g, o] = c.useState(null), s = c.useRef(!1), R = x ? !!p || !!x.closest("form") : (
|
|
34
|
+
// We set this to true by default so that events bubble to forms without JS (SSR)
|
|
35
|
+
!0
|
|
36
|
+
), E = {
|
|
37
|
+
checked: l,
|
|
38
|
+
disabled: e,
|
|
39
|
+
setChecked: v,
|
|
40
|
+
control: x,
|
|
41
|
+
setControl: C,
|
|
42
|
+
name: f,
|
|
43
|
+
form: p,
|
|
44
|
+
value: k,
|
|
45
|
+
hasConsumerStoppedPropagationRef: s,
|
|
46
|
+
required: b,
|
|
47
|
+
defaultChecked: h(n) ? !1 : n,
|
|
48
|
+
isFormControl: R,
|
|
49
|
+
bubbleInput: g,
|
|
50
|
+
setBubbleInput: o
|
|
51
|
+
};
|
|
52
|
+
return /* @__PURE__ */ r.jsx(
|
|
53
|
+
Q,
|
|
54
|
+
{
|
|
55
|
+
scope: a,
|
|
56
|
+
...E,
|
|
57
|
+
children: W(u) ? u(E) : m
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
var S = "CheckboxTrigger", B = c.forwardRef(
|
|
62
|
+
({ __scopeCheckbox: t, onKeyDown: a, onClick: d, ...m }, n) => {
|
|
63
|
+
const {
|
|
64
|
+
control: e,
|
|
65
|
+
value: p,
|
|
66
|
+
disabled: f,
|
|
67
|
+
checked: i,
|
|
68
|
+
required: b,
|
|
69
|
+
setControl: k,
|
|
70
|
+
setChecked: u,
|
|
71
|
+
hasConsumerStoppedPropagationRef: l,
|
|
72
|
+
isFormControl: v,
|
|
73
|
+
bubbleInput: x
|
|
74
|
+
} = I(S, t), C = w(n, k), g = c.useRef(i);
|
|
75
|
+
return c.useEffect(() => {
|
|
76
|
+
const o = e?.form;
|
|
77
|
+
if (o) {
|
|
78
|
+
const s = () => u(g.current);
|
|
79
|
+
return o.addEventListener("reset", s), () => o.removeEventListener("reset", s);
|
|
80
|
+
}
|
|
81
|
+
}, [e, u]), /* @__PURE__ */ r.jsx(
|
|
82
|
+
_.button,
|
|
83
|
+
{
|
|
84
|
+
type: "button",
|
|
85
|
+
role: "checkbox",
|
|
86
|
+
"aria-checked": h(i) ? "mixed" : i,
|
|
87
|
+
"aria-required": b,
|
|
88
|
+
"data-state": D(i),
|
|
89
|
+
"data-disabled": f ? "" : void 0,
|
|
90
|
+
disabled: f,
|
|
91
|
+
value: p,
|
|
92
|
+
...m,
|
|
93
|
+
ref: C,
|
|
94
|
+
onKeyDown: N(a, (o) => {
|
|
95
|
+
o.key === "Enter" && o.preventDefault();
|
|
96
|
+
}),
|
|
97
|
+
onClick: N(d, (o) => {
|
|
98
|
+
u((s) => h(s) ? !0 : !s), x && v && (l.current = o.isPropagationStopped(), l.current || o.stopPropagation());
|
|
99
|
+
})
|
|
100
|
+
}
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
B.displayName = S;
|
|
105
|
+
var M = c.forwardRef(
|
|
106
|
+
(t, a) => {
|
|
107
|
+
const {
|
|
108
|
+
__scopeCheckbox: d,
|
|
109
|
+
name: m,
|
|
110
|
+
checked: n,
|
|
111
|
+
defaultChecked: e,
|
|
112
|
+
required: p,
|
|
113
|
+
disabled: f,
|
|
114
|
+
value: i,
|
|
115
|
+
onCheckedChange: b,
|
|
116
|
+
form: k,
|
|
117
|
+
...u
|
|
118
|
+
} = t;
|
|
119
|
+
return /* @__PURE__ */ r.jsx(
|
|
120
|
+
V,
|
|
121
|
+
{
|
|
122
|
+
__scopeCheckbox: d,
|
|
123
|
+
checked: n,
|
|
124
|
+
defaultChecked: e,
|
|
125
|
+
disabled: f,
|
|
126
|
+
required: p,
|
|
127
|
+
onCheckedChange: b,
|
|
128
|
+
name: m,
|
|
129
|
+
form: k,
|
|
130
|
+
value: i,
|
|
131
|
+
internal_do_not_use_render: ({ isFormControl: l }) => /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
132
|
+
/* @__PURE__ */ r.jsx(
|
|
133
|
+
B,
|
|
134
|
+
{
|
|
135
|
+
...u,
|
|
136
|
+
ref: a,
|
|
137
|
+
__scopeCheckbox: d
|
|
138
|
+
}
|
|
139
|
+
),
|
|
140
|
+
l && /* @__PURE__ */ r.jsx(
|
|
141
|
+
A,
|
|
142
|
+
{
|
|
143
|
+
__scopeCheckbox: d
|
|
144
|
+
}
|
|
145
|
+
)
|
|
146
|
+
] })
|
|
147
|
+
}
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
);
|
|
151
|
+
M.displayName = y;
|
|
152
|
+
var T = "CheckboxIndicator", q = c.forwardRef(
|
|
153
|
+
(t, a) => {
|
|
154
|
+
const { __scopeCheckbox: d, forceMount: m, ...n } = t, e = I(T, d);
|
|
155
|
+
return /* @__PURE__ */ r.jsx(
|
|
156
|
+
U,
|
|
157
|
+
{
|
|
158
|
+
present: m || h(e.checked) || e.checked === !0,
|
|
159
|
+
children: /* @__PURE__ */ r.jsx(
|
|
160
|
+
_.span,
|
|
161
|
+
{
|
|
162
|
+
"data-state": D(e.checked),
|
|
163
|
+
"data-disabled": e.disabled ? "" : void 0,
|
|
164
|
+
...n,
|
|
165
|
+
ref: a,
|
|
166
|
+
style: { pointerEvents: "none", ...t.style }
|
|
167
|
+
}
|
|
168
|
+
)
|
|
169
|
+
}
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
);
|
|
173
|
+
q.displayName = T;
|
|
174
|
+
var z = "CheckboxBubbleInput", A = c.forwardRef(
|
|
175
|
+
({ __scopeCheckbox: t, ...a }, d) => {
|
|
176
|
+
const {
|
|
177
|
+
control: m,
|
|
178
|
+
hasConsumerStoppedPropagationRef: n,
|
|
179
|
+
checked: e,
|
|
180
|
+
defaultChecked: p,
|
|
181
|
+
required: f,
|
|
182
|
+
disabled: i,
|
|
183
|
+
name: b,
|
|
184
|
+
value: k,
|
|
185
|
+
form: u,
|
|
186
|
+
bubbleInput: l,
|
|
187
|
+
setBubbleInput: v
|
|
188
|
+
} = I(z, t), x = w(d, v), C = G(e), g = K(m);
|
|
189
|
+
c.useEffect(() => {
|
|
190
|
+
const s = l;
|
|
191
|
+
if (!s) return;
|
|
192
|
+
const R = window.HTMLInputElement.prototype, j = Object.getOwnPropertyDescriptor(
|
|
193
|
+
R,
|
|
194
|
+
"checked"
|
|
195
|
+
).set, F = !n.current;
|
|
196
|
+
if (C !== e && j) {
|
|
197
|
+
const L = new Event("click", { bubbles: F });
|
|
198
|
+
s.indeterminate = h(e), j.call(s, h(e) ? !1 : e), s.dispatchEvent(L);
|
|
199
|
+
}
|
|
200
|
+
}, [l, C, e, n]);
|
|
201
|
+
const o = c.useRef(h(e) ? !1 : e);
|
|
202
|
+
return /* @__PURE__ */ r.jsx(
|
|
203
|
+
_.input,
|
|
204
|
+
{
|
|
205
|
+
type: "checkbox",
|
|
206
|
+
"aria-hidden": !0,
|
|
207
|
+
defaultChecked: p ?? o.current,
|
|
208
|
+
required: f,
|
|
209
|
+
disabled: i,
|
|
210
|
+
name: b,
|
|
211
|
+
value: k,
|
|
212
|
+
form: u,
|
|
213
|
+
...a,
|
|
214
|
+
tabIndex: -1,
|
|
215
|
+
ref: x,
|
|
216
|
+
style: {
|
|
217
|
+
...a.style,
|
|
218
|
+
...g,
|
|
219
|
+
position: "absolute",
|
|
220
|
+
pointerEvents: "none",
|
|
221
|
+
opacity: 0,
|
|
222
|
+
margin: 0,
|
|
223
|
+
// We transform because the input is absolutely positioned but we have
|
|
224
|
+
// rendered it **after** the button. This pulls it back to sit on top
|
|
225
|
+
// of the button.
|
|
226
|
+
transform: "translateX(-100%)"
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
);
|
|
230
|
+
}
|
|
231
|
+
);
|
|
232
|
+
A.displayName = z;
|
|
233
|
+
function W(t) {
|
|
234
|
+
return typeof t == "function";
|
|
235
|
+
}
|
|
236
|
+
function h(t) {
|
|
237
|
+
return t === "indeterminate";
|
|
238
|
+
}
|
|
239
|
+
function D(t) {
|
|
240
|
+
return h(t) ? "indeterminate" : t ? "checked" : "unchecked";
|
|
241
|
+
}
|
|
242
|
+
function ie({
|
|
243
|
+
className: t,
|
|
244
|
+
...a
|
|
245
|
+
}) {
|
|
246
|
+
return /* @__PURE__ */ r.jsx(
|
|
247
|
+
M,
|
|
248
|
+
{
|
|
249
|
+
"data-slot": "checkbox",
|
|
250
|
+
className: P(
|
|
251
|
+
"adm:peer adm:border-input adm:dark:bg-input/30 adm:data-[state=checked]:bg-primary adm:data-[state=checked]:text-primary-foreground adm:dark:data-[state=checked]:bg-primary adm:data-[state=checked]:border-primary adm:focus-visible:border-ring adm:focus-visible:ring-ring/50 adm:aria-invalid:ring-destructive/20 adm:dark:aria-invalid:ring-destructive/40 adm:aria-invalid:border-destructive adm:size-5 adm:shrink-0 adm:rounded-[6px] adm:border adm:shadow-xs adm:transition-shadow adm:outline-none adm:focus-visible:ring-[3px] adm:disabled:cursor-not-allowed adm:disabled:opacity-50",
|
|
252
|
+
t
|
|
253
|
+
),
|
|
254
|
+
...a,
|
|
255
|
+
children: /* @__PURE__ */ r.jsxs(
|
|
256
|
+
q,
|
|
257
|
+
{
|
|
258
|
+
"data-slot": "checkbox-indicator",
|
|
259
|
+
className: "adm:group adm:grid adm:place-content-center adm:text-current adm:transition-none",
|
|
260
|
+
children: [
|
|
261
|
+
/* @__PURE__ */ r.jsx(X, { className: P("adm:size-3.5 adm:text-white", "adm:group-data-[state=indeterminate]:hidden") }),
|
|
262
|
+
/* @__PURE__ */ r.jsx($, { className: P("adm:size-3.5 adm:text-primary", "adm:group-data-[state=checked]:hidden") })
|
|
263
|
+
]
|
|
264
|
+
}
|
|
265
|
+
)
|
|
266
|
+
}
|
|
267
|
+
);
|
|
268
|
+
}
|
|
269
|
+
export {
|
|
270
|
+
ie as C
|
|
271
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("./jsx-runtime-BB_1_6y_.cjs"),F=require("react"),N=require("./index-BKbK2GzY.cjs"),H=require("./index-cwZN7ZY3.cjs"),_=require("./index-BWaO7kQK.cjs"),L=require("./index-DYxWvftI.cjs"),G=require("./index-bSPhqlcX.cjs"),K=require("./index-IKJMQref.cjs"),P=require("./index-DQvx1rG_.cjs"),y=require("./utils-DoxiiusW.cjs"),U=require("./check-CLxNVljQ.cjs"),X=require("./minus-C0pHPx21.cjs");function J(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return r.default=e,Object.freeze(r)}const d=J(F);var g="Checkbox",[Q]=H.createContextScope(g),[V,q]=Q(g);function W(e){const{__scopeCheckbox:r,checked:n,children:a,defaultChecked:c,disabled:t,form:p,name:x,onCheckedChange:u,required:b,value:h="on",internal_do_not_use_render:l}=e,[m,v]=_.useControllableState({prop:n,defaultProp:c??!1,onChange:u,caller:g}),[k,C]=d.useState(null),[R,s]=d.useState(null),i=d.useRef(!1),j=k?!!p||!!k.closest("form"):!0,E={checked:m,disabled:t,setChecked:v,control:k,setControl:C,name:x,form:p,value:h,hasConsumerStoppedPropagationRef:i,required:b,defaultChecked:f(c)?!1:c,isFormControl:j,bubbleInput:R,setBubbleInput:s};return o.jsxRuntimeExports.jsx(V,{scope:r,...E,children:Y(l)?l(E):a})}var w="CheckboxTrigger",S=d.forwardRef(({__scopeCheckbox:e,onKeyDown:r,onClick:n,...a},c)=>{const{control:t,value:p,disabled:x,checked:u,required:b,setControl:h,setChecked:l,hasConsumerStoppedPropagationRef:m,isFormControl:v,bubbleInput:k}=q(w,e),C=N.useComposedRefs(c,h),R=d.useRef(u);return d.useEffect(()=>{const s=t?.form;if(s){const i=()=>l(R.current);return s.addEventListener("reset",i),()=>s.removeEventListener("reset",i)}},[t,l]),o.jsxRuntimeExports.jsx(P.Primitive.button,{type:"button",role:"checkbox","aria-checked":f(u)?"mixed":u,"aria-required":b,"data-state":z(u),"data-disabled":x?"":void 0,disabled:x,value:p,...a,ref:C,onKeyDown:_.composeEventHandlers(r,s=>{s.key==="Enter"&&s.preventDefault()}),onClick:_.composeEventHandlers(n,s=>{l(i=>f(i)?!0:!i),k&&v&&(m.current=s.isPropagationStopped(),m.current||s.stopPropagation())})})});S.displayName=w;var O=d.forwardRef((e,r)=>{const{__scopeCheckbox:n,name:a,checked:c,defaultChecked:t,required:p,disabled:x,value:u,onCheckedChange:b,form:h,...l}=e;return o.jsxRuntimeExports.jsx(W,{__scopeCheckbox:n,checked:c,defaultChecked:t,disabled:x,required:p,onCheckedChange:b,name:a,form:h,value:u,internal_do_not_use_render:({isFormControl:m})=>o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[o.jsxRuntimeExports.jsx(S,{...l,ref:r,__scopeCheckbox:n}),m&&o.jsxRuntimeExports.jsx($,{__scopeCheckbox:n})]})})});O.displayName=g;var B="CheckboxIndicator",M=d.forwardRef((e,r)=>{const{__scopeCheckbox:n,forceMount:a,...c}=e,t=q(B,n);return o.jsxRuntimeExports.jsx(K.Presence,{present:a||f(t.checked)||t.checked===!0,children:o.jsxRuntimeExports.jsx(P.Primitive.span,{"data-state":z(t.checked),"data-disabled":t.disabled?"":void 0,...c,ref:r,style:{pointerEvents:"none",...e.style}})})});M.displayName=B;var T="CheckboxBubbleInput",$=d.forwardRef(({__scopeCheckbox:e,...r},n)=>{const{control:a,hasConsumerStoppedPropagationRef:c,checked:t,defaultChecked:p,required:x,disabled:u,name:b,value:h,form:l,bubbleInput:m,setBubbleInput:v}=q(T,e),k=N.useComposedRefs(n,v),C=L.usePrevious(t),R=G.useSize(a);d.useEffect(()=>{const i=m;if(!i)return;const j=window.HTMLInputElement.prototype,I=Object.getOwnPropertyDescriptor(j,"checked").set,D=!c.current;if(C!==t&&I){const A=new Event("click",{bubbles:D});i.indeterminate=f(t),I.call(i,f(t)?!1:t),i.dispatchEvent(A)}},[m,C,t,c]);const s=d.useRef(f(t)?!1:t);return o.jsxRuntimeExports.jsx(P.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:p??s.current,required:x,disabled:u,name:b,value:h,form:l,...r,tabIndex:-1,ref:k,style:{...r.style,...R,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});$.displayName=T;function Y(e){return typeof e=="function"}function f(e){return e==="indeterminate"}function z(e){return f(e)?"indeterminate":e?"checked":"unchecked"}function Z({className:e,...r}){return o.jsxRuntimeExports.jsx(O,{"data-slot":"checkbox",className:y.cn("adm:peer adm:border-input adm:dark:bg-input/30 adm:data-[state=checked]:bg-primary adm:data-[state=checked]:text-primary-foreground adm:dark:data-[state=checked]:bg-primary adm:data-[state=checked]:border-primary adm:focus-visible:border-ring adm:focus-visible:ring-ring/50 adm:aria-invalid:ring-destructive/20 adm:dark:aria-invalid:ring-destructive/40 adm:aria-invalid:border-destructive adm:size-5 adm:shrink-0 adm:rounded-[6px] adm:border adm:shadow-xs adm:transition-shadow adm:outline-none adm:focus-visible:ring-[3px] adm:disabled:cursor-not-allowed adm:disabled:opacity-50",e),...r,children:o.jsxRuntimeExports.jsxs(M,{"data-slot":"checkbox-indicator",className:"adm:group adm:grid adm:place-content-center adm:text-current adm:transition-none",children:[o.jsxRuntimeExports.jsx(U.Check,{className:y.cn("adm:size-3.5 adm:text-white","adm:group-data-[state=indeterminate]:hidden")}),o.jsxRuntimeExports.jsx(X.Minus,{className:y.cn("adm:size-3.5 adm:text-primary","adm:group-data-[state=checked]:hidden")})]})})}exports.Checkbox=Z;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./checkbox-uByYIkZe.cjs");exports.Checkbox=e.Checkbox;
|
package/dist/checkbox.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";const e=require("./createLucideIcon-CAtnV-yz.cjs");/**
|
|
2
|
+
* @license lucide-react v0.546.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const n=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],o=e.createLucideIcon("chevron-down",n);exports.ChevronDown=o;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { c as o } from "./createLucideIcon-B_8CJpcQ.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.546.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const n = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], e = o("chevron-down", n);
|
|
9
|
+
export {
|
|
10
|
+
e as C
|
|
11
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";const e=require("./createLucideIcon-CAtnV-yz.cjs");/**
|
|
2
|
+
* @license lucide-react v0.546.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const c=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],t=e.createLucideIcon("chevron-left",c);exports.ChevronLeft=t;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { c as e } from "./createLucideIcon-B_8CJpcQ.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.546.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const o = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], t = e("chevron-left", o);
|
|
9
|
+
export {
|
|
10
|
+
t as C
|
|
11
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";const e=require("./createLucideIcon-CAtnV-yz.cjs");/**
|
|
2
|
+
* @license lucide-react v0.546.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const c=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],t=e.createLucideIcon("chevron-right",c);exports.ChevronRight=t;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { c as o } from "./createLucideIcon-B_8CJpcQ.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.546.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const t = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], e = o("chevron-right", t);
|
|
9
|
+
export {
|
|
10
|
+
e as C
|
|
11
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";const c=require("./createLucideIcon-CAtnV-yz.cjs");/**
|
|
2
|
+
* @license lucide-react v0.546.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const e=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],r=c.createLucideIcon("circle",e);exports.Circle=r;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { c } from "./createLucideIcon-B_8CJpcQ.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.546.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const e = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], r = c("circle", e);
|
|
9
|
+
export {
|
|
10
|
+
r as C
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-BB_1_6y_.cjs"),t=require("./index-D3wSWKST.cjs");function o({...l}){return e.jsxRuntimeExports.jsx(t.Root,{"data-slot":"collapsible",...l})}function i({...l}){return e.jsxRuntimeExports.jsx(t.CollapsibleTrigger,{"data-slot":"collapsible-trigger",...l})}function s({...l}){return e.jsxRuntimeExports.jsx(t.CollapsibleContent,{"data-slot":"collapsible-content",...l})}exports.Collapsible=o;exports.CollapsibleContent=s;exports.CollapsibleTrigger=i;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { j as o } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
+
import { R as t, a as s, b as a } from "./index-B-ZRqW0J.js";
|
|
3
|
+
function i({
|
|
4
|
+
...l
|
|
5
|
+
}) {
|
|
6
|
+
return /* @__PURE__ */ o.jsx(t, { "data-slot": "collapsible", ...l });
|
|
7
|
+
}
|
|
8
|
+
function n({
|
|
9
|
+
...l
|
|
10
|
+
}) {
|
|
11
|
+
return /* @__PURE__ */ o.jsx(
|
|
12
|
+
s,
|
|
13
|
+
{
|
|
14
|
+
"data-slot": "collapsible-trigger",
|
|
15
|
+
...l
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
function p({
|
|
20
|
+
...l
|
|
21
|
+
}) {
|
|
22
|
+
return /* @__PURE__ */ o.jsx(
|
|
23
|
+
a,
|
|
24
|
+
{
|
|
25
|
+
"data-slot": "collapsible-content",
|
|
26
|
+
...l
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
i as Collapsible,
|
|
32
|
+
p as CollapsibleContent,
|
|
33
|
+
n as CollapsibleTrigger
|
|
34
|
+
};
|
package/dist/colors.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--default-25: oklch(.985 0 0);--default-50: oklch(.969 0 0);--default-100: oklch(.942 0 0);--default-200: oklch(.894 0 0);--default-300: oklch(.81 0 0);--default-400: oklch(.705 0 0);--default-500: oklch(.205 0 0);--default-600: oklch(.173 0 0);--default-700: oklch(.145 0 0);--default-800: oklch(.115 0 0);--default-900: oklch(.085 0 0);--default: var(--default-500);--sign-25: oklch(.9913 .0013 286.38);--sign-50: oklch(.9822 .0041 271.37);--sign-100: oklch(.9442 .0123 276.09);--sign-200: oklch(.8877 .025 275.88);--sign-300: oklch(.7804 .0516 277.7);--sign-400: oklch(.602 .0996 276.31);--sign-500: oklch(.4976 .1199 273.84);--sign-600: oklch(.4215 .1013 274.88);--sign-700: oklch(.386 .0871 274.07);--sign-800: oklch(.3227 .0681 274.09);--sign-900: oklch(.1925 .0327 274.82);--sign: var(--sign-500);--id-25: oklch(.9847 .0083 236.56);--id-50: oklch(.9771 .0125 236.62);--id-100: oklch(.9514 .025 236.82);--id-200: oklch(.9011 .0571 231.47);--id-300: oklch(.8297 .1025 229.8);--id-400: oklch(.7586 .1404 232.13);--id-500: oklch(.6861 .1512 238.37);--id-600: oklch(.5934 .139578 241.5185);--id-700: oklch(.5029 .1197 242.45);--id-800: oklch(.4438 .1014 241.26);--id-900: oklch(.3917 .086 241.41);--id: var(--id-500);--pay-25: oklch(.9905 .0088 179.61);--pay-50: oklch(.9833 .0146 175.74);--pay-100: oklch(.9521 .0506 177.9);--pay-200: oklch(.9088 .0945 177.3);--pay-300: oklch(.8516 .1253 179.14);--pay-400: oklch(.7798 .135 177.82);--pay-500: oklch(.6988 .1256 177.99);--pay-600: oklch(.5963 .1044 182.21);--pay-700: oklch(.5066 .0868 182.23);--pay-800: oklch(.4332 .0702 185.48);--pay-900: oklch(.3853 .0597 185.21);--pay: var(--pay-500);--risk-25: oklch(.9873 .006673 295.4541);--risk-50: oklch(.9691 .0161 293.76);--risk-100: oklch(.9426 .0283 292.41);--risk-200: oklch(.8943 .0549 293.28);--risk-300: oklch(.8103 .1012 292.92);--risk-400: oklch(.7052 .1618 292.33);--risk-500: oklch(.6012 .2213 291.26);--risk-600: oklch(.5371 .2485 291.51);--risk-700: oklch(.4866 .2429 290.94);--risk-800: oklch(.4278 .2124 290.82);--risk-900: oklch(.3762 .1802 291.97);--risk: var(--risk-500);--neutrals-25: oklch(.9913 .0013 286.38);--neutrals-50: oklch(.9846 .0017 247.84);--neutrals-100: oklch(.967 .0029 264.54);--neutrals-200: oklch(.9276 .0058 264.53);--neutrals-300: oklch(.8745 .0081 253.86);--neutrals-400: oklch(.7162 .0166 257.21);--neutrals-500: oklch(.5537 .0205 261.3);--neutrals-600: oklch(.4517 .0207 248.28);--neutrals-700: oklch(.3758 .0275 256.82);--neutrals-800: oklch(.2808 .0286 252.97);--neutrals-900: oklch(.2129 .0303 261.25);--neutrals: var(--neutrals-500);--error-25: oklch(.9889 .0053 17.25);--error-50: oklch(.9705 .0129 17.38);--error-100: oklch(.9356 .0309 17.72);--error-200: oklch(.8845 .0593 18.33);--error-300: oklch(.8077 .1035 19.57);--error-400: oklch(.7106 .1661 22.22);--error-500: oklch(.6368 .2078 25.33);--error-600: oklch(.5771 .2152 27.33);--error-700: oklch(.5054 .1905 27.52);--error-800: oklch(.4437 .1613 26.9);--error-900: oklch(.3958 .1331 25.72);--error: var(--error-500);--destructive-25: var(--error-25);--destructive-50: var(--error-50);--destructive-100: var(--error-100);--destructive-200: var(--error-200);--destructive-300: var(--error-300);--destructive-400: var(--error-400);--destructive-500: var(--error-500);--destructive-600: var(--error-600);--destructive-700: var(--error-700);--destructive-800: var(--error-800);--destructive-900: var(--error-900);--destructive: var(--error-500);--warning-25: oklch(.9934 .0107 95.16);--warning-50: oklch(.9869 .0214 95.28);--warning-100: oklch(.9619 .058 95.62);--warning-200: oklch(.9243 .1151 95.75);--warning-300: oklch(.9243 .1151 95.75);--warning-400: oklch(.8369 .1644 84.43);--warning-500: oklch(.7686 .1647 70.08);--warning-600: oklch(.6658 .1574 58.32);--warning-700: oklch(.6658 .1574 58.32);--warning-800: oklch(.6658 .1574 58.32);--warning-900: oklch(.4137 .1054 45.9);--warning: var(--warning-500);--success-25: oklch(.9942 .0041 157.18);--success-50: oklch(.9819 .0181 155.83);--success-100: oklch(.9624 .0434 156.74);--success-200: oklch(.925 .0806 155.99);--success-300: oklch(.8712 .1363 154.45);--success-400: oklch(.8003 .1821 151.71);--success-500: oklch(.7227 .192 149.58);--success-600: oklch(.6271 .1699 149.21);--success-700: oklch(.5273 .1371 150.07);--success-800: oklch(.4479 .1083 151.33);--success-900: oklch(.3925 .0896 152.54);--success: var(--success-500);--waiting-25: oklch(.9885 .0063 236.62);--waiting-50: oklch(.9771 .0125 236.62);--waiting-100: oklch(.9514 .025 236.62);--waiting-200: oklch(.9011 .05 236.62);--waiting-300: oklch(.8297 .0875 236.62);--waiting-400: oklch(.7586 .125 236.62);--waiting-500: oklch(.6861 .1625 236.62);--waiting-600: oklch(.5934 .1438 236.62);--waiting-700: oklch(.5029 .125 236.62);--waiting-800: oklch(.4438 .1063 236.62);--waiting-900: oklch(.3917 .0875 236.62);--waiting: var(--waiting-500)}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("./jsx-runtime-BB_1_6y_.cjs"),oe=require("react"),A=require("./utils-DoxiiusW.cjs"),Ie=require("./button-BnuVhhWO.cjs"),W=require("./index-BpvjJ_T6.cjs"),q=require("./index-DQvx1rG_.cjs"),F=require("./index-WIv2ndLu.cjs"),G=require("./index-BKbK2GzY.cjs"),Ce=require("./createLucideIcon-CAtnV-yz.cjs"),re=require("./popover-BBXe2myL.cjs"),Ae=require("./checkbox-uByYIkZe.cjs"),Pe=require("./chevron-down-BqEHzml5.cjs"),$e=require("./check-CLxNVljQ.cjs");function qe(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const a=qe(oe);/**
|
|
2
|
+
* @license lucide-react v0.546.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const Me=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],De=Ce.createLucideIcon("search",Me);var he=1,Ne=.9,Oe=.8,Le=.17,ne=.1,ae=.999,ze=.9999,Fe=.99,Ke=/[\\\/_+.#"@\[\(\{&]/,_e=/[\\\/_+.#"@\[\(\{&]/g,Te=/[\s-]/,be=/[\s-]/g;function ie(e,n,r,s,o,d,i){if(d===n.length)return o===e.length?he:Fe;var m=`${o},${d}`;if(i[m]!==void 0)return i[m];for(var b=s.charAt(d),u=r.indexOf(b,o),h=0,g,v,w,R;u>=0;)g=ie(e,n,r,s,u+1,d+1,i),g>h&&(u===o?g*=he:Ke.test(e.charAt(u-1))?(g*=Oe,w=e.slice(o,u-1).match(_e),w&&o>0&&(g*=Math.pow(ae,w.length))):Te.test(e.charAt(u-1))?(g*=Ne,R=e.slice(o,u-1).match(be),R&&o>0&&(g*=Math.pow(ae,R.length))):(g*=Le,o>0&&(g*=Math.pow(ae,u-o))),e.charAt(u)!==n.charAt(d)&&(g*=ze)),(g<ne&&r.charAt(u-1)===s.charAt(d+1)||s.charAt(d+1)===s.charAt(d)&&r.charAt(u-1)!==s.charAt(d))&&(v=ie(e,n,r,s,u+1,d+2,i),v*ne>g&&(g=v*ne)),g>h&&(h=g),u=r.indexOf(b,u+1);return i[m]=h,h}function xe(e){return e.toLowerCase().replace(be," ")}function Be(e,n,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,ie(e,n,xe(e),xe(n),0,0,{})}var V='[cmdk-group=""]',le='[cmdk-group-items=""]',Ve='[cmdk-group-heading=""]',ye='[cmdk-item=""]',ge=`${ye}:not([aria-disabled="true"])`,ue="cmdk-item-select",L="data-value",Ge=(e,n,r)=>Be(e,n,r),Ee=a.createContext(void 0),U=()=>a.useContext(Ee),je=a.createContext(void 0),de=()=>a.useContext(je),ke=a.createContext(void 0),we=a.forwardRef((e,n)=>{let r=z(()=>{var t,c;return{search:"",value:(c=(t=e.value)!=null?t:e.defaultValue)!=null?c:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),s=z(()=>new Set),o=z(()=>new Map),d=z(()=>new Map),i=z(()=>new Set),m=Re(e),{label:b,children:u,value:h,onValueChange:g,filter:v,shouldFilter:w,loop:R,disablePointerSelection:D=!1,vimBindings:P=!0,...N}=e,_=F.useId(),T=F.useId(),p=F.useId(),S=a.useRef(null),E=rt();M(()=>{if(h!==void 0){let t=h.trim();r.current.value=t,k.emit()}},[h]),M(()=>{E(6,se)},[]);let k=a.useMemo(()=>({subscribe:t=>(i.current.add(t),()=>i.current.delete(t)),snapshot:()=>r.current,setState:(t,c,f)=>{var l,x,y,C;if(!Object.is(r.current[t],c)){if(r.current[t]=c,t==="search")Z(),Y(),E(1,Q);else if(t==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let I=document.getElementById(p);I?I.focus():(l=document.getElementById(_))==null||l.focus()}if(E(7,()=>{var I;r.current.selectedItemId=(I=O())==null?void 0:I.id,k.emit()}),f||E(5,se),((x=m.current)==null?void 0:x.value)!==void 0){let I=c??"";(C=(y=m.current).onValueChange)==null||C.call(y,I);return}}k.emit()}},emit:()=>{i.current.forEach(t=>t())}}),[]),X=a.useMemo(()=>({value:(t,c,f)=>{var l;c!==((l=d.current.get(t))==null?void 0:l.value)&&(d.current.set(t,{value:c,keywords:f}),r.current.filtered.items.set(t,ce(c,f)),E(2,()=>{Y(),k.emit()}))},item:(t,c)=>(s.current.add(t),c&&(o.current.has(c)?o.current.get(c).add(t):o.current.set(c,new Set([t]))),E(3,()=>{Z(),Y(),r.current.value||Q(),k.emit()}),()=>{d.current.delete(t),s.current.delete(t),r.current.filtered.items.delete(t);let f=O();E(4,()=>{Z(),f?.getAttribute("id")===t&&Q(),k.emit()})}),group:t=>(o.current.has(t)||o.current.set(t,new Set),()=>{d.current.delete(t),o.current.delete(t)}),filter:()=>m.current.shouldFilter,label:b||e["aria-label"],getDisablePointerSelection:()=>m.current.disablePointerSelection,listId:_,inputId:p,labelId:T,listInnerRef:S}),[]);function ce(t,c){var f,l;let x=(l=(f=m.current)==null?void 0:f.filter)!=null?l:Ge;return t?x(t,r.current.search,c):0}function Y(){if(!r.current.search||m.current.shouldFilter===!1)return;let t=r.current.filtered.items,c=[];r.current.filtered.groups.forEach(l=>{let x=o.current.get(l),y=0;x.forEach(C=>{let I=t.get(C);y=Math.max(I,y)}),c.push([l,y])});let f=S.current;B().sort((l,x)=>{var y,C;let I=l.getAttribute("id"),H=x.getAttribute("id");return((y=t.get(H))!=null?y:0)-((C=t.get(I))!=null?C:0)}).forEach(l=>{let x=l.closest(le);x?x.appendChild(l.parentElement===x?l:l.closest(`${le} > *`)):f.appendChild(l.parentElement===f?l:l.closest(`${le} > *`))}),c.sort((l,x)=>x[1]-l[1]).forEach(l=>{var x;let y=(x=S.current)==null?void 0:x.querySelector(`${V}[${L}="${encodeURIComponent(l[0])}"]`);y?.parentElement.appendChild(y)})}function Q(){let t=B().find(f=>f.getAttribute("aria-disabled")!=="true"),c=t?.getAttribute(L);k.setState("value",c||void 0)}function Z(){var t,c,f,l;if(!r.current.search||m.current.shouldFilter===!1){r.current.filtered.count=s.current.size;return}r.current.filtered.groups=new Set;let x=0;for(let y of s.current){let C=(c=(t=d.current.get(y))==null?void 0:t.value)!=null?c:"",I=(l=(f=d.current.get(y))==null?void 0:f.keywords)!=null?l:[],H=ce(C,I);r.current.filtered.items.set(y,H),H>0&&x++}for(let[y,C]of o.current)for(let I of C)if(r.current.filtered.items.get(I)>0){r.current.filtered.groups.add(y);break}r.current.filtered.count=x}function se(){var t,c,f;let l=O();l&&(((t=l.parentElement)==null?void 0:t.firstChild)===l&&((f=(c=l.closest(V))==null?void 0:c.querySelector(Ve))==null||f.scrollIntoView({block:"nearest"})),l.scrollIntoView({block:"nearest"}))}function O(){var t;return(t=S.current)==null?void 0:t.querySelector(`${ye}[aria-selected="true"]`)}function B(){var t;return Array.from(((t=S.current)==null?void 0:t.querySelectorAll(ge))||[])}function ee(t){let c=B()[t];c&&k.setState("value",c.getAttribute(L))}function te(t){var c;let f=O(),l=B(),x=l.findIndex(C=>C===f),y=l[x+t];(c=m.current)!=null&&c.loop&&(y=x+t<0?l[l.length-1]:x+t===l.length?l[0]:l[x+t]),y&&k.setState("value",y.getAttribute(L))}function me(t){let c=O(),f=c?.closest(V),l;for(;f&&!l;)f=t>0?et(f,V):tt(f,V),l=f?.querySelector(ge);l?k.setState("value",l.getAttribute(L)):te(t)}let fe=()=>ee(B().length-1),pe=t=>{t.preventDefault(),t.metaKey?fe():t.altKey?me(1):te(1)},ve=t=>{t.preventDefault(),t.metaKey?ee(0):t.altKey?me(-1):te(-1)};return a.createElement(q.Primitive.div,{ref:n,tabIndex:-1,...N,"cmdk-root":"",onKeyDown:t=>{var c;(c=N.onKeyDown)==null||c.call(N,t);let f=t.nativeEvent.isComposing||t.keyCode===229;if(!(t.defaultPrevented||f))switch(t.key){case"n":case"j":{P&&t.ctrlKey&&pe(t);break}case"ArrowDown":{pe(t);break}case"p":case"k":{P&&t.ctrlKey&&ve(t);break}case"ArrowUp":{ve(t);break}case"Home":{t.preventDefault(),ee(0);break}case"End":{t.preventDefault(),fe();break}case"Enter":{t.preventDefault();let l=O();if(l){let x=new Event(ue);l.dispatchEvent(x)}}}}},a.createElement("label",{"cmdk-label":"",htmlFor:X.inputId,id:X.labelId,style:at},b),J(e,t=>a.createElement(je.Provider,{value:k},a.createElement(Ee.Provider,{value:X},t))))}),Ue=a.forwardRef((e,n)=>{var r,s;let o=F.useId(),d=a.useRef(null),i=a.useContext(ke),m=U(),b=Re(e),u=(s=(r=b.current)==null?void 0:r.forceMount)!=null?s:i?.forceMount;M(()=>{if(!u)return m.item(o,i?.id)},[u]);let h=Se(o,d,[e.value,e.children,d],e.keywords),g=de(),v=$(E=>E.value&&E.value===h.current),w=$(E=>u||m.filter()===!1?!0:E.search?E.filtered.items.get(o)>0:!0);a.useEffect(()=>{let E=d.current;if(!(!E||e.disabled))return E.addEventListener(ue,R),()=>E.removeEventListener(ue,R)},[w,e.onSelect,e.disabled]);function R(){var E,k;D(),(k=(E=b.current).onSelect)==null||k.call(E,h.current)}function D(){g.setState("value",h.current,!0)}if(!w)return null;let{disabled:P,value:N,onSelect:_,forceMount:T,keywords:p,...S}=e;return a.createElement(q.Primitive.div,{ref:G.composeRefs(d,n),...S,id:o,"cmdk-item":"",role:"option","aria-disabled":!!P,"aria-selected":!!v,"data-disabled":!!P,"data-selected":!!v,onPointerMove:P||m.getDisablePointerSelection()?void 0:D,onClick:P?void 0:R},e.children)}),He=a.forwardRef((e,n)=>{let{heading:r,children:s,forceMount:o,...d}=e,i=F.useId(),m=a.useRef(null),b=a.useRef(null),u=F.useId(),h=U(),g=$(w=>o||h.filter()===!1?!0:w.search?w.filtered.groups.has(i):!0);M(()=>h.group(i),[]),Se(i,m,[e.value,e.heading,b]);let v=a.useMemo(()=>({id:i,forceMount:o}),[o]);return a.createElement(q.Primitive.div,{ref:G.composeRefs(m,n),...d,"cmdk-group":"",role:"presentation",hidden:g?void 0:!0},r&&a.createElement("div",{ref:b,"cmdk-group-heading":"","aria-hidden":!0,id:u},r),J(e,w=>a.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?u:void 0},a.createElement(ke.Provider,{value:v},w))))}),We=a.forwardRef((e,n)=>{let{alwaysRender:r,...s}=e,o=a.useRef(null),d=$(i=>!i.search);return!r&&!d?null:a.createElement(q.Primitive.div,{ref:G.composeRefs(o,n),...s,"cmdk-separator":"",role:"separator"})}),Je=a.forwardRef((e,n)=>{let{onValueChange:r,...s}=e,o=e.value!=null,d=de(),i=$(u=>u.search),m=$(u=>u.selectedItemId),b=U();return a.useEffect(()=>{e.value!=null&&d.setState("search",e.value)},[e.value]),a.createElement(q.Primitive.input,{ref:n,...s,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":b.listId,"aria-labelledby":b.labelId,"aria-activedescendant":m,id:b.inputId,type:"text",value:o?e.value:i,onChange:u=>{o||d.setState("search",u.target.value),r?.(u.target.value)}})}),Xe=a.forwardRef((e,n)=>{let{children:r,label:s="Suggestions",...o}=e,d=a.useRef(null),i=a.useRef(null),m=$(u=>u.selectedItemId),b=U();return a.useEffect(()=>{if(i.current&&d.current){let u=i.current,h=d.current,g,v=new ResizeObserver(()=>{g=requestAnimationFrame(()=>{let w=u.offsetHeight;h.style.setProperty("--cmdk-list-height",w.toFixed(1)+"px")})});return v.observe(u),()=>{cancelAnimationFrame(g),v.unobserve(u)}}},[]),a.createElement(q.Primitive.div,{ref:G.composeRefs(d,n),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":m,"aria-label":s,id:b.listId},J(e,u=>a.createElement("div",{ref:G.composeRefs(i,b.listInnerRef),"cmdk-list-sizer":""},u)))}),Ye=a.forwardRef((e,n)=>{let{open:r,onOpenChange:s,overlayClassName:o,contentClassName:d,container:i,...m}=e;return a.createElement(W.Root,{open:r,onOpenChange:s},a.createElement(W.Portal,{container:i},a.createElement(W.Overlay,{"cmdk-overlay":"",className:o}),a.createElement(W.Content,{"aria-label":e.label,"cmdk-dialog":"",className:d},a.createElement(we,{ref:n,...m}))))}),Qe=a.forwardRef((e,n)=>$(r=>r.filtered.count===0)?a.createElement(q.Primitive.div,{ref:n,...e,"cmdk-empty":"",role:"presentation"}):null),Ze=a.forwardRef((e,n)=>{let{progress:r,children:s,label:o="Loading...",...d}=e;return a.createElement(q.Primitive.div,{ref:n,...d,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},J(e,i=>a.createElement("div",{"aria-hidden":!0},i)))}),K=Object.assign(we,{List:Xe,Item:Ue,Input:Je,Group:He,Separator:We,Dialog:Ye,Empty:Qe,Loading:Ze});function et(e,n){let r=e.nextElementSibling;for(;r;){if(r.matches(n))return r;r=r.nextElementSibling}}function tt(e,n){let r=e.previousElementSibling;for(;r;){if(r.matches(n))return r;r=r.previousElementSibling}}function Re(e){let n=a.useRef(e);return M(()=>{n.current=e}),n}var M=typeof window>"u"?a.useEffect:a.useLayoutEffect;function z(e){let n=a.useRef();return n.current===void 0&&(n.current=e()),n}function $(e){let n=de(),r=()=>e(n.snapshot());return a.useSyncExternalStore(n.subscribe,r,r)}function Se(e,n,r,s=[]){let o=a.useRef(),d=U();return M(()=>{var i;let m=(()=>{var u;for(let h of r){if(typeof h=="string")return h.trim();if(typeof h=="object"&&"current"in h)return h.current?(u=h.current.textContent)==null?void 0:u.trim():o.current}})(),b=s.map(u=>u.trim());d.value(e,m,b),(i=n.current)==null||i.setAttribute(L,m),o.current=m}),o}var rt=()=>{let[e,n]=a.useState(),r=z(()=>new Map);return M(()=>{r.current.forEach(s=>s()),r.current=new Map},[e]),(s,o)=>{r.current.set(s,o),n({})}};function nt(e){let n=e.type;return typeof n=="function"?n(e.props):"render"in n?n.render(e.props):e}function J({asChild:e,children:n},r){return e&&a.isValidElement(n)?a.cloneElement(nt(n),{ref:n.ref},r(n.props.children)):r(n)}var at={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function lt({className:e,...n}){return j.jsxRuntimeExports.jsx(K,{"data-slot":"command",className:A.cn("adm:bg-popover adm:text-popover-foreground adm:flex adm:h-full adm:w-full adm:flex-col adm:overflow-hidden adm:rounded-md",e),...n})}function ot({className:e,...n}){return j.jsxRuntimeExports.jsxs("div",{"data-slot":"command-input-wrapper",className:"adm:flex adm:h-9 adm:items-center adm:gap-2 adm:border-b adm:px-3",children:[j.jsxRuntimeExports.jsx(De,{className:"adm:size-4 adm:shrink-0 adm:opacity-50"}),j.jsxRuntimeExports.jsx(K.Input,{"data-slot":"command-input",className:A.cn("adm:placeholder:text-muted-foreground adm:flex adm:h-10 adm:w-full adm:rounded-md adm:bg-transparent adm:py-3 adm:text-sm adm:outline-hidden adm:disabled:cursor-not-allowed adm:disabled:opacity-50",e),...n})]})}function it({className:e,...n}){return j.jsxRuntimeExports.jsx(K.List,{"data-slot":"command-list",className:A.cn("adm:max-h-[300px] adm:scroll-py-1 adm:overflow-x-hidden adm:overflow-y-auto",e),...n})}function ut({className:e,...n}){return j.jsxRuntimeExports.jsx(K.Empty,{"data-slot":"command-empty",className:A.cn("adm:py-6 adm:text-center adm:text-sm",e),...n})}function dt({className:e,...n}){return j.jsxRuntimeExports.jsx(K.Group,{"data-slot":"command-group",className:A.cn("adm:text-foreground adm:overflow-hidden adm:p-1 adm:**:**:**:**:**:**:[&_[cmdk-group-heading]]:text-muted-foreground adm:**:**:**:**:**:**:[&_[cmdk-group-heading]]:px-2 adm:**:**:**:**:**:**:[&_[cmdk-group-heading]]:py-1.5 adm:**:**:**:**:**:**:[&_[cmdk-group-heading]]:text-xs adm:**:**:**:**:**:**:[&_[cmdk-group-heading]]:font-medium",e),...n})}function ct({className:e,...n}){return j.jsxRuntimeExports.jsx(K.Item,{"data-slot":"command-item",className:A.cn("adm:data-[selected=true]:bg-accent adm:data-[selected=true]:text-accent-foreground 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=true]:pointer-events-none adm:data-[disabled=true]:opacity-50 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",e),...n})}function st({searchable:e,multiple:n,value:r,onValueChange:s,labels:o,options:d,classNames:i,selectedFeedback:m="checkbox"}){const[b,u]=oe.useState(!1),[h,g]=oe.useState(n?[]:""),v=r!==void 0?r:h,R={...{placeholder:"Select options...",searchPlaceholder:"Search options...",noItemsFound:"No options found.",multipleSelected:p=>`${p} options selected`},...o},D=p=>{s?s(p):g(p)},P=()=>n&&Array.isArray(v)?v.length===0?R.placeholder:v.length===1?d.find(p=>p.value===v[0])?.label:R.multipleSelected?.(v.length)||`${v.length} options selected`:!n&&typeof v=="string"&&v?d.find(p=>p.value===v)?.label:R.placeholder,N=p=>n&&Array.isArray(v)?v.includes(p):v===p,_=p=>{if(n){const S=Array.isArray(v)?v:[],E=S.includes(p)?S.filter(k=>k!==p):[...S,p];D(E)}else D(p===v?"":p),u(!1)},T=p=>{const S=N(p);return m==="check"?j.jsxRuntimeExports.jsx("span",{className:A.cn("adm:absolute adm:right-2 adm:flex adm:size-3.5 adm:items-center adm:justify-center",i?.check),children:S&&j.jsxRuntimeExports.jsx($e.Check,{className:"adm:size-4"})}):j.jsxRuntimeExports.jsx(Ae.Checkbox,{checked:S,className:i?.checkbox})};return j.jsxRuntimeExports.jsxs(re.Popover,{open:b,onOpenChange:u,children:[j.jsxRuntimeExports.jsx(re.PopoverTrigger,{asChild:!0,children:j.jsxRuntimeExports.jsxs(Ie.Button,{variant:"outline",role:"combobox","aria-expanded":b,className:A.cn("adm:justify-between adm:font-normal",i?.trigger),children:[P(),j.jsxRuntimeExports.jsx(Pe.ChevronDown,{className:"adm:size-4 adm:opacity-50"})]})}),j.jsxRuntimeExports.jsx(re.PopoverContent,{align:"start",className:A.cn("adm:p-0",i?.popover),children:j.jsxRuntimeExports.jsxs(lt,{className:i?.command,children:[e&&j.jsxRuntimeExports.jsx(ot,{placeholder:R.searchPlaceholder,className:i?.input}),j.jsxRuntimeExports.jsxs(it,{className:i?.list,children:[j.jsxRuntimeExports.jsx(ut,{className:i?.empty,children:R.noItemsFound}),j.jsxRuntimeExports.jsx(dt,{className:i?.group,children:d.map(p=>j.jsxRuntimeExports.jsxs(ct,{value:p.value,onSelect:_,disabled:p.disabled,className:A.cn(i?.item,m==="check"&&"adm:pr-8"),children:[m==="checkbox"&&T(p.value),p.label,m==="check"&&T(p.value)]},p.value))})]})]})})]})}exports.Combobox=st;
|