@adamosuiteservices/ui 2.9.15 → 2.10.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/dist/accordion-rounded.cjs +12 -17
- package/dist/accordion-rounded.js +37 -46
- package/dist/accordion.cjs +8 -7
- package/dist/accordion.js +19 -17
- package/dist/alert.cjs +7 -3
- package/dist/alert.js +14 -10
- package/dist/avatar.cjs +2 -0
- package/dist/avatar.js +42 -40
- package/dist/badge.cjs +9 -2
- package/dist/badge.js +19 -12
- package/dist/breadcrumb.cjs +7 -3
- package/dist/breadcrumb.js +30 -24
- package/dist/{button-B7ZP4LZN.js → button-CUNnLccZ.js} +11 -6
- package/dist/{button-D-qFRXiM.cjs → button-CxGyLoeN.cjs} +7 -2
- package/dist/button-group.cjs +2 -0
- package/dist/button-group.js +15 -13
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/calendar.cjs +8 -6
- package/dist/calendar.js +507 -492
- package/dist/card.cjs +9 -4
- package/dist/card.js +8 -3
- package/dist/checkbox-CFGlO5wt.cjs +22 -0
- package/dist/{checkbox-DhBcmKze.js → checkbox-DsN1IQGA.js} +70 -68
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/combobox.cjs +10 -13
- package/dist/combobox.js +90 -99
- package/dist/components/ui/icon/icon.d.ts +1 -3
- package/dist/components/ui/icon/icon.stories.d.ts +0 -5
- package/dist/components/ui/spinner/spinner.d.ts +1 -1
- package/dist/components/ui/tooltip/tooltip.stories.d.ts +0 -1
- package/dist/context-menu.cjs +10 -8
- package/dist/context-menu.js +126 -120
- package/dist/custom-layered-styles.css +1 -1
- package/dist/dialog.cjs +10 -7
- package/dist/dialog.js +43 -40
- package/dist/dropdown-menu.cjs +25 -10
- package/dist/dropdown-menu.js +179 -166
- package/dist/icon-D0vVkV-A.js +35 -0
- package/dist/icon-SWksUOv5.cjs +6 -0
- package/dist/icon.cjs +1 -1
- package/dist/icon.js +1 -1
- package/dist/icons.css +1 -1
- package/dist/input-group.cjs +14 -6
- package/dist/input-group.js +25 -17
- package/dist/kbd.cjs +3 -3
- package/dist/kbd.js +1 -0
- package/dist/pagination.cjs +4 -4
- package/dist/pagination.js +41 -43
- package/dist/radio-group.cjs +5 -5
- package/dist/radio-group.js +44 -42
- package/dist/radius.css +1 -1
- package/dist/select.cjs +12 -13
- package/dist/select.js +182 -187
- package/dist/{sheet-Q3dBOQG-.js → sheet-DM7b3ckK.js} +18 -18
- package/dist/{sheet-CGahUP7F.cjs → sheet-DfRu4ByS.cjs} +4 -4
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +1 -1
- package/dist/sidebar.cjs +6 -11
- package/dist/sidebar.js +38 -49
- package/dist/spinner.cjs +1 -6
- package/dist/spinner.js +10 -16
- package/dist/styles.css +1 -1
- package/dist/tabs-underline.cjs +6 -3
- package/dist/tabs-underline.js +8 -5
- package/dist/tabs.cjs +6 -3
- package/dist/tabs.js +8 -5
- package/dist/toggle.cjs +5 -2
- package/dist/toggle.js +14 -11
- package/docs/components/layout/sidebar.md +18 -23
- package/docs/components/ui/accordion-rounded.md +584 -583
- package/docs/components/ui/accordion.md +3 -1
- package/docs/components/ui/alert.md +650 -671
- package/docs/components/ui/avatar.md +587 -588
- package/docs/components/ui/badge.md +1019 -1024
- package/docs/components/ui/breadcrumb.md +14 -14
- package/docs/components/ui/button-group.md +69 -87
- package/docs/components/ui/button.md +17 -17
- package/docs/components/ui/calendar.md +6 -6
- package/docs/components/ui/card.md +21 -27
- package/docs/components/ui/collapsible.md +16 -13
- package/docs/components/ui/combobox.md +14 -14
- package/docs/components/ui/command.md +6 -6
- package/docs/components/ui/context-menu.md +23 -23
- package/docs/components/ui/dialog.md +16 -16
- package/docs/components/ui/dropdown-menu.md +44 -66
- package/docs/components/ui/hover-card.md +5 -5
- package/docs/components/ui/icon.md +87 -88
- package/docs/components/ui/input-group.md +523 -509
- package/docs/components/ui/kbd.md +8 -8
- package/docs/components/ui/label.md +5 -5
- package/docs/components/ui/pagination.md +5 -5
- package/docs/components/ui/popover.md +14 -14
- package/docs/components/ui/progress.md +2 -2
- package/docs/components/ui/radio-group.md +2 -2
- package/docs/components/ui/select.md +6 -6
- package/docs/components/ui/spinner.md +15 -15
- package/docs/components/ui/switch.md +15 -9
- package/docs/components/ui/tabs-underline.md +4 -4
- package/docs/components/ui/tabs.md +5 -5
- package/docs/components/ui/toggle.md +17 -23
- package/docs/components/ui/tooltip.md +7 -10
- package/package.json +1 -1
- package/dist/check-CLxNVljQ.cjs +0 -6
- package/dist/check-Ci0GjV-B.js +0 -11
- package/dist/checkbox-CdnZ8VFJ.cjs +0 -21
- package/dist/chevron-down-BqEHzml5.cjs +0 -6
- package/dist/chevron-down-CpVS2Z7w.js +0 -11
- package/dist/chevron-left-B8QsBNvc.cjs +0 -6
- package/dist/chevron-left-Eal-WYLp.js +0 -11
- package/dist/chevron-right-BpzggHsr.cjs +0 -6
- package/dist/chevron-right-Cnc2tB4-.js +0 -11
- package/dist/circle-CX7JIirj.cjs +0 -6
- package/dist/circle-DYv-7Qb9.js +0 -11
- package/dist/createLucideIcon-B_8CJpcQ.js +0 -94
- package/dist/createLucideIcon-CAtnV-yz.cjs +0 -21
- package/dist/ellipsis-CryjZKZn.js +0 -15
- package/dist/ellipsis-Ct9VTDOG.cjs +0 -6
- package/dist/icon-DTx6Y_mx.cjs +0 -6
- package/dist/icon-DmU_SEHC.js +0 -36
- package/dist/minus-C0pHPx21.cjs +0 -6
- package/dist/minus-DE-onYs2.js +0 -11
- package/dist/x-CBKgg4YL.cjs +0 -6
- package/dist/x-Dl66o_vF.js +0 -14
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
-
import { R as
|
|
2
|
+
import { R as r, T as l, C as s, a as i, b as u, D as c, P as f, O as h } from "./index-DniCthJA.js";
|
|
3
|
+
import { I as g } from "./icon-D0vVkV-A.js";
|
|
3
4
|
import { c as d } from "./index-CRiPKpXj.js";
|
|
4
5
|
import "react";
|
|
5
|
-
import { X as g } from "./x-Dl66o_vF.js";
|
|
6
6
|
function v({ ...a }) {
|
|
7
|
-
return /* @__PURE__ */ t.jsx(
|
|
7
|
+
return /* @__PURE__ */ t.jsx(r, { "data-slot": "sheet", ...a });
|
|
8
8
|
}
|
|
9
9
|
function C({
|
|
10
10
|
...a
|
|
@@ -16,12 +16,12 @@ function w({
|
|
|
16
16
|
}) {
|
|
17
17
|
return /* @__PURE__ */ t.jsx(s, { "data-slot": "sheet-close", ...a });
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function x({
|
|
20
20
|
...a
|
|
21
21
|
}) {
|
|
22
22
|
return /* @__PURE__ */ t.jsx(f, { "data-slot": "sheet-portal", ...a });
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function p({
|
|
25
25
|
className: a,
|
|
26
26
|
...e
|
|
27
27
|
}) {
|
|
@@ -46,10 +46,10 @@ function T({
|
|
|
46
46
|
children: e,
|
|
47
47
|
side: o = "right",
|
|
48
48
|
showCloseButton: m = !0,
|
|
49
|
-
...
|
|
49
|
+
...n
|
|
50
50
|
}) {
|
|
51
|
-
return /* @__PURE__ */ t.jsxs(
|
|
52
|
-
/* @__PURE__ */ t.jsx(
|
|
51
|
+
return /* @__PURE__ */ t.jsxs(x, { children: [
|
|
52
|
+
/* @__PURE__ */ t.jsx(p, {}),
|
|
53
53
|
/* @__PURE__ */ t.jsxs(
|
|
54
54
|
i,
|
|
55
55
|
{
|
|
@@ -90,15 +90,15 @@ function T({
|
|
|
90
90
|
`,
|
|
91
91
|
a
|
|
92
92
|
),
|
|
93
|
-
...
|
|
93
|
+
...n,
|
|
94
94
|
children: [
|
|
95
95
|
e,
|
|
96
96
|
m && /* @__PURE__ */ t.jsxs(
|
|
97
97
|
s,
|
|
98
98
|
{
|
|
99
99
|
className: `
|
|
100
|
-
adm:absolute adm:top-4 adm:right-4 adm:
|
|
101
|
-
adm:ring-offset-background adm:transition-opacity
|
|
100
|
+
adm:absolute adm:top-4 adm:right-4 adm:flex adm:rounded-xs
|
|
101
|
+
adm:opacity-70 adm:ring-offset-background adm:transition-opacity
|
|
102
102
|
adm:hover:opacity-100
|
|
103
103
|
adm:focus:ring-2 adm:focus:ring-ring adm:focus:ring-offset-2
|
|
104
104
|
adm:focus:outline-hidden
|
|
@@ -106,7 +106,7 @@ function T({
|
|
|
106
106
|
adm:data-[state=open]:bg-secondary
|
|
107
107
|
`,
|
|
108
108
|
children: [
|
|
109
|
-
/* @__PURE__ */ t.jsx(g, { className: "adm:
|
|
109
|
+
/* @__PURE__ */ t.jsx(g, { symbol: "close", className: "adm:text-lg" }),
|
|
110
110
|
/* @__PURE__ */ t.jsx("span", { className: "adm:sr-only", children: "Close" })
|
|
111
111
|
]
|
|
112
112
|
}
|
|
@@ -126,7 +126,7 @@ function k({ className: a, ...e }) {
|
|
|
126
126
|
}
|
|
127
127
|
);
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function D({ className: a, ...e }) {
|
|
130
130
|
return /* @__PURE__ */ t.jsx(
|
|
131
131
|
"div",
|
|
132
132
|
{
|
|
@@ -136,7 +136,7 @@ function z({ className: a, ...e }) {
|
|
|
136
136
|
}
|
|
137
137
|
);
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function O({
|
|
140
140
|
className: a,
|
|
141
141
|
...e
|
|
142
142
|
}) {
|
|
@@ -149,7 +149,7 @@ function D({
|
|
|
149
149
|
}
|
|
150
150
|
);
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function P({
|
|
153
153
|
className: a,
|
|
154
154
|
...e
|
|
155
155
|
}) {
|
|
@@ -168,7 +168,7 @@ export {
|
|
|
168
168
|
w as b,
|
|
169
169
|
T as c,
|
|
170
170
|
k as d,
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
171
|
+
D as e,
|
|
172
|
+
O as f,
|
|
173
|
+
P as g
|
|
174
174
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("./jsx-runtime-BB_1_6y_.cjs"),d=require("./index-BFyr34mw.cjs"),
|
|
1
|
+
"use strict";const e=require("./jsx-runtime-BB_1_6y_.cjs"),d=require("./index-BFyr34mw.cjs"),r=require("./icon-SWksUOv5.cjs"),s=require("./index-DoxiiusW.cjs");require("react");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(`
|
|
2
2
|
adm:fixed adm:inset-0 adm:z-50 adm:bg-black/50
|
|
3
3
|
adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0
|
|
4
4
|
adm:data-[state=open]:animate-in adm:data-[state=open]:fade-in-0
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
adm:data-[state=closed]:slide-out-to-bottom
|
|
32
32
|
adm:data-[state=open]:slide-in-from-bottom
|
|
33
33
|
`,t),...n,children:[a,m&&e.jsxRuntimeExports.jsxs(d.Close,{className:`
|
|
34
|
-
adm:absolute adm:top-4 adm:right-4 adm:
|
|
35
|
-
adm:ring-offset-background adm:transition-opacity
|
|
34
|
+
adm:absolute adm:top-4 adm:right-4 adm:flex adm:rounded-xs
|
|
35
|
+
adm:opacity-70 adm:ring-offset-background adm:transition-opacity
|
|
36
36
|
adm:hover:opacity-100
|
|
37
37
|
adm:focus:ring-2 adm:focus:ring-ring adm:focus:ring-offset-2
|
|
38
38
|
adm:focus:outline-hidden
|
|
39
39
|
adm:disabled:pointer-events-none
|
|
40
40
|
adm:data-[state=open]:bg-secondary
|
|
41
|
-
`,children:[e.jsxRuntimeExports.jsx(r.
|
|
41
|
+
`,children:[e.jsxRuntimeExports.jsx(r.Icon,{symbol:"close",className:"adm:text-lg"}),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:font-semibold adm:text-foreground",t),...a})}function j({className:t,...a}){return e.jsxRuntimeExports.jsx(d.Description,{"data-slot":"sheet-description",className:s.cn("adm:text-sm adm:text-muted-foreground",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;
|
package/dist/sheet.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./sheet-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./sheet-DfRu4ByS.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
CHANGED
package/dist/sidebar.cjs
CHANGED
|
@@ -1,24 +1,19 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
* @license lucide-react v0.546.0 - ISC
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the ISC license.
|
|
5
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const E=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],y=j.createLucideIcon("menu",E);function R(e){const t=x.useCallback(i=>{const o=window.matchMedia(e);return o.addEventListener("change",i),()=>{o.removeEventListener("change",i)}},[e]),a=()=>window.matchMedia(e).matches,n=()=>{throw Error("useMediaQuery is a client-only hook")};return x.useSyncExternalStore(t,a,n)}const b=m.createContext({});function w({children:e}){const[t,a]=m.useState(!1),[n,i]=m.useState("auto"),o=R("(min-width: 1280px)");return r.jsxRuntimeExports.jsx(b.Provider,{value:{isXl:o,sidebarHeight:n,setSidebarHeight:i,sheetOpen:t,setSheetOpen:a},children:r.jsxRuntimeExports.jsx("nav",{"data-slot":"sidebar",children:e})})}function v({className:e,children:t,...a}){const{isXl:n,setSidebarHeight:i,sheetOpen:o,setSheetOpen:p}=c();return r.jsxRuntimeExports.jsx(h.Portal,{children:r.jsxRuntimeExports.jsxs("div",{ref:u=>{u&&i(n?"auto":`${u.clientHeight}px`)},"data-slot":"sidebar-content",className:s.cn(`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./jsx-runtime-BB_1_6y_.cjs"),S=require("./index-Dbj9vHNq.cjs"),l=require("./index-CjyiloO7.cjs"),h=require("./index-BDs8lUfq.cjs"),f=require("./button-CxGyLoeN.cjs"),j=require("./icon-SWksUOv5.cjs"),d=require("./sheet-DfRu4ByS.cjs"),s=require("./index-DoxiiusW.cjs"),m=require("react");function g(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const x=g(m);function E(e){const t=x.useCallback(i=>{const o=window.matchMedia(e);return o.addEventListener("change",i),()=>{o.removeEventListener("change",i)}},[e]),r=()=>window.matchMedia(e).matches,n=()=>{throw Error("useMediaQuery is a client-only hook")};return x.useSyncExternalStore(t,r,n)}const b=m.createContext({});function R({children:e}){const[t,r]=m.useState(!1),[n,i]=m.useState("auto"),o=E("(min-width: 1280px)");return a.jsxRuntimeExports.jsx(b.Provider,{value:{isXl:o,sidebarHeight:n,setSidebarHeight:i,sheetOpen:t,setSheetOpen:r},children:a.jsxRuntimeExports.jsx("nav",{"data-slot":"sidebar",children:e})})}function y({className:e,children:t,...r}){const{isXl:n,setSidebarHeight:i,sheetOpen:o,setSheetOpen:p}=c();return a.jsxRuntimeExports.jsx(S.Portal,{children:a.jsxRuntimeExports.jsxs("div",{ref:u=>{u&&i(n?"auto":`${u.clientHeight}px`)},"data-slot":"sidebar-content",className:s.cn(`
|
|
7
2
|
adm:fixed adm:bg-sidebar-primary adm:text-sidebar-primary-foreground
|
|
8
3
|
adm:xl:flex adm:xl:flex-col
|
|
9
4
|
`,"adm:top-0 adm:right-0 adm:left-0",`
|
|
10
5
|
adm:xl:top-0 adm:xl:bottom-0 adm:xl:left-0 adm:xl:h-auto
|
|
11
6
|
adm:xl:w-3xs
|
|
12
|
-
`,e),...
|
|
7
|
+
`,e),...r,children:[n&&t,a.jsxRuntimeExports.jsx(d.Sheet,{open:o,onOpenChange:p,children:a.jsxRuntimeExports.jsxs(d.SheetContent,{showCloseButton:!1,className:`
|
|
13
8
|
adm:rounded-none adm:border-sidebar-primary adm:bg-sidebar-primary
|
|
14
9
|
adm:text-sidebar-primary-foreground
|
|
15
|
-
`,children:[
|
|
10
|
+
`,children:[a.jsxRuntimeExports.jsx(h.VisuallyHidden,{children:a.jsxRuntimeExports.jsxs(d.SheetHeader,{children:[a.jsxRuntimeExports.jsx(d.SheetTitle,{children:"Sidebar"}),a.jsxRuntimeExports.jsx(d.SheetDescription,{children:"Sidebar"})]})}),t]})})]})})}function w({className:e,...t}){const{setSheetOpen:r}=c();return a.jsxRuntimeExports.jsx(f.Button,{"data-slot":"sidebar-trigger",className:s.cn("adm:xl:hidden",e),size:"icon",onClick:()=>r(n=>!n),...t,children:a.jsxRuntimeExports.jsx(j.Icon,{symbol:"segment"})})}function v({className:e,children:t,...r}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"sidebar-inset",className:s.cn(e,"adm:xl:mt-auto adm:xl:ml-[256px]"),...r,children:t})}function C({className:e,children:t,...r}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"sidebar-top-bar",className:s.cn(`
|
|
16
11
|
adm:sticky adm:top-0 adm:z-50 adm:flex adm:items-center
|
|
17
12
|
adm:justify-between adm:gap-2 adm:border-b adm:bg-background adm:p-4
|
|
18
|
-
`,e),...
|
|
13
|
+
`,e),...r,children:t})}function O({className:e,children:t,...r}){return a.jsxRuntimeExports.jsx("header",{"data-slot":"sidebar-header",className:s.cn(e,"adm:mt-12 adm:flex adm:flex-col"),...r,children:t})}function M({className:e,children:t,...r}){return a.jsxRuntimeExports.jsx("footer",{"data-slot":"sidebar-footer",className:s.cn(e,"adm:mt-auto adm:mb-12 adm:flex adm:flex-col"),...r,children:t})}function N({asChild:e,className:t,...r}){const n=e?l.Slot:"div";return a.jsxRuntimeExports.jsx(n,{"data-slot":"sidebar-menu",className:s.cn(t,`
|
|
19
14
|
adm:my-12 adm:flex adm:flex-col adm:gap-4 adm:overflow-y-auto adm:py-1
|
|
20
|
-
`),...
|
|
15
|
+
`),...r})}function H({asChild:e,className:t,...r}){const n=e?l.Slot:"button";return a.jsxRuntimeExports.jsx(n,{"data-slot":"sidebar-menu-item",className:s.cn(t,`
|
|
21
16
|
adm:mx-4 adm:flex adm:w-[stretch] adm:items-center adm:gap-4
|
|
22
17
|
adm:rounded-xl adm:p-4 adm:transition-all
|
|
23
18
|
adm:hover:bg-white/10
|
|
24
|
-
`),...
|
|
19
|
+
`),...r})}function c(){const e=m.useContext(b);if(!e)throw new Error("useSidebarContext must be used within a Sidebar component");return e}exports.Sidebar=R;exports.SidebarContent=y;exports.SidebarFooter=M;exports.SidebarHeader=O;exports.SidebarInset=v;exports.SidebarMenu=N;exports.SidebarMenuItem=H;exports.SidebarTopBar=C;exports.SidebarTrigger=w;exports.useSidebarContext=c;
|
package/dist/sidebar.js
CHANGED
|
@@ -1,24 +1,13 @@
|
|
|
1
1
|
import { j as r } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
-
import { P as
|
|
3
|
-
import { S as
|
|
4
|
-
import { V as
|
|
5
|
-
import { B as
|
|
6
|
-
import {
|
|
2
|
+
import { P as f } from "./index-BX9hz-JD.js";
|
|
3
|
+
import { S as c } from "./index-BvLQnI56.js";
|
|
4
|
+
import { V as h } from "./index-PYkEXTqJ.js";
|
|
5
|
+
import { B as p } from "./button-CUNnLccZ.js";
|
|
6
|
+
import { I as S } from "./icon-D0vVkV-A.js";
|
|
7
|
+
import { S as g, c as j, d as w, f as y, g as v } from "./sheet-DM7b3ckK.js";
|
|
7
8
|
import { c as s } from "./index-CRiPKpXj.js";
|
|
8
9
|
import * as m from "react";
|
|
9
|
-
import { createContext as
|
|
10
|
-
import { c as M } from "./createLucideIcon-B_8CJpcQ.js";
|
|
11
|
-
/**
|
|
12
|
-
* @license lucide-react v0.546.0 - ISC
|
|
13
|
-
*
|
|
14
|
-
* This source code is licensed under the ISC license.
|
|
15
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/
|
|
17
|
-
const N = [
|
|
18
|
-
["path", { d: "M4 5h16", key: "1tepv9" }],
|
|
19
|
-
["path", { d: "M4 12h16", key: "1lakjw" }],
|
|
20
|
-
["path", { d: "M4 19h16", key: "1djgab" }]
|
|
21
|
-
], k = M("menu", N);
|
|
10
|
+
import { createContext as C, useState as l, useContext as N } from "react";
|
|
22
11
|
function H(e) {
|
|
23
12
|
const t = m.useCallback(
|
|
24
13
|
(o) => {
|
|
@@ -33,14 +22,14 @@ function H(e) {
|
|
|
33
22
|
};
|
|
34
23
|
return m.useSyncExternalStore(t, a, d);
|
|
35
24
|
}
|
|
36
|
-
const u =
|
|
37
|
-
function
|
|
38
|
-
const [t, a] =
|
|
25
|
+
const u = C({});
|
|
26
|
+
function L({ children: e }) {
|
|
27
|
+
const [t, a] = l(!1), [d, o] = l("auto"), n = H("(min-width: 1280px)");
|
|
39
28
|
return /* @__PURE__ */ r.jsx(u.Provider, { value: { isXl: n, sidebarHeight: d, setSidebarHeight: o, sheetOpen: t, setSheetOpen: a }, children: /* @__PURE__ */ r.jsx("nav", { "data-slot": "sidebar", children: e }) });
|
|
40
29
|
}
|
|
41
|
-
function
|
|
42
|
-
const { isXl: d, setSidebarHeight: o, sheetOpen: n, setSheetOpen:
|
|
43
|
-
return /* @__PURE__ */ r.jsx(
|
|
30
|
+
function Q({ className: e, children: t, ...a }) {
|
|
31
|
+
const { isXl: d, setSidebarHeight: o, sheetOpen: n, setSheetOpen: b } = x();
|
|
32
|
+
return /* @__PURE__ */ r.jsx(f, { children: /* @__PURE__ */ r.jsxs(
|
|
44
33
|
"div",
|
|
45
34
|
{
|
|
46
35
|
ref: (i) => {
|
|
@@ -62,8 +51,8 @@ function X({ className: e, children: t, ...a }) {
|
|
|
62
51
|
...a,
|
|
63
52
|
children: [
|
|
64
53
|
d && t,
|
|
65
|
-
/* @__PURE__ */ r.jsx(
|
|
66
|
-
|
|
54
|
+
/* @__PURE__ */ r.jsx(g, { open: n, onOpenChange: b, children: /* @__PURE__ */ r.jsxs(
|
|
55
|
+
j,
|
|
67
56
|
{
|
|
68
57
|
showCloseButton: !1,
|
|
69
58
|
className: `
|
|
@@ -71,9 +60,9 @@ function X({ className: e, children: t, ...a }) {
|
|
|
71
60
|
adm:text-sidebar-primary-foreground
|
|
72
61
|
`,
|
|
73
62
|
children: [
|
|
74
|
-
/* @__PURE__ */ r.jsx(
|
|
75
|
-
/* @__PURE__ */ r.jsx(
|
|
76
|
-
/* @__PURE__ */ r.jsx(
|
|
63
|
+
/* @__PURE__ */ r.jsx(h, { children: /* @__PURE__ */ r.jsxs(w, { children: [
|
|
64
|
+
/* @__PURE__ */ r.jsx(y, { children: "Sidebar" }),
|
|
65
|
+
/* @__PURE__ */ r.jsx(v, { children: "Sidebar" })
|
|
77
66
|
] }) }),
|
|
78
67
|
t
|
|
79
68
|
]
|
|
@@ -83,11 +72,11 @@ function X({ className: e, children: t, ...a }) {
|
|
|
83
72
|
}
|
|
84
73
|
) });
|
|
85
74
|
}
|
|
86
|
-
function
|
|
75
|
+
function R({ className: e, ...t }) {
|
|
87
76
|
const { setSheetOpen: a } = x();
|
|
88
|
-
return /* @__PURE__ */ r.jsx(
|
|
77
|
+
return /* @__PURE__ */ r.jsx(p, { "data-slot": "sidebar-trigger", className: s("adm:xl:hidden", e), size: "icon", onClick: () => a((d) => !d), ...t, children: /* @__PURE__ */ r.jsx(S, { symbol: "segment" }) });
|
|
89
78
|
}
|
|
90
|
-
function
|
|
79
|
+
function V({ className: e, children: t, ...a }) {
|
|
91
80
|
return /* @__PURE__ */ r.jsx(
|
|
92
81
|
"div",
|
|
93
82
|
{
|
|
@@ -98,7 +87,7 @@ function z({ className: e, children: t, ...a }) {
|
|
|
98
87
|
}
|
|
99
88
|
);
|
|
100
89
|
}
|
|
101
|
-
function
|
|
90
|
+
function X({ className: e, children: t, ...a }) {
|
|
102
91
|
return /* @__PURE__ */ r.jsx(
|
|
103
92
|
"div",
|
|
104
93
|
{
|
|
@@ -112,7 +101,7 @@ function D({ className: e, children: t, ...a }) {
|
|
|
112
101
|
}
|
|
113
102
|
);
|
|
114
103
|
}
|
|
115
|
-
function
|
|
104
|
+
function D({ className: e, children: t, ...a }) {
|
|
116
105
|
return /* @__PURE__ */ r.jsx(
|
|
117
106
|
"header",
|
|
118
107
|
{
|
|
@@ -123,7 +112,7 @@ function F({ className: e, children: t, ...a }) {
|
|
|
123
112
|
}
|
|
124
113
|
);
|
|
125
114
|
}
|
|
126
|
-
function
|
|
115
|
+
function F({ className: e, children: t, ...a }) {
|
|
127
116
|
return /* @__PURE__ */ r.jsx(
|
|
128
117
|
"footer",
|
|
129
118
|
{
|
|
@@ -134,8 +123,8 @@ function $({ className: e, children: t, ...a }) {
|
|
|
134
123
|
}
|
|
135
124
|
);
|
|
136
125
|
}
|
|
137
|
-
function
|
|
138
|
-
const d = e ?
|
|
126
|
+
function $({ asChild: e, className: t, ...a }) {
|
|
127
|
+
const d = e ? c : "div";
|
|
139
128
|
return /* @__PURE__ */ r.jsx(
|
|
140
129
|
d,
|
|
141
130
|
{
|
|
@@ -147,8 +136,8 @@ function A({ asChild: e, className: t, ...a }) {
|
|
|
147
136
|
}
|
|
148
137
|
);
|
|
149
138
|
}
|
|
150
|
-
function
|
|
151
|
-
const d = e ?
|
|
139
|
+
function A({ asChild: e, className: t, ...a }) {
|
|
140
|
+
const d = e ? c : "button";
|
|
152
141
|
return /* @__PURE__ */ r.jsx(
|
|
153
142
|
d,
|
|
154
143
|
{
|
|
@@ -163,20 +152,20 @@ function G({ asChild: e, className: t, ...a }) {
|
|
|
163
152
|
);
|
|
164
153
|
}
|
|
165
154
|
function x() {
|
|
166
|
-
const e =
|
|
155
|
+
const e = N(u);
|
|
167
156
|
if (!e)
|
|
168
157
|
throw new Error("useSidebarContext must be used within a Sidebar component");
|
|
169
158
|
return e;
|
|
170
159
|
}
|
|
171
160
|
export {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
161
|
+
L as Sidebar,
|
|
162
|
+
Q as SidebarContent,
|
|
163
|
+
F as SidebarFooter,
|
|
164
|
+
D as SidebarHeader,
|
|
165
|
+
V as SidebarInset,
|
|
166
|
+
$ as SidebarMenu,
|
|
167
|
+
A as SidebarMenuItem,
|
|
168
|
+
X as SidebarTopBar,
|
|
169
|
+
R as SidebarTrigger,
|
|
181
170
|
x as useSidebarContext
|
|
182
171
|
};
|
package/dist/spinner.cjs
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
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 a=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],c=t.createLucideIcon("loader-circle",a);function o({className:e,...n}){return r.jsxRuntimeExports.jsx(c,{role:"status","aria-label":"Loading",className:i.cn("adm:size-4 adm:animate-spin",e),...n})}exports.Spinner=o;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./jsx-runtime-BB_1_6y_.cjs"),i=require("./icon-SWksUOv5.cjs"),r=require("./index-DoxiiusW.cjs");function s({className:e,...t}){return n.jsxRuntimeExports.jsx(i.Icon,{symbol:"progress_activity",role:"status","aria-label":"Loading",className:r.cn("adm:animate-spin adm:text-lg",e),...t})}exports.Spinner=s;
|
package/dist/spinner.js
CHANGED
|
@@ -1,24 +1,18 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import { c as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* This source code is licensed under the ISC license.
|
|
8
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/
|
|
10
|
-
const t = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], c = i("loader-circle", t);
|
|
11
|
-
function d({ className: a, ...e }) {
|
|
12
|
-
return /* @__PURE__ */ o.jsx(
|
|
13
|
-
c,
|
|
1
|
+
import { j as t } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
+
import { I as o } from "./icon-D0vVkV-A.js";
|
|
3
|
+
import { c as s } from "./index-CRiPKpXj.js";
|
|
4
|
+
function e({ className: a, ...r }) {
|
|
5
|
+
return /* @__PURE__ */ t.jsx(
|
|
6
|
+
o,
|
|
14
7
|
{
|
|
8
|
+
symbol: "progress_activity",
|
|
15
9
|
role: "status",
|
|
16
10
|
"aria-label": "Loading",
|
|
17
|
-
className:
|
|
18
|
-
...
|
|
11
|
+
className: s("adm:animate-spin adm:text-lg", a),
|
|
12
|
+
...r
|
|
19
13
|
}
|
|
20
14
|
);
|
|
21
15
|
}
|
|
22
16
|
export {
|
|
23
|
-
|
|
17
|
+
e as Spinner
|
|
24
18
|
};
|