@uipath/apollo-wind 0.8.1 → 0.9.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.
Files changed (34) hide show
  1. package/dist/archived-ui-path.svg +3 -0
  2. package/dist/components/ui/index.cjs +2 -2
  3. package/dist/examples/admin-layout-example.cjs +490 -0
  4. package/dist/examples/admin-layout-example.js +411 -0
  5. package/dist/examples/app-shell-example.cjs +452 -0
  6. package/dist/examples/app-shell-example.js +418 -0
  7. package/dist/examples/dashboard-example.cjs +590 -0
  8. package/dist/examples/dashboard-example.js +556 -0
  9. package/dist/examples/data-management-example.cjs +584 -0
  10. package/dist/examples/data-management-example.js +550 -0
  11. package/dist/examples/flow-editor-layout-example.cjs +309 -0
  12. package/dist/examples/flow-editor-layout-example.js +269 -0
  13. package/dist/examples/flow-start-example.cjs +467 -0
  14. package/dist/examples/flow-start-example.js +433 -0
  15. package/dist/examples/form-builder-example.cjs +674 -0
  16. package/dist/examples/form-builder-example.js +640 -0
  17. package/dist/examples/new-project-example.cjs +550 -0
  18. package/dist/examples/new-project-example.js +516 -0
  19. package/dist/examples/settings-example.cjs +864 -0
  20. package/dist/examples/settings-example.js +830 -0
  21. package/dist/examples/vscode-example.cjs +340 -0
  22. package/dist/examples/vscode-example.js +270 -0
  23. package/dist/templates/admin-layout-example.d.ts +92 -0
  24. package/dist/templates/app-shell-example.d.ts +52 -0
  25. package/dist/templates/dashboard-example.d.ts +11 -0
  26. package/dist/templates/data-management-example.d.ts +1 -0
  27. package/dist/templates/flow-editor-layout-example.d.ts +22 -0
  28. package/dist/templates/flow-start-example.d.ts +30 -0
  29. package/dist/templates/form-builder-example.d.ts +1 -0
  30. package/dist/templates/new-project-example.d.ts +30 -0
  31. package/dist/templates/settings-example.d.ts +1 -0
  32. package/dist/templates/vscode-example.d.ts +80 -0
  33. package/dist/ui-path.svg +11 -0
  34. package/package.json +1 -1
@@ -0,0 +1,864 @@
1
+ "use strict";
2
+ var __webpack_require__ = {};
3
+ (()=>{
4
+ __webpack_require__.d = (exports1, definition)=>{
5
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
6
+ enumerable: true,
7
+ get: definition[key]
8
+ });
9
+ };
10
+ })();
11
+ (()=>{
12
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
13
+ })();
14
+ (()=>{
15
+ __webpack_require__.r = (exports1)=>{
16
+ if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
17
+ value: 'Module'
18
+ });
19
+ Object.defineProperty(exports1, '__esModule', {
20
+ value: true
21
+ });
22
+ };
23
+ })();
24
+ var __webpack_exports__ = {};
25
+ __webpack_require__.r(__webpack_exports__);
26
+ __webpack_require__.d(__webpack_exports__, {
27
+ SettingsExample: ()=>SettingsExample
28
+ });
29
+ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
30
+ const external_react_namespaceObject = require("react");
31
+ const external_lucide_react_namespaceObject = require("lucide-react");
32
+ const avatar_cjs_namespaceObject = require("../components/ui/avatar.cjs");
33
+ const button_cjs_namespaceObject = require("../components/ui/button.cjs");
34
+ const card_cjs_namespaceObject = require("../components/ui/card.cjs");
35
+ const input_cjs_namespaceObject = require("../components/ui/input.cjs");
36
+ const label_cjs_namespaceObject = require("../components/ui/label.cjs");
37
+ const select_cjs_namespaceObject = require("../components/ui/select.cjs");
38
+ const separator_cjs_namespaceObject = require("../components/ui/separator.cjs");
39
+ const switch_cjs_namespaceObject = require("../components/ui/switch.cjs");
40
+ const textarea_cjs_namespaceObject = require("../components/ui/textarea.cjs");
41
+ const index_cjs_namespaceObject = require("../lib/index.cjs");
42
+ const layout_index_cjs_namespaceObject = require("../components/ui/layout/index.cjs");
43
+ const navItems = [
44
+ {
45
+ id: 'profile',
46
+ label: 'Profile',
47
+ icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.User, {
48
+ className: "h-4 w-4"
49
+ })
50
+ },
51
+ {
52
+ id: 'account',
53
+ label: 'Account',
54
+ icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Key, {
55
+ className: "h-4 w-4"
56
+ })
57
+ },
58
+ {
59
+ id: 'appearance',
60
+ label: 'Appearance',
61
+ icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Palette, {
62
+ className: "h-4 w-4"
63
+ })
64
+ },
65
+ {
66
+ id: 'notifications',
67
+ label: 'Notifications',
68
+ icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Bell, {
69
+ className: "h-4 w-4"
70
+ })
71
+ },
72
+ {
73
+ id: 'security',
74
+ label: 'Security',
75
+ icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Shield, {
76
+ className: "h-4 w-4"
77
+ })
78
+ },
79
+ {
80
+ id: 'billing',
81
+ label: 'Billing',
82
+ icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.CreditCard, {
83
+ className: "h-4 w-4"
84
+ })
85
+ }
86
+ ];
87
+ function SettingsExample() {
88
+ const [activeSection, setActiveSection] = external_react_namespaceObject.useState('profile');
89
+ const [formData, setFormData] = external_react_namespaceObject.useState({
90
+ firstName: 'John',
91
+ lastName: 'Doe',
92
+ email: 'john.doe@example.com',
93
+ username: 'johndoe',
94
+ bio: 'Software developer passionate about building great products.',
95
+ theme: 'system',
96
+ language: 'en',
97
+ emailNotifications: true,
98
+ pushNotifications: false,
99
+ marketingEmails: false,
100
+ twoFactor: false
101
+ });
102
+ const updateField = (field, value)=>{
103
+ setFormData((prev)=>({
104
+ ...prev,
105
+ [field]: value
106
+ }));
107
+ };
108
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
109
+ minH: "screen",
110
+ className: "bg-background",
111
+ children: [
112
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("header", {
113
+ className: "border-b",
114
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(layout_index_cjs_namespaceObject.Row, {
115
+ h: 14,
116
+ align: "center",
117
+ className: "container mx-auto px-4",
118
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h1", {
119
+ className: "text-lg font-semibold",
120
+ children: "Settings"
121
+ })
122
+ })
123
+ }),
124
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Row, {
125
+ gap: 8,
126
+ flex: 1,
127
+ className: "container mx-auto p-6",
128
+ children: [
129
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("aside", {
130
+ className: "w-56 shrink-0",
131
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("nav", {
132
+ className: "space-y-1",
133
+ children: navItems.map((item)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("button", {
134
+ onClick: ()=>setActiveSection(item.id),
135
+ className: (0, index_cjs_namespaceObject.cn)('flex w-full items-center gap-3 rounded-md px-3 py-2 text-sm transition-colors', activeSection === item.id ? 'bg-muted font-medium' : 'text-muted-foreground hover:bg-muted/50 hover:text-foreground'),
136
+ children: [
137
+ item.icon,
138
+ item.label
139
+ ]
140
+ }, item.id))
141
+ })
142
+ }),
143
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("main", {
144
+ className: "flex-1 space-y-6",
145
+ children: [
146
+ 'profile' === activeSection && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
147
+ children: [
148
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
149
+ children: [
150
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h2", {
151
+ className: "text-2xl font-bold",
152
+ children: "Profile"
153
+ }),
154
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
155
+ className: "text-muted-foreground",
156
+ children: "Manage your public profile information."
157
+ })
158
+ ]
159
+ }),
160
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.Card, {
161
+ children: [
162
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardHeader, {
163
+ children: [
164
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardTitle, {
165
+ children: "Avatar"
166
+ }),
167
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardDescription, {
168
+ children: "Click on the avatar to upload a custom one from your files."
169
+ })
170
+ ]
171
+ }),
172
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardContent, {
173
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Row, {
174
+ gap: 4,
175
+ align: "center",
176
+ children: [
177
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(avatar_cjs_namespaceObject.Avatar, {
178
+ className: "h-20 w-20",
179
+ children: [
180
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(avatar_cjs_namespaceObject.AvatarImage, {
181
+ src: ""
182
+ }),
183
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(avatar_cjs_namespaceObject.AvatarFallback, {
184
+ className: "text-lg",
185
+ children: "JD"
186
+ })
187
+ ]
188
+ }),
189
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Row, {
190
+ gap: 2,
191
+ children: [
192
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
193
+ variant: "outline",
194
+ size: "sm",
195
+ children: "Upload"
196
+ }),
197
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
198
+ variant: "ghost",
199
+ size: "sm",
200
+ children: "Remove"
201
+ })
202
+ ]
203
+ })
204
+ ]
205
+ })
206
+ })
207
+ ]
208
+ }),
209
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.Card, {
210
+ children: [
211
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardHeader, {
212
+ children: [
213
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardTitle, {
214
+ children: "Personal Information"
215
+ }),
216
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardDescription, {
217
+ children: "Update your personal details here."
218
+ })
219
+ ]
220
+ }),
221
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardContent, {
222
+ className: "space-y-4",
223
+ children: [
224
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Grid, {
225
+ gap: 4,
226
+ cols: 2,
227
+ className: "md:grid-cols-2",
228
+ children: [
229
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
230
+ gap: 2,
231
+ children: [
232
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
233
+ htmlFor: "firstName",
234
+ children: "First name"
235
+ }),
236
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Input, {
237
+ id: "firstName",
238
+ value: formData.firstName,
239
+ onChange: (e)=>updateField('firstName', e.target.value)
240
+ })
241
+ ]
242
+ }),
243
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
244
+ gap: 2,
245
+ children: [
246
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
247
+ htmlFor: "lastName",
248
+ children: "Last name"
249
+ }),
250
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Input, {
251
+ id: "lastName",
252
+ value: formData.lastName,
253
+ onChange: (e)=>updateField('lastName', e.target.value)
254
+ })
255
+ ]
256
+ })
257
+ ]
258
+ }),
259
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
260
+ gap: 2,
261
+ children: [
262
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
263
+ htmlFor: "username",
264
+ children: "Username"
265
+ }),
266
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Input, {
267
+ id: "username",
268
+ value: formData.username,
269
+ onChange: (e)=>updateField('username', e.target.value)
270
+ })
271
+ ]
272
+ }),
273
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
274
+ gap: 2,
275
+ children: [
276
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
277
+ htmlFor: "bio",
278
+ children: "Bio"
279
+ }),
280
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(textarea_cjs_namespaceObject.Textarea, {
281
+ id: "bio",
282
+ value: formData.bio,
283
+ onChange: (e)=>updateField('bio', e.target.value),
284
+ rows: 3
285
+ }),
286
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
287
+ className: "text-xs text-muted-foreground",
288
+ children: "Brief description for your profile. URLs are hyperlinked."
289
+ })
290
+ ]
291
+ })
292
+ ]
293
+ }),
294
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardFooter, {
295
+ className: "border-t px-6 py-4",
296
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
297
+ children: "Save changes"
298
+ })
299
+ })
300
+ ]
301
+ })
302
+ ]
303
+ }),
304
+ 'account' === activeSection && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
305
+ children: [
306
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
307
+ children: [
308
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h2", {
309
+ className: "text-2xl font-bold",
310
+ children: "Account"
311
+ }),
312
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
313
+ className: "text-muted-foreground",
314
+ children: "Manage your account settings and email preferences."
315
+ })
316
+ ]
317
+ }),
318
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.Card, {
319
+ children: [
320
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardHeader, {
321
+ children: [
322
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardTitle, {
323
+ children: "Email"
324
+ }),
325
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardDescription, {
326
+ children: "Your email address is used for login and notifications."
327
+ })
328
+ ]
329
+ }),
330
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardContent, {
331
+ className: "space-y-4",
332
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
333
+ className: "space-y-2",
334
+ children: [
335
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
336
+ htmlFor: "email",
337
+ children: "Email address"
338
+ }),
339
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Input, {
340
+ id: "email",
341
+ type: "email",
342
+ value: formData.email,
343
+ onChange: (e)=>updateField('email', e.target.value)
344
+ })
345
+ ]
346
+ })
347
+ }),
348
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardFooter, {
349
+ className: "border-t px-6 py-4",
350
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
351
+ children: "Update email"
352
+ })
353
+ })
354
+ ]
355
+ }),
356
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.Card, {
357
+ className: "border-destructive",
358
+ children: [
359
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardHeader, {
360
+ children: [
361
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardTitle, {
362
+ className: "text-destructive",
363
+ children: "Danger Zone"
364
+ }),
365
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardDescription, {
366
+ children: "Irreversible and destructive actions."
367
+ })
368
+ ]
369
+ }),
370
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardContent, {
371
+ className: "space-y-4",
372
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Row, {
373
+ justify: "between",
374
+ align: "center",
375
+ children: [
376
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
377
+ gap: 0,
378
+ children: [
379
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
380
+ className: "font-medium",
381
+ children: "Delete account"
382
+ }),
383
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
384
+ className: "text-sm text-muted-foreground",
385
+ children: "Permanently delete your account and all associated data."
386
+ })
387
+ ]
388
+ }),
389
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
390
+ variant: "destructive",
391
+ children: "Delete account"
392
+ })
393
+ ]
394
+ })
395
+ })
396
+ ]
397
+ })
398
+ ]
399
+ }),
400
+ 'appearance' === activeSection && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
401
+ children: [
402
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
403
+ children: [
404
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h2", {
405
+ className: "text-2xl font-bold",
406
+ children: "Appearance"
407
+ }),
408
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
409
+ className: "text-muted-foreground",
410
+ children: "Customize the appearance of the application."
411
+ })
412
+ ]
413
+ }),
414
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.Card, {
415
+ children: [
416
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardHeader, {
417
+ children: [
418
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardTitle, {
419
+ children: "Theme"
420
+ }),
421
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardDescription, {
422
+ children: "Select your preferred theme for the dashboard."
423
+ })
424
+ ]
425
+ }),
426
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardContent, {
427
+ className: "space-y-4",
428
+ children: [
429
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
430
+ className: "space-y-2",
431
+ children: [
432
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
433
+ htmlFor: "theme",
434
+ children: "Theme"
435
+ }),
436
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(select_cjs_namespaceObject.Select, {
437
+ value: formData.theme,
438
+ onValueChange: (value)=>updateField('theme', value),
439
+ children: [
440
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectTrigger, {
441
+ id: "theme",
442
+ className: "w-[200px]",
443
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectValue, {})
444
+ }),
445
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(select_cjs_namespaceObject.SelectContent, {
446
+ children: [
447
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectItem, {
448
+ value: "light",
449
+ children: "Light"
450
+ }),
451
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectItem, {
452
+ value: "dark",
453
+ children: "Dark"
454
+ }),
455
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectItem, {
456
+ value: "system",
457
+ children: "System"
458
+ })
459
+ ]
460
+ })
461
+ ]
462
+ })
463
+ ]
464
+ }),
465
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
466
+ className: "space-y-2",
467
+ children: [
468
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
469
+ htmlFor: "language",
470
+ children: "Language"
471
+ }),
472
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(select_cjs_namespaceObject.Select, {
473
+ value: formData.language,
474
+ onValueChange: (value)=>updateField('language', value),
475
+ children: [
476
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectTrigger, {
477
+ id: "language",
478
+ className: "w-[200px]",
479
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectValue, {})
480
+ }),
481
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(select_cjs_namespaceObject.SelectContent, {
482
+ children: [
483
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectItem, {
484
+ value: "en",
485
+ children: "English"
486
+ }),
487
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectItem, {
488
+ value: "es",
489
+ children: "Spanish"
490
+ }),
491
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectItem, {
492
+ value: "fr",
493
+ children: "French"
494
+ }),
495
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectItem, {
496
+ value: "de",
497
+ children: "German"
498
+ })
499
+ ]
500
+ })
501
+ ]
502
+ })
503
+ ]
504
+ })
505
+ ]
506
+ })
507
+ ]
508
+ })
509
+ ]
510
+ }),
511
+ 'notifications' === activeSection && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
512
+ children: [
513
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
514
+ children: [
515
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h2", {
516
+ className: "text-2xl font-bold",
517
+ children: "Notifications"
518
+ }),
519
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
520
+ className: "text-muted-foreground",
521
+ children: "Configure how you receive notifications."
522
+ })
523
+ ]
524
+ }),
525
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.Card, {
526
+ children: [
527
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardHeader, {
528
+ children: [
529
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardTitle, {
530
+ children: "Notification Preferences"
531
+ }),
532
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardDescription, {
533
+ children: "Choose what notifications you want to receive."
534
+ })
535
+ ]
536
+ }),
537
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardContent, {
538
+ className: "space-y-6",
539
+ children: [
540
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Row, {
541
+ justify: "between",
542
+ align: "center",
543
+ children: [
544
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
545
+ gap: 0.5,
546
+ children: [
547
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
548
+ children: "Email notifications"
549
+ }),
550
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
551
+ className: "text-sm text-muted-foreground",
552
+ children: "Receive notifications via email."
553
+ })
554
+ ]
555
+ }),
556
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(switch_cjs_namespaceObject.Switch, {
557
+ checked: formData.emailNotifications,
558
+ onCheckedChange: (checked)=>updateField('emailNotifications', checked)
559
+ })
560
+ ]
561
+ }),
562
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(separator_cjs_namespaceObject.Separator, {}),
563
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Row, {
564
+ justify: "between",
565
+ align: "center",
566
+ children: [
567
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
568
+ gap: 0.5,
569
+ children: [
570
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
571
+ children: "Push notifications"
572
+ }),
573
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
574
+ className: "text-sm text-muted-foreground",
575
+ children: "Receive push notifications on your device."
576
+ })
577
+ ]
578
+ }),
579
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(switch_cjs_namespaceObject.Switch, {
580
+ checked: formData.pushNotifications,
581
+ onCheckedChange: (checked)=>updateField('pushNotifications', checked)
582
+ })
583
+ ]
584
+ }),
585
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(separator_cjs_namespaceObject.Separator, {}),
586
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Row, {
587
+ justify: "between",
588
+ align: "center",
589
+ children: [
590
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
591
+ gap: 0.5,
592
+ children: [
593
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
594
+ children: "Marketing emails"
595
+ }),
596
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
597
+ className: "text-sm text-muted-foreground",
598
+ children: "Receive emails about new features and updates."
599
+ })
600
+ ]
601
+ }),
602
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(switch_cjs_namespaceObject.Switch, {
603
+ checked: formData.marketingEmails,
604
+ onCheckedChange: (checked)=>updateField('marketingEmails', checked)
605
+ })
606
+ ]
607
+ })
608
+ ]
609
+ })
610
+ ]
611
+ })
612
+ ]
613
+ }),
614
+ 'security' === activeSection && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
615
+ children: [
616
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
617
+ children: [
618
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h2", {
619
+ className: "text-2xl font-bold",
620
+ children: "Security"
621
+ }),
622
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
623
+ className: "text-muted-foreground",
624
+ children: "Manage your security preferences."
625
+ })
626
+ ]
627
+ }),
628
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.Card, {
629
+ children: [
630
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardHeader, {
631
+ children: [
632
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardTitle, {
633
+ children: "Password"
634
+ }),
635
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardDescription, {
636
+ children: "Change your password here."
637
+ })
638
+ ]
639
+ }),
640
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardContent, {
641
+ className: "space-y-4",
642
+ children: [
643
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
644
+ className: "space-y-2",
645
+ children: [
646
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
647
+ htmlFor: "currentPassword",
648
+ children: "Current password"
649
+ }),
650
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Input, {
651
+ id: "currentPassword",
652
+ type: "password"
653
+ })
654
+ ]
655
+ }),
656
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
657
+ className: "space-y-2",
658
+ children: [
659
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
660
+ htmlFor: "newPassword",
661
+ children: "New password"
662
+ }),
663
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Input, {
664
+ id: "newPassword",
665
+ type: "password"
666
+ })
667
+ ]
668
+ }),
669
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
670
+ className: "space-y-2",
671
+ children: [
672
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.Label, {
673
+ htmlFor: "confirmPassword",
674
+ children: "Confirm password"
675
+ }),
676
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Input, {
677
+ id: "confirmPassword",
678
+ type: "password"
679
+ })
680
+ ]
681
+ })
682
+ ]
683
+ }),
684
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardFooter, {
685
+ className: "border-t px-6 py-4",
686
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
687
+ children: "Update password"
688
+ })
689
+ })
690
+ ]
691
+ }),
692
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.Card, {
693
+ children: [
694
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardHeader, {
695
+ children: [
696
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardTitle, {
697
+ children: "Two-Factor Authentication"
698
+ }),
699
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardDescription, {
700
+ children: "Add an extra layer of security to your account."
701
+ })
702
+ ]
703
+ }),
704
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardContent, {
705
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Row, {
706
+ justify: "between",
707
+ align: "center",
708
+ children: [
709
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
710
+ gap: 0.5,
711
+ children: [
712
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
713
+ className: "font-medium",
714
+ children: "Enable 2FA"
715
+ }),
716
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
717
+ className: "text-sm text-muted-foreground",
718
+ children: "Secure your account with two-factor authentication."
719
+ })
720
+ ]
721
+ }),
722
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(switch_cjs_namespaceObject.Switch, {
723
+ checked: formData.twoFactor,
724
+ onCheckedChange: (checked)=>updateField('twoFactor', checked)
725
+ })
726
+ ]
727
+ })
728
+ })
729
+ ]
730
+ })
731
+ ]
732
+ }),
733
+ 'billing' === activeSection && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
734
+ children: [
735
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
736
+ children: [
737
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h2", {
738
+ className: "text-2xl font-bold",
739
+ children: "Billing"
740
+ }),
741
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
742
+ className: "text-muted-foreground",
743
+ children: "Manage your billing information and subscription."
744
+ })
745
+ ]
746
+ }),
747
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.Card, {
748
+ children: [
749
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardHeader, {
750
+ children: [
751
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardTitle, {
752
+ children: "Current Plan"
753
+ }),
754
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardDescription, {
755
+ children: "You are currently on the Pro plan."
756
+ })
757
+ ]
758
+ }),
759
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardContent, {
760
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Row, {
761
+ justify: "between",
762
+ align: "center",
763
+ className: "rounded-lg border p-4",
764
+ children: [
765
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
766
+ gap: 0,
767
+ children: [
768
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
769
+ className: "font-semibold",
770
+ children: "Pro Plan"
771
+ }),
772
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
773
+ className: "text-sm text-muted-foreground",
774
+ children: "$29/month • Renews on Jan 1, 2025"
775
+ })
776
+ ]
777
+ }),
778
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
779
+ variant: "outline",
780
+ children: "Manage subscription"
781
+ })
782
+ ]
783
+ })
784
+ })
785
+ ]
786
+ }),
787
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.Card, {
788
+ children: [
789
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(card_cjs_namespaceObject.CardHeader, {
790
+ children: [
791
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardTitle, {
792
+ children: "Payment Method"
793
+ }),
794
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardDescription, {
795
+ children: "Update your payment information."
796
+ })
797
+ ]
798
+ }),
799
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardContent, {
800
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Row, {
801
+ justify: "between",
802
+ align: "center",
803
+ className: "rounded-lg border p-4",
804
+ children: [
805
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Row, {
806
+ gap: 3,
807
+ align: "center",
808
+ children: [
809
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(layout_index_cjs_namespaceObject.Row, {
810
+ justify: "center",
811
+ align: "center",
812
+ className: "h-10 w-14 rounded bg-muted",
813
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.CreditCard, {
814
+ className: "h-5 w-5"
815
+ })
816
+ }),
817
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(layout_index_cjs_namespaceObject.Column, {
818
+ gap: 0,
819
+ children: [
820
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
821
+ className: "font-medium",
822
+ children: "•••• •••• •••• 4242"
823
+ }),
824
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
825
+ className: "text-sm text-muted-foreground",
826
+ children: "Expires 12/25"
827
+ })
828
+ ]
829
+ })
830
+ ]
831
+ }),
832
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
833
+ variant: "ghost",
834
+ size: "sm",
835
+ children: "Edit"
836
+ })
837
+ ]
838
+ })
839
+ }),
840
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(card_cjs_namespaceObject.CardFooter, {
841
+ className: "border-t px-6 py-4",
842
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
843
+ variant: "outline",
844
+ children: "Add payment method"
845
+ })
846
+ })
847
+ ]
848
+ })
849
+ ]
850
+ })
851
+ ]
852
+ })
853
+ ]
854
+ })
855
+ ]
856
+ });
857
+ }
858
+ exports.SettingsExample = __webpack_exports__.SettingsExample;
859
+ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
860
+ "SettingsExample"
861
+ ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
862
+ Object.defineProperty(exports, '__esModule', {
863
+ value: true
864
+ });