@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/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# Adamo UI
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-BB_1_6y_.cjs");require("react");const d=require("./index-D3S7dBDI.cjs"),s=require("./utils-DoxiiusW.cjs"),r=require("./createLucideIcon-CAtnV-yz.cjs"),i=require("./minus-C0pHPx21.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:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],l=r.createLucideIcon("plus",c);function u({...a}){return e.jsxRuntimeExports.jsx(d.Root2,{"data-slot":"accordion",...a})}function x({className:a,...t}){return e.jsxRuntimeExports.jsx(d.Item,{"data-slot":"accordion-item",className:s.cn("adm:rounded-2xl adm:bg-neutrals-50 adm:mb-4 last:adm:mb-0",a),...t})}function p({className:a,children:t,title:n,badge:o,...m}){return e.jsxRuntimeExports.jsx(d.Header,{className:"adm:flex adm:h-14",children:e.jsxRuntimeExports.jsxs(d.Trigger2,{"data-slot":"accordion-trigger",className:s.cn("adm:flex adm:flex-1 adm:items-center adm:gap-4 adm:rounded-lg adm:px-4 adm:outline-none adm:transition-all adm:disabled:pointer-events-none adm:disabled:opacity-50 adm:group",a),...m,children:[e.jsxRuntimeExports.jsx("div",{className:"adm:flex adm:flex-1 adm:items-center adm:justify-start adm:text-left adm:text-xs adm:font-semibold adm:uppercase adm:text-neutrals-500 adm:leading-5 adm:line-clamp-1",children:n||t}),o&&e.jsxRuntimeExports.jsx("div",{className:"adm:shrink-0",children:o}),e.jsxRuntimeExports.jsxs("div",{className:"adm:flex adm:items-center adm:justify-end adm:shrink-0",children:[e.jsxRuntimeExports.jsx(l,{className:"adm:h-4 adm:w-4 adm:text-neutrals-500 adm:transition-transform adm:duration-200 adm:group-data-[state=open]:hidden"}),e.jsxRuntimeExports.jsx(i.Minus,{className:"adm:h-4 adm:w-4 adm:text-neutrals-500 adm:hidden adm:group-data-[state=open]:block"})]})]})})}function j({className:a,children:t,...n}){return e.jsxRuntimeExports.jsx(d.Content2,{"data-slot":"accordion-content",className:"adm:data-[state=closed]:animate-accordion-up adm:data-[state=open]:animate-accordion-down adm:overflow-hidden adm:text-sm",...n,children:e.jsxRuntimeExports.jsx("div",{className:s.cn("adm:pt-0 adm:pb-4",a),children:t})})}exports.Accordion=u;exports.AccordionContent=j;exports.AccordionItem=x;exports.AccordionTrigger=p;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { j as a } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { R as o, I as r, H as i, T as c, C as l } from "./index-CwUFT-GQ.js";
|
|
4
|
+
import { c as m } from "./utils-CRiPKpXj.js";
|
|
5
|
+
import { c as x } from "./createLucideIcon-B_8CJpcQ.js";
|
|
6
|
+
import { M as u } from "./minus-DE-onYs2.js";
|
|
7
|
+
/**
|
|
8
|
+
* @license lucide-react v0.546.0 - ISC
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the ISC license.
|
|
11
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/
|
|
13
|
+
const p = [
|
|
14
|
+
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
15
|
+
["path", { d: "M12 5v14", key: "s699le" }]
|
|
16
|
+
], f = x("plus", p);
|
|
17
|
+
function y({
|
|
18
|
+
...d
|
|
19
|
+
}) {
|
|
20
|
+
return /* @__PURE__ */ a.jsx(o, { "data-slot": "accordion", ...d });
|
|
21
|
+
}
|
|
22
|
+
function k({
|
|
23
|
+
className: d,
|
|
24
|
+
...e
|
|
25
|
+
}) {
|
|
26
|
+
return /* @__PURE__ */ a.jsx(
|
|
27
|
+
r,
|
|
28
|
+
{
|
|
29
|
+
"data-slot": "accordion-item",
|
|
30
|
+
className: m(
|
|
31
|
+
"adm:rounded-2xl adm:bg-neutrals-50 adm:mb-4 last:adm:mb-0",
|
|
32
|
+
d
|
|
33
|
+
),
|
|
34
|
+
...e
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
function w({
|
|
39
|
+
className: d,
|
|
40
|
+
children: e,
|
|
41
|
+
title: t,
|
|
42
|
+
badge: s,
|
|
43
|
+
...n
|
|
44
|
+
}) {
|
|
45
|
+
return /* @__PURE__ */ a.jsx(i, { className: "adm:flex adm:h-14", children: /* @__PURE__ */ a.jsxs(
|
|
46
|
+
c,
|
|
47
|
+
{
|
|
48
|
+
"data-slot": "accordion-trigger",
|
|
49
|
+
className: m(
|
|
50
|
+
"adm:flex adm:flex-1 adm:items-center adm:gap-4 adm:rounded-lg adm:px-4 adm:outline-none adm:transition-all adm:disabled:pointer-events-none adm:disabled:opacity-50 adm:group",
|
|
51
|
+
d
|
|
52
|
+
),
|
|
53
|
+
...n,
|
|
54
|
+
children: [
|
|
55
|
+
/* @__PURE__ */ a.jsx("div", { className: "adm:flex adm:flex-1 adm:items-center adm:justify-start adm:text-left adm:text-xs adm:font-semibold adm:uppercase adm:text-neutrals-500 adm:leading-5 adm:line-clamp-1", children: t || e }),
|
|
56
|
+
s && /* @__PURE__ */ a.jsx("div", { className: "adm:shrink-0", children: s }),
|
|
57
|
+
/* @__PURE__ */ a.jsxs("div", { className: "adm:flex adm:items-center adm:justify-end adm:shrink-0", children: [
|
|
58
|
+
/* @__PURE__ */ a.jsx(f, { className: "adm:h-4 adm:w-4 adm:text-neutrals-500 adm:transition-transform adm:duration-200 adm:group-data-[state=open]:hidden" }),
|
|
59
|
+
/* @__PURE__ */ a.jsx(u, { className: "adm:h-4 adm:w-4 adm:text-neutrals-500 adm:hidden adm:group-data-[state=open]:block" })
|
|
60
|
+
] })
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
) });
|
|
64
|
+
}
|
|
65
|
+
function A({
|
|
66
|
+
className: d,
|
|
67
|
+
children: e,
|
|
68
|
+
...t
|
|
69
|
+
}) {
|
|
70
|
+
return /* @__PURE__ */ a.jsx(
|
|
71
|
+
l,
|
|
72
|
+
{
|
|
73
|
+
"data-slot": "accordion-content",
|
|
74
|
+
className: "adm:data-[state=closed]:animate-accordion-up adm:data-[state=open]:animate-accordion-down adm:overflow-hidden adm:text-sm",
|
|
75
|
+
...t,
|
|
76
|
+
children: /* @__PURE__ */ a.jsx("div", { className: m("adm:pt-0 adm:pb-4", d), children: e })
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
export {
|
|
81
|
+
y as Accordion,
|
|
82
|
+
A as AccordionContent,
|
|
83
|
+
k as AccordionItem,
|
|
84
|
+
w as AccordionTrigger
|
|
85
|
+
};
|
|
@@ -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 a=require("./index-D3S7dBDI.cjs"),r=require("./utils-DoxiiusW.cjs"),d=require("./chevron-down-BqEHzml5.cjs");function i({...e}){return t.jsxRuntimeExports.jsx(a.Root2,{"data-slot":"accordion",...e})}function s({className:e,...n}){return t.jsxRuntimeExports.jsx(a.Item,{"data-slot":"accordion-item",className:r.cn("adm:border-b adm:last:border-b-0",e),...n})}function m({className:e,children:n,...o}){return t.jsxRuntimeExports.jsx(a.Header,{className:"adm:flex",children:t.jsxRuntimeExports.jsxs(a.Trigger2,{"data-slot":"accordion-trigger",className:r.cn("adm:focus-visible:border-ring adm:focus-visible:ring-ring/50 adm:flex adm:flex-1 adm:items-start adm:justify-between adm:gap-4 adm:rounded-md adm:py-4 adm:text-left adm:text-sm adm:font-medium adm:transition-all adm:outline-none adm:hover:underline adm:focus-visible:ring-[3px] adm:disabled:pointer-events-none adm:disabled:opacity-50 adm:[&[data-state=open]>svg]:rotate-180",e),...o,children:[n,t.jsxRuntimeExports.jsx(d.ChevronDown,{className:"adm:text-muted-foreground adm:pointer-events-none adm:size-4 adm:shrink-0 adm:translate-y-0.5 adm:transition-transform adm:duration-200"})]})})}function c({className:e,children:n,...o}){return t.jsxRuntimeExports.jsx(a.Content2,{"data-slot":"accordion-content",className:"adm:data-[state=closed]:animate-accordion-up adm:data-[state=open]:animate-accordion-down adm:overflow-hidden adm:text-sm",...o,children:t.jsxRuntimeExports.jsx("div",{className:r.cn("adm:pt-0 adm:pb-4",e),children:n})})}exports.Accordion=i;exports.AccordionContent=c;exports.AccordionItem=s;exports.AccordionTrigger=m;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { j as t } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { R as n, I as r, H as m, T as s, C as i } from "./index-CwUFT-GQ.js";
|
|
4
|
+
import { c as o } from "./utils-CRiPKpXj.js";
|
|
5
|
+
import { C as c } from "./chevron-down-CpVS2Z7w.js";
|
|
6
|
+
function g({
|
|
7
|
+
...a
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ t.jsx(n, { "data-slot": "accordion", ...a });
|
|
10
|
+
}
|
|
11
|
+
function b({
|
|
12
|
+
className: a,
|
|
13
|
+
...e
|
|
14
|
+
}) {
|
|
15
|
+
return /* @__PURE__ */ t.jsx(
|
|
16
|
+
r,
|
|
17
|
+
{
|
|
18
|
+
"data-slot": "accordion-item",
|
|
19
|
+
className: o("adm:border-b adm:last:border-b-0", a),
|
|
20
|
+
...e
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
function j({
|
|
25
|
+
className: a,
|
|
26
|
+
children: e,
|
|
27
|
+
...d
|
|
28
|
+
}) {
|
|
29
|
+
return /* @__PURE__ */ t.jsx(m, { className: "adm:flex", children: /* @__PURE__ */ t.jsxs(
|
|
30
|
+
s,
|
|
31
|
+
{
|
|
32
|
+
"data-slot": "accordion-trigger",
|
|
33
|
+
className: o(
|
|
34
|
+
"adm:focus-visible:border-ring adm:focus-visible:ring-ring/50 adm:flex adm:flex-1 adm:items-start adm:justify-between adm:gap-4 adm:rounded-md adm:py-4 adm:text-left adm:text-sm adm:font-medium adm:transition-all adm:outline-none adm:hover:underline adm:focus-visible:ring-[3px] adm:disabled:pointer-events-none adm:disabled:opacity-50 adm:[&[data-state=open]>svg]:rotate-180",
|
|
35
|
+
a
|
|
36
|
+
),
|
|
37
|
+
...d,
|
|
38
|
+
children: [
|
|
39
|
+
e,
|
|
40
|
+
/* @__PURE__ */ t.jsx(c, { className: "adm:text-muted-foreground adm:pointer-events-none adm:size-4 adm:shrink-0 adm:translate-y-0.5 adm:transition-transform adm:duration-200" })
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
) });
|
|
44
|
+
}
|
|
45
|
+
function v({
|
|
46
|
+
className: a,
|
|
47
|
+
children: e,
|
|
48
|
+
...d
|
|
49
|
+
}) {
|
|
50
|
+
return /* @__PURE__ */ t.jsx(
|
|
51
|
+
i,
|
|
52
|
+
{
|
|
53
|
+
"data-slot": "accordion-content",
|
|
54
|
+
className: "adm:data-[state=closed]:animate-accordion-up adm:data-[state=open]:animate-accordion-down adm:overflow-hidden adm:text-sm",
|
|
55
|
+
...d,
|
|
56
|
+
children: /* @__PURE__ */ t.jsx("div", { className: o("adm:pt-0 adm:pb-4", a), children: e })
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
export {
|
|
61
|
+
g as Accordion,
|
|
62
|
+
v as AccordionContent,
|
|
63
|
+
b as AccordionItem,
|
|
64
|
+
j as AccordionTrigger
|
|
65
|
+
};
|
package/dist/alert.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-BB_1_6y_.cjs");require("react");const s=require("./index-iAvn1gzj.cjs"),r=require("./utils-DoxiiusW.cjs"),i=s.cva("adm:relative adm:w-full adm:rounded-lg adm:border adm:px-4 adm:py-3 adm:text-sm adm:grid adm:has-[>svg]:grid-cols-[calc(var(--adm-spacing)*4)_1fr] adm:grid-cols-[0_1fr] adm:has-[>svg]:gap-x-3 adm:gap-y-0.5 adm:items-start adm:[&>svg]:size-4 adm:[&>svg]:translate-y-0.5 adm:[&>svg]:text-current",{variants:{variant:{default:"adm:bg-card adm:text-card-foreground",destructive:"adm:text-destructive adm:bg-destructive-50 adm:[&>svg]:text-current adm:*:data-[slot=alert-description]:text-destructive/90",success:"adm:text-success adm:bg-success-50 adm:[&>svg]:text-current adm:*:data-[slot=alert-description]:text-success/90",warning:"adm:text-warning adm:bg-warning-50 adm:[&>svg]:text-current adm:*:data-[slot=alert-description]:text-warning/90"}},defaultVariants:{variant:"default"}});function m({className:t,variant:a,...d}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"alert",role:"alert",className:r.cn(i({variant:a}),t),...d})}function n({className:t,...a}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"alert-title",className:r.cn("adm:col-start-2 adm:line-clamp-1 adm:min-h-4 adm:font-medium adm:tracking-tight",t),...a})}function c({className:t,...a}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"alert-description",className:r.cn("adm:text-muted-foreground adm:col-start-2 adm:grid adm:justify-items-start adm:gap-1 adm:text-sm adm:[&_p]:leading-relaxed",t),...a})}exports.Alert=m;exports.AlertDescription=c;exports.AlertTitle=n;
|
package/dist/alert.js
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { j as d } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { c as s } from "./index-CQhYMnjT.js";
|
|
4
|
+
import { c as r } from "./utils-CRiPKpXj.js";
|
|
5
|
+
const m = s(
|
|
6
|
+
"adm:relative adm:w-full adm:rounded-lg adm:border adm:px-4 adm:py-3 adm:text-sm adm:grid adm:has-[>svg]:grid-cols-[calc(var(--adm-spacing)*4)_1fr] adm:grid-cols-[0_1fr] adm:has-[>svg]:gap-x-3 adm:gap-y-0.5 adm:items-start adm:[&>svg]:size-4 adm:[&>svg]:translate-y-0.5 adm:[&>svg]:text-current",
|
|
7
|
+
{
|
|
8
|
+
variants: {
|
|
9
|
+
variant: {
|
|
10
|
+
default: "adm:bg-card adm:text-card-foreground",
|
|
11
|
+
destructive: "adm:text-destructive adm:bg-destructive-50 adm:[&>svg]:text-current adm:*:data-[slot=alert-description]:text-destructive/90",
|
|
12
|
+
success: "adm:text-success adm:bg-success-50 adm:[&>svg]:text-current adm:*:data-[slot=alert-description]:text-success/90",
|
|
13
|
+
warning: "adm:text-warning adm:bg-warning-50 adm:[&>svg]:text-current adm:*:data-[slot=alert-description]:text-warning/90"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
defaultVariants: {
|
|
17
|
+
variant: "default"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
function o({
|
|
22
|
+
className: t,
|
|
23
|
+
variant: a,
|
|
24
|
+
...e
|
|
25
|
+
}) {
|
|
26
|
+
return /* @__PURE__ */ d.jsx(
|
|
27
|
+
"div",
|
|
28
|
+
{
|
|
29
|
+
"data-slot": "alert",
|
|
30
|
+
role: "alert",
|
|
31
|
+
className: r(m({ variant: a }), t),
|
|
32
|
+
...e
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
function g({ className: t, ...a }) {
|
|
37
|
+
return /* @__PURE__ */ d.jsx(
|
|
38
|
+
"div",
|
|
39
|
+
{
|
|
40
|
+
"data-slot": "alert-title",
|
|
41
|
+
className: r(
|
|
42
|
+
"adm:col-start-2 adm:line-clamp-1 adm:min-h-4 adm:font-medium adm:tracking-tight",
|
|
43
|
+
t
|
|
44
|
+
),
|
|
45
|
+
...a
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
function u({
|
|
50
|
+
className: t,
|
|
51
|
+
...a
|
|
52
|
+
}) {
|
|
53
|
+
return /* @__PURE__ */ d.jsx(
|
|
54
|
+
"div",
|
|
55
|
+
{
|
|
56
|
+
"data-slot": "alert-description",
|
|
57
|
+
className: r(
|
|
58
|
+
"adm:text-muted-foreground adm:col-start-2 adm:grid adm:justify-items-start adm:gap-1 adm:text-sm adm:[&_p]:leading-relaxed",
|
|
59
|
+
t
|
|
60
|
+
),
|
|
61
|
+
...a
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
export {
|
|
66
|
+
o as Alert,
|
|
67
|
+
u as AlertDescription,
|
|
68
|
+
g as AlertTitle
|
|
69
|
+
};
|
package/dist/avatar.cjs
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./jsx-runtime-BB_1_6y_.cjs"),A=require("react"),G=require("./index-cwZN7ZY3.cjs"),V=require("./index-CzY-WZXL.cjs"),O=require("./index-MQ0c3ZX_.cjs"),R=require("./index-DQvx1rG_.cjs"),j=require("./utils-DoxiiusW.cjs");function P(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,s.get?s:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const E=P(A);var x={exports:{}},h={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* use-sync-external-store-shim.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var b;function H(){if(b)return h;b=1;var e=A;function t(o,d){return o===d&&(o!==0||1/o===1/d)||o!==o&&d!==d}var a=typeof Object.is=="function"?Object.is:t,s=e.useState,u=e.useEffect,r=e.useLayoutEffect,v=e.useDebugValue;function l(o,d){var n=d(),i=s({inst:{value:n,getSnapshot:d}}),c=i[0].inst,m=i[1];return r(function(){c.value=n,c.getSnapshot=d,f(c)&&m({inst:c})},[o,n,d]),u(function(){return f(c)&&m({inst:c}),o(function(){f(c)&&m({inst:c})})},[o]),v(n),n}function f(o){var d=o.getSnapshot;o=o.value;try{var n=d();return!a(o,n)}catch{return!0}}function S(o,d){return d()}var _=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?S:l;return h.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:_,h}var L={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* use-sync-external-store-shim.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var I;function U(){return I||(I=1,process.env.NODE_ENV!=="production"&&(function(){function e(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}function t(n,i){_||u.startTransition===void 0||(_=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var c=i();if(!o){var m=i();r(c,m)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),o=!0)}m=v({inst:{value:c,getSnapshot:i}});var p=m[0].inst,y=m[1];return f(function(){p.value=c,p.getSnapshot=i,a(p)&&y({inst:p})},[n,c,i]),l(function(){return a(p)&&y({inst:p}),n(function(){a(p)&&y({inst:p})})},[n]),S(c),c}function a(n){var i=n.getSnapshot;n=n.value;try{var c=i();return!r(n,c)}catch{return!0}}function s(n,i){return i()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var u=A,r=typeof Object.is=="function"?Object.is:e,v=u.useState,l=u.useEffect,f=u.useLayoutEffect,S=u.useDebugValue,_=!1,o=!1,d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?s:t;L.useSyncExternalStore=u.useSyncExternalStore!==void 0?u.useSyncExternalStore:d,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),L}var T;function B(){return T||(T=1,process.env.NODE_ENV==="production"?x.exports=H():x.exports=U()),x.exports}var K=B();function F(){return K.useSyncExternalStore(z,()=>!0,()=>!1)}function z(){return()=>{}}var w="Avatar",[W]=G.createContextScope(w),[Y,q]=W(w),D=E.forwardRef((e,t)=>{const{__scopeAvatar:a,...s}=e,[u,r]=E.useState("idle");return g.jsxRuntimeExports.jsx(Y,{scope:a,imageLoadingStatus:u,onImageLoadingStatusChange:r,children:g.jsxRuntimeExports.jsx(R.Primitive.span,{...s,ref:t})})});D.displayName=w;var N="AvatarImage",k=E.forwardRef((e,t)=>{const{__scopeAvatar:a,src:s,onLoadingStatusChange:u=()=>{},...r}=e,v=q(N,a),l=J(s,r),f=V.useCallbackRef(S=>{u(S),v.onImageLoadingStatusChange(S)});return O.useLayoutEffect2(()=>{l!=="idle"&&f(l)},[l,f]),l==="loaded"?g.jsxRuntimeExports.jsx(R.Primitive.img,{...r,ref:t,src:s}):null});k.displayName=N;var $="AvatarFallback",M=E.forwardRef((e,t)=>{const{__scopeAvatar:a,delayMs:s,...u}=e,r=q($,a),[v,l]=E.useState(s===void 0);return E.useEffect(()=>{if(s!==void 0){const f=window.setTimeout(()=>l(!0),s);return()=>window.clearTimeout(f)}},[s]),v&&r.imageLoadingStatus!=="loaded"?g.jsxRuntimeExports.jsx(R.Primitive.span,{...u,ref:t}):null});M.displayName=$;function C(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function J(e,{referrerPolicy:t,crossOrigin:a}){const s=F(),u=E.useRef(null),r=s?(u.current||(u.current=new window.Image),u.current):null,[v,l]=E.useState(()=>C(r,e));return O.useLayoutEffect2(()=>{l(C(r,e))},[r,e]),O.useLayoutEffect2(()=>{const f=o=>()=>{l(o)};if(!r)return;const S=f("loaded"),_=f("error");return r.addEventListener("load",S),r.addEventListener("error",_),t&&(r.referrerPolicy=t),typeof a=="string"&&(r.crossOrigin=a),()=>{r.removeEventListener("load",S),r.removeEventListener("error",_)}},[r,a,t]),v}var Q=D,X=k,Z=M;function ee({className:e,...t}){return g.jsxRuntimeExports.jsx(Q,{"data-slot":"avatar",className:j.cn("adm:relative adm:flex adm:size-8 adm:shrink-0 adm:overflow-hidden adm:rounded-full",e),...t})}function te({className:e,...t}){return g.jsxRuntimeExports.jsx(X,{"data-slot":"avatar-image",className:j.cn("adm:aspect-square adm:size-full",e),...t})}function re({className:e,...t}){return g.jsxRuntimeExports.jsx(Z,{"data-slot":"avatar-fallback",className:j.cn("adm:bg-muted adm:flex adm:size-full adm:items-center adm:justify-center adm:rounded-full",e),...t})}exports.Avatar=ee;exports.AvatarFallback=re;exports.AvatarImage=te;
|
package/dist/avatar.js
ADDED
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { j as g } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
+
import * as _ from "react";
|
|
3
|
+
import j from "react";
|
|
4
|
+
import { c as H } from "./index-FxyLF8MY.js";
|
|
5
|
+
import { u as U } from "./index-0ioNhtNM.js";
|
|
6
|
+
import { u as O } from "./index-CCKe-Mpx.js";
|
|
7
|
+
import { P as x } from "./index-C5wjudc-.js";
|
|
8
|
+
import { c as w } from "./utils-CRiPKpXj.js";
|
|
9
|
+
var h = { exports: {} }, y = {};
|
|
10
|
+
/**
|
|
11
|
+
* @license React
|
|
12
|
+
* use-sync-external-store-shim.production.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/
|
|
19
|
+
var I;
|
|
20
|
+
function q() {
|
|
21
|
+
if (I) return y;
|
|
22
|
+
I = 1;
|
|
23
|
+
var e = j;
|
|
24
|
+
function t(n, c) {
|
|
25
|
+
return n === c && (n !== 0 || 1 / n === 1 / c) || n !== n && c !== c;
|
|
26
|
+
}
|
|
27
|
+
var i = typeof Object.is == "function" ? Object.is : t, d = e.useState, o = e.useEffect, r = e.useLayoutEffect, m = e.useDebugValue;
|
|
28
|
+
function f(n, c) {
|
|
29
|
+
var a = c(), u = d({ inst: { value: a, getSnapshot: c } }), s = u[0].inst, v = u[1];
|
|
30
|
+
return r(
|
|
31
|
+
function() {
|
|
32
|
+
s.value = a, s.getSnapshot = c, l(s) && v({ inst: s });
|
|
33
|
+
},
|
|
34
|
+
[n, a, c]
|
|
35
|
+
), o(
|
|
36
|
+
function() {
|
|
37
|
+
return l(s) && v({ inst: s }), n(function() {
|
|
38
|
+
l(s) && v({ inst: s });
|
|
39
|
+
});
|
|
40
|
+
},
|
|
41
|
+
[n]
|
|
42
|
+
), m(a), a;
|
|
43
|
+
}
|
|
44
|
+
function l(n) {
|
|
45
|
+
var c = n.getSnapshot;
|
|
46
|
+
n = n.value;
|
|
47
|
+
try {
|
|
48
|
+
var a = c();
|
|
49
|
+
return !i(n, a);
|
|
50
|
+
} catch {
|
|
51
|
+
return !0;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function S(n, c) {
|
|
55
|
+
return c();
|
|
56
|
+
}
|
|
57
|
+
var E = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? S : f;
|
|
58
|
+
return y.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : E, y;
|
|
59
|
+
}
|
|
60
|
+
var A = {};
|
|
61
|
+
/**
|
|
62
|
+
* @license React
|
|
63
|
+
* use-sync-external-store-shim.development.js
|
|
64
|
+
*
|
|
65
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the MIT license found in the
|
|
68
|
+
* LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/
|
|
70
|
+
var C;
|
|
71
|
+
function B() {
|
|
72
|
+
return C || (C = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
73
|
+
function e(a, u) {
|
|
74
|
+
return a === u && (a !== 0 || 1 / a === 1 / u) || a !== a && u !== u;
|
|
75
|
+
}
|
|
76
|
+
function t(a, u) {
|
|
77
|
+
E || o.startTransition === void 0 || (E = !0, console.error(
|
|
78
|
+
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
79
|
+
));
|
|
80
|
+
var s = u();
|
|
81
|
+
if (!n) {
|
|
82
|
+
var v = u();
|
|
83
|
+
r(s, v) || (console.error(
|
|
84
|
+
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
85
|
+
), n = !0);
|
|
86
|
+
}
|
|
87
|
+
v = m({
|
|
88
|
+
inst: { value: s, getSnapshot: u }
|
|
89
|
+
});
|
|
90
|
+
var p = v[0].inst, L = v[1];
|
|
91
|
+
return l(
|
|
92
|
+
function() {
|
|
93
|
+
p.value = s, p.getSnapshot = u, i(p) && L({ inst: p });
|
|
94
|
+
},
|
|
95
|
+
[a, s, u]
|
|
96
|
+
), f(
|
|
97
|
+
function() {
|
|
98
|
+
return i(p) && L({ inst: p }), a(function() {
|
|
99
|
+
i(p) && L({ inst: p });
|
|
100
|
+
});
|
|
101
|
+
},
|
|
102
|
+
[a]
|
|
103
|
+
), S(s), s;
|
|
104
|
+
}
|
|
105
|
+
function i(a) {
|
|
106
|
+
var u = a.getSnapshot;
|
|
107
|
+
a = a.value;
|
|
108
|
+
try {
|
|
109
|
+
var s = u();
|
|
110
|
+
return !r(a, s);
|
|
111
|
+
} catch {
|
|
112
|
+
return !0;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
function d(a, u) {
|
|
116
|
+
return u();
|
|
117
|
+
}
|
|
118
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
119
|
+
var o = j, r = typeof Object.is == "function" ? Object.is : e, m = o.useState, f = o.useEffect, l = o.useLayoutEffect, S = o.useDebugValue, E = !1, n = !1, c = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? d : t;
|
|
120
|
+
A.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : c, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
121
|
+
})()), A;
|
|
122
|
+
}
|
|
123
|
+
var T;
|
|
124
|
+
function K() {
|
|
125
|
+
return T || (T = 1, process.env.NODE_ENV === "production" ? h.exports = q() : h.exports = B()), h.exports;
|
|
126
|
+
}
|
|
127
|
+
var $ = K();
|
|
128
|
+
function F() {
|
|
129
|
+
return $.useSyncExternalStore(
|
|
130
|
+
P,
|
|
131
|
+
() => !0,
|
|
132
|
+
() => !1
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
function P() {
|
|
136
|
+
return () => {
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
var R = "Avatar", [z] = H(R), [W, N] = z(R), D = _.forwardRef(
|
|
140
|
+
(e, t) => {
|
|
141
|
+
const { __scopeAvatar: i, ...d } = e, [o, r] = _.useState("idle");
|
|
142
|
+
return /* @__PURE__ */ g.jsx(
|
|
143
|
+
W,
|
|
144
|
+
{
|
|
145
|
+
scope: i,
|
|
146
|
+
imageLoadingStatus: o,
|
|
147
|
+
onImageLoadingStatusChange: r,
|
|
148
|
+
children: /* @__PURE__ */ g.jsx(x.span, { ...d, ref: t })
|
|
149
|
+
}
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
);
|
|
153
|
+
D.displayName = R;
|
|
154
|
+
var k = "AvatarImage", G = _.forwardRef(
|
|
155
|
+
(e, t) => {
|
|
156
|
+
const { __scopeAvatar: i, src: d, onLoadingStatusChange: o = () => {
|
|
157
|
+
}, ...r } = e, m = N(k, i), f = Y(d, r), l = U((S) => {
|
|
158
|
+
o(S), m.onImageLoadingStatusChange(S);
|
|
159
|
+
});
|
|
160
|
+
return O(() => {
|
|
161
|
+
f !== "idle" && l(f);
|
|
162
|
+
}, [f, l]), f === "loaded" ? /* @__PURE__ */ g.jsx(x.img, { ...r, ref: t, src: d }) : null;
|
|
163
|
+
}
|
|
164
|
+
);
|
|
165
|
+
G.displayName = k;
|
|
166
|
+
var V = "AvatarFallback", M = _.forwardRef(
|
|
167
|
+
(e, t) => {
|
|
168
|
+
const { __scopeAvatar: i, delayMs: d, ...o } = e, r = N(V, i), [m, f] = _.useState(d === void 0);
|
|
169
|
+
return _.useEffect(() => {
|
|
170
|
+
if (d !== void 0) {
|
|
171
|
+
const l = window.setTimeout(() => f(!0), d);
|
|
172
|
+
return () => window.clearTimeout(l);
|
|
173
|
+
}
|
|
174
|
+
}, [d]), m && r.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ g.jsx(x.span, { ...o, ref: t }) : null;
|
|
175
|
+
}
|
|
176
|
+
);
|
|
177
|
+
M.displayName = V;
|
|
178
|
+
function b(e, t) {
|
|
179
|
+
return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
180
|
+
}
|
|
181
|
+
function Y(e, { referrerPolicy: t, crossOrigin: i }) {
|
|
182
|
+
const d = F(), o = _.useRef(null), r = d ? (o.current || (o.current = new window.Image()), o.current) : null, [m, f] = _.useState(
|
|
183
|
+
() => b(r, e)
|
|
184
|
+
);
|
|
185
|
+
return O(() => {
|
|
186
|
+
f(b(r, e));
|
|
187
|
+
}, [r, e]), O(() => {
|
|
188
|
+
const l = (n) => () => {
|
|
189
|
+
f(n);
|
|
190
|
+
};
|
|
191
|
+
if (!r) return;
|
|
192
|
+
const S = l("loaded"), E = l("error");
|
|
193
|
+
return r.addEventListener("load", S), r.addEventListener("error", E), t && (r.referrerPolicy = t), typeof i == "string" && (r.crossOrigin = i), () => {
|
|
194
|
+
r.removeEventListener("load", S), r.removeEventListener("error", E);
|
|
195
|
+
};
|
|
196
|
+
}, [r, i, t]), m;
|
|
197
|
+
}
|
|
198
|
+
var J = D, Q = G, X = M;
|
|
199
|
+
function ue({
|
|
200
|
+
className: e,
|
|
201
|
+
...t
|
|
202
|
+
}) {
|
|
203
|
+
return /* @__PURE__ */ g.jsx(
|
|
204
|
+
J,
|
|
205
|
+
{
|
|
206
|
+
"data-slot": "avatar",
|
|
207
|
+
className: w(
|
|
208
|
+
"adm:relative adm:flex adm:size-8 adm:shrink-0 adm:overflow-hidden adm:rounded-full",
|
|
209
|
+
e
|
|
210
|
+
),
|
|
211
|
+
...t
|
|
212
|
+
}
|
|
213
|
+
);
|
|
214
|
+
}
|
|
215
|
+
function se({
|
|
216
|
+
className: e,
|
|
217
|
+
...t
|
|
218
|
+
}) {
|
|
219
|
+
return /* @__PURE__ */ g.jsx(
|
|
220
|
+
Q,
|
|
221
|
+
{
|
|
222
|
+
"data-slot": "avatar-image",
|
|
223
|
+
className: w("adm:aspect-square adm:size-full", e),
|
|
224
|
+
...t
|
|
225
|
+
}
|
|
226
|
+
);
|
|
227
|
+
}
|
|
228
|
+
function ie({
|
|
229
|
+
className: e,
|
|
230
|
+
...t
|
|
231
|
+
}) {
|
|
232
|
+
return /* @__PURE__ */ g.jsx(
|
|
233
|
+
X,
|
|
234
|
+
{
|
|
235
|
+
"data-slot": "avatar-fallback",
|
|
236
|
+
className: w(
|
|
237
|
+
"adm:bg-muted adm:flex adm:size-full adm:items-center adm:justify-center adm:rounded-full",
|
|
238
|
+
e
|
|
239
|
+
),
|
|
240
|
+
...t
|
|
241
|
+
}
|
|
242
|
+
);
|
|
243
|
+
}
|
|
244
|
+
export {
|
|
245
|
+
ue as Avatar,
|
|
246
|
+
ie as AvatarFallback,
|
|
247
|
+
se as AvatarImage
|
|
248
|
+
};
|
package/dist/badge.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./jsx-runtime-BB_1_6y_.cjs");require("react");const n=require("./index-BKbK2GzY.cjs"),g=require("./index-iAvn1gzj.cjs"),u=require("./utils-DoxiiusW.cjs"),a=g.cva("adm:inline-flex adm:items-center adm:justify-center adm:rounded-md adm:border adm:px-2 adm:py-0.5 adm:text-xs adm:font-medium adm:w-fit adm:whitespace-nowrap adm:shrink-0 adm:[&>svg]:size-3 adm:gap-1 adm:[&>svg]:pointer-events-none adm:focus-visible:border-ring adm:focus-visible:ring-ring/50 adm:focus-visible:ring-[3px] adm:aria-invalid:ring-destructive/20 adm:dark:aria-invalid:ring-destructive/40 adm:aria-invalid:border-destructive adm:transition-[color,box-shadow] adm:overflow-hidden",{variants:{variant:{default:"adm:border-transparent adm:bg-primary adm:text-primary-foreground adm:[a&]:hover:bg-primary/90","default-medium":"adm:border-transparent adm:bg-primary-50 adm:text-neutral-600 adm:[&>svg]:text-primary adm:[a&]:hover:bg-primary-100 adm:focus-visible:ring-primary/10 adm:dark:focus-visible:ring-primary/20 adm:dark:bg-primary-200 adm:dark:text-primary-800",waiting:"adm:border-transparent adm:bg-waiting adm:text-waiting-foreground adm:[a&]:hover:bg-waiting/90","waiting-medium":"adm:border-transparent adm:bg-waiting-50 adm:text-neutral-600 adm:[&>svg]:text-waiting adm:[a&]:hover:bg-waiting-100 adm:focus-visible:ring-waiting/10 adm:dark:focus-visible:ring-waiting/20 adm:dark:bg-waiting-200 adm:dark:text-waiting-800",secondary:"adm:border-transparent adm:bg-secondary adm:text-secondary-foreground adm:[a&]:hover:bg-secondary/90","success-medium":"adm:border-transparent adm:bg-success-50 adm:text-neutral-600 adm:[&>svg]:text-success adm:[a&]:hover:bg-success-100 adm:focus-visible:ring-success/10 adm:dark:focus-visible:ring-success/20 adm:dark:bg-success-200 adm:dark:text-success-800",success:"adm:border-transparent adm:bg-success adm:text-white adm:[a&]:hover:bg-success/90 adm:focus-visible:ring-success/20 adm:dark:focus-visible:ring-success/40 adm:dark:bg-success/60","warning-medium":"adm:border-transparent adm:bg-warning-50 adm:text-neutral-600 adm:[&>svg]:text-warning adm:[a&]:hover:bg-warning-100 adm:focus-visible:ring-warning/10 adm:dark:focus-visible:ring-warning/20 adm:dark:bg-warning-200 adm:dark:text-warning-800",warning:"adm:border-transparent adm:bg-warning adm:text-white adm:[a&]:hover:bg-warning/90 adm:focus-visible:ring-warning/20 adm:dark:focus-visible:ring-warning/40 adm:dark:bg-warning/60","destructive-medium":"adm:border-transparent adm:bg-destructive-50 adm:text-neutral-600 adm:[&>svg]:text-destructive adm:[a&]:hover:bg-destructive-100 adm:focus-visible:ring-destructive/10 adm:dark:focus-visible:ring-destructive/20 adm:dark:bg-destructive-200 adm:dark:text-destructive-800",destructive:"adm:border-transparent adm:bg-destructive adm:text-white adm:[a&]:hover:bg-destructive/90 adm:focus-visible:ring-destructive/20 adm:dark:focus-visible:ring-destructive/40 adm:dark:bg-destructive/60",muted:"adm:border-transparent adm:bg-muted adm:text-muted-foreground adm:[a&]:hover:bg-muted/90 adm:focus-visible:ring-muted/20 adm:dark:focus-visible:ring-muted/40 adm:dark:bg-muted/60",outline:"adm:text-foreground adm:[a&]:hover:bg-accent adm:[a&]:hover:text-accent-foreground"},size:{lg:"adm:text-sm adm:px-2 adm:py-1 adm:gap-2 dm:text-sm adm:[&>svg]:size-4"}},defaultVariants:{variant:"default"}});function o({className:e,variant:r,size:d,asChild:i=!1,...t}){const s=i?n.Slot:"span";return m.jsxRuntimeExports.jsx(s,{"data-slot":"badge",className:u.cn(a({variant:r,size:d}),e),...t})}exports.Badge=o;exports.badgeVariants=a;
|
package/dist/badge.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { j as m } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { S as s } from "./index-6oTEokEx.js";
|
|
4
|
+
import { c as n } from "./index-CQhYMnjT.js";
|
|
5
|
+
import { c as g } from "./utils-CRiPKpXj.js";
|
|
6
|
+
const o = n(
|
|
7
|
+
"adm:inline-flex adm:items-center adm:justify-center adm:rounded-md adm:border adm:px-2 adm:py-0.5 adm:text-xs adm:font-medium adm:w-fit adm:whitespace-nowrap adm:shrink-0 adm:[&>svg]:size-3 adm:gap-1 adm:[&>svg]:pointer-events-none adm:focus-visible:border-ring adm:focus-visible:ring-ring/50 adm:focus-visible:ring-[3px] adm:aria-invalid:ring-destructive/20 adm:dark:aria-invalid:ring-destructive/40 adm:aria-invalid:border-destructive adm:transition-[color,box-shadow] adm:overflow-hidden",
|
|
8
|
+
{
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
default: "adm:border-transparent adm:bg-primary adm:text-primary-foreground adm:[a&]:hover:bg-primary/90",
|
|
12
|
+
"default-medium": "adm:border-transparent adm:bg-primary-50 adm:text-neutral-600 adm:[&>svg]:text-primary adm:[a&]:hover:bg-primary-100 adm:focus-visible:ring-primary/10 adm:dark:focus-visible:ring-primary/20 adm:dark:bg-primary-200 adm:dark:text-primary-800",
|
|
13
|
+
waiting: "adm:border-transparent adm:bg-waiting adm:text-waiting-foreground adm:[a&]:hover:bg-waiting/90",
|
|
14
|
+
"waiting-medium": "adm:border-transparent adm:bg-waiting-50 adm:text-neutral-600 adm:[&>svg]:text-waiting adm:[a&]:hover:bg-waiting-100 adm:focus-visible:ring-waiting/10 adm:dark:focus-visible:ring-waiting/20 adm:dark:bg-waiting-200 adm:dark:text-waiting-800",
|
|
15
|
+
secondary: "adm:border-transparent adm:bg-secondary adm:text-secondary-foreground adm:[a&]:hover:bg-secondary/90",
|
|
16
|
+
"success-medium": "adm:border-transparent adm:bg-success-50 adm:text-neutral-600 adm:[&>svg]:text-success adm:[a&]:hover:bg-success-100 adm:focus-visible:ring-success/10 adm:dark:focus-visible:ring-success/20 adm:dark:bg-success-200 adm:dark:text-success-800",
|
|
17
|
+
success: "adm:border-transparent adm:bg-success adm:text-white adm:[a&]:hover:bg-success/90 adm:focus-visible:ring-success/20 adm:dark:focus-visible:ring-success/40 adm:dark:bg-success/60",
|
|
18
|
+
"warning-medium": "adm:border-transparent adm:bg-warning-50 adm:text-neutral-600 adm:[&>svg]:text-warning adm:[a&]:hover:bg-warning-100 adm:focus-visible:ring-warning/10 adm:dark:focus-visible:ring-warning/20 adm:dark:bg-warning-200 adm:dark:text-warning-800",
|
|
19
|
+
warning: "adm:border-transparent adm:bg-warning adm:text-white adm:[a&]:hover:bg-warning/90 adm:focus-visible:ring-warning/20 adm:dark:focus-visible:ring-warning/40 adm:dark:bg-warning/60",
|
|
20
|
+
"destructive-medium": "adm:border-transparent adm:bg-destructive-50 adm:text-neutral-600 adm:[&>svg]:text-destructive adm:[a&]:hover:bg-destructive-100 adm:focus-visible:ring-destructive/10 adm:dark:focus-visible:ring-destructive/20 adm:dark:bg-destructive-200 adm:dark:text-destructive-800",
|
|
21
|
+
destructive: "adm:border-transparent adm:bg-destructive adm:text-white adm:[a&]:hover:bg-destructive/90 adm:focus-visible:ring-destructive/20 adm:dark:focus-visible:ring-destructive/40 adm:dark:bg-destructive/60",
|
|
22
|
+
muted: "adm:border-transparent adm:bg-muted adm:text-muted-foreground adm:[a&]:hover:bg-muted/90 adm:focus-visible:ring-muted/20 adm:dark:focus-visible:ring-muted/40 adm:dark:bg-muted/60",
|
|
23
|
+
outline: "adm:text-foreground adm:[a&]:hover:bg-accent adm:[a&]:hover:text-accent-foreground"
|
|
24
|
+
},
|
|
25
|
+
size: {
|
|
26
|
+
lg: "adm:text-sm adm:px-2 adm:py-1 adm:gap-2 dm:text-sm adm:[&>svg]:size-4"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
defaultVariants: {
|
|
30
|
+
variant: "default"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
function f({
|
|
35
|
+
className: a,
|
|
36
|
+
variant: r,
|
|
37
|
+
size: d,
|
|
38
|
+
asChild: e = !1,
|
|
39
|
+
...t
|
|
40
|
+
}) {
|
|
41
|
+
const i = e ? s : "span";
|
|
42
|
+
return /* @__PURE__ */ m.jsx(
|
|
43
|
+
i,
|
|
44
|
+
{
|
|
45
|
+
"data-slot": "badge",
|
|
46
|
+
className: g(o({ variant: r, size: d }), a),
|
|
47
|
+
...t
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
export {
|
|
52
|
+
f as Badge,
|
|
53
|
+
o as badgeVariants
|
|
54
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { j as m } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { S as t } from "./index-6oTEokEx.js";
|
|
4
|
+
import { c as n } from "./index-CQhYMnjT.js";
|
|
5
|
+
import { c as o } from "./utils-CRiPKpXj.js";
|
|
6
|
+
const c = n(
|
|
7
|
+
"adm:inline-flex adm:items-center adm:justify-center adm:gap-2 adm:whitespace-nowrap adm:rounded-md adm:text-sm adm:font-semibold adm:transition-all adm:disabled:pointer-events-none adm:disabled:opacity-50 adm:[&_svg]:pointer-events-none adm:[&_svg:not([class*=size-])]:size-4 adm:shrink-0 adm:[&_svg]:shrink-0 adm:outline-none adm:focus-visible:border-ring adm:focus-visible:ring-ring/50 adm:focus-visible:ring-[3px] adm:aria-invalid:ring-destructive/20 adm:dark:aria-invalid:ring-destructive/40 adm:aria-invalid:border-destructive",
|
|
8
|
+
{
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
default: "adm:bg-primary adm:text-primary-foreground adm:hover:bg-primary-700",
|
|
12
|
+
success: "adm:bg-success adm:text-white adm:hover:bg-success-700 adm:focus-visible:ring-success/20 adm:dark:focus-visible:ring-success/40 adm:dark:bg-success/60",
|
|
13
|
+
"success-medium": "adm:bg-success-50 adm:text-success adm:hover:bg-success/20 adm:focus-visible:ring-success/20 adm:dark:focus-visible:ring-success/40 adm:dark:bg-success-50/60",
|
|
14
|
+
warning: "adm:bg-warning adm:text-white adm:hover:bg-warning-700 adm:focus-visible:ring-warning/20 adm:dark:focus-visible:ring-warning/40 adm:dark:bg-warning/60",
|
|
15
|
+
"warning-medium": "adm:bg-warning-50 adm:text-warning adm:hover:bg-warning/20 adm:focus-visible:ring-warning/20 adm:dark:focus-visible:ring-warning/40 adm:dark:bg-warning-50/60",
|
|
16
|
+
destructive: "adm:bg-destructive adm:text-white adm:hover:bg-destructive-700 adm:focus-visible:ring-destructive/20 adm:dark:focus-visible:ring-destructive/40 adm:dark:bg-destructive/60",
|
|
17
|
+
"destructive-medium": "adm:bg-destructive-50 adm:text-destructive adm:hover:bg-destructive/20 adm:focus-visible:ring-destructive/20 adm:dark:focus-visible:ring-destructive/40 adm:dark:bg-destructive-50/60",
|
|
18
|
+
outline: "adm:border adm:bg-background adm:shadow-xs adm:hover:bg-accent adm:hover:text-accent-foreground adm:dark:bg-input/30 adm:dark:border-input adm:dark:hover:bg-input/50",
|
|
19
|
+
secondary: "adm:bg-secondary adm:text-secondary-foreground adm:hover:bg-primary-200",
|
|
20
|
+
ghost: "adm:hover:bg-accent adm:hover:text-accent-foreground adm:dark:hover:bg-accent/50",
|
|
21
|
+
link: "adm:text-primary adm:underline-offset-4 adm:hover:underline"
|
|
22
|
+
},
|
|
23
|
+
size: {
|
|
24
|
+
default: "adm:h-9 adm:px-4 adm:py-2 adm:has-[>svg]:px-3",
|
|
25
|
+
sm: "adm:h-8 adm:rounded-md adm:gap-1.5 adm:px-3 adm:has-[>svg]:px-2.5",
|
|
26
|
+
lg: "adm:h-10 adm:rounded-md adm:px-6 adm:has-[>svg]:px-4",
|
|
27
|
+
icon: "adm:size-9",
|
|
28
|
+
"icon-sm": "adm:size-8",
|
|
29
|
+
"icon-lg": "adm:size-10"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
defaultVariants: {
|
|
33
|
+
variant: "default",
|
|
34
|
+
size: "default"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
function f({
|
|
39
|
+
className: a,
|
|
40
|
+
variant: d,
|
|
41
|
+
size: e,
|
|
42
|
+
asChild: r = !1,
|
|
43
|
+
...i
|
|
44
|
+
}) {
|
|
45
|
+
const s = r ? t : "button";
|
|
46
|
+
return /* @__PURE__ */ m.jsx(
|
|
47
|
+
s,
|
|
48
|
+
{
|
|
49
|
+
"data-slot": "button",
|
|
50
|
+
className: o(c({ variant: d, size: e, className: a })),
|
|
51
|
+
...i
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
export {
|
|
56
|
+
f as B,
|
|
57
|
+
c as b
|
|
58
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("./jsx-runtime-BB_1_6y_.cjs");require("react");const m=require("./index-BKbK2GzY.cjs"),c=require("./index-iAvn1gzj.cjs"),o=require("./utils-DoxiiusW.cjs"),a=c.cva("adm:inline-flex adm:items-center adm:justify-center adm:gap-2 adm:whitespace-nowrap adm:rounded-md adm:text-sm adm:font-semibold adm:transition-all adm:disabled:pointer-events-none adm:disabled:opacity-50 adm:[&_svg]:pointer-events-none adm:[&_svg:not([class*=size-])]:size-4 adm:shrink-0 adm:[&_svg]:shrink-0 adm:outline-none adm:focus-visible:border-ring adm:focus-visible:ring-ring/50 adm:focus-visible:ring-[3px] adm:aria-invalid:ring-destructive/20 adm:dark:aria-invalid:ring-destructive/40 adm:aria-invalid:border-destructive",{variants:{variant:{default:"adm:bg-primary adm:text-primary-foreground adm:hover:bg-primary-700",success:"adm:bg-success adm:text-white adm:hover:bg-success-700 adm:focus-visible:ring-success/20 adm:dark:focus-visible:ring-success/40 adm:dark:bg-success/60","success-medium":"adm:bg-success-50 adm:text-success adm:hover:bg-success/20 adm:focus-visible:ring-success/20 adm:dark:focus-visible:ring-success/40 adm:dark:bg-success-50/60",warning:"adm:bg-warning adm:text-white adm:hover:bg-warning-700 adm:focus-visible:ring-warning/20 adm:dark:focus-visible:ring-warning/40 adm:dark:bg-warning/60","warning-medium":"adm:bg-warning-50 adm:text-warning adm:hover:bg-warning/20 adm:focus-visible:ring-warning/20 adm:dark:focus-visible:ring-warning/40 adm:dark:bg-warning-50/60",destructive:"adm:bg-destructive adm:text-white adm:hover:bg-destructive-700 adm:focus-visible:ring-destructive/20 adm:dark:focus-visible:ring-destructive/40 adm:dark:bg-destructive/60","destructive-medium":"adm:bg-destructive-50 adm:text-destructive adm:hover:bg-destructive/20 adm:focus-visible:ring-destructive/20 adm:dark:focus-visible:ring-destructive/40 adm:dark:bg-destructive-50/60",outline:"adm:border adm:bg-background adm:shadow-xs adm:hover:bg-accent adm:hover:text-accent-foreground adm:dark:bg-input/30 adm:dark:border-input adm:dark:hover:bg-input/50",secondary:"adm:bg-secondary adm:text-secondary-foreground adm:hover:bg-primary-200",ghost:"adm:hover:bg-accent adm:hover:text-accent-foreground adm:dark:hover:bg-accent/50",link:"adm:text-primary adm:underline-offset-4 adm:hover:underline"},size:{default:"adm:h-9 adm:px-4 adm:py-2 adm:has-[>svg]:px-3",sm:"adm:h-8 adm:rounded-md adm:gap-1.5 adm:px-3 adm:has-[>svg]:px-2.5",lg:"adm:h-10 adm:rounded-md adm:px-6 adm:has-[>svg]:px-4",icon:"adm:size-9","icon-sm":"adm:size-8","icon-lg":"adm:size-10"}},defaultVariants:{variant:"default",size:"default"}});function u({className:d,variant:e,size:i,asChild:r=!1,...s}){const t=r?m.Slot:"button";return n.jsxRuntimeExports.jsx(t,{"data-slot":"button",className:o.cn(a({variant:e,size:i,className:d})),...s})}exports.Button=u;exports.buttonVariants=a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./jsx-runtime-BB_1_6y_.cjs"),s=require("./index-BKbK2GzY.cjs"),i=require("./index-iAvn1gzj.cjs"),r=require("./utils-DoxiiusW.cjs"),u=require("./separator-Dbx-SVIs.cjs"),n=i.cva("adm:flex adm:w-fit adm:items-stretch adm:[&>*]:focus-visible:z-10 adm:[&>*]:focus-visible:relative adm:[&>[data-slot=select-trigger]:not([class*=w-])]:w-fit adm:[&>input]:flex-1 adm:has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md adm:has-[>[data-slot=button-group]]:gap-2",{variants:{orientation:{horizontal:"adm:[&>*:not(:first-child)]:rounded-l-none adm:[&>*:not(:first-child)]:border-l-0 adm:[&>*:not(:last-child)]:rounded-r-none",vertical:"adm:flex-col adm:[&>*:not(:first-child)]:rounded-t-none adm:[&>*:not(:first-child)]:border-t-0 adm:[&>*:not(:last-child)]:rounded-b-none"}},defaultVariants:{orientation:"horizontal"}});function m({className:a,orientation:t,...e}){return o.jsxRuntimeExports.jsx("div",{role:"group","data-slot":"button-group","data-orientation":t,className:r.cn(n({orientation:t}),a),...e})}function l({className:a,asChild:t=!1,...e}){const d=t?s.Slot:"div";return o.jsxRuntimeExports.jsx(d,{className:r.cn("adm:bg-muted adm:flex adm:items-center adm:gap-2 adm:rounded-md adm:border adm:px-4 adm:text-sm adm:font-medium adm:shadow-xs adm:[&_svg]:pointer-events-none adm:[&_svg:not([class*=size-])]:size-4",a),...e})}function c({className:a,orientation:t="vertical",...e}){return o.jsxRuntimeExports.jsx(u.Separator,{"data-slot":"button-group-separator",orientation:t,className:r.cn("adm:bg-input adm:relative adm:!m-0 adm:self-stretch adm:data-[orientation=vertical]:h-auto",a),...e})}exports.ButtonGroup=m;exports.ButtonGroupSeparator=c;exports.ButtonGroupText=l;exports.buttonGroupVariants=n;
|