@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
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { j as e } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
+
import * as m from "react";
|
|
3
|
+
import { P as c } from "./index-C5wjudc-.js";
|
|
4
|
+
import { c as p } from "./utils-CRiPKpXj.js";
|
|
5
|
+
var v = "Separator", n = "horizontal", f = ["horizontal", "vertical"], s = m.forwardRef((a, t) => {
|
|
6
|
+
const { decorative: o, orientation: r = n, ...d } = a, i = u(r) ? r : n, l = o ? { role: "none" } : { "aria-orientation": i === "vertical" ? i : void 0, role: "separator" };
|
|
7
|
+
return /* @__PURE__ */ e.jsx(
|
|
8
|
+
c.div,
|
|
9
|
+
{
|
|
10
|
+
"data-orientation": i,
|
|
11
|
+
...l,
|
|
12
|
+
...d,
|
|
13
|
+
ref: t
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
});
|
|
17
|
+
s.displayName = v;
|
|
18
|
+
function u(a) {
|
|
19
|
+
return f.includes(a);
|
|
20
|
+
}
|
|
21
|
+
var h = s;
|
|
22
|
+
function z({
|
|
23
|
+
className: a,
|
|
24
|
+
orientation: t = "horizontal",
|
|
25
|
+
decorative: o = !0,
|
|
26
|
+
...r
|
|
27
|
+
}) {
|
|
28
|
+
return /* @__PURE__ */ e.jsx(
|
|
29
|
+
h,
|
|
30
|
+
{
|
|
31
|
+
"data-slot": "separator",
|
|
32
|
+
decorative: o,
|
|
33
|
+
orientation: t,
|
|
34
|
+
className: p(
|
|
35
|
+
"adm:bg-border adm:shrink-0 adm:data-[orientation=horizontal]:h-px adm:data-[orientation=horizontal]:w-full adm:data-[orientation=vertical]:h-full adm:data-[orientation=vertical]:w-px",
|
|
36
|
+
a
|
|
37
|
+
),
|
|
38
|
+
...r
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
export {
|
|
43
|
+
z as S
|
|
44
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("./jsx-runtime-BB_1_6y_.cjs"),u=require("react"),d=require("./index-DQvx1rG_.cjs"),p=require("./utils-DoxiiusW.cjs");function m(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const e=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(a,r,e.get?e:{enumerable:!0,get:()=>t[r]})}}return a.default=t,Object.freeze(a)}const f=m(u);var v="Separator",n="horizontal",O=["horizontal","vertical"],s=f.forwardRef((t,a)=>{const{decorative:r,orientation:e=n,...c}=t,o=x(e)?e:n,l=r?{role:"none"}:{"aria-orientation":o==="vertical"?o:void 0,role:"separator"};return i.jsxRuntimeExports.jsx(d.Primitive.div,{"data-orientation":o,...l,...c,ref:a})});s.displayName=v;function x(t){return O.includes(t)}var j=s;function R({className:t,orientation:a="horizontal",decorative:r=!0,...e}){return i.jsxRuntimeExports.jsx(j,{"data-slot":"separator",decorative:r,orientation:a,className:p.cn("adm:bg-border adm:shrink-0 adm:data-[orientation=horizontal]:h-px adm:data-[orientation=horizontal]:w-full adm:data-[orientation=vertical]:h-full adm:data-[orientation=vertical]:w-px",t),...e})}exports.Separator=R;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./separator-Dbx-SVIs.cjs");exports.Separator=e.Separator;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./jsx-runtime-BB_1_6y_.cjs");require("react");const d=require("./index-BpvjJ_T6.cjs"),s=require("./utils-DoxiiusW.cjs"),r=require("./x-CBKgg4YL.cjs");function i({...t}){return e.jsxRuntimeExports.jsx(d.Root,{"data-slot":"sheet",...t})}function l({...t}){return e.jsxRuntimeExports.jsx(d.Trigger,{"data-slot":"sheet-trigger",...t})}function u({...t}){return e.jsxRuntimeExports.jsx(d.Close,{"data-slot":"sheet-close",...t})}function x({...t}){return e.jsxRuntimeExports.jsx(d.Portal,{"data-slot":"sheet-portal",...t})}function c({className:t,...a}){return e.jsxRuntimeExports.jsx(d.Overlay,{"data-slot":"sheet-overlay",className:s.cn("adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:fixed adm:inset-0 adm:z-50 adm:bg-black/50",t),...a})}function h({className:t,children:a,side:o="right",showCloseButton:m=!0,...n}){return e.jsxRuntimeExports.jsxs(x,{children:[e.jsxRuntimeExports.jsx(c,{}),e.jsxRuntimeExports.jsxs(d.Content,{"data-slot":"sheet-content",className:s.cn("adm:bg-background adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:fixed adm:z-50 adm:flex adm:flex-col adm:gap-4 adm:shadow-lg adm:transition adm:ease-in-out adm:data-[state=closed]:duration-300 adm:data-[state=open]:duration-500",o==="right"&&"adm:rounded-tl-lg adm:rounded-bl-lg adm:data-[state=closed]:slide-out-to-right adm:data-[state=open]:slide-in-from-right adm:inset-y-0 adm:right-0 adm:h-full adm:w-3/4 adm:border-l adm:sm:max-w-sm",o==="left"&&"adm:rounded-tr-lg adm:rounded-br-lg adm:data-[state=closed]:slide-out-to-left adm:data-[state=open]:slide-in-from-left adm:inset-y-0 adm:left-0 adm:h-full adm:w-3/4 adm:border-r adm:sm:max-w-sm",o==="top"&&"adm:rounded-br-lg adm:rounded-bl-lg adm:data-[state=closed]:slide-out-to-top adm:data-[state=open]:slide-in-from-top adm:inset-x-0 adm:top-0 adm:h-auto adm:border-b",o==="bottom"&&"adm:rounded-tr-lg adm:rounded-tl-lg adm:data-[state=closed]:slide-out-to-bottom adm:data-[state=open]:slide-in-from-bottom adm:inset-x-0 adm:bottom-0 adm:h-auto adm:border-t",t),...n,children:[a,m&&e.jsxRuntimeExports.jsxs(d.Close,{className:"adm:ring-offset-background adm:focus:ring-ring adm:data-[state=open]:bg-secondary adm:absolute adm:top-4 adm:right-4 adm:rounded-xs adm:opacity-70 adm:transition-opacity adm:hover:opacity-100 adm:focus:ring-2 adm:focus:ring-offset-2 adm:focus:outline-hidden adm:disabled:pointer-events-none",children:[e.jsxRuntimeExports.jsx(r.X,{className:"adm:size-4"}),e.jsxRuntimeExports.jsx("span",{className:"adm:sr-only",children:"Close"})]})]})]})}function p({className:t,...a}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"sheet-header",className:s.cn("adm:flex adm:flex-col adm:gap-1.5 adm:p-4",t),...a})}function f({className:t,...a}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"sheet-footer",className:s.cn("adm:mt-auto adm:flex adm:flex-col adm:gap-2 adm:p-4",t),...a})}function g({className:t,...a}){return e.jsxRuntimeExports.jsx(d.Title,{"data-slot":"sheet-title",className:s.cn("adm:text-foreground adm:font-semibold",t),...a})}function j({className:t,...a}){return e.jsxRuntimeExports.jsx(d.Description,{"data-slot":"sheet-description",className:s.cn("adm:text-muted-foreground adm:text-sm",t),...a})}exports.Sheet=i;exports.SheetClose=u;exports.SheetContent=h;exports.SheetDescription=j;exports.SheetFooter=f;exports.SheetHeader=p;exports.SheetTitle=g;exports.SheetTrigger=l;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { j as t } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { R as n, b as l, C as s, a as i, T as u, D as c, P as f, O as h } from "./index-B-NyefE0.js";
|
|
4
|
+
import { c as d } from "./utils-CRiPKpXj.js";
|
|
5
|
+
import { X as g } from "./x-Dl66o_vF.js";
|
|
6
|
+
function v({ ...a }) {
|
|
7
|
+
return /* @__PURE__ */ t.jsx(n, { "data-slot": "sheet", ...a });
|
|
8
|
+
}
|
|
9
|
+
function C({
|
|
10
|
+
...a
|
|
11
|
+
}) {
|
|
12
|
+
return /* @__PURE__ */ t.jsx(l, { "data-slot": "sheet-trigger", ...a });
|
|
13
|
+
}
|
|
14
|
+
function w({
|
|
15
|
+
...a
|
|
16
|
+
}) {
|
|
17
|
+
return /* @__PURE__ */ t.jsx(s, { "data-slot": "sheet-close", ...a });
|
|
18
|
+
}
|
|
19
|
+
function p({
|
|
20
|
+
...a
|
|
21
|
+
}) {
|
|
22
|
+
return /* @__PURE__ */ t.jsx(f, { "data-slot": "sheet-portal", ...a });
|
|
23
|
+
}
|
|
24
|
+
function x({
|
|
25
|
+
className: a,
|
|
26
|
+
...e
|
|
27
|
+
}) {
|
|
28
|
+
return /* @__PURE__ */ t.jsx(
|
|
29
|
+
h,
|
|
30
|
+
{
|
|
31
|
+
"data-slot": "sheet-overlay",
|
|
32
|
+
className: d(
|
|
33
|
+
"adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:fixed adm:inset-0 adm:z-50 adm:bg-black/50",
|
|
34
|
+
a
|
|
35
|
+
),
|
|
36
|
+
...e
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
function T({
|
|
41
|
+
className: a,
|
|
42
|
+
children: e,
|
|
43
|
+
side: o = "right",
|
|
44
|
+
showCloseButton: m = !0,
|
|
45
|
+
...r
|
|
46
|
+
}) {
|
|
47
|
+
return /* @__PURE__ */ t.jsxs(p, { children: [
|
|
48
|
+
/* @__PURE__ */ t.jsx(x, {}),
|
|
49
|
+
/* @__PURE__ */ t.jsxs(
|
|
50
|
+
i,
|
|
51
|
+
{
|
|
52
|
+
"data-slot": "sheet-content",
|
|
53
|
+
className: d(
|
|
54
|
+
"adm:bg-background adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:fixed adm:z-50 adm:flex adm:flex-col adm:gap-4 adm:shadow-lg adm:transition adm:ease-in-out adm:data-[state=closed]:duration-300 adm:data-[state=open]:duration-500",
|
|
55
|
+
o === "right" && "adm:rounded-tl-lg adm:rounded-bl-lg adm:data-[state=closed]:slide-out-to-right adm:data-[state=open]:slide-in-from-right adm:inset-y-0 adm:right-0 adm:h-full adm:w-3/4 adm:border-l adm:sm:max-w-sm",
|
|
56
|
+
o === "left" && "adm:rounded-tr-lg adm:rounded-br-lg adm:data-[state=closed]:slide-out-to-left adm:data-[state=open]:slide-in-from-left adm:inset-y-0 adm:left-0 adm:h-full adm:w-3/4 adm:border-r adm:sm:max-w-sm",
|
|
57
|
+
o === "top" && "adm:rounded-br-lg adm:rounded-bl-lg adm:data-[state=closed]:slide-out-to-top adm:data-[state=open]:slide-in-from-top adm:inset-x-0 adm:top-0 adm:h-auto adm:border-b",
|
|
58
|
+
o === "bottom" && "adm:rounded-tr-lg adm:rounded-tl-lg adm:data-[state=closed]:slide-out-to-bottom adm:data-[state=open]:slide-in-from-bottom adm:inset-x-0 adm:bottom-0 adm:h-auto adm:border-t",
|
|
59
|
+
a
|
|
60
|
+
),
|
|
61
|
+
...r,
|
|
62
|
+
children: [
|
|
63
|
+
e,
|
|
64
|
+
m && /* @__PURE__ */ t.jsxs(s, { className: "adm:ring-offset-background adm:focus:ring-ring adm:data-[state=open]:bg-secondary adm:absolute adm:top-4 adm:right-4 adm:rounded-xs adm:opacity-70 adm:transition-opacity adm:hover:opacity-100 adm:focus:ring-2 adm:focus:ring-offset-2 adm:focus:outline-hidden adm:disabled:pointer-events-none", children: [
|
|
65
|
+
/* @__PURE__ */ t.jsx(g, { className: "adm:size-4" }),
|
|
66
|
+
/* @__PURE__ */ t.jsx("span", { className: "adm:sr-only", children: "Close" })
|
|
67
|
+
] })
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
] });
|
|
72
|
+
}
|
|
73
|
+
function k({ className: a, ...e }) {
|
|
74
|
+
return /* @__PURE__ */ t.jsx(
|
|
75
|
+
"div",
|
|
76
|
+
{
|
|
77
|
+
"data-slot": "sheet-header",
|
|
78
|
+
className: d("adm:flex adm:flex-col adm:gap-1.5 adm:p-4", a),
|
|
79
|
+
...e
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
function z({ className: a, ...e }) {
|
|
84
|
+
return /* @__PURE__ */ t.jsx(
|
|
85
|
+
"div",
|
|
86
|
+
{
|
|
87
|
+
"data-slot": "sheet-footer",
|
|
88
|
+
className: d("adm:mt-auto adm:flex adm:flex-col adm:gap-2 adm:p-4", a),
|
|
89
|
+
...e
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
function D({
|
|
94
|
+
className: a,
|
|
95
|
+
...e
|
|
96
|
+
}) {
|
|
97
|
+
return /* @__PURE__ */ t.jsx(
|
|
98
|
+
u,
|
|
99
|
+
{
|
|
100
|
+
"data-slot": "sheet-title",
|
|
101
|
+
className: d("adm:text-foreground adm:font-semibold", a),
|
|
102
|
+
...e
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
function O({
|
|
107
|
+
className: a,
|
|
108
|
+
...e
|
|
109
|
+
}) {
|
|
110
|
+
return /* @__PURE__ */ t.jsx(
|
|
111
|
+
c,
|
|
112
|
+
{
|
|
113
|
+
"data-slot": "sheet-description",
|
|
114
|
+
className: d("adm:text-muted-foreground adm:text-sm", a),
|
|
115
|
+
...e
|
|
116
|
+
}
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
export {
|
|
120
|
+
v as S,
|
|
121
|
+
C as a,
|
|
122
|
+
w as b,
|
|
123
|
+
T as c,
|
|
124
|
+
k as d,
|
|
125
|
+
z as e,
|
|
126
|
+
D as f,
|
|
127
|
+
O as g
|
|
128
|
+
};
|
package/dist/sheet.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./sheet-0jRbqkzj.cjs");exports.Sheet=e.Sheet;exports.SheetClose=e.SheetClose;exports.SheetContent=e.SheetContent;exports.SheetDescription=e.SheetDescription;exports.SheetFooter=e.SheetFooter;exports.SheetHeader=e.SheetHeader;exports.SheetTitle=e.SheetTitle;exports.SheetTrigger=e.SheetTrigger;
|
package/dist/sheet.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { S as a, b as s, c as S, g as h, e as o, d as r, f as i, a as g } from "./sheet-RAbg4M5A.js";
|
|
2
|
+
export {
|
|
3
|
+
a as Sheet,
|
|
4
|
+
s as SheetClose,
|
|
5
|
+
S as SheetContent,
|
|
6
|
+
h as SheetDescription,
|
|
7
|
+
o as SheetFooter,
|
|
8
|
+
r as SheetHeader,
|
|
9
|
+
i as SheetTitle,
|
|
10
|
+
g as SheetTrigger
|
|
11
|
+
};
|
package/dist/sidebar.cjs
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./jsx-runtime-BB_1_6y_.cjs"),m=require("react"),l=require("./index-Ce3QBKyj.cjs"),i=require("./utils-DoxiiusW.cjs"),n=require("./sheet-0jRbqkzj.cjs"),b=require("./index-gO_QEiaK.cjs"),p=require("./index-BKbK2GzY.cjs"),h=require("./createLucideIcon-CAtnV-yz.cjs");function j(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 c=j(m);/**
|
|
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 f=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],S=h.createLucideIcon("menu",f);function g(e){const t=c.useCallback(o=>{const d=window.matchMedia(e);return d.addEventListener("change",o),()=>{d.removeEventListener("change",o)}},[e]),a=()=>window.matchMedia(e).matches,s=()=>{throw Error("useMediaQuery is a client-only hook")};return c.useSyncExternalStore(t,a,s)}const x=m.createContext({});function E({children:e}){const[t,a]=m.useState("auto"),s=g("(min-width: 1280px)");return r.jsxRuntimeExports.jsx(x.Provider,{value:{isXl:s,sidebarHeight:t,setSidebarHeight:a},children:r.jsxRuntimeExports.jsx("nav",{"data-slot":"sidebar",children:e})})}function R({className:e,children:t,...a}){const{isXl:s,setSidebarHeight:o}=u();return r.jsxRuntimeExports.jsx(l.Portal,{children:r.jsxRuntimeExports.jsxs("div",{ref:d=>{d&&o(s?"auto":`${d.clientHeight}px`)},"data-slot":"sidebar-content",className:i.cn(e,["adm:fixed adm:bg-sidebar-primary adm:text-sidebar-primary-foreground adm:xl:flex adm:xl:flex-col","adm:left-0 adm:top-0 adm:right-0","adm:xl:left-0 adm:xl:top-0 adm:xl:bottom-0 adm:xl:w-3xs adm:xl:h-auto"]),...a,children:[s&&t,r.jsxRuntimeExports.jsxs(n.Sheet,{children:[r.jsxRuntimeExports.jsxs("div",{className:"adm:flex adm:items-center adm:gap-4 adm:p-4 adm:xl:hidden",children:[r.jsxRuntimeExports.jsx("div",{"data-slot":"sidebar-topbar",className:"adm:w-full"}),r.jsxRuntimeExports.jsx(n.SheetTrigger,{asChild:!0,children:r.jsxRuntimeExports.jsx(S,{className:"adm:ml-auto adm:cursor-pointer"})})]}),r.jsxRuntimeExports.jsxs(n.SheetContent,{showCloseButton:!1,className:"adm:bg-sidebar-primary adm:text-sidebar-primary-foreground adm:border-sidebar-primary adm:rounded-none",children:[r.jsxRuntimeExports.jsx(b.VisuallyHidden,{children:r.jsxRuntimeExports.jsxs(n.SheetHeader,{children:[r.jsxRuntimeExports.jsx(n.SheetTitle,{children:"Sidebar"}),r.jsxRuntimeExports.jsx(n.SheetDescription,{children:"Sidebar"})]})}),t]})]})]})})}function y({className:e,children:t,...a}){const{sidebarHeight:s}=u();return r.jsxRuntimeExports.jsx("main",{"data-slot":"sidebar-inset",className:i.cn(e,"adm:xl:ml-[256px] adm:xl:mt-auto"),style:{marginTop:s!=="auto"?s:"auto"},...a,children:t})}function v({className:e,children:t,...a}){return r.jsxRuntimeExports.jsx("header",{"data-slot":"sidebar-header",className:i.cn(e,"adm:flex adm:flex-col adm:mt-12"),...a,children:t})}function w({className:e,children:t,...a}){return r.jsxRuntimeExports.jsx("footer",{"data-slot":"sidebar-footer",className:i.cn(e,"adm:mt-auto adm:mb-12 adm:flex adm:flex-col"),...a,children:t})}function M({className:e,children:t,...a}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"sidebar-menu",className:i.cn(e,"adm:flex adm:flex-col adm:gap-4 adm:overflow-y-auto adm:my-12 adm:py-1"),...a,children:t})}function C({asChild:e,className:t,...a}){const s=e?p.Slot:"button";return r.jsxRuntimeExports.jsx(s,{"data-slot":"sidebar-menu-item",className:i.cn(t,"adm:mx-4 adm:flex adm:gap-4 adm:items-center adm:p-4 adm:hover:bg-white/10 adm:rounded-xl adm:transition-all"),...a})}function u(){const e=m.useContext(x);if(!e)throw new Error("useSidebarContext must be used within a SidebarProvider");return e}exports.Sidebar=E;exports.SidebarContent=R;exports.SidebarFooter=w;exports.SidebarHeader=v;exports.SidebarInset=y;exports.SidebarMenu=M;exports.SidebarMenuItem=C;exports.useSidebarContext=u;
|
package/dist/sidebar.js
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { j as a } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
import { createContext as c, useState as u, useContext as x } from "react";
|
|
4
|
+
import { P as h } from "./index-yR-v1A4G.js";
|
|
5
|
+
import { c as s } from "./utils-CRiPKpXj.js";
|
|
6
|
+
import { S as b, a as f, c as p, d as S, f as g, g as j } from "./sheet-RAbg4M5A.js";
|
|
7
|
+
import { V as v } from "./index-P1sVIHE3.js";
|
|
8
|
+
import { S as w } from "./index-6oTEokEx.js";
|
|
9
|
+
import { c as y } from "./createLucideIcon-B_8CJpcQ.js";
|
|
10
|
+
/**
|
|
11
|
+
* @license lucide-react v0.546.0 - ISC
|
|
12
|
+
*
|
|
13
|
+
* This source code is licensed under the ISC license.
|
|
14
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
15
|
+
*/
|
|
16
|
+
const C = [
|
|
17
|
+
["path", { d: "M4 5h16", key: "1tepv9" }],
|
|
18
|
+
["path", { d: "M4 12h16", key: "1lakjw" }],
|
|
19
|
+
["path", { d: "M4 19h16", key: "1djgab" }]
|
|
20
|
+
], M = y("menu", C);
|
|
21
|
+
function N(e) {
|
|
22
|
+
const t = n.useCallback(
|
|
23
|
+
(i) => {
|
|
24
|
+
const o = window.matchMedia(e);
|
|
25
|
+
return o.addEventListener("change", i), () => {
|
|
26
|
+
o.removeEventListener("change", i);
|
|
27
|
+
};
|
|
28
|
+
},
|
|
29
|
+
[e]
|
|
30
|
+
), r = () => window.matchMedia(e).matches, d = () => {
|
|
31
|
+
throw Error("useMediaQuery is a client-only hook");
|
|
32
|
+
};
|
|
33
|
+
return n.useSyncExternalStore(t, r, d);
|
|
34
|
+
}
|
|
35
|
+
const m = c({});
|
|
36
|
+
function R({ children: e }) {
|
|
37
|
+
const [t, r] = u("auto"), d = N("(min-width: 1280px)");
|
|
38
|
+
return /* @__PURE__ */ a.jsx(m.Provider, { value: { isXl: d, sidebarHeight: t, setSidebarHeight: r }, children: /* @__PURE__ */ a.jsx("nav", { "data-slot": "sidebar", children: e }) });
|
|
39
|
+
}
|
|
40
|
+
function V({ className: e, children: t, ...r }) {
|
|
41
|
+
const { isXl: d, setSidebarHeight: i } = l();
|
|
42
|
+
return /* @__PURE__ */ a.jsx(h, { children: /* @__PURE__ */ a.jsxs(
|
|
43
|
+
"div",
|
|
44
|
+
{
|
|
45
|
+
ref: (o) => {
|
|
46
|
+
o && i(d ? "auto" : `${o.clientHeight}px`);
|
|
47
|
+
},
|
|
48
|
+
"data-slot": "sidebar-content",
|
|
49
|
+
className: s(e, [
|
|
50
|
+
"adm:fixed adm:bg-sidebar-primary adm:text-sidebar-primary-foreground adm:xl:flex adm:xl:flex-col",
|
|
51
|
+
"adm:left-0 adm:top-0 adm:right-0",
|
|
52
|
+
"adm:xl:left-0 adm:xl:top-0 adm:xl:bottom-0 adm:xl:w-3xs adm:xl:h-auto"
|
|
53
|
+
]),
|
|
54
|
+
...r,
|
|
55
|
+
children: [
|
|
56
|
+
d && t,
|
|
57
|
+
/* @__PURE__ */ a.jsxs(b, { children: [
|
|
58
|
+
/* @__PURE__ */ a.jsxs("div", { className: "adm:flex adm:items-center adm:gap-4 adm:p-4 adm:xl:hidden", children: [
|
|
59
|
+
/* @__PURE__ */ a.jsx("div", { "data-slot": "sidebar-topbar", className: "adm:w-full" }),
|
|
60
|
+
/* @__PURE__ */ a.jsx(f, { asChild: !0, children: /* @__PURE__ */ a.jsx(M, { className: "adm:ml-auto adm:cursor-pointer" }) })
|
|
61
|
+
] }),
|
|
62
|
+
/* @__PURE__ */ a.jsxs(p, { showCloseButton: !1, className: "adm:bg-sidebar-primary adm:text-sidebar-primary-foreground adm:border-sidebar-primary adm:rounded-none", children: [
|
|
63
|
+
/* @__PURE__ */ a.jsx(v, { children: /* @__PURE__ */ a.jsxs(S, { children: [
|
|
64
|
+
/* @__PURE__ */ a.jsx(g, { children: "Sidebar" }),
|
|
65
|
+
/* @__PURE__ */ a.jsx(j, { children: "Sidebar" })
|
|
66
|
+
] }) }),
|
|
67
|
+
t
|
|
68
|
+
] })
|
|
69
|
+
] })
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
) });
|
|
73
|
+
}
|
|
74
|
+
function X({ className: e, children: t, ...r }) {
|
|
75
|
+
const { sidebarHeight: d } = l();
|
|
76
|
+
return /* @__PURE__ */ a.jsx(
|
|
77
|
+
"main",
|
|
78
|
+
{
|
|
79
|
+
"data-slot": "sidebar-inset",
|
|
80
|
+
className: s(e, "adm:xl:ml-[256px] adm:xl:mt-auto"),
|
|
81
|
+
style: { marginTop: d !== "auto" ? d : "auto" },
|
|
82
|
+
...r,
|
|
83
|
+
children: t
|
|
84
|
+
}
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
function _({ className: e, children: t, ...r }) {
|
|
88
|
+
return /* @__PURE__ */ a.jsx(
|
|
89
|
+
"header",
|
|
90
|
+
{
|
|
91
|
+
"data-slot": "sidebar-header",
|
|
92
|
+
className: s(e, "adm:flex adm:flex-col adm:mt-12"),
|
|
93
|
+
...r,
|
|
94
|
+
children: t
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
function B({ className: e, children: t, ...r }) {
|
|
99
|
+
return /* @__PURE__ */ a.jsx(
|
|
100
|
+
"footer",
|
|
101
|
+
{
|
|
102
|
+
"data-slot": "sidebar-footer",
|
|
103
|
+
className: s(e, "adm:mt-auto adm:mb-12 adm:flex adm:flex-col"),
|
|
104
|
+
...r,
|
|
105
|
+
children: t
|
|
106
|
+
}
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
function D({ className: e, children: t, ...r }) {
|
|
110
|
+
return /* @__PURE__ */ a.jsx(
|
|
111
|
+
"div",
|
|
112
|
+
{
|
|
113
|
+
"data-slot": "sidebar-menu",
|
|
114
|
+
className: s(e, "adm:flex adm:flex-col adm:gap-4 adm:overflow-y-auto adm:my-12 adm:py-1"),
|
|
115
|
+
...r,
|
|
116
|
+
children: t
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
function F({ asChild: e, className: t, ...r }) {
|
|
121
|
+
const d = e ? w : "button";
|
|
122
|
+
return /* @__PURE__ */ a.jsx(d, { "data-slot": "sidebar-menu-item", className: s(t, "adm:mx-4 adm:flex adm:gap-4 adm:items-center adm:p-4 adm:hover:bg-white/10 adm:rounded-xl adm:transition-all"), ...r });
|
|
123
|
+
}
|
|
124
|
+
function l() {
|
|
125
|
+
const e = x(m);
|
|
126
|
+
if (!e)
|
|
127
|
+
throw new Error("useSidebarContext must be used within a SidebarProvider");
|
|
128
|
+
return e;
|
|
129
|
+
}
|
|
130
|
+
export {
|
|
131
|
+
R as Sidebar,
|
|
132
|
+
V as SidebarContent,
|
|
133
|
+
B as SidebarFooter,
|
|
134
|
+
_ as SidebarHeader,
|
|
135
|
+
X as SidebarInset,
|
|
136
|
+
D as SidebarMenu,
|
|
137
|
+
F as SidebarMenuItem,
|
|
138
|
+
l as useSidebarContext
|
|
139
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./jsx-runtime-BB_1_6y_.cjs"),s=require("./utils-DoxiiusW.cjs");function o({className:e,...t}){return n.jsxRuntimeExports.jsx("div",{"data-slot":"skeleton",className:s.cn("adm:bg-accent adm:animate-pulse adm:rounded-md",e),...t})}exports.Skeleton=o;
|
package/dist/skeleton.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { j as e } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
+
import { c as m } from "./utils-CRiPKpXj.js";
|
|
3
|
+
function s({ className: t, ...a }) {
|
|
4
|
+
return /* @__PURE__ */ e.jsx(
|
|
5
|
+
"div",
|
|
6
|
+
{
|
|
7
|
+
"data-slot": "skeleton",
|
|
8
|
+
className: m("adm:bg-accent adm:animate-pulse adm:rounded-md", t),
|
|
9
|
+
...a
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
s as Skeleton
|
|
15
|
+
};
|
package/dist/slider.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./jsx-runtime-BB_1_6y_.cjs"),ce=require("react"),F=require("./index-C8ni3LLa.cjs"),P=require("./index-BWaO7kQK.cjs"),_=require("./index-BKbK2GzY.cjs"),ue=require("./index-cwZN7ZY3.cjs"),Y=require("./index-D7hQvndv.cjs"),me=require("./index-DYxWvftI.cjs"),fe=require("./index-bSPhqlcX.cjs"),I=require("./index-DQvx1rG_.cjs"),N=require("./utils-DoxiiusW.cjs");function pe(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const l=pe(ce);var X=["PageUp","PageDown"],G=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],W={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},C="Slider",[V,xe,Se]=Y.createCollection(C),[J]=ue.createContextScope(C,[Se]),[he,T]=J(C),Q=l.forwardRef((e,t)=>{const{name:n,min:o=0,max:r=100,step:d=1,orientation:i="horizontal",disabled:a=!1,minStepsBetweenThumbs:u=0,defaultValue:S=[o],value:h,onValueChange:s=()=>{},onValueCommit:m=()=>{},inverted:v=!1,form:w,...g}=e,p=l.useRef(new Set),f=l.useRef(0),b=i==="horizontal"?ge:ve,[x=[],M]=P.useControllableState({prop:h,defaultProp:S,onChange:R=>{[...p.current][f.current]?.focus(),s(R)}}),B=l.useRef(x);function k(R){const E=ye(x,R);A(R,E)}function de(R){A(R,f.current)}function le(){const R=B.current[f.current];x[f.current]!==R&&m(x)}function A(R,E,{commit:z}={commit:!1}){const L=_e(d),H=Ce(Math.round((R-o)/d)*d+o,L),K=F.clamp(H,[o,r]);M((D=[])=>{const y=we(D,K,E);if(De(y,u*d)){f.current=y.indexOf(K);const U=String(y)!==String(D);return U&&z&&m(y),U?y:D}else return D})}return c.jsxRuntimeExports.jsx(he,{scope:e.__scopeSlider,name:n,disabled:a,min:o,max:r,valueIndexToChangeRef:f,thumbs:p.current,values:x,orientation:i,form:w,children:c.jsxRuntimeExports.jsx(V.Provider,{scope:e.__scopeSlider,children:c.jsxRuntimeExports.jsx(V.Slot,{scope:e.__scopeSlider,children:c.jsxRuntimeExports.jsx(b,{"aria-disabled":a,"data-disabled":a?"":void 0,...g,ref:t,onPointerDown:P.composeEventHandlers(g.onPointerDown,()=>{a||(B.current=x)}),min:o,max:r,inverted:v,onSlideStart:a?void 0:k,onSlideMove:a?void 0:de,onSlideEnd:a?void 0:le,onHomeKeyDown:()=>!a&&A(o,0,{commit:!0}),onEndKeyDown:()=>!a&&A(r,x.length-1,{commit:!0}),onStepKeyDown:({event:R,direction:E})=>{if(!a){const H=X.includes(R.key)||R.shiftKey&&G.includes(R.key)?10:1,K=f.current,D=x[K],y=d*H*E;A(D+y,K,{commit:!0})}}})})})})});Q.displayName=C;var[Z,ee]=J(C,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ge=l.forwardRef((e,t)=>{const{min:n,max:o,dir:r,inverted:d,onSlideStart:i,onSlideMove:a,onSlideEnd:u,onStepKeyDown:S,...h}=e,[s,m]=l.useState(null),v=_.useComposedRefs(t,b=>m(b)),w=l.useRef(void 0),g=Y.useDirection(r),p=g==="ltr",f=p&&!d||!p&&d;function j(b){const x=w.current||s.getBoundingClientRect(),M=[0,x.width],k=q(M,f?[n,o]:[o,n]);return w.current=x,k(b-x.left)}return c.jsxRuntimeExports.jsx(Z,{scope:e.__scopeSlider,startEdge:f?"left":"right",endEdge:f?"right":"left",direction:f?1:-1,size:"width",children:c.jsxRuntimeExports.jsx(te,{dir:g,"data-orientation":"horizontal",...h,ref:v,style:{...h.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:b=>{const x=j(b.clientX);i?.(x)},onSlideMove:b=>{const x=j(b.clientX);a?.(x)},onSlideEnd:()=>{w.current=void 0,u?.()},onStepKeyDown:b=>{const M=W[f?"from-left":"from-right"].includes(b.key);S?.({event:b,direction:M?-1:1})}})})}),ve=l.forwardRef((e,t)=>{const{min:n,max:o,inverted:r,onSlideStart:d,onSlideMove:i,onSlideEnd:a,onStepKeyDown:u,...S}=e,h=l.useRef(null),s=_.useComposedRefs(t,h),m=l.useRef(void 0),v=!r;function w(g){const p=m.current||h.current.getBoundingClientRect(),f=[0,p.height],b=q(f,v?[o,n]:[n,o]);return m.current=p,b(g-p.top)}return c.jsxRuntimeExports.jsx(Z,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:c.jsxRuntimeExports.jsx(te,{"data-orientation":"vertical",...S,ref:s,style:{...S.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const p=w(g.clientY);d?.(p)},onSlideMove:g=>{const p=w(g.clientY);i?.(p)},onSlideEnd:()=>{m.current=void 0,a?.()},onStepKeyDown:g=>{const f=W[v?"from-bottom":"from-top"].includes(g.key);u?.({event:g,direction:f?-1:1})}})})}),te=l.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:o,onSlideMove:r,onSlideEnd:d,onHomeKeyDown:i,onEndKeyDown:a,onStepKeyDown:u,...S}=e,h=T(C,n);return c.jsxRuntimeExports.jsx(I.Primitive.span,{...S,ref:t,onKeyDown:P.composeEventHandlers(e.onKeyDown,s=>{s.key==="Home"?(i(s),s.preventDefault()):s.key==="End"?(a(s),s.preventDefault()):X.concat(G).includes(s.key)&&(u(s),s.preventDefault())}),onPointerDown:P.composeEventHandlers(e.onPointerDown,s=>{const m=s.target;m.setPointerCapture(s.pointerId),s.preventDefault(),h.thumbs.has(m)?m.focus():o(s)}),onPointerMove:P.composeEventHandlers(e.onPointerMove,s=>{s.target.hasPointerCapture(s.pointerId)&&r(s)}),onPointerUp:P.composeEventHandlers(e.onPointerUp,s=>{const m=s.target;m.hasPointerCapture(s.pointerId)&&(m.releasePointerCapture(s.pointerId),d(s))})})}),ne="SliderTrack",oe=l.forwardRef((e,t)=>{const{__scopeSlider:n,...o}=e,r=T(ne,n);return c.jsxRuntimeExports.jsx(I.Primitive.span,{"data-disabled":r.disabled?"":void 0,"data-orientation":r.orientation,...o,ref:t})});oe.displayName=ne;var O="SliderRange",re=l.forwardRef((e,t)=>{const{__scopeSlider:n,...o}=e,r=T(O,n),d=ee(O,n),i=l.useRef(null),a=_.useComposedRefs(t,i),u=r.values.length,S=r.values.map(m=>ae(m,r.min,r.max)),h=u>1?Math.min(...S):0,s=100-Math.max(...S);return c.jsxRuntimeExports.jsx(I.Primitive.span,{"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,...o,ref:a,style:{...e.style,[d.startEdge]:h+"%",[d.endEdge]:s+"%"}})});re.displayName=O;var $="SliderThumb",ie=l.forwardRef((e,t)=>{const n=xe(e.__scopeSlider),[o,r]=l.useState(null),d=_.useComposedRefs(t,a=>r(a)),i=l.useMemo(()=>o?n().findIndex(a=>a.ref.current===o):-1,[n,o]);return c.jsxRuntimeExports.jsx(be,{...e,ref:d,index:i})}),be=l.forwardRef((e,t)=>{const{__scopeSlider:n,index:o,name:r,...d}=e,i=T($,n),a=ee($,n),[u,S]=l.useState(null),h=_.useComposedRefs(t,j=>S(j)),s=u?i.form||!!u.closest("form"):!0,m=fe.useSize(u),v=i.values[o],w=v===void 0?0:ae(v,i.min,i.max),g=Ee(o,i.values.length),p=m?.[a.size],f=p?Pe(p,w,a.direction):0;return l.useEffect(()=>{if(u)return i.thumbs.add(u),()=>{i.thumbs.delete(u)}},[u,i.thumbs]),c.jsxRuntimeExports.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${w}% + ${f}px)`},children:[c.jsxRuntimeExports.jsx(V.ItemSlot,{scope:e.__scopeSlider,children:c.jsxRuntimeExports.jsx(I.Primitive.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":i.min,"aria-valuenow":v,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...d,ref:h,style:v===void 0?{display:"none"}:e.style,onFocus:P.composeEventHandlers(e.onFocus,()=>{i.valueIndexToChangeRef.current=o})})}),s&&c.jsxRuntimeExports.jsx(se,{name:r??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:v},o)]})});ie.displayName=$;var Re="RadioBubbleInput",se=l.forwardRef(({__scopeSlider:e,value:t,...n},o)=>{const r=l.useRef(null),d=_.useComposedRefs(r,o),i=me.usePrevious(t);return l.useEffect(()=>{const a=r.current;if(!a)return;const u=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(u,"value").set;if(i!==t&&h){const s=new Event("input",{bubbles:!0});h.call(a,t),a.dispatchEvent(s)}},[i,t]),c.jsxRuntimeExports.jsx(I.Primitive.input,{style:{display:"none"},...n,ref:d,defaultValue:t})});se.displayName=Re;function we(e=[],t,n){const o=[...e];return o[n]=t,o.sort((r,d)=>r-d)}function ae(e,t,n){const d=100/(n-t)*(e-t);return F.clamp(d,[0,100])}function Ee(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function ye(e,t){if(e.length===1)return 0;const n=e.map(r=>Math.abs(r-t)),o=Math.min(...n);return n.indexOf(o)}function Pe(e,t,n){const o=e/2,d=q([0,50],[0,o]);return(o-d(t)*n)*n}function je(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function De(e,t){if(t>0){const n=je(e);return Math.min(...n)>=t}return!0}function q(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(n-e[0])}}function _e(e){return(String(e).split(".")[1]||"").length}function Ce(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var Me=Q,Ae=oe,Ke=re,Ie=ie;function Te({className:e,defaultValue:t,value:n,min:o=0,max:r=100,theme:d,...i}){const a=l.useMemo(()=>Array.isArray(n)?n:Array.isArray(t)?t:[o,r],[n,t,o,r]);return c.jsxRuntimeExports.jsxs(Me,{"data-slot":"slider","data-theme":d,defaultValue:t,value:n,min:o,max:r,className:N.cn("adm:relative adm:flex adm:w-full adm:touch-none adm:items-center adm:select-none adm:data-[disabled]:opacity-50 adm:data-[orientation=vertical]:h-full adm:data-[orientation=vertical]:min-h-44 adm:data-[orientation=vertical]:w-auto adm:data-[orientation=vertical]:flex-col",e),...i,children:[c.jsxRuntimeExports.jsx(Ae,{"data-slot":"slider-track",className:N.cn("adm:bg-muted adm:relative adm:grow adm:overflow-hidden adm:rounded-full adm:data-[orientation=horizontal]:h-1.5 adm:data-[orientation=horizontal]:w-full adm:data-[orientation=vertical]:h-full adm:data-[orientation=vertical]:w-1.5"),children:c.jsxRuntimeExports.jsx(Ke,{"data-slot":"slider-range",className:N.cn("adm:bg-primary adm:absolute adm:data-[orientation=horizontal]:h-full adm:data-[orientation=vertical]:w-full")})}),Array.from({length:a.length},(u,S)=>c.jsxRuntimeExports.jsx(Ie,{"data-slot":"slider-thumb",className:"adm:border-primary adm:ring-ring/50 adm:block adm:size-4 adm:shrink-0 adm:rounded-full adm:border adm:bg-white adm:shadow-sm adm:transition-[color,box-shadow] adm:hover:ring-4 adm:focus-visible:ring-4 adm:focus-visible:outline-hidden adm:disabled:pointer-events-none adm:disabled:opacity-50"},S))]})}exports.Slider=Te;
|