@devalok/shilp-sutra 0.12.0 → 0.14.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/button.js +5 -5
- package/dist/_chunks/card.js +5 -5
- package/dist/_chunks/checkbox.js +3 -3
- package/dist/composed/empty-state.d.ts +3 -1
- package/dist/composed/empty-state.d.ts.map +1 -1
- package/dist/composed/empty-state.js +38 -39
- package/dist/shell/bottom-navbar.js +22 -22
- package/dist/shell/notification-center.d.ts +10 -0
- package/dist/shell/notification-center.d.ts.map +1 -1
- package/dist/shell/notification-center.js +107 -92
- package/dist/shell/sidebar.d.ts +21 -2
- package/dist/shell/sidebar.d.ts.map +1 -1
- package/dist/shell/sidebar.js +200 -141
- package/dist/tailwind/index.cjs +128 -1
- package/dist/tailwind/preset.d.ts.map +1 -1
- package/dist/tailwind/preset.js +128 -1
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/alert.js +28 -26
- package/dist/ui/autocomplete.js +15 -15
- package/dist/ui/badge.js +2 -2
- package/dist/ui/banner.d.ts.map +1 -1
- package/dist/ui/banner.js +23 -21
- package/dist/ui/button.js +9 -9
- package/dist/ui/card.js +4 -4
- package/dist/ui/checkbox.js +4 -4
- package/dist/ui/chip.js +2 -2
- package/dist/ui/collapsible.js +12 -12
- package/dist/ui/combobox.js +20 -20
- package/dist/ui/context-menu.js +5 -5
- package/dist/ui/dropdown-menu.js +4 -4
- package/dist/ui/hover-card.js +9 -9
- package/dist/ui/index.js +352 -350
- package/dist/ui/menubar.js +26 -26
- package/dist/ui/progress.js +22 -22
- package/dist/ui/select.js +1 -1
- package/dist/ui/slider.js +8 -8
- package/dist/ui/stat-card.d.ts.map +1 -1
- package/dist/ui/stat-card.js +14 -14
- package/dist/ui/stepper.js +2 -2
- package/dist/ui/switch.js +1 -1
- package/dist/ui/tabs.js +15 -15
- package/dist/ui/toggle.js +1 -1
- package/llms-full.txt +15 -5
- package/llms.txt +17 -3
- package/package.json +1 -1
package/dist/shell/sidebar.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import * as
|
|
4
|
-
import { useLink as
|
|
5
|
-
import { S as
|
|
6
|
-
import { Collapsible as
|
|
7
|
-
import { A as
|
|
8
|
-
import { c as
|
|
9
|
-
function
|
|
2
|
+
import { jsxs as t, jsx as e, Fragment as k } from "react/jsx-runtime";
|
|
3
|
+
import * as p from "react";
|
|
4
|
+
import { useLink as G } from "./link-context.js";
|
|
5
|
+
import { S as W, a as T, b as u, c as z, d as H, e as U, f as $, g as q, h as E, i as A, j as L, k as M, l as j, m as J, n as K, o as Q } from "../_chunks/sidebar.js";
|
|
6
|
+
import { Collapsible as V, CollapsibleTrigger as X, CollapsibleContent as Y } from "../ui/collapsible.js";
|
|
7
|
+
import { A as Z, a as _, b as P } from "../_chunks/avatar.js";
|
|
8
|
+
import { c as v } from "../_chunks/utils.js";
|
|
9
|
+
function ee({ className: r }) {
|
|
10
10
|
return /* @__PURE__ */ e(
|
|
11
11
|
"svg",
|
|
12
12
|
{
|
|
@@ -19,158 +19,181 @@ function Z({ className: a }) {
|
|
|
19
19
|
strokeWidth: "2",
|
|
20
20
|
strokeLinecap: "round",
|
|
21
21
|
strokeLinejoin: "round",
|
|
22
|
-
className:
|
|
22
|
+
className: r,
|
|
23
23
|
children: /* @__PURE__ */ e("path", { d: "m9 18 6-6-6-6" })
|
|
24
24
|
}
|
|
25
25
|
);
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
function ae({ className: r }) {
|
|
28
|
+
return /* @__PURE__ */ t(
|
|
29
|
+
"svg",
|
|
30
|
+
{
|
|
31
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
32
|
+
width: "16",
|
|
33
|
+
height: "16",
|
|
34
|
+
viewBox: "0 0 24 24",
|
|
35
|
+
fill: "none",
|
|
36
|
+
stroke: "currentColor",
|
|
37
|
+
strokeWidth: "2",
|
|
38
|
+
strokeLinecap: "round",
|
|
39
|
+
strokeLinejoin: "round",
|
|
40
|
+
className: r,
|
|
41
|
+
children: [
|
|
42
|
+
/* @__PURE__ */ e("path", { d: "M18 6 6 18" }),
|
|
43
|
+
/* @__PURE__ */ e("path", { d: "m6 6 12 12" })
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
const I = "relative gap-ds-04 rounded-ds-lg px-ds-04 py-ds-03 transition-colors", B = "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-['']", F = "text-text-helper hover:bg-layer-02 hover:text-text-primary";
|
|
49
|
+
function re({
|
|
50
|
+
item: r,
|
|
51
|
+
isActive: n,
|
|
52
|
+
isPathActive: m
|
|
32
53
|
}) {
|
|
33
|
-
const o =
|
|
34
|
-
if (
|
|
35
|
-
const d =
|
|
36
|
-
(
|
|
37
|
-
),
|
|
38
|
-
return /* @__PURE__ */ e(
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
|
|
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
|
-
}
|
|
62
|
-
),
|
|
63
|
-
n && /* @__PURE__ */ e(A, { children: n }),
|
|
64
|
-
/* @__PURE__ */ e(K, { asChild: !0, children: /* @__PURE__ */ e(
|
|
65
|
-
"button",
|
|
66
|
-
{
|
|
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" })
|
|
70
|
-
}
|
|
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,
|
|
54
|
+
const o = G(), l = r.badge != null ? typeof r.badge == "number" && r.badge > 99 ? "99+" : String(r.badge) : null;
|
|
55
|
+
if (r.children && r.children.length > 0) {
|
|
56
|
+
const d = r.children.some(
|
|
57
|
+
(a) => m(a.href, a.exact)
|
|
58
|
+
), x = d || n || (r.defaultOpen ?? !1);
|
|
59
|
+
return /* @__PURE__ */ e(V, { defaultOpen: x, className: "group/collapsible", children: /* @__PURE__ */ t(L, { children: [
|
|
60
|
+
/* @__PURE__ */ t("div", { className: "relative", children: [
|
|
61
|
+
/* @__PURE__ */ e(
|
|
62
|
+
M,
|
|
76
63
|
{
|
|
77
64
|
asChild: !0,
|
|
78
|
-
isActive:
|
|
79
|
-
|
|
65
|
+
isActive: n || d,
|
|
66
|
+
tooltip: r.title,
|
|
67
|
+
className: v(
|
|
68
|
+
I,
|
|
69
|
+
n || d ? B : F
|
|
70
|
+
),
|
|
71
|
+
children: /* @__PURE__ */ t(
|
|
80
72
|
o,
|
|
81
73
|
{
|
|
82
74
|
href: r.href,
|
|
75
|
+
"aria-label": r.title,
|
|
76
|
+
"aria-current": n ? "page" : void 0,
|
|
77
|
+
children: [
|
|
78
|
+
/* @__PURE__ */ e("span", { className: "[&>svg]:h-ico-md [&>svg]:w-ico-md shrink-0", "aria-hidden": "true", children: r.icon }),
|
|
79
|
+
/* @__PURE__ */ e("span", { className: "text-ds-base", children: r.title })
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
)
|
|
83
|
+
}
|
|
84
|
+
),
|
|
85
|
+
l && /* @__PURE__ */ e(j, { children: l }),
|
|
86
|
+
/* @__PURE__ */ e(X, { asChild: !0, children: /* @__PURE__ */ e(
|
|
87
|
+
"button",
|
|
88
|
+
{
|
|
89
|
+
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-colors hover:bg-layer-02 hover:text-text-primary group-data-[collapsible=icon]:hidden",
|
|
90
|
+
"aria-label": `Toggle ${r.title}`,
|
|
91
|
+
children: /* @__PURE__ */ e(ee, { className: "h-4 w-4 transition-transform duration-fast-02 ease-productive-standard group-data-[state=open]/collapsible:rotate-90" })
|
|
92
|
+
}
|
|
93
|
+
) })
|
|
94
|
+
] }),
|
|
95
|
+
/* @__PURE__ */ e(Y, { className: "overflow-hidden data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down", children: /* @__PURE__ */ e(J, { children: r.children.map((a) => {
|
|
96
|
+
const h = m(a.href, a.exact);
|
|
97
|
+
return /* @__PURE__ */ e(K, { children: /* @__PURE__ */ e(
|
|
98
|
+
Q,
|
|
99
|
+
{
|
|
100
|
+
asChild: !0,
|
|
101
|
+
isActive: h,
|
|
102
|
+
children: /* @__PURE__ */ t(
|
|
103
|
+
o,
|
|
104
|
+
{
|
|
105
|
+
href: a.href,
|
|
83
106
|
"aria-current": h ? "page" : void 0,
|
|
84
107
|
children: [
|
|
85
|
-
|
|
86
|
-
/* @__PURE__ */ e("span", { children:
|
|
108
|
+
a.icon && /* @__PURE__ */ e("span", { className: "[&>svg]:h-ico-sm [&>svg]:w-ico-sm shrink-0", "aria-hidden": "true", children: a.icon }),
|
|
109
|
+
/* @__PURE__ */ e("span", { children: a.title })
|
|
87
110
|
]
|
|
88
111
|
}
|
|
89
112
|
)
|
|
90
113
|
}
|
|
91
|
-
) },
|
|
114
|
+
) }, a.href);
|
|
92
115
|
}) }) })
|
|
93
116
|
] }) });
|
|
94
117
|
}
|
|
95
|
-
return /* @__PURE__ */
|
|
118
|
+
return /* @__PURE__ */ t(L, { children: [
|
|
96
119
|
/* @__PURE__ */ e(
|
|
97
|
-
|
|
120
|
+
M,
|
|
98
121
|
{
|
|
99
122
|
asChild: !0,
|
|
100
|
-
isActive:
|
|
101
|
-
tooltip:
|
|
102
|
-
className:
|
|
103
|
-
|
|
104
|
-
|
|
123
|
+
isActive: n,
|
|
124
|
+
tooltip: r.title,
|
|
125
|
+
className: v(
|
|
126
|
+
I,
|
|
127
|
+
n ? B : F
|
|
105
128
|
),
|
|
106
|
-
children: /* @__PURE__ */
|
|
129
|
+
children: /* @__PURE__ */ t(
|
|
107
130
|
o,
|
|
108
131
|
{
|
|
109
|
-
href:
|
|
110
|
-
"aria-label":
|
|
111
|
-
"aria-current":
|
|
132
|
+
href: r.href,
|
|
133
|
+
"aria-label": r.title,
|
|
134
|
+
"aria-current": n ? "page" : void 0,
|
|
112
135
|
children: [
|
|
113
|
-
/* @__PURE__ */ e("span", { className: "[&>svg]:h-ico-md [&>svg]:w-ico-md shrink-0", "aria-hidden": "true", children:
|
|
114
|
-
/* @__PURE__ */ e("span", { className: "text-ds-base", children:
|
|
136
|
+
/* @__PURE__ */ e("span", { className: "[&>svg]:h-ico-md [&>svg]:w-ico-md shrink-0", "aria-hidden": "true", children: r.icon }),
|
|
137
|
+
/* @__PURE__ */ e("span", { className: "text-ds-base", children: r.title })
|
|
115
138
|
]
|
|
116
139
|
}
|
|
117
140
|
)
|
|
118
141
|
}
|
|
119
142
|
),
|
|
120
|
-
|
|
143
|
+
l && /* @__PURE__ */ e(j, { children: l })
|
|
121
144
|
] });
|
|
122
145
|
}
|
|
123
|
-
const
|
|
146
|
+
const te = p.forwardRef(
|
|
124
147
|
({
|
|
125
|
-
currentPath:
|
|
126
|
-
user:
|
|
127
|
-
navGroups:
|
|
148
|
+
currentPath: r = "/",
|
|
149
|
+
user: n,
|
|
150
|
+
navGroups: m = [],
|
|
128
151
|
logo: o,
|
|
129
|
-
headerSlot:
|
|
152
|
+
headerSlot: l,
|
|
130
153
|
preFooterSlot: d,
|
|
131
|
-
footerLinks:
|
|
132
|
-
footer:
|
|
154
|
+
footerLinks: x = [],
|
|
155
|
+
footer: a,
|
|
133
156
|
renderItem: h,
|
|
134
|
-
className:
|
|
135
|
-
...
|
|
136
|
-
},
|
|
137
|
-
var
|
|
138
|
-
const
|
|
139
|
-
return /* @__PURE__ */
|
|
140
|
-
|
|
157
|
+
className: R,
|
|
158
|
+
...D
|
|
159
|
+
}, O) => {
|
|
160
|
+
var f, N, w, y;
|
|
161
|
+
const b = G(), g = (s, i = !1) => i || s === "/" ? r === s : r.startsWith(s);
|
|
162
|
+
return /* @__PURE__ */ t(
|
|
163
|
+
W,
|
|
141
164
|
{
|
|
142
|
-
...
|
|
143
|
-
ref:
|
|
165
|
+
...D,
|
|
166
|
+
ref: O,
|
|
144
167
|
"aria-label": "Main navigation",
|
|
145
|
-
className:
|
|
168
|
+
className: v(
|
|
146
169
|
"z-raised hidden h-full flex-col border-r border-border bg-layer-01 md:flex",
|
|
147
|
-
|
|
170
|
+
R
|
|
148
171
|
),
|
|
149
172
|
children: [
|
|
150
|
-
/* @__PURE__ */ e(
|
|
151
|
-
|
|
152
|
-
/* @__PURE__ */
|
|
153
|
-
|
|
154
|
-
/* @__PURE__ */ e(
|
|
173
|
+
/* @__PURE__ */ e(T, { className: "px-ds-06 py-ds-06", children: o ?? /* @__PURE__ */ e("span", { className: "text-ds-lg font-semibold text-text-primary", children: "Logo" }) }),
|
|
174
|
+
n && /* @__PURE__ */ t("div", { className: "flex items-center gap-ds-04 px-ds-06 pb-ds-05", children: [
|
|
175
|
+
/* @__PURE__ */ t(Z, { className: "h-ds-sm-plus w-ds-sm-plus", children: [
|
|
176
|
+
n.image ? /* @__PURE__ */ e(_, { src: n.image, alt: n.name }) : null,
|
|
177
|
+
/* @__PURE__ */ e(P, { className: "bg-layer-03 text-text-primary", children: (f = n.name) == null ? void 0 : f.charAt(0).toUpperCase() })
|
|
155
178
|
] }),
|
|
156
|
-
/* @__PURE__ */
|
|
157
|
-
/* @__PURE__ */ e("span", { className: "truncate text-ds-md text-text-primary", children:
|
|
158
|
-
/* @__PURE__ */ e("span", { className: "truncate text-ds-sm text-text-placeholder", children:
|
|
179
|
+
/* @__PURE__ */ t("div", { className: "flex min-w-0 flex-col", children: [
|
|
180
|
+
/* @__PURE__ */ e("span", { className: "truncate text-ds-md text-text-primary", children: n.name }),
|
|
181
|
+
/* @__PURE__ */ e("span", { className: "truncate text-ds-sm text-text-placeholder", children: n.designation || n.role })
|
|
159
182
|
] })
|
|
160
183
|
] }),
|
|
161
|
-
/* @__PURE__ */ e(
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
/* @__PURE__ */ e(
|
|
184
|
+
/* @__PURE__ */ e(u, {}),
|
|
185
|
+
l && /* @__PURE__ */ t(k, { children: [
|
|
186
|
+
l,
|
|
187
|
+
/* @__PURE__ */ e(u, {})
|
|
165
188
|
] }),
|
|
166
|
-
/* @__PURE__ */ e(
|
|
167
|
-
i > 0 && /* @__PURE__ */ e(
|
|
168
|
-
/* @__PURE__ */
|
|
169
|
-
/* @__PURE__ */ e(
|
|
170
|
-
|
|
171
|
-
/* @__PURE__ */ e(
|
|
172
|
-
const
|
|
173
|
-
|
|
189
|
+
/* @__PURE__ */ e(z, { className: "no-scrollbar px-ds-04", children: m.map((s, i) => /* @__PURE__ */ t("div", { children: [
|
|
190
|
+
i > 0 && /* @__PURE__ */ e(u, {}),
|
|
191
|
+
/* @__PURE__ */ t(H, { children: [
|
|
192
|
+
/* @__PURE__ */ e(U, { className: "px-ds-04 text-ds-sm text-text-placeholder", children: s.label }),
|
|
193
|
+
s.action && /* @__PURE__ */ e($, { asChild: !0, children: s.action }),
|
|
194
|
+
/* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(E, { children: s.items.map((c) => {
|
|
195
|
+
const C = () => /* @__PURE__ */ e(
|
|
196
|
+
re,
|
|
174
197
|
{
|
|
175
198
|
item: c,
|
|
176
199
|
isActive: g(c.href, c.exact),
|
|
@@ -178,49 +201,85 @@ const P = x.forwardRef(
|
|
|
178
201
|
}
|
|
179
202
|
);
|
|
180
203
|
if (h) {
|
|
181
|
-
const S = h(c,
|
|
204
|
+
const S = h(c, C);
|
|
182
205
|
if (S !== null)
|
|
183
|
-
return /* @__PURE__ */ e(
|
|
206
|
+
return /* @__PURE__ */ e(p.Fragment, { children: S }, c.href);
|
|
184
207
|
}
|
|
185
|
-
return /* @__PURE__ */ e(
|
|
208
|
+
return /* @__PURE__ */ e(p.Fragment, { children: C() }, c.href);
|
|
186
209
|
}) }) })
|
|
187
210
|
] })
|
|
188
|
-
] },
|
|
189
|
-
d && /* @__PURE__ */
|
|
190
|
-
/* @__PURE__ */ e(
|
|
211
|
+
] }, s.label)) }),
|
|
212
|
+
d && /* @__PURE__ */ t(k, { children: [
|
|
213
|
+
/* @__PURE__ */ e(u, {}),
|
|
191
214
|
d
|
|
192
215
|
] }),
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
f,
|
|
216
|
+
a ? /* @__PURE__ */ t(A, { className: "gap-ds-03 px-ds-06 py-ds-05", children: [
|
|
217
|
+
a.slot && /* @__PURE__ */ e("div", { children: a.slot }),
|
|
218
|
+
a.promo && /* @__PURE__ */ t("div", { className: "relative rounded-ds-lg border border-border-subtle bg-layer-02 p-ds-04", children: [
|
|
219
|
+
a.promo.onDismiss && /* @__PURE__ */ e(
|
|
220
|
+
"button",
|
|
199
221
|
{
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
222
|
+
onClick: a.promo.onDismiss,
|
|
223
|
+
"aria-label": "Dismiss",
|
|
224
|
+
className: "absolute right-ds-02 top-ds-02 flex h-5 w-5 items-center justify-center rounded-ds-md text-text-helper transition-colors hover:bg-layer-03 hover:text-text-primary",
|
|
225
|
+
children: /* @__PURE__ */ e(ae, { className: "h-3.5 w-3.5" })
|
|
203
226
|
}
|
|
204
|
-
)
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
227
|
+
),
|
|
228
|
+
/* @__PURE__ */ t("div", { className: "flex flex-col gap-ds-03", children: [
|
|
229
|
+
a.promo.icon && /* @__PURE__ */ e("span", { className: "text-interactive [&>svg]:h-ico-md [&>svg]:w-ico-md", "aria-hidden": "true", children: a.promo.icon }),
|
|
230
|
+
/* @__PURE__ */ t("div", { className: "flex min-w-0 flex-col gap-ds-03", children: [
|
|
231
|
+
/* @__PURE__ */ e("p", { className: "text-ds-sm text-text-primary", children: a.promo.text }),
|
|
232
|
+
a.promo.action && (a.promo.action.href ? /* @__PURE__ */ e(
|
|
233
|
+
b,
|
|
234
|
+
{
|
|
235
|
+
href: a.promo.action.href,
|
|
236
|
+
onClick: a.promo.action.onClick,
|
|
237
|
+
className: "inline-flex self-start rounded-ds-md bg-interactive px-ds-04 py-ds-02 text-ds-sm font-medium text-text-on-color transition-colors hover:bg-interactive-hover",
|
|
238
|
+
children: a.promo.action.label
|
|
239
|
+
}
|
|
240
|
+
) : /* @__PURE__ */ e(
|
|
241
|
+
"button",
|
|
242
|
+
{
|
|
243
|
+
onClick: a.promo.action.onClick,
|
|
244
|
+
className: "inline-flex self-start rounded-ds-md bg-interactive px-ds-04 py-ds-02 text-ds-sm font-medium text-text-on-color transition-colors hover:bg-interactive-hover",
|
|
245
|
+
children: a.promo.action.label
|
|
246
|
+
}
|
|
247
|
+
))
|
|
248
|
+
] })
|
|
249
|
+
] })
|
|
250
|
+
] }),
|
|
251
|
+
(((N = a.links) == null ? void 0 : N.length) || a.version) && /* @__PURE__ */ t("div", { className: "flex items-center gap-ds-03 text-ds-sm text-text-placeholder", children: [
|
|
252
|
+
(w = a.links) == null ? void 0 : w.map((s, i) => /* @__PURE__ */ t(p.Fragment, { children: [
|
|
253
|
+
i > 0 && /* @__PURE__ */ e("span", { children: "·" }),
|
|
254
|
+
/* @__PURE__ */ e(
|
|
255
|
+
b,
|
|
256
|
+
{
|
|
257
|
+
className: "transition-colors hover:text-interactive",
|
|
258
|
+
href: s.href,
|
|
259
|
+
children: s.label
|
|
260
|
+
}
|
|
261
|
+
)
|
|
262
|
+
] }, s.href)),
|
|
263
|
+
((y = a.links) == null ? void 0 : y.length) && a.version && /* @__PURE__ */ e("span", { children: "·" }),
|
|
264
|
+
a.version && (typeof a.version == "string" ? /* @__PURE__ */ e("span", { children: a.version }) : /* @__PURE__ */ e(b, { className: "transition-colors hover:text-interactive", href: a.version.href, children: a.version.label }))
|
|
265
|
+
] })
|
|
266
|
+
] }) : x.length > 0 ? /* @__PURE__ */ e(A, { className: "px-ds-06 py-ds-05", children: /* @__PURE__ */ e("div", { className: "flex items-center gap-ds-03 text-ds-sm text-text-placeholder", children: x.map((s, i) => /* @__PURE__ */ t(p.Fragment, { children: [
|
|
267
|
+
i > 0 && /* @__PURE__ */ e("span", { children: "·" }),
|
|
209
268
|
/* @__PURE__ */ e(
|
|
210
|
-
|
|
269
|
+
b,
|
|
211
270
|
{
|
|
212
|
-
className: "
|
|
213
|
-
href:
|
|
214
|
-
children:
|
|
271
|
+
className: "transition-colors hover:text-interactive",
|
|
272
|
+
href: s.href,
|
|
273
|
+
children: s.label
|
|
215
274
|
}
|
|
216
275
|
)
|
|
217
|
-
] },
|
|
276
|
+
] }, s.href)) }) }) : null
|
|
218
277
|
]
|
|
219
278
|
}
|
|
220
279
|
);
|
|
221
280
|
}
|
|
222
281
|
);
|
|
223
|
-
|
|
282
|
+
te.displayName = "AppSidebar";
|
|
224
283
|
export {
|
|
225
|
-
|
|
284
|
+
te as AppSidebar
|
|
226
285
|
};
|
package/dist/tailwind/index.cjs
CHANGED
|
@@ -326,6 +326,110 @@ const a = {
|
|
|
326
326
|
lift: {
|
|
327
327
|
"0%": { transform: "scale(1) translateY(0)" },
|
|
328
328
|
"100%": { transform: "scale(1.03) translateY(-2px)" }
|
|
329
|
+
},
|
|
330
|
+
"slide-down": {
|
|
331
|
+
"0%": { opacity: "0", transform: "translateY(-8px)" },
|
|
332
|
+
"100%": { opacity: "1", transform: "translateY(0)" }
|
|
333
|
+
},
|
|
334
|
+
"slide-left": {
|
|
335
|
+
"0%": { opacity: "0", transform: "translateX(20px)" },
|
|
336
|
+
"100%": { opacity: "1", transform: "translateX(0)" }
|
|
337
|
+
},
|
|
338
|
+
"slide-out-up": {
|
|
339
|
+
"0%": { opacity: "1", transform: "translateY(0)" },
|
|
340
|
+
"100%": { opacity: "0", transform: "translateY(-8px)" }
|
|
341
|
+
},
|
|
342
|
+
"slide-out-down": {
|
|
343
|
+
"0%": { opacity: "1", transform: "translateY(0)" },
|
|
344
|
+
"100%": { opacity: "0", transform: "translateY(8px)" }
|
|
345
|
+
},
|
|
346
|
+
"check-pop": {
|
|
347
|
+
"0%": { transform: "scale(0)" },
|
|
348
|
+
"60%": { transform: "scale(1.2)" },
|
|
349
|
+
"100%": { transform: "scale(1)" }
|
|
350
|
+
},
|
|
351
|
+
"tab-indicator": {
|
|
352
|
+
"0%": { transform: "scaleX(0)", transformOrigin: "left" },
|
|
353
|
+
"100%": { transform: "scaleX(1)", transformOrigin: "left" }
|
|
354
|
+
},
|
|
355
|
+
"count-up": {
|
|
356
|
+
"0%": { opacity: "0", transform: "translateY(100%)" },
|
|
357
|
+
"100%": { opacity: "1", transform: "translateY(0)" }
|
|
358
|
+
},
|
|
359
|
+
wiggle: {
|
|
360
|
+
"0%, 100%": { transform: "rotate(0deg)" },
|
|
361
|
+
"20%": { transform: "rotate(-3deg)" },
|
|
362
|
+
"40%": { transform: "rotate(3deg)" },
|
|
363
|
+
"60%": { transform: "rotate(-1deg)" },
|
|
364
|
+
"80%": { transform: "rotate(1deg)" }
|
|
365
|
+
},
|
|
366
|
+
"pulse-ring": {
|
|
367
|
+
"0%": { boxShadow: "0 0 0 0 currentColor", opacity: "0.4" },
|
|
368
|
+
"100%": { boxShadow: "0 0 0 6px currentColor", opacity: "0" }
|
|
369
|
+
},
|
|
370
|
+
"rubber-band": {
|
|
371
|
+
"0%": { transform: "scaleX(1)" },
|
|
372
|
+
"20%": { transform: "scaleX(1.15)" },
|
|
373
|
+
"40%": { transform: "scaleX(0.9)" },
|
|
374
|
+
"60%": { transform: "scaleX(1.05)" },
|
|
375
|
+
"80%": { transform: "scaleX(0.98)" },
|
|
376
|
+
"100%": { transform: "scaleX(1)" }
|
|
377
|
+
},
|
|
378
|
+
"collapse-out": {
|
|
379
|
+
"0%": { gridTemplateRows: "1fr", opacity: "1" },
|
|
380
|
+
"100%": { gridTemplateRows: "0fr", opacity: "0" }
|
|
381
|
+
},
|
|
382
|
+
"expand-in": {
|
|
383
|
+
"0%": { gridTemplateRows: "0fr", opacity: "0" },
|
|
384
|
+
"100%": { gridTemplateRows: "1fr", opacity: "1" }
|
|
385
|
+
},
|
|
386
|
+
"accordion-down": {
|
|
387
|
+
"0%": { height: "0", opacity: "0" },
|
|
388
|
+
"100%": { height: "var(--radix-accordion-content-height)", opacity: "1" }
|
|
389
|
+
},
|
|
390
|
+
"accordion-up": {
|
|
391
|
+
"0%": { height: "var(--radix-accordion-content-height)", opacity: "1" },
|
|
392
|
+
"100%": { height: "0", opacity: "0" }
|
|
393
|
+
},
|
|
394
|
+
"collapsible-down": {
|
|
395
|
+
"0%": { height: "0", opacity: "0" },
|
|
396
|
+
"100%": { height: "var(--radix-collapsible-content-height)", opacity: "1" }
|
|
397
|
+
},
|
|
398
|
+
"collapsible-up": {
|
|
399
|
+
"0%": { height: "var(--radix-collapsible-content-height)", opacity: "1" },
|
|
400
|
+
"100%": { height: "0", opacity: "0" }
|
|
401
|
+
},
|
|
402
|
+
"shimmer-sweep": {
|
|
403
|
+
"0%": { backgroundPosition: "-200% 0" },
|
|
404
|
+
"100%": { backgroundPosition: "200% 0" }
|
|
405
|
+
},
|
|
406
|
+
"swing-in": {
|
|
407
|
+
"0%": { opacity: "0", transform: "perspective(800px) rotateX(-60deg)" },
|
|
408
|
+
"70%": { opacity: "1", transform: "perspective(800px) rotateX(5deg)" },
|
|
409
|
+
"100%": { opacity: "1", transform: "perspective(800px) rotateX(0deg)" }
|
|
410
|
+
},
|
|
411
|
+
"pop-in": {
|
|
412
|
+
"0%": { opacity: "0", transform: "scale(0.5)" },
|
|
413
|
+
"70%": { opacity: "1", transform: "scale(1.05)" },
|
|
414
|
+
"100%": { opacity: "1", transform: "scale(1)" }
|
|
415
|
+
},
|
|
416
|
+
float: {
|
|
417
|
+
"0%, 100%": { transform: "translateY(0)" },
|
|
418
|
+
"50%": { transform: "translateY(-4px)" }
|
|
419
|
+
},
|
|
420
|
+
"subtle-bounce": {
|
|
421
|
+
"0%": { transform: "translateY(0)" },
|
|
422
|
+
"40%": { transform: "translateY(-2px)" },
|
|
423
|
+
"100%": { transform: "translateY(0)" }
|
|
424
|
+
},
|
|
425
|
+
"spin-in": {
|
|
426
|
+
"0%": { opacity: "0", transform: "rotate(0deg) scale(0)" },
|
|
427
|
+
"100%": { opacity: "1", transform: "rotate(360deg) scale(1)" }
|
|
428
|
+
},
|
|
429
|
+
stamp: {
|
|
430
|
+
"0%": { opacity: "0.5", transform: "scale(1.4)" },
|
|
431
|
+
"60%": { opacity: "1", transform: "scale(0.95)" },
|
|
432
|
+
"100%": { opacity: "1", transform: "scale(1)" }
|
|
329
433
|
}
|
|
330
434
|
},
|
|
331
435
|
animation: {
|
|
@@ -343,7 +447,30 @@ const a = {
|
|
|
343
447
|
"scale-out": "scale-out var(--duration-moderate-01) var(--ease-expressive-exit) both",
|
|
344
448
|
"glow-pulse": "glow-pulse var(--duration-slow-01) var(--ease-expressive-standard) 1",
|
|
345
449
|
"scale-bounce": "scale-bounce var(--duration-moderate-02) var(--ease-bounce) both",
|
|
346
|
-
lift: "lift var(--duration-moderate-02) var(--ease-expressive-entrance) both"
|
|
450
|
+
lift: "lift var(--duration-moderate-02) var(--ease-expressive-entrance) both",
|
|
451
|
+
"slide-down": "slide-down var(--duration-moderate-02) var(--ease-expressive-entrance) both",
|
|
452
|
+
"slide-left": "slide-left var(--duration-moderate-02) var(--ease-expressive-entrance) both",
|
|
453
|
+
"slide-out-up": "slide-out-up var(--duration-moderate-01) var(--ease-expressive-exit) both",
|
|
454
|
+
"slide-out-down": "slide-out-down var(--duration-moderate-01) var(--ease-expressive-exit) both",
|
|
455
|
+
"check-pop": "check-pop var(--duration-moderate-02) var(--ease-bounce) both",
|
|
456
|
+
"tab-indicator": "tab-indicator var(--duration-moderate-01) var(--ease-expressive-entrance) both",
|
|
457
|
+
"count-up": "count-up var(--duration-moderate-02) var(--ease-expressive-entrance) both",
|
|
458
|
+
wiggle: "wiggle var(--duration-moderate-02) var(--ease-productive-standard) both",
|
|
459
|
+
"pulse-ring": "pulse-ring var(--duration-slow-01) var(--ease-expressive-standard) infinite",
|
|
460
|
+
"rubber-band": "rubber-band var(--duration-moderate-02) var(--ease-productive-standard) both",
|
|
461
|
+
"collapse-out": "collapse-out var(--duration-moderate-01) var(--ease-productive-exit) both",
|
|
462
|
+
"expand-in": "expand-in var(--duration-moderate-02) var(--ease-expressive-entrance) both",
|
|
463
|
+
"accordion-down": "accordion-down var(--duration-moderate-02) var(--ease-expressive-entrance) both",
|
|
464
|
+
"accordion-up": "accordion-up var(--duration-moderate-01) var(--ease-productive-exit) both",
|
|
465
|
+
"collapsible-down": "collapsible-down var(--duration-moderate-02) var(--ease-expressive-entrance) both",
|
|
466
|
+
"collapsible-up": "collapsible-up var(--duration-moderate-01) var(--ease-productive-exit) both",
|
|
467
|
+
"shimmer-sweep": "shimmer-sweep var(--duration-slow-02) var(--ease-linear) infinite",
|
|
468
|
+
"swing-in": "swing-in var(--duration-moderate-02) var(--ease-expressive-entrance) both",
|
|
469
|
+
"pop-in": "pop-in var(--duration-moderate-02) var(--ease-bounce) both",
|
|
470
|
+
float: "float 3s var(--ease-expressive-standard) infinite",
|
|
471
|
+
"subtle-bounce": "subtle-bounce var(--duration-fast-02) var(--ease-bounce) both",
|
|
472
|
+
"spin-in": "spin-in var(--duration-moderate-02) var(--ease-expressive-entrance) both",
|
|
473
|
+
stamp: "stamp var(--duration-moderate-02) var(--ease-bounce) both"
|
|
347
474
|
},
|
|
348
475
|
backgroundImage: {
|
|
349
476
|
"gradient-brand": "var(--gradient-brand-light)",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preset.d.ts","sourceRoot":"","sources":["../../src/tailwind/preset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEzC,QAAA,MAAM,MAAM,EAAE,OAAO,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"preset.d.ts","sourceRoot":"","sources":["../../src/tailwind/preset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEzC,QAAA,MAAM,MAAM,EAAE,OAAO,CAAC,MAAM,CAohB3B,CAAA;AAED,eAAe,MAAM,CAAA"}
|