@object-ui/types 0.3.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.
Files changed (67) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +304 -0
  3. package/dist/api-types.d.ts +451 -0
  4. package/dist/api-types.d.ts.map +1 -0
  5. package/dist/api-types.js +10 -0
  6. package/dist/app.d.ts +120 -0
  7. package/dist/app.d.ts.map +1 -0
  8. package/dist/app.js +7 -0
  9. package/dist/base.d.ts +360 -0
  10. package/dist/base.d.ts.map +1 -0
  11. package/dist/base.js +10 -0
  12. package/dist/complex.d.ts +433 -0
  13. package/dist/complex.d.ts.map +1 -0
  14. package/dist/complex.js +9 -0
  15. package/dist/crud.d.ts +457 -0
  16. package/dist/crud.d.ts.map +1 -0
  17. package/dist/crud.js +10 -0
  18. package/dist/data-display.d.ts +599 -0
  19. package/dist/data-display.d.ts.map +1 -0
  20. package/dist/data-display.js +9 -0
  21. package/dist/data.d.ts +295 -0
  22. package/dist/data.d.ts.map +1 -0
  23. package/dist/data.js +10 -0
  24. package/dist/disclosure.d.ts +107 -0
  25. package/dist/disclosure.d.ts.map +1 -0
  26. package/dist/disclosure.js +9 -0
  27. package/dist/feedback.d.ts +159 -0
  28. package/dist/feedback.d.ts.map +1 -0
  29. package/dist/feedback.js +9 -0
  30. package/dist/form.d.ts +932 -0
  31. package/dist/form.d.ts.map +1 -0
  32. package/dist/form.js +9 -0
  33. package/dist/index.d.ts +108 -0
  34. package/dist/index.d.ts.map +1 -0
  35. package/dist/index.js +48 -0
  36. package/dist/layout.d.ts +418 -0
  37. package/dist/layout.d.ts.map +1 -0
  38. package/dist/layout.js +10 -0
  39. package/dist/navigation.d.ts +224 -0
  40. package/dist/navigation.d.ts.map +1 -0
  41. package/dist/navigation.js +9 -0
  42. package/dist/objectql.d.ts +254 -0
  43. package/dist/objectql.d.ts.map +1 -0
  44. package/dist/objectql.js +10 -0
  45. package/dist/overlay.d.ts +396 -0
  46. package/dist/overlay.d.ts.map +1 -0
  47. package/dist/overlay.js +9 -0
  48. package/dist/registry.d.ts +85 -0
  49. package/dist/registry.d.ts.map +1 -0
  50. package/dist/registry.js +1 -0
  51. package/package.json +82 -0
  52. package/src/api-types.ts +464 -0
  53. package/src/app.ts +138 -0
  54. package/src/base.ts +416 -0
  55. package/src/complex.ts +465 -0
  56. package/src/crud.ts +467 -0
  57. package/src/data-display.ts +630 -0
  58. package/src/data.ts +341 -0
  59. package/src/disclosure.ts +113 -0
  60. package/src/feedback.ts +170 -0
  61. package/src/form.ts +954 -0
  62. package/src/index.ts +350 -0
  63. package/src/layout.ts +451 -0
  64. package/src/navigation.ts +235 -0
  65. package/src/objectql.ts +301 -0
  66. package/src/overlay.ts +418 -0
  67. package/src/registry.ts +182 -0
@@ -0,0 +1,396 @@
1
+ /**
2
+ * @object-ui/types - Overlay Component Schemas
3
+ *
4
+ * Type definitions for modal, dialog, and overlay components.
5
+ *
6
+ * @module overlay
7
+ * @packageDocumentation
8
+ */
9
+ import type { BaseSchema, SchemaNode } from './base';
10
+ /**
11
+ * Position type for overlays
12
+ */
13
+ export type OverlayPosition = 'top' | 'right' | 'bottom' | 'left';
14
+ /**
15
+ * Alignment type for overlays
16
+ */
17
+ export type OverlayAlignment = 'start' | 'center' | 'end';
18
+ /**
19
+ * Dialog component
20
+ */
21
+ export interface DialogSchema extends BaseSchema {
22
+ type: 'dialog';
23
+ /**
24
+ * Dialog title
25
+ */
26
+ title?: string;
27
+ /**
28
+ * Dialog description
29
+ */
30
+ description?: string;
31
+ /**
32
+ * Dialog content
33
+ */
34
+ content?: SchemaNode | SchemaNode[];
35
+ /**
36
+ * Dialog trigger (button or element that opens the dialog)
37
+ */
38
+ trigger?: SchemaNode;
39
+ /**
40
+ * Default open state
41
+ * @default false
42
+ */
43
+ defaultOpen?: boolean;
44
+ /**
45
+ * Controlled open state
46
+ */
47
+ open?: boolean;
48
+ /**
49
+ * Dialog footer content
50
+ */
51
+ footer?: SchemaNode | SchemaNode[];
52
+ /**
53
+ * Whether dialog is modal (prevents interaction with background)
54
+ * @default true
55
+ */
56
+ modal?: boolean;
57
+ /**
58
+ * Open state change handler
59
+ */
60
+ onOpenChange?: (open: boolean) => void;
61
+ }
62
+ /**
63
+ * Alert dialog (confirmation dialog)
64
+ */
65
+ export interface AlertDialogSchema extends BaseSchema {
66
+ type: 'alert-dialog';
67
+ /**
68
+ * Dialog title
69
+ */
70
+ title?: string;
71
+ /**
72
+ * Dialog description
73
+ */
74
+ description?: string;
75
+ /**
76
+ * Dialog trigger
77
+ */
78
+ trigger?: SchemaNode;
79
+ /**
80
+ * Default open state
81
+ * @default false
82
+ */
83
+ defaultOpen?: boolean;
84
+ /**
85
+ * Controlled open state
86
+ */
87
+ open?: boolean;
88
+ /**
89
+ * Cancel button label
90
+ * @default 'Cancel'
91
+ */
92
+ cancelLabel?: string;
93
+ /**
94
+ * Confirm button label
95
+ * @default 'Confirm'
96
+ */
97
+ confirmLabel?: string;
98
+ /**
99
+ * Confirm button variant
100
+ * @default 'default'
101
+ */
102
+ confirmVariant?: 'default' | 'destructive';
103
+ /**
104
+ * Confirm handler
105
+ */
106
+ onConfirm?: () => void | Promise<void>;
107
+ /**
108
+ * Cancel handler
109
+ */
110
+ onCancel?: () => void;
111
+ /**
112
+ * Open state change handler
113
+ */
114
+ onOpenChange?: (open: boolean) => void;
115
+ }
116
+ /**
117
+ * Sheet/Drawer side panel
118
+ */
119
+ export interface SheetSchema extends BaseSchema {
120
+ type: 'sheet';
121
+ /**
122
+ * Sheet title
123
+ */
124
+ title?: string;
125
+ /**
126
+ * Sheet description
127
+ */
128
+ description?: string;
129
+ /**
130
+ * Sheet content
131
+ */
132
+ content?: SchemaNode | SchemaNode[];
133
+ /**
134
+ * Sheet trigger
135
+ */
136
+ trigger?: SchemaNode;
137
+ /**
138
+ * Default open state
139
+ * @default false
140
+ */
141
+ defaultOpen?: boolean;
142
+ /**
143
+ * Controlled open state
144
+ */
145
+ open?: boolean;
146
+ /**
147
+ * Sheet side
148
+ * @default 'right'
149
+ */
150
+ side?: OverlayPosition;
151
+ /**
152
+ * Sheet footer content
153
+ */
154
+ footer?: SchemaNode | SchemaNode[];
155
+ /**
156
+ * Open state change handler
157
+ */
158
+ onOpenChange?: (open: boolean) => void;
159
+ }
160
+ /**
161
+ * Drawer component (alternative name for Sheet)
162
+ */
163
+ export interface DrawerSchema extends BaseSchema {
164
+ type: 'drawer';
165
+ /**
166
+ * Drawer title
167
+ */
168
+ title?: string;
169
+ /**
170
+ * Drawer description
171
+ */
172
+ description?: string;
173
+ /**
174
+ * Drawer content
175
+ */
176
+ content?: SchemaNode | SchemaNode[];
177
+ /**
178
+ * Drawer trigger
179
+ */
180
+ trigger?: SchemaNode;
181
+ /**
182
+ * Default open state
183
+ * @default false
184
+ */
185
+ defaultOpen?: boolean;
186
+ /**
187
+ * Controlled open state
188
+ */
189
+ open?: boolean;
190
+ /**
191
+ * Drawer direction
192
+ * @default 'right'
193
+ */
194
+ direction?: OverlayPosition;
195
+ /**
196
+ * Open state change handler
197
+ */
198
+ onOpenChange?: (open: boolean) => void;
199
+ }
200
+ /**
201
+ * Popover component
202
+ */
203
+ export interface PopoverSchema extends BaseSchema {
204
+ type: 'popover';
205
+ /**
206
+ * Popover content
207
+ */
208
+ content: SchemaNode | SchemaNode[];
209
+ /**
210
+ * Popover trigger
211
+ */
212
+ trigger: SchemaNode;
213
+ /**
214
+ * Default open state
215
+ * @default false
216
+ */
217
+ defaultOpen?: boolean;
218
+ /**
219
+ * Controlled open state
220
+ */
221
+ open?: boolean;
222
+ /**
223
+ * Popover side
224
+ * @default 'bottom'
225
+ */
226
+ side?: OverlayPosition;
227
+ /**
228
+ * Popover alignment
229
+ * @default 'center'
230
+ */
231
+ align?: OverlayAlignment;
232
+ /**
233
+ * Open state change handler
234
+ */
235
+ onOpenChange?: (open: boolean) => void;
236
+ }
237
+ /**
238
+ * Tooltip component
239
+ */
240
+ export interface TooltipSchema extends BaseSchema {
241
+ type: 'tooltip';
242
+ /**
243
+ * Tooltip content/text
244
+ */
245
+ content: string | SchemaNode;
246
+ /**
247
+ * Element to attach tooltip to
248
+ */
249
+ children: SchemaNode;
250
+ /**
251
+ * Tooltip side
252
+ * @default 'top'
253
+ */
254
+ side?: OverlayPosition;
255
+ /**
256
+ * Tooltip alignment
257
+ * @default 'center'
258
+ */
259
+ align?: OverlayAlignment;
260
+ /**
261
+ * Delay before showing (ms)
262
+ * @default 200
263
+ */
264
+ delayDuration?: number;
265
+ }
266
+ /**
267
+ * Hover card component
268
+ */
269
+ export interface HoverCardSchema extends BaseSchema {
270
+ type: 'hover-card';
271
+ /**
272
+ * Hover card content
273
+ */
274
+ content: SchemaNode | SchemaNode[];
275
+ /**
276
+ * Hover trigger element
277
+ */
278
+ trigger: SchemaNode;
279
+ /**
280
+ * Default open state
281
+ * @default false
282
+ */
283
+ defaultOpen?: boolean;
284
+ /**
285
+ * Controlled open state
286
+ */
287
+ open?: boolean;
288
+ /**
289
+ * Hover card side
290
+ * @default 'bottom'
291
+ */
292
+ side?: OverlayPosition;
293
+ /**
294
+ * Open delay (ms)
295
+ * @default 200
296
+ */
297
+ openDelay?: number;
298
+ /**
299
+ * Close delay (ms)
300
+ * @default 300
301
+ */
302
+ closeDelay?: number;
303
+ /**
304
+ * Open state change handler
305
+ */
306
+ onOpenChange?: (open: boolean) => void;
307
+ }
308
+ /**
309
+ * Menu item
310
+ */
311
+ export interface MenuItem {
312
+ /**
313
+ * Menu item label
314
+ */
315
+ label: string;
316
+ /**
317
+ * Menu item icon
318
+ */
319
+ icon?: string;
320
+ /**
321
+ * Whether item is disabled
322
+ */
323
+ disabled?: boolean;
324
+ /**
325
+ * Click handler
326
+ */
327
+ onClick?: () => void;
328
+ /**
329
+ * Keyboard shortcut
330
+ */
331
+ shortcut?: string;
332
+ /**
333
+ * Submenu items
334
+ */
335
+ children?: MenuItem[];
336
+ /**
337
+ * Separator (renders as divider)
338
+ */
339
+ separator?: boolean;
340
+ }
341
+ /**
342
+ * Dropdown menu component
343
+ */
344
+ export interface DropdownMenuSchema extends BaseSchema {
345
+ type: 'dropdown-menu';
346
+ /**
347
+ * Menu items
348
+ */
349
+ items: MenuItem[];
350
+ /**
351
+ * Menu trigger
352
+ */
353
+ trigger: SchemaNode;
354
+ /**
355
+ * Default open state
356
+ * @default false
357
+ */
358
+ defaultOpen?: boolean;
359
+ /**
360
+ * Controlled open state
361
+ */
362
+ open?: boolean;
363
+ /**
364
+ * Menu side
365
+ * @default 'bottom'
366
+ */
367
+ side?: OverlayPosition;
368
+ /**
369
+ * Menu alignment
370
+ * @default 'start'
371
+ */
372
+ align?: OverlayAlignment;
373
+ /**
374
+ * Open state change handler
375
+ */
376
+ onOpenChange?: (open: boolean) => void;
377
+ }
378
+ /**
379
+ * Context menu component
380
+ */
381
+ export interface ContextMenuSchema extends BaseSchema {
382
+ type: 'context-menu';
383
+ /**
384
+ * Menu items
385
+ */
386
+ items: MenuItem[];
387
+ /**
388
+ * Element to attach context menu to
389
+ */
390
+ children: SchemaNode | SchemaNode[];
391
+ }
392
+ /**
393
+ * Union type of all overlay schemas
394
+ */
395
+ export type OverlaySchema = DialogSchema | AlertDialogSchema | SheetSchema | DrawerSchema | PopoverSchema | TooltipSchema | HoverCardSchema | DropdownMenuSchema | ContextMenuSchema;
396
+ //# sourceMappingURL=overlay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../src/overlay.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AAElE;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,YAAa,SAAQ,U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al, dialog, and overlay components.
5
+ *
6
+ * @module overlay
7
+ * @packageDocumentation
8
+ */
9
+ export {};
@@ -0,0 +1,85 @@
1
+ import type { DivSchema, SpanSchema, TextSchema, ImageSchema, IconSchema, SeparatorSchema, ContainerSchema, FlexSchema, GridSchema, CardSchema, TabsSchema, ScrollAreaSchema, ResizableSchema, PageSchema } from './layout';
2
+ import type { ButtonSchema, InputSchema, TextareaSchema, SelectSchema, CheckboxSchema, RadioGroupSchema, SwitchSchema, ToggleSchema, SliderSchema, FileUploadSchema, DatePickerSchema, CalendarSchema as FormCalendarSchema, InputOTPSchema, FormSchema } from './form';
3
+ import type { AlertSchema, BadgeSchema, AvatarSchema, ListSchema, TableSchema, DataTableSchema, MarkdownSchema, TreeViewSchema, ChartSchema, TimelineSchema, HtmlSchema, StatisticSchema } from './data-display';
4
+ import type { LoadingSchema, ProgressSchema, SkeletonSchema, ToastSchema, ToasterSchema } from './feedback';
5
+ import type { AccordionSchema, CollapsibleSchema, DisclosureSchema } from './disclosure';
6
+ import type { DialogSchema, AlertDialogSchema, SheetSchema, DrawerSchema, PopoverSchema, TooltipSchema, HoverCardSchema, DropdownMenuSchema, ContextMenuSchema } from './overlay';
7
+ import type { HeaderBarSchema, SidebarSchema, BreadcrumbSchema, PaginationSchema } from './navigation';
8
+ import type { KanbanSchema, CalendarViewSchema, FilterBuilderSchema, CarouselSchema, ChatbotSchema } from './complex';
9
+ /**
10
+ * Registry mapping component types to their schema definitions.
11
+ * This interface is the Single Source of Truth for component type lookups.
12
+ */
13
+ export interface SchemaRegistry {
14
+ 'div': DivSchema;
15
+ 'span': SpanSchema;
16
+ 'text': TextSchema;
17
+ 'image': ImageSchema;
18
+ 'icon': IconSchema;
19
+ 'separator': SeparatorSchema;
20
+ 'container': ContainerSchema;
21
+ 'flex': FlexSchema;
22
+ 'grid': GridSchema;
23
+ 'card': CardSchema;
24
+ 'tabs': TabsSchema;
25
+ 'scroll-area': ScrollAreaSchema;
26
+ 'resizable': ResizableSchema;
27
+ 'page': PageSchema;
28
+ 'button': ButtonSchema;
29
+ 'input': InputSchema;
30
+ 'textarea': TextareaSchema;
31
+ 'select': SelectSchema;
32
+ 'checkbox': CheckboxSchema;
33
+ 'radio-group': RadioGroupSchema;
34
+ 'switch': SwitchSchema;
35
+ 'toggle': ToggleSchema;
36
+ 'slider': SliderSchema;
37
+ 'file-upload': FileUploadSchema;
38
+ 'date-picker': DatePickerSchema;
39
+ 'calendar': FormCalendarSchema;
40
+ 'input-otp': InputOTPSchema;
41
+ 'form': FormSchema;
42
+ 'alert': AlertSchema;
43
+ 'badge': BadgeSchema;
44
+ 'avatar': AvatarSchema;
45
+ 'list': ListSchema;
46
+ 'table': TableSchema;
47
+ 'data-table': DataTableSchema;
48
+ 'markdown': MarkdownSchema;
49
+ 'tree-view': TreeViewSchema;
50
+ 'chart': ChartSchema;
51
+ 'timeline': TimelineSchema;
52
+ 'html': HtmlSchema;
53
+ 'statistic': StatisticSchema;
54
+ 'loading': LoadingSchema;
55
+ 'progress': ProgressSchema;
56
+ 'skeleton': SkeletonSchema;
57
+ 'toast': ToastSchema;
58
+ 'toaster': ToasterSchema;
59
+ 'accordion': AccordionSchema;
60
+ 'collapsible': CollapsibleSchema;
61
+ 'disclosure': DisclosureSchema;
62
+ 'dialog': DialogSchema;
63
+ 'alert-dialog': AlertDialogSchema;
64
+ 'sheet': SheetSchema;
65
+ 'drawer': DrawerSchema;
66
+ 'popover': PopoverSchema;
67
+ 'tooltip': TooltipSchema;
68
+ 'hover-card': HoverCardSchema;
69
+ 'dropdown-menu': DropdownMenuSchema;
70
+ 'context-menu': ContextMenuSchema;
71
+ 'header-bar': HeaderBarSchema;
72
+ 'sidebar': SidebarSchema;
73
+ 'breadcrumb': BreadcrumbSchema;
74
+ 'pagination': PaginationSchema;
75
+ 'kanban': KanbanSchema;
76
+ 'calendar-view': CalendarViewSchema;
77
+ 'filter-builder': FilterBuilderSchema;
78
+ 'carousel': CarouselSchema;
79
+ 'chatbot': ChatbotSchema;
80
+ }
81
+ /**
82
+ * Union of all registered component types
83
+ */
84
+ export type ComponentType = keyof SchemaRegistry;
85
+ //# sourceMappingURL=registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,UAAU,EACV,UAAU,EACV,WAAW,EACX,UAAU,EACV,eAAe,EACf,eAAe,EACf,UAAU,EACV,UAAU,EACV,UAAU,EACV,UAAU,EACV,gBAAgB,EAChB,eAAe,EACf,UAAU,EACX,MAAM,UAAU,CAAC;AAElB,OAAO,KAAK,EACV,YAAY,EACZ,WAAW,EACX,cAAc,EACd,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,IAAI,kBAAkB,EACpC,cAAc,EACd,UAAU,EACX,MAAM,QAAQ,CAAC;AAEhB,OAAO,KAAK,EACV,WAAW,EACX,WAAW,EACX,YAAY,EACZ,UAAU,EACV,WAAW,EACX,eAAe,EACf,cAAc,EACd,cAAc,EACd,WAAW,EACX,cAAc,EACd,UAAU,EACV,eAAe,EAChB,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,cAAc,EACd,WAAW,EACX,aAAa,EACd,MAAM,YAAY,CAAC;AAEpB,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EACV,YAAY,EACZ,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,aAAa,EACb,aAAa,EACb,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,WAAW,CAAC;AAEnB,OAAO,KAAK,EACV,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,E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,CAAC;IAC5B,OAAO,EAAE,WAAW,CAAC;IACrB,UAAU,EAAE,cAAc,CAAC;IAC3B,MAAM,EAAE,UAAU,CAAC;IACnB,WAAW,EAAE,eAAe,CAAC;IAG7B,SAAS,EAAE,aAAa,CAAC;IACzB,UAAU,EAAE,cAAc,CAAC;IAC3B,UAAU,EAAE,cAAc,CAAC;IAC3B,OAAO,EAAE,WAAW,CAAC;IACrB,SAAS,EAAE,aAAa,CAAC;IAGzB,WAAW,EAAE,eAAe,CAAC;IAC7B,aAAa,EAAE,iBAAiB,CAAC;IACjC,YAAY,EAAE,gBAAgB,CAAC;IAG/B,QAAQ,EAAE,YAAY,CAAC;IACvB,cAAc,EAAE,iBAAiB,CAAC;IAClC,OAAO,EAAE,WAAW,CAAC;IACrB,QAAQ,EAAE,YAAY,CAAC;IACvB,SAAS,EAAE,aAAa,CAAC;IACzB,SAAS,EAAE,aAAa,CAAC;IACzB,YAAY,EAAE,eAAe,CAAC;IAC9B,eAAe,EAAE,kBAAkB,CAAC;IACpC,cAAc,EAAE,iBAAiB,CAAC;IAGlC,YAAY,EAAE,eAAe,CAAC;IAC9B,SAAS,EAAE,aAAa,CAAC;IACzB,YAAY,EAAE,gBAAgB,CAAC;IAC/B,YAAY,EAAE,gBAAgB,CAAC;IAG/B,QAAQ,EAAE,YAAY,CAAC;IACvB,eAAe,EAAE,kBAAkB,CAAC;IACpC,gBAAgB,EAAE,mBAAmB,CAAC;IACtC,UAAU,EAAE,cAAc,CAAC;IAC3B,SAAS,EAAE,aAAa,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,cAAc,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
package/package.json ADDED
@@ -0,0 +1,82 @@
1
+ {
2
+ "name": "@object-ui/types",
3
+ "version": "0.3.0",
4
+ "description": "Pure TypeScript type definitions for Object UI - The Protocol Layer",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js",
13
+ "require": "./dist/index.cjs"
14
+ },
15
+ "./base": {
16
+ "types": "./dist/base.d.ts",
17
+ "import": "./dist/base.js"
18
+ },
19
+ "./layout": {
20
+ "types": "./dist/layout.d.ts",
21
+ "import": "./dist/layout.js"
22
+ },
23
+ "./form": {
24
+ "types": "./dist/form.d.ts",
25
+ "import": "./dist/form.js"
26
+ },
27
+ "./data-display": {
28
+ "types": "./dist/data-display.d.ts",
29
+ "import": "./dist/data-display.js"
30
+ },
31
+ "./feedback": {
32
+ "types": "./dist/feedback.d.ts",
33
+ "import": "./dist/feedback.js"
34
+ },
35
+ "./overlay": {
36
+ "types": "./dist/overlay.d.ts",
37
+ "import": "./dist/overlay.js"
38
+ },
39
+ "./navigation": {
40
+ "types": "./dist/navigation.d.ts",
41
+ "import": "./dist/navigation.js"
42
+ },
43
+ "./complex": {
44
+ "types": "./dist/complex.d.ts",
45
+ "import": "./dist/complex.js"
46
+ },
47
+ "./data": {
48
+ "types": "./dist/data.d.ts",
49
+ "import": "./dist/data.js"
50
+ }
51
+ },
52
+ "files": [
53
+ "dist",
54
+ "src",
55
+ "README.md",
56
+ "LICENSE"
57
+ ],
58
+ "keywords": [
59
+ "object-ui",
60
+ "types",
61
+ "typescript",
62
+ "schema",
63
+ "json-schema",
64
+ "protocol"
65
+ ],
66
+ "author": "Object UI Team",
67
+ "license": "MIT",
68
+ "repository": {
69
+ "type": "git",
70
+ "url": "https://github.com/objectstack-ai/objectui.git",
71
+ "directory": "packages/types"
72
+ },
73
+ "devDependencies": {
74
+ "typescript": "^5.9.3"
75
+ },
76
+ "scripts": {
77
+ "build": "tsc",
78
+ "clean": "rm -rf dist",
79
+ "type-check": "tsc --noEmit",
80
+ "lint": "eslint ."
81
+ }
82
+ }