@conscia-labs/design-system 0.4.0 → 1.0.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/index.js CHANGED
@@ -10,6 +10,7 @@ import {
10
10
  AppSidebarHeader,
11
11
  AppearanceControl,
12
12
  CodeBlock,
13
+ CommandPalette,
13
14
  ConfirmationDialog,
14
15
  DataTable,
15
16
  DensityControl,
@@ -20,6 +21,7 @@ import {
20
21
  DetailSections,
21
22
  EntityTable,
22
23
  ErrorState,
24
+ FilterBar,
23
25
  IdentityRow,
24
26
  InspectorRegion,
25
27
  InventoryDesktop,
@@ -68,7 +70,7 @@ import {
68
70
  WorkbenchShell,
69
71
  useAppShell,
70
72
  useConsciaPreferences
71
- } from "./chunk-KYH7IZ3Z.js";
73
+ } from "./chunk-WEI3PU4A.js";
72
74
  import {
73
75
  appearanceOptions,
74
76
  applyConsciaPreferences,
@@ -80,13 +82,16 @@ import {
80
82
  AlertTitle,
81
83
  Avatar,
82
84
  AvatarFallback,
85
+ AvatarGroup,
83
86
  AvatarImage,
84
87
  Badge,
85
88
  BrandIcon,
89
+ BrandWordmark,
86
90
  ConsciaButton,
87
91
  ConsciaCard,
88
92
  ConsciaCardContent,
89
93
  ConsciaCardDescription,
94
+ ConsciaCardFooter,
90
95
  ConsciaCardHeader,
91
96
  ConsciaCardTitle,
92
97
  ConsciaCheckbox,
@@ -112,19 +117,53 @@ import {
112
117
  FieldError,
113
118
  FieldGroup,
114
119
  FieldLabel,
120
+ FilterChip,
115
121
  FormSelect,
116
122
  Label,
123
+ Popover,
124
+ PopoverArrow,
125
+ PopoverClose,
126
+ PopoverContent,
127
+ PopoverDescription,
128
+ PopoverPortal,
129
+ PopoverPositioner,
130
+ PopoverTitle,
131
+ PopoverTrigger,
117
132
  SearchableSelect,
133
+ Spinner,
118
134
  Switch,
119
135
  Textarea,
136
+ Toast,
137
+ ToastAction,
138
+ ToastClose,
139
+ ToastContent,
140
+ ToastDescription,
141
+ ToastProvider,
142
+ ToastTitle,
143
+ ToastViewport,
120
144
  alertVariants,
121
- badgeVariants
122
- } from "./chunk-C44RGLGF.js";
145
+ badgeVariants,
146
+ useToast
147
+ } from "./chunk-3UTRMJLB.js";
123
148
  import {
149
+ AlertDialog,
150
+ AlertDialogAction,
151
+ AlertDialogBody,
152
+ AlertDialogCancel,
153
+ AlertDialogClose,
154
+ AlertDialogContent,
155
+ AlertDialogDescription,
156
+ AlertDialogFooter,
157
+ AlertDialogHeader,
158
+ AlertDialogOverlay,
159
+ AlertDialogPortal,
160
+ AlertDialogTitle,
161
+ AlertDialogTrigger,
124
162
  Button,
125
163
  Card,
126
164
  CardContent,
127
165
  CardDescription,
166
+ CardFooter,
128
167
  CardHeader,
129
168
  CardTitle,
130
169
  Checkbox,
@@ -147,11 +186,13 @@ import {
147
186
  DropdownMenuGroup,
148
187
  DropdownMenuItem,
149
188
  DropdownMenuLabel,
189
+ DropdownMenuLinkItem,
150
190
  DropdownMenuSeparator,
151
191
  DropdownMenuSub,
152
192
  DropdownMenuSubContent,
153
193
  DropdownMenuSubTrigger,
154
194
  DropdownMenuTrigger,
195
+ IconButton,
155
196
  Input,
156
197
  NavigationTab,
157
198
  NavigationTabs,
@@ -178,10 +219,13 @@ import {
178
219
  SheetPortal,
179
220
  SheetTitle,
180
221
  SheetTrigger,
222
+ ShortcutHint,
181
223
  Skeleton,
182
224
  Table,
183
225
  TableBody,
226
+ TableCaption,
184
227
  TableCell,
228
+ TableFooter,
185
229
  TableHead,
186
230
  TableHeader,
187
231
  TableRow,
@@ -193,16 +237,31 @@ import {
193
237
  TooltipContent,
194
238
  TooltipProvider,
195
239
  TooltipTrigger,
196
- buttonVariants
197
- } from "./chunk-RAGHGWLB.js";
240
+ buttonVariants,
241
+ cardVariants
242
+ } from "./chunk-YAJUTCGD.js";
198
243
  import {
199
244
  cn
200
245
  } from "./chunk-JU5DQXFC.js";
246
+ import "./chunk-UVKRO5ER.js";
201
247
  export {
202
248
  ActivityItem,
203
249
  ActivityList,
204
250
  Alert,
205
251
  AlertDescription,
252
+ AlertDialog,
253
+ AlertDialogAction,
254
+ AlertDialogBody,
255
+ AlertDialogCancel,
256
+ AlertDialogClose,
257
+ AlertDialogContent,
258
+ AlertDialogDescription,
259
+ AlertDialogFooter,
260
+ AlertDialogHeader,
261
+ AlertDialogOverlay,
262
+ AlertDialogPortal,
263
+ AlertDialogTitle,
264
+ AlertDialogTrigger,
206
265
  AlertTitle,
207
266
  AppShell,
208
267
  AppSidebar,
@@ -212,13 +271,16 @@ export {
212
271
  AppearanceControl,
213
272
  Avatar,
214
273
  AvatarFallback,
274
+ AvatarGroup,
215
275
  AvatarImage,
216
276
  Badge,
217
277
  BrandIcon,
278
+ BrandWordmark,
218
279
  Button,
219
280
  Card,
220
281
  CardContent,
221
282
  CardDescription,
283
+ CardFooter,
222
284
  CardHeader,
223
285
  CardTitle,
224
286
  Checkbox,
@@ -226,11 +288,13 @@ export {
226
288
  Collapsible,
227
289
  CollapsibleContent,
228
290
  CollapsibleTrigger,
291
+ CommandPalette,
229
292
  ConfirmationDialog,
230
293
  ConsciaButton,
231
294
  ConsciaCard,
232
295
  ConsciaCardContent,
233
296
  ConsciaCardDescription,
297
+ ConsciaCardFooter,
234
298
  ConsciaCardHeader,
235
299
  ConsciaCardTitle,
236
300
  ConsciaCheckbox,
@@ -274,6 +338,7 @@ export {
274
338
  DropdownMenuGroup,
275
339
  DropdownMenuItem,
276
340
  DropdownMenuLabel,
341
+ DropdownMenuLinkItem,
277
342
  DropdownMenuSeparator,
278
343
  DropdownMenuSub,
279
344
  DropdownMenuSubContent,
@@ -286,7 +351,10 @@ export {
286
351
  FieldError,
287
352
  FieldGroup,
288
353
  FieldLabel,
354
+ FilterBar,
355
+ FilterChip,
289
356
  FormSelect,
357
+ IconButton,
290
358
  IdentityRow,
291
359
  Input,
292
360
  InspectorRegion,
@@ -313,6 +381,15 @@ export {
313
381
  PageHeader,
314
382
  PageToolbar,
315
383
  PaginationControls,
384
+ Popover,
385
+ PopoverArrow,
386
+ PopoverClose,
387
+ PopoverContent,
388
+ PopoverDescription,
389
+ PopoverPortal,
390
+ PopoverPositioner,
391
+ PopoverTitle,
392
+ PopoverTrigger,
316
393
  ProductIdentity,
317
394
  ProviderMark,
318
395
  ResourceRow,
@@ -345,16 +422,20 @@ export {
345
422
  SheetPortal,
346
423
  SheetTitle,
347
424
  SheetTrigger,
425
+ ShortcutHint,
348
426
  SidebarNavigation,
349
427
  SidebarSearch,
350
428
  SidebarSeparator,
351
429
  SidebarTrigger,
352
430
  Skeleton,
431
+ Spinner,
353
432
  StateView,
354
433
  Switch,
355
434
  Table,
356
435
  TableBody,
436
+ TableCaption,
357
437
  TableCell,
438
+ TableFooter,
358
439
  TableHead,
359
440
  TableHeader,
360
441
  TableRow,
@@ -363,6 +444,14 @@ export {
363
444
  TabsList,
364
445
  TabsTrigger,
365
446
  Textarea,
447
+ Toast,
448
+ ToastAction,
449
+ ToastClose,
450
+ ToastContent,
451
+ ToastDescription,
452
+ ToastProvider,
453
+ ToastTitle,
454
+ ToastViewport,
366
455
  Tooltip,
367
456
  TooltipContent,
368
457
  TooltipProvider,
@@ -383,9 +472,11 @@ export {
383
472
  applyConsciaPreferences,
384
473
  badgeVariants,
385
474
  buttonVariants,
475
+ cardVariants,
386
476
  cn,
387
477
  densityOptions,
388
478
  useAppShell,
389
- useConsciaPreferences
479
+ useConsciaPreferences,
480
+ useToast
390
481
  };
391
482
  //# sourceMappingURL=index.js.map
@@ -1,11 +1,11 @@
1
1
  import * as React from 'react';
2
2
  import { SortingState, PaginationState } from '@tanstack/react-table';
3
3
  export { PaginationState, SortingState } from '@tanstack/react-table';
4
- import { I as Input, S as Separator, B as Button, C as Card } from '../card-BFUHJgV-.js';
4
+ import { useRender } from '@base-ui/react/use-render';
5
+ import { j as Input, S as Separator, B as Button, C as Card } from '../card-DmBKqvj_.js';
5
6
  import { ConsciaAppearance, ConsciaDensity } from '../foundation/index.js';
6
7
  import 'class-variance-authority/types';
7
8
  import 'class-variance-authority';
8
- import '@radix-ui/react-separator';
9
9
 
10
10
  type EntityTableColumn<T> = {
11
11
  key: string;
@@ -22,9 +22,35 @@ type EntityTableProps<T> = {
22
22
  onRowClick?: (item: T) => void;
23
23
  getRowLabel?: (item: T) => string;
24
24
  rowActions?: (item: T) => React.ReactNode;
25
+ caption?: React.ReactNode;
25
26
  className?: string;
26
27
  };
27
- declare function EntityTable<T>({ items, columns, getRowId, selectedIds, onSelectionChange, onRowClick, getRowLabel, rowActions, className }: EntityTableProps<T>): React.JSX.Element;
28
+ declare function EntityTable<T>({ items, columns, getRowId, selectedIds, onSelectionChange, onRowClick, getRowLabel, rowActions, caption, className }: EntityTableProps<T>): React.JSX.Element;
29
+
30
+ type CommandPaletteItem = {
31
+ description?: React.ReactNode;
32
+ disabled?: boolean;
33
+ group?: string;
34
+ icon?: React.ReactNode;
35
+ id: string;
36
+ keywords?: readonly string[];
37
+ label: string;
38
+ shortcut?: React.ReactNode;
39
+ };
40
+ type CommandPaletteProps = Omit<React.ComponentProps<"div">, "children" | "onSelect"> & {
41
+ closeOnSelect?: boolean;
42
+ defaultOpen?: boolean;
43
+ description?: React.ReactNode;
44
+ emptyMessage?: React.ReactNode;
45
+ items: readonly CommandPaletteItem[];
46
+ onOpenChange?: (open: boolean) => void;
47
+ onSelect: (item: CommandPaletteItem) => void;
48
+ open?: boolean;
49
+ placeholder?: string;
50
+ title?: React.ReactNode;
51
+ trigger?: React.ReactElement;
52
+ };
53
+ declare function CommandPalette({ className, closeOnSelect, defaultOpen, description, emptyMessage, items, onOpenChange, onSelect, open, placeholder, title, trigger, ...props }: CommandPaletteProps): React.JSX.Element;
28
54
 
29
55
  type DataTableColumn<TData> = {
30
56
  id: string;
@@ -55,16 +81,23 @@ type DataTableProps<TData> = {
55
81
  pageSizeOptions?: number[];
56
82
  totalLabel?: React.ReactNode;
57
83
  mobileRow?: (item: TData) => React.ReactNode;
84
+ caption?: React.ReactNode;
58
85
  empty?: React.ReactNode;
59
86
  className?: string;
60
87
  };
61
- declare function DataTable<TData>({ data, columns, getRowId, getRowLabel, onRowClick, isRowClickable, rowActions, selectedIds, onSelectionChange, sorting, onSortingChange, manualSorting, pagination, onPaginationChange, manualPagination, pageCount, rowCount, pageSizeOptions, totalLabel, mobileRow, empty, className, }: DataTableProps<TData>): React.JSX.Element;
88
+ declare function DataTable<TData>({ data, columns, getRowId, getRowLabel, onRowClick, isRowClickable, rowActions, selectedIds, onSelectionChange, sorting, onSortingChange, manualSorting, pagination, onPaginationChange, manualPagination, pageCount, rowCount, pageSizeOptions, totalLabel, mobileRow, caption, empty, className, }: DataTableProps<TData>): React.JSX.Element;
62
89
 
63
90
  type DetailBackLinkProps = Omit<React.ComponentProps<"a">, "children"> & {
64
91
  label: string;
65
92
  };
66
93
  declare function DetailBackLink({ label, className, ...props }: DetailBackLinkProps): React.JSX.Element;
67
94
 
95
+ type FilterBarProps = React.ComponentProps<"div"> & {
96
+ clearAllLabel?: string;
97
+ onClearAll?: () => void;
98
+ };
99
+ declare function FilterBar({ children, clearAllLabel, className, onClearAll, ...props }: FilterBarProps): React.JSX.Element;
100
+
68
101
  type AppShellContextValue = {
69
102
  sidebarState: "expanded" | "collapsed";
70
103
  sidebarSide: "left" | "right";
@@ -82,7 +115,7 @@ declare function AppShell({ defaultSidebarOpen, children, className, style, ...p
82
115
  }): React.JSX.Element;
83
116
  declare function AppSidebar({ side, variant, className, children, title, description, ...props }: React.ComponentProps<"aside"> & {
84
117
  side?: "left" | "right";
85
- /** Preserve the historical dark sidebar by default; auto follows appearance. */
118
+ /** Use the appearance-aware sidebar by default; explicit variants remain available. */
86
119
  variant?: "light" | "dark" | "auto";
87
120
  title?: string;
88
121
  description?: string;
@@ -90,10 +123,11 @@ declare function AppSidebar({ side, variant, className, children, title, descrip
90
123
  declare function AppSidebarHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
91
124
  declare function AppSidebarContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
92
125
  declare function AppSidebarFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
93
- declare function ProductIdentity({ label, description, icon, className, }: {
126
+ declare function ProductIdentity({ label, description, icon, collapsedLabel, className, }: {
94
127
  label: React.ReactNode;
95
128
  description?: React.ReactNode;
96
129
  icon?: React.ReactNode;
130
+ collapsedLabel?: React.ReactNode;
97
131
  className?: string;
98
132
  }): React.JSX.Element;
99
133
  declare function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): React.JSX.Element;
@@ -103,21 +137,23 @@ declare function NavigationGroup({ label, count, children, className, }: {
103
137
  children: React.ReactNode;
104
138
  className?: string;
105
139
  }): React.JSX.Element;
106
- declare function NavigationItem({ asChild, active, tooltip, type, className, children, ...props }: React.ComponentProps<"button"> & {
107
- asChild?: boolean;
140
+ type NavigationItemProps = Omit<React.ComponentProps<"button">, "render"> & {
108
141
  active?: boolean;
109
142
  tooltip?: string;
110
- }): React.JSX.Element;
111
- declare function NavigationSubItem({ asChild, active, className, ...props }: React.ComponentProps<"a"> & {
112
- asChild?: boolean;
143
+ render?: useRender.ComponentProps<"button">["render"];
144
+ };
145
+ declare const NavigationItem: React.ForwardRefExoticComponent<Omit<NavigationItemProps, "ref"> & React.RefAttributes<HTMLElement>>;
146
+ type NavigationSubItemProps = Omit<React.ComponentProps<"a">, "render"> & {
113
147
  active?: boolean;
114
- }): React.JSX.Element;
148
+ render?: useRender.ComponentProps<"a">["render"];
149
+ };
150
+ declare const NavigationSubItem: React.ForwardRefExoticComponent<Omit<NavigationSubItemProps, "ref"> & React.RefAttributes<HTMLElement>>;
115
151
  declare function NavigationSubList({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
116
152
  /**
117
153
  * Place this control inside TopBar, not AppSidebar, so it remains available
118
154
  * after the sidebar collapses and in the mobile drawer layout.
119
155
  */
120
- declare function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<typeof Button>): React.JSX.Element;
156
+ declare function SidebarTrigger({ className, "aria-label": ariaLabel, onClick, ...props }: Omit<React.ComponentProps<typeof Button>, "aria-labelledby">): React.JSX.Element;
121
157
  type SidebarSearchProps = Omit<React.ComponentProps<typeof Input>, "type"> & {
122
158
  expanded?: boolean;
123
159
  defaultExpanded?: boolean;
@@ -288,6 +324,10 @@ type SidebarNavigationItem = {
288
324
  id: string;
289
325
  label: string;
290
326
  icon?: React.ReactNode;
327
+ badge?: React.ReactNode;
328
+ badgeLabel?: string;
329
+ count?: React.ReactNode;
330
+ countLabel?: string;
291
331
  active?: boolean;
292
332
  startsSection?: boolean;
293
333
  };
@@ -663,4 +703,4 @@ type IdentityRowProps = React.ComponentProps<"div"> & {
663
703
  };
664
704
  declare function IdentityRow({ initials, name, detail, compact, className, ...props }: IdentityRowProps): React.JSX.Element;
665
705
 
666
- export { ActivityItem, type ActivityItemProps, ActivityList, AppShell, AppSidebar, AppSidebarContent, AppSidebarFooter, AppSidebarHeader, AppearanceControl, CodeBlock, type CodeBlockProps, type CodeBlockSnippet, ConfirmationDialog, type ConfirmationDialogProps, DataTable, type DataTableColumn, type DataTableProps, DensityControl, DesignPreferenceControls, DesignSystemPreferenceSync, DetailBackLink, type DetailBackLinkProps, DetailSection, type DetailSectionProps, DetailSections, EntityTable, type EntityTableColumn, type EntityTableProps, ErrorState, IdentityRow, type IdentityRowProps, InspectorRegion, InventoryDesktop, InventoryMobile, InventorySurface, KeyValueItem, KeyValueList, LoadingRows, MainRegion, MetricBand, MetricBandItem, type MetricBandItemProps, type MetricBandProps, NavigationGroup, NavigationItem, NavigationSubItem, NavigationSubList, PageBoundary, PageContent, PageFrame, PageHeader, type PageHeaderProps, PageToolbar, type PageToolbarProps, PaginationControls, type PaginationControlsProps, ProductIdentity, ProviderMark, type ProviderMarkProps, ResourceRow, ResourceRowContent, ResourceRowDescription, ResourceRowIcon, ResourceRowMeta, type ResourceRowProps, ResourceRowTitle, ResourceSummary, type ResourceSummaryProps, SidebarNavigation, type SidebarNavigationEntry, type SidebarNavigationItem, type SidebarNavigationLinkProps, type SidebarNavigationSection, SidebarSearch, SidebarSeparator, SidebarTrigger, StateView, type StateViewProps, TopBar, ValueMeter, type ValueMeterProps, WorkbenchBackdrop, WorkbenchInspector, WorkbenchInspectorSection, type WorkbenchInspectorSectionProps, WorkbenchMain, WorkbenchMobileToolbar, WorkbenchRail, type WorkbenchRailProps, WorkbenchSection, WorkbenchSectionHeader, type WorkbenchSectionHeaderProps, type WorkbenchSectionProps, WorkbenchShell, type WorkbenchShellProps, useAppShell, useConsciaPreferences };
706
+ export { ActivityItem, type ActivityItemProps, ActivityList, AppShell, AppSidebar, AppSidebarContent, AppSidebarFooter, AppSidebarHeader, AppearanceControl, CodeBlock, type CodeBlockProps, type CodeBlockSnippet, CommandPalette, type CommandPaletteItem, type CommandPaletteProps, ConfirmationDialog, type ConfirmationDialogProps, DataTable, type DataTableColumn, type DataTableProps, DensityControl, DesignPreferenceControls, DesignSystemPreferenceSync, DetailBackLink, type DetailBackLinkProps, DetailSection, type DetailSectionProps, DetailSections, EntityTable, type EntityTableColumn, type EntityTableProps, ErrorState, FilterBar, type FilterBarProps, IdentityRow, type IdentityRowProps, InspectorRegion, InventoryDesktop, InventoryMobile, InventorySurface, KeyValueItem, KeyValueList, LoadingRows, MainRegion, MetricBand, MetricBandItem, type MetricBandItemProps, type MetricBandProps, NavigationGroup, NavigationItem, type NavigationItemProps, NavigationSubItem, type NavigationSubItemProps, NavigationSubList, PageBoundary, PageContent, PageFrame, PageHeader, type PageHeaderProps, PageToolbar, type PageToolbarProps, PaginationControls, type PaginationControlsProps, ProductIdentity, ProviderMark, type ProviderMarkProps, ResourceRow, ResourceRowContent, ResourceRowDescription, ResourceRowIcon, ResourceRowMeta, type ResourceRowProps, ResourceRowTitle, ResourceSummary, type ResourceSummaryProps, SidebarNavigation, type SidebarNavigationEntry, type SidebarNavigationItem, type SidebarNavigationLinkProps, type SidebarNavigationSection, SidebarSearch, SidebarSeparator, SidebarTrigger, StateView, type StateViewProps, TopBar, ValueMeter, type ValueMeterProps, WorkbenchBackdrop, WorkbenchInspector, WorkbenchInspectorSection, type WorkbenchInspectorSectionProps, WorkbenchMain, WorkbenchMobileToolbar, WorkbenchRail, type WorkbenchRailProps, WorkbenchSection, WorkbenchSectionHeader, type WorkbenchSectionHeaderProps, type WorkbenchSectionProps, WorkbenchShell, type WorkbenchShellProps, useAppShell, useConsciaPreferences };
@@ -9,6 +9,7 @@ import {
9
9
  AppSidebarHeader,
10
10
  AppearanceControl,
11
11
  CodeBlock,
12
+ CommandPalette,
12
13
  ConfirmationDialog,
13
14
  DataTable,
14
15
  DensityControl,
@@ -19,6 +20,7 @@ import {
19
20
  DetailSections,
20
21
  EntityTable,
21
22
  ErrorState,
23
+ FilterBar,
22
24
  IdentityRow,
23
25
  InspectorRegion,
24
26
  InventoryDesktop,
@@ -67,10 +69,11 @@ import {
67
69
  WorkbenchShell,
68
70
  useAppShell,
69
71
  useConsciaPreferences
70
- } from "../chunk-KYH7IZ3Z.js";
72
+ } from "../chunk-WEI3PU4A.js";
71
73
  import "../chunk-YNQWIH6V.js";
72
- import "../chunk-RAGHGWLB.js";
74
+ import "../chunk-YAJUTCGD.js";
73
75
  import "../chunk-JU5DQXFC.js";
76
+ import "../chunk-UVKRO5ER.js";
74
77
  export {
75
78
  ActivityItem,
76
79
  ActivityList,
@@ -81,6 +84,7 @@ export {
81
84
  AppSidebarHeader,
82
85
  AppearanceControl,
83
86
  CodeBlock,
87
+ CommandPalette,
84
88
  ConfirmationDialog,
85
89
  DataTable,
86
90
  DensityControl,
@@ -91,6 +95,7 @@ export {
91
95
  DetailSections,
92
96
  EntityTable,
93
97
  ErrorState,
98
+ FilterBar,
94
99
  IdentityRow,
95
100
  InspectorRegion,
96
101
  InventoryDesktop,