@designa8/vibedesign-linear-internal-v1-2-176b 0.0.2 → 0.0.4
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 +1 -1
- package/dist/index.cjs +155 -69
- package/dist/index.js +155 -69
- package/dist/styles.css +6 -0
- package/package.json +1 -1
- package/src/atoms/DataTable/preview.tsx +8 -1
- package/src/atoms/DataTableDesktop/DataTableDesktop.tsx +9 -0
- package/src/atoms/DataTableMobile/DataTableMobile.tsx +8 -0
- package/src/atoms/Sidebar/Sidebar.tsx +15 -1
- package/src/atoms/Sidebar/preview.tsx +50 -7
- package/src/atoms/SidebarDesktop/SidebarDesktop.tsx +60 -19
- package/src/atoms/SidebarDesktop/preview.tsx +41 -7
- package/src/atoms/SidebarMobile/SidebarMobile.tsx +28 -9
- package/src/atoms/SidebarMobile/preview.tsx +37 -7
- package/src/atoms/TableRow/TableRow.tsx +93 -42
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @designa8/vibedesign-linear-internal-v1-2-176b
|
|
2
2
|
|
|
3
|
-
Complete design system generated by Atoms Design, version **0.0.
|
|
3
|
+
Complete design system generated by Atoms Design, version **0.0.4**.
|
|
4
4
|
Tokens, atoms, molecules, organisms, and templates — import from the package root;
|
|
5
5
|
never hardcode visual values in consumer code.
|
|
6
6
|
|
package/dist/index.cjs
CHANGED
|
@@ -2573,6 +2573,20 @@ var React31 = __toESM(require("react"));
|
|
|
2573
2573
|
var React27 = __toESM(require("react"));
|
|
2574
2574
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
2575
2575
|
var cn20 = (...parts) => parts.filter(Boolean).join(" ");
|
|
2576
|
+
var INTERACTIVE_SELECTOR = [
|
|
2577
|
+
"button",
|
|
2578
|
+
"a",
|
|
2579
|
+
"input",
|
|
2580
|
+
"textarea",
|
|
2581
|
+
"select",
|
|
2582
|
+
"label",
|
|
2583
|
+
"[role='button']",
|
|
2584
|
+
"[role='checkbox']",
|
|
2585
|
+
"[role='switch']",
|
|
2586
|
+
"[role='link']",
|
|
2587
|
+
"[role='menuitem']",
|
|
2588
|
+
"[contenteditable='true']"
|
|
2589
|
+
].join(", ");
|
|
2576
2590
|
var TableRow = React27.forwardRef(
|
|
2577
2591
|
({
|
|
2578
2592
|
cells,
|
|
@@ -2580,51 +2594,74 @@ var TableRow = React27.forwardRef(
|
|
|
2580
2594
|
selected = false,
|
|
2581
2595
|
onSelectedChange,
|
|
2582
2596
|
selectLabel = "Select row",
|
|
2597
|
+
onRowActivate,
|
|
2583
2598
|
className,
|
|
2599
|
+
onClick,
|
|
2600
|
+
onKeyDown,
|
|
2584
2601
|
...rest
|
|
2585
|
-
}, ref) =>
|
|
2586
|
-
"
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
)
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2602
|
+
}, ref) => {
|
|
2603
|
+
const interactive = typeof onRowActivate === "function";
|
|
2604
|
+
const fromChildControl = (target) => target instanceof Element && target.closest(INTERACTIVE_SELECTOR) !== null;
|
|
2605
|
+
const handleClick = (event) => {
|
|
2606
|
+
onClick?.(event);
|
|
2607
|
+
if (!interactive || event.defaultPrevented || fromChildControl(event.target)) return;
|
|
2608
|
+
onRowActivate?.();
|
|
2609
|
+
};
|
|
2610
|
+
const handleKeyDown = (event) => {
|
|
2611
|
+
onKeyDown?.(event);
|
|
2612
|
+
if (!interactive || event.defaultPrevented) return;
|
|
2613
|
+
if (event.key !== "Enter" || event.target !== event.currentTarget) return;
|
|
2614
|
+
event.preventDefault();
|
|
2615
|
+
onRowActivate?.();
|
|
2616
|
+
};
|
|
2617
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
2618
|
+
"tr",
|
|
2619
|
+
{
|
|
2620
|
+
ref,
|
|
2621
|
+
"aria-selected": selectable ? selected : void 0,
|
|
2622
|
+
"data-state": selected ? "selected" : void 0,
|
|
2623
|
+
tabIndex: interactive ? 0 : void 0,
|
|
2624
|
+
onClick: interactive ? handleClick : onClick,
|
|
2625
|
+
onKeyDown: interactive ? handleKeyDown : onKeyDown,
|
|
2626
|
+
className: cn20(
|
|
2627
|
+
"h-10 border-b border-hairline-soft text-body-sm text-ink transition-colors duration-150 ease-out last:border-b-0",
|
|
2628
|
+
"hover:bg-surface-soft data-[state=selected]:bg-primary-soft",
|
|
2629
|
+
interactive && "cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-focus-blue",
|
|
2630
|
+
className
|
|
2631
|
+
),
|
|
2632
|
+
...rest,
|
|
2633
|
+
children: [
|
|
2634
|
+
selectable && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("td", { className: "w-10 pl-base pr-xs align-middle", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2635
|
+
Checkbox,
|
|
2611
2636
|
{
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2637
|
+
size: "md",
|
|
2638
|
+
checked: selected,
|
|
2639
|
+
onCheckedChange: (v) => onSelectedChange?.(v),
|
|
2640
|
+
"aria-label": selectLabel
|
|
2641
|
+
}
|
|
2642
|
+
) }),
|
|
2643
|
+
cells.map((cell, i) => {
|
|
2644
|
+
const Tag = cell.rowHeader ? "th" : "td";
|
|
2645
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2646
|
+
Tag,
|
|
2647
|
+
{
|
|
2648
|
+
scope: cell.rowHeader ? "row" : void 0,
|
|
2649
|
+
className: cn20(
|
|
2650
|
+
"px-base align-middle text-body-sm",
|
|
2651
|
+
cell.rowHeader ? "text-ink font-weight-body-md" : "text-body",
|
|
2652
|
+
cell.align === "right" ? "text-right tabular-nums" : "text-left",
|
|
2653
|
+
i === 0 && !selectable && "pl-base",
|
|
2654
|
+
i === cells.length - 1 && "pr-base"
|
|
2655
|
+
),
|
|
2656
|
+
children: cell.content
|
|
2657
|
+
},
|
|
2658
|
+
cell.key
|
|
2659
|
+
);
|
|
2660
|
+
})
|
|
2661
|
+
]
|
|
2662
|
+
}
|
|
2663
|
+
);
|
|
2664
|
+
}
|
|
2628
2665
|
);
|
|
2629
2666
|
TableRow.displayName = "TableRow";
|
|
2630
2667
|
|
|
@@ -3047,6 +3084,7 @@ function DataTableDesktopInner({
|
|
|
3047
3084
|
selectable = false,
|
|
3048
3085
|
selectedIds = [],
|
|
3049
3086
|
onSelectedIdsChange,
|
|
3087
|
+
onRowClick,
|
|
3050
3088
|
page = 1,
|
|
3051
3089
|
totalPages = 1,
|
|
3052
3090
|
onPageChange,
|
|
@@ -3146,6 +3184,7 @@ function DataTableDesktopInner({
|
|
|
3146
3184
|
selected: selectedIds.includes(id),
|
|
3147
3185
|
onSelectedChange: (on) => toggleRow(id, on),
|
|
3148
3186
|
selectLabel: `Select row ${id}`,
|
|
3187
|
+
onRowActivate: onRowClick ? () => onRowClick(row) : void 0,
|
|
3149
3188
|
cells: columns.map((col) => ({
|
|
3150
3189
|
key: col.key,
|
|
3151
3190
|
content: col.render(row),
|
|
@@ -3192,6 +3231,7 @@ function DataTableMobileInner({
|
|
|
3192
3231
|
selectable = true,
|
|
3193
3232
|
selectedIds = [],
|
|
3194
3233
|
onSelectedIdsChange,
|
|
3234
|
+
onRowClick,
|
|
3195
3235
|
page = 1,
|
|
3196
3236
|
totalPages = 1,
|
|
3197
3237
|
onPageChange,
|
|
@@ -3262,6 +3302,7 @@ function DataTableMobileInner({
|
|
|
3262
3302
|
onSelectedChange: (on) => toggleRow(id, on),
|
|
3263
3303
|
selectLabel: `Select row ${id}`,
|
|
3264
3304
|
className: "h-11",
|
|
3305
|
+
onRowActivate: onRowClick ? () => onRowClick(row) : void 0,
|
|
3265
3306
|
cells: [
|
|
3266
3307
|
...primary ? [{ key: primary.key, content: primary.render(row), rowHeader: true }] : [],
|
|
3267
3308
|
...trailing.map((c) => ({
|
|
@@ -7345,6 +7386,7 @@ Tooltip.displayName = "Tooltip";
|
|
|
7345
7386
|
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
7346
7387
|
var cn54 = (...parts) => parts.filter(Boolean).join(" ");
|
|
7347
7388
|
var linkBase = "flex h-8 items-center rounded-md border border-transparent text-body-md cursor-pointer transition-colors duration-150 ease-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-focus-blue";
|
|
7389
|
+
var hasBadge = (badge) => badge !== void 0 && badge !== null && badge !== false;
|
|
7348
7390
|
var SidebarDesktop = React72.forwardRef(
|
|
7349
7391
|
({
|
|
7350
7392
|
brandName = "Linear",
|
|
@@ -7352,6 +7394,7 @@ var SidebarDesktop = React72.forwardRef(
|
|
|
7352
7394
|
workspaceName,
|
|
7353
7395
|
workspaceAvatarSrc,
|
|
7354
7396
|
onWorkspaceClick,
|
|
7397
|
+
headerActions,
|
|
7355
7398
|
sections,
|
|
7356
7399
|
activeId,
|
|
7357
7400
|
onNavigate,
|
|
@@ -7388,6 +7431,16 @@ var SidebarDesktop = React72.forwardRef(
|
|
|
7388
7431
|
else next.add(id);
|
|
7389
7432
|
return next;
|
|
7390
7433
|
});
|
|
7434
|
+
const renderIcon = (link) => link.icon ? /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("span", { className: "relative inline-flex shrink-0 items-center justify-center", children: [
|
|
7435
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Icon, { name: link.icon, size: 16, className: "text-body" }),
|
|
7436
|
+
collapsed && hasBadge(link.badge) && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
7437
|
+
"span",
|
|
7438
|
+
{
|
|
7439
|
+
"aria-hidden": "true",
|
|
7440
|
+
className: "absolute right-0 top-0 h-xs w-xs rounded-full bg-primary ring-2 ring-surface"
|
|
7441
|
+
}
|
|
7442
|
+
)
|
|
7443
|
+
] }) : null;
|
|
7391
7444
|
const renderLink = (link, nested = false) => {
|
|
7392
7445
|
const current = link.id === activeId;
|
|
7393
7446
|
const anchor = /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
@@ -7403,8 +7456,9 @@ var SidebarDesktop = React72.forwardRef(
|
|
|
7403
7456
|
current ? "bg-surface-strong text-ink font-weight-label" : "text-ink hover:bg-surface-soft active:bg-surface-strong"
|
|
7404
7457
|
),
|
|
7405
7458
|
children: [
|
|
7406
|
-
|
|
7407
|
-
!collapsed && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "min-w-0 flex-1 truncate", children: link.label })
|
|
7459
|
+
renderIcon(link),
|
|
7460
|
+
!collapsed && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "min-w-0 flex-1 truncate", children: link.label }),
|
|
7461
|
+
!collapsed && hasBadge(link.badge) && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "shrink-0 text-caption text-muted tabular-nums", children: link.badge })
|
|
7408
7462
|
]
|
|
7409
7463
|
}
|
|
7410
7464
|
);
|
|
@@ -7442,8 +7496,9 @@ var SidebarDesktop = React72.forwardRef(
|
|
|
7442
7496
|
onClick: () => flip(link.id),
|
|
7443
7497
|
leadingIcon: link.icon ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Icon, { name: link.icon, size: 16, className: "text-body" }) : void 0,
|
|
7444
7498
|
className: "px-sm",
|
|
7445
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("span", { className: "inline-flex items-center gap-xs", children: [
|
|
7446
|
-
link.label,
|
|
7499
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("span", { className: "inline-flex min-w-0 items-center gap-xs", children: [
|
|
7500
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "truncate", children: link.label }),
|
|
7501
|
+
hasBadge(link.badge) && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "shrink-0 text-caption text-muted tabular-nums", children: link.badge }),
|
|
7447
7502
|
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
7448
7503
|
Icon,
|
|
7449
7504
|
{
|
|
@@ -7467,6 +7522,7 @@ var SidebarDesktop = React72.forwardRef(
|
|
|
7467
7522
|
] }, link.id);
|
|
7468
7523
|
};
|
|
7469
7524
|
const renderItem = (link) => link.children?.length ? renderGroup(link) : renderLink(link);
|
|
7525
|
+
const showWorkspaceRow = Boolean(workspaceName) || !collapsed && headerActions != null;
|
|
7470
7526
|
return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { ref, className: cn54("flex h-full w-full min-h-0 bg-canvas text-ink", className), ...rest, children: [
|
|
7471
7527
|
/* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
7472
7528
|
"aside",
|
|
@@ -7480,17 +7536,29 @@ var SidebarDesktop = React72.forwardRef(
|
|
|
7480
7536
|
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Logo, { name: brandName, href: brandHref, size: "md" }),
|
|
7481
7537
|
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(IconButton, { icon: "panel-left", variant: "secondary", "aria-label": "Collapse sidebar", "aria-expanded": true, onClick: toggle })
|
|
7482
7538
|
] }),
|
|
7483
|
-
|
|
7484
|
-
|
|
7539
|
+
showWorkspaceRow && /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
7540
|
+
"div",
|
|
7485
7541
|
{
|
|
7486
|
-
|
|
7487
|
-
|
|
7488
|
-
|
|
7489
|
-
|
|
7490
|
-
|
|
7491
|
-
|
|
7542
|
+
className: cn54(
|
|
7543
|
+
"shrink-0 pb-sm",
|
|
7544
|
+
collapsed ? "flex justify-center" : "flex items-center gap-xxs px-sm"
|
|
7545
|
+
),
|
|
7546
|
+
children: [
|
|
7547
|
+
workspaceName ? collapsed ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Tooltip, { content: workspaceName, placement: "right", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Button, { variant: "ghost", iconOnly: true, "aria-label": workspaceName, onClick: onWorkspaceClick, children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Avatar, { name: workspaceName, src: workspaceAvatarSrc, size: "sm" }) }) }) : /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
7548
|
+
Button,
|
|
7549
|
+
{
|
|
7550
|
+
variant: "ghost",
|
|
7551
|
+
onClick: onWorkspaceClick,
|
|
7552
|
+
className: "min-w-0 flex-1 justify-start px-sm",
|
|
7553
|
+
leadingIcon: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Avatar, { name: workspaceName, src: workspaceAvatarSrc, size: "sm" }),
|
|
7554
|
+
trailingIcon: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Icon, { name: "chevron-down", size: 14, className: "text-muted" }),
|
|
7555
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "min-w-0 truncate text-ink", children: workspaceName })
|
|
7556
|
+
}
|
|
7557
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "min-w-0 flex-1" }),
|
|
7558
|
+
!collapsed && headerActions != null && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: "flex shrink-0 items-center gap-xxs", children: headerActions })
|
|
7559
|
+
]
|
|
7492
7560
|
}
|
|
7493
|
-
)
|
|
7561
|
+
),
|
|
7494
7562
|
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("nav", { "aria-label": "Main", className: cn54("min-h-0 flex-1 overflow-y-auto overscroll-contain pb-sm", collapsed ? "px-0" : "px-sm"), children: sections.map((section, i) => {
|
|
7495
7563
|
const sectionOpen = !section.label || isOpen(section.id);
|
|
7496
7564
|
const listId = `${baseId}-section-${section.id}`;
|
|
@@ -7569,6 +7637,7 @@ var React73 = __toESM(require("react"));
|
|
|
7569
7637
|
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
7570
7638
|
var cn55 = (...parts) => parts.filter(Boolean).join(" ");
|
|
7571
7639
|
var linkBase2 = "flex h-9 w-full items-center gap-sm rounded-md border border-transparent px-sm text-body-md cursor-pointer transition-colors duration-150 ease-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-focus-blue";
|
|
7640
|
+
var hasBadge2 = (badge) => badge !== void 0 && badge !== null && badge !== false;
|
|
7572
7641
|
var SidebarMobile = React73.forwardRef(
|
|
7573
7642
|
({
|
|
7574
7643
|
brandName = "Linear",
|
|
@@ -7576,6 +7645,7 @@ var SidebarMobile = React73.forwardRef(
|
|
|
7576
7645
|
workspaceName,
|
|
7577
7646
|
workspaceAvatarSrc,
|
|
7578
7647
|
onWorkspaceClick,
|
|
7648
|
+
mobileActions,
|
|
7579
7649
|
sections,
|
|
7580
7650
|
activeId,
|
|
7581
7651
|
onNavigate,
|
|
@@ -7629,7 +7699,8 @@ var SidebarMobile = React73.forwardRef(
|
|
|
7629
7699
|
),
|
|
7630
7700
|
children: [
|
|
7631
7701
|
link.icon && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Icon, { name: link.icon, size: 16, className: "text-body" }),
|
|
7632
|
-
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "min-w-0 flex-1 truncate", children: link.label })
|
|
7702
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "min-w-0 flex-1 truncate", children: link.label }),
|
|
7703
|
+
hasBadge2(link.badge) && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "shrink-0 text-caption text-muted tabular-nums", children: link.badge })
|
|
7633
7704
|
]
|
|
7634
7705
|
}
|
|
7635
7706
|
) }, link.id);
|
|
@@ -7648,8 +7719,9 @@ var SidebarMobile = React73.forwardRef(
|
|
|
7648
7719
|
onClick: () => flip(link.id),
|
|
7649
7720
|
leadingIcon: link.icon ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Icon, { name: link.icon, size: 16, className: "text-body" }) : void 0,
|
|
7650
7721
|
className: "px-sm",
|
|
7651
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("span", { className: "inline-flex items-center gap-xs", children: [
|
|
7652
|
-
link.label,
|
|
7722
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("span", { className: "inline-flex min-w-0 items-center gap-xs", children: [
|
|
7723
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "truncate", children: link.label }),
|
|
7724
|
+
hasBadge2(link.badge) && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "shrink-0 text-caption text-muted tabular-nums", children: link.badge }),
|
|
7653
7725
|
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
7654
7726
|
Icon,
|
|
7655
7727
|
{
|
|
@@ -7675,16 +7747,19 @@ var SidebarMobile = React73.forwardRef(
|
|
|
7675
7747
|
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { ref, className: cn55("flex w-full flex-col bg-canvas text-ink", className), ...rest, children: [
|
|
7676
7748
|
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("header", { className: "flex h-14 w-full shrink-0 items-center justify-between gap-sm border-b border-hairline bg-canvas px-base", children: [
|
|
7677
7749
|
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Logo, { name: brandName, href: brandHref, size: "md" }),
|
|
7678
|
-
/* @__PURE__ */ (0, import_jsx_runtime73.
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
|
|
7682
|
-
|
|
7683
|
-
|
|
7684
|
-
|
|
7685
|
-
|
|
7686
|
-
|
|
7687
|
-
|
|
7750
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex min-w-0 items-center gap-xxs", children: [
|
|
7751
|
+
mobileActions != null && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "flex items-center gap-xxs", children: mobileActions }),
|
|
7752
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
7753
|
+
IconButton,
|
|
7754
|
+
{
|
|
7755
|
+
icon: "menu",
|
|
7756
|
+
variant: "ghost",
|
|
7757
|
+
"aria-label": "Open navigation",
|
|
7758
|
+
"aria-expanded": open,
|
|
7759
|
+
onClick: () => setOpen(true)
|
|
7760
|
+
}
|
|
7761
|
+
)
|
|
7762
|
+
] })
|
|
7688
7763
|
] }),
|
|
7689
7764
|
children !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "min-w-0 flex-1", children }),
|
|
7690
7765
|
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
@@ -7781,6 +7856,8 @@ var Sidebar = React74.forwardRef(
|
|
|
7781
7856
|
onCollapsedChange,
|
|
7782
7857
|
mobileOpen,
|
|
7783
7858
|
onMobileOpenChange,
|
|
7859
|
+
headerActions,
|
|
7860
|
+
mobileActions,
|
|
7784
7861
|
children,
|
|
7785
7862
|
className,
|
|
7786
7863
|
...shared
|
|
@@ -7794,12 +7871,21 @@ var Sidebar = React74.forwardRef(
|
|
|
7794
7871
|
SidebarDesktop,
|
|
7795
7872
|
{
|
|
7796
7873
|
...shared,
|
|
7874
|
+
headerActions,
|
|
7797
7875
|
collapsed,
|
|
7798
7876
|
defaultCollapsed,
|
|
7799
7877
|
onCollapsedChange
|
|
7800
7878
|
}
|
|
7801
7879
|
) }),
|
|
7802
|
-
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "shrink-0 md:hidden", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
7880
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "shrink-0 md:hidden", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
7881
|
+
SidebarMobile,
|
|
7882
|
+
{
|
|
7883
|
+
...shared,
|
|
7884
|
+
mobileActions,
|
|
7885
|
+
open: mobileOpen,
|
|
7886
|
+
onOpenChange: onMobileOpenChange
|
|
7887
|
+
}
|
|
7888
|
+
) }),
|
|
7803
7889
|
children !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "min-h-0 min-w-0 flex-1 overflow-auto", children })
|
|
7804
7890
|
]
|
|
7805
7891
|
}
|