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.
- package/dist/index.cjs +205 -120
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +205 -120
- package/dist/registry.json +1200 -288
- package/package.json +9 -4
- package/config/tailwind-preset.js +0 -106
- package/src/atoms/AccordionAtom.tsx +0 -44
- package/src/atoms/AlertAtom.tsx +0 -46
- package/src/atoms/AlertDialogAtom.tsx +0 -66
- package/src/atoms/AspectRatioAtom.tsx +0 -27
- package/src/atoms/AvatarAtom.tsx +0 -20
- package/src/atoms/BadgeAtom.tsx +0 -33
- package/src/atoms/BreadcrumbAtom.tsx +0 -36
- package/src/atoms/ButtonAtom.tsx +0 -63
- package/src/atoms/CalendarAtom.tsx +0 -24
- package/src/atoms/CardAtom.tsx +0 -64
- package/src/atoms/CarouselAtom.tsx +0 -40
- package/src/atoms/ChartAtom.tsx +0 -190
- package/src/atoms/CheckboxAtom.tsx +0 -33
- package/src/atoms/CollapsibleAtom.tsx +0 -44
- package/src/atoms/CommandAtom.tsx +0 -46
- package/src/atoms/ContextMenuAtom.tsx +0 -49
- package/src/atoms/DialogAtom.tsx +0 -68
- package/src/atoms/DrawerAtom.tsx +0 -49
- package/src/atoms/DropdownMenuAtom.tsx +0 -49
- package/src/atoms/FormInputAtom.tsx +0 -101
- package/src/atoms/FormSelectAtom.tsx +0 -110
- package/src/atoms/FormTextareaAtom.tsx +0 -93
- package/src/atoms/InputAtom.tsx +0 -188
- package/src/atoms/InputOTPAtom.tsx +0 -49
- package/src/atoms/KbdAtom.tsx +0 -25
- package/src/atoms/LabelAtom.tsx +0 -23
- package/src/atoms/LayoutAtom.tsx +0 -45
- package/src/atoms/PaginationAtom.tsx +0 -49
- package/src/atoms/PopoverAtom.tsx +0 -40
- package/src/atoms/ProgressAtom.tsx +0 -15
- package/src/atoms/RadioGroupAtom.tsx +0 -31
- package/src/atoms/RatingAtom.tsx +0 -37
- package/src/atoms/ResizableAtom.tsx +0 -51
- package/src/atoms/ScrollAreaAtom.tsx +0 -31
- package/src/atoms/SeparatorAtom.tsx +0 -16
- package/src/atoms/SheetAtom.tsx +0 -72
- package/src/atoms/SkeletonAtom.tsx +0 -22
- package/src/atoms/SliderAtom.tsx +0 -32
- package/src/atoms/SpinnerAtom.tsx +0 -26
- package/src/atoms/SwitchAtom.tsx +0 -32
- package/src/atoms/TableAtom.tsx +0 -58
- package/src/atoms/TabsAtom.tsx +0 -40
- package/src/atoms/TextAtom.tsx +0 -35
- package/src/atoms/TextareaAtom.tsx +0 -42
- package/src/atoms/TimelineAtom.tsx +0 -77
- package/src/atoms/ToggleAtom.tsx +0 -36
- package/src/atoms/TooltipAtom.tsx +0 -39
- package/src/atoms/VideoAtom.tsx +0 -34
- package/src/atoms/index.ts +0 -49
- package/src/components/index.ts +0 -178
- package/src/components/ui/accordion.tsx +0 -56
- package/src/components/ui/alert-dialog.tsx +0 -139
- package/src/components/ui/alert.tsx +0 -59
- package/src/components/ui/aspect-ratio.tsx +0 -5
- package/src/components/ui/avatar.tsx +0 -50
- package/src/components/ui/badge.tsx +0 -36
- package/src/components/ui/breadcrumb.tsx +0 -115
- package/src/components/ui/button-group.tsx +0 -83
- package/src/components/ui/button.tsx +0 -56
- package/src/components/ui/calendar.tsx +0 -213
- package/src/components/ui/card.tsx +0 -79
- package/src/components/ui/carousel.tsx +0 -260
- package/src/components/ui/chart.tsx +0 -367
- package/src/components/ui/checkbox.tsx +0 -28
- package/src/components/ui/collapsible.tsx +0 -11
- package/src/components/ui/command.tsx +0 -153
- package/src/components/ui/context-menu.tsx +0 -198
- package/src/components/ui/dialog.tsx +0 -122
- package/src/components/ui/drawer.tsx +0 -116
- package/src/components/ui/dropdown-menu.tsx +0 -200
- package/src/components/ui/empty.tsx +0 -104
- package/src/components/ui/field.tsx +0 -244
- package/src/components/ui/form.tsx +0 -176
- package/src/components/ui/hover-card.tsx +0 -27
- package/src/components/ui/index.ts +0 -54
- package/src/components/ui/input-group.tsx +0 -168
- package/src/components/ui/input-otp.tsx +0 -69
- package/src/components/ui/input.tsx +0 -22
- package/src/components/ui/item.tsx +0 -193
- package/src/components/ui/kbd.tsx +0 -28
- package/src/components/ui/label.tsx +0 -26
- package/src/components/ui/menubar.tsx +0 -254
- package/src/components/ui/navigation-menu.tsx +0 -128
- package/src/components/ui/pagination.tsx +0 -117
- package/src/components/ui/popover.tsx +0 -29
- package/src/components/ui/progress.tsx +0 -28
- package/src/components/ui/radio-group.tsx +0 -42
- package/src/components/ui/resizable.tsx +0 -44
- package/src/components/ui/scroll-area.tsx +0 -46
- package/src/components/ui/select.tsx +0 -160
- package/src/components/ui/separator.tsx +0 -29
- package/src/components/ui/sheet.tsx +0 -140
- package/src/components/ui/sidebar.tsx +0 -771
- package/src/components/ui/skeleton.tsx +0 -15
- package/src/components/ui/slider.tsx +0 -26
- package/src/components/ui/sonner.tsx +0 -45
- package/src/components/ui/spinner.tsx +0 -16
- package/src/components/ui/switch.tsx +0 -27
- package/src/components/ui/table.tsx +0 -117
- package/src/components/ui/tabs.tsx +0 -53
- package/src/components/ui/textarea.tsx +0 -22
- package/src/components/ui/toggle-group.tsx +0 -61
- package/src/components/ui/toggle.tsx +0 -43
- package/src/components/ui/tooltip.tsx +0 -30
- package/src/hooks/use-mobile.tsx +0 -19
- package/src/index.ts +0 -24
- package/src/lib/countries.ts +0 -203
- package/src/lib/index.ts +0 -2
- package/src/lib/utils.ts +0 -15
- package/src/lib/validators/index.ts +0 -1
- package/src/lib/validators/theme.ts +0 -148
- package/src/molecules/creator-discovery/AudienceDemographicsCard/AudienceDemographicsCard.tsx +0 -44
- package/src/molecules/creator-discovery/AudienceDemographicsCard/index.ts +0 -1
- package/src/molecules/creator-discovery/AudienceMetricCard/AudienceMetricCard.tsx +0 -50
- package/src/molecules/creator-discovery/AudienceMetricCard/index.ts +0 -1
- package/src/molecules/creator-discovery/BrandAffinityGroup/BrandAffinityGroup.tsx +0 -36
- package/src/molecules/creator-discovery/BrandAffinityGroup/index.ts +0 -1
- package/src/molecules/creator-discovery/CampaignSeedCard/CampaignSeedCard.tsx +0 -123
- package/src/molecules/creator-discovery/CampaignSeedCard/CampaignSeedCard.types.ts +0 -13
- package/src/molecules/creator-discovery/CampaignSeedCard/index.ts +0 -2
- package/src/molecules/creator-discovery/ContentPreviewGallery/ContentPreviewGallery.tsx +0 -41
- package/src/molecules/creator-discovery/ContentPreviewGallery/index.ts +0 -1
- package/src/molecules/creator-discovery/CreatorActionHeader/CreatorActionHeader.tsx +0 -77
- package/src/molecules/creator-discovery/CreatorActionHeader/index.ts +0 -1
- package/src/molecules/creator-discovery/CreatorGridCard/CreatorGridCard.tsx +0 -104
- package/src/molecules/creator-discovery/CreatorGridCard/index.ts +0 -1
- package/src/molecules/creator-discovery/CreatorProfileSummary/CreatorProfileSummary.tsx +0 -65
- package/src/molecules/creator-discovery/CreatorProfileSummary/index.ts +0 -1
- package/src/molecules/creator-discovery/GrowthChartCard/GrowthChartCard.tsx +0 -58
- package/src/molecules/creator-discovery/GrowthChartCard/index.ts +0 -1
- package/src/molecules/creator-discovery/MCQCard/MCQCard.tsx +0 -165
- package/src/molecules/creator-discovery/MCQCard/MCQCard.types.ts +0 -71
- package/src/molecules/creator-discovery/MCQCard/index.ts +0 -2
- package/src/molecules/creator-discovery/PlatformIconGroup/PlatformIconGroup.tsx +0 -72
- package/src/molecules/creator-discovery/PlatformIconGroup/index.ts +0 -1
- package/src/molecules/creator-discovery/SearchSpecCard/CustomFieldRenderers.tsx +0 -334
- package/src/molecules/creator-discovery/SearchSpecCard/SearchSpecCard.tsx +0 -111
- package/src/molecules/creator-discovery/SearchSpecCard/SearchSpecCard.types.ts +0 -18
- package/src/molecules/creator-discovery/SearchSpecCard/index.ts +0 -3
- package/src/molecules/creator-discovery/TopPostsGrid/TopPostsGrid.tsx +0 -49
- package/src/molecules/creator-discovery/TopPostsGrid/index.ts +0 -1
- package/src/molecules/creator-discovery/index.ts +0 -13
- package/src/molecules/generic/ActionButton/ActionButton.tsx +0 -137
- package/src/molecules/generic/ActionButton/ActionButton.types.ts +0 -68
- package/src/molecules/generic/ActionButton/index.ts +0 -2
- package/src/molecules/generic/DataGrid/DataGrid.tsx +0 -102
- package/src/molecules/generic/DataGrid/index.ts +0 -1
- package/src/molecules/generic/EditableField/EditableField.tsx +0 -229
- package/src/molecules/generic/EditableField/EditableField.types.ts +0 -73
- package/src/molecules/generic/EditableField/index.ts +0 -2
- package/src/molecules/generic/EmptyState/EmptyState.tsx +0 -61
- package/src/molecules/generic/EmptyState/index.ts +0 -1
- package/src/molecules/generic/FileUpload/FileUpload.tsx +0 -62
- package/src/molecules/generic/FileUpload/index.ts +0 -1
- package/src/molecules/generic/FilterBar/FilterBar.tsx +0 -54
- package/src/molecules/generic/FilterBar/index.ts +0 -1
- package/src/molecules/generic/FormCard/FormCard.tsx +0 -136
- package/src/molecules/generic/FormCard/FormCard.types.ts +0 -93
- package/src/molecules/generic/FormCard/index.ts +0 -2
- package/src/molecules/generic/LoadingOverlay/LoadingOverlay.tsx +0 -39
- package/src/molecules/generic/LoadingOverlay/index.ts +0 -1
- package/src/molecules/generic/NotificationList/NotificationList.tsx +0 -80
- package/src/molecules/generic/NotificationList/index.ts +0 -1
- package/src/molecules/generic/StatsGrid/StatsGrid.tsx +0 -80
- package/src/molecules/generic/StatsGrid/index.ts +0 -1
- package/src/molecules/generic/StepWizard/StepWizard.tsx +0 -67
- package/src/molecules/generic/StepWizard/index.ts +0 -1
- package/src/molecules/generic/TagCloud/TagCloud.tsx +0 -32
- package/src/molecules/generic/TagCloud/index.ts +0 -1
- package/src/molecules/generic/index.ts +0 -12
- package/src/molecules/index.ts +0 -2
- package/src/render/PXEngineRenderer.tsx +0 -416
- package/src/render/index.ts +0 -1
- package/src/styles/globals.css +0 -146
- package/src/types/atoms.ts +0 -449
- package/src/types/common.ts +0 -116
- package/src/types/index.ts +0 -3
- package/src/types/molecules.ts +0 -279
- package/src/types/schema.ts +0 -12
package/src/types/atoms.ts
DELETED
|
@@ -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;
|
package/src/types/common.ts
DELETED
|
@@ -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
|
-
}
|
package/src/types/index.ts
DELETED