@inf-monkeys-tech/monkeys-design 1.0.6 → 1.0.7
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/components/layout/index.d.mts +38 -9
- package/dist/components/layout/index.d.ts +38 -9
- package/dist/components/layout/index.js +526 -185
- package/dist/components/layout/index.js.map +1 -1
- package/dist/components/layout/index.mjs +526 -186
- package/dist/components/layout/index.mjs.map +1 -1
- package/dist/components/primitives/index.d.mts +2 -2
- package/dist/components/primitives/index.d.ts +2 -2
- package/dist/components/primitives/index.js +92 -15
- package/dist/components/primitives/index.js.map +1 -1
- package/dist/components/primitives/index.mjs +92 -15
- package/dist/components/primitives/index.mjs.map +1 -1
- package/dist/components/workbench/index.d.mts +11 -1
- package/dist/components/workbench/index.d.ts +11 -1
- package/dist/components/workbench/index.js +28 -3
- package/dist/components/workbench/index.js.map +1 -1
- package/dist/components/workbench/index.mjs +28 -3
- package/dist/components/workbench/index.mjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +554 -188
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +554 -189
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -16,12 +16,21 @@ interface WorkbenchResizableSidebarItem {
|
|
|
16
16
|
className?: string;
|
|
17
17
|
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
18
18
|
}
|
|
19
|
+
interface WorkbenchResizableSidebarSection {
|
|
20
|
+
id: string;
|
|
21
|
+
label?: ReactNode;
|
|
22
|
+
items: WorkbenchResizableSidebarItem[];
|
|
23
|
+
className?: string;
|
|
24
|
+
labelClassName?: string;
|
|
25
|
+
}
|
|
19
26
|
interface WorkbenchResizableSidebarClassNames {
|
|
20
27
|
root?: string;
|
|
21
28
|
header?: string;
|
|
22
29
|
title?: string;
|
|
23
30
|
collapseButton?: string;
|
|
24
31
|
list?: string;
|
|
32
|
+
section?: string;
|
|
33
|
+
sectionLabel?: string;
|
|
25
34
|
item?: string;
|
|
26
35
|
itemIcon?: string;
|
|
27
36
|
itemLabel?: string;
|
|
@@ -32,6 +41,7 @@ interface WorkbenchResizableSidebarClassNames {
|
|
|
32
41
|
interface WorkbenchResizableSidebarProps {
|
|
33
42
|
title?: ReactNode;
|
|
34
43
|
items: WorkbenchResizableSidebarItem[];
|
|
44
|
+
sections?: WorkbenchResizableSidebarSection[];
|
|
35
45
|
activeItemId?: string;
|
|
36
46
|
itemAs?: ElementType;
|
|
37
47
|
collapsed?: boolean;
|
|
@@ -968,4 +978,4 @@ interface WorkbenchRadarMatrixProps {
|
|
|
968
978
|
className?: string;
|
|
969
979
|
}
|
|
970
980
|
declare function WorkbenchRadarMatrix({ points, xAxis, yAxis, thresholds, quadrants, legend, selectedPointId, onPointSelect, width, height, labelLimit, emptyState, ariaLabel, className, }: WorkbenchRadarMatrixProps): null | react_jsx_runtime.JSX.Element;
|
|
971
|
-
export { InteractiveTable, type InteractiveTableClassNames, type InteractiveTableColumn, type InteractiveTableColumnMenuLabels, InteractiveTableEditableTextCell, type InteractiveTableEditableTextCellProps, type InteractiveTableHeaderContext, type InteractiveTableHeaderProps, type InteractiveTableProps, InteractiveTableReadonlyCell, type InteractiveTableReadonlyCellProps, type InteractiveTableRenderContext, type InteractiveTableRowState, InteractiveTableSelectCell, type InteractiveTableSelectCellProps, type InteractiveTableSelectOption, WorkbenchAssetGallery, type WorkbenchAssetGalleryItem, type WorkbenchAssetGalleryProps, WorkbenchContentPane, type WorkbenchContentPaneBodyProps, type WorkbenchContentPaneClassNames, type WorkbenchContentPaneProps, WorkbenchContentToolbar, type WorkbenchContentToolbarClassNames, type WorkbenchContentToolbarProps, type WorkbenchContentToolbarViewModeOption, WorkbenchDetailSidebar, type WorkbenchDetailSidebarBodyProps, type WorkbenchDetailSidebarClassNames, type WorkbenchDetailSidebarField, type WorkbenchDetailSidebarProps, type WorkbenchDetailSidebarRenderContext, type WorkbenchDetailSidebarSection, type WorkbenchEvidenceItem, WorkbenchEvidenceList, type WorkbenchEvidenceListProps, WorkbenchGalleryCard, type WorkbenchGalleryCardMetaContext, type WorkbenchGalleryCardProps, type WorkbenchGalleryCardRenderContext, type WorkbenchGalleryColumn, type WorkbenchGalleryLabels, type WorkbenchGalleryRecordVisual, WorkbenchGallerySettingsButton, type WorkbenchGallerySettingsButtonClassNames, type WorkbenchGallerySettingsButtonProps, type WorkbenchGallerySettingsLabels, type WorkbenchGallerySettingsOption, WorkbenchGallerySettingsPanel, type WorkbenchGallerySettingsPanelClassNames, type WorkbenchGallerySettingsPanelProps, type WorkbenchGallerySettingsValue, WorkbenchGalleryView, type WorkbenchGalleryViewProps, type WorkbenchJourneyItem, type WorkbenchJourneyItemState, WorkbenchJourneyNavigation, type WorkbenchJourneyNavigationProps, type WorkbenchLaneClassNames, type WorkbenchLaneColumn, type WorkbenchLaneRenderCardContext, WorkbenchLaneView, type WorkbenchLaneViewProps, type WorkbenchMasonryItemSize, WorkbenchMasonryLayout, type WorkbenchMasonryLayoutContext, type WorkbenchMasonryLayoutProps, WorkbenchMetricGrid, type WorkbenchMetricGridDensity, type WorkbenchMetricGridProps, type WorkbenchMetricGridVariant, type WorkbenchMetricItem, WorkbenchRadarFilterChip, WorkbenchRadarInspectorSection, type WorkbenchRadarLegendItem, WorkbenchRadarMatrix, type WorkbenchRadarMatrixProps, type WorkbenchRadarNavigationChild, type WorkbenchRadarNavigationItem, type WorkbenchRadarQuadrant, WorkbenchRadarWorkspace, type WorkbenchRadarWorkspaceProps, WorkbenchRankedList, type WorkbenchRankedListItem, type WorkbenchRankedListMetric, type WorkbenchRankedListProps, type WorkbenchRelationshipEdge, WorkbenchRelationshipGraph, type WorkbenchRelationshipGraphProps, type WorkbenchRelationshipNode, WorkbenchResizableSidebar, type WorkbenchResizableSidebarClassNames, type WorkbenchResizableSidebarItem, type WorkbenchResizableSidebarProps, type WorkbenchScatterAxis, WorkbenchScatterPlot, type WorkbenchScatterPlotProps, type WorkbenchScatterPoint, type WorkbenchScatterThresholds, WorkbenchSelectionTray, type WorkbenchSelectionTrayItem, type WorkbenchSelectionTrayProps, WorkbenchTableView, type WorkbenchTableViewClassNames, type WorkbenchTableViewColumn, type WorkbenchTableViewHeaderContext, type WorkbenchTableViewProps, type WorkbenchTableViewRenderContext, type WorkbenchVisualizationTone };
|
|
981
|
+
export { InteractiveTable, type InteractiveTableClassNames, type InteractiveTableColumn, type InteractiveTableColumnMenuLabels, InteractiveTableEditableTextCell, type InteractiveTableEditableTextCellProps, type InteractiveTableHeaderContext, type InteractiveTableHeaderProps, type InteractiveTableProps, InteractiveTableReadonlyCell, type InteractiveTableReadonlyCellProps, type InteractiveTableRenderContext, type InteractiveTableRowState, InteractiveTableSelectCell, type InteractiveTableSelectCellProps, type InteractiveTableSelectOption, WorkbenchAssetGallery, type WorkbenchAssetGalleryItem, type WorkbenchAssetGalleryProps, WorkbenchContentPane, type WorkbenchContentPaneBodyProps, type WorkbenchContentPaneClassNames, type WorkbenchContentPaneProps, WorkbenchContentToolbar, type WorkbenchContentToolbarClassNames, type WorkbenchContentToolbarProps, type WorkbenchContentToolbarViewModeOption, WorkbenchDetailSidebar, type WorkbenchDetailSidebarBodyProps, type WorkbenchDetailSidebarClassNames, type WorkbenchDetailSidebarField, type WorkbenchDetailSidebarProps, type WorkbenchDetailSidebarRenderContext, type WorkbenchDetailSidebarSection, type WorkbenchEvidenceItem, WorkbenchEvidenceList, type WorkbenchEvidenceListProps, WorkbenchGalleryCard, type WorkbenchGalleryCardMetaContext, type WorkbenchGalleryCardProps, type WorkbenchGalleryCardRenderContext, type WorkbenchGalleryColumn, type WorkbenchGalleryLabels, type WorkbenchGalleryRecordVisual, WorkbenchGallerySettingsButton, type WorkbenchGallerySettingsButtonClassNames, type WorkbenchGallerySettingsButtonProps, type WorkbenchGallerySettingsLabels, type WorkbenchGallerySettingsOption, WorkbenchGallerySettingsPanel, type WorkbenchGallerySettingsPanelClassNames, type WorkbenchGallerySettingsPanelProps, type WorkbenchGallerySettingsValue, WorkbenchGalleryView, type WorkbenchGalleryViewProps, type WorkbenchJourneyItem, type WorkbenchJourneyItemState, WorkbenchJourneyNavigation, type WorkbenchJourneyNavigationProps, type WorkbenchLaneClassNames, type WorkbenchLaneColumn, type WorkbenchLaneRenderCardContext, WorkbenchLaneView, type WorkbenchLaneViewProps, type WorkbenchMasonryItemSize, WorkbenchMasonryLayout, type WorkbenchMasonryLayoutContext, type WorkbenchMasonryLayoutProps, WorkbenchMetricGrid, type WorkbenchMetricGridDensity, type WorkbenchMetricGridProps, type WorkbenchMetricGridVariant, type WorkbenchMetricItem, WorkbenchRadarFilterChip, WorkbenchRadarInspectorSection, type WorkbenchRadarLegendItem, WorkbenchRadarMatrix, type WorkbenchRadarMatrixProps, type WorkbenchRadarNavigationChild, type WorkbenchRadarNavigationItem, type WorkbenchRadarQuadrant, WorkbenchRadarWorkspace, type WorkbenchRadarWorkspaceProps, WorkbenchRankedList, type WorkbenchRankedListItem, type WorkbenchRankedListMetric, type WorkbenchRankedListProps, type WorkbenchRelationshipEdge, WorkbenchRelationshipGraph, type WorkbenchRelationshipGraphProps, type WorkbenchRelationshipNode, WorkbenchResizableSidebar, type WorkbenchResizableSidebarClassNames, type WorkbenchResizableSidebarItem, type WorkbenchResizableSidebarProps, type WorkbenchResizableSidebarSection, type WorkbenchScatterAxis, WorkbenchScatterPlot, type WorkbenchScatterPlotProps, type WorkbenchScatterPoint, type WorkbenchScatterThresholds, WorkbenchSelectionTray, type WorkbenchSelectionTrayItem, type WorkbenchSelectionTrayProps, WorkbenchTableView, type WorkbenchTableViewClassNames, type WorkbenchTableViewColumn, type WorkbenchTableViewHeaderContext, type WorkbenchTableViewProps, type WorkbenchTableViewRenderContext, type WorkbenchVisualizationTone };
|
|
@@ -16,12 +16,21 @@ interface WorkbenchResizableSidebarItem {
|
|
|
16
16
|
className?: string;
|
|
17
17
|
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
18
18
|
}
|
|
19
|
+
interface WorkbenchResizableSidebarSection {
|
|
20
|
+
id: string;
|
|
21
|
+
label?: ReactNode;
|
|
22
|
+
items: WorkbenchResizableSidebarItem[];
|
|
23
|
+
className?: string;
|
|
24
|
+
labelClassName?: string;
|
|
25
|
+
}
|
|
19
26
|
interface WorkbenchResizableSidebarClassNames {
|
|
20
27
|
root?: string;
|
|
21
28
|
header?: string;
|
|
22
29
|
title?: string;
|
|
23
30
|
collapseButton?: string;
|
|
24
31
|
list?: string;
|
|
32
|
+
section?: string;
|
|
33
|
+
sectionLabel?: string;
|
|
25
34
|
item?: string;
|
|
26
35
|
itemIcon?: string;
|
|
27
36
|
itemLabel?: string;
|
|
@@ -32,6 +41,7 @@ interface WorkbenchResizableSidebarClassNames {
|
|
|
32
41
|
interface WorkbenchResizableSidebarProps {
|
|
33
42
|
title?: ReactNode;
|
|
34
43
|
items: WorkbenchResizableSidebarItem[];
|
|
44
|
+
sections?: WorkbenchResizableSidebarSection[];
|
|
35
45
|
activeItemId?: string;
|
|
36
46
|
itemAs?: ElementType;
|
|
37
47
|
collapsed?: boolean;
|
|
@@ -968,4 +978,4 @@ interface WorkbenchRadarMatrixProps {
|
|
|
968
978
|
className?: string;
|
|
969
979
|
}
|
|
970
980
|
declare function WorkbenchRadarMatrix({ points, xAxis, yAxis, thresholds, quadrants, legend, selectedPointId, onPointSelect, width, height, labelLimit, emptyState, ariaLabel, className, }: WorkbenchRadarMatrixProps): null | react_jsx_runtime.JSX.Element;
|
|
971
|
-
export { InteractiveTable, type InteractiveTableClassNames, type InteractiveTableColumn, type InteractiveTableColumnMenuLabels, InteractiveTableEditableTextCell, type InteractiveTableEditableTextCellProps, type InteractiveTableHeaderContext, type InteractiveTableHeaderProps, type InteractiveTableProps, InteractiveTableReadonlyCell, type InteractiveTableReadonlyCellProps, type InteractiveTableRenderContext, type InteractiveTableRowState, InteractiveTableSelectCell, type InteractiveTableSelectCellProps, type InteractiveTableSelectOption, WorkbenchAssetGallery, type WorkbenchAssetGalleryItem, type WorkbenchAssetGalleryProps, WorkbenchContentPane, type WorkbenchContentPaneBodyProps, type WorkbenchContentPaneClassNames, type WorkbenchContentPaneProps, WorkbenchContentToolbar, type WorkbenchContentToolbarClassNames, type WorkbenchContentToolbarProps, type WorkbenchContentToolbarViewModeOption, WorkbenchDetailSidebar, type WorkbenchDetailSidebarBodyProps, type WorkbenchDetailSidebarClassNames, type WorkbenchDetailSidebarField, type WorkbenchDetailSidebarProps, type WorkbenchDetailSidebarRenderContext, type WorkbenchDetailSidebarSection, type WorkbenchEvidenceItem, WorkbenchEvidenceList, type WorkbenchEvidenceListProps, WorkbenchGalleryCard, type WorkbenchGalleryCardMetaContext, type WorkbenchGalleryCardProps, type WorkbenchGalleryCardRenderContext, type WorkbenchGalleryColumn, type WorkbenchGalleryLabels, type WorkbenchGalleryRecordVisual, WorkbenchGallerySettingsButton, type WorkbenchGallerySettingsButtonClassNames, type WorkbenchGallerySettingsButtonProps, type WorkbenchGallerySettingsLabels, type WorkbenchGallerySettingsOption, WorkbenchGallerySettingsPanel, type WorkbenchGallerySettingsPanelClassNames, type WorkbenchGallerySettingsPanelProps, type WorkbenchGallerySettingsValue, WorkbenchGalleryView, type WorkbenchGalleryViewProps, type WorkbenchJourneyItem, type WorkbenchJourneyItemState, WorkbenchJourneyNavigation, type WorkbenchJourneyNavigationProps, type WorkbenchLaneClassNames, type WorkbenchLaneColumn, type WorkbenchLaneRenderCardContext, WorkbenchLaneView, type WorkbenchLaneViewProps, type WorkbenchMasonryItemSize, WorkbenchMasonryLayout, type WorkbenchMasonryLayoutContext, type WorkbenchMasonryLayoutProps, WorkbenchMetricGrid, type WorkbenchMetricGridDensity, type WorkbenchMetricGridProps, type WorkbenchMetricGridVariant, type WorkbenchMetricItem, WorkbenchRadarFilterChip, WorkbenchRadarInspectorSection, type WorkbenchRadarLegendItem, WorkbenchRadarMatrix, type WorkbenchRadarMatrixProps, type WorkbenchRadarNavigationChild, type WorkbenchRadarNavigationItem, type WorkbenchRadarQuadrant, WorkbenchRadarWorkspace, type WorkbenchRadarWorkspaceProps, WorkbenchRankedList, type WorkbenchRankedListItem, type WorkbenchRankedListMetric, type WorkbenchRankedListProps, type WorkbenchRelationshipEdge, WorkbenchRelationshipGraph, type WorkbenchRelationshipGraphProps, type WorkbenchRelationshipNode, WorkbenchResizableSidebar, type WorkbenchResizableSidebarClassNames, type WorkbenchResizableSidebarItem, type WorkbenchResizableSidebarProps, type WorkbenchScatterAxis, WorkbenchScatterPlot, type WorkbenchScatterPlotProps, type WorkbenchScatterPoint, type WorkbenchScatterThresholds, WorkbenchSelectionTray, type WorkbenchSelectionTrayItem, type WorkbenchSelectionTrayProps, WorkbenchTableView, type WorkbenchTableViewClassNames, type WorkbenchTableViewColumn, type WorkbenchTableViewHeaderContext, type WorkbenchTableViewProps, type WorkbenchTableViewRenderContext, type WorkbenchVisualizationTone };
|
|
981
|
+
export { InteractiveTable, type InteractiveTableClassNames, type InteractiveTableColumn, type InteractiveTableColumnMenuLabels, InteractiveTableEditableTextCell, type InteractiveTableEditableTextCellProps, type InteractiveTableHeaderContext, type InteractiveTableHeaderProps, type InteractiveTableProps, InteractiveTableReadonlyCell, type InteractiveTableReadonlyCellProps, type InteractiveTableRenderContext, type InteractiveTableRowState, InteractiveTableSelectCell, type InteractiveTableSelectCellProps, type InteractiveTableSelectOption, WorkbenchAssetGallery, type WorkbenchAssetGalleryItem, type WorkbenchAssetGalleryProps, WorkbenchContentPane, type WorkbenchContentPaneBodyProps, type WorkbenchContentPaneClassNames, type WorkbenchContentPaneProps, WorkbenchContentToolbar, type WorkbenchContentToolbarClassNames, type WorkbenchContentToolbarProps, type WorkbenchContentToolbarViewModeOption, WorkbenchDetailSidebar, type WorkbenchDetailSidebarBodyProps, type WorkbenchDetailSidebarClassNames, type WorkbenchDetailSidebarField, type WorkbenchDetailSidebarProps, type WorkbenchDetailSidebarRenderContext, type WorkbenchDetailSidebarSection, type WorkbenchEvidenceItem, WorkbenchEvidenceList, type WorkbenchEvidenceListProps, WorkbenchGalleryCard, type WorkbenchGalleryCardMetaContext, type WorkbenchGalleryCardProps, type WorkbenchGalleryCardRenderContext, type WorkbenchGalleryColumn, type WorkbenchGalleryLabels, type WorkbenchGalleryRecordVisual, WorkbenchGallerySettingsButton, type WorkbenchGallerySettingsButtonClassNames, type WorkbenchGallerySettingsButtonProps, type WorkbenchGallerySettingsLabels, type WorkbenchGallerySettingsOption, WorkbenchGallerySettingsPanel, type WorkbenchGallerySettingsPanelClassNames, type WorkbenchGallerySettingsPanelProps, type WorkbenchGallerySettingsValue, WorkbenchGalleryView, type WorkbenchGalleryViewProps, type WorkbenchJourneyItem, type WorkbenchJourneyItemState, WorkbenchJourneyNavigation, type WorkbenchJourneyNavigationProps, type WorkbenchLaneClassNames, type WorkbenchLaneColumn, type WorkbenchLaneRenderCardContext, WorkbenchLaneView, type WorkbenchLaneViewProps, type WorkbenchMasonryItemSize, WorkbenchMasonryLayout, type WorkbenchMasonryLayoutContext, type WorkbenchMasonryLayoutProps, WorkbenchMetricGrid, type WorkbenchMetricGridDensity, type WorkbenchMetricGridProps, type WorkbenchMetricGridVariant, type WorkbenchMetricItem, WorkbenchRadarFilterChip, WorkbenchRadarInspectorSection, type WorkbenchRadarLegendItem, WorkbenchRadarMatrix, type WorkbenchRadarMatrixProps, type WorkbenchRadarNavigationChild, type WorkbenchRadarNavigationItem, type WorkbenchRadarQuadrant, WorkbenchRadarWorkspace, type WorkbenchRadarWorkspaceProps, WorkbenchRankedList, type WorkbenchRankedListItem, type WorkbenchRankedListMetric, type WorkbenchRankedListProps, type WorkbenchRelationshipEdge, WorkbenchRelationshipGraph, type WorkbenchRelationshipGraphProps, type WorkbenchRelationshipNode, WorkbenchResizableSidebar, type WorkbenchResizableSidebarClassNames, type WorkbenchResizableSidebarItem, type WorkbenchResizableSidebarProps, type WorkbenchResizableSidebarSection, type WorkbenchScatterAxis, WorkbenchScatterPlot, type WorkbenchScatterPlotProps, type WorkbenchScatterPoint, type WorkbenchScatterThresholds, WorkbenchSelectionTray, type WorkbenchSelectionTrayItem, type WorkbenchSelectionTrayProps, WorkbenchTableView, type WorkbenchTableViewClassNames, type WorkbenchTableViewColumn, type WorkbenchTableViewHeaderContext, type WorkbenchTableViewProps, type WorkbenchTableViewRenderContext, type WorkbenchVisualizationTone };
|
|
@@ -109,6 +109,7 @@ var WorkbenchResizableSidebar = react.forwardRef(
|
|
|
109
109
|
function WorkbenchResizableSidebar2({
|
|
110
110
|
title,
|
|
111
111
|
items,
|
|
112
|
+
sections = [],
|
|
112
113
|
activeItemId,
|
|
113
114
|
itemAs,
|
|
114
115
|
collapsed,
|
|
@@ -225,6 +226,7 @@ var WorkbenchResizableSidebar = react.forwardRef(
|
|
|
225
226
|
document.body.style.userSelect = "";
|
|
226
227
|
};
|
|
227
228
|
}, [collapseThreshold, collapsible, isResizing, maxWidth, minWidth, resolvedWidth, resolvedCollapsed]);
|
|
229
|
+
const resolvedItems = sections.length ? [...items, ...sections.flatMap((section) => section.items)] : items;
|
|
228
230
|
const renderItem = (item, mobile = false) => {
|
|
229
231
|
const active = item.active ?? item.id === activeItemId;
|
|
230
232
|
const ItemComponent = itemAs ?? (item.href ? "a" : "button");
|
|
@@ -261,7 +263,7 @@ var WorkbenchResizableSidebar = react.forwardRef(
|
|
|
261
263
|
children: [
|
|
262
264
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn("inline-flex h-4 w-4 shrink-0 items-center justify-center [&_svg]:h-3.5 [&_svg]:w-3.5", classNames?.itemIcon), children: item.icon }),
|
|
263
265
|
mobile || !resolvedCollapsed ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn("min-w-0 flex-1 truncate", classNames?.itemLabel), children: item.label }) : null,
|
|
264
|
-
!mobile && !resolvedCollapsed && item.endContent ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0", children: item.endContent }) : null
|
|
266
|
+
!mobile && !resolvedCollapsed && item.endContent !== void 0 && item.endContent !== null ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0", children: item.endContent }) : null
|
|
265
267
|
]
|
|
266
268
|
},
|
|
267
269
|
item.id
|
|
@@ -315,12 +317,35 @@ var WorkbenchResizableSidebar = react.forwardRef(
|
|
|
315
317
|
}
|
|
316
318
|
) : null
|
|
317
319
|
] }),
|
|
318
|
-
/* @__PURE__ */ jsxRuntime.
|
|
320
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("min-h-0 flex-1 space-y-2 overflow-y-auto", resolvedCollapsed && "flex w-full flex-col items-center", classNames?.list), children: [
|
|
321
|
+
items.map((item) => renderItem(item)),
|
|
322
|
+
sections.map((section) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
323
|
+
"div",
|
|
324
|
+
{
|
|
325
|
+
className: cn("flex w-full flex-col gap-2", classNames?.section, section.className),
|
|
326
|
+
children: [
|
|
327
|
+
!resolvedCollapsed && section.label ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
328
|
+
"div",
|
|
329
|
+
{
|
|
330
|
+
className: cn(
|
|
331
|
+
"px-2 text-[11px] font-medium text-muted-foreground",
|
|
332
|
+
classNames?.sectionLabel,
|
|
333
|
+
section.labelClassName
|
|
334
|
+
),
|
|
335
|
+
children: section.label
|
|
336
|
+
}
|
|
337
|
+
) : null,
|
|
338
|
+
section.items.map((item) => renderItem(item))
|
|
339
|
+
]
|
|
340
|
+
},
|
|
341
|
+
section.id
|
|
342
|
+
))
|
|
343
|
+
] })
|
|
319
344
|
] })
|
|
320
345
|
]
|
|
321
346
|
}
|
|
322
347
|
),
|
|
323
|
-
/* @__PURE__ */ jsxRuntime.jsx("nav", { className: cn("gap-2 overflow-x-auto pb-1", mobileClassName, classNames?.mobileNav), "aria-label": typeof title === "string" ? title : void 0, children:
|
|
348
|
+
/* @__PURE__ */ jsxRuntime.jsx("nav", { className: cn("gap-2 overflow-x-auto pb-1", mobileClassName, classNames?.mobileNav), "aria-label": typeof title === "string" ? title : void 0, children: resolvedItems.map((item) => renderItem(item, true)) })
|
|
324
349
|
] });
|
|
325
350
|
}
|
|
326
351
|
);
|