@kuraykaraaslan/kui-react 1.0.1
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/LICENSE +17 -0
- package/README.md +168 -0
- package/dist/AdvancedDataTable-F3DNXDKX.mjs +11 -0
- package/dist/DataTable-2G27T4E6.mjs +11 -0
- package/dist/DateRangePicker-AL32QB6L.mjs +11 -0
- package/dist/DropdownMenu-f5yV9dzM.d.mts +22 -0
- package/dist/DropdownMenu-f5yV9dzM.d.ts +22 -0
- package/dist/MapView-FERKPCDB.mjs +10 -0
- package/dist/ServerDataTable-RZV3K6KQ.mjs +11 -0
- package/dist/Tooltip-Bof5GvOc.d.mts +248 -0
- package/dist/Tooltip-Bof5GvOc.d.ts +248 -0
- package/dist/VideoPlayer-P3I6ESXJ.mjs +9 -0
- package/dist/app.d.mts +620 -0
- package/dist/app.d.ts +620 -0
- package/dist/app.js +7061 -0
- package/dist/app.mjs +100 -0
- package/dist/chunk-24BCQSLI.mjs +1 -0
- package/dist/chunk-45I3EDB2.mjs +90 -0
- package/dist/chunk-4IWCD7ID.mjs +1450 -0
- package/dist/chunk-5E2HXWFI.mjs +105 -0
- package/dist/chunk-C7AYI4XM.mjs +402 -0
- package/dist/chunk-J4D44TUA.mjs +1267 -0
- package/dist/chunk-KTEWZKNE.mjs +1020 -0
- package/dist/chunk-LMUQHL4Z.mjs +3829 -0
- package/dist/chunk-MD5OQ4J2.mjs +527 -0
- package/dist/chunk-MPJRPYIZ.mjs +1 -0
- package/dist/chunk-MPWUEQ7J.mjs +2422 -0
- package/dist/chunk-MTT5TKAJ.mjs +93 -0
- package/dist/chunk-RBDK7MWQ.mjs +46 -0
- package/dist/chunk-SVFQZPNZ.mjs +3648 -0
- package/dist/chunk-TZWBBMSG.mjs +1 -0
- package/dist/chunk-XA7J6PVJ.mjs +1488 -0
- package/dist/chunk-ZLYBRYWQ.mjs +726 -0
- package/dist/common.d.mts +921 -0
- package/dist/common.d.ts +921 -0
- package/dist/common.js +4991 -0
- package/dist/common.mjs +172 -0
- package/dist/index.d.mts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +17563 -0
- package/dist/index.mjs +349 -0
- package/dist/ui.d.mts +937 -0
- package/dist/ui.d.ts +937 -0
- package/dist/ui.js +10095 -0
- package/dist/ui.mjs +163 -0
- package/package.json +114 -0
- package/styles/index.css +129 -0
package/dist/common.d.ts
ADDED
|
@@ -0,0 +1,921 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
import { D as DropdownItem } from './DropdownMenu-f5yV9dzM.js';
|
|
4
|
+
import 'react';
|
|
5
|
+
|
|
6
|
+
declare const IdSchema: z.ZodString;
|
|
7
|
+
declare const UuidSchema: z.ZodUUID;
|
|
8
|
+
declare const SlugSchema: z.ZodString;
|
|
9
|
+
declare const DateSchema: z.ZodCoercedDate<unknown>;
|
|
10
|
+
declare const NullableDateSchema: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
11
|
+
declare const EmailSchema: z.ZodEmail;
|
|
12
|
+
declare const PasswordSchema: z.ZodString;
|
|
13
|
+
declare const SortOrderEnum: z.ZodEnum<{
|
|
14
|
+
desc: "desc";
|
|
15
|
+
asc: "asc";
|
|
16
|
+
}>;
|
|
17
|
+
declare const StatusEnum: z.ZodEnum<{
|
|
18
|
+
ACTIVE: "ACTIVE";
|
|
19
|
+
INACTIVE: "INACTIVE";
|
|
20
|
+
DRAFT: "DRAFT";
|
|
21
|
+
PUBLISHED: "PUBLISHED";
|
|
22
|
+
ARCHIVED: "ARCHIVED";
|
|
23
|
+
}>;
|
|
24
|
+
declare const BaseEntitySchema: z.ZodObject<{
|
|
25
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
26
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
27
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
declare const PaginationSchema: z.ZodObject<{
|
|
30
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
31
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
declare const ApiSuccessSchema: z.ZodObject<{
|
|
34
|
+
success: z.ZodLiteral<true>;
|
|
35
|
+
message: z.ZodOptional<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
declare const ApiErrorSchema: z.ZodObject<{
|
|
38
|
+
success: z.ZodLiteral<false>;
|
|
39
|
+
message: z.ZodString;
|
|
40
|
+
code: z.ZodOptional<z.ZodString>;
|
|
41
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
42
|
+
field: z.ZodString;
|
|
43
|
+
message: z.ZodString;
|
|
44
|
+
}, z.core.$strip>>>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
declare const ApiResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
47
|
+
success: z.ZodLiteral<true>;
|
|
48
|
+
message: z.ZodOptional<z.ZodString>;
|
|
49
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
+
success: z.ZodLiteral<false>;
|
|
51
|
+
message: z.ZodString;
|
|
52
|
+
code: z.ZodOptional<z.ZodString>;
|
|
53
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
54
|
+
field: z.ZodString;
|
|
55
|
+
message: z.ZodString;
|
|
56
|
+
}, z.core.$strip>>>;
|
|
57
|
+
}, z.core.$strip>]>;
|
|
58
|
+
declare const UserRoleEnum: z.ZodEnum<{
|
|
59
|
+
ADMIN: "ADMIN";
|
|
60
|
+
AUTHOR: "AUTHOR";
|
|
61
|
+
USER: "USER";
|
|
62
|
+
}>;
|
|
63
|
+
declare const UserStatusEnum: z.ZodEnum<{
|
|
64
|
+
ACTIVE: "ACTIVE";
|
|
65
|
+
INACTIVE: "INACTIVE";
|
|
66
|
+
BANNED: "BANNED";
|
|
67
|
+
}>;
|
|
68
|
+
declare const ThemeEnum: z.ZodEnum<{
|
|
69
|
+
LIGHT: "LIGHT";
|
|
70
|
+
DARK: "DARK";
|
|
71
|
+
SYSTEM: "SYSTEM";
|
|
72
|
+
}>;
|
|
73
|
+
declare const LanguageEnum: z.ZodEnum<{
|
|
74
|
+
en: "en";
|
|
75
|
+
}>;
|
|
76
|
+
declare const UserPreferencesSchema: z.ZodObject<{
|
|
77
|
+
theme: z.ZodDefault<z.ZodEnum<{
|
|
78
|
+
LIGHT: "LIGHT";
|
|
79
|
+
DARK: "DARK";
|
|
80
|
+
SYSTEM: "SYSTEM";
|
|
81
|
+
}>>;
|
|
82
|
+
language: z.ZodDefault<z.ZodEnum<{
|
|
83
|
+
[x: string]: string;
|
|
84
|
+
}>>;
|
|
85
|
+
emailNotifications: z.ZodDefault<z.ZodBoolean>;
|
|
86
|
+
pushNotifications: z.ZodDefault<z.ZodBoolean>;
|
|
87
|
+
newsletter: z.ZodDefault<z.ZodBoolean>;
|
|
88
|
+
timezone: z.ZodDefault<z.ZodString>;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
declare const UserProfileSchema: z.ZodObject<{
|
|
91
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
92
|
+
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
|
+
biography: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
|
+
profilePicture: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
declare const UserSchema: z.ZodObject<{
|
|
97
|
+
userId: z.ZodString;
|
|
98
|
+
email: z.ZodEmail;
|
|
99
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
100
|
+
password: z.ZodString;
|
|
101
|
+
userRole: z.ZodDefault<z.ZodEnum<{
|
|
102
|
+
ADMIN: "ADMIN";
|
|
103
|
+
AUTHOR: "AUTHOR";
|
|
104
|
+
USER: "USER";
|
|
105
|
+
}>>;
|
|
106
|
+
userStatus: z.ZodDefault<z.ZodEnum<{
|
|
107
|
+
ACTIVE: "ACTIVE";
|
|
108
|
+
INACTIVE: "INACTIVE";
|
|
109
|
+
BANNED: "BANNED";
|
|
110
|
+
}>>;
|
|
111
|
+
userPreferences: z.ZodOptional<z.ZodObject<{
|
|
112
|
+
theme: z.ZodDefault<z.ZodEnum<{
|
|
113
|
+
LIGHT: "LIGHT";
|
|
114
|
+
DARK: "DARK";
|
|
115
|
+
SYSTEM: "SYSTEM";
|
|
116
|
+
}>>;
|
|
117
|
+
language: z.ZodDefault<z.ZodEnum<{
|
|
118
|
+
[x: string]: string;
|
|
119
|
+
}>>;
|
|
120
|
+
emailNotifications: z.ZodDefault<z.ZodBoolean>;
|
|
121
|
+
pushNotifications: z.ZodDefault<z.ZodBoolean>;
|
|
122
|
+
newsletter: z.ZodDefault<z.ZodBoolean>;
|
|
123
|
+
timezone: z.ZodDefault<z.ZodString>;
|
|
124
|
+
}, z.core.$strip>>;
|
|
125
|
+
userProfile: z.ZodOptional<z.ZodObject<{
|
|
126
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
127
|
+
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
128
|
+
biography: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
129
|
+
profilePicture: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
130
|
+
}, z.core.$strip>>;
|
|
131
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
132
|
+
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
133
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
134
|
+
}, z.core.$strip>;
|
|
135
|
+
declare const SafeUserSchema: z.ZodObject<{
|
|
136
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
137
|
+
email: z.ZodEmail;
|
|
138
|
+
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
139
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
140
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
141
|
+
userId: z.ZodString;
|
|
142
|
+
userRole: z.ZodDefault<z.ZodEnum<{
|
|
143
|
+
ADMIN: "ADMIN";
|
|
144
|
+
AUTHOR: "AUTHOR";
|
|
145
|
+
USER: "USER";
|
|
146
|
+
}>>;
|
|
147
|
+
userStatus: z.ZodDefault<z.ZodEnum<{
|
|
148
|
+
ACTIVE: "ACTIVE";
|
|
149
|
+
INACTIVE: "INACTIVE";
|
|
150
|
+
BANNED: "BANNED";
|
|
151
|
+
}>>;
|
|
152
|
+
userPreferences: z.ZodOptional<z.ZodObject<{
|
|
153
|
+
theme: z.ZodDefault<z.ZodEnum<{
|
|
154
|
+
LIGHT: "LIGHT";
|
|
155
|
+
DARK: "DARK";
|
|
156
|
+
SYSTEM: "SYSTEM";
|
|
157
|
+
}>>;
|
|
158
|
+
language: z.ZodDefault<z.ZodEnum<{
|
|
159
|
+
[x: string]: string;
|
|
160
|
+
}>>;
|
|
161
|
+
emailNotifications: z.ZodDefault<z.ZodBoolean>;
|
|
162
|
+
pushNotifications: z.ZodDefault<z.ZodBoolean>;
|
|
163
|
+
newsletter: z.ZodDefault<z.ZodBoolean>;
|
|
164
|
+
timezone: z.ZodDefault<z.ZodString>;
|
|
165
|
+
}, z.core.$strip>>;
|
|
166
|
+
userProfile: z.ZodOptional<z.ZodObject<{
|
|
167
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
168
|
+
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
169
|
+
biography: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
170
|
+
profilePicture: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
171
|
+
}, z.core.$strip>>;
|
|
172
|
+
}, z.core.$strip>;
|
|
173
|
+
declare const LoginRequestSchema: z.ZodObject<{
|
|
174
|
+
email: z.ZodEmail;
|
|
175
|
+
password: z.ZodString;
|
|
176
|
+
}, z.core.$strip>;
|
|
177
|
+
declare const RegisterRequestSchema: z.ZodObject<{
|
|
178
|
+
email: z.ZodEmail;
|
|
179
|
+
password: z.ZodString;
|
|
180
|
+
confirmPassword: z.ZodString;
|
|
181
|
+
}, z.core.$strip>;
|
|
182
|
+
declare const ChangePasswordSchema: z.ZodObject<{
|
|
183
|
+
currentPassword: z.ZodString;
|
|
184
|
+
newPassword: z.ZodString;
|
|
185
|
+
confirmPassword: z.ZodString;
|
|
186
|
+
}, z.core.$strip>;
|
|
187
|
+
declare const AuthSessionSchema: z.ZodObject<{
|
|
188
|
+
sessionId: z.ZodString;
|
|
189
|
+
userId: z.ZodString;
|
|
190
|
+
token: z.ZodString;
|
|
191
|
+
refreshToken: z.ZodOptional<z.ZodString>;
|
|
192
|
+
expiresAt: z.ZodCoercedDate<unknown>;
|
|
193
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
194
|
+
}, z.core.$strip>;
|
|
195
|
+
declare const AuthResponseSchema: z.ZodObject<{
|
|
196
|
+
success: z.ZodBoolean;
|
|
197
|
+
message: z.ZodString;
|
|
198
|
+
token: z.ZodOptional<z.ZodString>;
|
|
199
|
+
refreshToken: z.ZodOptional<z.ZodString>;
|
|
200
|
+
user: z.ZodOptional<z.ZodObject<{
|
|
201
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
202
|
+
email: z.ZodEmail;
|
|
203
|
+
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
204
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
205
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
206
|
+
userId: z.ZodString;
|
|
207
|
+
userRole: z.ZodDefault<z.ZodEnum<{
|
|
208
|
+
ADMIN: "ADMIN";
|
|
209
|
+
AUTHOR: "AUTHOR";
|
|
210
|
+
USER: "USER";
|
|
211
|
+
}>>;
|
|
212
|
+
userStatus: z.ZodDefault<z.ZodEnum<{
|
|
213
|
+
ACTIVE: "ACTIVE";
|
|
214
|
+
INACTIVE: "INACTIVE";
|
|
215
|
+
BANNED: "BANNED";
|
|
216
|
+
}>>;
|
|
217
|
+
userPreferences: z.ZodOptional<z.ZodObject<{
|
|
218
|
+
theme: z.ZodDefault<z.ZodEnum<{
|
|
219
|
+
LIGHT: "LIGHT";
|
|
220
|
+
DARK: "DARK";
|
|
221
|
+
SYSTEM: "SYSTEM";
|
|
222
|
+
}>>;
|
|
223
|
+
language: z.ZodDefault<z.ZodEnum<{
|
|
224
|
+
[x: string]: string;
|
|
225
|
+
}>>;
|
|
226
|
+
emailNotifications: z.ZodDefault<z.ZodBoolean>;
|
|
227
|
+
pushNotifications: z.ZodDefault<z.ZodBoolean>;
|
|
228
|
+
newsletter: z.ZodDefault<z.ZodBoolean>;
|
|
229
|
+
timezone: z.ZodDefault<z.ZodString>;
|
|
230
|
+
}, z.core.$strip>>;
|
|
231
|
+
userProfile: z.ZodOptional<z.ZodObject<{
|
|
232
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
233
|
+
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
234
|
+
biography: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
235
|
+
profilePicture: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
236
|
+
}, z.core.$strip>>;
|
|
237
|
+
}, z.core.$strip>>;
|
|
238
|
+
}, z.core.$strip>;
|
|
239
|
+
declare const OAuthProviderEnum: z.ZodEnum<{
|
|
240
|
+
GOOGLE: "GOOGLE";
|
|
241
|
+
GITHUB: "GITHUB";
|
|
242
|
+
DISCORD: "DISCORD";
|
|
243
|
+
MICROSOFT: "MICROSOFT";
|
|
244
|
+
}>;
|
|
245
|
+
declare const OAuthCallbackSchema: z.ZodObject<{
|
|
246
|
+
code: z.ZodString;
|
|
247
|
+
state: z.ZodOptional<z.ZodString>;
|
|
248
|
+
provider: z.ZodEnum<{
|
|
249
|
+
GOOGLE: "GOOGLE";
|
|
250
|
+
GITHUB: "GITHUB";
|
|
251
|
+
DISCORD: "DISCORD";
|
|
252
|
+
MICROSOFT: "MICROSOFT";
|
|
253
|
+
}>;
|
|
254
|
+
}, z.core.$strip>;
|
|
255
|
+
type Id = z.infer<typeof IdSchema>;
|
|
256
|
+
type Pagination = z.infer<typeof PaginationSchema>;
|
|
257
|
+
type ApiResponse = z.infer<typeof ApiResponseSchema>;
|
|
258
|
+
type User = z.infer<typeof UserSchema>;
|
|
259
|
+
type SafeUser = z.infer<typeof SafeUserSchema>;
|
|
260
|
+
type UserRole = z.infer<typeof UserRoleEnum>;
|
|
261
|
+
type UserStatus = z.infer<typeof UserStatusEnum>;
|
|
262
|
+
type UserPreferences = z.infer<typeof UserPreferencesSchema>;
|
|
263
|
+
type UserProfile = z.infer<typeof UserProfileSchema>;
|
|
264
|
+
type LoginRequest = z.infer<typeof LoginRequestSchema>;
|
|
265
|
+
type RegisterRequest = z.infer<typeof RegisterRequestSchema>;
|
|
266
|
+
type ChangePassword = z.infer<typeof ChangePasswordSchema>;
|
|
267
|
+
type AuthSession = z.infer<typeof AuthSessionSchema>;
|
|
268
|
+
type AuthResponse = z.infer<typeof AuthResponseSchema>;
|
|
269
|
+
type OAuthCallback = z.infer<typeof OAuthCallbackSchema>;
|
|
270
|
+
|
|
271
|
+
declare const AddressSchema: z.ZodObject<{
|
|
272
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
273
|
+
state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
274
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
275
|
+
countryCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
276
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
277
|
+
latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
278
|
+
longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
279
|
+
addressLine1: z.ZodString;
|
|
280
|
+
addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
281
|
+
fullName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
282
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
283
|
+
}, z.core.$strip>;
|
|
284
|
+
type Address = z.infer<typeof AddressSchema>;
|
|
285
|
+
|
|
286
|
+
type AddressCardProps = {
|
|
287
|
+
address: Address;
|
|
288
|
+
onEdit?: () => void;
|
|
289
|
+
onDelete?: () => void;
|
|
290
|
+
selected?: boolean;
|
|
291
|
+
className?: string;
|
|
292
|
+
};
|
|
293
|
+
declare function AddressCard({ address, onEdit, onDelete, selected, className }: AddressCardProps): react_jsx_runtime.JSX.Element;
|
|
294
|
+
|
|
295
|
+
type AddressFormProps = {
|
|
296
|
+
initial?: Partial<Address>;
|
|
297
|
+
onSubmit: (values: Address) => Promise<void> | void;
|
|
298
|
+
onCancel?: () => void;
|
|
299
|
+
submitLabel?: string;
|
|
300
|
+
className?: string;
|
|
301
|
+
};
|
|
302
|
+
declare function AddressForm({ initial, onSubmit, onCancel, submitLabel, className }: AddressFormProps): react_jsx_runtime.JSX.Element;
|
|
303
|
+
|
|
304
|
+
type AddressSelectorProps = {
|
|
305
|
+
addresses: Address[];
|
|
306
|
+
selectedIndex?: number;
|
|
307
|
+
onSelect: (index: number, address: Address) => void;
|
|
308
|
+
onAdd?: () => void;
|
|
309
|
+
onEdit?: (index: number, address: Address) => void;
|
|
310
|
+
onDelete?: (index: number, address: Address) => void;
|
|
311
|
+
className?: string;
|
|
312
|
+
};
|
|
313
|
+
declare function AddressSelector({ addresses, selectedIndex, onSelect, onAdd, onEdit, onDelete, className, }: AddressSelectorProps): react_jsx_runtime.JSX.Element;
|
|
314
|
+
|
|
315
|
+
type ChangePasswordFormProps = {
|
|
316
|
+
onSubmit: (values: ChangePassword) => Promise<void> | void;
|
|
317
|
+
error?: string;
|
|
318
|
+
className?: string;
|
|
319
|
+
};
|
|
320
|
+
declare function ChangePasswordForm({ onSubmit, error, className }: ChangePasswordFormProps): react_jsx_runtime.JSX.Element;
|
|
321
|
+
|
|
322
|
+
type ForgotPasswordFormProps = {
|
|
323
|
+
onSubmit: (email: string) => Promise<void> | void;
|
|
324
|
+
error?: string;
|
|
325
|
+
className?: string;
|
|
326
|
+
};
|
|
327
|
+
declare function ForgotPasswordForm({ onSubmit, error, className }: ForgotPasswordFormProps): react_jsx_runtime.JSX.Element;
|
|
328
|
+
|
|
329
|
+
type LoginFormValues = LoginRequest & {
|
|
330
|
+
rememberMe: boolean;
|
|
331
|
+
};
|
|
332
|
+
type LoginFormProps = {
|
|
333
|
+
onSubmit: (values: LoginFormValues) => Promise<void> | void;
|
|
334
|
+
error?: string;
|
|
335
|
+
className?: string;
|
|
336
|
+
};
|
|
337
|
+
declare function LoginForm({ onSubmit, error, className }: LoginFormProps): react_jsx_runtime.JSX.Element;
|
|
338
|
+
|
|
339
|
+
type OAuthProvider = OAuthCallback['provider'];
|
|
340
|
+
type OAuthButtonsProps = {
|
|
341
|
+
providers?: OAuthProvider[];
|
|
342
|
+
onProvider: (provider: OAuthProvider) => Promise<void> | void;
|
|
343
|
+
className?: string;
|
|
344
|
+
};
|
|
345
|
+
declare function OAuthButtons({ providers, onProvider, className, }: OAuthButtonsProps): react_jsx_runtime.JSX.Element;
|
|
346
|
+
|
|
347
|
+
type RegisterFormProps = {
|
|
348
|
+
onSubmit: (values: Omit<RegisterRequest, 'confirmPassword'>) => Promise<void> | void;
|
|
349
|
+
error?: string;
|
|
350
|
+
className?: string;
|
|
351
|
+
};
|
|
352
|
+
declare function RegisterForm({ onSubmit, error, className }: RegisterFormProps): react_jsx_runtime.JSX.Element;
|
|
353
|
+
|
|
354
|
+
type SessionExpiredBannerProps = {
|
|
355
|
+
onSignIn?: () => void;
|
|
356
|
+
message?: string;
|
|
357
|
+
className?: string;
|
|
358
|
+
};
|
|
359
|
+
declare function SessionExpiredBanner({ onSignIn, message, className, }: SessionExpiredBannerProps): react_jsx_runtime.JSX.Element;
|
|
360
|
+
|
|
361
|
+
declare const CartItemSchema: z.ZodObject<{
|
|
362
|
+
cartItemId: z.ZodString;
|
|
363
|
+
productId: z.ZodString;
|
|
364
|
+
name: z.ZodString;
|
|
365
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
366
|
+
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
367
|
+
variant: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
368
|
+
price: z.ZodNumber;
|
|
369
|
+
currency: z.ZodDefault<z.ZodString>;
|
|
370
|
+
quantity: z.ZodNumber;
|
|
371
|
+
maxQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
372
|
+
}, z.core.$strip>;
|
|
373
|
+
declare const CartSchema: z.ZodObject<{
|
|
374
|
+
cartId: z.ZodString;
|
|
375
|
+
items: z.ZodArray<z.ZodObject<{
|
|
376
|
+
cartItemId: z.ZodString;
|
|
377
|
+
productId: z.ZodString;
|
|
378
|
+
name: z.ZodString;
|
|
379
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
380
|
+
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
381
|
+
variant: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
382
|
+
price: z.ZodNumber;
|
|
383
|
+
currency: z.ZodDefault<z.ZodString>;
|
|
384
|
+
quantity: z.ZodNumber;
|
|
385
|
+
maxQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
386
|
+
}, z.core.$strip>>;
|
|
387
|
+
totals: z.ZodObject<{
|
|
388
|
+
subtotal: z.ZodNumber;
|
|
389
|
+
discountTotal: z.ZodDefault<z.ZodNumber>;
|
|
390
|
+
taxTotal: z.ZodDefault<z.ZodNumber>;
|
|
391
|
+
serviceFee: z.ZodDefault<z.ZodNumber>;
|
|
392
|
+
shippingTotal: z.ZodDefault<z.ZodNumber>;
|
|
393
|
+
total: z.ZodNumber;
|
|
394
|
+
currency: z.ZodDefault<z.ZodString>;
|
|
395
|
+
}, z.core.$strip>;
|
|
396
|
+
}, z.core.$strip>;
|
|
397
|
+
type CartItem$1 = z.infer<typeof CartItemSchema>;
|
|
398
|
+
type Cart = z.infer<typeof CartSchema>;
|
|
399
|
+
|
|
400
|
+
type CartBadgeProps = {
|
|
401
|
+
cart: Cart;
|
|
402
|
+
onClick?: () => void;
|
|
403
|
+
className?: string;
|
|
404
|
+
};
|
|
405
|
+
declare function CartBadge({ cart, onClick, className }: CartBadgeProps): react_jsx_runtime.JSX.Element;
|
|
406
|
+
|
|
407
|
+
type CartItemProps = {
|
|
408
|
+
item: CartItem$1;
|
|
409
|
+
onQuantityChange?: (id: string, qty: number) => void;
|
|
410
|
+
onRemove?: (id: string) => void;
|
|
411
|
+
compact?: boolean;
|
|
412
|
+
className?: string;
|
|
413
|
+
};
|
|
414
|
+
declare function CartItem({ item, onQuantityChange, onRemove, compact, className, }: CartItemProps): react_jsx_runtime.JSX.Element;
|
|
415
|
+
|
|
416
|
+
type CartPreviewProps = {
|
|
417
|
+
cart: Cart;
|
|
418
|
+
defaultOpen?: boolean;
|
|
419
|
+
className?: string;
|
|
420
|
+
};
|
|
421
|
+
declare function CartPreview({ cart, defaultOpen, className }: CartPreviewProps): react_jsx_runtime.JSX.Element;
|
|
422
|
+
|
|
423
|
+
type CartSummaryProps = {
|
|
424
|
+
cart: Cart;
|
|
425
|
+
onQuantityChange?: (id: string, qty: number) => void;
|
|
426
|
+
onRemove?: (id: string) => void;
|
|
427
|
+
onCouponApply?: (code: string) => Promise<{
|
|
428
|
+
success: boolean;
|
|
429
|
+
message?: string;
|
|
430
|
+
}>;
|
|
431
|
+
onCouponRemove?: () => void;
|
|
432
|
+
appliedCoupon?: string;
|
|
433
|
+
onCheckout?: () => void;
|
|
434
|
+
checkoutLabel?: string;
|
|
435
|
+
showTotals?: boolean;
|
|
436
|
+
showCoupon?: boolean;
|
|
437
|
+
className?: string;
|
|
438
|
+
};
|
|
439
|
+
declare function CartSummary({ cart, onQuantityChange, onRemove, onCouponApply, onCouponRemove, appliedCoupon, onCheckout, checkoutLabel, showTotals, showCoupon, className, }: CartSummaryProps): react_jsx_runtime.JSX.Element;
|
|
440
|
+
|
|
441
|
+
declare function RevenueBarChart({ className }: {
|
|
442
|
+
className?: string;
|
|
443
|
+
}): react_jsx_runtime.JSX.Element;
|
|
444
|
+
declare function UserActivityLineChart({ className }: {
|
|
445
|
+
className?: string;
|
|
446
|
+
}): react_jsx_runtime.JSX.Element;
|
|
447
|
+
declare function SalesByCategoryDoughnut({ className }: {
|
|
448
|
+
className?: string;
|
|
449
|
+
}): react_jsx_runtime.JSX.Element;
|
|
450
|
+
declare function ProductComparisonRadar({ className }: {
|
|
451
|
+
className?: string;
|
|
452
|
+
}): react_jsx_runtime.JSX.Element;
|
|
453
|
+
declare function RegionalSalesPolar({ className }: {
|
|
454
|
+
className?: string;
|
|
455
|
+
}): react_jsx_runtime.JSX.Element;
|
|
456
|
+
|
|
457
|
+
type ChatMessage = {
|
|
458
|
+
id: string;
|
|
459
|
+
role: 'user' | 'agent';
|
|
460
|
+
text: string;
|
|
461
|
+
timestamp?: string;
|
|
462
|
+
};
|
|
463
|
+
type ChatBoxProps = {
|
|
464
|
+
title?: string;
|
|
465
|
+
subtitle?: string;
|
|
466
|
+
placeholder?: string;
|
|
467
|
+
initialMessages?: ChatMessage[];
|
|
468
|
+
onSend?: (text: string) => Promise<string> | string;
|
|
469
|
+
className?: string;
|
|
470
|
+
};
|
|
471
|
+
declare function ChatBox({ title, subtitle, placeholder, initialMessages, onSend, className, }: ChatBoxProps): react_jsx_runtime.JSX.Element;
|
|
472
|
+
|
|
473
|
+
type CouponInputProps = {
|
|
474
|
+
onApply: (code: string) => Promise<{
|
|
475
|
+
success: boolean;
|
|
476
|
+
message?: string;
|
|
477
|
+
}> | {
|
|
478
|
+
success: boolean;
|
|
479
|
+
message?: string;
|
|
480
|
+
};
|
|
481
|
+
onRemove?: () => void;
|
|
482
|
+
appliedCode?: string;
|
|
483
|
+
className?: string;
|
|
484
|
+
};
|
|
485
|
+
declare function CouponInput({ onApply, onRemove, appliedCode, className }: CouponInputProps): react_jsx_runtime.JSX.Element;
|
|
486
|
+
|
|
487
|
+
declare const DiscountTypeEnum: z.ZodEnum<{
|
|
488
|
+
PERCENTAGE: "PERCENTAGE";
|
|
489
|
+
FIXED: "FIXED";
|
|
490
|
+
FREE_SHIPPING: "FREE_SHIPPING";
|
|
491
|
+
}>;
|
|
492
|
+
type DiscountType = z.infer<typeof DiscountTypeEnum>;
|
|
493
|
+
|
|
494
|
+
type DiscountBadgeProps = {
|
|
495
|
+
discountType: DiscountType;
|
|
496
|
+
discountValue: number;
|
|
497
|
+
currency?: string;
|
|
498
|
+
size?: 'sm' | 'md' | 'lg';
|
|
499
|
+
className?: string;
|
|
500
|
+
};
|
|
501
|
+
declare function DiscountBadge({ discountType, discountValue, currency, size, className }: DiscountBadgeProps): react_jsx_runtime.JSX.Element;
|
|
502
|
+
|
|
503
|
+
declare const AppLanguageEnum: z.ZodEnum<{
|
|
504
|
+
[x: string]: string;
|
|
505
|
+
}>;
|
|
506
|
+
type AppLanguage = z.infer<typeof AppLanguageEnum>;
|
|
507
|
+
|
|
508
|
+
type DirectionContextValue = {
|
|
509
|
+
lang: AppLanguage;
|
|
510
|
+
dir: 'ltr' | 'rtl';
|
|
511
|
+
isRTL: boolean;
|
|
512
|
+
};
|
|
513
|
+
declare function useDirection(): DirectionContextValue;
|
|
514
|
+
type DirectionProviderProps = {
|
|
515
|
+
lang: AppLanguage;
|
|
516
|
+
children: React.ReactNode;
|
|
517
|
+
applyToDocument?: boolean;
|
|
518
|
+
};
|
|
519
|
+
declare function DirectionProvider({ lang, children, applyToDocument }: DirectionProviderProps): react_jsx_runtime.JSX.Element;
|
|
520
|
+
|
|
521
|
+
type LanguageSwitcherProps = {
|
|
522
|
+
value?: AppLanguage;
|
|
523
|
+
onChange?: (lang: AppLanguage) => void;
|
|
524
|
+
languages?: AppLanguage[];
|
|
525
|
+
className?: string;
|
|
526
|
+
};
|
|
527
|
+
declare function LanguageSwitcher({ value, onChange, languages, className, }: LanguageSwitcherProps): react_jsx_runtime.JSX.Element;
|
|
528
|
+
|
|
529
|
+
type CountrySelectorProps = {
|
|
530
|
+
value: string;
|
|
531
|
+
onChange: (iso2: string) => void;
|
|
532
|
+
id?: string;
|
|
533
|
+
label?: string;
|
|
534
|
+
placeholder?: string;
|
|
535
|
+
disabled?: boolean;
|
|
536
|
+
hint?: string;
|
|
537
|
+
error?: string;
|
|
538
|
+
required?: boolean;
|
|
539
|
+
className?: string;
|
|
540
|
+
};
|
|
541
|
+
declare function CountrySelector({ value, onChange, id: idProp, label, placeholder, disabled, hint, error, required, className, }: CountrySelectorProps): react_jsx_runtime.JSX.Element;
|
|
542
|
+
|
|
543
|
+
declare const GeoPointSchema: z.ZodObject<{
|
|
544
|
+
latitude: z.ZodNumber;
|
|
545
|
+
longitude: z.ZodNumber;
|
|
546
|
+
}, z.core.$strip>;
|
|
547
|
+
declare const LocationSchema: z.ZodObject<{
|
|
548
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
549
|
+
state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
550
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
551
|
+
countryCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
552
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
553
|
+
latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
554
|
+
longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
555
|
+
}, z.core.$strip>;
|
|
556
|
+
type GeoPoint = z.infer<typeof GeoPointSchema>;
|
|
557
|
+
type Location = z.infer<typeof LocationSchema>;
|
|
558
|
+
|
|
559
|
+
type GeoPointDisplayProps = {
|
|
560
|
+
point: GeoPoint;
|
|
561
|
+
label?: string;
|
|
562
|
+
showMapLink?: boolean;
|
|
563
|
+
precision?: number;
|
|
564
|
+
className?: string;
|
|
565
|
+
};
|
|
566
|
+
declare function GeoPointDisplay({ point, label, showMapLink, precision, className, }: GeoPointDisplayProps): react_jsx_runtime.JSX.Element;
|
|
567
|
+
|
|
568
|
+
type LocationPickerProps = {
|
|
569
|
+
initial?: Partial<Location>;
|
|
570
|
+
onSubmit: (location: Location) => Promise<void> | void;
|
|
571
|
+
onCancel?: () => void;
|
|
572
|
+
error?: string;
|
|
573
|
+
className?: string;
|
|
574
|
+
};
|
|
575
|
+
declare function LocationPicker({ initial, onSubmit, onCancel, error, className }: LocationPickerProps): react_jsx_runtime.JSX.Element;
|
|
576
|
+
|
|
577
|
+
type CurrencySelectorProps = {
|
|
578
|
+
value: string;
|
|
579
|
+
onChange: (currency: string) => void;
|
|
580
|
+
id?: string;
|
|
581
|
+
label?: string;
|
|
582
|
+
disabled?: boolean;
|
|
583
|
+
className?: string;
|
|
584
|
+
};
|
|
585
|
+
declare function CurrencySelector({ value, onChange, id, label, disabled, className, }: CurrencySelectorProps): react_jsx_runtime.JSX.Element;
|
|
586
|
+
|
|
587
|
+
declare const OrderTotalsSchema: z.ZodObject<{
|
|
588
|
+
subtotal: z.ZodNumber;
|
|
589
|
+
discountTotal: z.ZodDefault<z.ZodNumber>;
|
|
590
|
+
taxTotal: z.ZodDefault<z.ZodNumber>;
|
|
591
|
+
serviceFee: z.ZodDefault<z.ZodNumber>;
|
|
592
|
+
shippingTotal: z.ZodDefault<z.ZodNumber>;
|
|
593
|
+
total: z.ZodNumber;
|
|
594
|
+
currency: z.ZodDefault<z.ZodString>;
|
|
595
|
+
}, z.core.$strip>;
|
|
596
|
+
type OrderTotals = z.infer<typeof OrderTotalsSchema>;
|
|
597
|
+
|
|
598
|
+
type OrderTotalsCardProps = {
|
|
599
|
+
totals: OrderTotals;
|
|
600
|
+
locale?: string;
|
|
601
|
+
className?: string;
|
|
602
|
+
};
|
|
603
|
+
declare function OrderTotalsCard({ totals, locale, className }: OrderTotalsCardProps): react_jsx_runtime.JSX.Element;
|
|
604
|
+
|
|
605
|
+
type PriceDisplayProps = {
|
|
606
|
+
amount: number;
|
|
607
|
+
currency?: string;
|
|
608
|
+
locale?: string;
|
|
609
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
610
|
+
strikethrough?: boolean;
|
|
611
|
+
className?: string;
|
|
612
|
+
};
|
|
613
|
+
declare function PriceDisplay({ amount, currency, locale, size, strikethrough, className, }: PriceDisplayProps): react_jsx_runtime.JSX.Element;
|
|
614
|
+
|
|
615
|
+
type NotificationItem = {
|
|
616
|
+
id: string;
|
|
617
|
+
title: string;
|
|
618
|
+
description?: string;
|
|
619
|
+
timestamp: string;
|
|
620
|
+
read: boolean;
|
|
621
|
+
variant?: 'info' | 'success' | 'warning' | 'error';
|
|
622
|
+
onClick?: () => void;
|
|
623
|
+
};
|
|
624
|
+
type NotificationMenuProps = {
|
|
625
|
+
items: NotificationItem[];
|
|
626
|
+
onMarkAllRead?: () => void;
|
|
627
|
+
onViewAll?: () => void;
|
|
628
|
+
align?: 'left' | 'right';
|
|
629
|
+
className?: string;
|
|
630
|
+
};
|
|
631
|
+
declare function NotificationMenu({ items, onMarkAllRead, onViewAll, align, className, }: NotificationMenuProps): react_jsx_runtime.JSX.Element;
|
|
632
|
+
|
|
633
|
+
declare const PaymentStatusEnum: z.ZodEnum<{
|
|
634
|
+
FAILED: "FAILED";
|
|
635
|
+
PENDING: "PENDING";
|
|
636
|
+
AUTHORIZED: "AUTHORIZED";
|
|
637
|
+
PAID: "PAID";
|
|
638
|
+
CANCELLED: "CANCELLED";
|
|
639
|
+
REFUNDED: "REFUNDED";
|
|
640
|
+
}>;
|
|
641
|
+
declare const PaymentMethodEnum: z.ZodEnum<{
|
|
642
|
+
CREDIT_CARD: "CREDIT_CARD";
|
|
643
|
+
DEBIT_CARD: "DEBIT_CARD";
|
|
644
|
+
BANK_TRANSFER: "BANK_TRANSFER";
|
|
645
|
+
CASH: "CASH";
|
|
646
|
+
WALLET: "WALLET";
|
|
647
|
+
CRYPTO: "CRYPTO";
|
|
648
|
+
}>;
|
|
649
|
+
declare const PaymentBaseSchema: z.ZodObject<{
|
|
650
|
+
paymentId: z.ZodString;
|
|
651
|
+
provider: z.ZodString;
|
|
652
|
+
providerPaymentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
653
|
+
method: z.ZodOptional<z.ZodEnum<{
|
|
654
|
+
CREDIT_CARD: "CREDIT_CARD";
|
|
655
|
+
DEBIT_CARD: "DEBIT_CARD";
|
|
656
|
+
BANK_TRANSFER: "BANK_TRANSFER";
|
|
657
|
+
CASH: "CASH";
|
|
658
|
+
WALLET: "WALLET";
|
|
659
|
+
CRYPTO: "CRYPTO";
|
|
660
|
+
}>>;
|
|
661
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
662
|
+
FAILED: "FAILED";
|
|
663
|
+
PENDING: "PENDING";
|
|
664
|
+
AUTHORIZED: "AUTHORIZED";
|
|
665
|
+
PAID: "PAID";
|
|
666
|
+
CANCELLED: "CANCELLED";
|
|
667
|
+
REFUNDED: "REFUNDED";
|
|
668
|
+
}>>;
|
|
669
|
+
amount: z.ZodNumber;
|
|
670
|
+
currency: z.ZodDefault<z.ZodString>;
|
|
671
|
+
}, z.core.$strip>;
|
|
672
|
+
declare const CardBrandEnum: z.ZodEnum<{
|
|
673
|
+
VISA: "VISA";
|
|
674
|
+
MASTERCARD: "MASTERCARD";
|
|
675
|
+
AMEX: "AMEX";
|
|
676
|
+
DISCOVER: "DISCOVER";
|
|
677
|
+
TROY: "TROY";
|
|
678
|
+
MIR: "MIR";
|
|
679
|
+
UNIONPAY: "UNIONPAY";
|
|
680
|
+
JCB: "JCB";
|
|
681
|
+
UNKNOWN: "UNKNOWN";
|
|
682
|
+
}>;
|
|
683
|
+
declare const CreditCardInputSchema: z.ZodObject<{
|
|
684
|
+
cardholderName: z.ZodString;
|
|
685
|
+
cardNumber: z.ZodString;
|
|
686
|
+
expiryMonth: z.ZodString;
|
|
687
|
+
expiryYear: z.ZodString;
|
|
688
|
+
cvv: z.ZodString;
|
|
689
|
+
}, z.core.$strip>;
|
|
690
|
+
declare const SavedCardSchema: z.ZodObject<{
|
|
691
|
+
cardId: z.ZodString;
|
|
692
|
+
last4: z.ZodString;
|
|
693
|
+
brand: z.ZodEnum<{
|
|
694
|
+
VISA: "VISA";
|
|
695
|
+
MASTERCARD: "MASTERCARD";
|
|
696
|
+
AMEX: "AMEX";
|
|
697
|
+
DISCOVER: "DISCOVER";
|
|
698
|
+
TROY: "TROY";
|
|
699
|
+
MIR: "MIR";
|
|
700
|
+
UNIONPAY: "UNIONPAY";
|
|
701
|
+
JCB: "JCB";
|
|
702
|
+
UNKNOWN: "UNKNOWN";
|
|
703
|
+
}>;
|
|
704
|
+
cardholderName: z.ZodString;
|
|
705
|
+
expiryMonth: z.ZodString;
|
|
706
|
+
expiryYear: z.ZodString;
|
|
707
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
708
|
+
}, z.core.$strip>;
|
|
709
|
+
type PaymentStatus = z.infer<typeof PaymentStatusEnum>;
|
|
710
|
+
type PaymentMethod = z.infer<typeof PaymentMethodEnum>;
|
|
711
|
+
type PaymentBase = z.infer<typeof PaymentBaseSchema>;
|
|
712
|
+
type CardBrand = z.infer<typeof CardBrandEnum>;
|
|
713
|
+
type CreditCardInput = z.infer<typeof CreditCardInputSchema>;
|
|
714
|
+
type SavedCard = z.infer<typeof SavedCardSchema>;
|
|
715
|
+
|
|
716
|
+
type CheckoutSuccessStateProps = {
|
|
717
|
+
payment: PaymentBase;
|
|
718
|
+
address?: Address;
|
|
719
|
+
onReset?: () => void;
|
|
720
|
+
locale?: string;
|
|
721
|
+
};
|
|
722
|
+
declare function CheckoutSuccessState({ payment, address, onReset, locale, }: CheckoutSuccessStateProps): react_jsx_runtime.JSX.Element;
|
|
723
|
+
|
|
724
|
+
declare function detectBrand(number: string): CardBrand;
|
|
725
|
+
type CreditCardFormProps = {
|
|
726
|
+
onSubmit: (values: CreditCardInput) => Promise<void> | void;
|
|
727
|
+
onCancel?: () => void;
|
|
728
|
+
error?: string;
|
|
729
|
+
className?: string;
|
|
730
|
+
};
|
|
731
|
+
declare function CreditCardForm({ onSubmit, onCancel, error, className }: CreditCardFormProps): react_jsx_runtime.JSX.Element;
|
|
732
|
+
|
|
733
|
+
type CreditCardVisualProps = {
|
|
734
|
+
cardNumber?: string;
|
|
735
|
+
cardholderName?: string;
|
|
736
|
+
expiryMonth?: string;
|
|
737
|
+
expiryYear?: string;
|
|
738
|
+
cvv?: string;
|
|
739
|
+
brand?: CardBrand;
|
|
740
|
+
flipped?: boolean;
|
|
741
|
+
className?: string;
|
|
742
|
+
};
|
|
743
|
+
declare function CreditCardVisual({ cardNumber, cardholderName, expiryMonth, expiryYear, cvv, brand, flipped, className, }: CreditCardVisualProps): react_jsx_runtime.JSX.Element;
|
|
744
|
+
|
|
745
|
+
type PaymentMethodSelectorProps = {
|
|
746
|
+
value?: PaymentMethod;
|
|
747
|
+
onChange?: (method: PaymentMethod) => void;
|
|
748
|
+
disabled?: boolean;
|
|
749
|
+
className?: string;
|
|
750
|
+
};
|
|
751
|
+
declare function PaymentMethodSelector({ value, onChange, disabled, className, }: PaymentMethodSelectorProps): react_jsx_runtime.JSX.Element;
|
|
752
|
+
|
|
753
|
+
type PaymentStatusBadgeProps = {
|
|
754
|
+
status: PaymentStatus;
|
|
755
|
+
size?: 'sm' | 'md' | 'lg';
|
|
756
|
+
dot?: boolean;
|
|
757
|
+
};
|
|
758
|
+
declare function PaymentStatusBadge({ status, size, dot }: PaymentStatusBadgeProps): react_jsx_runtime.JSX.Element;
|
|
759
|
+
|
|
760
|
+
type PaymentSummaryCardProps = {
|
|
761
|
+
payment: PaymentBase;
|
|
762
|
+
className?: string;
|
|
763
|
+
};
|
|
764
|
+
declare function PaymentSummaryCard({ payment, className }: PaymentSummaryCardProps): react_jsx_runtime.JSX.Element;
|
|
765
|
+
|
|
766
|
+
type SavedCardSelectorProps = {
|
|
767
|
+
cards: SavedCard[];
|
|
768
|
+
selectedCardId?: string;
|
|
769
|
+
onSelect: (cardId: string, card: SavedCard) => void;
|
|
770
|
+
onRemove?: (cardId: string) => void;
|
|
771
|
+
onAddNew?: () => void;
|
|
772
|
+
className?: string;
|
|
773
|
+
};
|
|
774
|
+
declare function SavedCardSelector({ cards, selectedCardId, onSelect, onRemove, onAddNew, className, }: SavedCardSelectorProps): react_jsx_runtime.JSX.Element;
|
|
775
|
+
|
|
776
|
+
declare const SeoFieldsSchema: z.ZodObject<{
|
|
777
|
+
seoTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
778
|
+
seoDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
779
|
+
keywords: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
780
|
+
}, z.core.$strip>;
|
|
781
|
+
type SeoFields = z.infer<typeof SeoFieldsSchema>;
|
|
782
|
+
|
|
783
|
+
type SeoFormProps = {
|
|
784
|
+
initial?: Partial<SeoFields>;
|
|
785
|
+
onSubmit: (values: SeoFields) => Promise<void> | void;
|
|
786
|
+
onCancel?: () => void;
|
|
787
|
+
error?: string;
|
|
788
|
+
className?: string;
|
|
789
|
+
};
|
|
790
|
+
declare function SeoForm({ initial, onSubmit, onCancel, error, className }: SeoFormProps): react_jsx_runtime.JSX.Element;
|
|
791
|
+
|
|
792
|
+
type SeoPreviewProps = {
|
|
793
|
+
seo: SeoFields;
|
|
794
|
+
url?: string;
|
|
795
|
+
siteName?: string;
|
|
796
|
+
className?: string;
|
|
797
|
+
};
|
|
798
|
+
declare function SeoPreview({ seo, url, siteName, className }: SeoPreviewProps): react_jsx_runtime.JSX.Element;
|
|
799
|
+
|
|
800
|
+
declare const VisibilityEnum: z.ZodEnum<{
|
|
801
|
+
PUBLIC: "PUBLIC";
|
|
802
|
+
PRIVATE: "PRIVATE";
|
|
803
|
+
UNLISTED: "UNLISTED";
|
|
804
|
+
}>;
|
|
805
|
+
declare const ProcessingStatusEnum: z.ZodEnum<{
|
|
806
|
+
UPLOADING: "UPLOADING";
|
|
807
|
+
PROCESSING: "PROCESSING";
|
|
808
|
+
READY: "READY";
|
|
809
|
+
FAILED: "FAILED";
|
|
810
|
+
}>;
|
|
811
|
+
type Visibility = z.infer<typeof VisibilityEnum>;
|
|
812
|
+
type ProcessingStatus = z.infer<typeof ProcessingStatusEnum>;
|
|
813
|
+
|
|
814
|
+
type ProcessingStatusIndicatorProps = {
|
|
815
|
+
status: ProcessingStatus;
|
|
816
|
+
label?: string;
|
|
817
|
+
progress?: number;
|
|
818
|
+
size?: 'sm' | 'md' | 'lg';
|
|
819
|
+
className?: string;
|
|
820
|
+
};
|
|
821
|
+
declare function ProcessingStatusIndicator({ status, label, progress, size, className, }: ProcessingStatusIndicatorProps): react_jsx_runtime.JSX.Element;
|
|
822
|
+
|
|
823
|
+
declare const PublishStatusEnum: z.ZodEnum<{
|
|
824
|
+
DRAFT: "DRAFT";
|
|
825
|
+
PUBLISHED: "PUBLISHED";
|
|
826
|
+
ARCHIVED: "ARCHIVED";
|
|
827
|
+
}>;
|
|
828
|
+
|
|
829
|
+
type PublishStatus = z.infer<typeof PublishStatusEnum>;
|
|
830
|
+
|
|
831
|
+
type PublishStatusBadgeProps = {
|
|
832
|
+
status: PublishStatus;
|
|
833
|
+
size?: 'sm' | 'md' | 'lg';
|
|
834
|
+
showIcon?: boolean;
|
|
835
|
+
className?: string;
|
|
836
|
+
};
|
|
837
|
+
declare function PublishStatusBadge({ status, size, showIcon, className }: PublishStatusBadgeProps): react_jsx_runtime.JSX.Element;
|
|
838
|
+
|
|
839
|
+
type VisibilityBadgeProps = {
|
|
840
|
+
visibility: Visibility;
|
|
841
|
+
size?: 'sm' | 'md' | 'lg';
|
|
842
|
+
showIcon?: boolean;
|
|
843
|
+
className?: string;
|
|
844
|
+
};
|
|
845
|
+
declare function VisibilityBadge({ visibility, size, showIcon, className }: VisibilityBadgeProps): react_jsx_runtime.JSX.Element;
|
|
846
|
+
|
|
847
|
+
type PlanInterval = 'MONTHLY' | 'YEARLY' | 'ONCE';
|
|
848
|
+
type SubscriptionPlan = {
|
|
849
|
+
planId: string;
|
|
850
|
+
name: string;
|
|
851
|
+
description?: string | null;
|
|
852
|
+
price: number;
|
|
853
|
+
currency?: string;
|
|
854
|
+
interval?: PlanInterval;
|
|
855
|
+
features?: string[];
|
|
856
|
+
isPopular?: boolean;
|
|
857
|
+
isActive?: boolean;
|
|
858
|
+
};
|
|
859
|
+
type SubscriptionPlanCardProps = {
|
|
860
|
+
plan: SubscriptionPlan;
|
|
861
|
+
isCurrent?: boolean;
|
|
862
|
+
isSelected?: boolean;
|
|
863
|
+
onSelect?: (planId: string) => void;
|
|
864
|
+
loading?: boolean;
|
|
865
|
+
className?: string;
|
|
866
|
+
};
|
|
867
|
+
declare function SubscriptionPlanCard({ plan, isCurrent, isSelected, onSelect, loading, className, }: SubscriptionPlanCardProps): react_jsx_runtime.JSX.Element;
|
|
868
|
+
|
|
869
|
+
type UserAvatarProps = {
|
|
870
|
+
user: SafeUser;
|
|
871
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
872
|
+
status?: 'online' | 'offline' | 'away' | 'busy';
|
|
873
|
+
className?: string;
|
|
874
|
+
};
|
|
875
|
+
declare function UserAvatar({ user, size, status, className }: UserAvatarProps): react_jsx_runtime.JSX.Element;
|
|
876
|
+
|
|
877
|
+
declare function UserMenu({ user, items, align, onlyAvatar, }: {
|
|
878
|
+
user: SafeUser;
|
|
879
|
+
items?: DropdownItem[];
|
|
880
|
+
align?: 'left' | 'right';
|
|
881
|
+
onlyAvatar?: boolean;
|
|
882
|
+
}): react_jsx_runtime.JSX.Element;
|
|
883
|
+
|
|
884
|
+
type UserPreferencesFormProps = {
|
|
885
|
+
initial?: Partial<UserPreferences>;
|
|
886
|
+
onSubmit: (values: UserPreferences) => Promise<void> | void;
|
|
887
|
+
error?: string;
|
|
888
|
+
className?: string;
|
|
889
|
+
};
|
|
890
|
+
declare function UserPreferencesForm({ initial, onSubmit, error, className }: UserPreferencesFormProps): react_jsx_runtime.JSX.Element;
|
|
891
|
+
|
|
892
|
+
type UserProfileCardProps = {
|
|
893
|
+
user: SafeUser;
|
|
894
|
+
actions?: React.ReactNode;
|
|
895
|
+
className?: string;
|
|
896
|
+
};
|
|
897
|
+
declare function UserProfileCard({ user, actions, className }: UserProfileCardProps): react_jsx_runtime.JSX.Element;
|
|
898
|
+
|
|
899
|
+
type UserProfileFormProps = {
|
|
900
|
+
initial?: Partial<UserProfile>;
|
|
901
|
+
onSubmit: (values: UserProfile) => Promise<void> | void;
|
|
902
|
+
onCancel?: () => void;
|
|
903
|
+
error?: string;
|
|
904
|
+
className?: string;
|
|
905
|
+
};
|
|
906
|
+
declare function UserProfileForm({ initial, onSubmit, onCancel, error, className }: UserProfileFormProps): react_jsx_runtime.JSX.Element;
|
|
907
|
+
|
|
908
|
+
type UserRoleBadgeProps = {
|
|
909
|
+
role: UserRole;
|
|
910
|
+
size?: 'sm' | 'md' | 'lg';
|
|
911
|
+
};
|
|
912
|
+
declare function UserRoleBadge({ role, size }: UserRoleBadgeProps): react_jsx_runtime.JSX.Element;
|
|
913
|
+
|
|
914
|
+
type UserStatusBadgeProps = {
|
|
915
|
+
status: UserStatus;
|
|
916
|
+
size?: 'sm' | 'md' | 'lg';
|
|
917
|
+
dot?: boolean;
|
|
918
|
+
};
|
|
919
|
+
declare function UserStatusBadge({ status, size, dot }: UserStatusBadgeProps): react_jsx_runtime.JSX.Element;
|
|
920
|
+
|
|
921
|
+
export { AddressCard, AddressForm, AddressSelector, ApiErrorSchema, type ApiResponse, ApiResponseSchema, ApiSuccessSchema, type AuthResponse, AuthResponseSchema, type AuthSession, AuthSessionSchema, BaseEntitySchema, CartBadge, CartItem, CartPreview, CartSummary, type ChangePassword, ChangePasswordForm, ChangePasswordSchema, ChatBox, CheckoutSuccessState, CountrySelector, CouponInput, CreditCardForm, CreditCardVisual, CurrencySelector, DateSchema, DirectionProvider, DiscountBadge, EmailSchema, ForgotPasswordForm, GeoPointDisplay, type Id, IdSchema, LanguageEnum, LanguageSwitcher, LocationPicker, LoginForm, type LoginRequest, LoginRequestSchema, NotificationMenu, NullableDateSchema, OAuthButtons, type OAuthCallback, OAuthCallbackSchema, OAuthProviderEnum, OrderTotalsCard, type Pagination, PaginationSchema, PasswordSchema, PaymentMethodSelector, PaymentStatusBadge, PaymentSummaryCard, PriceDisplay, ProcessingStatusIndicator, ProductComparisonRadar, PublishStatusBadge, RegionalSalesPolar, RegisterForm, type RegisterRequest, RegisterRequestSchema, RevenueBarChart, type SafeUser, SafeUserSchema, SalesByCategoryDoughnut, SavedCardSelector, SeoForm, SeoPreview, SessionExpiredBanner, SlugSchema, SortOrderEnum, StatusEnum, SubscriptionPlanCard, ThemeEnum, type User, UserActivityLineChart, UserAvatar, UserMenu, type UserPreferences, UserPreferencesForm, UserPreferencesSchema, type UserProfile, UserProfileCard, UserProfileForm, UserProfileSchema, type UserRole, UserRoleBadge, UserRoleEnum, UserSchema, type UserStatus, UserStatusBadge, UserStatusEnum, UuidSchema, VisibilityBadge, detectBrand, useDirection };
|