@adamosuiteservices/ui 1.4.6 → 1.5.6

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.
@@ -0,0 +1 @@
1
+ ::-webkit-scrollbar{width:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background-color:var(--neutrals-300);border-radius:4px}::-webkit-scrollbar-thumb:hover{background-color:var(--neutrals-400)}
package/dist/dialog.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { j as t } from "./jsx-runtime-BzflLqGi.js";
2
2
  import "react";
3
- import { R as l, C as e, a as r, D as s, O as c, P as g, T as u, b as f } from "./index-DMLQL2aG.js";
3
+ import { R as l, C as e, a as r, D as s, O as c, P as g, b as u, T as f } from "./index-DniCthJA.js";
4
4
  import { c as o } from "./index-CRiPKpXj.js";
5
5
  import { X as x } from "./x-Dl66o_vF.js";
6
6
  function N({
@@ -280,7 +280,7 @@ export {
280
280
  Ne as O,
281
281
  Oe as P,
282
282
  _e as R,
283
- be as T,
283
+ Pe as T,
284
284
  Ie as a,
285
- Pe as b
285
+ be as b
286
286
  };
@@ -1,6 +1,6 @@
1
1
  import { j as t } from "./jsx-runtime-BzflLqGi.js";
2
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-DMLQL2aG.js";
3
+ import { R as n, 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";
4
4
  import { c as d } from "./index-CRiPKpXj.js";
5
5
  import { X as g } from "./x-Dl66o_vF.js";
6
6
  function v({ ...a }) {
package/dist/sheet.js CHANGED
@@ -1,4 +1,4 @@
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-UZWAbdXr.js";
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-B-9YHdR5.js";
2
2
  export {
3
3
  a as Sheet,
4
4
  s as SheetClose,
package/dist/sidebar.cjs CHANGED
@@ -3,4 +3,4 @@
3
3
  *
4
4
  * This source code is licensed under the ISC license.
5
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 d=window.matchMedia(e);return d.addEventListener("change",i),()=>{d.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 l=m.createContext({});function v({children:e}){const[t,a]=m.useState(!1),[n,i]=m.useState("auto"),d=R("(min-width: 1280px)");return r.jsxRuntimeExports.jsx(l.Provider,{value:{isXl:d,sidebarHeight:n,setSidebarHeight:i,sheetOpen:t,setSheetOpen:a},children:r.jsxRuntimeExports.jsx("nav",{"data-slot":"sidebar",children:e})})}function w({className:e,children:t,...a}){const{isXl:n,setSidebarHeight:i,sheetOpen:d,setSheetOpen:b}=c();return r.jsxRuntimeExports.jsx(p.Portal,{children:r.jsxRuntimeExports.jsxs("div",{ref:u=>{u&&i(n?"auto":`${u.clientHeight}px`)},"data-slot":"sidebar-content",className:s.cn("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",e),...a,children:[n&&t,r.jsxRuntimeExports.jsx(o.Sheet,{open:d,onOpenChange:b,children:r.jsxRuntimeExports.jsxs(o.SheetContent,{showCloseButton:!1,className:"adm:bg-sidebar-primary adm:text-sidebar-primary-foreground adm:border-sidebar-primary adm:rounded-none",children:[r.jsxRuntimeExports.jsx(h.VisuallyHidden,{children:r.jsxRuntimeExports.jsxs(o.SheetHeader,{children:[r.jsxRuntimeExports.jsx(o.SheetTitle,{children:"Sidebar"}),r.jsxRuntimeExports.jsx(o.SheetDescription,{children:"Sidebar"})]})}),t]})})]})})}function M({className:e,...t}){const{setSheetOpen:a}=c();return r.jsxRuntimeExports.jsx(f.Button,{"data-slot":"sidebar-trigger",className:s.cn("adm:xl:hidden",e),onClick:()=>a(n=>!n),...t,children:r.jsxRuntimeExports.jsx(y,{})})}function C({className:e,children:t,...a}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"sidebar-inset",className:s.cn(e,"adm:xl:ml-[256px] adm:xl:mt-auto"),...a,children:t})}function O({className:e,children:t,...a}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"sidebar-top-bar",className:s.cn("adm:sticky adm:z-50 adm:top-0 adm:flex adm:gap-2 adm:items-center adm:justify-between adm:bg-background adm:p-4 adm:border-b",e),...a,children:t})}function N({className:e,children:t,...a}){return r.jsxRuntimeExports.jsx("header",{"data-slot":"sidebar-header",className:s.cn(e,"adm:flex adm:flex-col adm:mt-12"),...a,children:t})}function k({className:e,children:t,...a}){return r.jsxRuntimeExports.jsx("footer",{"data-slot":"sidebar-footer",className:s.cn(e,"adm:mt-auto adm:mb-12 adm:flex adm:flex-col"),...a,children:t})}function H({className:e,children:t,...a}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"sidebar-menu",className:s.cn(e,"adm:flex adm:flex-col adm:gap-4 adm:overflow-y-auto adm:my-12 adm:py-1"),...a,children:t})}function q({asChild:e,className:t,...a}){const n=e?S.Slot:"button";return r.jsxRuntimeExports.jsx(n,{"data-slot":"sidebar-menu-item",className:s.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 c(){const e=m.useContext(l);if(!e)throw new Error("useSidebarContext must be used within a Sidebar component");return e}exports.Sidebar=v;exports.SidebarContent=w;exports.SidebarFooter=k;exports.SidebarHeader=N;exports.SidebarInset=C;exports.SidebarMenu=H;exports.SidebarMenuItem=q;exports.SidebarTopBar=O;exports.SidebarTrigger=M;exports.useSidebarContext=c;
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 d=window.matchMedia(e);return d.addEventListener("change",i),()=>{d.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 l=m.createContext({});function w({children:e}){const[t,a]=m.useState(!1),[n,i]=m.useState("auto"),d=R("(min-width: 1280px)");return r.jsxRuntimeExports.jsx(l.Provider,{value:{isXl:d,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:d,setSheetOpen:b}=c();return r.jsxRuntimeExports.jsx(p.Portal,{children:r.jsxRuntimeExports.jsxs("div",{ref:u=>{u&&i(n?"auto":`${u.clientHeight}px`)},"data-slot":"sidebar-content",className:s.cn("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",e),...a,children:[n&&t,r.jsxRuntimeExports.jsx(o.Sheet,{open:d,onOpenChange:b,children:r.jsxRuntimeExports.jsxs(o.SheetContent,{showCloseButton:!1,className:"adm:bg-sidebar-primary adm:text-sidebar-primary-foreground adm:border-sidebar-primary adm:rounded-none",children:[r.jsxRuntimeExports.jsx(h.VisuallyHidden,{children:r.jsxRuntimeExports.jsxs(o.SheetHeader,{children:[r.jsxRuntimeExports.jsx(o.SheetTitle,{children:"Sidebar"}),r.jsxRuntimeExports.jsx(o.SheetDescription,{children:"Sidebar"})]})}),t]})})]})})}function M({className:e,...t}){const{setSheetOpen:a}=c();return r.jsxRuntimeExports.jsx(f.Button,{"data-slot":"sidebar-trigger",className:s.cn("adm:xl:hidden",e),onClick:()=>a(n=>!n),...t,children:r.jsxRuntimeExports.jsx(y,{})})}function C({className:e,children:t,...a}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"sidebar-inset",className:s.cn(e,"adm:xl:ml-[256px] adm:xl:mt-auto"),...a,children:t})}function O({className:e,children:t,...a}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"sidebar-top-bar",className:s.cn("adm:sticky adm:z-50 adm:top-0 adm:flex adm:gap-2 adm:items-center adm:justify-between adm:bg-background adm:p-4 adm:border-b",e),...a,children:t})}function N({className:e,children:t,...a}){return r.jsxRuntimeExports.jsx("header",{"data-slot":"sidebar-header",className:s.cn(e,"adm:flex adm:flex-col adm:mt-12"),...a,children:t})}function k({className:e,children:t,...a}){return r.jsxRuntimeExports.jsx("footer",{"data-slot":"sidebar-footer",className:s.cn(e,"adm:mt-auto adm:mb-12 adm:flex adm:flex-col"),...a,children:t})}function H({className:e,children:t,...a}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"sidebar-menu",className:s.cn(e,"adm:flex adm:flex-col adm:gap-4 adm:overflow-y-auto adm:my-12 adm:py-1"),...a,children:t})}function q({asChild:e,className:t,...a}){const n=e?S.Slot:"button";return r.jsxRuntimeExports.jsx(n,{"data-slot":"sidebar-menu-item",className:s.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 adm:w-[stretch]"),...a})}function c(){const e=m.useContext(l);if(!e)throw new Error("useSidebarContext must be used within a Sidebar component");return e}exports.Sidebar=w;exports.SidebarContent=v;exports.SidebarFooter=k;exports.SidebarHeader=N;exports.SidebarInset=C;exports.SidebarMenu=H;exports.SidebarMenuItem=q;exports.SidebarTopBar=O;exports.SidebarTrigger=M;exports.useSidebarContext=c;
package/dist/sidebar.js CHANGED
@@ -3,8 +3,8 @@ import * as m from "react";
3
3
  import { createContext as h, useState as c, useContext as b } from "react";
4
4
  import { P as p } from "./index-BX9hz-JD.js";
5
5
  import { c as s } from "./index-CRiPKpXj.js";
6
- import { S as f, c as S, d as g, f as j, g as y } from "./sheet-UZWAbdXr.js";
7
- import { V as w } from "./index-PYkEXTqJ.js";
6
+ import { S as f, c as S, d as g, f as j, g as w } from "./sheet-B-9YHdR5.js";
7
+ import { V as y } from "./index-PYkEXTqJ.js";
8
8
  import { S as v } from "./index-BvLQnI56.js";
9
9
  import { B as C } from "./button-2GdKenQI.js";
10
10
  import { c as M } from "./createLucideIcon-B_8CJpcQ.js";
@@ -57,9 +57,9 @@ function X({ className: e, children: a, ...t }) {
57
57
  children: [
58
58
  d && a,
59
59
  /* @__PURE__ */ r.jsx(f, { open: n, onOpenChange: x, children: /* @__PURE__ */ r.jsxs(S, { showCloseButton: !1, className: "adm:bg-sidebar-primary adm:text-sidebar-primary-foreground adm:border-sidebar-primary adm:rounded-none", children: [
60
- /* @__PURE__ */ r.jsx(w, { children: /* @__PURE__ */ r.jsxs(g, { children: [
60
+ /* @__PURE__ */ r.jsx(y, { children: /* @__PURE__ */ r.jsxs(g, { children: [
61
61
  /* @__PURE__ */ r.jsx(j, { children: "Sidebar" }),
62
- /* @__PURE__ */ r.jsx(y, { children: "Sidebar" })
62
+ /* @__PURE__ */ r.jsx(w, { children: "Sidebar" })
63
63
  ] }) }),
64
64
  a
65
65
  ] }) })
@@ -120,7 +120,7 @@ function A({ className: e, children: a, ...t }) {
120
120
  "div",
121
121
  {
122
122
  "data-slot": "sidebar-menu",
123
- className: s(e, "adm:flex adm:flex-col adm:gap-4 adm:overflow-y-auto adm:my-12 adm:py-1"),
123
+ className: s(e, "adm:flex adm:flex-col adm:gap-4 adm:overflow-y-auto adm:my-12 adm:py-1"),
124
124
  ...t,
125
125
  children: a
126
126
  }
@@ -128,7 +128,7 @@ function A({ className: e, children: a, ...t }) {
128
128
  }
129
129
  function G({ asChild: e, className: a, ...t }) {
130
130
  const d = e ? v : "button";
131
- return /* @__PURE__ */ r.jsx(d, { "data-slot": "sidebar-menu-item", className: s(a, "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"), ...t });
131
+ return /* @__PURE__ */ r.jsx(d, { "data-slot": "sidebar-menu-item", className: s(a, "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 adm:w-[stretch]"), ...t });
132
132
  }
133
133
  function u() {
134
134
  const e = b(l);