@devalok/shilp-sutra 0.9.2 → 0.11.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/_chunks/primitives.js +32 -32
- package/dist/_chunks/sidebar.js +16 -16
- package/dist/shell/sidebar.d.ts +33 -0
- package/dist/shell/sidebar.d.ts.map +1 -1
- package/dist/shell/sidebar.js +198 -75
- package/dist/shell/top-bar.js +1 -1
- package/dist/tokens/primitives.css +1 -0
- package/dist/tokens/semantic.css +245 -233
- package/dist/ui/alert-dialog.js +7 -7
- package/dist/ui/collapsible.js +3 -3
- package/dist/ui/combobox.js +11 -11
- package/dist/ui/context-menu.js +13 -13
- package/dist/ui/hover-card.js +3 -3
- package/dist/ui/index.js +2 -2
- package/dist/ui/label.js +1 -1
- package/dist/ui/popover.js +1 -1
- package/dist/ui/sidebar.js +14 -14
- package/llms-full.txt +91 -1
- package/llms.txt +16 -0
- package/package.json +656 -656
|
@@ -6820,29 +6820,29 @@ function kt(e) {
|
|
|
6820
6820
|
var iC = Tl, cC = Nl, lC = Ol, uC = kl, dC = $l, fC = Ll, pC = Fl, vC = Kl;
|
|
6821
6821
|
export {
|
|
6822
6822
|
Gg as $,
|
|
6823
|
-
|
|
6824
|
-
|
|
6823
|
+
Jg as A,
|
|
6824
|
+
og as B,
|
|
6825
6825
|
Ad as C,
|
|
6826
|
-
|
|
6827
|
-
|
|
6826
|
+
rg as D,
|
|
6827
|
+
ig as E,
|
|
6828
6828
|
fg as F,
|
|
6829
6829
|
Rg as G,
|
|
6830
6830
|
Zm as H,
|
|
6831
6831
|
dg as I,
|
|
6832
|
-
|
|
6833
|
-
|
|
6832
|
+
cg as J,
|
|
6833
|
+
ag as K,
|
|
6834
6834
|
Eg as L,
|
|
6835
|
-
|
|
6836
|
-
|
|
6835
|
+
sg as M,
|
|
6836
|
+
eg as N,
|
|
6837
6837
|
ng as O,
|
|
6838
6838
|
gg as P,
|
|
6839
|
-
|
|
6839
|
+
tg as Q,
|
|
6840
6840
|
ug as R,
|
|
6841
6841
|
Ym as S,
|
|
6842
6842
|
Jm as T,
|
|
6843
|
-
|
|
6844
|
-
|
|
6845
|
-
|
|
6843
|
+
Eu as U,
|
|
6844
|
+
yu as V,
|
|
6845
|
+
Ru as W,
|
|
6846
6846
|
zg as X,
|
|
6847
6847
|
Yg as Y,
|
|
6848
6848
|
kg as Z,
|
|
@@ -6942,24 +6942,24 @@ export {
|
|
|
6942
6942
|
Qm as d,
|
|
6943
6943
|
jm as e,
|
|
6944
6944
|
lg as f,
|
|
6945
|
-
|
|
6946
|
-
|
|
6947
|
-
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
|
|
6951
|
-
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
|
|
6963
|
-
|
|
6964
|
-
|
|
6945
|
+
pg as g,
|
|
6946
|
+
mg as h,
|
|
6947
|
+
hg as i,
|
|
6948
|
+
Ng as j,
|
|
6949
|
+
Ag as k,
|
|
6950
|
+
bg as l,
|
|
6951
|
+
yg as m,
|
|
6952
|
+
Pg as n,
|
|
6953
|
+
xg as o,
|
|
6954
|
+
Tg as p,
|
|
6955
|
+
_g as q,
|
|
6956
|
+
Mg as r,
|
|
6957
|
+
Cg as s,
|
|
6958
|
+
Sg as t,
|
|
6959
|
+
Ig as u,
|
|
6960
|
+
wg as v,
|
|
6961
|
+
qg as w,
|
|
6962
|
+
Zg as x,
|
|
6963
|
+
Xg as y,
|
|
6964
|
+
jg as z
|
|
6965
6965
|
};
|
package/dist/_chunks/sidebar.js
CHANGED
|
@@ -569,22 +569,22 @@ export {
|
|
|
569
569
|
ue as c,
|
|
570
570
|
pe as d,
|
|
571
571
|
be as e,
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
572
|
+
me as f,
|
|
573
|
+
fe as g,
|
|
574
|
+
ge as h,
|
|
575
|
+
le as i,
|
|
576
|
+
he as j,
|
|
577
|
+
ve as k,
|
|
578
|
+
we as l,
|
|
579
|
+
Ne as m,
|
|
580
|
+
Me as n,
|
|
581
|
+
_e as o,
|
|
582
|
+
se as p,
|
|
583
|
+
R as q,
|
|
584
|
+
oe as r,
|
|
585
|
+
de as s,
|
|
586
|
+
ye as t,
|
|
587
|
+
Se as u,
|
|
588
588
|
te as v,
|
|
589
589
|
ie as w,
|
|
590
590
|
X as x,
|
package/dist/shell/sidebar.d.ts
CHANGED
|
@@ -10,16 +10,30 @@
|
|
|
10
10
|
* reading from Remix hooks or Zustand stores.
|
|
11
11
|
*/
|
|
12
12
|
import * as React from 'react';
|
|
13
|
+
export interface NavSubItem {
|
|
14
|
+
title: string;
|
|
15
|
+
href: string;
|
|
16
|
+
icon?: React.ReactNode;
|
|
17
|
+
exact?: boolean;
|
|
18
|
+
}
|
|
13
19
|
export interface NavItem {
|
|
14
20
|
title: string;
|
|
15
21
|
href: string;
|
|
16
22
|
icon: React.ReactNode;
|
|
17
23
|
/** When true, the route matches only when the path is exactly equal */
|
|
18
24
|
exact?: boolean;
|
|
25
|
+
/** Badge rendered on the right side of the nav item */
|
|
26
|
+
badge?: string | number;
|
|
27
|
+
/** Optional child items — renders as collapsible sub-list with chevron */
|
|
28
|
+
children?: NavSubItem[];
|
|
29
|
+
/** Whether the collapsible is open by default. Auto-opens when a child is active. */
|
|
30
|
+
defaultOpen?: boolean;
|
|
19
31
|
}
|
|
20
32
|
export interface NavGroup {
|
|
21
33
|
label: string;
|
|
22
34
|
items: NavItem[];
|
|
35
|
+
/** Action rendered next to the group label (e.g., a "+" button) */
|
|
36
|
+
action?: React.ReactNode;
|
|
23
37
|
}
|
|
24
38
|
export interface SidebarUser {
|
|
25
39
|
name: string;
|
|
@@ -28,6 +42,17 @@ export interface SidebarUser {
|
|
|
28
42
|
designation?: string;
|
|
29
43
|
role?: string;
|
|
30
44
|
}
|
|
45
|
+
export interface SidebarFooterConfig {
|
|
46
|
+
/** Legal/utility links rendered as a row separated by dividers */
|
|
47
|
+
links?: Array<{
|
|
48
|
+
label: string;
|
|
49
|
+
href: string;
|
|
50
|
+
}>;
|
|
51
|
+
/** Version or build info text rendered below links */
|
|
52
|
+
version?: string;
|
|
53
|
+
/** Custom content rendered above the links row */
|
|
54
|
+
slot?: React.ReactNode;
|
|
55
|
+
}
|
|
31
56
|
export interface AppSidebarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
32
57
|
/** Currently active pathname -- used to highlight the active nav item */
|
|
33
58
|
currentPath?: string;
|
|
@@ -42,6 +67,14 @@ export interface AppSidebarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
42
67
|
label: string;
|
|
43
68
|
href: string;
|
|
44
69
|
}>;
|
|
70
|
+
/** Structured footer config (takes precedence over footerLinks) */
|
|
71
|
+
footer?: SidebarFooterConfig;
|
|
72
|
+
/** Content rendered between user header and navigation */
|
|
73
|
+
headerSlot?: React.ReactNode;
|
|
74
|
+
/** Content rendered between navigation and footer */
|
|
75
|
+
preFooterSlot?: React.ReactNode;
|
|
76
|
+
/** Override rendering for specific nav items. Return null to use default rendering. */
|
|
77
|
+
renderItem?: (item: NavItem, defaultRender: () => React.ReactNode) => React.ReactNode | null;
|
|
45
78
|
/** Additional className for the root sidebar element */
|
|
46
79
|
className?: string;
|
|
47
80
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../src/shell/sidebar.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../src/shell/sidebar.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAgC9B,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,KAAK,CAAC,SAAS,CAAA;IACrB,uEAAuE;IACvE,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAA;IACvB,qFAAqF;IACrF,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,OAAO,EAAE,CAAA;IAChB,mEAAmE;IACnE,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CACzB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,mBAAmB;IAClC,kEAAkE;IAClE,KAAK,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAC9C,sDAAsD;IACtD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,kDAAkD;IAClD,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CACvB;AAED,MAAM,WAAW,eACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC5C,yEAAyE;IACzE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,uDAAuD;IACvD,IAAI,CAAC,EAAE,WAAW,GAAG,IAAI,CAAA;IACzB,kEAAkE;IAClE,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAA;IACtB,+DAA+D;IAC/D,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,yDAAyD;IACzD,WAAW,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IACpD,mEAAmE;IACnE,MAAM,CAAC,EAAE,mBAAmB,CAAA;IAC5B,0DAA0D;IAC1D,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC5B,qDAAqD;IACrD,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC/B,uFAAuF;IACvF,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC,SAAS,KAAK,KAAK,CAAC,SAAS,GAAG,IAAI,CAAA;IAC5F,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AA4JD,QAAA,MAAM,UAAU,wFA8Kf,CAAA;AAGD,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
package/dist/shell/sidebar.js
CHANGED
|
@@ -1,103 +1,226 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import * as
|
|
4
|
-
import { useLink as
|
|
5
|
-
import { S as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return /* @__PURE__ */ e(
|
|
11
|
-
|
|
2
|
+
import { jsxs as l, jsx as e, Fragment as y } from "react/jsx-runtime";
|
|
3
|
+
import * as x from "react";
|
|
4
|
+
import { useLink as I } from "./link-context.js";
|
|
5
|
+
import { S as R, a as O, b, c as T, d as W, e as z, f as H, g as U, h as $, i as w, j as C, k, l as A, m as q, n as D, o as E } from "../_chunks/sidebar.js";
|
|
6
|
+
import { Collapsible as J, CollapsibleTrigger as K, CollapsibleContent as Q } from "../ui/collapsible.js";
|
|
7
|
+
import { A as V, a as X, b as Y } from "../_chunks/avatar.js";
|
|
8
|
+
import { c as u } from "../_chunks/utils.js";
|
|
9
|
+
function Z({ className: a }) {
|
|
10
|
+
return /* @__PURE__ */ e(
|
|
11
|
+
"svg",
|
|
12
12
|
{
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14
|
+
width: "16",
|
|
15
|
+
height: "16",
|
|
16
|
+
viewBox: "0 0 24 24",
|
|
17
|
+
fill: "none",
|
|
18
|
+
stroke: "currentColor",
|
|
19
|
+
strokeWidth: "2",
|
|
20
|
+
strokeLinecap: "round",
|
|
21
|
+
strokeLinejoin: "round",
|
|
22
|
+
className: a,
|
|
23
|
+
children: /* @__PURE__ */ e("path", { d: "m9 18 6-6-6-6" })
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
const M = "relative gap-ds-04 rounded-ds-lg px-ds-04 py-ds-03 transition-colors", j = "bg-interactive-subtle text-interactive after:absolute after:right-0 after:top-0 after:h-full after:w-ds-01 after:rounded-l-ds-full after:bg-interactive after:content-['']", L = "text-text-helper hover:bg-layer-02 hover:text-text-primary";
|
|
28
|
+
function _({
|
|
29
|
+
item: a,
|
|
30
|
+
isActive: s,
|
|
31
|
+
isPathActive: p
|
|
32
|
+
}) {
|
|
33
|
+
const o = I(), n = a.badge != null ? typeof a.badge == "number" && a.badge > 99 ? "99+" : String(a.badge) : null;
|
|
34
|
+
if (a.children && a.children.length > 0) {
|
|
35
|
+
const d = a.children.some(
|
|
36
|
+
(r) => p(r.href, r.exact)
|
|
37
|
+
), m = d || s || (a.defaultOpen ?? !1);
|
|
38
|
+
return /* @__PURE__ */ e(J, { defaultOpen: m, className: "group/collapsible", children: /* @__PURE__ */ l(C, { children: [
|
|
39
|
+
/* @__PURE__ */ e(
|
|
40
|
+
k,
|
|
41
|
+
{
|
|
42
|
+
asChild: !0,
|
|
43
|
+
isActive: s || d,
|
|
44
|
+
tooltip: a.title,
|
|
45
|
+
className: u(
|
|
46
|
+
M,
|
|
47
|
+
s || d ? j : L
|
|
48
|
+
),
|
|
49
|
+
children: /* @__PURE__ */ l(
|
|
50
|
+
o,
|
|
51
|
+
{
|
|
52
|
+
href: a.href,
|
|
53
|
+
"aria-label": a.title,
|
|
54
|
+
"aria-current": s ? "page" : void 0,
|
|
55
|
+
children: [
|
|
56
|
+
/* @__PURE__ */ e("span", { className: "[&>svg]:h-ico-md [&>svg]:w-ico-md shrink-0", "aria-hidden": "true", children: a.icon }),
|
|
57
|
+
/* @__PURE__ */ e("span", { className: "text-ds-base", children: a.title })
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
}
|
|
19
62
|
),
|
|
20
|
-
|
|
21
|
-
|
|
63
|
+
n && /* @__PURE__ */ e(A, { children: n }),
|
|
64
|
+
/* @__PURE__ */ e(K, { asChild: !0, children: /* @__PURE__ */ e(
|
|
65
|
+
"button",
|
|
22
66
|
{
|
|
23
|
-
|
|
24
|
-
"aria-label":
|
|
25
|
-
|
|
26
|
-
children: [
|
|
27
|
-
/* @__PURE__ */ e("span", { className: "[&>svg]:h-ico-md [&>svg]:w-ico-md shrink-0", "aria-hidden": "true", children: t.icon }),
|
|
28
|
-
/* @__PURE__ */ e("span", { className: "text-ds-base", children: t.title })
|
|
29
|
-
]
|
|
67
|
+
className: "absolute right-ds-02 top-1/2 flex h-5 w-5 -translate-y-1/2 items-center justify-center rounded-ds-md text-text-helper transition-transform hover:bg-layer-02 hover:text-text-primary group-data-[collapsible=icon]:hidden",
|
|
68
|
+
"aria-label": `Toggle ${a.title}`,
|
|
69
|
+
children: /* @__PURE__ */ e(Z, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90" })
|
|
30
70
|
}
|
|
31
|
-
)
|
|
32
|
-
|
|
33
|
-
|
|
71
|
+
) }),
|
|
72
|
+
/* @__PURE__ */ e(Q, { children: /* @__PURE__ */ e(q, { children: a.children.map((r) => {
|
|
73
|
+
const h = p(r.href, r.exact);
|
|
74
|
+
return /* @__PURE__ */ e(D, { children: /* @__PURE__ */ e(
|
|
75
|
+
E,
|
|
76
|
+
{
|
|
77
|
+
asChild: !0,
|
|
78
|
+
isActive: h,
|
|
79
|
+
children: /* @__PURE__ */ l(
|
|
80
|
+
o,
|
|
81
|
+
{
|
|
82
|
+
href: r.href,
|
|
83
|
+
"aria-current": h ? "page" : void 0,
|
|
84
|
+
children: [
|
|
85
|
+
r.icon && /* @__PURE__ */ e("span", { className: "[&>svg]:h-ico-sm [&>svg]:w-ico-sm shrink-0", "aria-hidden": "true", children: r.icon }),
|
|
86
|
+
/* @__PURE__ */ e("span", { children: r.title })
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
)
|
|
90
|
+
}
|
|
91
|
+
) }, r.href);
|
|
92
|
+
}) }) })
|
|
93
|
+
] }) });
|
|
94
|
+
}
|
|
95
|
+
return /* @__PURE__ */ l(C, { children: [
|
|
96
|
+
/* @__PURE__ */ e(
|
|
97
|
+
k,
|
|
98
|
+
{
|
|
99
|
+
asChild: !0,
|
|
100
|
+
isActive: s,
|
|
101
|
+
tooltip: a.title,
|
|
102
|
+
className: u(
|
|
103
|
+
M,
|
|
104
|
+
s ? j : L
|
|
105
|
+
),
|
|
106
|
+
children: /* @__PURE__ */ l(
|
|
107
|
+
o,
|
|
108
|
+
{
|
|
109
|
+
href: a.href,
|
|
110
|
+
"aria-label": a.title,
|
|
111
|
+
"aria-current": s ? "page" : void 0,
|
|
112
|
+
children: [
|
|
113
|
+
/* @__PURE__ */ e("span", { className: "[&>svg]:h-ico-md [&>svg]:w-ico-md shrink-0", "aria-hidden": "true", children: a.icon }),
|
|
114
|
+
/* @__PURE__ */ e("span", { className: "text-ds-base", children: a.title })
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
)
|
|
118
|
+
}
|
|
119
|
+
),
|
|
120
|
+
n && /* @__PURE__ */ e(A, { children: n })
|
|
121
|
+
] });
|
|
34
122
|
}
|
|
35
|
-
const
|
|
123
|
+
const P = x.forwardRef(
|
|
36
124
|
({
|
|
37
|
-
currentPath:
|
|
38
|
-
user:
|
|
39
|
-
navGroups:
|
|
40
|
-
logo:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
125
|
+
currentPath: a = "/",
|
|
126
|
+
user: s,
|
|
127
|
+
navGroups: p = [],
|
|
128
|
+
logo: o,
|
|
129
|
+
headerSlot: n,
|
|
130
|
+
preFooterSlot: d,
|
|
131
|
+
footerLinks: m = [],
|
|
132
|
+
footer: r,
|
|
133
|
+
renderItem: h,
|
|
134
|
+
className: B,
|
|
135
|
+
...F
|
|
136
|
+
}, G) => {
|
|
137
|
+
var v;
|
|
138
|
+
const f = I(), g = (t, i = !1) => i || t === "/" ? a === t : a.startsWith(t);
|
|
139
|
+
return /* @__PURE__ */ l(
|
|
140
|
+
R,
|
|
49
141
|
{
|
|
50
|
-
...
|
|
51
|
-
ref:
|
|
142
|
+
...F,
|
|
143
|
+
ref: G,
|
|
52
144
|
"aria-label": "Main navigation",
|
|
53
|
-
className:
|
|
145
|
+
className: u(
|
|
54
146
|
"z-raised hidden h-full flex-col border-r border-border bg-layer-01 md:flex",
|
|
55
|
-
|
|
147
|
+
B
|
|
56
148
|
),
|
|
57
149
|
children: [
|
|
58
|
-
/* @__PURE__ */ e(
|
|
59
|
-
|
|
60
|
-
/* @__PURE__ */
|
|
61
|
-
|
|
62
|
-
/* @__PURE__ */ e(
|
|
150
|
+
/* @__PURE__ */ e(O, { className: "px-ds-06 py-ds-06", children: o ?? /* @__PURE__ */ e("span", { className: "text-ds-lg font-semibold text-text-primary", children: "Logo" }) }),
|
|
151
|
+
s && /* @__PURE__ */ l("div", { className: "flex items-center gap-ds-04 px-ds-06 pb-ds-05", children: [
|
|
152
|
+
/* @__PURE__ */ l(V, { className: "h-ds-sm-plus w-ds-sm-plus", children: [
|
|
153
|
+
s.image ? /* @__PURE__ */ e(X, { src: s.image, alt: s.name }) : null,
|
|
154
|
+
/* @__PURE__ */ e(Y, { className: "bg-layer-03 text-text-primary", children: (v = s.name) == null ? void 0 : v.charAt(0).toUpperCase() })
|
|
63
155
|
] }),
|
|
64
|
-
/* @__PURE__ */
|
|
65
|
-
/* @__PURE__ */ e("span", { className: "truncate text-ds-md text-text-primary", children:
|
|
66
|
-
/* @__PURE__ */ e("span", { className: "truncate text-ds-sm text-text-placeholder", children:
|
|
156
|
+
/* @__PURE__ */ l("div", { className: "flex min-w-0 flex-col", children: [
|
|
157
|
+
/* @__PURE__ */ e("span", { className: "truncate text-ds-md text-text-primary", children: s.name }),
|
|
158
|
+
/* @__PURE__ */ e("span", { className: "truncate text-ds-sm text-text-placeholder", children: s.designation || s.role })
|
|
67
159
|
] })
|
|
68
160
|
] }),
|
|
69
|
-
/* @__PURE__ */ e(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
/* @__PURE__ */
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
161
|
+
/* @__PURE__ */ e(b, {}),
|
|
162
|
+
n && /* @__PURE__ */ l(y, { children: [
|
|
163
|
+
n,
|
|
164
|
+
/* @__PURE__ */ e(b, {})
|
|
165
|
+
] }),
|
|
166
|
+
/* @__PURE__ */ e(T, { className: "no-scrollbar px-ds-04", children: p.map((t, i) => /* @__PURE__ */ l("div", { children: [
|
|
167
|
+
i > 0 && /* @__PURE__ */ e(b, {}),
|
|
168
|
+
/* @__PURE__ */ l(W, { children: [
|
|
169
|
+
/* @__PURE__ */ e(z, { className: "px-ds-04 text-ds-sm text-text-placeholder", children: t.label }),
|
|
170
|
+
t.action && /* @__PURE__ */ e(H, { asChild: !0, children: t.action }),
|
|
171
|
+
/* @__PURE__ */ e(U, { children: /* @__PURE__ */ e($, { children: t.items.map((c) => {
|
|
172
|
+
const N = () => /* @__PURE__ */ e(
|
|
173
|
+
_,
|
|
174
|
+
{
|
|
175
|
+
item: c,
|
|
176
|
+
isActive: g(c.href, c.exact),
|
|
177
|
+
isPathActive: g
|
|
178
|
+
}
|
|
179
|
+
);
|
|
180
|
+
if (h) {
|
|
181
|
+
const S = h(c, N);
|
|
182
|
+
if (S !== null)
|
|
183
|
+
return /* @__PURE__ */ e(x.Fragment, { children: S }, c.href);
|
|
184
|
+
}
|
|
185
|
+
return /* @__PURE__ */ e(x.Fragment, { children: N() }, c.href);
|
|
186
|
+
}) }) })
|
|
82
187
|
] })
|
|
83
|
-
] },
|
|
84
|
-
|
|
85
|
-
|
|
188
|
+
] }, t.label)) }),
|
|
189
|
+
d && /* @__PURE__ */ l(y, { children: [
|
|
190
|
+
/* @__PURE__ */ e(b, {}),
|
|
191
|
+
d
|
|
192
|
+
] }),
|
|
193
|
+
r ? /* @__PURE__ */ l(w, { className: "px-ds-06 py-ds-05", children: [
|
|
194
|
+
r.slot && /* @__PURE__ */ e("div", { className: "pb-ds-04", children: r.slot }),
|
|
195
|
+
r.links && r.links.length > 0 && /* @__PURE__ */ e("div", { className: "flex items-center justify-start gap-ds-03", children: r.links.map((t, i) => /* @__PURE__ */ l("div", { className: "flex items-center gap-ds-03", children: [
|
|
196
|
+
i > 0 && /* @__PURE__ */ e("span", { className: "text-text-placeholder", children: "·" }),
|
|
197
|
+
/* @__PURE__ */ e(
|
|
198
|
+
f,
|
|
199
|
+
{
|
|
200
|
+
className: "text-ds-sm text-text-placeholder transition-colors hover:text-interactive",
|
|
201
|
+
href: t.href,
|
|
202
|
+
children: t.label
|
|
203
|
+
}
|
|
204
|
+
)
|
|
205
|
+
] }, t.href)) }),
|
|
206
|
+
r.version && /* @__PURE__ */ e("p", { className: "text-center text-ds-sm text-text-placeholder", children: r.version })
|
|
207
|
+
] }) : m.length > 0 ? /* @__PURE__ */ e(w, { className: "px-ds-06 py-ds-05", children: /* @__PURE__ */ e("div", { className: "flex items-center justify-start gap-ds-03", children: m.map((t, i) => /* @__PURE__ */ l("div", { className: "flex items-center gap-ds-03", children: [
|
|
208
|
+
i > 0 && /* @__PURE__ */ e("div", { className: "h-[16px] w-px bg-border" }),
|
|
86
209
|
/* @__PURE__ */ e(
|
|
87
|
-
|
|
210
|
+
f,
|
|
88
211
|
{
|
|
89
212
|
className: "text-ds-md text-text-placeholder transition-colors hover:text-interactive",
|
|
90
|
-
href:
|
|
91
|
-
children:
|
|
213
|
+
href: t.href,
|
|
214
|
+
children: t.label
|
|
92
215
|
}
|
|
93
216
|
)
|
|
94
|
-
] },
|
|
217
|
+
] }, t.href)) }) }) : null
|
|
95
218
|
]
|
|
96
219
|
}
|
|
97
220
|
);
|
|
98
221
|
}
|
|
99
222
|
);
|
|
100
|
-
|
|
223
|
+
P.displayName = "AppSidebar";
|
|
101
224
|
export {
|
|
102
|
-
|
|
225
|
+
P as AppSidebar
|
|
103
226
|
};
|
package/dist/shell/top-bar.js
CHANGED
|
@@ -5,7 +5,7 @@ import { useColorMode as I } from "../hooks/use-color-mode.js";
|
|
|
5
5
|
import { A as j, a as K, b as F } from "../_chunks/avatar.js";
|
|
6
6
|
import { DropdownMenu as U, DropdownMenuTrigger as B, DropdownMenuContent as E, DropdownMenuItem as a, DropdownMenuSeparator as w } from "../ui/dropdown-menu.js";
|
|
7
7
|
import { a as c, b as n, c as i } from "../_chunks/tooltip.js";
|
|
8
|
-
import {
|
|
8
|
+
import { p as R } from "../_chunks/sidebar.js";
|
|
9
9
|
import { IconSearch as z, IconSparkles as L, IconUser as O, IconSun as P, IconMoon as q, IconLogout as G } from "@tabler/icons-react";
|
|
10
10
|
import { c as d } from "../_chunks/utils.js";
|
|
11
11
|
const H = g.forwardRef(
|