pxengine 0.1.11 → 0.1.13

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 (186) hide show
  1. package/dist/index.cjs +205 -120
  2. package/dist/index.d.cts +1 -0
  3. package/dist/index.d.ts +1 -0
  4. package/dist/index.js +205 -120
  5. package/dist/registry.json +1200 -288
  6. package/package.json +9 -4
  7. package/config/tailwind-preset.js +0 -106
  8. package/src/atoms/AccordionAtom.tsx +0 -44
  9. package/src/atoms/AlertAtom.tsx +0 -46
  10. package/src/atoms/AlertDialogAtom.tsx +0 -66
  11. package/src/atoms/AspectRatioAtom.tsx +0 -27
  12. package/src/atoms/AvatarAtom.tsx +0 -20
  13. package/src/atoms/BadgeAtom.tsx +0 -33
  14. package/src/atoms/BreadcrumbAtom.tsx +0 -36
  15. package/src/atoms/ButtonAtom.tsx +0 -63
  16. package/src/atoms/CalendarAtom.tsx +0 -24
  17. package/src/atoms/CardAtom.tsx +0 -64
  18. package/src/atoms/CarouselAtom.tsx +0 -40
  19. package/src/atoms/ChartAtom.tsx +0 -190
  20. package/src/atoms/CheckboxAtom.tsx +0 -33
  21. package/src/atoms/CollapsibleAtom.tsx +0 -44
  22. package/src/atoms/CommandAtom.tsx +0 -46
  23. package/src/atoms/ContextMenuAtom.tsx +0 -49
  24. package/src/atoms/DialogAtom.tsx +0 -68
  25. package/src/atoms/DrawerAtom.tsx +0 -49
  26. package/src/atoms/DropdownMenuAtom.tsx +0 -49
  27. package/src/atoms/FormInputAtom.tsx +0 -101
  28. package/src/atoms/FormSelectAtom.tsx +0 -110
  29. package/src/atoms/FormTextareaAtom.tsx +0 -93
  30. package/src/atoms/InputAtom.tsx +0 -188
  31. package/src/atoms/InputOTPAtom.tsx +0 -49
  32. package/src/atoms/KbdAtom.tsx +0 -25
  33. package/src/atoms/LabelAtom.tsx +0 -23
  34. package/src/atoms/LayoutAtom.tsx +0 -45
  35. package/src/atoms/PaginationAtom.tsx +0 -49
  36. package/src/atoms/PopoverAtom.tsx +0 -40
  37. package/src/atoms/ProgressAtom.tsx +0 -15
  38. package/src/atoms/RadioGroupAtom.tsx +0 -31
  39. package/src/atoms/RatingAtom.tsx +0 -37
  40. package/src/atoms/ResizableAtom.tsx +0 -51
  41. package/src/atoms/ScrollAreaAtom.tsx +0 -31
  42. package/src/atoms/SeparatorAtom.tsx +0 -16
  43. package/src/atoms/SheetAtom.tsx +0 -72
  44. package/src/atoms/SkeletonAtom.tsx +0 -22
  45. package/src/atoms/SliderAtom.tsx +0 -32
  46. package/src/atoms/SpinnerAtom.tsx +0 -26
  47. package/src/atoms/SwitchAtom.tsx +0 -32
  48. package/src/atoms/TableAtom.tsx +0 -58
  49. package/src/atoms/TabsAtom.tsx +0 -40
  50. package/src/atoms/TextAtom.tsx +0 -35
  51. package/src/atoms/TextareaAtom.tsx +0 -42
  52. package/src/atoms/TimelineAtom.tsx +0 -77
  53. package/src/atoms/ToggleAtom.tsx +0 -36
  54. package/src/atoms/TooltipAtom.tsx +0 -39
  55. package/src/atoms/VideoAtom.tsx +0 -34
  56. package/src/atoms/index.ts +0 -49
  57. package/src/components/index.ts +0 -178
  58. package/src/components/ui/accordion.tsx +0 -56
  59. package/src/components/ui/alert-dialog.tsx +0 -139
  60. package/src/components/ui/alert.tsx +0 -59
  61. package/src/components/ui/aspect-ratio.tsx +0 -5
  62. package/src/components/ui/avatar.tsx +0 -50
  63. package/src/components/ui/badge.tsx +0 -36
  64. package/src/components/ui/breadcrumb.tsx +0 -115
  65. package/src/components/ui/button-group.tsx +0 -83
  66. package/src/components/ui/button.tsx +0 -56
  67. package/src/components/ui/calendar.tsx +0 -213
  68. package/src/components/ui/card.tsx +0 -79
  69. package/src/components/ui/carousel.tsx +0 -260
  70. package/src/components/ui/chart.tsx +0 -367
  71. package/src/components/ui/checkbox.tsx +0 -28
  72. package/src/components/ui/collapsible.tsx +0 -11
  73. package/src/components/ui/command.tsx +0 -153
  74. package/src/components/ui/context-menu.tsx +0 -198
  75. package/src/components/ui/dialog.tsx +0 -122
  76. package/src/components/ui/drawer.tsx +0 -116
  77. package/src/components/ui/dropdown-menu.tsx +0 -200
  78. package/src/components/ui/empty.tsx +0 -104
  79. package/src/components/ui/field.tsx +0 -244
  80. package/src/components/ui/form.tsx +0 -176
  81. package/src/components/ui/hover-card.tsx +0 -27
  82. package/src/components/ui/index.ts +0 -54
  83. package/src/components/ui/input-group.tsx +0 -168
  84. package/src/components/ui/input-otp.tsx +0 -69
  85. package/src/components/ui/input.tsx +0 -22
  86. package/src/components/ui/item.tsx +0 -193
  87. package/src/components/ui/kbd.tsx +0 -28
  88. package/src/components/ui/label.tsx +0 -26
  89. package/src/components/ui/menubar.tsx +0 -254
  90. package/src/components/ui/navigation-menu.tsx +0 -128
  91. package/src/components/ui/pagination.tsx +0 -117
  92. package/src/components/ui/popover.tsx +0 -29
  93. package/src/components/ui/progress.tsx +0 -28
  94. package/src/components/ui/radio-group.tsx +0 -42
  95. package/src/components/ui/resizable.tsx +0 -44
  96. package/src/components/ui/scroll-area.tsx +0 -46
  97. package/src/components/ui/select.tsx +0 -160
  98. package/src/components/ui/separator.tsx +0 -29
  99. package/src/components/ui/sheet.tsx +0 -140
  100. package/src/components/ui/sidebar.tsx +0 -771
  101. package/src/components/ui/skeleton.tsx +0 -15
  102. package/src/components/ui/slider.tsx +0 -26
  103. package/src/components/ui/sonner.tsx +0 -45
  104. package/src/components/ui/spinner.tsx +0 -16
  105. package/src/components/ui/switch.tsx +0 -27
  106. package/src/components/ui/table.tsx +0 -117
  107. package/src/components/ui/tabs.tsx +0 -53
  108. package/src/components/ui/textarea.tsx +0 -22
  109. package/src/components/ui/toggle-group.tsx +0 -61
  110. package/src/components/ui/toggle.tsx +0 -43
  111. package/src/components/ui/tooltip.tsx +0 -30
  112. package/src/hooks/use-mobile.tsx +0 -19
  113. package/src/index.ts +0 -24
  114. package/src/lib/countries.ts +0 -203
  115. package/src/lib/index.ts +0 -2
  116. package/src/lib/utils.ts +0 -15
  117. package/src/lib/validators/index.ts +0 -1
  118. package/src/lib/validators/theme.ts +0 -148
  119. package/src/molecules/creator-discovery/AudienceDemographicsCard/AudienceDemographicsCard.tsx +0 -44
  120. package/src/molecules/creator-discovery/AudienceDemographicsCard/index.ts +0 -1
  121. package/src/molecules/creator-discovery/AudienceMetricCard/AudienceMetricCard.tsx +0 -50
  122. package/src/molecules/creator-discovery/AudienceMetricCard/index.ts +0 -1
  123. package/src/molecules/creator-discovery/BrandAffinityGroup/BrandAffinityGroup.tsx +0 -36
  124. package/src/molecules/creator-discovery/BrandAffinityGroup/index.ts +0 -1
  125. package/src/molecules/creator-discovery/CampaignSeedCard/CampaignSeedCard.tsx +0 -123
  126. package/src/molecules/creator-discovery/CampaignSeedCard/CampaignSeedCard.types.ts +0 -13
  127. package/src/molecules/creator-discovery/CampaignSeedCard/index.ts +0 -2
  128. package/src/molecules/creator-discovery/ContentPreviewGallery/ContentPreviewGallery.tsx +0 -41
  129. package/src/molecules/creator-discovery/ContentPreviewGallery/index.ts +0 -1
  130. package/src/molecules/creator-discovery/CreatorActionHeader/CreatorActionHeader.tsx +0 -77
  131. package/src/molecules/creator-discovery/CreatorActionHeader/index.ts +0 -1
  132. package/src/molecules/creator-discovery/CreatorGridCard/CreatorGridCard.tsx +0 -104
  133. package/src/molecules/creator-discovery/CreatorGridCard/index.ts +0 -1
  134. package/src/molecules/creator-discovery/CreatorProfileSummary/CreatorProfileSummary.tsx +0 -65
  135. package/src/molecules/creator-discovery/CreatorProfileSummary/index.ts +0 -1
  136. package/src/molecules/creator-discovery/GrowthChartCard/GrowthChartCard.tsx +0 -58
  137. package/src/molecules/creator-discovery/GrowthChartCard/index.ts +0 -1
  138. package/src/molecules/creator-discovery/MCQCard/MCQCard.tsx +0 -165
  139. package/src/molecules/creator-discovery/MCQCard/MCQCard.types.ts +0 -71
  140. package/src/molecules/creator-discovery/MCQCard/index.ts +0 -2
  141. package/src/molecules/creator-discovery/PlatformIconGroup/PlatformIconGroup.tsx +0 -72
  142. package/src/molecules/creator-discovery/PlatformIconGroup/index.ts +0 -1
  143. package/src/molecules/creator-discovery/SearchSpecCard/CustomFieldRenderers.tsx +0 -334
  144. package/src/molecules/creator-discovery/SearchSpecCard/SearchSpecCard.tsx +0 -111
  145. package/src/molecules/creator-discovery/SearchSpecCard/SearchSpecCard.types.ts +0 -18
  146. package/src/molecules/creator-discovery/SearchSpecCard/index.ts +0 -3
  147. package/src/molecules/creator-discovery/TopPostsGrid/TopPostsGrid.tsx +0 -49
  148. package/src/molecules/creator-discovery/TopPostsGrid/index.ts +0 -1
  149. package/src/molecules/creator-discovery/index.ts +0 -13
  150. package/src/molecules/generic/ActionButton/ActionButton.tsx +0 -137
  151. package/src/molecules/generic/ActionButton/ActionButton.types.ts +0 -68
  152. package/src/molecules/generic/ActionButton/index.ts +0 -2
  153. package/src/molecules/generic/DataGrid/DataGrid.tsx +0 -102
  154. package/src/molecules/generic/DataGrid/index.ts +0 -1
  155. package/src/molecules/generic/EditableField/EditableField.tsx +0 -229
  156. package/src/molecules/generic/EditableField/EditableField.types.ts +0 -73
  157. package/src/molecules/generic/EditableField/index.ts +0 -2
  158. package/src/molecules/generic/EmptyState/EmptyState.tsx +0 -61
  159. package/src/molecules/generic/EmptyState/index.ts +0 -1
  160. package/src/molecules/generic/FileUpload/FileUpload.tsx +0 -62
  161. package/src/molecules/generic/FileUpload/index.ts +0 -1
  162. package/src/molecules/generic/FilterBar/FilterBar.tsx +0 -54
  163. package/src/molecules/generic/FilterBar/index.ts +0 -1
  164. package/src/molecules/generic/FormCard/FormCard.tsx +0 -136
  165. package/src/molecules/generic/FormCard/FormCard.types.ts +0 -93
  166. package/src/molecules/generic/FormCard/index.ts +0 -2
  167. package/src/molecules/generic/LoadingOverlay/LoadingOverlay.tsx +0 -39
  168. package/src/molecules/generic/LoadingOverlay/index.ts +0 -1
  169. package/src/molecules/generic/NotificationList/NotificationList.tsx +0 -80
  170. package/src/molecules/generic/NotificationList/index.ts +0 -1
  171. package/src/molecules/generic/StatsGrid/StatsGrid.tsx +0 -80
  172. package/src/molecules/generic/StatsGrid/index.ts +0 -1
  173. package/src/molecules/generic/StepWizard/StepWizard.tsx +0 -67
  174. package/src/molecules/generic/StepWizard/index.ts +0 -1
  175. package/src/molecules/generic/TagCloud/TagCloud.tsx +0 -32
  176. package/src/molecules/generic/TagCloud/index.ts +0 -1
  177. package/src/molecules/generic/index.ts +0 -12
  178. package/src/molecules/index.ts +0 -2
  179. package/src/render/PXEngineRenderer.tsx +0 -416
  180. package/src/render/index.ts +0 -1
  181. package/src/styles/globals.css +0 -146
  182. package/src/types/atoms.ts +0 -449
  183. package/src/types/common.ts +0 -116
  184. package/src/types/index.ts +0 -3
  185. package/src/types/molecules.ts +0 -279
  186. package/src/types/schema.ts +0 -12
@@ -1,449 +0,0 @@
1
- import type { FormInputAtomType } from "../atoms/FormInputAtom";
2
- import type { FormSelectAtomType } from "../atoms/FormSelectAtom";
3
- import type { FormTextareaAtomType } from "../atoms/FormTextareaAtom";
4
-
5
- export type LayoutDirection = "vertical" | "horizontal" | "grid";
6
- export type GapSize = "none" | "sm" | "md" | "lg" | "xl";
7
- export type TextVariant = "h1" | "h2" | "h3" | "h4" | "p" | "small" | "muted" | "label";
8
- export type ButtonVariant = "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | "purple" | "gradient";
9
- export type ButtonSize = "default" | "sm" | "lg" | "icon" | "xl";
10
- export type InputType = "text" | "email" | "password" | "number" | "search" | "tel" | "url" | "textarea" | "select" | "slider" | "checkbox" | "switch" | "radio" | "otp" | "date" | "dropdown";
11
-
12
- export interface BaseAtom {
13
- id: string;
14
- type: string;
15
- className?: string;
16
- }
17
-
18
- // ============================================================================
19
- // FORM ATOMS
20
- // ============================================================================
21
-
22
- export interface ButtonAtomType extends BaseAtom {
23
- type: "button";
24
- label: string;
25
- variant?: ButtonVariant;
26
- size?: ButtonSize;
27
- action?: string;
28
- disabled?: boolean;
29
- isLoading?: boolean;
30
- }
31
-
32
- export interface InputAtomType extends BaseAtom {
33
- type: "input";
34
- inputType: InputType;
35
- label?: string;
36
- placeholder?: string;
37
- defaultValue?: any;
38
- required?: boolean;
39
- disabled?: boolean;
40
- options?: Array<{ label: string; value: string }>;
41
- config?: Record<string, any>;
42
- }
43
-
44
- export interface ToggleAtomType extends BaseAtom {
45
- type: "toggle";
46
- label: string;
47
- pressed?: boolean;
48
- disabled?: boolean;
49
- size?: "sm" | "md" | "lg";
50
- variant?: "default" | "outline";
51
- }
52
-
53
- export interface CheckboxAtomType extends BaseAtom {
54
- type: "checkbox";
55
- label?: string;
56
- checked?: boolean;
57
- disabled?: boolean;
58
- }
59
-
60
- export interface SwitchAtomType extends BaseAtom {
61
- type: "switch";
62
- label?: string;
63
- checked?: boolean;
64
- disabled?: boolean;
65
- }
66
-
67
- export interface LabelAtomType extends BaseAtom {
68
- type: "label";
69
- content: string;
70
- htmlFor?: string;
71
- }
72
-
73
- export interface SliderAtomType extends BaseAtom {
74
- type: "slider";
75
- defaultValue?: number[];
76
- max?: number;
77
- min?: number;
78
- step?: number;
79
- disabled?: boolean;
80
- }
81
-
82
- export interface RadioGroupAtomType extends BaseAtom {
83
- type: "radio-group";
84
- options: Array<{ label: string; value: string }>;
85
- defaultValue?: string;
86
- disabled?: boolean;
87
- }
88
-
89
- export interface DropdownMenuAtomType extends BaseAtom {
90
- type: "dropdown-menu";
91
- trigger: any;
92
- items: Array<{
93
- label: string;
94
- value: string;
95
- icon?: string;
96
- action?: string;
97
- disabled?: boolean;
98
- isDestructive?: boolean;
99
- }>;
100
- }
101
-
102
- // ============================================================================
103
- // LAYOUT & DISPLAY ATOMS
104
- // ============================================================================
105
-
106
- export interface TextAtomType extends BaseAtom {
107
- type: "text";
108
- content: string;
109
- variant: TextVariant;
110
- }
111
-
112
- export interface LayoutAtomType extends BaseAtom {
113
- type: "layout";
114
- direction: LayoutDirection;
115
- gap?: GapSize;
116
- children: any[]; // Recursive
117
- }
118
-
119
- export interface CardAtomType extends BaseAtom {
120
- type: "card";
121
- title?: string;
122
- description?: string;
123
- children: any[];
124
- footer?: any[];
125
- }
126
-
127
- export interface TabsAtomType extends BaseAtom {
128
- type: "tabs";
129
- defaultValue: string;
130
- tabs: Array<{
131
- value: string;
132
- label: string;
133
- content: any[];
134
- }>;
135
- }
136
-
137
- export interface AccordionAtomType extends BaseAtom {
138
- type: "accordion";
139
- items: Array<{
140
- value: string;
141
- trigger: string;
142
- content: any[];
143
- }>;
144
- }
145
-
146
- export interface SeparatorAtomType extends BaseAtom {
147
- type: "separator";
148
- orientation?: "horizontal" | "vertical";
149
- }
150
-
151
- export interface KbdAtomType extends BaseAtom {
152
- type: "kbd";
153
- keys: string[];
154
- }
155
-
156
- export interface RatingAtomType extends BaseAtom {
157
- type: "rating";
158
- value: number;
159
- max?: number;
160
- readonly?: boolean;
161
- }
162
-
163
- export interface ScrollAreaAtomType extends BaseAtom {
164
- type: "scroll-area";
165
- maxHeight?: string;
166
- children: any[];
167
- }
168
-
169
- // ============================================================================
170
- // DATA DISPLAY ATOMS
171
- // ============================================================================
172
-
173
- export interface AvatarAtomType extends BaseAtom {
174
- type: "avatar";
175
- src?: string;
176
- fallback: string;
177
- alt?: string;
178
- }
179
-
180
- export interface BadgeAtomType extends BaseAtom {
181
- type: "badge";
182
- label: string;
183
- variant?: "default" | "secondary" | "destructive" | "outline" | "purple" | "green";
184
- }
185
-
186
- export interface ProgressAtomType extends BaseAtom {
187
- type: "progress";
188
- value: number; // 0 to 100
189
- }
190
-
191
- export interface TableAtomType extends BaseAtom {
192
- type: "table";
193
- headers: string[];
194
- rows: any[][];
195
- }
196
-
197
- export interface CarouselAtomType extends BaseAtom {
198
- type: "carousel";
199
- items: any[][]; // Array of children per slide
200
- }
201
-
202
- export interface AlertAtomType extends BaseAtom {
203
- type: "alert";
204
- title: string;
205
- description?: string;
206
- variant?: "default" | "destructive" | "warning" | "info" | "success";
207
- }
208
-
209
- // ============================================================================
210
- // OVERLAY ATOMS
211
- // ============================================================================
212
-
213
- export interface TooltipAtomType extends BaseAtom {
214
- type: "tooltip";
215
- content: string;
216
- children: any[];
217
- }
218
-
219
- export interface PopoverAtomType extends BaseAtom {
220
- type: "popover";
221
- trigger: any[];
222
- content: any[];
223
- }
224
-
225
- export interface DialogAtomType extends BaseAtom {
226
- type: "dialog";
227
- title: string;
228
- description?: string;
229
- trigger: any[];
230
- children: any[];
231
- footer?: any[];
232
- }
233
-
234
- // ============================================================================
235
- // ADDITIONAL LAYOUT ATOMS
236
- // ============================================================================
237
-
238
- export interface AspectRatioAtomType extends BaseAtom {
239
- type: "aspect-ratio";
240
- ratio: number;
241
- children: any[];
242
- }
243
-
244
- export interface CollapsibleAtomType extends BaseAtom {
245
- type: "collapsible";
246
- trigger: any[];
247
- content: any[];
248
- defaultOpen?: boolean;
249
- }
250
-
251
- // ============================================================================
252
- // ADDITIONAL OVERLAY ATOMS
253
- // ============================================================================
254
-
255
- export interface SheetAtomType extends BaseAtom {
256
- type: "sheet";
257
- side?: "top" | "bottom" | "left" | "right";
258
- title?: string;
259
- description?: string;
260
- trigger: any[];
261
- children: any[];
262
- footer?: any[];
263
- }
264
-
265
- export interface AlertDialogAtomType extends BaseAtom {
266
- type: "alert-dialog";
267
- title: string;
268
- description?: string;
269
- trigger: any[];
270
- confirmLabel?: string;
271
- cancelLabel?: string;
272
- action?: string;
273
- }
274
-
275
- export interface DrawerAtomType extends BaseAtom {
276
- type: "drawer";
277
- side?: "top" | "bottom" | "left" | "right";
278
- title?: string;
279
- description?: string;
280
- trigger: any[];
281
- children: any[];
282
- }
283
-
284
- export interface ContextMenuAtomType extends BaseAtom {
285
- type: "context-menu";
286
- trigger: any[];
287
- items: Array<{
288
- label: string;
289
- value: string;
290
- icon?: string;
291
- action?: string;
292
- disabled?: boolean;
293
- isDestructive?: boolean;
294
- }>;
295
- }
296
-
297
- export interface TimelineAtomType extends BaseAtom {
298
- type: "timeline";
299
- items: Array<{
300
- title: string;
301
- description?: string;
302
- timestamp?: string;
303
- status?: "completed" | "active" | "upcoming";
304
- icon?: string;
305
- }>;
306
- }
307
-
308
- // ============================================================================
309
- // NAVIGATION ATOMS
310
- // ============================================================================
311
-
312
- export interface BreadcrumbAtomType extends BaseAtom {
313
- type: "breadcrumb";
314
- items: Array<{
315
- label: string;
316
- href?: string;
317
- isCurrent?: boolean;
318
- }>;
319
- }
320
-
321
- // ============================================================================
322
- // UTILITY ATOMS
323
- // ============================================================================
324
-
325
- export interface SkeletonAtomType extends BaseAtom {
326
- type: "skeleton";
327
- shape?: "rect" | "circle";
328
- width?: string | number;
329
- height?: string | number;
330
- }
331
-
332
- export interface SpinnerAtomType extends BaseAtom {
333
- type: "spinner";
334
- size?: "sm" | "md" | "lg" | "xl";
335
- }
336
-
337
- export interface CommandAtomType extends BaseAtom {
338
- type: "command";
339
- placeholder?: string;
340
- groups: Array<{
341
- heading?: string;
342
- items: Array<{
343
- label: string;
344
- value: string;
345
- icon?: string;
346
- action?: string;
347
- }>;
348
- }>;
349
- }
350
-
351
- export interface PaginationAtomType extends BaseAtom {
352
- type: "pagination";
353
- currentPage: number;
354
- totalPages: number;
355
- hasNext?: boolean;
356
- hasPrev?: boolean;
357
- }
358
-
359
- export interface CalendarAtomType extends BaseAtom {
360
- type: "calendar";
361
- mode?: "single" | "range" | "multiple";
362
- selectedDate?: string | string[];
363
- }
364
-
365
- export interface InputOTPAtomType extends BaseAtom {
366
- type: "input-otp";
367
- length: number;
368
- placeholder?: string;
369
- }
370
-
371
- export interface ResizableAtomType extends BaseAtom {
372
- type: "resizable";
373
- direction: "horizontal" | "vertical";
374
- panels: Array<{
375
- defaultSize: number;
376
- children: any[];
377
- }>;
378
- }
379
-
380
- export interface VideoAtomType extends BaseAtom {
381
- type: "video";
382
- src: string;
383
- poster?: string;
384
- autoplay?: boolean;
385
- controls?: boolean;
386
- muted?: boolean;
387
- loop?: boolean;
388
- }
389
-
390
- export interface ChartAtomType extends BaseAtom {
391
- type: "chart";
392
- chartType: "bar" | "line" | "area" | "pie" | "radar" | "radial";
393
- data: any[];
394
- config: Record<string, { label: string; color: string }>;
395
- XAxisKey?: string;
396
- YAxisKey?: string;
397
- showTooltip?: boolean;
398
- showLegend?: boolean;
399
- stacked?: boolean;
400
- }
401
-
402
- export type UIAtom =
403
- | ButtonAtomType
404
- | InputAtomType
405
- | ToggleAtomType
406
- | TextAtomType
407
- | LayoutAtomType
408
- | CardAtomType
409
- | TabsAtomType
410
- | AccordionAtomType
411
- | SeparatorAtomType
412
- | ScrollAreaAtomType
413
- | AspectRatioAtomType
414
- | CollapsibleAtomType
415
- | AvatarAtomType
416
- | BadgeAtomType
417
- | ProgressAtomType
418
- | TableAtomType
419
- | CarouselAtomType
420
- | AlertAtomType
421
- | TooltipAtomType
422
- | PopoverAtomType
423
- | DialogAtomType
424
- | SheetAtomType
425
- | AlertDialogAtomType
426
- | SkeletonAtomType
427
- | SpinnerAtomType
428
- | BreadcrumbAtomType
429
- | CalendarAtomType
430
- | PaginationAtomType
431
- | CommandAtomType
432
- | FormInputAtomType
433
- | FormSelectAtomType
434
- | FormTextareaAtomType
435
- | CheckboxAtomType
436
- | SwitchAtomType
437
- | LabelAtomType
438
- | SliderAtomType
439
- | RadioGroupAtomType
440
- | DropdownMenuAtomType
441
- | ContextMenuAtomType
442
- | DrawerAtomType
443
- | InputOTPAtomType
444
- | KbdAtomType
445
- | ResizableAtomType
446
- | RatingAtomType
447
- | TimelineAtomType
448
- | VideoAtomType
449
- | ChartAtomType;
@@ -1,116 +0,0 @@
1
- /**
2
- * Common types used across the library
3
- */
4
-
5
- export type LayoutDirection = "vertical" | "horizontal" | "grid";
6
- export type GapSize = "none" | "sm" | "md" | "lg" | "xl";
7
- export type TextVariant = "h1" | "h2" | "h3" | "h4" | "p" | "small" | "muted";
8
- export type InputType = "text" | "email" | "password" | "number" | "search" | "tel" | "url";
9
- export type ButtonVariant = "default" | "destructive" | "outline" | "secondary" | "ghost" | "link";
10
- export type ButtonSize = "default" | "sm" | "lg" | "icon";
11
-
12
- /**
13
- * Field types for EditableField molecule
14
- */
15
- export type FieldType = "text" | "textarea" | "number" | "slider" | "checkbox" | "select" | "custom";
16
-
17
- /**
18
- * Field configuration for forms
19
- */
20
- export interface FieldConfig {
21
- key: string;
22
- label: string;
23
- type: FieldType;
24
- placeholder?: string;
25
- required?: boolean;
26
- options?: string[] | Array<{ label: string; value: string }>;
27
- sliderConfig?: SliderConfig;
28
- numberConfig?: NumberConfig;
29
- rows?: number;
30
- renderDisplay?: (value: any) => React.ReactNode;
31
- renderEdit?: (value: any, onChange: (value: any) => void) => React.ReactNode;
32
- }
33
-
34
- /**
35
- * Slider configuration
36
- */
37
- export interface SliderConfig {
38
- min: number;
39
- max: number;
40
- step: number;
41
- marks?: Record<number, string>;
42
- formatValue?: (value: any) => string;
43
- }
44
-
45
- /**
46
- * Number input configuration
47
- */
48
- export interface NumberConfig {
49
- min?: number;
50
- max?: number;
51
- step?: number;
52
- formatValue?: (value: any) => string;
53
- }
54
-
55
- /**
56
- * Campaign Seed data structure
57
- */
58
- export interface CampaignSeed {
59
- brand: string;
60
- objective: string;
61
- budget_hint: { min: number; max: number } | string;
62
- geo_or_audience: string;
63
- timeline_opt: string;
64
- notes: string;
65
- }
66
-
67
- /**
68
- * Search Specification data structure
69
- */
70
- export interface SearchSpec {
71
- platforms: string[];
72
- follower_range: { min: number; max: number };
73
- geography: string[];
74
- keyword_bundles: KeywordBundle[];
75
- desired_candidate_count: number;
76
- filters?: SearchFilter[];
77
- }
78
-
79
- /**
80
- * Keyword bundle for search
81
- */
82
- export interface KeywordBundle {
83
- keywords: string[];
84
- priority: number;
85
- }
86
-
87
- /**
88
- * Search filter
89
- */
90
- export interface SearchFilter {
91
- field: string;
92
- value: any;
93
- order: ">" | "<" | "=" | ">=" | "<=";
94
- }
95
-
96
- /**
97
- * Campaign concept
98
- */
99
- export interface Concept {
100
- id: string;
101
- title: string;
102
- description: string;
103
- targetAudience: string;
104
- platforms: string[];
105
- estimatedReach?: number;
106
- estimatedBudget?: { min: number; max: number };
107
- }
108
-
109
- /**
110
- * Progress step
111
- */
112
- export interface ProgressStep {
113
- label: string;
114
- status: "pending" | "in-progress" | "complete" | "error";
115
- progress?: number;
116
- }
@@ -1,3 +0,0 @@
1
- export * from "./atoms";
2
- export * from "./molecules";
3
- export * from "./schema";