@monoform-ui/react 0.0.0-stage → 0.2.0-beta.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 +228 -2
- package/THIRD_PARTY_NOTICES.md +37 -0
- package/dist/actions.d.ts +80 -0
- package/dist/advanced-forms.d.ts +107 -0
- package/dist/advanced-inputs.d.ts +103 -0
- package/dist/agent-chat.d.ts +98 -0
- package/dist/agent-input.d.ts +54 -0
- package/dist/ai-creation-input.d.ts +71 -0
- package/dist/ai-interactions.d.ts +90 -0
- package/dist/ai-status.d.ts +17 -0
- package/dist/ai.cjs +2 -0
- package/dist/ai.cjs.map +1 -0
- package/dist/ai.d.ts +6 -0
- package/dist/ai.js +29 -0
- package/dist/ai.js.map +1 -0
- package/dist/app-shell.d.ts +69 -0
- package/dist/assets/backgrounds/monolith-field-dark-desktop.avif +0 -0
- package/dist/assets/backgrounds/monolith-field-dark-desktop.webp +0 -0
- package/dist/assets/backgrounds/monolith-field-dark-mobile.avif +0 -0
- package/dist/assets/backgrounds/monolith-field-dark-mobile.webp +0 -0
- package/dist/assets/backgrounds/monolith-field-dark.svg +58 -0
- package/dist/assets/backgrounds/monolith-field-light-desktop.avif +0 -0
- package/dist/assets/backgrounds/monolith-field-light-desktop.webp +0 -0
- package/dist/assets/backgrounds/monolith-field-light-mobile.avif +0 -0
- package/dist/assets/backgrounds/monolith-field-light-mobile.webp +0 -0
- package/dist/assets/backgrounds/monolith-field-light.svg +58 -0
- package/dist/assets/backgrounds/optical-fog-dark-desktop.avif +0 -0
- package/dist/assets/backgrounds/optical-fog-dark-desktop.webp +0 -0
- package/dist/assets/backgrounds/optical-fog-dark-mobile.avif +0 -0
- package/dist/assets/backgrounds/optical-fog-dark-mobile.webp +0 -0
- package/dist/assets/backgrounds/optical-fog-dark.svg +50 -0
- package/dist/assets/backgrounds/optical-fog-light-desktop.avif +0 -0
- package/dist/assets/backgrounds/optical-fog-light-desktop.webp +0 -0
- package/dist/assets/backgrounds/optical-fog-light-mobile.avif +0 -0
- package/dist/assets/backgrounds/optical-fog-light-mobile.webp +0 -0
- package/dist/assets/backgrounds/optical-fog-light.svg +50 -0
- package/dist/assets/backgrounds/orbital-field-dark-desktop.avif +0 -0
- package/dist/assets/backgrounds/orbital-field-dark-desktop.webp +0 -0
- package/dist/assets/backgrounds/orbital-field-dark-mobile.avif +0 -0
- package/dist/assets/backgrounds/orbital-field-dark-mobile.webp +0 -0
- package/dist/assets/backgrounds/orbital-field-dark.svg +49 -0
- package/dist/assets/backgrounds/orbital-field-light-desktop.avif +0 -0
- package/dist/assets/backgrounds/orbital-field-light-desktop.webp +0 -0
- package/dist/assets/backgrounds/orbital-field-light-mobile.avif +0 -0
- package/dist/assets/backgrounds/orbital-field-light-mobile.webp +0 -0
- package/dist/assets/backgrounds/orbital-field-light.svg +49 -0
- package/dist/assets/backgrounds/signal-lattice-dark-desktop.avif +0 -0
- package/dist/assets/backgrounds/signal-lattice-dark-desktop.webp +0 -0
- package/dist/assets/backgrounds/signal-lattice-dark-mobile.avif +0 -0
- package/dist/assets/backgrounds/signal-lattice-dark-mobile.webp +0 -0
- package/dist/assets/backgrounds/signal-lattice-dark.svg +39 -0
- package/dist/assets/backgrounds/signal-lattice-light-desktop.avif +0 -0
- package/dist/assets/backgrounds/signal-lattice-light-desktop.webp +0 -0
- package/dist/assets/backgrounds/signal-lattice-light-mobile.avif +0 -0
- package/dist/assets/backgrounds/signal-lattice-light-mobile.webp +0 -0
- package/dist/assets/backgrounds/signal-lattice-light.svg +39 -0
- package/dist/background-assets.d.ts +144 -0
- package/dist/backgrounds.cjs +2 -0
- package/dist/backgrounds.cjs.map +1 -0
- package/dist/backgrounds.css +463 -0
- package/dist/backgrounds.d.ts +44 -0
- package/dist/backgrounds.js +256 -0
- package/dist/backgrounds.js.map +1 -0
- package/dist/catalog.cjs +2 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.ts +27 -0
- package/dist/catalog.js +307 -0
- package/dist/catalog.js.map +1 -0
- package/dist/collections-CXPc6huw.cjs +2 -0
- package/dist/collections-CXPc6huw.cjs.map +1 -0
- package/dist/collections-GglQdMPr.js +1308 -0
- package/dist/collections-GglQdMPr.js.map +1 -0
- package/dist/collections.d.ts +52 -0
- package/dist/command-palette-B4r2GzmF.cjs +2 -0
- package/dist/command-palette-B4r2GzmF.cjs.map +1 -0
- package/dist/command-palette-DwfgljM2.js +2773 -0
- package/dist/command-palette-DwfgljM2.js.map +1 -0
- package/dist/command-palette.d.ts +26 -0
- package/dist/core.cjs +2 -0
- package/dist/core.cjs.map +1 -0
- package/dist/core.css +8659 -0
- package/dist/core.d.ts +19 -0
- package/dist/core.js +176 -0
- package/dist/core.js.map +1 -0
- package/dist/data-grid.d.ts +62 -0
- package/dist/data-workbench.d.ts +103 -0
- package/dist/data.cjs +2 -0
- package/dist/data.cjs.map +1 -0
- package/dist/data.d.ts +6 -0
- package/dist/data.js +19 -0
- package/dist/data.js.map +1 -0
- package/dist/description-list.d.ts +8 -0
- package/dist/effects.cjs +2 -0
- package/dist/effects.cjs.map +1 -0
- package/dist/effects.css +442 -0
- package/dist/effects.d.ts +2 -0
- package/dist/effects.js +19 -0
- package/dist/effects.js.map +1 -0
- package/dist/feedback.d.ts +40 -0
- package/dist/forms.d.ts +89 -0
- package/dist/harness-D7tlTUb2.cjs +2 -0
- package/dist/harness-D7tlTUb2.cjs.map +1 -0
- package/dist/harness-Dcqe3-AP.js +2282 -0
- package/dist/harness-Dcqe3-AP.js.map +1 -0
- package/dist/harness.d.ts +89 -0
- package/dist/hooks.d.ts +6 -0
- package/dist/image-effects-BaXRloLB.js +164 -0
- package/dist/image-effects-BaXRloLB.js.map +1 -0
- package/dist/image-effects-D57JACXp.cjs +2 -0
- package/dist/image-effects-D57JACXp.cjs.map +1 -0
- package/dist/image-effects.d.ts +14 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +239 -0
- package/dist/index.js.map +1 -0
- package/dist/locale.d.ts +358 -0
- package/dist/motion-effects-C1Rs4a2H.js +449 -0
- package/dist/motion-effects-C1Rs4a2H.js.map +1 -0
- package/dist/motion-effects-ze3SOVGs.cjs +2 -0
- package/dist/motion-effects-ze3SOVGs.cjs.map +1 -0
- package/dist/motion-effects.d.ts +76 -0
- package/dist/nav-menu.d.ts +45 -0
- package/dist/navigation-BG-qLyKt.cjs +2 -0
- package/dist/navigation-BG-qLyKt.cjs.map +1 -0
- package/dist/navigation-Bp7q1n-5.js +252 -0
- package/dist/navigation-Bp7q1n-5.js.map +1 -0
- package/dist/navigation.d.ts +53 -0
- package/dist/overlays-BhrWwlkN.js +1288 -0
- package/dist/overlays-BhrWwlkN.js.map +1 -0
- package/dist/overlays-DvozzH8D.cjs +2 -0
- package/dist/overlays-DvozzH8D.cjs.map +1 -0
- package/dist/overlays.d.ts +92 -0
- package/dist/people-picker.d.ts +65 -0
- package/dist/portal.d.ts +3 -0
- package/dist/primitives-Bb7v-uZh.js +217 -0
- package/dist/primitives-Bb7v-uZh.js.map +1 -0
- package/dist/primitives-CEcOVwUM.cjs +2 -0
- package/dist/primitives-CEcOVwUM.cjs.map +1 -0
- package/dist/primitives.d.ts +66 -0
- package/dist/rounded-card-border-B3d1HqwY.js +185 -0
- package/dist/rounded-card-border-B3d1HqwY.js.map +1 -0
- package/dist/rounded-card-border-CMiEPJIF.cjs +2 -0
- package/dist/rounded-card-border-CMiEPJIF.cjs.map +1 -0
- package/dist/rounded-card-border.d.ts +3 -0
- package/dist/sizes.d.ts +4 -0
- package/dist/status-toast.d.ts +20 -0
- package/dist/styles.css +9566 -0
- package/dist/theme-C3i6xkHd.cjs +2 -0
- package/dist/theme-C3i6xkHd.cjs.map +1 -0
- package/dist/theme-CHYnSgLv.js +914 -0
- package/dist/theme-CHYnSgLv.js.map +1 -0
- package/dist/theme.d.ts +24 -0
- package/dist/timeline.d.ts +15 -0
- package/dist/tree-view-Djlqyml-.js +132 -0
- package/dist/tree-view-Djlqyml-.js.map +1 -0
- package/dist/tree-view-iVh5jMNt.cjs +2 -0
- package/dist/tree-view-iVh5jMNt.cjs.map +1 -0
- package/dist/tree-view.d.ts +18 -0
- package/dist/utils.d.ts +2 -0
- package/package.json +162 -4
package/dist/core.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export * from './theme';
|
|
2
|
+
export * from './locale';
|
|
3
|
+
export * from './hooks';
|
|
4
|
+
export type { ControlSize, SurfaceSize } from './sizes';
|
|
5
|
+
export * from './utils';
|
|
6
|
+
export * from './primitives';
|
|
7
|
+
export * from './actions';
|
|
8
|
+
export * from './forms';
|
|
9
|
+
export * from './feedback';
|
|
10
|
+
export * from './status-toast';
|
|
11
|
+
export * from './portal';
|
|
12
|
+
export * from './overlays';
|
|
13
|
+
export * from './navigation';
|
|
14
|
+
export * from './advanced-forms';
|
|
15
|
+
export * from './advanced-inputs';
|
|
16
|
+
export * from './people-picker';
|
|
17
|
+
export * from './nav-menu';
|
|
18
|
+
export * from './command-palette';
|
|
19
|
+
export * from './app-shell';
|
package/dist/core.js
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { L as s, T as o, c as r, e as t, u as n, a as i, z as l } from "./theme-CHYnSgLv.js";
|
|
2
|
+
import { A as p, a as d, b as g, c as C, d as D, e as T, f as c, g as S, h as b, i as m, j as M, k as x, B as P, l as w, C as I, m as A, n as h, o as v, p as k, q as G, r as H, s as L, t as B, u as R, v as f, w as F, x as N, y, z, D as K, E as U, F as V, G as j, H as E, I as O, J as q, K as J, L as Q, M as W, N as X, O as Y, P as Z, Q as _, R as $, S as aa, T as ea, U as sa, V as oa, W as ra, X as ta, Y as na, Z as ia, _ as la, $ as ua, a0 as pa, a1 as da, a2 as ga, a3 as Ca, a4 as Da, a5 as Ta, a6 as ca, a7 as Sa, a8 as ba, a9 as ma, aa as Ma, ab as xa, ac as Pa, ad as wa, ae as Ia, af as Aa, ag as ha, ah as va, ai as ka, aj as Ga, ak as Ha, al as La, am as Ba, an as Ra, ao as fa, ap as Fa, aq as Na, ar as ya, as as za, at as Ka, au as Ua, av as Va, aw as ja, ax as Ea, ay as Oa, az as qa, aA as Ja, aB as Qa, aC as Wa, aD as Xa, aE as Ya, aF as Za, aG as _a, aH as $a, aI as ae, aJ as ee, aK as se, aL as oe, aM as re, aN as te, aO as ne, aP as ie, aQ as le, aR as ue } from "./overlays-BhrWwlkN.js";
|
|
3
|
+
import { A as de, C as ge, a as Ce, G as De, H as Te, I as ce, K as Se, L as be, P as me, S as Me, b as xe, T as Pe, V as we, c as Ie } from "./primitives-Bb7v-uZh.js";
|
|
4
|
+
import { A as he, a as ve, C as ke, b as Ge, c as He, d as Le, D as Be, e as Re, F as fe, I as Fe, M as Ne, N as ye, f as ze, P as Ke, g as Ue, h as Ve, R as je, S as Ee, i as Oe, j as qe, k as Je, l as Qe, T as We, m as Xe, U as Ye, u as Ze, n as _e } from "./command-palette-DwfgljM2.js";
|
|
5
|
+
import { B as as, a as es, b as ss, c as os, d as rs, e as ts, P as ns, f as is, S as ls, T as us, g as ps, h as ds } from "./navigation-Bp7q1n-5.js";
|
|
6
|
+
export {
|
|
7
|
+
p as Alert,
|
|
8
|
+
d as AlertDialog,
|
|
9
|
+
g as AlertDialogAction,
|
|
10
|
+
C as AlertDialogCancel,
|
|
11
|
+
D as AlertDialogContent,
|
|
12
|
+
T as AlertDialogDescription,
|
|
13
|
+
c as AlertDialogFooter,
|
|
14
|
+
S as AlertDialogHeader,
|
|
15
|
+
b as AlertDialogTitle,
|
|
16
|
+
m as AlertDialogTrigger,
|
|
17
|
+
he as AppShell,
|
|
18
|
+
de as AspectRatio,
|
|
19
|
+
ve as Autocomplete,
|
|
20
|
+
M as Avatar,
|
|
21
|
+
x as AvatarGroup,
|
|
22
|
+
P as Badge,
|
|
23
|
+
as as Breadcrumb,
|
|
24
|
+
es as BreadcrumbItem,
|
|
25
|
+
ss as BreadcrumbLink,
|
|
26
|
+
os as BreadcrumbList,
|
|
27
|
+
rs as BreadcrumbPage,
|
|
28
|
+
ts as BreadcrumbSeparator,
|
|
29
|
+
w as Button,
|
|
30
|
+
ke as Calendar,
|
|
31
|
+
I as Card,
|
|
32
|
+
A as CardContent,
|
|
33
|
+
h as CardDescription,
|
|
34
|
+
v as CardFooter,
|
|
35
|
+
k as CardHeader,
|
|
36
|
+
G as CardTitle,
|
|
37
|
+
H as CheckList,
|
|
38
|
+
L as Checkbox,
|
|
39
|
+
Ge as CheckboxGroup,
|
|
40
|
+
ge as Code,
|
|
41
|
+
He as Combobox,
|
|
42
|
+
Le as CommandPalette,
|
|
43
|
+
Ce as Container,
|
|
44
|
+
B as ContextMenu,
|
|
45
|
+
R as ContextMenuCheckboxItem,
|
|
46
|
+
f as ContextMenuContent,
|
|
47
|
+
F as ContextMenuGroup,
|
|
48
|
+
N as ContextMenuItem,
|
|
49
|
+
y as ContextMenuItemIndicator,
|
|
50
|
+
z as ContextMenuLabel,
|
|
51
|
+
K as ContextMenuRadioGroup,
|
|
52
|
+
U as ContextMenuRadioItem,
|
|
53
|
+
V as ContextMenuSeparator,
|
|
54
|
+
j as ContextMenuSub,
|
|
55
|
+
E as ContextMenuSubContent,
|
|
56
|
+
O as ContextMenuSubTrigger,
|
|
57
|
+
q as ContextMenuTrigger,
|
|
58
|
+
Be as DatePicker,
|
|
59
|
+
Re as DateRangePicker,
|
|
60
|
+
J as Dialog,
|
|
61
|
+
Q as DialogClose,
|
|
62
|
+
W as DialogContent,
|
|
63
|
+
X as DialogDescription,
|
|
64
|
+
Y as DialogFooter,
|
|
65
|
+
Z as DialogHeader,
|
|
66
|
+
_ as DialogTitle,
|
|
67
|
+
$ as DialogTrigger,
|
|
68
|
+
aa as Drawer,
|
|
69
|
+
ea as DrawerClose,
|
|
70
|
+
sa as DrawerContent,
|
|
71
|
+
oa as DrawerDescription,
|
|
72
|
+
ra as DrawerFooter,
|
|
73
|
+
ta as DrawerHeader,
|
|
74
|
+
na as DrawerTitle,
|
|
75
|
+
ia as DrawerTrigger,
|
|
76
|
+
la as DropdownMenu,
|
|
77
|
+
ua as DropdownMenuCheckboxItem,
|
|
78
|
+
pa as DropdownMenuContent,
|
|
79
|
+
da as DropdownMenuGroup,
|
|
80
|
+
ga as DropdownMenuItem,
|
|
81
|
+
Ca as DropdownMenuItemIndicator,
|
|
82
|
+
Da as DropdownMenuLabel,
|
|
83
|
+
Ta as DropdownMenuRadioGroup,
|
|
84
|
+
ca as DropdownMenuRadioItem,
|
|
85
|
+
Sa as DropdownMenuSeparator,
|
|
86
|
+
ba as DropdownMenuSub,
|
|
87
|
+
ma as DropdownMenuSubContent,
|
|
88
|
+
Ma as DropdownMenuSubTrigger,
|
|
89
|
+
xa as DropdownMenuTrigger,
|
|
90
|
+
Pa as EmptyState,
|
|
91
|
+
wa as Field,
|
|
92
|
+
fe as FileInput,
|
|
93
|
+
De as Grid,
|
|
94
|
+
Te as Heading,
|
|
95
|
+
Ia as HoverCard,
|
|
96
|
+
Aa as HoverCardContent,
|
|
97
|
+
ha as HoverCardTrigger,
|
|
98
|
+
ce as Icon,
|
|
99
|
+
va as IconButton,
|
|
100
|
+
ka as Input,
|
|
101
|
+
Fe as InputGroup,
|
|
102
|
+
Se as Kbd,
|
|
103
|
+
be as Link,
|
|
104
|
+
s as LocaleProvider,
|
|
105
|
+
Ne as MultiSelect,
|
|
106
|
+
ye as NavMenu,
|
|
107
|
+
ze as NavigationMenu,
|
|
108
|
+
Ga as NumberInput,
|
|
109
|
+
ns as PageBreadcrumb,
|
|
110
|
+
Ke as PageHeader,
|
|
111
|
+
is as Pagination,
|
|
112
|
+
Ha as PasswordInput,
|
|
113
|
+
Ue as PeoplePicker,
|
|
114
|
+
La as Popover,
|
|
115
|
+
Ba as PopoverAnchor,
|
|
116
|
+
Ra as PopoverClose,
|
|
117
|
+
fa as PopoverContent,
|
|
118
|
+
Fa as PopoverTrigger,
|
|
119
|
+
Ve as PrimaryNavigation,
|
|
120
|
+
Na as Progress,
|
|
121
|
+
me as Prose,
|
|
122
|
+
ya as RadioGroup,
|
|
123
|
+
za as RadioGroupItem,
|
|
124
|
+
je as RangeSlider,
|
|
125
|
+
Ka as SearchInput,
|
|
126
|
+
Ua as SegmentedControl,
|
|
127
|
+
Va as Select,
|
|
128
|
+
Me as Separator,
|
|
129
|
+
Ee as Sidebar,
|
|
130
|
+
Oe as SidebarTrigger,
|
|
131
|
+
ja as Skeleton,
|
|
132
|
+
qe as SkipLink,
|
|
133
|
+
Je as Slider,
|
|
134
|
+
Ea as Spinner,
|
|
135
|
+
xe as Stack,
|
|
136
|
+
Oa as StatusDot,
|
|
137
|
+
Qe as StatusToastStack,
|
|
138
|
+
ls as Stepper,
|
|
139
|
+
qa as Switch,
|
|
140
|
+
Ja as Tabs,
|
|
141
|
+
Qa as TabsContent,
|
|
142
|
+
Wa as TabsList,
|
|
143
|
+
Xa as TabsTrigger,
|
|
144
|
+
Ya as Tag,
|
|
145
|
+
We as TagInput,
|
|
146
|
+
Pe as Text,
|
|
147
|
+
Za as Textarea,
|
|
148
|
+
_a as ThemePortal,
|
|
149
|
+
o as ThemeProvider,
|
|
150
|
+
$a as Toast,
|
|
151
|
+
ae as ToastAction,
|
|
152
|
+
ee as ToastClose,
|
|
153
|
+
se as ToastDescription,
|
|
154
|
+
oe as ToastProvider,
|
|
155
|
+
re as ToastTitle,
|
|
156
|
+
us as Toolbar,
|
|
157
|
+
ps as ToolbarGroup,
|
|
158
|
+
ds as ToolbarSeparator,
|
|
159
|
+
te as Tooltip,
|
|
160
|
+
ne as TooltipContent,
|
|
161
|
+
ie as TooltipProvider,
|
|
162
|
+
le as TooltipTrigger,
|
|
163
|
+
Xe as TreeSelect,
|
|
164
|
+
Ye as Upload,
|
|
165
|
+
we as VisuallyHidden,
|
|
166
|
+
Ie as VisuallyHiddenText,
|
|
167
|
+
r as cn,
|
|
168
|
+
t as enUSMessages,
|
|
169
|
+
Ze as useAppShell,
|
|
170
|
+
ue as useControllableState,
|
|
171
|
+
n as useLocale,
|
|
172
|
+
_e as useOptionalAppShell,
|
|
173
|
+
i as useTheme,
|
|
174
|
+
l as zhCNMessages
|
|
175
|
+
};
|
|
176
|
+
//# sourceMappingURL=core.js.map
|
package/dist/core.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ColumnDef, ColumnFiltersState, ColumnPinningState, ExpandedState, GroupingState, PaginationState, RowData, RowSelectionState, SortingState, VisibilityState } from '@tanstack/react-table';
|
|
3
|
+
declare module "@tanstack/react-table" {
|
|
4
|
+
interface ColumnMeta<TData extends RowData, TValue> {
|
|
5
|
+
label?: string;
|
|
6
|
+
mobilePriority?: number;
|
|
7
|
+
mobileHidden?: boolean;
|
|
8
|
+
align?: "left" | "center" | "right";
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export type DataGridColumn<TData> = ColumnDef<TData>;
|
|
12
|
+
export interface DataGridState {
|
|
13
|
+
sorting: SortingState;
|
|
14
|
+
columnFilters: ColumnFiltersState;
|
|
15
|
+
globalFilter: string;
|
|
16
|
+
columnVisibility: VisibilityState;
|
|
17
|
+
rowSelection: RowSelectionState;
|
|
18
|
+
columnPinning: ColumnPinningState;
|
|
19
|
+
pagination: PaginationState;
|
|
20
|
+
grouping: GroupingState;
|
|
21
|
+
expanded: ExpandedState;
|
|
22
|
+
}
|
|
23
|
+
export interface DataGridProps<TData> {
|
|
24
|
+
data: TData[];
|
|
25
|
+
columns: Array<ColumnDef<TData, unknown>>;
|
|
26
|
+
getRowId?: (row: TData, index: number) => string;
|
|
27
|
+
pageSize?: number;
|
|
28
|
+
searchPlaceholder?: string;
|
|
29
|
+
emptyTitle?: ReactNode;
|
|
30
|
+
emptyDescription?: ReactNode;
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated Use the native `aria-label` prop instead.
|
|
33
|
+
*/
|
|
34
|
+
ariaLabel?: string;
|
|
35
|
+
"aria-label"?: string;
|
|
36
|
+
className?: string;
|
|
37
|
+
maxHeight?: number;
|
|
38
|
+
virtualized?: boolean;
|
|
39
|
+
enableSearch?: boolean;
|
|
40
|
+
enableFilters?: boolean;
|
|
41
|
+
enableColumnVisibility?: boolean;
|
|
42
|
+
enableColumnPinning?: boolean;
|
|
43
|
+
enableColumnResizing?: boolean;
|
|
44
|
+
enableRowSelection?: boolean;
|
|
45
|
+
enablePagination?: boolean;
|
|
46
|
+
enableKeyboardNavigation?: boolean;
|
|
47
|
+
enableGrouping?: boolean;
|
|
48
|
+
state?: Partial<DataGridState>;
|
|
49
|
+
initialState?: Partial<DataGridState>;
|
|
50
|
+
onStateChange?: (state: DataGridState) => void;
|
|
51
|
+
manualPagination?: boolean;
|
|
52
|
+
manualFiltering?: boolean;
|
|
53
|
+
manualSorting?: boolean;
|
|
54
|
+
rowCount?: number;
|
|
55
|
+
onRowSelectionChange?: (rows: TData[]) => void;
|
|
56
|
+
onRowClick?: (row: TData) => void;
|
|
57
|
+
rowDetailTitle?: (row: TData) => ReactNode;
|
|
58
|
+
bulkActions?: (rows: TData[]) => ReactNode;
|
|
59
|
+
toolbarActions?: ReactNode;
|
|
60
|
+
renderMobileCard?: (row: TData) => ReactNode;
|
|
61
|
+
}
|
|
62
|
+
export declare function DataGrid<TData>({ data, columns, getRowId, pageSize, searchPlaceholder, emptyTitle, emptyDescription, ariaLabel, "aria-label": nativeAriaLabel, className, maxHeight, virtualized, enableSearch, enableFilters, enableColumnVisibility, enableColumnPinning, enableColumnResizing, enableRowSelection, enablePagination, enableKeyboardNavigation, enableGrouping, state, initialState, onStateChange, manualPagination, manualFiltering, manualSorting, rowCount, onRowSelectionChange, onRowClick, rowDetailTitle, bulkActions, toolbarActions, renderMobileCard, }: DataGridProps<TData>): import("react").JSX.Element;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode, TableHTMLAttributes } from 'react';
|
|
2
|
+
export type FilterFieldType = "text" | "number" | "date" | "select";
|
|
3
|
+
export type FilterOperator = "contains" | "equals" | "not-equals" | "greater-than" | "less-than" | "before" | "after" | "is-empty" | "is-not-empty";
|
|
4
|
+
export interface FilterField {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
type: FilterFieldType;
|
|
8
|
+
options?: Array<{
|
|
9
|
+
value: string;
|
|
10
|
+
label: string;
|
|
11
|
+
}>;
|
|
12
|
+
}
|
|
13
|
+
export interface FilterRule {
|
|
14
|
+
id: string;
|
|
15
|
+
field: string;
|
|
16
|
+
operator: FilterOperator;
|
|
17
|
+
value: string;
|
|
18
|
+
}
|
|
19
|
+
export interface FilterBuilderProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultValue"> {
|
|
20
|
+
fields: FilterField[];
|
|
21
|
+
value?: FilterRule[];
|
|
22
|
+
defaultValue?: FilterRule[];
|
|
23
|
+
onValueChange?: (rules: FilterRule[]) => void;
|
|
24
|
+
match?: "all" | "any";
|
|
25
|
+
defaultMatch?: "all" | "any";
|
|
26
|
+
onMatchChange?: (match: "all" | "any") => void;
|
|
27
|
+
}
|
|
28
|
+
export declare function FilterBuilder({ fields, value, defaultValue, onValueChange, match, defaultMatch, onMatchChange, className, ...props }: FilterBuilderProps): import("react").JSX.Element;
|
|
29
|
+
export interface ColumnSetting {
|
|
30
|
+
id: string;
|
|
31
|
+
label: string;
|
|
32
|
+
hideable?: boolean;
|
|
33
|
+
width?: number;
|
|
34
|
+
}
|
|
35
|
+
export interface ColumnSettingsValue {
|
|
36
|
+
order: string[];
|
|
37
|
+
hidden: string[];
|
|
38
|
+
pinned: Record<string, "left" | "right" | undefined>;
|
|
39
|
+
widths: Record<string, number | undefined>;
|
|
40
|
+
}
|
|
41
|
+
export interface ColumnSettingsProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultValue"> {
|
|
42
|
+
columns: ColumnSetting[];
|
|
43
|
+
value?: ColumnSettingsValue;
|
|
44
|
+
defaultValue?: ColumnSettingsValue;
|
|
45
|
+
onValueChange?: (value: ColumnSettingsValue) => void;
|
|
46
|
+
onReset?: () => void;
|
|
47
|
+
}
|
|
48
|
+
export declare function ColumnSettings({ columns, value, defaultValue, onValueChange, onReset, className, ...props }: ColumnSettingsProps): import("react").JSX.Element;
|
|
49
|
+
export interface SavedView {
|
|
50
|
+
id: string;
|
|
51
|
+
name: string;
|
|
52
|
+
description?: string;
|
|
53
|
+
shared?: boolean;
|
|
54
|
+
system?: boolean;
|
|
55
|
+
}
|
|
56
|
+
export interface SavedViewsProps extends Omit<HTMLAttributes<HTMLDivElement>, "onSelect"> {
|
|
57
|
+
views: SavedView[];
|
|
58
|
+
activeId?: string;
|
|
59
|
+
onSelect?: (view: SavedView) => void;
|
|
60
|
+
onCreate?: () => void;
|
|
61
|
+
onRename?: (view: SavedView) => void;
|
|
62
|
+
onDelete?: (view: SavedView) => void;
|
|
63
|
+
}
|
|
64
|
+
export declare function SavedViews({ views, activeId, onSelect, onCreate, onRename, onDelete, className, ...props }: SavedViewsProps): import("react").JSX.Element;
|
|
65
|
+
export interface BulkActionBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
66
|
+
selectedCount: number;
|
|
67
|
+
onClear?: () => void;
|
|
68
|
+
actions?: ReactNode;
|
|
69
|
+
}
|
|
70
|
+
export declare function BulkActionBar({ selectedCount, onClear, actions, className, ...props }: BulkActionBarProps): import("react").JSX.Element | null;
|
|
71
|
+
export interface ListItemData {
|
|
72
|
+
id: string;
|
|
73
|
+
title: ReactNode;
|
|
74
|
+
description?: ReactNode;
|
|
75
|
+
meta?: ReactNode;
|
|
76
|
+
leading?: ReactNode;
|
|
77
|
+
trailing?: ReactNode;
|
|
78
|
+
href?: string;
|
|
79
|
+
disabled?: boolean;
|
|
80
|
+
onAction?: () => void;
|
|
81
|
+
}
|
|
82
|
+
export interface ListProps extends HTMLAttributes<HTMLUListElement> {
|
|
83
|
+
items: ListItemData[];
|
|
84
|
+
emptyMessage?: ReactNode;
|
|
85
|
+
}
|
|
86
|
+
export declare function List({ items, emptyMessage, className, ...props }: ListProps): import("react").JSX.Element;
|
|
87
|
+
export interface TableColumn<T> {
|
|
88
|
+
id: string;
|
|
89
|
+
header: ReactNode;
|
|
90
|
+
cell: (row: T, index: number) => ReactNode;
|
|
91
|
+
align?: "left" | "center" | "right";
|
|
92
|
+
width?: number | string;
|
|
93
|
+
}
|
|
94
|
+
export interface TableProps<T> extends Omit<TableHTMLAttributes<HTMLTableElement>, "children"> {
|
|
95
|
+
data: T[];
|
|
96
|
+
columns: Array<TableColumn<T>>;
|
|
97
|
+
getRowKey: (row: T, index: number) => string;
|
|
98
|
+
caption?: ReactNode;
|
|
99
|
+
emptyMessage?: ReactNode;
|
|
100
|
+
onRowClick?: (row: T) => void;
|
|
101
|
+
getRowAriaLabel?: (row: T, index: number) => string;
|
|
102
|
+
}
|
|
103
|
+
export declare function Table<T>({ data, columns, getRowKey, caption, emptyMessage, onRowClick, getRowAriaLabel, className, ...props }: TableProps<T>): import("react").JSX.Element;
|
package/dist/data.cjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./collections-CXPc6huw.cjs"),i=require("./tree-view-iVh5jMNt.cjs");exports.BulkActionBar=e.BulkActionBar;exports.ColumnSettings=e.ColumnSettings;exports.DataGrid=e.DataGrid;exports.DocumentList=e.DocumentList;exports.FilterBuilder=e.FilterBuilder;exports.List=e.List;exports.MediaGrid=e.MediaGrid;exports.SavedViews=e.SavedViews;exports.Table=e.Table;exports.distributeMasonryItems=e.distributeMasonryItems;exports.DescriptionItem=i.DescriptionItem;exports.DescriptionList=i.DescriptionList;exports.Timeline=i.Timeline;exports.TreeView=i.TreeView;
|
|
2
|
+
//# sourceMappingURL=data.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/data.d.ts
ADDED
package/dist/data.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { B as e, C as i, D as t, a as r, F as o, L as n, M as d, S as m, T as l, d as D } from "./collections-GglQdMPr.js";
|
|
2
|
+
import { D as T, a as c, T as p, b as B } from "./tree-view-Djlqyml-.js";
|
|
3
|
+
export {
|
|
4
|
+
e as BulkActionBar,
|
|
5
|
+
i as ColumnSettings,
|
|
6
|
+
t as DataGrid,
|
|
7
|
+
T as DescriptionItem,
|
|
8
|
+
c as DescriptionList,
|
|
9
|
+
r as DocumentList,
|
|
10
|
+
o as FilterBuilder,
|
|
11
|
+
n as List,
|
|
12
|
+
d as MediaGrid,
|
|
13
|
+
m as SavedViews,
|
|
14
|
+
l as Table,
|
|
15
|
+
p as Timeline,
|
|
16
|
+
B as TreeView,
|
|
17
|
+
D as distributeMasonryItems
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=data.js.map
|
package/dist/data.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export declare function DescriptionList({ className, ...props }: HTMLAttributes<HTMLDListElement>): import("react").JSX.Element;
|
|
3
|
+
export interface DescriptionItemProps {
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function DescriptionItem({ label, children, className }: DescriptionItemProps): import("react").JSX.Element;
|
package/dist/effects.cjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./motion-effects-ze3SOVGs.cjs"),t=require("./image-effects-D57JACXp.cjs");exports.BorderBeam=e.BorderBeam;exports.BotAvatar=e.BotAvatar;exports.MetalBadge=e.MetalBadge;exports.MetalFx=e.MetalFx;exports.MetalText=e.MetalText;exports.ThinkingOrb=e.ThinkingOrb;exports.ThinkingOrbStatus=e.ThinkingOrbStatus;exports.VoiceBeam=e.VoiceBeam;exports.VoiceRing=e.VoiceRing;exports.useMetalBend=e.useMetalBend;exports.useMetalTextReflection=e.useMetalTextReflection;exports.useMicrophone=e.useMicrophone;exports.useVoiceRingMicrophone=e.useVoiceRingMicrophone;exports.ImageGeneration=t.ImageGeneration;
|
|
2
|
+
//# sourceMappingURL=effects.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"effects.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|