@snksergio/design-system 0.40.0 → 0.41.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-lib/chunks/{avatar-DQYiVRlE.mjs → avatar-DFWEwBKu.mjs} +101 -51
- package/dist-lib/chunks/avatar-DFWEwBKu.mjs.map +1 -0
- package/dist-lib/chunks/{avatar-BiaG9OJS.cjs → avatar-eM5txRFZ.cjs} +53 -1
- package/dist-lib/chunks/avatar-eM5txRFZ.cjs.map +1 -0
- package/dist-lib/chunks/{input-CaC0B-_v.mjs → input-CfmzMYtd.mjs} +2 -2
- package/dist-lib/chunks/{input-CaC0B-_v.mjs.map → input-CfmzMYtd.mjs.map} +1 -1
- package/dist-lib/chunks/{input-DMH5rSP1.cjs → input-az2SuVXQ.cjs} +2 -2
- package/dist-lib/chunks/{input-DMH5rSP1.cjs.map → input-az2SuVXQ.cjs.map} +1 -1
- package/dist-lib/chunks/{kpi-delta-NnEu4oIs.cjs → kpi-delta-DAfakvFp.cjs} +3 -3
- package/dist-lib/chunks/{kpi-delta-NnEu4oIs.cjs.map → kpi-delta-DAfakvFp.cjs.map} +1 -1
- package/dist-lib/chunks/{kpi-delta-CjR0OsdC.mjs → kpi-delta-DaDwKOaP.mjs} +3 -3
- package/dist-lib/chunks/{kpi-delta-CjR0OsdC.mjs.map → kpi-delta-DaDwKOaP.mjs.map} +1 -1
- package/dist-lib/chunks/{page-header-DEGbgT4w.mjs → page-header--cPS_Z-a.mjs} +2 -2
- package/dist-lib/chunks/{page-header-DEGbgT4w.mjs.map → page-header--cPS_Z-a.mjs.map} +1 -1
- package/dist-lib/chunks/{page-header-Cp_9Wog4.cjs → page-header-DvAJoEfb.cjs} +2 -2
- package/dist-lib/chunks/{page-header-Cp_9Wog4.cjs.map → page-header-DvAJoEfb.cjs.map} +1 -1
- package/dist-lib/chunks/{panel-B1xKDbjB.mjs → panel-Bje0kUTh.mjs} +5 -5
- package/dist-lib/chunks/{panel-B1xKDbjB.mjs.map → panel-Bje0kUTh.mjs.map} +1 -1
- package/dist-lib/chunks/{panel-ma7e3s4C.cjs → panel-DtU3KlKY.cjs} +5 -5
- package/dist-lib/chunks/{panel-ma7e3s4C.cjs.map → panel-DtU3KlKY.cjs.map} +1 -1
- package/dist-lib/chunks/{textarea-DivoQmJw.mjs → textarea-BPRIHZVd.mjs} +2 -2
- package/dist-lib/chunks/{textarea-DivoQmJw.mjs.map → textarea-BPRIHZVd.mjs.map} +1 -1
- package/dist-lib/chunks/{textarea-c80RFmMP.cjs → textarea-K20CL_gF.cjs} +2 -2
- package/dist-lib/chunks/{textarea-c80RFmMP.cjs.map → textarea-K20CL_gF.cjs.map} +1 -1
- package/dist-lib/chunks/{tooltip-pvZ_X-Ub.cjs → toggle-group-BEPs3e0Y.cjs} +2 -54
- package/dist-lib/chunks/toggle-group-BEPs3e0Y.cjs.map +1 -0
- package/dist-lib/chunks/{tooltip-mMF4YHZg.mjs → toggle-group-XMO6ReVo.mjs} +77 -127
- package/dist-lib/chunks/toggle-group-XMO6ReVo.mjs.map +1 -0
- package/dist-lib/chunks/{useTheme-BD0nloAv.cjs → useTheme-3iZAognE.cjs} +876 -73
- package/dist-lib/chunks/useTheme-3iZAognE.cjs.map +1 -0
- package/dist-lib/chunks/{useTheme-D1QVzZDW.mjs → useTheme-B3ZakPqk.mjs} +886 -83
- package/dist-lib/chunks/useTheme-B3ZakPqk.mjs.map +1 -0
- package/dist-lib/index.cjs +40 -732
- package/dist-lib/index.cjs.map +1 -1
- package/dist-lib/index.mjs +94 -786
- package/dist-lib/index.mjs.map +1 -1
- package/dist-lib/preview/chat.cjs +3 -3
- package/dist-lib/preview/chat.mjs +3 -3
- package/dist-lib/preview/clientes.cjs +6 -6
- package/dist-lib/preview/clientes.mjs +6 -6
- package/dist-lib/preview/dashboard.cjs +4 -4
- package/dist-lib/preview/dashboard.mjs +4 -4
- package/dist-lib/shadcn.cjs +112 -112
- package/dist-lib/shadcn.mjs +136 -136
- package/dist-lib/src/components/ui/AppShell/app-shell.d.ts +1 -1
- package/dist-lib/src/components/ui/AppShell/app-shell.d.ts.map +1 -1
- package/dist-lib/src/components/ui/AppShell/app-shell.styles.d.ts +45 -1
- package/dist-lib/src/components/ui/AppShell/app-shell.styles.d.ts.map +1 -1
- package/dist-lib/src/components/ui/AppShell/app-shell.types.d.ts +106 -3
- package/dist-lib/src/components/ui/AppShell/app-shell.types.d.ts.map +1 -1
- package/dist-lib/src/components/ui/MenuSidebar/index.d.ts +2 -2
- package/dist-lib/src/components/ui/MenuSidebar/index.d.ts.map +1 -1
- package/dist-lib/src/components/ui/SingleMenuSidebar/category.d.ts +1 -1
- package/dist-lib/src/components/ui/SingleMenuSidebar/category.d.ts.map +1 -1
- package/dist-lib/src/components/ui/SingleMenuSidebar/menu-item.d.ts +25 -1
- package/dist-lib/src/components/ui/SingleMenuSidebar/menu-item.d.ts.map +1 -1
- package/dist-lib/src/components/ui/SingleMenuSidebar/single-menu-sidebar.d.ts +1 -1
- package/dist-lib/src/components/ui/SingleMenuSidebar/single-menu-sidebar.d.ts.map +1 -1
- package/dist-lib/src/components/ui/SingleMenuSidebar/single-menu-sidebar.types.d.ts +57 -2
- package/dist-lib/src/components/ui/SingleMenuSidebar/single-menu-sidebar.types.d.ts.map +1 -1
- package/dist-lib/src/utils/nav-link.d.ts.map +1 -0
- package/package.json +207 -207
- package/dist-lib/chunks/avatar-BiaG9OJS.cjs.map +0 -1
- package/dist-lib/chunks/avatar-DQYiVRlE.mjs.map +0 -1
- package/dist-lib/chunks/tooltip-mMF4YHZg.mjs.map +0 -1
- package/dist-lib/chunks/tooltip-pvZ_X-Ub.cjs.map +0 -1
- package/dist-lib/chunks/useTheme-BD0nloAv.cjs.map +0 -1
- package/dist-lib/chunks/useTheme-D1QVzZDW.mjs.map +0 -1
- package/dist-lib/src/components/ui/MenuSidebar/nav-link.d.ts.map +0 -1
- /package/dist-lib/src/{components/ui/MenuSidebar → utils}/nav-link.d.ts +0 -0
package/dist-lib/shadcn.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A, a, b, c, d, e, f, B, g, h, i, j, k, l, m, C, n, o, p, q, r, s, t, u, v, w, x, y, z, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, aK
|
|
2
|
-
import { A as A2, a as a10, b as b2, c as c2, d as d2, e as e2, f as f2, g as g2, h as h2, i as i2, j as j2, C as C2, k as k2, l as l2, P as P2, m as m2, n as n2, o as o2, p as p2, q as q2, r as r2, s as s2, t as t2, S as S2, u as u2, v as v2, w as w2, x as x2, y as y2, z as z2, B as B2, D as D2, E as E2, F as F2, G as G2, H as H2, I as I2, J as J2, K as K2, L as L2, M as M2, N as N2, O as O2, Q as Q2, T as T2, R as R2, U as U2, V as V2, W as W2 } from "./chunks/textarea-
|
|
1
|
+
import { A, a, b, c, d, e, f, B, g, h, i, j, k, l, m, C, n, o, p, q, r, s, t, u, v, w, x, y, z, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, aK } from "./chunks/toggle-group-XMO6ReVo.mjs";
|
|
2
|
+
import { A as A2, a as a10, b as b2, c as c2, d as d2, e as e2, f as f2, g as g2, h as h2, i as i2, j as j2, C as C2, k as k2, l as l2, P as P2, m as m2, n as n2, o as o2, p as p2, q as q2, r as r2, s as s2, t as t2, S as S2, u as u2, v as v2, w as w2, x as x2, y as y2, z as z2, B as B2, D as D2, E as E2, F as F2, G as G2, H as H2, I as I2, J as J2, K as K2, L as L2, M as M2, N as N2, O as O2, Q as Q2, T as T2, R as R2, U as U2, V as V2, W as W2 } from "./chunks/textarea-BPRIHZVd.mjs";
|
|
3
3
|
import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
|
|
4
|
-
import { c as cn } from "./chunks/avatar-
|
|
5
|
-
import { A as A3, a as a11, b as b3, C as C3, d as d3, e as e3, f as f3, g as g3, h as h3, i as i3, j as j3, k as k3,
|
|
6
|
-
import { I as I4, i as i4 } from "./chunks/input-
|
|
4
|
+
import { c as cn } from "./chunks/avatar-DFWEwBKu.mjs";
|
|
5
|
+
import { A as A3, a as a11, b as b3, C as C3, d as d3, e as e3, f as f3, g as g3, h as h3, i as i3, j as j3, k as k3, l as l3, m as m3, n as n3, D as D3, o as o3, p as p3, q as q3, r as r3, s as s3, u as u3, v as v3, w as w3, x as x3, y as y3, z as z3, E as E3, F as F3, G as G3, H as H3, I as I3, J as J3, K as K3, L as L3, M as M3, N as N3, O as O3, P as P3, Q as Q3, R as R3, S as S3, T as T3, U as U3, V as V3, W as W3, X as X2, Y as Y2, Z as Z2, _ as _2, $ as $2, a0 as a02, a1 as a12, a2 as a22, a3 as a32, a4 as a42, a5 as a52, a6 as a62, a7 as a72, a8 as a82 } from "./chunks/avatar-DFWEwBKu.mjs";
|
|
6
|
+
import { I as I4, i as i4 } from "./chunks/input-CfmzMYtd.mjs";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
import * as React from "react";
|
|
9
9
|
import { LoaderCircle, OctagonX, TriangleAlert, Info, CircleCheck } from "lucide-react";
|
|
@@ -102,107 +102,107 @@ export {
|
|
|
102
102
|
v as CarouselNext,
|
|
103
103
|
w as CarouselPrevious,
|
|
104
104
|
l2 as Checkbox,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
105
|
+
C3 as Collapsible,
|
|
106
|
+
d3 as CollapsibleContent,
|
|
107
|
+
e3 as CollapsibleTrigger,
|
|
108
|
+
f3 as Command,
|
|
109
|
+
g3 as CommandDialog,
|
|
110
|
+
h3 as CommandEmpty,
|
|
111
|
+
i3 as CommandGroup,
|
|
112
|
+
j3 as CommandInput,
|
|
113
|
+
k3 as CommandItem,
|
|
114
|
+
l3 as CommandList,
|
|
115
|
+
m3 as CommandSeparator,
|
|
116
|
+
n3 as CommandShortcut,
|
|
117
|
+
x as ContextMenu,
|
|
118
|
+
y as ContextMenuCheckboxItem,
|
|
119
|
+
z as ContextMenuContent,
|
|
120
|
+
D as ContextMenuGroup,
|
|
121
|
+
E as ContextMenuItem,
|
|
122
|
+
F as ContextMenuLabel,
|
|
123
|
+
G as ContextMenuPortal,
|
|
124
|
+
H as ContextMenuRadioGroup,
|
|
125
|
+
I as ContextMenuRadioItem,
|
|
126
|
+
J as ContextMenuSeparator,
|
|
127
|
+
K as ContextMenuShortcut,
|
|
128
|
+
L as ContextMenuSub,
|
|
129
|
+
M as ContextMenuSubContent,
|
|
130
|
+
N as ContextMenuSubTrigger,
|
|
131
|
+
O as ContextMenuTrigger,
|
|
132
132
|
D3 as Dialog,
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
133
|
+
o3 as DialogClose,
|
|
134
|
+
p3 as DialogContent,
|
|
135
|
+
q3 as DialogDescription,
|
|
136
|
+
r3 as DialogFooter,
|
|
137
|
+
s3 as DialogHeader,
|
|
138
|
+
u3 as DialogOverlay,
|
|
139
|
+
v3 as DialogPortal,
|
|
140
|
+
w3 as DialogTitle,
|
|
141
|
+
x3 as DialogTrigger,
|
|
142
|
+
P as Drawer,
|
|
143
|
+
Q as DrawerClose,
|
|
144
|
+
R as DrawerContent,
|
|
145
|
+
S as DrawerDescription,
|
|
146
|
+
T as DrawerFooter,
|
|
147
|
+
U as DrawerHeader,
|
|
148
|
+
V as DrawerOverlay,
|
|
149
|
+
W as DrawerPortal,
|
|
150
|
+
X as DrawerTitle,
|
|
151
|
+
Y as DrawerTrigger,
|
|
152
|
+
y3 as DropdownMenu,
|
|
153
|
+
z3 as DropdownMenuCheckboxItem,
|
|
154
|
+
E3 as DropdownMenuContent,
|
|
155
|
+
F3 as DropdownMenuGroup,
|
|
156
|
+
G3 as DropdownMenuItem,
|
|
157
|
+
H3 as DropdownMenuLabel,
|
|
158
|
+
I3 as DropdownMenuPortal,
|
|
159
|
+
J3 as DropdownMenuRadioGroup,
|
|
160
|
+
K3 as DropdownMenuRadioItem,
|
|
161
|
+
L3 as DropdownMenuSeparator,
|
|
162
|
+
M3 as DropdownMenuShortcut,
|
|
163
|
+
N3 as DropdownMenuSub,
|
|
164
|
+
O3 as DropdownMenuSubContent,
|
|
165
|
+
P3 as DropdownMenuSubTrigger,
|
|
166
|
+
Q3 as DropdownMenuTrigger,
|
|
167
|
+
Z as HoverCard,
|
|
168
|
+
_ as HoverCardContent,
|
|
169
|
+
$ as HoverCardTrigger,
|
|
170
170
|
I4 as Input,
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
171
|
+
R3 as InputGroup,
|
|
172
|
+
S3 as InputGroupAddon,
|
|
173
|
+
T3 as InputGroupButton,
|
|
174
|
+
U3 as InputGroupInput,
|
|
175
|
+
V3 as InputGroupText,
|
|
176
|
+
W3 as InputGroupTextarea,
|
|
177
|
+
a0 as InputOTP,
|
|
178
|
+
a1 as InputOTPGroup,
|
|
179
|
+
a2 as InputOTPSeparator,
|
|
180
|
+
a3 as InputOTPSlot,
|
|
181
|
+
a4 as Label,
|
|
182
|
+
a5 as Menubar,
|
|
183
|
+
a6 as MenubarCheckboxItem,
|
|
184
|
+
a7 as MenubarContent,
|
|
185
|
+
a8 as MenubarGroup,
|
|
186
|
+
a9 as MenubarItem,
|
|
187
|
+
aa as MenubarLabel,
|
|
188
|
+
ab as MenubarMenu,
|
|
189
|
+
ac as MenubarPortal,
|
|
190
|
+
ad as MenubarRadioGroup,
|
|
191
|
+
ae as MenubarRadioItem,
|
|
192
|
+
af as MenubarSeparator,
|
|
193
|
+
ag as MenubarShortcut,
|
|
194
|
+
ah as MenubarSub,
|
|
195
|
+
ai as MenubarSubContent,
|
|
196
|
+
aj as MenubarSubTrigger,
|
|
197
|
+
ak as MenubarTrigger,
|
|
198
|
+
al as NavigationMenu,
|
|
199
|
+
am as NavigationMenuContent,
|
|
200
|
+
an as NavigationMenuIndicator,
|
|
201
|
+
ao as NavigationMenuItem,
|
|
202
|
+
ap as NavigationMenuLink,
|
|
203
|
+
aq as NavigationMenuList,
|
|
204
|
+
ar as NavigationMenuTrigger,
|
|
205
|
+
as as NavigationMenuViewport,
|
|
206
206
|
P2 as Pagination,
|
|
207
207
|
m2 as PaginationContent,
|
|
208
208
|
n2 as PaginationEllipsis,
|
|
@@ -212,16 +212,16 @@ export {
|
|
|
212
212
|
r2 as PaginationLink,
|
|
213
213
|
s2 as PaginationNext,
|
|
214
214
|
t2 as PaginationPrevious,
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
215
|
+
X2 as Popover,
|
|
216
|
+
Y2 as PopoverAnchor,
|
|
217
|
+
Z2 as PopoverClose,
|
|
218
|
+
_2 as PopoverContent,
|
|
219
|
+
$2 as PopoverTrigger,
|
|
220
|
+
at as Progress,
|
|
221
|
+
au as RadioGroup,
|
|
222
|
+
av as RadioGroupItem,
|
|
223
|
+
aw as ScrollArea,
|
|
224
|
+
ax as ScrollBar,
|
|
225
225
|
S2 as Select,
|
|
226
226
|
u2 as SelectContent,
|
|
227
227
|
v2 as SelectGroup,
|
|
@@ -232,7 +232,7 @@ export {
|
|
|
232
232
|
B2 as SelectSeparator,
|
|
233
233
|
D2 as SelectTrigger,
|
|
234
234
|
E2 as SelectValue,
|
|
235
|
-
|
|
235
|
+
ay as Separator,
|
|
236
236
|
F2 as Sheet,
|
|
237
237
|
G2 as SheetClose,
|
|
238
238
|
H2 as SheetContent,
|
|
@@ -244,34 +244,34 @@ export {
|
|
|
244
244
|
N2 as SheetTitle,
|
|
245
245
|
O2 as SheetTrigger,
|
|
246
246
|
Skeleton,
|
|
247
|
-
|
|
247
|
+
az as Slider,
|
|
248
248
|
Q2 as Switch,
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
249
|
+
aA as Tabs,
|
|
250
|
+
aB as TabsContent,
|
|
251
|
+
aC as TabsList,
|
|
252
|
+
aD as TabsTrigger,
|
|
253
253
|
T2 as Textarea,
|
|
254
254
|
Toaster,
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
255
|
+
aE as Toggle,
|
|
256
|
+
aF as ToggleGroup,
|
|
257
|
+
aG as ToggleGroupItem,
|
|
258
|
+
a02 as Tooltip,
|
|
259
|
+
a12 as TooltipContent,
|
|
260
|
+
a22 as TooltipProvider,
|
|
261
|
+
a32 as TooltipTrigger,
|
|
262
|
+
aH as badgeVariants,
|
|
263
263
|
R2 as getPaginationRange,
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
264
|
+
a42 as inputGroupAddonVariants,
|
|
265
|
+
a52 as inputGroupButtonVariants,
|
|
266
|
+
a62 as inputGroupInputVariants,
|
|
267
|
+
a72 as inputGroupTextareaVariants,
|
|
268
|
+
a82 as inputGroupVariants,
|
|
269
269
|
i4 as inputVariants,
|
|
270
|
-
|
|
270
|
+
aI as navigationMenuTriggerStyle,
|
|
271
271
|
U2 as paginationLinkVariants,
|
|
272
272
|
V2 as paginationNavVariants,
|
|
273
|
-
|
|
273
|
+
aJ as slotVariants,
|
|
274
274
|
W2 as textareaVariants,
|
|
275
|
-
|
|
275
|
+
aK as toggleVariants
|
|
276
276
|
};
|
|
277
277
|
//# sourceMappingURL=shadcn.mjs.map
|
|
@@ -20,7 +20,7 @@ import { AppShellProps } from './app-shell.types';
|
|
|
20
20
|
* Pra uso real: declare um `MOCK_CONTEXTS`, `MOCK_COMMANDS`, etc compartilhados
|
|
21
21
|
* num arquivo da app (ex: `src/config/app-shell-mocks.ts`) e passe nas pages.
|
|
22
22
|
*/
|
|
23
|
-
export declare function AppShell(
|
|
23
|
+
export declare function AppShell(props: AppShellProps): import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
export declare namespace AppShell {
|
|
25
25
|
var displayName: string;
|
|
26
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-shell.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/AppShell/app-shell.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"app-shell.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/AppShell/app-shell.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAyB,MAAM,mBAAmB,CAAC;AAE9E;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,2CA4Q5C;yBA5Qe,QAAQ"}
|
|
@@ -8,7 +8,51 @@
|
|
|
8
8
|
* (18 / 24 / 32px — ver `bodyInner`) por design — slot "padronizado" pra todas
|
|
9
9
|
* as telas. Consumer customiza só os filhos.
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Raiz do shell. A altura é o ponto sensível aqui.
|
|
13
|
+
*
|
|
14
|
+
* ## Por que `fillHeight` existe (medido em 2026-08-18)
|
|
15
|
+
*
|
|
16
|
+
* `h-screen` é 100vh **sempre**, ignorando a altura do container pai. Consequência
|
|
17
|
+
* medida na própria página de doc do AppShell, que o renderiza dentro de
|
|
18
|
+
* `<div class="h-[640px] … overflow-hidden">`:
|
|
19
|
+
*
|
|
20
|
+
* container do exemplo 640px
|
|
21
|
+
* <main> do shell 660px (60 do header + 660 = 720 = 100vh)
|
|
22
|
+
* → o shell termina 56px ABAIXO da borda, e o overflow-hidden do wrapper
|
|
23
|
+
* corta esse pedaço — levando os 24px de padding-bottom do body junto
|
|
24
|
+
*
|
|
25
|
+
* O sintoma que aparece é "o conteúdo está colado na borda de baixo", e a leitura
|
|
26
|
+
* natural é "falta padding-bottom". **Não falta**: o padding existe e é simétrico
|
|
27
|
+
* (medido: 24px em cima e 24px embaixo). Ele está sendo *clipado*. Acrescentar mais
|
|
28
|
+
* padding não consertaria nada — só mudaria o quanto se perde.
|
|
29
|
+
*
|
|
30
|
+
* Vale para qualquer consumidor que embuta o shell em algo com altura definida:
|
|
31
|
+
* um layout com footer próprio, um painel de aba, um card de preview.
|
|
32
|
+
*
|
|
33
|
+
* fillHeight=false (default) h-screen — o shell É a página. Comportamento atual,
|
|
34
|
+
* preservado pra não mexer em quem já usa.
|
|
35
|
+
* fillHeight=true h-full — o shell obedece o pai. **Exige que o pai
|
|
36
|
+
* tenha altura**: `h-full` sem pai medido
|
|
37
|
+
* colapsa pra zero, que é o modo de falhar
|
|
38
|
+
* deste modo.
|
|
39
|
+
*/
|
|
40
|
+
export declare const root: import('tailwind-variants').TVReturnType<{
|
|
41
|
+
fillHeight: {
|
|
42
|
+
false: string;
|
|
43
|
+
true: string;
|
|
44
|
+
};
|
|
45
|
+
}, undefined, string[], {
|
|
46
|
+
fillHeight: {
|
|
47
|
+
false: string;
|
|
48
|
+
true: string;
|
|
49
|
+
};
|
|
50
|
+
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
51
|
+
fillHeight: {
|
|
52
|
+
false: string;
|
|
53
|
+
true: string;
|
|
54
|
+
};
|
|
55
|
+
}, undefined, string[], unknown, unknown, undefined>>;
|
|
12
56
|
/** Wrapper da área principal (Header + Body). Ocupa o resto do flex row. */
|
|
13
57
|
export declare const main: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnType<unknown, undefined, string[], unknown, unknown, undefined>>;
|
|
14
58
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-shell.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/AppShell/app-shell.styles.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AAEH,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"app-shell.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/AppShell/app-shell.styles.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;qDAYf,CAAC;AAEH,4EAA4E;AAC5E,eAAO,MAAM,IAAI,sMAKf,CAAC;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,IAAI,sMAKf,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,SAAS;;;;;IAUlB;;;;;;;OAOG;;;;;;;;;;IAPH;;;;;;;OAOG;;;;;;;;;;IAPH;;;;;;;OAOG;;;;;qDAUL,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactNode, MouseEvent } from 'react';
|
|
2
2
|
import { LucideIcon } from '../../../lib/lucide-types';
|
|
3
|
+
import { SingleMenuCategory, SingleMenuModuleConfig } from '../SingleMenuSidebar';
|
|
3
4
|
import { HeaderBreadcrumbItem, HeaderCommandGroup, HeaderMessagesConfig, HeaderNotificationsConfig, HeaderThemeOption } from '../Header';
|
|
4
5
|
import { SidebarContext, SidebarMenuItem, SidebarLinkRenderer } from '../MenuSidebar';
|
|
5
6
|
/**
|
|
@@ -43,9 +44,7 @@ export type AppShellLayoutOption = {
|
|
|
43
44
|
* - `theme` idem
|
|
44
45
|
* - `children` é o body — gap 16px + padding 32px aplicados no slot
|
|
45
46
|
*/
|
|
46
|
-
|
|
47
|
-
/** Contextos do MenuSidebar (rail + panel data-driven). Obrigatório. */
|
|
48
|
-
contexts: SidebarContext[];
|
|
47
|
+
type AppShellBaseProps = {
|
|
49
48
|
/** Contexto inicialmente ativo (uncontrolled). Default: primeiro do array. */
|
|
50
49
|
defaultActiveContextId?: string;
|
|
51
50
|
/** Contexto ativo (controlled). */
|
|
@@ -135,7 +134,111 @@ export type AppShellProps = {
|
|
|
135
134
|
* Default: false (18px mobile · 24px notebook · 32px desktop).
|
|
136
135
|
*/
|
|
137
136
|
mobileEdgeToEdge?: boolean;
|
|
137
|
+
/**
|
|
138
|
+
* Qual menu lateral o shell monta.
|
|
139
|
+
*
|
|
140
|
+
* "menu" (default) `MenuSidebar` — rail de MÓDULOS + painel. Para apps com áreas
|
|
141
|
+
* distintas (Comercial, Financeiro…), cada uma com menu próprio.
|
|
142
|
+
* "single" `SingleMenuSidebar` — nível único, sem módulos. Para sistema
|
|
143
|
+
* único, com busca opcional.
|
|
144
|
+
*
|
|
145
|
+
* Default preservado em `menu` de propósito: não muda nada de quem já usa.
|
|
146
|
+
*
|
|
147
|
+
* O shell coordena o colapso e o hamburger do Header nos DOIS casos. O mapeamento é
|
|
148
|
+
* diferente porque os componentes modelam o estado de formas diferentes:
|
|
149
|
+
*
|
|
150
|
+
* MenuSidebar desktop → panelCollapsed · mobile → drawer (mobileOpen + backdrop)
|
|
151
|
+
* Single desktop → expanded (invertido) · mobile → expanded É a visibilidade
|
|
152
|
+
* (< md: expandida ocupa 100% da largura; recolhida some)
|
|
153
|
+
*/
|
|
154
|
+
/**
|
|
155
|
+
* O shell obedece a altura do CONTAINER PAI em vez de ocupar 100vh.
|
|
156
|
+
*
|
|
157
|
+
* Default `false` = comportamento histórico (`h-screen`), preservado.
|
|
158
|
+
*
|
|
159
|
+
* Ligue quando o AppShell estiver embutido em algo com altura definida — um layout
|
|
160
|
+
* com footer próprio, um painel de aba, um preview. Sem isso o shell mede 100vh,
|
|
161
|
+
* transborda o container e o `overflow-hidden` corta o rodapé do body junto com o
|
|
162
|
+
* padding — o sintoma é "conteúdo colado na borda", e não é falta de padding.
|
|
163
|
+
*
|
|
164
|
+
* ⚠️ Exige que o pai tenha altura. `h-full` sem pai medido colapsa pra zero.
|
|
165
|
+
*/
|
|
166
|
+
fillHeight?: boolean;
|
|
138
167
|
/** ClassName extra no root da AppShell (afeta toda a tela). */
|
|
139
168
|
className?: string;
|
|
140
169
|
};
|
|
170
|
+
/**
|
|
171
|
+
* Qual menu lateral o shell monta — e **o que cada escolha exige**.
|
|
172
|
+
*
|
|
173
|
+
* "menu" (default) `MenuSidebar` — rail de MÓDULOS + painel. Para apps com áreas
|
|
174
|
+
* distintas (Comercial, Financeiro…), cada uma com menu próprio.
|
|
175
|
+
* "single" `SingleMenuSidebar` — nível único, sem módulos. Para sistema
|
|
176
|
+
* único, com busca opcional.
|
|
177
|
+
*
|
|
178
|
+
* Default preservado em `menu`: quem já usa não muda nada, e continua obrigado a passar
|
|
179
|
+
* `contexts` como antes.
|
|
180
|
+
*
|
|
181
|
+
* ## Por que UNIÃO DISCRIMINADA e não props opcionais
|
|
182
|
+
*
|
|
183
|
+
* A alternativa era deixar `contexts` opcional e documentar "obrigatório quando
|
|
184
|
+
* sidebar='menu'". Isso trocaria um erro de compilação por uma **falha silenciosa**:
|
|
185
|
+
* `contexts` ausente com a sidebar de menu renderiza um rail vazio, sem erro nenhum. Com a
|
|
186
|
+
* união, o TS exige exatamente o conjunto certo pra cada escolha — e o consumidor descobre
|
|
187
|
+
* no editor, não olhando a tela.
|
|
188
|
+
*
|
|
189
|
+
* ## O que o shell coordena nos dois casos
|
|
190
|
+
*
|
|
191
|
+
* O toggle do Header funciona igual pras duas, sem o consumidor cabear nada. O mapeamento
|
|
192
|
+
* interno difere porque os componentes modelam o estado de formas diferentes:
|
|
193
|
+
*
|
|
194
|
+
* MenuSidebar desktop → panelCollapsed · mobile → drawer (mobileOpen + backdrop)
|
|
195
|
+
* Single desktop → expanded (invertido) · mobile → expanded É a visibilidade
|
|
196
|
+
* (< md: expandida ocupa 100% da largura; recolhida some)
|
|
197
|
+
*/
|
|
198
|
+
type AppShellMenuSidebarProps = {
|
|
199
|
+
sidebar?: "menu";
|
|
200
|
+
/** Contextos do MenuSidebar (rail + panel data-driven). Obrigatório nesta variante. */
|
|
201
|
+
contexts: SidebarContext[];
|
|
202
|
+
};
|
|
203
|
+
type AppShellSingleSidebarProps = {
|
|
204
|
+
sidebar: "single";
|
|
205
|
+
/** Categorias do menu de nível único. */
|
|
206
|
+
categories: SingleMenuCategory[];
|
|
207
|
+
/** Logo no header da sidebar. */
|
|
208
|
+
sidebarLogo: ReactNode;
|
|
209
|
+
/** Título ao lado do logo. */
|
|
210
|
+
sidebarTitle: string;
|
|
211
|
+
/** Item ativo (a variante `menu` usa `activeItemHref`). */
|
|
212
|
+
activeItemId?: string;
|
|
213
|
+
/**
|
|
214
|
+
* Clique em item. Prop SEPARADA do `onItemClick` de propósito: os dois modelos de dados
|
|
215
|
+
* são diferentes — o MenuSidebar entrega o ITEM (`SidebarMenuItem`), a single entrega o
|
|
216
|
+
* `id`. Reaproveitar o mesmo nome faria o consumidor receber um tipo e escrever pro outro.
|
|
217
|
+
*/
|
|
218
|
+
onSidebarItemClick?: (id: string) => void;
|
|
219
|
+
/** Módulos com menu próprio — o seletor troca o conjunto de categorias. */
|
|
220
|
+
sidebarModules?: SingleMenuModuleConfig[];
|
|
221
|
+
/** Mostra a busca no topo da sidebar. */
|
|
222
|
+
sidebarShowSearch?: boolean;
|
|
223
|
+
/**
|
|
224
|
+
* Placeholder da busca DA SIDEBAR — separado do `searchPlaceholder`, que é do Header.
|
|
225
|
+
* Nomes distintos de propósito: são dois campos de busca diferentes na mesma tela.
|
|
226
|
+
*/
|
|
227
|
+
sidebarSearchPlaceholder?: string;
|
|
228
|
+
};
|
|
229
|
+
export type AppShellProps = AppShellBaseProps & (AppShellMenuSidebarProps | AppShellSingleSidebarProps);
|
|
230
|
+
/**
|
|
231
|
+
* Uso **interno** do `app-shell.tsx`, não da API pública.
|
|
232
|
+
*
|
|
233
|
+
* Destruturar uma união não dá acesso a membro que existe em só um dos ramos (TS2339), e
|
|
234
|
+
* fazer `if (props.sidebar === "single")` antes de cada acesso espalharia narrowing por
|
|
235
|
+
* todo o componente. Então a fronteira pública é a união — é ela que guia o consumidor no
|
|
236
|
+
* editor — e a implementação lê deste shape relaxado, onde tudo é opcional.
|
|
237
|
+
*
|
|
238
|
+
* A correção de verdade fica no render: o ramo `sidebar === "single"` só usa as props da
|
|
239
|
+
* single, e o outro só as de menu. O `as` abaixo não esconde nada que a união já não
|
|
240
|
+
* garanta na entrada.
|
|
241
|
+
*/
|
|
242
|
+
export type AppShellInternalProps = AppShellBaseProps & Partial<AppShellMenuSidebarProps> & Partial<AppShellSingleSidebarProps>;
|
|
243
|
+
export {};
|
|
141
244
|
//# sourceMappingURL=app-shell.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-shell.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/AppShell/app-shell.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EACV,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,yBAAyB,EACzB,iBAAiB,EAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,mBAAmB,EACpB,MAAM,6BAA6B,CAAC;AAErC;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,sDAAsD;IACtD,IAAI,EAAE,MAAM,CAAC;IACb,8CAA8C;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uEAAuE;IACvE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,4EAA4E;AAC5E,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,UAAU,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,
|
|
1
|
+
{"version":3,"file":"app-shell.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/AppShell/app-shell.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EACV,kBAAkB,EAClB,sBAAsB,EACvB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EACV,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,yBAAyB,EACzB,iBAAiB,EAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,mBAAmB,EACpB,MAAM,6BAA6B,CAAC;AAErC;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,sDAAsD;IACtD,IAAI,EAAE,MAAM,CAAC;IACb,8CAA8C;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uEAAuE;IACvE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,4EAA4E;AAC5E,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,UAAU,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,KAAK,iBAAiB,GAAG;IAEvB,8EAA8E;IAC9E,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,mCAAmC;IACnC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,oDAAoD;IACpD,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,+BAA+B;IAC/B,cAAc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,GAC3C,CAAC,wBAAwB,GAAG,0BAA0B,CAAC,CAAC;AAE1D;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,GACnD,OAAO,CAAC,wBAAwB,CAAC,GACjC,OAAO,CAAC,0BAA0B,CAAC,CAAC"}
|
|
@@ -12,7 +12,7 @@ export type { SidebarSectionProps } from './sidebar-section';
|
|
|
12
12
|
export { SidebarBrandIcon } from './sidebar-brand';
|
|
13
13
|
export { useControllable } from './use-sidebar-state';
|
|
14
14
|
export { useMediaQuery } from './use-media-query';
|
|
15
|
-
export { shouldPreventNavigation, isExternalHref, isHashHref, isModifiedClick, } from '
|
|
16
|
-
export type { PreventNavigationInput } from '
|
|
15
|
+
export { shouldPreventNavigation, isExternalHref, isHashHref, isModifiedClick, } from '../../../utils/nav-link';
|
|
16
|
+
export type { PreventNavigationInput } from '../../../utils/nav-link';
|
|
17
17
|
export type { SidebarProps, SidebarContext, SidebarMenuItem, SidebarSection as SidebarSectionData, SidebarBookmarkItem, SidebarChatItem, SidebarBadgeKind, SidebarLinkRenderer, SidebarLinkRenderProps, } from './sidebar.types';
|
|
18
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/MenuSidebar/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC1D,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;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OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAKlD,OAAO,EACL,uBAAuB,EACvB,cAAc,EACd,UAAU,EACV,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAG/D,YAAY,EACV,YAAY,EACZ,cAAc,EACd,eAAe,EACf,cAAc,IAAI,kBAAkB,EACpC,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SingleMenuCategoryProps } from './single-menu-sidebar.types';
|
|
2
|
-
export declare function SingleMenuCategory({ id, icon, label, active, items, activeItemId, onItemClick, onCategoryClick, }: SingleMenuCategoryProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function SingleMenuCategory({ id, icon, label, active, items, activeItemId, onItemClick, onCategoryClick, href, renderLink, }: SingleMenuCategoryProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export declare namespace SingleMenuCategory {
|
|
4
4
|
var displayName: string;
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/SingleMenuSidebar/category.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/SingleMenuSidebar/category.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAE3E,wBAAgB,kBAAkB,CAAC,EACjC,EAAE,EACF,IAAI,EACJ,KAAK,EACL,MAAc,EACd,KAAK,EACL,YAAY,EACZ,WAAW,EACX,eAAe,EACf,IAAI,EACJ,UAAU,GACX,EAAE,uBAAuB,2CA2IzB;yBAtJe,kBAAkB"}
|
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
import { SingleMenuItemProps } from './single-menu-sidebar.types';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Item de menu do `SingleMenuSidebar`.
|
|
4
|
+
*
|
|
5
|
+
* ## O defeito que isto corrige (medido em 2026-08-18)
|
|
6
|
+
*
|
|
7
|
+
* Até aqui este componente renderizava **sempre** `<button type="button" onClick>` — e o
|
|
8
|
+
* tipo `SingleMenuSubItem` declarava `href?: string`, e o `USAGE.md` documentava
|
|
9
|
+
* `{ id, label, href? }`. Ou seja: o consumidor declarava o destino, o TypeScript aceitava,
|
|
10
|
+
* e **nada lia**. `href` era prop morta.
|
|
11
|
+
*
|
|
12
|
+
* O que se perdia com isso — tudo silenciosamente, sem erro nenhum:
|
|
13
|
+
*
|
|
14
|
+
* · ctrl/cmd+clique e botão do meio não abriam em nova aba
|
|
15
|
+
* · "copiar endereço do link" não existia no menu de contexto
|
|
16
|
+
* · leitor de tela anunciava "botão", não "link"
|
|
17
|
+
* · nenhum router do consumidor podia ser integrado
|
|
18
|
+
*
|
|
19
|
+
* ⚠️ **Não era o mesmo defeito do `MenuSidebar`.** Lá o `<a href>` existia e navegava
|
|
20
|
+
* nativamente **junto** do handler, recarregando a página inteira a cada clique. Aqui o
|
|
21
|
+
* problema é o oposto: não havia `<a>` nenhum. O conserto, porém, usa a mesma regra —
|
|
22
|
+
* `@/utils/nav-link`, movido pra util compartilhada nesta mesma mudança justamente pra
|
|
23
|
+
* não haver duas cópias divergindo (e pra o `single-menu-sidebar` não precisar depender
|
|
24
|
+
* do item de registry do `menu-sidebar` inteiro só pra reaproveitar 60 linhas puras).
|
|
25
|
+
*/
|
|
26
|
+
export declare function SingleMenuItem({ label, selected, href, target, onClick, renderLink, interceptNavigation, }: SingleMenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
3
27
|
export declare namespace SingleMenuItem {
|
|
4
28
|
var displayName: string;
|
|
5
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-item.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/SingleMenuSidebar/menu-item.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"menu-item.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/SingleMenuSidebar/menu-item.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAEvE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,QAAgB,EAChB,IAAI,EACJ,MAAM,EACN,OAAO,EACP,UAAU,EACV,mBAAmB,GACpB,EAAE,mBAAmB,2CAkDrB;yBA1De,cAAc"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SingleMenuSidebarProps } from './single-menu-sidebar.types';
|
|
2
|
-
export declare function SingleMenuSidebar({ logo, title, module, modules, activeModuleId, defaultModuleId, onModuleChange, showSearch, searchPlaceholder, searchCommand, categories, activeItemId, onItemClick, user, defaultExpanded, expanded: controlledExpanded, onExpandedChange, showToggleIndicator, className, ...props }: SingleMenuSidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function SingleMenuSidebar({ logo, title, module, modules, activeModuleId, defaultModuleId, onModuleChange, showSearch, searchPlaceholder, searchCommand, categories, activeItemId, onItemClick, renderLink, user, defaultExpanded, expanded: controlledExpanded, onExpandedChange, showToggleIndicator, className, ...props }: SingleMenuSidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export declare namespace SingleMenuSidebar {
|
|
4
4
|
var displayName: string;
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"single-menu-sidebar.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/SingleMenuSidebar/single-menu-sidebar.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAEV,sBAAsB,EACvB,MAAM,6BAA6B,CAAC;AAiBrC,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,KAAK,EACL,MAAM,EACN,OAAO,EACP,cAAc,EACd,eAAe,EACf,cAAc,EACd,UAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,YAAY,EACZ,WAAW,EACX,IAAI,EACJ,eAAsB,EACtB,QAAQ,EAAE,kBAAkB,EAC5B,gBAAgB,EAChB,mBAA2B,EAC3B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,sBAAsB,
|
|
1
|
+
{"version":3,"file":"single-menu-sidebar.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/SingleMenuSidebar/single-menu-sidebar.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAEV,sBAAsB,EACvB,MAAM,6BAA6B,CAAC;AAiBrC,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,KAAK,EACL,MAAM,EACN,OAAO,EACP,cAAc,EACd,eAAe,EACf,cAAc,EACd,UAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,YAAY,EACZ,WAAW,EACX,UAAU,EACV,IAAI,EACJ,eAAsB,EACtB,QAAQ,EAAE,kBAAkB,EAC5B,gBAAgB,EAChB,mBAA2B,EAC3B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,sBAAsB,2CAmKxB;yBAzLe,iBAAiB"}
|