@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.
- package/dist/colors.css +1 -1
- package/dist/combobox.js +1 -1
- package/dist/components/ui/scroll-area/index.d.ts +1 -0
- package/dist/components/ui/scroll-area/scroll-area.d.ts +5 -0
- package/dist/components/ui/scroll-area/scroll-area.stories.d.ts +11 -0
- package/dist/custom-layered-styles.css +1 -1
- package/dist/custom-scroll-bar.css +1 -0
- package/dist/dialog.js +1 -1
- package/dist/{index-DMLQL2aG.js → index-DniCthJA.js} +2 -2
- package/dist/{sheet-UZWAbdXr.js → sheet-B-9YHdR5.js} +1 -1
- package/dist/sheet.js +1 -1
- package/dist/sidebar.cjs +1 -1
- package/dist/sidebar.js +6 -6
- package/dist/styles.css +1 -1
- package/docs/components/ui/scroll-area.md +357 -0
- package/package.json +4 -2
|
@@ -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,
|
|
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({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-BzflLqGi.js";
|
|
2
2
|
import "react";
|
|
3
|
-
import { R as n,
|
|
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
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
|
|
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
|
|
7
|
-
import { V as
|
|
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(
|
|
60
|
+
/* @__PURE__ */ r.jsx(y, { children: /* @__PURE__ */ r.jsxs(g, { children: [
|
|
61
61
|
/* @__PURE__ */ r.jsx(j, { children: "Sidebar" }),
|
|
62
|
-
/* @__PURE__ */ r.jsx(
|
|
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
|
|
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);
|