pxengine 0.1.12 → 0.1.14

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 +227 -291
  2. package/dist/index.d.cts +15 -11
  3. package/dist/index.d.ts +15 -11
  4. package/dist/index.js +225 -287
  5. package/dist/registry.json +20 -22
  6. package/package.json +2 -4
  7. package/config/tailwind-preset.js +0 -106
  8. package/src/atoms/AccordionAtom.tsx +0 -44
  9. package/src/atoms/AlertAtom.tsx +0 -48
  10. package/src/atoms/AlertDialogAtom.tsx +0 -66
  11. package/src/atoms/AspectRatioAtom.tsx +0 -27
  12. package/src/atoms/AvatarAtom.tsx +0 -21
  13. package/src/atoms/BadgeAtom.tsx +0 -35
  14. package/src/atoms/BreadcrumbAtom.tsx +0 -36
  15. package/src/atoms/ButtonAtom.tsx +0 -65
  16. package/src/atoms/CalendarAtom.tsx +0 -24
  17. package/src/atoms/CardAtom.tsx +0 -66
  18. package/src/atoms/CarouselAtom.tsx +0 -40
  19. package/src/atoms/ChartAtom.tsx +0 -192
  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 -216
  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 -60
  49. package/src/atoms/TabsAtom.tsx +0 -40
  50. package/src/atoms/TextAtom.tsx +0 -36
  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 -458
  180. package/src/render/index.ts +0 -1
  181. package/src/styles/globals.css +0 -146
  182. package/src/types/atoms.ts +0 -450
  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,450 +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
- style?: React.CSSProperties;
17
- }
18
-
19
- // ============================================================================
20
- // FORM ATOMS
21
- // ============================================================================
22
-
23
- export interface ButtonAtomType extends BaseAtom {
24
- type: "button";
25
- label: string;
26
- variant?: ButtonVariant;
27
- size?: ButtonSize;
28
- action?: string;
29
- disabled?: boolean;
30
- isLoading?: boolean;
31
- }
32
-
33
- export interface InputAtomType extends BaseAtom {
34
- type: "input";
35
- inputType: InputType;
36
- label?: string;
37
- placeholder?: string;
38
- defaultValue?: any;
39
- required?: boolean;
40
- disabled?: boolean;
41
- options?: Array<{ label: string; value: string }>;
42
- config?: Record<string, any>;
43
- }
44
-
45
- export interface ToggleAtomType extends BaseAtom {
46
- type: "toggle";
47
- label: string;
48
- pressed?: boolean;
49
- disabled?: boolean;
50
- size?: "sm" | "md" | "lg";
51
- variant?: "default" | "outline";
52
- }
53
-
54
- export interface CheckboxAtomType extends BaseAtom {
55
- type: "checkbox";
56
- label?: string;
57
- checked?: boolean;
58
- disabled?: boolean;
59
- }
60
-
61
- export interface SwitchAtomType extends BaseAtom {
62
- type: "switch";
63
- label?: string;
64
- checked?: boolean;
65
- disabled?: boolean;
66
- }
67
-
68
- export interface LabelAtomType extends BaseAtom {
69
- type: "label";
70
- content: string;
71
- htmlFor?: string;
72
- }
73
-
74
- export interface SliderAtomType extends BaseAtom {
75
- type: "slider";
76
- defaultValue?: number[];
77
- max?: number;
78
- min?: number;
79
- step?: number;
80
- disabled?: boolean;
81
- }
82
-
83
- export interface RadioGroupAtomType extends BaseAtom {
84
- type: "radio-group";
85
- options: Array<{ label: string; value: string }>;
86
- defaultValue?: string;
87
- disabled?: boolean;
88
- }
89
-
90
- export interface DropdownMenuAtomType extends BaseAtom {
91
- type: "dropdown-menu";
92
- trigger: any;
93
- items: Array<{
94
- label: string;
95
- value: string;
96
- icon?: string;
97
- action?: string;
98
- disabled?: boolean;
99
- isDestructive?: boolean;
100
- }>;
101
- }
102
-
103
- // ============================================================================
104
- // LAYOUT & DISPLAY ATOMS
105
- // ============================================================================
106
-
107
- export interface TextAtomType extends BaseAtom {
108
- type: "text";
109
- content: string;
110
- variant: TextVariant;
111
- }
112
-
113
- export interface LayoutAtomType extends BaseAtom {
114
- type: "layout";
115
- direction: LayoutDirection;
116
- gap?: GapSize;
117
- children: any[]; // Recursive
118
- }
119
-
120
- export interface CardAtomType extends BaseAtom {
121
- type: "card";
122
- title?: string;
123
- description?: string;
124
- children: any[];
125
- footer?: any[];
126
- }
127
-
128
- export interface TabsAtomType extends BaseAtom {
129
- type: "tabs";
130
- defaultValue: string;
131
- tabs: Array<{
132
- value: string;
133
- label: string;
134
- content: any[];
135
- }>;
136
- }
137
-
138
- export interface AccordionAtomType extends BaseAtom {
139
- type: "accordion";
140
- items: Array<{
141
- value: string;
142
- trigger: string;
143
- content: any[];
144
- }>;
145
- }
146
-
147
- export interface SeparatorAtomType extends BaseAtom {
148
- type: "separator";
149
- orientation?: "horizontal" | "vertical";
150
- }
151
-
152
- export interface KbdAtomType extends BaseAtom {
153
- type: "kbd";
154
- keys: string[];
155
- }
156
-
157
- export interface RatingAtomType extends BaseAtom {
158
- type: "rating";
159
- value: number;
160
- max?: number;
161
- readonly?: boolean;
162
- }
163
-
164
- export interface ScrollAreaAtomType extends BaseAtom {
165
- type: "scroll-area";
166
- maxHeight?: string;
167
- children: any[];
168
- }
169
-
170
- // ============================================================================
171
- // DATA DISPLAY ATOMS
172
- // ============================================================================
173
-
174
- export interface AvatarAtomType extends BaseAtom {
175
- type: "avatar";
176
- src?: string;
177
- fallback: string;
178
- alt?: string;
179
- }
180
-
181
- export interface BadgeAtomType extends BaseAtom {
182
- type: "badge";
183
- label: string;
184
- variant?: "default" | "secondary" | "destructive" | "outline" | "purple" | "green";
185
- }
186
-
187
- export interface ProgressAtomType extends BaseAtom {
188
- type: "progress";
189
- value: number; // 0 to 100
190
- }
191
-
192
- export interface TableAtomType extends BaseAtom {
193
- type: "table";
194
- headers: string[];
195
- rows: any[][];
196
- }
197
-
198
- export interface CarouselAtomType extends BaseAtom {
199
- type: "carousel";
200
- items: any[][]; // Array of children per slide
201
- }
202
-
203
- export interface AlertAtomType extends BaseAtom {
204
- type: "alert";
205
- title: string;
206
- description?: string;
207
- variant?: "default" | "destructive" | "warning" | "info" | "success";
208
- }
209
-
210
- // ============================================================================
211
- // OVERLAY ATOMS
212
- // ============================================================================
213
-
214
- export interface TooltipAtomType extends BaseAtom {
215
- type: "tooltip";
216
- content: string;
217
- children: any[];
218
- }
219
-
220
- export interface PopoverAtomType extends BaseAtom {
221
- type: "popover";
222
- trigger: any[];
223
- content: any[];
224
- }
225
-
226
- export interface DialogAtomType extends BaseAtom {
227
- type: "dialog";
228
- title: string;
229
- description?: string;
230
- trigger: any[];
231
- children: any[];
232
- footer?: any[];
233
- }
234
-
235
- // ============================================================================
236
- // ADDITIONAL LAYOUT ATOMS
237
- // ============================================================================
238
-
239
- export interface AspectRatioAtomType extends BaseAtom {
240
- type: "aspect-ratio";
241
- ratio: number;
242
- children: any[];
243
- }
244
-
245
- export interface CollapsibleAtomType extends BaseAtom {
246
- type: "collapsible";
247
- trigger: any[];
248
- content: any[];
249
- defaultOpen?: boolean;
250
- }
251
-
252
- // ============================================================================
253
- // ADDITIONAL OVERLAY ATOMS
254
- // ============================================================================
255
-
256
- export interface SheetAtomType extends BaseAtom {
257
- type: "sheet";
258
- side?: "top" | "bottom" | "left" | "right";
259
- title?: string;
260
- description?: string;
261
- trigger: any[];
262
- children: any[];
263
- footer?: any[];
264
- }
265
-
266
- export interface AlertDialogAtomType extends BaseAtom {
267
- type: "alert-dialog";
268
- title: string;
269
- description?: string;
270
- trigger: any[];
271
- confirmLabel?: string;
272
- cancelLabel?: string;
273
- action?: string;
274
- }
275
-
276
- export interface DrawerAtomType extends BaseAtom {
277
- type: "drawer";
278
- side?: "top" | "bottom" | "left" | "right";
279
- title?: string;
280
- description?: string;
281
- trigger: any[];
282
- children: any[];
283
- }
284
-
285
- export interface ContextMenuAtomType extends BaseAtom {
286
- type: "context-menu";
287
- trigger: any[];
288
- items: Array<{
289
- label: string;
290
- value: string;
291
- icon?: string;
292
- action?: string;
293
- disabled?: boolean;
294
- isDestructive?: boolean;
295
- }>;
296
- }
297
-
298
- export interface TimelineAtomType extends BaseAtom {
299
- type: "timeline";
300
- items: Array<{
301
- title: string;
302
- description?: string;
303
- timestamp?: string;
304
- status?: "completed" | "active" | "upcoming";
305
- icon?: string;
306
- }>;
307
- }
308
-
309
- // ============================================================================
310
- // NAVIGATION ATOMS
311
- // ============================================================================
312
-
313
- export interface BreadcrumbAtomType extends BaseAtom {
314
- type: "breadcrumb";
315
- items: Array<{
316
- label: string;
317
- href?: string;
318
- isCurrent?: boolean;
319
- }>;
320
- }
321
-
322
- // ============================================================================
323
- // UTILITY ATOMS
324
- // ============================================================================
325
-
326
- export interface SkeletonAtomType extends BaseAtom {
327
- type: "skeleton";
328
- shape?: "rect" | "circle";
329
- width?: string | number;
330
- height?: string | number;
331
- }
332
-
333
- export interface SpinnerAtomType extends BaseAtom {
334
- type: "spinner";
335
- size?: "sm" | "md" | "lg" | "xl";
336
- }
337
-
338
- export interface CommandAtomType extends BaseAtom {
339
- type: "command";
340
- placeholder?: string;
341
- groups: Array<{
342
- heading?: string;
343
- items: Array<{
344
- label: string;
345
- value: string;
346
- icon?: string;
347
- action?: string;
348
- }>;
349
- }>;
350
- }
351
-
352
- export interface PaginationAtomType extends BaseAtom {
353
- type: "pagination";
354
- currentPage: number;
355
- totalPages: number;
356
- hasNext?: boolean;
357
- hasPrev?: boolean;
358
- }
359
-
360
- export interface CalendarAtomType extends BaseAtom {
361
- type: "calendar";
362
- mode?: "single" | "range" | "multiple";
363
- selectedDate?: string | string[];
364
- }
365
-
366
- export interface InputOTPAtomType extends BaseAtom {
367
- type: "input-otp";
368
- length: number;
369
- placeholder?: string;
370
- }
371
-
372
- export interface ResizableAtomType extends BaseAtom {
373
- type: "resizable";
374
- direction: "horizontal" | "vertical";
375
- panels: Array<{
376
- defaultSize: number;
377
- children: any[];
378
- }>;
379
- }
380
-
381
- export interface VideoAtomType extends BaseAtom {
382
- type: "video";
383
- src: string;
384
- poster?: string;
385
- autoplay?: boolean;
386
- controls?: boolean;
387
- muted?: boolean;
388
- loop?: boolean;
389
- }
390
-
391
- export interface ChartAtomType extends BaseAtom {
392
- type: "chart";
393
- chartType: "bar" | "line" | "area" | "pie" | "radar" | "radial";
394
- data: any[];
395
- config: Record<string, { label: string; color: string }>;
396
- XAxisKey?: string;
397
- YAxisKey?: string;
398
- showTooltip?: boolean;
399
- showLegend?: boolean;
400
- stacked?: boolean;
401
- }
402
-
403
- export type UIAtom =
404
- | ButtonAtomType
405
- | InputAtomType
406
- | ToggleAtomType
407
- | TextAtomType
408
- | LayoutAtomType
409
- | CardAtomType
410
- | TabsAtomType
411
- | AccordionAtomType
412
- | SeparatorAtomType
413
- | ScrollAreaAtomType
414
- | AspectRatioAtomType
415
- | CollapsibleAtomType
416
- | AvatarAtomType
417
- | BadgeAtomType
418
- | ProgressAtomType
419
- | TableAtomType
420
- | CarouselAtomType
421
- | AlertAtomType
422
- | TooltipAtomType
423
- | PopoverAtomType
424
- | DialogAtomType
425
- | SheetAtomType
426
- | AlertDialogAtomType
427
- | SkeletonAtomType
428
- | SpinnerAtomType
429
- | BreadcrumbAtomType
430
- | CalendarAtomType
431
- | PaginationAtomType
432
- | CommandAtomType
433
- | FormInputAtomType
434
- | FormSelectAtomType
435
- | FormTextareaAtomType
436
- | CheckboxAtomType
437
- | SwitchAtomType
438
- | LabelAtomType
439
- | SliderAtomType
440
- | RadioGroupAtomType
441
- | DropdownMenuAtomType
442
- | ContextMenuAtomType
443
- | DrawerAtomType
444
- | InputOTPAtomType
445
- | KbdAtomType
446
- | ResizableAtomType
447
- | RatingAtomType
448
- | TimelineAtomType
449
- | VideoAtomType
450
- | 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";