jenosize-ui 0.2.0 → 0.2.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/README.md +2 -2
- package/dist/{PaymentInput-CKPIPNWH.d.ts → PaymentInput-Dn5WVQVy.d.ts} +4 -0
- package/dist/{Select-CVbEQ2Ep.d.ts → Select-Dt5ARIH8.d.ts} +4 -0
- package/dist/{TagInput-CTJYOB4J.d.ts → TagInput-BaBeve6L.d.ts} +4 -0
- package/dist/area-chart.d.ts +3 -2
- package/dist/area-chart.js +6 -5
- package/dist/avatar.d.ts +5 -0
- package/dist/avatar.js +9 -8
- package/dist/badge.d.ts +4 -0
- package/dist/badge.js +5 -4
- package/dist/bar-chart.d.ts +3 -2
- package/dist/bar-chart.js +6 -5
- package/dist/breadcrumb.d.ts +4 -0
- package/dist/breadcrumb.js +4 -2
- package/dist/button.d.ts +6 -1
- package/dist/button.js +9 -8
- package/dist/calendar.d.ts +5 -0
- package/dist/calendar.js +15 -13
- package/dist/callout.d.ts +6 -6
- package/dist/callout.js +11 -9
- package/dist/card-D56VxyAe.d.ts +123 -0
- package/dist/card.d.ts +3 -51
- package/dist/card.js +5 -5
- package/dist/checkbox.js +8 -7
- package/dist/{chunk-75M43ELV.js → chunk-22M75A3N.js} +75 -45
- package/dist/{chunk-A46ED5JQ.js → chunk-33TOK7ES.js} +7 -5
- package/dist/{chunk-RNXRZGXN.js → chunk-3H444OJA.js} +5 -3
- package/dist/{chunk-DJYWPJZ3.js → chunk-3QXLIZIX.js} +3 -12
- package/dist/chunk-3ZEEGXYF.js +8 -0
- package/dist/chunk-45Y2ZGNK.js +34 -0
- package/dist/{chunk-ILICYNK7.js → chunk-4RBIWI2Q.js} +3 -3
- package/dist/{chunk-FIGBJGH2.js → chunk-4VGEJG4M.js} +115 -79
- package/dist/{chunk-EX374YWB.js → chunk-54SIZR63.js} +15 -7
- package/dist/chunk-5AZKP4KZ.js +49 -0
- package/dist/{chunk-NA35YZRD.js → chunk-5DP7W5HX.js} +13 -11
- package/dist/{chunk-QKDEQFOQ.js → chunk-5KSD4WKN.js} +13 -4
- package/dist/{chunk-RIXEUAPY.js → chunk-5XPMY2LF.js} +5 -5
- package/dist/{chunk-6UBYHSBX.js → chunk-5ZEUTSCV.js} +5 -5
- package/dist/{chunk-DCGTB7P7.js → chunk-667ZHY3T.js} +111 -39
- package/dist/{chunk-MYQ3FD4Y.js → chunk-6B6BWTXC.js} +8 -5
- package/dist/{chunk-6HJA7NPL.js → chunk-6H4LNWQ7.js} +3 -3
- package/dist/{chunk-JAVNGTOE.js → chunk-6MMBQVRO.js} +58 -43
- package/dist/{chunk-JMWYCT63.js → chunk-7GUPNTAH.js} +14 -6
- package/dist/{chunk-TBN644IN.js → chunk-7ZM7SNCZ.js} +3 -3
- package/dist/{chunk-BD5YKFRA.js → chunk-A323V6AI.js} +5 -3
- package/dist/{chunk-AC6ZWKRN.js → chunk-AFYXSZGW.js} +2 -2
- package/dist/chunk-AIARANKE.js +33 -0
- package/dist/{chunk-54S5CUY6.js → chunk-AIGYMTCU.js} +5 -4
- package/dist/{chunk-C6OTOTKI.js → chunk-AZ7DKRBY.js} +5 -5
- package/dist/{chunk-QBHQOX23.js → chunk-BBKE4W3B.js} +18 -10
- package/dist/{chunk-4BRMM3I5.js → chunk-BFVJHH7S.js} +7 -6
- package/dist/{chunk-FFTRB2UU.js → chunk-CFFWYXDW.js} +18 -6
- package/dist/{chunk-42FCPC77.js → chunk-CGHYXWTT.js} +10 -4
- package/dist/{chunk-VEOYCAJP.js → chunk-CKMWBVRR.js} +27 -7
- package/dist/{chunk-GTHJWR3Q.js → chunk-D7EE5GWU.js} +21 -22
- package/dist/{chunk-NMERLWT7.js → chunk-E2YZ7IMT.js} +23 -7
- package/dist/{chunk-GAFGIT4Q.js → chunk-FFMTYQXE.js} +30 -10
- package/dist/{chunk-L53Y7KUV.js → chunk-FH7Z7SGQ.js} +61 -28
- package/dist/{chunk-5JRM3OES.js → chunk-FNQJJO63.js} +3 -3
- package/dist/{chunk-MD4AR43X.js → chunk-FWRHBMWT.js} +3 -3
- package/dist/{chunk-4K6V6NNK.js → chunk-GLKFFA7N.js} +10 -8
- package/dist/{chunk-EDOUI2BG.js → chunk-GQRSABRN.js} +4 -4
- package/dist/{chunk-BNIWT6CW.js → chunk-GZMDZF2V.js} +7 -6
- package/dist/{chunk-HSVBTIP2.js → chunk-HHYEAFCL.js} +70 -27
- package/dist/{chunk-P7DH62UY.js → chunk-I6WMNXC7.js} +5 -5
- package/dist/{chunk-34J5AANZ.js → chunk-IQNVSQRK.js} +3 -3
- package/dist/{chunk-MCUASLZH.js → chunk-KHGW72BM.js} +3 -3
- package/dist/{chunk-4R7WDDCW.js → chunk-KZP6B6B3.js} +4 -4
- package/dist/{chunk-7HV6EIGZ.js → chunk-LLPWQDF7.js} +3 -3
- package/dist/{chunk-FZBZGA3P.js → chunk-LO22VQL5.js} +4 -4
- package/dist/{chunk-JXHZHUB3.js → chunk-LQURV7HQ.js} +9 -7
- package/dist/{chunk-EDT5J5WK.js → chunk-LYXPJERB.js} +14 -4
- package/dist/{chunk-6IUTVDNI.js → chunk-MCQG4H6T.js} +35 -3
- package/dist/{chunk-JYBGO6GY.js → chunk-MVG5MABV.js} +11 -8
- package/dist/{chunk-PXEJ5RKO.js → chunk-N3RVMBPX.js} +6 -9
- package/dist/{chunk-VWGAMOSE.js → chunk-NKG4N6HA.js} +3 -3
- package/dist/{chunk-A5WQLN4B.js → chunk-OACWA4TC.js} +14 -52
- package/dist/{chunk-LBYCCLVI.js → chunk-OLLD2BZN.js} +9 -9
- package/dist/{chunk-T2WAD4QP.js → chunk-POQTE7JI.js} +55 -16
- package/dist/{chunk-74HPBSVY.js → chunk-QDKETK7D.js} +4 -4
- package/dist/{chunk-VH35QHD4.js → chunk-QHH6AUR3.js} +16 -8
- package/dist/chunk-RJTVCA62.js +42 -0
- package/dist/{chunk-DTMYD63D.js → chunk-S5TEWPWW.js} +46 -26
- package/dist/{chunk-3GT43XPK.js → chunk-SB3DG572.js} +15 -8
- package/dist/{chunk-NKDW6C7K.js → chunk-SKRR3ZMP.js} +3 -3
- package/dist/{chunk-CTENRS34.js → chunk-T4ZFZTY6.js} +8 -6
- package/dist/{chunk-YLEHYDXC.js → chunk-T5574MXM.js} +33 -45
- package/dist/{chunk-USL3TDZM.js → chunk-U4WSJAYK.js} +321 -105
- package/dist/{chunk-4W6AYGLR.js → chunk-UGKELBNC.js} +55 -39
- package/dist/{chunk-M5TVCASC.js → chunk-ULGCGKOE.js} +8 -6
- package/dist/{chunk-JUWDRRD6.js → chunk-X2VMIBK5.js} +4 -4
- package/dist/{chunk-763VS2FY.js → chunk-YHBI52P2.js} +3 -3
- package/dist/chunk-YIHKQ63K.js +13 -0
- package/dist/{chunk-3Z3SDKIA.js → chunk-YQYVGWIC.js} +5 -5
- package/dist/{chunk-4HKDD3PR.js → chunk-ZHAT2XZ4.js} +91 -57
- package/dist/{chunk-CWMFEF6R.js → chunk-ZMFY7WAY.js} +60 -24
- package/dist/{chunk-WKWAUU64.js → chunk-ZZSNTCCL.js} +6 -5
- package/dist/combobox.d.ts +5 -0
- package/dist/combobox.js +12 -11
- package/dist/date-input.d.ts +4 -0
- package/dist/date-input.js +11 -9
- package/dist/date-picker.d.ts +6 -0
- package/dist/date-picker.js +23 -21
- package/dist/dialog.d.ts +21 -1
- package/dist/dialog.js +10 -8
- package/dist/drawer.d.ts +11 -1
- package/dist/drawer.js +9 -7
- package/dist/dropdown-menu.d.ts +12 -0
- package/dist/dropdown-menu.js +6 -5
- package/dist/dropzone.d.ts +3 -2
- package/dist/dropzone.js +13 -12
- package/dist/form.d.ts +5 -4
- package/dist/form.js +60 -44
- package/dist/header-navigation.d.ts +5 -1
- package/dist/header-navigation.js +21 -19
- package/dist/helper.d.ts +36 -0
- package/dist/helper.js +3 -0
- package/dist/index.d.ts +13 -11
- package/dist/index.js +81 -76
- package/dist/indicator.js +4 -4
- package/dist/input.d.ts +4 -0
- package/dist/input.js +9 -8
- package/dist/kanban-board.d.ts +21 -81
- package/dist/kanban-board.js +14 -12
- package/dist/labels-DPrh0se9.d.ts +627 -0
- package/dist/line-chart.d.ts +3 -2
- package/dist/line-chart.js +6 -5
- package/dist/{nav-DcCyt00p.d.ts → nav-CKKqjBs6.d.ts} +10 -0
- package/dist/number-input.d.ts +4 -0
- package/dist/number-input.js +9 -8
- package/dist/pagination.d.ts +7 -1
- package/dist/pagination.js +11 -10
- package/dist/payment-input.d.ts +3 -2
- package/dist/payment-input.js +9 -8
- package/dist/pie-chart.d.ts +7 -3
- package/dist/pie-chart.js +6 -5
- package/dist/popover.js +9 -7
- package/dist/progress-steps.js +2 -2
- package/dist/progress.d.ts +21 -1
- package/dist/progress.js +3 -2
- package/dist/provider.d.ts +212 -0
- package/dist/provider.js +7 -0
- package/dist/radar-chart.d.ts +7 -3
- package/dist/radar-chart.js +6 -5
- package/dist/radial-chart.d.ts +7 -3
- package/dist/radial-chart.js +6 -5
- package/dist/radio.js +8 -7
- package/dist/select.d.ts +2 -1
- package/dist/select.js +14 -13
- package/dist/shared-CxAedkiy.d.ts +68 -0
- package/dist/sidebar-navigation.d.ts +28 -7
- package/dist/sidebar-navigation.js +15 -13
- package/dist/skeleton.js +2 -2
- package/dist/styles.css +1 -1
- package/dist/switch.js +4 -4
- package/dist/table.d.ts +56 -6
- package/dist/table.js +36 -34
- package/dist/tabs.d.ts +22 -0
- package/dist/tabs.js +3 -3
- package/dist/tag-input.d.ts +3 -2
- package/dist/tag-input.js +12 -11
- package/dist/tag.d.ts +4 -0
- package/dist/tag.js +3 -2
- package/dist/textarea.js +6 -5
- package/dist/theme.css +69 -6
- package/dist/theme.js +10 -9
- package/dist/toast.d.ts +11 -2
- package/dist/toast.js +11 -9
- package/dist/{tooltip-surface-Dmvb8v5K.d.ts → tooltip-surface-C2I9o2QM.d.ts} +1 -1
- package/dist/tooltip.d.ts +2 -2
- package/dist/tooltip.js +3 -3
- package/dist/tree.d.ts +5 -0
- package/dist/tree.js +5 -4
- package/dist/{types-6kvYwtRH.d.ts → types-DR9rAEy1.d.ts} +45 -13
- package/dist/{use-uploads-ButS4dGe.d.ts → use-uploads-KaPqDklo.d.ts} +9 -0
- package/dist/verification-code-input.js +8 -7
- package/package.json +12 -1
- package/dist/chunk-MFJP5FA7.js +0 -20
- package/dist/shared-BNXAdgh2.d.ts +0 -9
- package/dist/surface-DFyDnrTJ.d.ts +0 -34
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import { DropdownMenu } from './chunk-
|
|
2
|
-
import { SKELETON_WIDTHS, Skeleton } from './chunk-
|
|
3
|
-
import { Separator } from './chunk-7VLYQR4D.js';
|
|
4
|
-
import { ButtonUtility } from './chunk-C6OTOTKI.js';
|
|
1
|
+
import { DropdownMenu } from './chunk-6B6BWTXC.js';
|
|
2
|
+
import { SKELETON_WIDTHS, Skeleton } from './chunk-LLPWQDF7.js';
|
|
5
3
|
import { ScrollView } from './chunk-FKVPAEJ6.js';
|
|
4
|
+
import { Separator } from './chunk-7VLYQR4D.js';
|
|
5
|
+
import { useLinkElement, LinkOrButton } from './chunk-5AZKP4KZ.js';
|
|
6
|
+
import { ButtonUtility } from './chunk-AZ7DKRBY.js';
|
|
7
|
+
import { useIsomorphicLayoutEffect } from './chunk-EDSK6FEH.js';
|
|
6
8
|
import { Slot } from './chunk-52IFGFTL.js';
|
|
7
|
-
import { TooltipExport } from './chunk-
|
|
9
|
+
import { TooltipExport } from './chunk-KZP6B6B3.js';
|
|
8
10
|
import { PanelLeftIcon, ChevronRightIcon, ChevronDownIcon } from './chunk-BLIZ3CL3.js';
|
|
9
|
-
import { devWarn } from './chunk-QDYE5LVT.js';
|
|
10
11
|
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
12
|
+
import { useLabels } from './chunk-RJTVCA62.js';
|
|
13
|
+
import { devWarn } from './chunk-QDYE5LVT.js';
|
|
11
14
|
import * as React from 'react';
|
|
12
15
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
13
16
|
|
|
@@ -38,7 +41,7 @@ function readStored(storageKey, fallback) {
|
|
|
38
41
|
}
|
|
39
42
|
function SidebarProvider(props) {
|
|
40
43
|
const { collapsed: controlled, defaultCollapsed = false, onCollapsedChange, storageKey, shortcut = true, collapseBelow, children } = props;
|
|
41
|
-
const [uncontrolled, setUncontrolled] = React.useState(
|
|
44
|
+
const [uncontrolled, setUncontrolled] = React.useState(defaultCollapsed);
|
|
42
45
|
const collapsed = controlled ?? uncontrolled;
|
|
43
46
|
const collapsedRef = React.useRef(collapsed);
|
|
44
47
|
collapsedRef.current = collapsed;
|
|
@@ -59,6 +62,11 @@ function SidebarProvider(props) {
|
|
|
59
62
|
);
|
|
60
63
|
const setCollapsed = React.useCallback((next) => commit(next, true), [commit]);
|
|
61
64
|
const toggle = React.useCallback(() => commit(!collapsedRef.current, true), [commit]);
|
|
65
|
+
useIsomorphicLayoutEffect(() => {
|
|
66
|
+
if (controlled !== void 0 || !storageKey) return;
|
|
67
|
+
const stored = readStored(storageKey, defaultCollapsed);
|
|
68
|
+
setUncontrolled((current) => current === stored ? current : stored);
|
|
69
|
+
}, [controlled, storageKey]);
|
|
62
70
|
React.useEffect(() => {
|
|
63
71
|
if (!shortcut) return;
|
|
64
72
|
const onKeyDown = (event) => {
|
|
@@ -69,7 +77,7 @@ function SidebarProvider(props) {
|
|
|
69
77
|
document.addEventListener("keydown", onKeyDown);
|
|
70
78
|
return () => document.removeEventListener("keydown", onKeyDown);
|
|
71
79
|
}, [shortcut, commit]);
|
|
72
|
-
|
|
80
|
+
useIsomorphicLayoutEffect(() => {
|
|
73
81
|
if (!collapseBelow || typeof window === "undefined" || !globalThis.matchMedia) return;
|
|
74
82
|
const query = globalThis.matchMedia(BREAKPOINT_QUERY[collapseBelow]);
|
|
75
83
|
const apply = () => commit(query.matches, false);
|
|
@@ -148,6 +156,12 @@ function resolveActive(items, activeHref) {
|
|
|
148
156
|
}
|
|
149
157
|
return { current: best, trail: new Set(bestTrail) };
|
|
150
158
|
}
|
|
159
|
+
|
|
160
|
+
// src/components/sidebar-navigation/labels.ts
|
|
161
|
+
var SIDEBAR_NAVIGATION_LABELS = {
|
|
162
|
+
expand: "Expand sidebar",
|
|
163
|
+
collapse: "Collapse sidebar"
|
|
164
|
+
};
|
|
151
165
|
var ROW_WRAP = "group/row relative flex items-center";
|
|
152
166
|
var ROW_BASE = "relative flex min-w-0 flex-1 cursor-pointer items-center rounded-lg p-2 text-left outline-focus-ring transition-colors duration-100 ease-linear select-none focus-visible:z-10 focus-visible:outline-2 focus-visible:outline-offset-2";
|
|
153
167
|
var ROW_IDLE = "group-hover/row:bg-secondary";
|
|
@@ -215,6 +229,7 @@ function RowAction({ action, icon }) {
|
|
|
215
229
|
}
|
|
216
230
|
function NavRow({ link, ctx, reserve, dot }) {
|
|
217
231
|
const isCurrent = link === ctx.current;
|
|
232
|
+
const navLink = useLinkElement(link.href);
|
|
218
233
|
const className = cn(
|
|
219
234
|
ROW_BASE,
|
|
220
235
|
dot && GUIDE_DOT_ROW,
|
|
@@ -229,14 +244,7 @@ function NavRow({ link, ctx, reserve, dot }) {
|
|
|
229
244
|
ctx.onNavigate?.(link, event);
|
|
230
245
|
link.onClick?.(event);
|
|
231
246
|
};
|
|
232
|
-
|
|
233
|
-
if (link.disabled) {
|
|
234
|
-
row = /* @__PURE__ */ jsx("span", { "aria-disabled": "true", className, children: content });
|
|
235
|
-
} else if (link.href) {
|
|
236
|
-
row = /* @__PURE__ */ jsx("a", { href: link.href, "aria-current": isCurrent ? "page" : void 0, onClick: handleClick, className, children: content });
|
|
237
|
-
} else {
|
|
238
|
-
row = /* @__PURE__ */ jsx("button", { type: "button", "aria-current": isCurrent ? "page" : void 0, onClick: handleClick, className, children: content });
|
|
239
|
-
}
|
|
247
|
+
const row = link.disabled ? /* @__PURE__ */ jsx("span", { "aria-disabled": "true", className, children: content }) : /* @__PURE__ */ jsx(LinkOrButton, { render: link.render ?? navLink, className, ariaCurrent: isCurrent, onClick: handleClick, children: content });
|
|
240
248
|
return /* @__PURE__ */ jsxs("div", { className: ROW_WRAP, children: [
|
|
241
249
|
row,
|
|
242
250
|
link.action && !link.disabled ? /* @__PURE__ */ jsx(RowAction, { action: link.action, icon }) : null
|
|
@@ -313,13 +321,24 @@ function railTrigger(link, current, accent) {
|
|
|
313
321
|
}
|
|
314
322
|
function RailRow({ link, ctx }) {
|
|
315
323
|
const current = link === ctx.current;
|
|
324
|
+
const railLink = useLinkElement(link.href);
|
|
316
325
|
const className = railClass(link, current, ctx.accent);
|
|
317
326
|
const icon = /* @__PURE__ */ jsx(RailIcon, { link, current, accent: ctx.accent });
|
|
318
327
|
const handleClick = (event) => {
|
|
319
328
|
ctx.onNavigate?.(link, event);
|
|
320
329
|
link.onClick?.(event);
|
|
321
330
|
};
|
|
322
|
-
const element = link.
|
|
331
|
+
const element = link.disabled ? (
|
|
332
|
+
/* Shaped to match `NavRow`'s expanded branch exactly — same element, same one attribute — because
|
|
333
|
+
* these two ARE one row at two widths and the defect was them disagreeing. The label rides an
|
|
334
|
+
* `sr-only` span rather than `aria-label`: this row is icon-only, and a name set on a span with
|
|
335
|
+
* no role is dropped by every screen reader, so the rail would go from wrongly-usable to
|
|
336
|
+
* correctly-inert but nameless. (`link.label` is caller data, not authored copy.) */
|
|
337
|
+
/* @__PURE__ */ jsxs("span", { "aria-disabled": "true", className, children: [
|
|
338
|
+
icon,
|
|
339
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: link.label })
|
|
340
|
+
] })
|
|
341
|
+
) : /* @__PURE__ */ jsx(LinkOrButton, { render: link.render ?? railLink, className, ariaCurrent: current, ariaLabel: link.label, onClick: handleClick, children: icon });
|
|
323
342
|
return /* @__PURE__ */ jsx(TooltipExport, { content: link.label, side: "right", children: element });
|
|
324
343
|
}
|
|
325
344
|
function toMenuItems(links, ctx) {
|
|
@@ -336,6 +355,10 @@ function toMenuItems(links, ctx) {
|
|
|
336
355
|
return {
|
|
337
356
|
label: child.label,
|
|
338
357
|
href: child.href,
|
|
358
|
+
// The per-item element, forwarded — this row is the SAME `NavLink` the expanded column renders
|
|
359
|
+
// through `link.render ?? navLink`, so collapsing the rail must not downgrade it to the
|
|
360
|
+
// provider's link. `DropdownMenuActionItem.render` exists for exactly this hand-off.
|
|
361
|
+
render: child.render,
|
|
339
362
|
leading: child.leading,
|
|
340
363
|
trailing: child.trailing,
|
|
341
364
|
active: child === ctx.current,
|
|
@@ -365,6 +388,7 @@ var BRAND_ROW = "flex items-center gap-2 rounded-lg outline-focus-ring focus-vis
|
|
|
365
388
|
function Brand({ brand, collapsed }) {
|
|
366
389
|
const { logo, name, href, onClick } = brand;
|
|
367
390
|
const interactive = href != null || onClick != null;
|
|
391
|
+
const brandLink = useLinkElement(href);
|
|
368
392
|
const content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
369
393
|
/* @__PURE__ */ jsx(Slot, { className: "[&>svg]:size-8", children: logo }),
|
|
370
394
|
!collapsed && name != null ? /* @__PURE__ */ jsx("span", { className: "truncate text-md font-semibold text-primary", children: name }) : null
|
|
@@ -373,11 +397,10 @@ function Brand({ brand, collapsed }) {
|
|
|
373
397
|
return /* @__PURE__ */ jsx("div", { className: cn(BRAND_ROW, collapsed && "justify-center"), children: content });
|
|
374
398
|
}
|
|
375
399
|
const shared = {
|
|
376
|
-
onClick,
|
|
377
400
|
"aria-label": collapsed ? name : void 0,
|
|
378
401
|
className: cn(BRAND_ROW, "cursor-pointer", collapsed && "justify-center")
|
|
379
402
|
};
|
|
380
|
-
return
|
|
403
|
+
return /* @__PURE__ */ jsx(LinkOrButton, { render: brandLink, className: shared.className, ariaLabel: shared["aria-label"], onClick, children: content });
|
|
381
404
|
}
|
|
382
405
|
function SidebarNavigation(props) {
|
|
383
406
|
const {
|
|
@@ -392,9 +415,11 @@ function SidebarNavigation(props) {
|
|
|
392
415
|
footer,
|
|
393
416
|
toggle = false,
|
|
394
417
|
loading = false,
|
|
418
|
+
labels,
|
|
395
419
|
className
|
|
396
420
|
} = props;
|
|
397
421
|
const ariaLabel = props["aria-label"] ?? "Main";
|
|
422
|
+
const t = useLabels("sidebarNavigation", SIDEBAR_NAVIGATION_LABELS, labels);
|
|
398
423
|
const sidebar = useSidebarContext();
|
|
399
424
|
const collapsed = props.collapsed ?? sidebar?.collapsed ?? false;
|
|
400
425
|
const pad = collapsed ? "px-3" : "px-4";
|
|
@@ -441,8 +466,19 @@ function SidebarNavigation(props) {
|
|
|
441
466
|
// call). To drop it — a nav nested in a `<Drawer>`, which draws its own — pass
|
|
442
467
|
// `className="border-r-0"`: tailwind-merge resolves both in the `border-w-r` group.
|
|
443
468
|
"border-r border-secondary",
|
|
444
|
-
|
|
445
|
-
className
|
|
469
|
+
// The EXPANDED width is the caller's to set — it is a function of THEIR labels, and
|
|
470
|
+
// `className="w-60"` is the documented way to say so (layout only, merged via `cn()`).
|
|
471
|
+
!collapsed && "w-70",
|
|
472
|
+
className,
|
|
473
|
+
// The COLLAPSED width is NOT, and that is why it is emitted AFTER `className` — the one
|
|
474
|
+
// deliberate ordering asymmetry in this component. A rail is 36px of row plus the column's
|
|
475
|
+
// own `px-3`; it is derived geometry, not a design number, and no reading of "make my
|
|
476
|
+
// sidebar 240px wide" means "make the icon rail 240px wide". Emitted BEFORE `className` it
|
|
477
|
+
// was silently clobbered: tailwind-merge resolves `w-16` and a caller's `w-60` in one group,
|
|
478
|
+
// so an app that only ever talked about the EXPANDED column got a 240px rail with its icons
|
|
479
|
+
// stranded in the middle of it — and `items-center` (still ours, still applied) is what made
|
|
480
|
+
// that read as a layout bug rather than as the caller's own width coming back.
|
|
481
|
+
collapsed && "w-16 items-center"
|
|
446
482
|
),
|
|
447
483
|
children: [
|
|
448
484
|
brand != null ? /* @__PURE__ */ jsx("div", { className: cn("shrink-0 overflow-hidden pt-5", header != null ? "pb-4" : "pb-2", pad, collapsed && "flex w-full justify-center"), children: /* @__PURE__ */ jsx(Brand, { brand, collapsed }) }) : null,
|
|
@@ -476,7 +512,7 @@ function SidebarNavigation(props) {
|
|
|
476
512
|
"button",
|
|
477
513
|
{
|
|
478
514
|
type: "button",
|
|
479
|
-
"aria-label": collapsed ?
|
|
515
|
+
"aria-label": collapsed ? t.expand : t.collapse,
|
|
480
516
|
"aria-expanded": !collapsed,
|
|
481
517
|
onClick: sidebar.toggle,
|
|
482
518
|
className: "group/handle absolute inset-y-0 right-0 z-20 flex w-3 cursor-pointer items-center justify-center outline-focus-ring focus-visible:outline-2 focus-visible:-outline-offset-2",
|
|
@@ -496,5 +532,5 @@ function SidebarNavigation(props) {
|
|
|
496
532
|
SidebarNavigation.displayName = "SidebarNavigation";
|
|
497
533
|
|
|
498
534
|
export { SidebarNavigation, SidebarProvider, SidebarTrigger, linkMatches, resolveActive, useSidebar };
|
|
499
|
-
//# sourceMappingURL=chunk-
|
|
500
|
-
//# sourceMappingURL=chunk-
|
|
535
|
+
//# sourceMappingURL=chunk-ZMFY7WAY.js.map
|
|
536
|
+
//# sourceMappingURL=chunk-ZMFY7WAY.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { OptionRow } from './chunk-GTHJWR3Q.js';
|
|
2
1
|
import { mapOptions } from './chunk-7JBNLEJ7.js';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { OptionRow } from './chunk-D7EE5GWU.js';
|
|
3
|
+
import { useFieldValidity, FieldGroupFrame } from './chunk-5KSD4WKN.js';
|
|
5
4
|
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
5
|
+
import { warnNeedsName } from './chunk-QDYE5LVT.js';
|
|
6
6
|
import { Radio } from '@base-ui/react/radio';
|
|
7
7
|
import { RadioGroup as RadioGroup$1 } from '@base-ui/react/radio-group';
|
|
8
8
|
import * as React from 'react';
|
|
@@ -48,6 +48,7 @@ function RadioGroupItem(props) {
|
|
|
48
48
|
return /* @__PURE__ */ jsx(
|
|
49
49
|
OptionRow,
|
|
50
50
|
{
|
|
51
|
+
scoped: true,
|
|
51
52
|
size: ctx.size,
|
|
52
53
|
bordered: ctx.bordered,
|
|
53
54
|
disabled: isDisabled,
|
|
@@ -158,5 +159,5 @@ RadioGroupRoot.displayName = "RadioGroup";
|
|
|
158
159
|
var RadioGroup = RadioGroupRoot;
|
|
159
160
|
|
|
160
161
|
export { RadioGroup };
|
|
161
|
-
//# sourceMappingURL=chunk-
|
|
162
|
-
//# sourceMappingURL=chunk-
|
|
162
|
+
//# sourceMappingURL=chunk-ZZSNTCCL.js.map
|
|
163
|
+
//# sourceMappingURL=chunk-ZZSNTCCL.js.map
|
package/dist/combobox.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { M as MultiDisplay } from './multi-value-CJb_tnvi.js';
|
|
3
3
|
import { O as OptionList, L as ListboxOption, a as ListboxAction } from './options-CPEIgjtd.js';
|
|
4
|
+
import { d as ComboboxLabels } from './labels-DPrh0se9.js';
|
|
4
5
|
import { ComboboxRootProps as ComboboxRootProps$1 } from '@base-ui/react/combobox';
|
|
5
6
|
|
|
6
7
|
type ComboboxSize = "sm" | "md" | "lg";
|
|
@@ -169,6 +170,10 @@ interface ComboboxProps<Value extends string = string, Multiple extends boolean
|
|
|
169
170
|
* `Enter` cannot coin it either) — e.g. `(q) => /^\S+@\S+\.\S+$/.test(q)` for a
|
|
170
171
|
* recipient field. @default always creatable */
|
|
171
172
|
validateCreate?: (query: string) => boolean;
|
|
173
|
+
/** Override the component's own copy — the trigger, the clear button, a chip's remove name, the
|
|
174
|
+
* `creatable` row, and what `placeholder` / `emptyMessage` / the loading line default to. Merges
|
|
175
|
+
* under `<JenosizeUIProvider labels={{ combobox }}>`; see `docs/i18n-policy.md`. */
|
|
176
|
+
labels?: ComboboxLabels;
|
|
172
177
|
}
|
|
173
178
|
declare function ComboboxFlat<Value extends string = string, Multiple extends boolean | undefined = false, Creatable extends boolean | undefined = undefined>(props: ComboboxProps<Value, Multiple, Creatable>): React.JSX.Element;
|
|
174
179
|
declare namespace ComboboxFlat {
|
package/dist/combobox.js
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
"use client";export { Combobox } from './chunk-
|
|
1
|
+
"use client";export { Combobox } from './chunk-S5TEWPWW.js';
|
|
2
2
|
import './chunk-F6NLE6XJ.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-6HJA7NPL.js';
|
|
3
|
+
import './chunk-4RBIWI2Q.js';
|
|
4
|
+
import './chunk-6H4LNWQ7.js';
|
|
6
5
|
import './chunk-4P2NBLBW.js';
|
|
7
6
|
import './chunk-FKVPAEJ6.js';
|
|
8
7
|
import './chunk-7JBNLEJ7.js';
|
|
9
8
|
import './chunk-DWKILXHE.js';
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-52IFGFTL.js';
|
|
9
|
+
import './chunk-7EUAMHMU.js';
|
|
10
|
+
import './chunk-X2VMIBK5.js';
|
|
13
11
|
import './chunk-O2LG3PNI.js';
|
|
14
12
|
import './chunk-EDSK6FEH.js';
|
|
15
|
-
import './chunk-
|
|
16
|
-
import './chunk-
|
|
17
|
-
import './chunk-
|
|
13
|
+
import './chunk-5KSD4WKN.js';
|
|
14
|
+
import './chunk-7ZM7SNCZ.js';
|
|
15
|
+
import './chunk-52IFGFTL.js';
|
|
16
|
+
import './chunk-KZP6B6B3.js';
|
|
17
|
+
import './chunk-AFYXSZGW.js';
|
|
18
18
|
import './chunk-O4GRKO3I.js';
|
|
19
19
|
import './chunk-BLIZ3CL3.js';
|
|
20
|
-
import './chunk-QDYE5LVT.js';
|
|
21
20
|
import './chunk-ZSNJ6UA3.js';
|
|
21
|
+
import './chunk-RJTVCA62.js';
|
|
22
|
+
import './chunk-QDYE5LVT.js';
|
|
22
23
|
//# sourceMappingURL=combobox.js.map
|
|
23
24
|
//# sourceMappingURL=combobox.js.map
|
package/dist/date-input.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { E as Era } from './date-utils-7hTFTXNK.js';
|
|
3
3
|
export { D as DateOrder, H as HourCycle, P as ParsedFormat } from './date-utils-7hTFTXNK.js';
|
|
4
|
+
import { D as DateInputLabels } from './labels-DPrh0se9.js';
|
|
4
5
|
|
|
5
6
|
type DateInputSize = "sm" | "md" | "lg";
|
|
6
7
|
|
|
@@ -36,6 +37,9 @@ interface DateInputProps {
|
|
|
36
37
|
/** Year era shown/typed in the year segment: `"ce"` (ค.ศ.) or `"be"` (พ.ศ. = ค.ศ. + 543).
|
|
37
38
|
* Not a `format` token — the era is a calendar, not a layout. The emitted value is always CE. @default "ce" */
|
|
38
39
|
era?: Era;
|
|
40
|
+
/** Override the component's own copy — the seven segment names a screen reader announces. Merges
|
|
41
|
+
* under `<JenosizeUIProvider labels={{ dateInput }}>`; see `docs/i18n-policy.md`. */
|
|
42
|
+
labels?: DateInputLabels;
|
|
39
43
|
/** Start slot: a **node** renders as an icon (e.g. a calendar, `fg-quaternary`); a **string** as a
|
|
40
44
|
* muted text affix. */
|
|
41
45
|
leading?: React.ReactNode;
|
package/dist/date-input.js
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
"use client";export { DateInput } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
"use client";export { DateInput } from './chunk-E2YZ7IMT.js';
|
|
2
|
+
import './chunk-3QXLIZIX.js';
|
|
3
|
+
import './chunk-YIHKQ63K.js';
|
|
3
4
|
import './chunk-7EUAMHMU.js';
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-TBN644IN.js';
|
|
6
|
-
import './chunk-52IFGFTL.js';
|
|
5
|
+
import './chunk-X2VMIBK5.js';
|
|
7
6
|
import './chunk-O2LG3PNI.js';
|
|
8
7
|
import './chunk-EDSK6FEH.js';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
8
|
+
import './chunk-5KSD4WKN.js';
|
|
9
|
+
import './chunk-7ZM7SNCZ.js';
|
|
10
|
+
import './chunk-52IFGFTL.js';
|
|
11
|
+
import './chunk-KZP6B6B3.js';
|
|
12
|
+
import './chunk-AFYXSZGW.js';
|
|
12
13
|
import './chunk-O4GRKO3I.js';
|
|
13
14
|
import './chunk-BLIZ3CL3.js';
|
|
14
|
-
import './chunk-QDYE5LVT.js';
|
|
15
15
|
import './chunk-ZSNJ6UA3.js';
|
|
16
|
+
import './chunk-RJTVCA62.js';
|
|
17
|
+
import './chunk-QDYE5LVT.js';
|
|
16
18
|
//# sourceMappingURL=date-input.js.map
|
|
17
19
|
//# sourceMappingURL=date-input.js.map
|
package/dist/date-picker.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { e as DatePickerLabels } from './labels-DPrh0se9.js';
|
|
2
3
|
import { W as WeekStart } from './date-vMJBKAFK.js';
|
|
3
4
|
import { E as Era } from './date-utils-7hTFTXNK.js';
|
|
4
5
|
import { Locale } from 'date-fns';
|
|
@@ -78,6 +79,11 @@ interface DateCommonProps {
|
|
|
78
79
|
size?: DateCalendarSize;
|
|
79
80
|
/** Month shown when nothing is selected. @default today */
|
|
80
81
|
defaultMonth?: Date;
|
|
82
|
+
/** Override the picker family's own copy — the trigger names, the two typed-row labels, the
|
|
83
|
+
* confirm footer's buttons, and what `placeholder` defaults to. ONE scope for `DatePicker`,
|
|
84
|
+
* `DateRangePicker` and both standalone calendars. Merges under
|
|
85
|
+
* `<JenosizeUIProvider labels={{ datePicker }}>`; see `docs/i18n-policy.md`. */
|
|
86
|
+
labels?: DatePickerLabels;
|
|
81
87
|
/** Layout/spacing only, merged via `cn()`. Never restyles a cell. */
|
|
82
88
|
className?: string;
|
|
83
89
|
}
|
package/dist/date-picker.js
CHANGED
|
@@ -1,32 +1,34 @@
|
|
|
1
|
-
"use client";export { DATE_PRESETS, DateCalendar, DatePicker, DateRangeCalendar, DateRangePicker, resolvePreset } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-NMERLWT7.js';
|
|
9
|
-
import './chunk-DJYWPJZ3.js';
|
|
10
|
-
import './chunk-A5WQLN4B.js';
|
|
11
|
-
import './chunk-42FCPC77.js';
|
|
12
|
-
import './chunk-C6OTOTKI.js';
|
|
13
|
-
import './chunk-6IUTVDNI.js';
|
|
14
|
-
import './chunk-7EUAMHMU.js';
|
|
1
|
+
"use client";export { DATE_PRESETS, DateCalendar, DatePicker, DateRangeCalendar, DateRangePicker, resolvePreset } from './chunk-667ZHY3T.js';
|
|
2
|
+
import './chunk-FWRHBMWT.js';
|
|
3
|
+
import './chunk-YQYVGWIC.js';
|
|
4
|
+
import './chunk-CKMWBVRR.js';
|
|
5
|
+
import './chunk-LO22VQL5.js';
|
|
6
|
+
import './chunk-E2YZ7IMT.js';
|
|
7
|
+
import './chunk-3QXLIZIX.js';
|
|
15
8
|
import './chunk-7S2TBALK.js';
|
|
16
9
|
import './chunk-S7NNXWIN.js';
|
|
17
10
|
import './chunk-FKVPAEJ6.js';
|
|
11
|
+
import './chunk-45Y2ZGNK.js';
|
|
12
|
+
import './chunk-LCG34A5T.js';
|
|
13
|
+
import './chunk-YIHKQ63K.js';
|
|
14
|
+
import './chunk-OACWA4TC.js';
|
|
15
|
+
import './chunk-AZ7DKRBY.js';
|
|
16
|
+
import './chunk-MCQG4H6T.js';
|
|
17
|
+
import './chunk-CGHYXWTT.js';
|
|
18
18
|
import './chunk-DWKILXHE.js';
|
|
19
|
-
import './chunk-
|
|
20
|
-
import './chunk-
|
|
21
|
-
import './chunk-52IFGFTL.js';
|
|
19
|
+
import './chunk-7EUAMHMU.js';
|
|
20
|
+
import './chunk-X2VMIBK5.js';
|
|
22
21
|
import './chunk-O2LG3PNI.js';
|
|
23
22
|
import './chunk-EDSK6FEH.js';
|
|
24
|
-
import './chunk-
|
|
25
|
-
import './chunk-
|
|
26
|
-
import './chunk-
|
|
23
|
+
import './chunk-5KSD4WKN.js';
|
|
24
|
+
import './chunk-7ZM7SNCZ.js';
|
|
25
|
+
import './chunk-52IFGFTL.js';
|
|
26
|
+
import './chunk-KZP6B6B3.js';
|
|
27
|
+
import './chunk-AFYXSZGW.js';
|
|
27
28
|
import './chunk-O4GRKO3I.js';
|
|
28
29
|
import './chunk-BLIZ3CL3.js';
|
|
29
|
-
import './chunk-QDYE5LVT.js';
|
|
30
30
|
import './chunk-ZSNJ6UA3.js';
|
|
31
|
+
import './chunk-RJTVCA62.js';
|
|
32
|
+
import './chunk-QDYE5LVT.js';
|
|
31
33
|
//# sourceMappingURL=date-picker.js.map
|
|
32
34
|
//# sourceMappingURL=date-picker.js.map
|
package/dist/dialog.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { a as DialogSize, D as DialogFooter } from './shared-
|
|
2
|
+
import { a as DialogSize, b as OverlayBackdrop, D as DialogFooter } from './shared-CxAedkiy.js';
|
|
3
3
|
import { P as PanelDividers } from './panel-El4oI68p.js';
|
|
4
4
|
import './rule-BqzaIwJy.js';
|
|
5
5
|
|
|
@@ -15,6 +15,16 @@ interface AlertDialogProps {
|
|
|
15
15
|
onOpenChange?: (open: boolean) => void;
|
|
16
16
|
/** Max width of the popup surface. @default "md" */
|
|
17
17
|
size?: DialogSize;
|
|
18
|
+
/**
|
|
19
|
+
* The scrim behind the dialog. `scrim` (default) is the flat `bg-overlay` wash (gray-950 @ 50%) —
|
|
20
|
+
* the page is dimmed and plainly out of play. `blur` is the ALTERNATIVE, not an addition: a LIGHTER
|
|
21
|
+
* 20% wash + a 6px backdrop blur, so the page is frosted rather than curtained — layout still
|
|
22
|
+
* legible, content not. The 20% is not decoration: with no wash the panel's own fill stops
|
|
23
|
+
* contrasting with its surroundings (light, measured: 3.74:1 → 1.00:1). Both numbers, and the seven
|
|
24
|
+
* combinations they were chosen from, are in `src/components/overlay/backdrop.ts`.
|
|
25
|
+
* @default "scrim"
|
|
26
|
+
*/
|
|
27
|
+
backdrop?: OverlayBackdrop;
|
|
18
28
|
/** Render the top-right close icon button. @default false */
|
|
19
29
|
showClose?: boolean;
|
|
20
30
|
/**
|
|
@@ -60,6 +70,16 @@ interface DialogProps {
|
|
|
60
70
|
onOpenChange?: (open: boolean) => void;
|
|
61
71
|
/** Max width of the popup surface. @default "md" */
|
|
62
72
|
size?: DialogSize;
|
|
73
|
+
/**
|
|
74
|
+
* The scrim behind the dialog. `scrim` (default) is the flat `bg-overlay` wash (gray-950 @ 50%) —
|
|
75
|
+
* the page is dimmed and plainly out of play. `blur` is the ALTERNATIVE, not an addition: a LIGHTER
|
|
76
|
+
* 20% wash + a 6px backdrop blur, so the page is frosted rather than curtained — layout still
|
|
77
|
+
* legible, content not. The 20% is not decoration: with no wash the panel's own fill stops
|
|
78
|
+
* contrasting with its surroundings (light, measured: 3.74:1 → 1.00:1). Both numbers, and the seven
|
|
79
|
+
* combinations they were chosen from, are in `src/components/overlay/backdrop.ts`.
|
|
80
|
+
* @default "scrim"
|
|
81
|
+
*/
|
|
82
|
+
backdrop?: OverlayBackdrop;
|
|
63
83
|
/** Render the top-right close icon button. @default true */
|
|
64
84
|
showClose?: boolean;
|
|
65
85
|
/**
|
package/dist/dialog.js
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
"use client";export { Dialog } from './chunk-
|
|
2
|
-
export { AlertDialog } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-MFJP5FA7.js';
|
|
6
|
-
import './chunk-LCG34A5T.js';
|
|
7
|
-
import './chunk-42FCPC77.js';
|
|
1
|
+
"use client";export { Dialog } from './chunk-A323V6AI.js';
|
|
2
|
+
export { AlertDialog } from './chunk-3H444OJA.js';
|
|
3
|
+
import './chunk-CKMWBVRR.js';
|
|
4
|
+
import './chunk-LO22VQL5.js';
|
|
8
5
|
import './chunk-S7NNXWIN.js';
|
|
9
6
|
import './chunk-FKVPAEJ6.js';
|
|
10
|
-
import './chunk-
|
|
7
|
+
import './chunk-45Y2ZGNK.js';
|
|
8
|
+
import './chunk-LCG34A5T.js';
|
|
9
|
+
import './chunk-CGHYXWTT.js';
|
|
11
10
|
import './chunk-O2LG3PNI.js';
|
|
12
11
|
import './chunk-EDSK6FEH.js';
|
|
12
|
+
import './chunk-52IFGFTL.js';
|
|
13
13
|
import './chunk-O4GRKO3I.js';
|
|
14
14
|
import './chunk-BLIZ3CL3.js';
|
|
15
15
|
import './chunk-ZSNJ6UA3.js';
|
|
16
|
+
import './chunk-RJTVCA62.js';
|
|
17
|
+
import './chunk-QDYE5LVT.js';
|
|
16
18
|
//# sourceMappingURL=dialog.js.map
|
|
17
19
|
//# sourceMappingURL=dialog.js.map
|
package/dist/drawer.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { P as PanelDividers } from './panel-El4oI68p.js';
|
|
3
|
-
import { D as DialogFooter } from './shared-
|
|
3
|
+
import { b as OverlayBackdrop, D as DialogFooter } from './shared-CxAedkiy.js';
|
|
4
4
|
import './rule-BqzaIwJy.js';
|
|
5
5
|
|
|
6
6
|
type DrawerSide = "left" | "right" | "top" | "bottom";
|
|
@@ -30,6 +30,16 @@ interface DrawerProps {
|
|
|
30
30
|
* `fit` needs a child that HAS an intrinsic size — text-only content collapses to its
|
|
31
31
|
* longest line. @default "md" */
|
|
32
32
|
size?: DrawerSize;
|
|
33
|
+
/**
|
|
34
|
+
* The scrim behind the drawer. `scrim` (default) is the flat `bg-overlay` wash (gray-950 @ 50%) —
|
|
35
|
+
* the page is dimmed and plainly out of play. `blur` is the ALTERNATIVE, not an addition: a LIGHTER
|
|
36
|
+
* 20% wash + a 6px backdrop blur, so the page is frosted rather than curtained — layout still
|
|
37
|
+
* legible, content not. The 20% is not decoration: with no wash the panel's own fill stops
|
|
38
|
+
* contrasting with its surroundings (light, measured: 3.74:1 → 1.00:1). Both numbers, and the seven
|
|
39
|
+
* combinations they were chosen from, are in `src/components/overlay/backdrop.ts`.
|
|
40
|
+
* @default "scrim"
|
|
41
|
+
*/
|
|
42
|
+
backdrop?: OverlayBackdrop;
|
|
33
43
|
/** Render the top-right close icon button. @default true */
|
|
34
44
|
showClose?: boolean;
|
|
35
45
|
/**
|
package/dist/drawer.js
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
"use client";export { Drawer } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-MFJP5FA7.js';
|
|
5
|
-
import './chunk-LCG34A5T.js';
|
|
6
|
-
import './chunk-42FCPC77.js';
|
|
1
|
+
"use client";export { Drawer } from './chunk-BFVJHH7S.js';
|
|
2
|
+
import './chunk-CKMWBVRR.js';
|
|
3
|
+
import './chunk-LO22VQL5.js';
|
|
7
4
|
import './chunk-S7NNXWIN.js';
|
|
8
5
|
import './chunk-FKVPAEJ6.js';
|
|
9
|
-
import './chunk-
|
|
6
|
+
import './chunk-45Y2ZGNK.js';
|
|
7
|
+
import './chunk-LCG34A5T.js';
|
|
8
|
+
import './chunk-CGHYXWTT.js';
|
|
10
9
|
import './chunk-O2LG3PNI.js';
|
|
11
10
|
import './chunk-EDSK6FEH.js';
|
|
11
|
+
import './chunk-52IFGFTL.js';
|
|
12
12
|
import './chunk-O4GRKO3I.js';
|
|
13
13
|
import './chunk-BLIZ3CL3.js';
|
|
14
14
|
import './chunk-ZSNJ6UA3.js';
|
|
15
|
+
import './chunk-RJTVCA62.js';
|
|
16
|
+
import './chunk-QDYE5LVT.js';
|
|
15
17
|
//# sourceMappingURL=drawer.js.map
|
|
16
18
|
//# sourceMappingURL=drawer.js.map
|
package/dist/dropdown-menu.d.ts
CHANGED
|
@@ -180,6 +180,18 @@ interface DropdownMenuActionItem {
|
|
|
180
180
|
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
181
181
|
/** Render the row as a link to this href. */
|
|
182
182
|
href?: string;
|
|
183
|
+
/**
|
|
184
|
+
* Render the row as your own element — the router escape hatch, same shape and same name as
|
|
185
|
+
* `NavLink.render`, `BreadcrumbItem.render` and `TabItem.render`. **Wins over {@link href}**, and
|
|
186
|
+
* over the app-wide `link` on `<JenosizeUIProvider>`, because it is the more specific statement.
|
|
187
|
+
*
|
|
188
|
+
* It exists because the menu is not always the caller's own: a collapsed `<SidebarNavigation>`
|
|
189
|
+
* branch flies out as one of these, and `toMenuItems` had nothing to forward a row's `render` INTO
|
|
190
|
+
* — so a nav row carrying a hand-picked `<Link>` silently degraded to the provider's link (or a
|
|
191
|
+
* bare anchor) the moment the rail collapsed. The two-layer promise ("per item wins") was true of
|
|
192
|
+
* every site except the one where the row was built by us.
|
|
193
|
+
*/
|
|
194
|
+
render?: React.ReactElement;
|
|
183
195
|
/** Keep the menu open after a click. @default false (closes) */
|
|
184
196
|
closeOnClick?: boolean;
|
|
185
197
|
/** Layout/spacing only, merged via `cn()`. */
|
package/dist/dropdown-menu.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
"use client";export { DropdownMenu } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-MFJP5FA7.js';
|
|
4
|
-
import './chunk-LCG34A5T.js';
|
|
1
|
+
"use client";export { DropdownMenu } from './chunk-6B6BWTXC.js';
|
|
2
|
+
import './chunk-LO22VQL5.js';
|
|
5
3
|
import './chunk-PO2TYK3C.js';
|
|
6
4
|
import './chunk-FKVPAEJ6.js';
|
|
7
|
-
import './chunk-
|
|
5
|
+
import './chunk-45Y2ZGNK.js';
|
|
6
|
+
import './chunk-LCG34A5T.js';
|
|
7
|
+
import './chunk-5AZKP4KZ.js';
|
|
8
8
|
import './chunk-O2LG3PNI.js';
|
|
9
9
|
import './chunk-EDSK6FEH.js';
|
|
10
|
+
import './chunk-52IFGFTL.js';
|
|
10
11
|
import './chunk-O4GRKO3I.js';
|
|
11
12
|
import './chunk-BLIZ3CL3.js';
|
|
12
13
|
import './chunk-ZSNJ6UA3.js';
|
package/dist/dropzone.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { c as FileExtension } from './use-uploads-
|
|
2
|
-
export { B as BucketResult, D as Dropzone, a as DropzoneProps, F as FILE_TONE, b as FILE_TONE_BUCKETS, d as FileList, e as FileListProps, f as FileListTreatment, g as FileRejectReason, h as FileRejection, i as FileRules, G as GLYPH_BOX, K as KnownFileExtension, U as UploadContext, j as UploadEvent, k as UploadFile, l as UploadStatus, m as UploadTransport, n as UseUploadsOptions, o as UseUploadsResult, p as bucketFiles, q as extensionTone, r as fileExtension, s as fileGlyphSource, t as fileTone, u as formatFileSize, v as invalidAcceptEntries, w as isFileTypeAccepted, x as reduceUpload, y as splitBatchProgress, z as toUploadFile, A as useUploads } from './use-uploads-
|
|
1
|
+
import { c as FileExtension } from './use-uploads-KaPqDklo.js';
|
|
2
|
+
export { B as BucketResult, D as Dropzone, a as DropzoneProps, F as FILE_TONE, b as FILE_TONE_BUCKETS, d as FileList, e as FileListProps, f as FileListTreatment, g as FileRejectReason, h as FileRejection, i as FileRules, G as GLYPH_BOX, K as KnownFileExtension, U as UploadContext, j as UploadEvent, k as UploadFile, l as UploadStatus, m as UploadTransport, n as UseUploadsOptions, o as UseUploadsResult, p as bucketFiles, q as extensionTone, r as fileExtension, s as fileGlyphSource, t as fileTone, u as formatFileSize, v as invalidAcceptEntries, w as isFileTypeAccepted, x as reduceUpload, y as splitBatchProgress, z as toUploadFile, A as useUploads } from './use-uploads-KaPqDklo.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import '@base-ui/react/use-render';
|
|
5
|
+
import './labels-DPrh0se9.js';
|
|
5
6
|
import './color-CtSxc1Rh.js';
|
|
6
7
|
|
|
7
8
|
interface FileTypeGlyphProps {
|
package/dist/dropzone.js
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
"use client";export { reduceUpload, splitBatchProgress, useUploads } from './chunk-
|
|
2
|
-
export { Dropzone, FILE_TONE, FILE_TONE_BUCKETS, FileList, FileTypeGlyph, GLYPH_BOX, bucketFiles, extensionTone, fileExtension, fileGlyphSource, fileTone, formatFileSize, invalidAcceptEntries, isFileTypeAccepted, toUploadFile } from './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
"use client";export { reduceUpload, splitBatchProgress, useUploads } from './chunk-NKG4N6HA.js';
|
|
2
|
+
export { Dropzone, FILE_TONE, FILE_TONE_BUCKETS, FileList, FileTypeGlyph, GLYPH_BOX, bucketFiles, extensionTone, fileExtension, fileGlyphSource, fileTone, formatFileSize, invalidAcceptEntries, isFileTypeAccepted, toUploadFile } from './chunk-HHYEAFCL.js';
|
|
3
|
+
import './chunk-33TOK7ES.js';
|
|
4
4
|
import './chunk-7VLYQR4D.js';
|
|
5
5
|
import './chunk-LCG34A5T.js';
|
|
6
6
|
import './chunk-DJSXIAFH.js';
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
7
|
+
import './chunk-OACWA4TC.js';
|
|
8
|
+
import './chunk-AZ7DKRBY.js';
|
|
9
|
+
import './chunk-MCQG4H6T.js';
|
|
10
|
+
import './chunk-CGHYXWTT.js';
|
|
11
11
|
import './chunk-DWKILXHE.js';
|
|
12
|
-
import './chunk-
|
|
12
|
+
import './chunk-5KSD4WKN.js';
|
|
13
|
+
import './chunk-7ZM7SNCZ.js';
|
|
13
14
|
import './chunk-52IFGFTL.js';
|
|
14
|
-
import './chunk-
|
|
15
|
-
import './chunk-
|
|
16
|
-
import './chunk-AC6ZWKRN.js';
|
|
15
|
+
import './chunk-KZP6B6B3.js';
|
|
16
|
+
import './chunk-AFYXSZGW.js';
|
|
17
17
|
import './chunk-O4GRKO3I.js';
|
|
18
18
|
import './chunk-BLIZ3CL3.js';
|
|
19
|
-
import './chunk-QDYE5LVT.js';
|
|
20
19
|
import './chunk-ZSNJ6UA3.js';
|
|
20
|
+
import './chunk-RJTVCA62.js';
|
|
21
|
+
import './chunk-QDYE5LVT.js';
|
|
21
22
|
//# sourceMappingURL=dropzone.js.map
|
|
22
23
|
//# sourceMappingURL=dropzone.js.map
|