@devalok/shilp-sutra 0.25.0 → 0.25.1
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/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/sidebar.js +15 -15
- package/llms-full.txt +1 -1
- package/package.json +1 -1
package/dist/ui/sidebar.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../src/ui/sidebar.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAO,MAAM,0BAA0B,CAAA;AAY5D,OAAO,EAEL,cAAc,EAGf,MAAM,WAAW,CAAA;AAClB,OAAO,EACL,cAAc,EAUf,MAAM,OAAO,CAAA;AASd,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,UAAU,GAAG,WAAW,CAAA;IAC/B,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IAChC,UAAU,EAAE,OAAO,CAAA;IACnB,aAAa,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC,QAAQ,EAAE,OAAO,CAAA;IACjB,aAAa,EAAE,MAAM,IAAI,CAAA;CAC1B,CAAA;AAED,QAAA,MAAM,cAAc,gDAA6C,CAAA;AAEjE,iBAAS,UAAU,mBAOlB;AAED,QAAA,MAAM,eAAe;kBAGH,OAAO;WACd,OAAO;mBACC,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI;
|
|
1
|
+
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../src/ui/sidebar.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAO,MAAM,0BAA0B,CAAA;AAY5D,OAAO,EAEL,cAAc,EAGf,MAAM,WAAW,CAAA;AAClB,OAAO,EACL,cAAc,EAUf,MAAM,OAAO,CAAA;AASd,KAAK,cAAc,GAAG;IACpB,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,MAAM,GAAG,cAAc,CAAC,OAAO,cAAc,CAAC;;;;2IAiE3D,CAAA;AAGD,QAAA,MAAM,iBAAiB;cAGT,OAAO;kBACH,OAAO;6DAuBvB,CAAA;AAGF,QAAA,MAAM,gBAAgB,2MAiBrB,CAAA;AAGD,QAAA,MAAM,mBAAmB;eAGV,OAAO;0DA+BpB,CAAA;AAGF,QAAA,MAAM,cAAc,iNAanB,CAAA;AAGD,QAAA,MAAM,kBAAkB,0MAEvB,CAAA;AAGD,QAAA,MAAM,oBAAoB;cAGZ,OAAO;WACV,IAAI,GAAG,IAAI;eACP,OAAO;6DAsBpB,CAAA;AAGF,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;IAAC,WAAW,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,MAAM,CAAA;CAAE,CAAA;AAEvL,OAAO,EACL,OAAO,EACP,cAAc,EACd,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,UAAU,GACX,CAAA"}
|
package/dist/ui/sidebar.js
CHANGED
|
@@ -15,7 +15,7 @@ import { TooltipProvider as j, Tooltip as $, TooltipTrigger as F, TooltipContent
|
|
|
15
15
|
import { createContext as V, forwardRef as i, useState as I, useCallback as C, useEffect as W, useMemo as k, useContext as q } from "react";
|
|
16
16
|
import { m as U } from "../_chunks/framer.js";
|
|
17
17
|
const X = "sidebar:state", Y = 60 * 60 * 24 * 7, J = "16rem", Q = "18rem", Z = "3rem", ee = "b", z = V(null);
|
|
18
|
-
function
|
|
18
|
+
function y() {
|
|
19
19
|
const a = q(z);
|
|
20
20
|
if (!a)
|
|
21
21
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
@@ -31,10 +31,10 @@ const ae = i(
|
|
|
31
31
|
children: n,
|
|
32
32
|
...u
|
|
33
33
|
}, f) => {
|
|
34
|
-
const c = D(), [b, p] = I(!1), [
|
|
34
|
+
const c = D(), [b, p] = I(!1), [N, x] = I(a), g = e ?? N, S = C(
|
|
35
35
|
(l) => {
|
|
36
36
|
const m = typeof l == "function" ? l(g) : l;
|
|
37
|
-
t ? t(m) : x(m), document.cookie = `${X}=${m}; path=/; max-age=${Y}
|
|
37
|
+
t ? t(m) : x(m), typeof document < "u" && (document.cookie = `${X}=${m}; path=/; max-age=${Y}`);
|
|
38
38
|
},
|
|
39
39
|
[t, g]
|
|
40
40
|
), w = C(() => c ? p((l) => !l) : S((l) => !l), [c, S, p]);
|
|
@@ -93,7 +93,7 @@ const te = i(
|
|
|
93
93
|
children: o,
|
|
94
94
|
...n
|
|
95
95
|
}, u) => {
|
|
96
|
-
const { isMobile: f, state: c, openMobile: b, setOpenMobile: p } =
|
|
96
|
+
const { isMobile: f, state: c, openMobile: b, setOpenMobile: p } = y();
|
|
97
97
|
return t === "none" ? /* @__PURE__ */ s(
|
|
98
98
|
"div",
|
|
99
99
|
{
|
|
@@ -165,7 +165,7 @@ const te = i(
|
|
|
165
165
|
);
|
|
166
166
|
te.displayName = "Sidebar";
|
|
167
167
|
const se = i(({ className: a, onClick: e, ...t }, d) => {
|
|
168
|
-
const { toggleSidebar: o } =
|
|
168
|
+
const { toggleSidebar: o } = y();
|
|
169
169
|
return /* @__PURE__ */ h(
|
|
170
170
|
R,
|
|
171
171
|
{
|
|
@@ -188,7 +188,7 @@ const se = i(({ className: a, onClick: e, ...t }, d) => {
|
|
|
188
188
|
se.displayName = "SidebarTrigger";
|
|
189
189
|
const re = i(
|
|
190
190
|
({ className: a, ...e }, t) => {
|
|
191
|
-
const { toggleSidebar: d } =
|
|
191
|
+
const { toggleSidebar: d } = y();
|
|
192
192
|
return /* @__PURE__ */ s(
|
|
193
193
|
"button",
|
|
194
194
|
{
|
|
@@ -400,7 +400,7 @@ const he = T(
|
|
|
400
400
|
children: u,
|
|
401
401
|
...f
|
|
402
402
|
}, c) => {
|
|
403
|
-
const b = a ? v : "button", { isMobile: p, state:
|
|
403
|
+
const b = a ? v : "button", { isMobile: p, state: N } = y(), x = /* @__PURE__ */ s(
|
|
404
404
|
b,
|
|
405
405
|
{
|
|
406
406
|
ref: c,
|
|
@@ -431,7 +431,7 @@ const he = T(
|
|
|
431
431
|
{
|
|
432
432
|
side: "right",
|
|
433
433
|
align: "center",
|
|
434
|
-
hidden:
|
|
434
|
+
hidden: N !== "collapsed" || p,
|
|
435
435
|
...o
|
|
436
436
|
}
|
|
437
437
|
)
|
|
@@ -510,7 +510,7 @@ const we = i(({ className: a, showIcon: e = !1, ...t }, d) => {
|
|
|
510
510
|
);
|
|
511
511
|
});
|
|
512
512
|
we.displayName = "SidebarMenuSkeleton";
|
|
513
|
-
const
|
|
513
|
+
const ye = i(
|
|
514
514
|
({ className: a, ...e }, t) => /* @__PURE__ */ s(
|
|
515
515
|
"ul",
|
|
516
516
|
{
|
|
@@ -525,11 +525,11 @@ const Ne = i(
|
|
|
525
525
|
}
|
|
526
526
|
)
|
|
527
527
|
);
|
|
528
|
-
|
|
529
|
-
const
|
|
528
|
+
ye.displayName = "SidebarMenuSub";
|
|
529
|
+
const Ne = i(
|
|
530
530
|
({ ...a }, e) => /* @__PURE__ */ s("li", { ref: e, ...a })
|
|
531
531
|
);
|
|
532
|
-
|
|
532
|
+
Ne.displayName = "SidebarMenuSubItem";
|
|
533
533
|
const Me = i(({ asChild: a = !1, size: e = "md", isActive: t, className: d, ...o }, n) => /* @__PURE__ */ s(
|
|
534
534
|
a ? v : "a",
|
|
535
535
|
{
|
|
@@ -566,12 +566,12 @@ export {
|
|
|
566
566
|
ve as SidebarMenuButton,
|
|
567
567
|
ge as SidebarMenuItem,
|
|
568
568
|
we as SidebarMenuSkeleton,
|
|
569
|
-
|
|
569
|
+
ye as SidebarMenuSub,
|
|
570
570
|
Me as SidebarMenuSubButton,
|
|
571
|
-
|
|
571
|
+
Ne as SidebarMenuSubItem,
|
|
572
572
|
ae as SidebarProvider,
|
|
573
573
|
re as SidebarRail,
|
|
574
574
|
le as SidebarSeparator,
|
|
575
575
|
se as SidebarTrigger,
|
|
576
|
-
|
|
576
|
+
y as useSidebar
|
|
577
577
|
};
|
package/llms-full.txt
CHANGED