@columenlabs/lumen-ui 0.1.62 → 0.1.63

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/nav.d.ts CHANGED
@@ -72,7 +72,7 @@ export declare function SidebarSection({ label, items, onAdd, addLabel, onRemove
72
72
  loading?: boolean;
73
73
  /** Shown when there are no items. */
74
74
  empty?: ReactNode;
75
- /** Extra content under the items (a search box, a retry line). */
75
+ /** Extra content under the items (a search box, a retry line); left out on the icon rail. */
76
76
  children?: ReactNode;
77
77
  /** What its items stand for in the assistant's @ picker; plain pages by default. */
78
78
  pageType?: AssistantPageType;
package/dist/nav.js CHANGED
@@ -110,5 +110,5 @@ export function SidebarSection({ label, items, onAdd, addLabel = `Add to ${label
110
110
  }
111
111
  return (_jsx(FoldGroup, { label: label, action: onAdd && (_jsx(SidebarGroupAction, { title: addLabel, "aria-label": addLabel, onClick: onAdd, children: _jsx(PlusIcon, {}) })), children: _jsxs(SidebarGroupContent, { children: [_jsxs(SidebarMenu, { children: [loading
112
112
  ? [0, 1].map((i) => (_jsx(SidebarMenuItem, { children: _jsx(SidebarMenuSkeleton, { showIcon: true }) }, i)))
113
- : items.map((item) => (_jsx(SectionRow, { item: item, activeId: activeId, onRemove: onRemove, removeLabel: removeLabel }, item.id))), !loading && !items.length && empty && (_jsx("li", { className: "px-2 py-1 text-xs text-muted-foreground group-data-[collapsible=icon]:hidden", children: empty }))] }), children] }) }));
113
+ : items.map((item) => (_jsx(SectionRow, { item: item, activeId: activeId, onRemove: onRemove, removeLabel: removeLabel }, item.id))), !loading && !items.length && empty && (_jsx("li", { className: "px-2 py-1 text-xs text-muted-foreground group-data-[collapsible=icon]:hidden", children: empty }))] }), children && _jsx("div", { className: "group-data-[collapsible=icon]:hidden", children: children })] }) }));
114
114
  }
@@ -112,10 +112,10 @@ function SidebarInput({ className, ...props }) {
112
112
  return (_jsx(Input, { "data-slot": "sidebar-input", "data-sidebar": "input", className: cn('bg-background h-8 w-full shadow-none', className), ...props }));
113
113
  }
114
114
  function SidebarHeader({ className, ...props }) {
115
- return (_jsx("div", { "data-slot": "sidebar-header", "data-sidebar": "header", className: cn('gap-2 p-2 flex flex-col', className), ...props }));
115
+ return (_jsx("div", { "data-slot": "sidebar-header", "data-sidebar": "header", className: cn('gap-2 p-2 flex flex-col group-data-[collapsible=icon]:overflow-hidden group-data-[collapsible=icon]:whitespace-nowrap', className), ...props }));
116
116
  }
117
117
  function SidebarFooter({ className, ...props }) {
118
- return (_jsx("div", { "data-slot": "sidebar-footer", "data-sidebar": "footer", className: cn('gap-2 p-2 flex flex-col', className), ...props }));
118
+ return (_jsx("div", { "data-slot": "sidebar-footer", "data-sidebar": "footer", className: cn('gap-2 p-2 flex flex-col group-data-[collapsible=icon]:overflow-hidden group-data-[collapsible=icon]:whitespace-nowrap', className), ...props }));
119
119
  }
120
120
  function SidebarSeparator({ className, ...props }) {
121
121
  return (_jsx(Separator, { "data-slot": "sidebar-separator", "data-sidebar": "separator", className: cn('bg-sidebar-border mx-2 w-auto', className), ...props }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@columenlabs/lumen-ui",
3
- "version": "0.1.62",
3
+ "version": "0.1.63",
4
4
  "description": "Lumen: shared React components (frame, views, widgets, charts, drawers).",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -41,7 +41,7 @@
41
41
  "@codemirror/lang-javascript": "6.2.5",
42
42
  "@codemirror/lang-json": "6.0.2",
43
43
  "@codemirror/lang-sql": "6.10.0",
44
- "@columenlabs/lumen-ui-types": "0.1.62",
44
+ "@columenlabs/lumen-ui-types": "0.1.63",
45
45
  "@dnd-kit/core": "6.3.1",
46
46
  "@dnd-kit/sortable": "10.0.0",
47
47
  "@dnd-kit/utilities": "3.2.2",