@conscia-labs/design-system 0.2.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/LICENSE +21 -0
- package/README.md +488 -0
- package/dist/card-DqFHjLjm.d.ts +22 -0
- package/dist/chunk-5MGPU2JE.js +1764 -0
- package/dist/chunk-5MGPU2JE.js.map +1 -0
- package/dist/chunk-CU3OXBFI.js +664 -0
- package/dist/chunk-CU3OXBFI.js.map +1 -0
- package/dist/chunk-D5LYROOM.js +15 -0
- package/dist/chunk-D5LYROOM.js.map +1 -0
- package/dist/chunk-JU5DQXFC.js +11 -0
- package/dist/chunk-JU5DQXFC.js.map +1 -0
- package/dist/chunk-OX4SN5WX.js +1 -0
- package/dist/chunk-OX4SN5WX.js.map +1 -0
- package/dist/chunk-YHPZ5CQU.js +937 -0
- package/dist/chunk-YHPZ5CQU.js.map +1 -0
- package/dist/foundation/index.d.ts +7 -0
- package/dist/foundation/index.js +12 -0
- package/dist/foundation/index.js.map +1 -0
- package/dist/foundation.css +432 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +355 -0
- package/dist/index.js.map +1 -0
- package/dist/patterns/index.d.ts +317 -0
- package/dist/patterns/index.js +109 -0
- package/dist/patterns/index.js.map +1 -0
- package/dist/primitives/index.d.ts +239 -0
- package/dist/primitives/index.js +244 -0
- package/dist/primitives/index.js.map +1 -0
- package/dist/standalone.css +2 -0
- package/dist/styles.css +432 -0
- package/dist/tailwind.css +8 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/index.js +7 -0
- package/dist/utils/index.js.map +1 -0
- package/package.json +150 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "./chunk-OX4SN5WX.js";
|
|
3
|
+
import {
|
|
4
|
+
ActivityItem,
|
|
5
|
+
ActivityList,
|
|
6
|
+
AppShell,
|
|
7
|
+
AppSidebar,
|
|
8
|
+
AppSidebarContent,
|
|
9
|
+
AppSidebarFooter,
|
|
10
|
+
AppSidebarHeader,
|
|
11
|
+
AppearanceControl,
|
|
12
|
+
CodeBlock,
|
|
13
|
+
ConfirmationDialog,
|
|
14
|
+
DataTable,
|
|
15
|
+
DensityControl,
|
|
16
|
+
DesignPreferenceControls,
|
|
17
|
+
DesignSystemPreferenceSync,
|
|
18
|
+
DetailBackLink,
|
|
19
|
+
DetailSection,
|
|
20
|
+
DetailSections,
|
|
21
|
+
EntityTable,
|
|
22
|
+
ErrorState,
|
|
23
|
+
InspectorRegion,
|
|
24
|
+
InventoryDesktop,
|
|
25
|
+
InventoryMobile,
|
|
26
|
+
InventorySurface,
|
|
27
|
+
KeyValueItem,
|
|
28
|
+
KeyValueList,
|
|
29
|
+
LoadingRows,
|
|
30
|
+
MainRegion,
|
|
31
|
+
MetricBand,
|
|
32
|
+
MetricBandItem,
|
|
33
|
+
NavigationGroup,
|
|
34
|
+
NavigationItem,
|
|
35
|
+
NavigationSubItem,
|
|
36
|
+
NavigationSubList,
|
|
37
|
+
PageBoundary,
|
|
38
|
+
PageContent,
|
|
39
|
+
PageFrame,
|
|
40
|
+
PageHeader,
|
|
41
|
+
PageToolbar,
|
|
42
|
+
PaginationControls,
|
|
43
|
+
ProductIdentity,
|
|
44
|
+
ProviderMark,
|
|
45
|
+
ResourceSummary,
|
|
46
|
+
SidebarNavigation,
|
|
47
|
+
SidebarSeparator,
|
|
48
|
+
SidebarTrigger,
|
|
49
|
+
StateView,
|
|
50
|
+
TopBar,
|
|
51
|
+
ValueMeter,
|
|
52
|
+
useAppShell,
|
|
53
|
+
useConsciaPreferences
|
|
54
|
+
} from "./chunk-5MGPU2JE.js";
|
|
55
|
+
import {
|
|
56
|
+
appearanceOptions,
|
|
57
|
+
applyConsciaPreferences,
|
|
58
|
+
densityOptions
|
|
59
|
+
} from "./chunk-D5LYROOM.js";
|
|
60
|
+
import {
|
|
61
|
+
Alert,
|
|
62
|
+
AlertDescription,
|
|
63
|
+
AlertTitle,
|
|
64
|
+
Avatar,
|
|
65
|
+
AvatarFallback,
|
|
66
|
+
AvatarImage,
|
|
67
|
+
Badge,
|
|
68
|
+
ConsciaButton,
|
|
69
|
+
ConsciaCard,
|
|
70
|
+
ConsciaCardContent,
|
|
71
|
+
ConsciaCardDescription,
|
|
72
|
+
ConsciaCardHeader,
|
|
73
|
+
ConsciaCardTitle,
|
|
74
|
+
ConsciaCheckbox,
|
|
75
|
+
ConsciaFormSelect,
|
|
76
|
+
ConsciaIconButton,
|
|
77
|
+
ConsciaInput,
|
|
78
|
+
ConsciaSelect,
|
|
79
|
+
ConsciaSelectContent,
|
|
80
|
+
ConsciaSelectGroup,
|
|
81
|
+
ConsciaSelectItem,
|
|
82
|
+
ConsciaSelectTrigger,
|
|
83
|
+
ConsciaSelectValue,
|
|
84
|
+
ConsciaSwitch,
|
|
85
|
+
ConsciaTable,
|
|
86
|
+
ConsciaTableBody,
|
|
87
|
+
ConsciaTableCell,
|
|
88
|
+
ConsciaTableHead,
|
|
89
|
+
ConsciaTableHeader,
|
|
90
|
+
ConsciaTableRow,
|
|
91
|
+
ConsciaTextarea,
|
|
92
|
+
Field,
|
|
93
|
+
FieldDescription,
|
|
94
|
+
FieldError,
|
|
95
|
+
FieldGroup,
|
|
96
|
+
FieldLabel,
|
|
97
|
+
FormSelect,
|
|
98
|
+
Input,
|
|
99
|
+
Label,
|
|
100
|
+
SearchableSelect,
|
|
101
|
+
Switch,
|
|
102
|
+
Textarea,
|
|
103
|
+
alertVariants,
|
|
104
|
+
badgeVariants
|
|
105
|
+
} from "./chunk-CU3OXBFI.js";
|
|
106
|
+
import {
|
|
107
|
+
Button,
|
|
108
|
+
Card,
|
|
109
|
+
CardContent,
|
|
110
|
+
CardDescription,
|
|
111
|
+
CardHeader,
|
|
112
|
+
CardTitle,
|
|
113
|
+
Checkbox,
|
|
114
|
+
Collapsible,
|
|
115
|
+
CollapsibleContent,
|
|
116
|
+
CollapsibleTrigger,
|
|
117
|
+
Dialog,
|
|
118
|
+
DialogBody,
|
|
119
|
+
DialogClose,
|
|
120
|
+
DialogContent,
|
|
121
|
+
DialogDescription,
|
|
122
|
+
DialogFooter,
|
|
123
|
+
DialogHeader,
|
|
124
|
+
DialogOverlay,
|
|
125
|
+
DialogPortal,
|
|
126
|
+
DialogTitle,
|
|
127
|
+
DialogTrigger,
|
|
128
|
+
DropdownMenu,
|
|
129
|
+
DropdownMenuContent,
|
|
130
|
+
DropdownMenuGroup,
|
|
131
|
+
DropdownMenuItem,
|
|
132
|
+
DropdownMenuLabel,
|
|
133
|
+
DropdownMenuSeparator,
|
|
134
|
+
DropdownMenuSub,
|
|
135
|
+
DropdownMenuSubContent,
|
|
136
|
+
DropdownMenuSubTrigger,
|
|
137
|
+
DropdownMenuTrigger,
|
|
138
|
+
NavigationTab,
|
|
139
|
+
NavigationTabs,
|
|
140
|
+
NavigationTabsList,
|
|
141
|
+
Select,
|
|
142
|
+
SelectContent,
|
|
143
|
+
SelectGroup,
|
|
144
|
+
SelectItem,
|
|
145
|
+
SelectLabel,
|
|
146
|
+
SelectScrollDownButton,
|
|
147
|
+
SelectScrollUpButton,
|
|
148
|
+
SelectSeparator,
|
|
149
|
+
SelectTrigger,
|
|
150
|
+
SelectValue,
|
|
151
|
+
Separator,
|
|
152
|
+
Sheet,
|
|
153
|
+
SheetBody,
|
|
154
|
+
SheetClose,
|
|
155
|
+
SheetContent,
|
|
156
|
+
SheetDescription,
|
|
157
|
+
SheetFooter,
|
|
158
|
+
SheetHeader,
|
|
159
|
+
SheetOverlay,
|
|
160
|
+
SheetPortal,
|
|
161
|
+
SheetTitle,
|
|
162
|
+
SheetTrigger,
|
|
163
|
+
Skeleton,
|
|
164
|
+
Table,
|
|
165
|
+
TableBody,
|
|
166
|
+
TableCell,
|
|
167
|
+
TableHead,
|
|
168
|
+
TableHeader,
|
|
169
|
+
TableRow,
|
|
170
|
+
Tabs,
|
|
171
|
+
TabsContent,
|
|
172
|
+
TabsList,
|
|
173
|
+
TabsTrigger,
|
|
174
|
+
Tooltip,
|
|
175
|
+
TooltipContent,
|
|
176
|
+
TooltipProvider,
|
|
177
|
+
TooltipTrigger,
|
|
178
|
+
buttonVariants
|
|
179
|
+
} from "./chunk-YHPZ5CQU.js";
|
|
180
|
+
import {
|
|
181
|
+
cn
|
|
182
|
+
} from "./chunk-JU5DQXFC.js";
|
|
183
|
+
export {
|
|
184
|
+
ActivityItem,
|
|
185
|
+
ActivityList,
|
|
186
|
+
Alert,
|
|
187
|
+
AlertDescription,
|
|
188
|
+
AlertTitle,
|
|
189
|
+
AppShell,
|
|
190
|
+
AppSidebar,
|
|
191
|
+
AppSidebarContent,
|
|
192
|
+
AppSidebarFooter,
|
|
193
|
+
AppSidebarHeader,
|
|
194
|
+
AppearanceControl,
|
|
195
|
+
Avatar,
|
|
196
|
+
AvatarFallback,
|
|
197
|
+
AvatarImage,
|
|
198
|
+
Badge,
|
|
199
|
+
Button,
|
|
200
|
+
Card,
|
|
201
|
+
CardContent,
|
|
202
|
+
CardDescription,
|
|
203
|
+
CardHeader,
|
|
204
|
+
CardTitle,
|
|
205
|
+
Checkbox,
|
|
206
|
+
CodeBlock,
|
|
207
|
+
Collapsible,
|
|
208
|
+
CollapsibleContent,
|
|
209
|
+
CollapsibleTrigger,
|
|
210
|
+
ConfirmationDialog,
|
|
211
|
+
ConsciaButton,
|
|
212
|
+
ConsciaCard,
|
|
213
|
+
ConsciaCardContent,
|
|
214
|
+
ConsciaCardDescription,
|
|
215
|
+
ConsciaCardHeader,
|
|
216
|
+
ConsciaCardTitle,
|
|
217
|
+
ConsciaCheckbox,
|
|
218
|
+
ConsciaFormSelect,
|
|
219
|
+
ConsciaIconButton,
|
|
220
|
+
ConsciaInput,
|
|
221
|
+
ConsciaSelect,
|
|
222
|
+
ConsciaSelectContent,
|
|
223
|
+
ConsciaSelectGroup,
|
|
224
|
+
ConsciaSelectItem,
|
|
225
|
+
ConsciaSelectTrigger,
|
|
226
|
+
ConsciaSelectValue,
|
|
227
|
+
ConsciaSwitch,
|
|
228
|
+
ConsciaTable,
|
|
229
|
+
ConsciaTableBody,
|
|
230
|
+
ConsciaTableCell,
|
|
231
|
+
ConsciaTableHead,
|
|
232
|
+
ConsciaTableHeader,
|
|
233
|
+
ConsciaTableRow,
|
|
234
|
+
ConsciaTextarea,
|
|
235
|
+
DataTable,
|
|
236
|
+
DensityControl,
|
|
237
|
+
DesignPreferenceControls,
|
|
238
|
+
DesignSystemPreferenceSync,
|
|
239
|
+
DetailBackLink,
|
|
240
|
+
DetailSection,
|
|
241
|
+
DetailSections,
|
|
242
|
+
Dialog,
|
|
243
|
+
DialogBody,
|
|
244
|
+
DialogClose,
|
|
245
|
+
DialogContent,
|
|
246
|
+
DialogDescription,
|
|
247
|
+
DialogFooter,
|
|
248
|
+
DialogHeader,
|
|
249
|
+
DialogOverlay,
|
|
250
|
+
DialogPortal,
|
|
251
|
+
DialogTitle,
|
|
252
|
+
DialogTrigger,
|
|
253
|
+
DropdownMenu,
|
|
254
|
+
DropdownMenuContent,
|
|
255
|
+
DropdownMenuGroup,
|
|
256
|
+
DropdownMenuItem,
|
|
257
|
+
DropdownMenuLabel,
|
|
258
|
+
DropdownMenuSeparator,
|
|
259
|
+
DropdownMenuSub,
|
|
260
|
+
DropdownMenuSubContent,
|
|
261
|
+
DropdownMenuSubTrigger,
|
|
262
|
+
DropdownMenuTrigger,
|
|
263
|
+
EntityTable,
|
|
264
|
+
ErrorState,
|
|
265
|
+
Field,
|
|
266
|
+
FieldDescription,
|
|
267
|
+
FieldError,
|
|
268
|
+
FieldGroup,
|
|
269
|
+
FieldLabel,
|
|
270
|
+
FormSelect,
|
|
271
|
+
Input,
|
|
272
|
+
InspectorRegion,
|
|
273
|
+
InventoryDesktop,
|
|
274
|
+
InventoryMobile,
|
|
275
|
+
InventorySurface,
|
|
276
|
+
KeyValueItem,
|
|
277
|
+
KeyValueList,
|
|
278
|
+
Label,
|
|
279
|
+
LoadingRows,
|
|
280
|
+
MainRegion,
|
|
281
|
+
MetricBand,
|
|
282
|
+
MetricBandItem,
|
|
283
|
+
NavigationGroup,
|
|
284
|
+
NavigationItem,
|
|
285
|
+
NavigationSubItem,
|
|
286
|
+
NavigationSubList,
|
|
287
|
+
NavigationTab,
|
|
288
|
+
NavigationTabs,
|
|
289
|
+
NavigationTabsList,
|
|
290
|
+
PageBoundary,
|
|
291
|
+
PageContent,
|
|
292
|
+
PageFrame,
|
|
293
|
+
PageHeader,
|
|
294
|
+
PageToolbar,
|
|
295
|
+
PaginationControls,
|
|
296
|
+
ProductIdentity,
|
|
297
|
+
ProviderMark,
|
|
298
|
+
ResourceSummary,
|
|
299
|
+
SearchableSelect,
|
|
300
|
+
Select,
|
|
301
|
+
SelectContent,
|
|
302
|
+
SelectGroup,
|
|
303
|
+
SelectItem,
|
|
304
|
+
SelectLabel,
|
|
305
|
+
SelectScrollDownButton,
|
|
306
|
+
SelectScrollUpButton,
|
|
307
|
+
SelectSeparator,
|
|
308
|
+
SelectTrigger,
|
|
309
|
+
SelectValue,
|
|
310
|
+
Separator,
|
|
311
|
+
Sheet,
|
|
312
|
+
SheetBody,
|
|
313
|
+
SheetClose,
|
|
314
|
+
SheetContent,
|
|
315
|
+
SheetDescription,
|
|
316
|
+
SheetFooter,
|
|
317
|
+
SheetHeader,
|
|
318
|
+
SheetOverlay,
|
|
319
|
+
SheetPortal,
|
|
320
|
+
SheetTitle,
|
|
321
|
+
SheetTrigger,
|
|
322
|
+
SidebarNavigation,
|
|
323
|
+
SidebarSeparator,
|
|
324
|
+
SidebarTrigger,
|
|
325
|
+
Skeleton,
|
|
326
|
+
StateView,
|
|
327
|
+
Switch,
|
|
328
|
+
Table,
|
|
329
|
+
TableBody,
|
|
330
|
+
TableCell,
|
|
331
|
+
TableHead,
|
|
332
|
+
TableHeader,
|
|
333
|
+
TableRow,
|
|
334
|
+
Tabs,
|
|
335
|
+
TabsContent,
|
|
336
|
+
TabsList,
|
|
337
|
+
TabsTrigger,
|
|
338
|
+
Textarea,
|
|
339
|
+
Tooltip,
|
|
340
|
+
TooltipContent,
|
|
341
|
+
TooltipProvider,
|
|
342
|
+
TooltipTrigger,
|
|
343
|
+
TopBar,
|
|
344
|
+
ValueMeter,
|
|
345
|
+
alertVariants,
|
|
346
|
+
appearanceOptions,
|
|
347
|
+
applyConsciaPreferences,
|
|
348
|
+
badgeVariants,
|
|
349
|
+
buttonVariants,
|
|
350
|
+
cn,
|
|
351
|
+
densityOptions,
|
|
352
|
+
useAppShell,
|
|
353
|
+
useConsciaPreferences
|
|
354
|
+
};
|
|
355
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SortingState, PaginationState } from '@tanstack/react-table';
|
|
3
|
+
export { PaginationState, SortingState } from '@tanstack/react-table';
|
|
4
|
+
import { S as Separator, B as Button, C as Card } from '../card-DqFHjLjm.js';
|
|
5
|
+
import { ConsciaAppearance, ConsciaDensity } from '../foundation/index.js';
|
|
6
|
+
import 'class-variance-authority/types';
|
|
7
|
+
import 'class-variance-authority';
|
|
8
|
+
import '@radix-ui/react-separator';
|
|
9
|
+
|
|
10
|
+
type EntityTableColumn<T> = {
|
|
11
|
+
key: string;
|
|
12
|
+
header: React.ReactNode;
|
|
13
|
+
cell: (item: T) => React.ReactNode;
|
|
14
|
+
className?: string;
|
|
15
|
+
};
|
|
16
|
+
type EntityTableProps<T> = {
|
|
17
|
+
items: T[];
|
|
18
|
+
columns: EntityTableColumn<T>[];
|
|
19
|
+
getRowId: (item: T) => string;
|
|
20
|
+
selectedIds?: Set<string>;
|
|
21
|
+
onSelectionChange?: (selectedIds: Set<string>) => void;
|
|
22
|
+
onRowClick?: (item: T) => void;
|
|
23
|
+
getRowLabel?: (item: T) => string;
|
|
24
|
+
rowActions?: (item: T) => React.ReactNode;
|
|
25
|
+
className?: string;
|
|
26
|
+
};
|
|
27
|
+
declare function EntityTable<T>({ items, columns, getRowId, selectedIds, onSelectionChange, onRowClick, getRowLabel, rowActions, className }: EntityTableProps<T>): React.JSX.Element;
|
|
28
|
+
|
|
29
|
+
type DataTableColumn<TData> = {
|
|
30
|
+
id: string;
|
|
31
|
+
header: React.ReactNode;
|
|
32
|
+
cell: (item: TData) => React.ReactNode;
|
|
33
|
+
accessor?: (item: TData) => string | number | null | undefined;
|
|
34
|
+
sortable?: boolean;
|
|
35
|
+
className?: string;
|
|
36
|
+
};
|
|
37
|
+
type DataTableProps<TData> = {
|
|
38
|
+
data: TData[];
|
|
39
|
+
columns: DataTableColumn<TData>[];
|
|
40
|
+
getRowId: (item: TData) => string;
|
|
41
|
+
getRowLabel?: (item: TData) => string;
|
|
42
|
+
onRowClick?: (item: TData) => void;
|
|
43
|
+
isRowClickable?: (item: TData) => boolean;
|
|
44
|
+
rowActions?: (item: TData) => React.ReactNode;
|
|
45
|
+
selectedIds?: Set<string>;
|
|
46
|
+
onSelectionChange?: (selectedIds: Set<string>) => void;
|
|
47
|
+
sorting?: SortingState;
|
|
48
|
+
onSortingChange?: (sorting: SortingState) => void;
|
|
49
|
+
manualSorting?: boolean;
|
|
50
|
+
pagination?: PaginationState;
|
|
51
|
+
onPaginationChange?: (pagination: PaginationState) => void;
|
|
52
|
+
manualPagination?: boolean;
|
|
53
|
+
pageCount?: number;
|
|
54
|
+
rowCount?: number;
|
|
55
|
+
pageSizeOptions?: number[];
|
|
56
|
+
totalLabel?: React.ReactNode;
|
|
57
|
+
mobileRow?: (item: TData) => React.ReactNode;
|
|
58
|
+
empty?: React.ReactNode;
|
|
59
|
+
className?: string;
|
|
60
|
+
};
|
|
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;
|
|
62
|
+
|
|
63
|
+
type DetailBackLinkProps = Omit<React.ComponentProps<"a">, "children"> & {
|
|
64
|
+
label: string;
|
|
65
|
+
};
|
|
66
|
+
declare function DetailBackLink({ label, className, ...props }: DetailBackLinkProps): React.JSX.Element;
|
|
67
|
+
|
|
68
|
+
type AppShellContextValue = {
|
|
69
|
+
sidebarState: "expanded" | "collapsed";
|
|
70
|
+
sidebarSide: "left" | "right";
|
|
71
|
+
setSidebarSide: (side: "left" | "right") => void;
|
|
72
|
+
sidebarOpen: boolean;
|
|
73
|
+
setSidebarOpen: (open: boolean) => void;
|
|
74
|
+
mobileOpen: boolean;
|
|
75
|
+
setMobileOpen: (open: boolean) => void;
|
|
76
|
+
isMobile: boolean;
|
|
77
|
+
toggleSidebar: () => void;
|
|
78
|
+
};
|
|
79
|
+
declare function useAppShell(): AppShellContextValue;
|
|
80
|
+
declare function AppShell({ defaultSidebarOpen, children, className, style, ...props }: React.ComponentProps<"div"> & {
|
|
81
|
+
defaultSidebarOpen?: boolean;
|
|
82
|
+
}): React.JSX.Element;
|
|
83
|
+
declare function AppSidebar({ side, className, children, title, description, ...props }: React.ComponentProps<"aside"> & {
|
|
84
|
+
side?: "left" | "right";
|
|
85
|
+
title?: string;
|
|
86
|
+
description?: string;
|
|
87
|
+
}): React.JSX.Element;
|
|
88
|
+
declare function AppSidebarHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
89
|
+
declare function AppSidebarContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
90
|
+
declare function AppSidebarFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
91
|
+
declare function ProductIdentity({ label, description, icon, className, }: {
|
|
92
|
+
label: React.ReactNode;
|
|
93
|
+
description?: React.ReactNode;
|
|
94
|
+
icon?: React.ReactNode;
|
|
95
|
+
className?: string;
|
|
96
|
+
}): React.JSX.Element;
|
|
97
|
+
declare function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): React.JSX.Element;
|
|
98
|
+
declare function NavigationGroup({ label, children, className, }: {
|
|
99
|
+
label?: React.ReactNode;
|
|
100
|
+
children: React.ReactNode;
|
|
101
|
+
className?: string;
|
|
102
|
+
}): React.JSX.Element;
|
|
103
|
+
declare function NavigationItem({ asChild, active, tooltip, type, className, children, ...props }: React.ComponentProps<"button"> & {
|
|
104
|
+
asChild?: boolean;
|
|
105
|
+
active?: boolean;
|
|
106
|
+
tooltip?: string;
|
|
107
|
+
}): React.JSX.Element;
|
|
108
|
+
declare function NavigationSubItem({ asChild, active, className, ...props }: React.ComponentProps<"a"> & {
|
|
109
|
+
asChild?: boolean;
|
|
110
|
+
active?: boolean;
|
|
111
|
+
}): React.JSX.Element;
|
|
112
|
+
declare function NavigationSubList({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
113
|
+
declare function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<typeof Button>): React.JSX.Element;
|
|
114
|
+
declare function MainRegion({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
115
|
+
declare function TopBar({ className, ...props }: React.ComponentProps<"header">): React.JSX.Element;
|
|
116
|
+
declare function PageFrame({ width, className, ...props }: React.ComponentProps<"main"> & {
|
|
117
|
+
width?: "full" | "wide" | "focused" | "reading";
|
|
118
|
+
}): React.JSX.Element;
|
|
119
|
+
declare function PageContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
120
|
+
declare function PageBoundary({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
121
|
+
declare function InspectorRegion({ className, ...props }: React.ComponentProps<"aside">): React.JSX.Element;
|
|
122
|
+
|
|
123
|
+
declare function ActivityList({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
124
|
+
type ActivityItemProps = React.ComponentProps<"div"> & {
|
|
125
|
+
icon?: React.ReactNode;
|
|
126
|
+
title: React.ReactNode;
|
|
127
|
+
description?: React.ReactNode;
|
|
128
|
+
metadata?: React.ReactNode;
|
|
129
|
+
status?: React.ReactNode;
|
|
130
|
+
};
|
|
131
|
+
declare function ActivityItem({ icon, title, description, metadata, status, className, ...props }: ActivityItemProps): React.JSX.Element;
|
|
132
|
+
|
|
133
|
+
type ConfirmationDialogProps = {
|
|
134
|
+
trigger: React.ReactNode;
|
|
135
|
+
title: React.ReactNode;
|
|
136
|
+
description: React.ReactNode;
|
|
137
|
+
children?: React.ReactNode;
|
|
138
|
+
confirmLabel?: React.ReactNode;
|
|
139
|
+
cancelLabel?: React.ReactNode;
|
|
140
|
+
confirmVariant?: React.ComponentProps<typeof Button>["variant"];
|
|
141
|
+
pending?: boolean;
|
|
142
|
+
onConfirm: () => unknown | Promise<unknown>;
|
|
143
|
+
onError?: (error: unknown) => void;
|
|
144
|
+
};
|
|
145
|
+
declare function ConfirmationDialog({ trigger, title, description, children, confirmLabel, cancelLabel, confirmVariant, pending, onConfirm, onError }: ConfirmationDialogProps): React.JSX.Element;
|
|
146
|
+
|
|
147
|
+
type CodeBlockSnippet = {
|
|
148
|
+
value: string;
|
|
149
|
+
label: string;
|
|
150
|
+
code: string;
|
|
151
|
+
};
|
|
152
|
+
type CodeBlockProps = Omit<React.ComponentProps<"div">, "children"> & {
|
|
153
|
+
snippets: CodeBlockSnippet[];
|
|
154
|
+
defaultValue?: string;
|
|
155
|
+
copyLabel?: string;
|
|
156
|
+
};
|
|
157
|
+
declare function CodeBlock({ snippets, defaultValue, copyLabel, className, ...props }: CodeBlockProps): React.JSX.Element | null;
|
|
158
|
+
|
|
159
|
+
declare function InventorySurface({ className, ...props }: React.ComponentProps<typeof Card>): React.JSX.Element;
|
|
160
|
+
declare function InventoryDesktop({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
161
|
+
declare function InventoryMobile({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
162
|
+
|
|
163
|
+
type MetricBandProps = React.ComponentProps<"div"> & {
|
|
164
|
+
columns?: 2 | 3 | 4 | 5;
|
|
165
|
+
};
|
|
166
|
+
declare function MetricBand({ columns, className, ...props }: MetricBandProps): React.JSX.Element;
|
|
167
|
+
type MetricBandItemProps = React.ComponentProps<"div"> & {
|
|
168
|
+
label: React.ReactNode;
|
|
169
|
+
value?: React.ReactNode;
|
|
170
|
+
detail?: React.ReactNode;
|
|
171
|
+
icon?: React.ReactNode;
|
|
172
|
+
iconClassName?: string;
|
|
173
|
+
loading?: boolean;
|
|
174
|
+
};
|
|
175
|
+
declare function MetricBandItem({ label, value, detail, icon, iconClassName, loading, className, ...props }: MetricBandItemProps): React.JSX.Element;
|
|
176
|
+
|
|
177
|
+
type PageHeaderProps = React.ComponentProps<"header"> & {
|
|
178
|
+
title: React.ReactNode;
|
|
179
|
+
description?: React.ReactNode;
|
|
180
|
+
status?: React.ReactNode;
|
|
181
|
+
metadata?: React.ReactNode;
|
|
182
|
+
actions?: React.ReactNode;
|
|
183
|
+
/**
|
|
184
|
+
* Temporary compatibility prop for migrated Admin UI pages.
|
|
185
|
+
* New implementations should pass an explicit actions node.
|
|
186
|
+
*/
|
|
187
|
+
action?: {
|
|
188
|
+
label: string;
|
|
189
|
+
href: string;
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
* Temporary compatibility prop for migrated Admin UI pages.
|
|
193
|
+
* New implementations should use actions.
|
|
194
|
+
*/
|
|
195
|
+
actionNode?: React.ReactNode;
|
|
196
|
+
};
|
|
197
|
+
declare function PageHeader({ title, description, status, metadata, actions, action, actionNode, className, ...props }: PageHeaderProps): React.JSX.Element;
|
|
198
|
+
|
|
199
|
+
type PageToolbarProps = React.ComponentProps<"div"> & {
|
|
200
|
+
search?: React.ReactNode;
|
|
201
|
+
filters?: React.ReactNode;
|
|
202
|
+
viewControls?: React.ReactNode;
|
|
203
|
+
bulkActions?: React.ReactNode;
|
|
204
|
+
};
|
|
205
|
+
declare function PageToolbar({ search, filters, viewControls, bulkActions, className, children, ...props }: PageToolbarProps): React.JSX.Element;
|
|
206
|
+
|
|
207
|
+
type PaginationControlsProps = React.ComponentProps<"div"> & {
|
|
208
|
+
currentPage: number;
|
|
209
|
+
pageCount: number;
|
|
210
|
+
totalLabel?: React.ReactNode;
|
|
211
|
+
onPrevious?: () => void;
|
|
212
|
+
onNext?: () => void;
|
|
213
|
+
onPageChange?: (page: number) => void;
|
|
214
|
+
pageSize?: number;
|
|
215
|
+
pageSizeOptions?: number[];
|
|
216
|
+
onPageSizeChange?: (pageSize: number) => void;
|
|
217
|
+
};
|
|
218
|
+
declare function PaginationControls({ currentPage, pageCount, totalLabel, onPrevious, onNext, onPageChange, pageSize, pageSizeOptions, onPageSizeChange, className, ...props }: PaginationControlsProps): React.JSX.Element;
|
|
219
|
+
|
|
220
|
+
declare function useConsciaPreferences(): {
|
|
221
|
+
appearance: ConsciaAppearance;
|
|
222
|
+
density: ConsciaDensity;
|
|
223
|
+
};
|
|
224
|
+
declare function DesignSystemPreferenceSync(): null;
|
|
225
|
+
declare function AppearanceControl({ className }: {
|
|
226
|
+
className?: string;
|
|
227
|
+
}): React.JSX.Element;
|
|
228
|
+
declare function DensityControl({ className }: {
|
|
229
|
+
className?: string;
|
|
230
|
+
}): React.JSX.Element;
|
|
231
|
+
declare function DesignPreferenceControls({ className }: {
|
|
232
|
+
className?: string;
|
|
233
|
+
}): React.JSX.Element;
|
|
234
|
+
|
|
235
|
+
type ProviderMarkProps = React.ComponentProps<"div"> & {
|
|
236
|
+
name: string;
|
|
237
|
+
shortName: string;
|
|
238
|
+
description?: React.ReactNode;
|
|
239
|
+
size?: "sm" | "default";
|
|
240
|
+
};
|
|
241
|
+
declare function ProviderMark({ name, shortName, description, size, className, ...props }: ProviderMarkProps): React.JSX.Element;
|
|
242
|
+
|
|
243
|
+
type ResourceSummaryProps = React.ComponentProps<"section"> & {
|
|
244
|
+
variant?: "plain" | "surface";
|
|
245
|
+
title?: React.ReactNode;
|
|
246
|
+
description?: React.ReactNode;
|
|
247
|
+
status?: React.ReactNode;
|
|
248
|
+
metadata?: React.ReactNode;
|
|
249
|
+
actions?: React.ReactNode;
|
|
250
|
+
};
|
|
251
|
+
declare function ResourceSummary({ variant, title, description, status, metadata, actions, className, children, ...props }: ResourceSummaryProps): React.JSX.Element;
|
|
252
|
+
declare function DetailSections({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
253
|
+
type DetailSectionProps = React.ComponentProps<"section"> & {
|
|
254
|
+
variant?: "surface" | "open";
|
|
255
|
+
title: React.ReactNode;
|
|
256
|
+
description?: React.ReactNode;
|
|
257
|
+
actions?: React.ReactNode;
|
|
258
|
+
};
|
|
259
|
+
declare function DetailSection({ variant, title, description, actions, className, children, ...props }: DetailSectionProps): React.JSX.Element;
|
|
260
|
+
declare function KeyValueList({ className, ...props }: React.ComponentProps<"dl">): React.JSX.Element;
|
|
261
|
+
declare function KeyValueItem({ label, value, breakValue, }: {
|
|
262
|
+
label: React.ReactNode;
|
|
263
|
+
value: React.ReactNode;
|
|
264
|
+
breakValue?: boolean;
|
|
265
|
+
}): React.JSX.Element;
|
|
266
|
+
|
|
267
|
+
type SidebarNavigationItem = {
|
|
268
|
+
id: string;
|
|
269
|
+
label: string;
|
|
270
|
+
icon?: React.ReactNode;
|
|
271
|
+
active?: boolean;
|
|
272
|
+
startsSection?: boolean;
|
|
273
|
+
};
|
|
274
|
+
type SidebarNavigationSection = Omit<SidebarNavigationItem, "active"> & {
|
|
275
|
+
active?: boolean;
|
|
276
|
+
items: SidebarNavigationItem[];
|
|
277
|
+
};
|
|
278
|
+
type SidebarNavigationEntry = SidebarNavigationItem | SidebarNavigationSection;
|
|
279
|
+
type SidebarNavigationLinkProps = {
|
|
280
|
+
"aria-current"?: "page";
|
|
281
|
+
"aria-label": string;
|
|
282
|
+
children: React.ReactNode;
|
|
283
|
+
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
284
|
+
};
|
|
285
|
+
type SidebarNavigationProps = {
|
|
286
|
+
entries: SidebarNavigationEntry[];
|
|
287
|
+
renderLink: (item: SidebarNavigationItem, props: SidebarNavigationLinkProps) => React.ReactElement;
|
|
288
|
+
onNavigate?: () => void;
|
|
289
|
+
storageKey?: string;
|
|
290
|
+
className?: string;
|
|
291
|
+
};
|
|
292
|
+
declare function SidebarNavigation({ entries, renderLink, onNavigate, storageKey, className, }: SidebarNavigationProps): React.JSX.Element;
|
|
293
|
+
|
|
294
|
+
type StateViewProps = React.ComponentProps<"div"> & {
|
|
295
|
+
title: React.ReactNode;
|
|
296
|
+
description?: React.ReactNode;
|
|
297
|
+
action?: React.ReactNode;
|
|
298
|
+
icon?: React.ReactNode;
|
|
299
|
+
};
|
|
300
|
+
declare function StateView({ title, description, action, icon, className, ...props }: StateViewProps): React.JSX.Element;
|
|
301
|
+
declare function LoadingRows({ rows, columns, }: {
|
|
302
|
+
rows?: number;
|
|
303
|
+
columns?: number;
|
|
304
|
+
}): React.JSX.Element;
|
|
305
|
+
declare function ErrorState({ title, description, action, className, ...props }: StateViewProps): React.JSX.Element;
|
|
306
|
+
|
|
307
|
+
type ValueMeterProps = React.ComponentProps<"div"> & {
|
|
308
|
+
label: React.ReactNode;
|
|
309
|
+
value: number;
|
|
310
|
+
maximum?: number | null;
|
|
311
|
+
valueLabel?: React.ReactNode;
|
|
312
|
+
detail?: React.ReactNode;
|
|
313
|
+
tone?: "neutral" | "success" | "warning" | "danger";
|
|
314
|
+
};
|
|
315
|
+
declare function ValueMeter({ label, value, maximum, valueLabel, detail, tone, className, ...props }: ValueMeterProps): React.JSX.Element;
|
|
316
|
+
|
|
317
|
+
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, 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, ResourceSummary, type ResourceSummaryProps, SidebarNavigation, type SidebarNavigationEntry, type SidebarNavigationItem, type SidebarNavigationLinkProps, type SidebarNavigationSection, SidebarSeparator, SidebarTrigger, StateView, type StateViewProps, TopBar, ValueMeter, type ValueMeterProps, useAppShell, useConsciaPreferences };
|