@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,182 @@
1
+ import type {
2
+ DivSchema,
3
+ SpanSchema,
4
+ TextSchema,
5
+ ImageSchema,
6
+ IconSchema,
7
+ SeparatorSchema,
8
+ ContainerSchema,
9
+ FlexSchema,
10
+ GridSchema,
11
+ CardSchema,
12
+ TabsSchema,
13
+ ScrollAreaSchema,
14
+ ResizableSchema,
15
+ PageSchema,
16
+ } from './layout';
17
+
18
+ import type {
19
+ ButtonSchema,
20
+ InputSchema,
21
+ TextareaSchema,
22
+ SelectSchema,
23
+ CheckboxSchema,
24
+ RadioGroupSchema,
25
+ SwitchSchema,
26
+ ToggleSchema,
27
+ SliderSchema,
28
+ FileUploadSchema,
29
+ DatePickerSchema,
30
+ CalendarSchema as FormCalendarSchema,
31
+ InputOTPSchema,
32
+ FormSchema,
33
+ } from './form';
34
+
35
+ import type {
36
+ AlertSchema,
37
+ BadgeSchema,
38
+ AvatarSchema,
39
+ ListSchema,
40
+ TableSchema,
41
+ DataTableSchema,
42
+ MarkdownSchema,
43
+ TreeViewSchema,
44
+ ChartSchema,
45
+ TimelineSchema,
46
+ HtmlSchema,
47
+ StatisticSchema,
48
+ } from './data-display';
49
+
50
+ import type {
51
+ LoadingSchema,
52
+ ProgressSchema,
53
+ SkeletonSchema,
54
+ ToastSchema,
55
+ ToasterSchema,
56
+ } from './feedback';
57
+
58
+ import type {
59
+ AccordionSchema,
60
+ CollapsibleSchema,
61
+ DisclosureSchema,
62
+ } from './disclosure';
63
+
64
+ import type {
65
+ DialogSchema,
66
+ AlertDialogSchema,
67
+ SheetSchema,
68
+ DrawerSchema,
69
+ PopoverSchema,
70
+ TooltipSchema,
71
+ HoverCardSchema,
72
+ DropdownMenuSchema,
73
+ ContextMenuSchema,
74
+ } from './overlay';
75
+
76
+ import type {
77
+ HeaderBarSchema,
78
+ SidebarSchema,
79
+ BreadcrumbSchema,
80
+ PaginationSchema,
81
+ } from './navigation';
82
+
83
+ import type {
84
+ KanbanSchema,
85
+ CalendarViewSchema,
86
+ FilterBuilderSchema,
87
+ CarouselSchema,
88
+ ChatbotSchema,
89
+ } from './complex';
90
+
91
+ /**
92
+ * Registry mapping component types to their schema definitions.
93
+ * This interface is the Single Source of Truth for component type lookups.
94
+ */
95
+ export interface SchemaRegistry {
96
+ // Layout
97
+ 'div': DivSchema;
98
+ 'span': SpanSchema;
99
+ 'text': TextSchema;
100
+ 'image': ImageSchema;
101
+ 'icon': IconSchema;
102
+ 'separator': SeparatorSchema;
103
+ 'container': ContainerSchema;
104
+ 'flex': FlexSchema;
105
+ 'grid': GridSchema;
106
+ 'card': CardSchema;
107
+ 'tabs': TabsSchema;
108
+ 'scroll-area': ScrollAreaSchema;
109
+ 'resizable': ResizableSchema;
110
+ 'page': PageSchema;
111
+
112
+ // Form
113
+ 'button': ButtonSchema;
114
+ 'input': InputSchema;
115
+ 'textarea': TextareaSchema;
116
+ 'select': SelectSchema;
117
+ 'checkbox': CheckboxSchema;
118
+ 'radio-group': RadioGroupSchema;
119
+ 'switch': SwitchSchema;
120
+ 'toggle': ToggleSchema;
121
+ 'slider': SliderSchema;
122
+ 'file-upload': FileUploadSchema;
123
+ 'date-picker': DatePickerSchema;
124
+ 'calendar': FormCalendarSchema;
125
+ 'input-otp': InputOTPSchema;
126
+ 'form': FormSchema;
127
+
128
+ // Data Display
129
+ 'alert': AlertSchema;
130
+ 'badge': BadgeSchema;
131
+ 'avatar': AvatarSchema;
132
+ 'list': ListSchema;
133
+ 'table': TableSchema;
134
+ 'data-table': DataTableSchema;
135
+ 'markdown': MarkdownSchema;
136
+ 'tree-view': TreeViewSchema;
137
+ 'chart': ChartSchema;
138
+ 'timeline': TimelineSchema;
139
+ 'html': HtmlSchema;
140
+ 'statistic': StatisticSchema;
141
+
142
+ // Feedback
143
+ 'loading': LoadingSchema;
144
+ 'progress': ProgressSchema;
145
+ 'skeleton': SkeletonSchema;
146
+ 'toast': ToastSchema;
147
+ 'toaster': ToasterSchema;
148
+
149
+ // Disclosure
150
+ 'accordion': AccordionSchema;
151
+ 'collapsible': CollapsibleSchema;
152
+ 'disclosure': DisclosureSchema;
153
+
154
+ // Overlay
155
+ 'dialog': DialogSchema;
156
+ 'alert-dialog': AlertDialogSchema;
157
+ 'sheet': SheetSchema;
158
+ 'drawer': DrawerSchema;
159
+ 'popover': PopoverSchema;
160
+ 'tooltip': TooltipSchema;
161
+ 'hover-card': HoverCardSchema;
162
+ 'dropdown-menu': DropdownMenuSchema;
163
+ 'context-menu': ContextMenuSchema;
164
+
165
+ // Navigation
166
+ 'header-bar': HeaderBarSchema;
167
+ 'sidebar': SidebarSchema;
168
+ 'breadcrumb': BreadcrumbSchema;
169
+ 'pagination': PaginationSchema;
170
+
171
+ // Complex
172
+ 'kanban': KanbanSchema;
173
+ 'calendar-view': CalendarViewSchema;
174
+ 'filter-builder': FilterBuilderSchema;
175
+ 'carousel': CarouselSchema;
176
+ 'chatbot': ChatbotSchema;
177
+ }
178
+
179
+ /**
180
+ * Union of all registered component types
181
+ */
182
+ export type ComponentType = keyof SchemaRegistry;