@uipath/apollo-wind 0.9.0 → 0.10.0-pr257.2a4b17b

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