@phsa.tec/design-system-react 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -65,7 +65,6 @@ __export(src_exports, {
65
65
  AvatarFallback: () => AvatarFallback,
66
66
  AvatarImage: () => AvatarImage,
67
67
  Badge: () => Badge,
68
- BaseDesignSystemProvider: () => DesignSystemProvider,
69
68
  Breadcrumb: () => Breadcrumb,
70
69
  BreadcrumbEllipsis: () => BreadcrumbEllipsis,
71
70
  BreadcrumbItem: () => BreadcrumbItem,
@@ -74,6 +73,13 @@ __export(src_exports, {
74
73
  BreadcrumbPage: () => BreadcrumbPage,
75
74
  BreadcrumbSeparator: () => BreadcrumbSeparator,
76
75
  Button: () => Button2,
76
+ Card: () => Card2,
77
+ CardBase: () => Card,
78
+ CardContent: () => CardContent,
79
+ CardDescription: () => CardDescription,
80
+ CardFooter: () => CardFooter,
81
+ CardHeader: () => CardHeader,
82
+ CardTitle: () => CardTitle,
77
83
  Checkbox: () => Checkbox2,
78
84
  Collapsible: () => Collapsible,
79
85
  CollapsibleContent: () => CollapsibleContent2,
@@ -145,11 +151,11 @@ __export(src_exports, {
145
151
  module.exports = __toCommonJS(src_exports);
146
152
 
147
153
  // src/components/dataDisplay/Table/components/DynamicTable/index.tsx
148
- var React6 = __toESM(require("react"));
154
+ var React5 = __toESM(require("react"));
149
155
  var import_react_table = require("@tanstack/react-table");
150
156
 
151
157
  // src/components/ui/table.tsx
152
- var React2 = __toESM(require("react"));
158
+ var React = __toESM(require("react"));
153
159
 
154
160
  // src/lib/utils.ts
155
161
  var import_clsx = require("clsx");
@@ -157,44 +163,28 @@ var import_tailwind_merge = require("tailwind-merge");
157
163
  function cn(...inputs) {
158
164
  return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
159
165
  }
160
- var hexToHsl = (hex) => {
161
- if (!hex) return "";
162
- const cleanHex = hex.replace(/^#/, "");
163
- const [r, g, b] = cleanHex.match(/.{2}/g).map((x) => parseInt(x, 16) / 255);
164
- const max = Math.max(r, g, b);
165
- const min = Math.min(r, g, b);
166
- const l = (max + min) / 2;
167
- let h = 0;
168
- let s = 0;
169
- if (max !== min) {
170
- const d = max - min;
171
- s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
172
- h = max === r ? (g - b) / d + (g < b ? 6 : 0) : max === g ? (b - r) / d + 2 : (r - g) / d + 4;
173
- h *= 60;
174
- }
175
- return `${Math.round(h)} ${Math.round(s * 100)}% ${Math.round(l * 100)}%`;
176
- };
177
166
 
178
167
  // src/components/ui/table.tsx
179
- var Table = React2.forwardRef((_a, ref) => {
168
+ var import_jsx_runtime = require("react/jsx-runtime");
169
+ var Table = React.forwardRef((_a, ref) => {
180
170
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
181
- return /* @__PURE__ */ React2.createElement("div", { className: "relative phsa-w-full phsa-overflow-auto" }, /* @__PURE__ */ React2.createElement(
171
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
182
172
  "table",
183
173
  __spreadValues({
184
174
  ref,
185
175
  className: cn("w-full caption-bottom text-sm", className)
186
176
  }, props)
187
- ));
177
+ ) });
188
178
  });
189
179
  Table.displayName = "Table";
190
- var TableHeader = React2.forwardRef((_a, ref) => {
180
+ var TableHeader = React.forwardRef((_a, ref) => {
191
181
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
192
- return /* @__PURE__ */ React2.createElement("thead", __spreadValues({ ref, className: cn("[&_tr]:border-b", className) }, props));
182
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("thead", __spreadValues({ ref, className: cn("[&_tr]:border-b", className) }, props));
193
183
  });
194
184
  TableHeader.displayName = "TableHeader";
195
- var TableBody = React2.forwardRef((_a, ref) => {
185
+ var TableBody = React.forwardRef((_a, ref) => {
196
186
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
197
- return /* @__PURE__ */ React2.createElement(
187
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
198
188
  "tbody",
199
189
  __spreadValues({
200
190
  ref,
@@ -203,9 +193,9 @@ var TableBody = React2.forwardRef((_a, ref) => {
203
193
  );
204
194
  });
205
195
  TableBody.displayName = "TableBody";
206
- var TableFooter = React2.forwardRef((_a, ref) => {
196
+ var TableFooter = React.forwardRef((_a, ref) => {
207
197
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
208
- return /* @__PURE__ */ React2.createElement(
198
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
209
199
  "tfoot",
210
200
  __spreadValues({
211
201
  ref,
@@ -217,9 +207,9 @@ var TableFooter = React2.forwardRef((_a, ref) => {
217
207
  );
218
208
  });
219
209
  TableFooter.displayName = "TableFooter";
220
- var TableRow = React2.forwardRef((_a, ref) => {
210
+ var TableRow = React.forwardRef((_a, ref) => {
221
211
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
222
- return /* @__PURE__ */ React2.createElement(
212
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
223
213
  "tr",
224
214
  __spreadValues({
225
215
  ref,
@@ -231,9 +221,9 @@ var TableRow = React2.forwardRef((_a, ref) => {
231
221
  );
232
222
  });
233
223
  TableRow.displayName = "TableRow";
234
- var TableHead = React2.forwardRef((_a, ref) => {
224
+ var TableHead = React.forwardRef((_a, ref) => {
235
225
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
236
- return /* @__PURE__ */ React2.createElement(
226
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
237
227
  "th",
238
228
  __spreadValues({
239
229
  ref,
@@ -245,9 +235,9 @@ var TableHead = React2.forwardRef((_a, ref) => {
245
235
  );
246
236
  });
247
237
  TableHead.displayName = "TableHead";
248
- var TableCell = React2.forwardRef((_a, ref) => {
238
+ var TableCell = React.forwardRef((_a, ref) => {
249
239
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
250
- return /* @__PURE__ */ React2.createElement(
240
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
251
241
  "td",
252
242
  __spreadValues({
253
243
  ref,
@@ -259,9 +249,9 @@ var TableCell = React2.forwardRef((_a, ref) => {
259
249
  );
260
250
  });
261
251
  TableCell.displayName = "TableCell";
262
- var TableCaption = React2.forwardRef((_a, ref) => {
252
+ var TableCaption = React.forwardRef((_a, ref) => {
263
253
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
264
- return /* @__PURE__ */ React2.createElement(
254
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
265
255
  "caption",
266
256
  __spreadValues({
267
257
  ref,
@@ -276,11 +266,12 @@ var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
276
266
  var import_react_icons = require("@radix-ui/react-icons");
277
267
 
278
268
  // src/components/ui/button.tsx
279
- var React3 = __toESM(require("react"));
269
+ var React2 = __toESM(require("react"));
280
270
  var import_react_slot = require("@radix-ui/react-slot");
281
271
  var import_class_variance_authority = require("class-variance-authority");
272
+ var import_jsx_runtime2 = require("react/jsx-runtime");
282
273
  var buttonVariants = (0, import_class_variance_authority.cva)(
283
- "phsa-inline-flex phsa-items-center phsa-justify-center phsa-gap-2 phsa-whitespace-nowrap phsa-rounded-md phsa-text-sm phsa-font-medium phsa-transition-colors phsa-focus-visible:outline-none phsa-focus-visible:ring-1 phsa-focus-visible:ring-ring phsa-disabled:pointer-events-none phsa-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
274
+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
284
275
  {
285
276
  variants: {
286
277
  variant: {
@@ -304,11 +295,11 @@ var buttonVariants = (0, import_class_variance_authority.cva)(
304
295
  }
305
296
  }
306
297
  );
307
- var Button = React3.forwardRef(
298
+ var Button = React2.forwardRef(
308
299
  (_a, ref) => {
309
300
  var _b = _a, { className, variant, size, asChild = false } = _b, props = __objRest(_b, ["className", "variant", "size", "asChild"]);
310
301
  const Comp = asChild ? import_react_slot.Slot : "button";
311
- return /* @__PURE__ */ React3.createElement(
302
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
312
303
  Comp,
313
304
  __spreadValues({
314
305
  className: cn(buttonVariants({ variant, size, className })),
@@ -320,35 +311,39 @@ var Button = React3.forwardRef(
320
311
  Button.displayName = "Button";
321
312
 
322
313
  // src/components/ui/dropdown-menu.tsx
323
- var React4 = __toESM(require("react"));
314
+ var React3 = __toESM(require("react"));
324
315
  var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
325
316
  var import_lucide_react = require("lucide-react");
317
+ var import_jsx_runtime3 = require("react/jsx-runtime");
326
318
  var DropdownMenu = DropdownMenuPrimitive.Root;
327
319
  var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
328
320
  var DropdownMenuGroup = DropdownMenuPrimitive.Group;
329
321
  var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
330
322
  var DropdownMenuSub = DropdownMenuPrimitive.Sub;
331
323
  var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
332
- var DropdownMenuSubTrigger = React4.forwardRef((_a, ref) => {
324
+ var DropdownMenuSubTrigger = React3.forwardRef((_a, ref) => {
333
325
  var _b = _a, { className, inset, children } = _b, props = __objRest(_b, ["className", "inset", "children"]);
334
- return /* @__PURE__ */ React4.createElement(
326
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
335
327
  DropdownMenuPrimitive.SubTrigger,
336
- __spreadValues({
328
+ __spreadProps(__spreadValues({
337
329
  ref,
338
330
  className: cn(
339
331
  "flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
340
332
  inset && "pl-8",
341
333
  className
342
334
  )
343
- }, props),
344
- children,
345
- /* @__PURE__ */ React4.createElement(import_lucide_react.ChevronRight, { className: "phsa-ml-auto" })
335
+ }, props), {
336
+ children: [
337
+ children,
338
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_lucide_react.ChevronRight, { className: "ml-auto" })
339
+ ]
340
+ })
346
341
  );
347
342
  });
348
343
  DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
349
- var DropdownMenuSubContent = React4.forwardRef((_a, ref) => {
344
+ var DropdownMenuSubContent = React3.forwardRef((_a, ref) => {
350
345
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
351
- return /* @__PURE__ */ React4.createElement(
346
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
352
347
  DropdownMenuPrimitive.SubContent,
353
348
  __spreadValues({
354
349
  ref,
@@ -360,9 +355,9 @@ var DropdownMenuSubContent = React4.forwardRef((_a, ref) => {
360
355
  );
361
356
  });
362
357
  DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
363
- var DropdownMenuContent = React4.forwardRef((_a, ref) => {
358
+ var DropdownMenuContent = React3.forwardRef((_a, ref) => {
364
359
  var _b = _a, { className, sideOffset = 4 } = _b, props = __objRest(_b, ["className", "sideOffset"]);
365
- return /* @__PURE__ */ React4.createElement(DropdownMenuPrimitive.Portal, null, /* @__PURE__ */ React4.createElement(
360
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
366
361
  DropdownMenuPrimitive.Content,
367
362
  __spreadValues({
368
363
  ref,
@@ -373,12 +368,12 @@ var DropdownMenuContent = React4.forwardRef((_a, ref) => {
373
368
  className
374
369
  )
375
370
  }, props)
376
- ));
371
+ ) });
377
372
  });
378
373
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
379
- var DropdownMenuItem = React4.forwardRef((_a, ref) => {
374
+ var DropdownMenuItem = React3.forwardRef((_a, ref) => {
380
375
  var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
381
- return /* @__PURE__ */ React4.createElement(
376
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
382
377
  DropdownMenuPrimitive.Item,
383
378
  __spreadValues({
384
379
  ref,
@@ -391,42 +386,48 @@ var DropdownMenuItem = React4.forwardRef((_a, ref) => {
391
386
  );
392
387
  });
393
388
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
394
- var DropdownMenuCheckboxItem = React4.forwardRef((_a, ref) => {
389
+ var DropdownMenuCheckboxItem = React3.forwardRef((_a, ref) => {
395
390
  var _b = _a, { className, children, checked } = _b, props = __objRest(_b, ["className", "children", "checked"]);
396
- return /* @__PURE__ */ React4.createElement(
391
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
397
392
  DropdownMenuPrimitive.CheckboxItem,
398
- __spreadValues({
393
+ __spreadProps(__spreadValues({
399
394
  ref,
400
395
  className: cn(
401
396
  "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
402
397
  className
403
398
  ),
404
399
  checked
405
- }, props),
406
- /* @__PURE__ */ React4.createElement("span", { className: "absolute phsa-left-2 phsa-flex phsa-h-3.5 phsa-w-3.5 phsa-items-center phsa-justify-center" }, /* @__PURE__ */ React4.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React4.createElement(import_lucide_react.Check, { className: "phsa-h-4 phsa-w-4" }))),
407
- children
400
+ }, props), {
401
+ children: [
402
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_lucide_react.Check, { className: "h-4 w-4" }) }) }),
403
+ children
404
+ ]
405
+ })
408
406
  );
409
407
  });
410
408
  DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
411
- var DropdownMenuRadioItem = React4.forwardRef((_a, ref) => {
409
+ var DropdownMenuRadioItem = React3.forwardRef((_a, ref) => {
412
410
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
413
- return /* @__PURE__ */ React4.createElement(
411
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
414
412
  DropdownMenuPrimitive.RadioItem,
415
- __spreadValues({
413
+ __spreadProps(__spreadValues({
416
414
  ref,
417
415
  className: cn(
418
416
  "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
419
417
  className
420
418
  )
421
- }, props),
422
- /* @__PURE__ */ React4.createElement("span", { className: "absolute phsa-left-2 phsa-flex phsa-h-3.5 phsa-w-3.5 phsa-items-center phsa-justify-center" }, /* @__PURE__ */ React4.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React4.createElement(import_lucide_react.Circle, { className: "phsa-h-2 phsa-w-2 phsa-fill-current" }))),
423
- children
419
+ }, props), {
420
+ children: [
421
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_lucide_react.Circle, { className: "h-2 w-2 fill-current" }) }) }),
422
+ children
423
+ ]
424
+ })
424
425
  );
425
426
  });
426
427
  DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
427
- var DropdownMenuLabel = React4.forwardRef((_a, ref) => {
428
+ var DropdownMenuLabel = React3.forwardRef((_a, ref) => {
428
429
  var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
429
- return /* @__PURE__ */ React4.createElement(
430
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
430
431
  DropdownMenuPrimitive.Label,
431
432
  __spreadValues({
432
433
  ref,
@@ -439,9 +440,9 @@ var DropdownMenuLabel = React4.forwardRef((_a, ref) => {
439
440
  );
440
441
  });
441
442
  DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
442
- var DropdownMenuSeparator = React4.forwardRef((_a, ref) => {
443
+ var DropdownMenuSeparator = React3.forwardRef((_a, ref) => {
443
444
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
444
- return /* @__PURE__ */ React4.createElement(
445
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
445
446
  DropdownMenuPrimitive.Separator,
446
447
  __spreadValues({
447
448
  ref,
@@ -456,7 +457,7 @@ var DropdownMenuShortcut = (_a) => {
456
457
  } = _b, props = __objRest(_b, [
457
458
  "className"
458
459
  ]);
459
- return /* @__PURE__ */ React4.createElement(
460
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
460
461
  "span",
461
462
  __spreadValues({
462
463
  className: cn("ml-auto text-xs tracking-widest opacity-60", className)
@@ -466,103 +467,123 @@ var DropdownMenuShortcut = (_a) => {
466
467
  DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
467
468
 
468
469
  // src/components/dataDisplay/Table/components/DynamicTable/data-table-view-options.tsx
470
+ var import_jsx_runtime4 = require("react/jsx-runtime");
469
471
  function DataTableViewOptions({
470
472
  table
471
473
  }) {
472
- return /* @__PURE__ */ React.createElement(DropdownMenu, null, /* @__PURE__ */ React.createElement(import_react_dropdown_menu.DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React.createElement(
473
- Button,
474
- {
475
- variant: "outline",
476
- size: "sm",
477
- className: "phsa-ml-auto phsa-hidden phsa-h-8 lg:flex"
478
- },
479
- /* @__PURE__ */ React.createElement(import_react_icons.MixerHorizontalIcon, { className: "phsa-mr-2 phsa-h-4 phsa-w-4" }),
480
- "Colunas"
481
- )), /* @__PURE__ */ React.createElement(DropdownMenuContent, { align: "end", className: "phsa-w-[150px]" }, /* @__PURE__ */ React.createElement(DropdownMenuLabel, null, "Colunas vis\xEDveis"), /* @__PURE__ */ React.createElement(DropdownMenuSeparator, null), table.getAllColumns().filter(
482
- (column) => typeof column.accessorFn !== "undefined" && column.getCanHide()
483
- ).map((column) => {
484
- return /* @__PURE__ */ React.createElement(
485
- DropdownMenuCheckboxItem,
474
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(DropdownMenu, { children: [
475
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react_dropdown_menu.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
476
+ Button,
486
477
  {
487
- key: column.id,
488
- className: "capitalize",
489
- checked: column.getIsVisible(),
490
- onCheckedChange: (value) => column.toggleVisibility(!!value)
491
- },
492
- column.id
493
- );
494
- })));
478
+ variant: "outline",
479
+ size: "sm",
480
+ className: "ml-auto hidden h-8 lg:flex",
481
+ children: [
482
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react_icons.MixerHorizontalIcon, { className: "mr-2 h-4 w-4" }),
483
+ "Colunas"
484
+ ]
485
+ }
486
+ ) }),
487
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(DropdownMenuContent, { align: "end", className: "w-[150px]", children: [
488
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(DropdownMenuLabel, { children: "Colunas vis\xEDveis" }),
489
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(DropdownMenuSeparator, {}),
490
+ table.getAllColumns().filter(
491
+ (column) => typeof column.accessorFn !== "undefined" && column.getCanHide()
492
+ ).map((column) => {
493
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
494
+ DropdownMenuCheckboxItem,
495
+ {
496
+ className: "capitalize",
497
+ checked: column.getIsVisible(),
498
+ onCheckedChange: (value) => column.toggleVisibility(!!value),
499
+ children: column.id
500
+ },
501
+ column.id
502
+ );
503
+ })
504
+ ] })
505
+ ] });
495
506
  }
496
507
 
497
508
  // src/components/dataDisplay/Table/components/DynamicTable/data-table-toolbar.tsx
509
+ var import_jsx_runtime5 = require("react/jsx-runtime");
498
510
  function DataTableToolbar({
499
511
  table,
500
512
  filters,
501
513
  showColumnVisibility
502
514
  }) {
503
- return /* @__PURE__ */ React.createElement("div", { className: "phsa-flex phsa-items-center phsa-justify-between" }, /* @__PURE__ */ React.createElement("div", { className: "phsa-flex phsa-flex-1 phsa-items-center phsa-space-x-2" }, filters), showColumnVisibility && /* @__PURE__ */ React.createElement(DataTableViewOptions, { table }));
515
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex items-center justify-between", children: [
516
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "flex flex-1 items-center space-x-2", children: filters }),
517
+ showColumnVisibility && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DataTableViewOptions, { table })
518
+ ] });
504
519
  }
505
520
 
506
521
  // src/components/dataDisplay/Table/components/DynamicTable/data-table-pagination.tsx
507
522
  var import_react_icons2 = require("@radix-ui/react-icons");
508
523
 
509
524
  // src/components/ui/select.tsx
510
- var React5 = __toESM(require("react"));
525
+ var React4 = __toESM(require("react"));
511
526
  var SelectPrimitive = __toESM(require("@radix-ui/react-select"));
512
527
  var import_lucide_react2 = require("lucide-react");
528
+ var import_jsx_runtime6 = require("react/jsx-runtime");
513
529
  var Select = SelectPrimitive.Root;
514
530
  var SelectValue = SelectPrimitive.Value;
515
- var SelectTrigger = React5.forwardRef((_a, ref) => {
531
+ var SelectTrigger = React4.forwardRef((_a, ref) => {
516
532
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
517
- return /* @__PURE__ */ React5.createElement(
533
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
518
534
  SelectPrimitive.Trigger,
519
- __spreadValues({
535
+ __spreadProps(__spreadValues({
520
536
  ref,
521
537
  className: cn(
522
538
  "flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
523
539
  className
524
540
  )
525
- }, props),
526
- children,
527
- /* @__PURE__ */ React5.createElement(SelectPrimitive.Icon, { asChild: true }, /* @__PURE__ */ React5.createElement(import_lucide_react2.ChevronDown, { className: "phsa-h-4 phsa-w-4 phsa-opacity-50" }))
541
+ }, props), {
542
+ children: [
543
+ children,
544
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react2.ChevronDown, { className: "h-4 w-4 opacity-50" }) })
545
+ ]
546
+ })
528
547
  );
529
548
  });
530
549
  SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
531
- var SelectScrollUpButton = React5.forwardRef((_a, ref) => {
550
+ var SelectScrollUpButton = React4.forwardRef((_a, ref) => {
532
551
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
533
- return /* @__PURE__ */ React5.createElement(
552
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
534
553
  SelectPrimitive.ScrollUpButton,
535
- __spreadValues({
554
+ __spreadProps(__spreadValues({
536
555
  ref,
537
556
  className: cn(
538
557
  "flex cursor-default items-center justify-center py-1",
539
558
  className
540
559
  )
541
- }, props),
542
- /* @__PURE__ */ React5.createElement(import_lucide_react2.ChevronUp, { className: "phsa-h-4 phsa-w-4" })
560
+ }, props), {
561
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react2.ChevronUp, { className: "h-4 w-4" })
562
+ })
543
563
  );
544
564
  });
545
565
  SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
546
- var SelectScrollDownButton = React5.forwardRef((_a, ref) => {
566
+ var SelectScrollDownButton = React4.forwardRef((_a, ref) => {
547
567
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
548
- return /* @__PURE__ */ React5.createElement(
568
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
549
569
  SelectPrimitive.ScrollDownButton,
550
- __spreadValues({
570
+ __spreadProps(__spreadValues({
551
571
  ref,
552
572
  className: cn(
553
573
  "flex cursor-default items-center justify-center py-1",
554
574
  className
555
575
  )
556
- }, props),
557
- /* @__PURE__ */ React5.createElement(import_lucide_react2.ChevronDown, { className: "phsa-h-4 phsa-w-4" })
576
+ }, props), {
577
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react2.ChevronDown, { className: "h-4 w-4" })
578
+ })
558
579
  );
559
580
  });
560
581
  SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
561
- var SelectContent = React5.forwardRef((_a, ref) => {
582
+ var SelectContent = React4.forwardRef((_a, ref) => {
562
583
  var _b = _a, { className, children, position = "popper" } = _b, props = __objRest(_b, ["className", "children", "position"]);
563
- return /* @__PURE__ */ React5.createElement(SelectPrimitive.Portal, null, /* @__PURE__ */ React5.createElement(
584
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
564
585
  SelectPrimitive.Content,
565
- __spreadValues({
586
+ __spreadProps(__spreadValues({
566
587
  ref,
567
588
  className: cn(
568
589
  "relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
@@ -570,25 +591,28 @@ var SelectContent = React5.forwardRef((_a, ref) => {
570
591
  className
571
592
  ),
572
593
  position
573
- }, props),
574
- /* @__PURE__ */ React5.createElement(SelectScrollUpButton, null),
575
- /* @__PURE__ */ React5.createElement(
576
- SelectPrimitive.Viewport,
577
- {
578
- className: cn(
579
- "p-1",
580
- position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
581
- )
582
- },
583
- children
584
- ),
585
- /* @__PURE__ */ React5.createElement(SelectScrollDownButton, null)
586
- ));
594
+ }, props), {
595
+ children: [
596
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectScrollUpButton, {}),
597
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
598
+ SelectPrimitive.Viewport,
599
+ {
600
+ className: cn(
601
+ "p-1",
602
+ position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
603
+ ),
604
+ children
605
+ }
606
+ ),
607
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectScrollDownButton, {})
608
+ ]
609
+ })
610
+ ) });
587
611
  });
588
612
  SelectContent.displayName = SelectPrimitive.Content.displayName;
589
- var SelectLabel = React5.forwardRef((_a, ref) => {
613
+ var SelectLabel = React4.forwardRef((_a, ref) => {
590
614
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
591
- return /* @__PURE__ */ React5.createElement(
615
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
592
616
  SelectPrimitive.Label,
593
617
  __spreadValues({
594
618
  ref,
@@ -597,25 +621,28 @@ var SelectLabel = React5.forwardRef((_a, ref) => {
597
621
  );
598
622
  });
599
623
  SelectLabel.displayName = SelectPrimitive.Label.displayName;
600
- var SelectItem = React5.forwardRef((_a, ref) => {
624
+ var SelectItem = React4.forwardRef((_a, ref) => {
601
625
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
602
- return /* @__PURE__ */ React5.createElement(
626
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
603
627
  SelectPrimitive.Item,
604
- __spreadValues({
628
+ __spreadProps(__spreadValues({
605
629
  ref,
606
630
  className: cn(
607
631
  "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
608
632
  className
609
633
  )
610
- }, props),
611
- /* @__PURE__ */ React5.createElement("span", { className: "absolute phsa-right-2 phsa-flex phsa-h-3.5 phsa-w-3.5 phsa-items-center phsa-justify-center" }, /* @__PURE__ */ React5.createElement(SelectPrimitive.ItemIndicator, null, /* @__PURE__ */ React5.createElement(import_lucide_react2.Check, { className: "phsa-h-4 phsa-w-4" }))),
612
- /* @__PURE__ */ React5.createElement(SelectPrimitive.ItemText, null, children)
634
+ }, props), {
635
+ children: [
636
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react2.Check, { className: "h-4 w-4" }) }) }),
637
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectPrimitive.ItemText, { children })
638
+ ]
639
+ })
613
640
  );
614
641
  });
615
642
  SelectItem.displayName = SelectPrimitive.Item.displayName;
616
- var SelectSeparator = React5.forwardRef((_a, ref) => {
643
+ var SelectSeparator = React4.forwardRef((_a, ref) => {
617
644
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
618
- return /* @__PURE__ */ React5.createElement(
645
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
619
646
  SelectPrimitive.Separator,
620
647
  __spreadValues({
621
648
  ref,
@@ -626,82 +653,133 @@ var SelectSeparator = React5.forwardRef((_a, ref) => {
626
653
  SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
627
654
 
628
655
  // src/components/dataDisplay/Table/components/DynamicTable/data-table-pagination.tsx
656
+ var import_jsx_runtime7 = require("react/jsx-runtime");
629
657
  function DataTablePagination({
630
658
  table,
631
659
  pageSizeOptions = [10, 20, 30, 40, 50]
632
660
  }) {
633
- return /* @__PURE__ */ React.createElement("div", { className: "phsa-flex phsa-items-center phsa-justify-between phsa-px-2" }, /* @__PURE__ */ React.createElement("div", { className: "phsa-flex-1 phsa-text-sm phsa-text-muted-foreground" }, table.getFilteredSelectedRowModel().rows.length, " de", " ", table.getFilteredRowModel().rows.length, " linha(s) selecionada(s)."), /* @__PURE__ */ React.createElement("div", { className: "phsa-flex phsa-items-center phsa-space-x-6 phsa-lg:space-x-8" }, /* @__PURE__ */ React.createElement("div", { className: "phsa-flex phsa-items-center phsa-space-x-2" }, /* @__PURE__ */ React.createElement("p", { className: "phsa-text-sm phsa-font-medium" }, "Linhas por p\xE1gina"), /* @__PURE__ */ React.createElement(
634
- Select,
635
- {
636
- value: `${table.getState().pagination.pageSize}`,
637
- onValueChange: (value) => {
638
- table.setPageSize(Number(value));
639
- }
640
- },
641
- /* @__PURE__ */ React.createElement(SelectTrigger, { className: "phsa-h-8 phsa-w-[70px]" }, /* @__PURE__ */ React.createElement(SelectValue, { placeholder: table.getState().pagination.pageSize })),
642
- /* @__PURE__ */ React.createElement(SelectContent, { side: "top" }, pageSizeOptions.map((pageSize) => /* @__PURE__ */ React.createElement(SelectItem, { key: pageSize, value: `${pageSize}` }, pageSize)))
643
- )), /* @__PURE__ */ React.createElement("div", { className: "phsa-flex phsa-w-[100px] phsa-items-center phsa-justify-center phsa-text-sm phsa-font-medium" }, "P\xE1gina ", table.getState().pagination.pageIndex + 1, " de", " ", table.getPageCount()), /* @__PURE__ */ React.createElement("div", { className: "phsa-flex phsa-items-center phsa-space-x-2" }, /* @__PURE__ */ React.createElement(
644
- Button,
645
- {
646
- variant: "outline",
647
- className: "phsa-hidden phsa-h-8 phsa-w-8 phsa-p-0 lg:flex",
648
- onClick: () => table.setPageIndex(0),
649
- disabled: !table.getCanPreviousPage()
650
- },
651
- /* @__PURE__ */ React.createElement(import_react_icons2.DoubleArrowLeftIcon, { className: "phsa-h-4 phsa-w-4" })
652
- ), /* @__PURE__ */ React.createElement(
653
- Button,
654
- {
655
- variant: "outline",
656
- className: "phsa-h-8 phsa-w-8 phsa-p-0",
657
- onClick: () => table.previousPage(),
658
- disabled: !table.getCanPreviousPage()
659
- },
660
- /* @__PURE__ */ React.createElement(import_react_icons2.ChevronLeftIcon, { className: "phsa-h-4 phsa-w-4" })
661
- ), /* @__PURE__ */ React.createElement(
662
- Button,
663
- {
664
- variant: "outline",
665
- className: "phsa-h-8 phsa-w-8 phsa-p-0",
666
- onClick: () => table.nextPage(),
667
- disabled: !table.getCanNextPage()
668
- },
669
- /* @__PURE__ */ React.createElement(import_react_icons2.ChevronRightIcon, { className: "phsa-h-4 phsa-w-4" })
670
- ), /* @__PURE__ */ React.createElement(
671
- Button,
672
- {
673
- variant: "outline",
674
- className: "phsa-hidden phsa-h-8 phsa-w-8 phsa-p-0 lg:flex",
675
- onClick: () => table.setPageIndex(table.getPageCount() - 1),
676
- disabled: !table.getCanNextPage()
677
- },
678
- /* @__PURE__ */ React.createElement(import_react_icons2.DoubleArrowRightIcon, { className: "phsa-h-4 phsa-w-4" })
679
- ))));
661
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex items-center justify-between px-2", children: [
662
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex-1 text-sm text-muted-foreground", children: [
663
+ table.getFilteredSelectedRowModel().rows.length,
664
+ " de",
665
+ " ",
666
+ table.getFilteredRowModel().rows.length,
667
+ " linha(s) selecionada(s)."
668
+ ] }),
669
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex items-center space-x-6 lg:space-x-8", children: [
670
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex items-center space-x-2", children: [
671
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { className: "text-sm font-medium", children: "Linhas por p\xE1gina" }),
672
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
673
+ Select,
674
+ {
675
+ value: `${table.getState().pagination.pageSize}`,
676
+ onValueChange: (value) => {
677
+ table.setPageSize(Number(value));
678
+ },
679
+ children: [
680
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SelectTrigger, { className: "h-8 w-[70px]", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SelectValue, { placeholder: table.getState().pagination.pageSize }) }),
681
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SelectContent, { side: "top", children: pageSizeOptions.map((pageSize) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SelectItem, { value: `${pageSize}`, children: pageSize }, pageSize)) })
682
+ ]
683
+ }
684
+ )
685
+ ] }),
686
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex w-[100px] items-center justify-center text-sm font-medium", children: [
687
+ "P\xE1gina ",
688
+ table.getState().pagination.pageIndex + 1,
689
+ " de",
690
+ " ",
691
+ table.getPageCount()
692
+ ] }),
693
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex items-center space-x-2", children: [
694
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
695
+ Button,
696
+ {
697
+ variant: "outline",
698
+ className: "hidden h-8 w-8 p-0 lg:flex",
699
+ onClick: () => table.setPageIndex(0),
700
+ disabled: !table.getCanPreviousPage(),
701
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_icons2.DoubleArrowLeftIcon, { className: "h-4 w-4" })
702
+ }
703
+ ),
704
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
705
+ Button,
706
+ {
707
+ variant: "outline",
708
+ className: "h-8 w-8 p-0",
709
+ onClick: () => table.previousPage(),
710
+ disabled: !table.getCanPreviousPage(),
711
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_icons2.ChevronLeftIcon, { className: "h-4 w-4" })
712
+ }
713
+ ),
714
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
715
+ Button,
716
+ {
717
+ variant: "outline",
718
+ className: "h-8 w-8 p-0",
719
+ onClick: () => table.nextPage(),
720
+ disabled: !table.getCanNextPage(),
721
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_icons2.ChevronRightIcon, { className: "h-4 w-4" })
722
+ }
723
+ ),
724
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
725
+ Button,
726
+ {
727
+ variant: "outline",
728
+ className: "hidden h-8 w-8 p-0 lg:flex",
729
+ onClick: () => table.setPageIndex(table.getPageCount() - 1),
730
+ disabled: !table.getCanNextPage(),
731
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_icons2.DoubleArrowRightIcon, { className: "h-4 w-4" })
732
+ }
733
+ )
734
+ ] })
735
+ ] })
736
+ ] });
680
737
  }
681
738
 
682
739
  // src/components/dataDisplay/Table/components/DynamicTable/data-table-column-header.tsx
683
740
  var import_react_icons3 = require("@radix-ui/react-icons");
741
+ var import_jsx_runtime8 = require("react/jsx-runtime");
684
742
  function DataTableColumnHeader({
685
743
  column,
686
744
  title,
687
745
  className
688
746
  }) {
689
747
  if (!column.getCanSort()) {
690
- return /* @__PURE__ */ React.createElement("div", { className: cn(className) }, title);
748
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: cn(className), children: title });
691
749
  }
692
- return /* @__PURE__ */ React.createElement("div", { className: cn("flex items-center space-x-2", className) }, /* @__PURE__ */ React.createElement(DropdownMenu, null, /* @__PURE__ */ React.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React.createElement(
693
- Button,
694
- {
695
- variant: "ghost",
696
- size: "sm",
697
- className: "phsa--ml-3 phsa-h-8 phsa-data-[state=open]:bg-accent"
698
- },
699
- /* @__PURE__ */ React.createElement("span", null, title),
700
- column.getIsSorted() === "desc" ? /* @__PURE__ */ React.createElement(import_react_icons3.ArrowDownIcon, { className: "phsa-ml-2 phsa-h-4 phsa-w-4" }) : column.getIsSorted() === "asc" ? /* @__PURE__ */ React.createElement(import_react_icons3.ArrowUpIcon, { className: "phsa-ml-2 phsa-h-4 phsa-w-4" }) : /* @__PURE__ */ React.createElement(import_react_icons3.CaretSortIcon, { className: "phsa-ml-2 phsa-h-4 phsa-w-4" })
701
- )), /* @__PURE__ */ React.createElement(DropdownMenuContent, { align: "start" }, /* @__PURE__ */ React.createElement(DropdownMenuItem, { onClick: () => column.toggleSorting(false) }, /* @__PURE__ */ React.createElement(import_react_icons3.ArrowUpIcon, { className: "phsa-mr-2 phsa-h-3.5 phsa-w-3.5 phsa-text-muted-foreground/70" }), "Crescente"), /* @__PURE__ */ React.createElement(DropdownMenuItem, { onClick: () => column.toggleSorting(true) }, /* @__PURE__ */ React.createElement(import_react_icons3.ArrowDownIcon, { className: "phsa-mr-2 phsa-h-3.5 phsa-w-3.5 phsa-text-muted-foreground/70" }), "Decrescente"), /* @__PURE__ */ React.createElement(DropdownMenuSeparator, null), /* @__PURE__ */ React.createElement(DropdownMenuItem, { onClick: () => column.toggleVisibility(false) }, /* @__PURE__ */ React.createElement(import_react_icons3.EyeNoneIcon, { className: "phsa-mr-2 phsa-h-3.5 phsa-w-3.5 phsa-text-muted-foreground/70" }), "Ocultar"))));
750
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: cn("flex items-center space-x-2", className), children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(DropdownMenu, { children: [
751
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
752
+ Button,
753
+ {
754
+ variant: "ghost",
755
+ size: "sm",
756
+ className: "-ml-3 h-8 data-[state=open]:bg-accent",
757
+ children: [
758
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: title }),
759
+ column.getIsSorted() === "desc" ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react_icons3.ArrowDownIcon, { className: "ml-2 h-4 w-4" }) : column.getIsSorted() === "asc" ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react_icons3.ArrowUpIcon, { className: "ml-2 h-4 w-4" }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react_icons3.CaretSortIcon, { className: "ml-2 h-4 w-4" })
760
+ ]
761
+ }
762
+ ) }),
763
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(DropdownMenuContent, { align: "start", children: [
764
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(DropdownMenuItem, { onClick: () => column.toggleSorting(false), children: [
765
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react_icons3.ArrowUpIcon, { className: "mr-2 h-3.5 w-3.5 text-muted-foreground/70" }),
766
+ "Crescente"
767
+ ] }),
768
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(DropdownMenuItem, { onClick: () => column.toggleSorting(true), children: [
769
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react_icons3.ArrowDownIcon, { className: "mr-2 h-3.5 w-3.5 text-muted-foreground/70" }),
770
+ "Decrescente"
771
+ ] }),
772
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DropdownMenuSeparator, {}),
773
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(DropdownMenuItem, { onClick: () => column.toggleVisibility(false), children: [
774
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react_icons3.EyeNoneIcon, { className: "mr-2 h-3.5 w-3.5 text-muted-foreground/70" }),
775
+ "Ocultar"
776
+ ] })
777
+ ] })
778
+ ] }) });
702
779
  }
703
780
 
704
781
  // src/components/dataDisplay/Table/components/DynamicTable/index.tsx
782
+ var import_jsx_runtime9 = require("react/jsx-runtime");
705
783
  function DynamicTable({
706
784
  data,
707
785
  columns,
@@ -716,13 +794,13 @@ function DynamicTable({
716
794
  defaultVisibility = {}
717
795
  }) {
718
796
  var _a;
719
- const [sorting, setSorting] = React6.useState(defaultSort);
720
- const [columnVisibility, setColumnVisibility] = React6.useState(defaultVisibility);
721
- const [{ pageIndex, pageSize }, setPagination] = React6.useState({
797
+ const [sorting, setSorting] = React5.useState(defaultSort);
798
+ const [columnVisibility, setColumnVisibility] = React5.useState(defaultVisibility);
799
+ const [{ pageIndex, pageSize }, setPagination] = React5.useState({
722
800
  pageIndex: 0,
723
801
  pageSize: rowsPerPage[0]
724
802
  });
725
- const pagination = React6.useMemo(
803
+ const pagination = React5.useMemo(
726
804
  () => ({
727
805
  pageIndex,
728
806
  pageSize
@@ -747,37 +825,44 @@ function DynamicTable({
747
825
  },
748
826
  enableSorting: showSorting
749
827
  });
750
- return /* @__PURE__ */ React6.createElement("div", { className: "phsa-space-y-4" }, (toolbar || filters || showColumnVisibility) && /* @__PURE__ */ React6.createElement(
751
- DataTableToolbar,
752
- {
753
- table,
754
- filters,
755
- showColumnVisibility
756
- }
757
- ), /* @__PURE__ */ React6.createElement("div", { className: cn("rounded-md border", className) }, /* @__PURE__ */ React6.createElement(Table, null, /* @__PURE__ */ React6.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React6.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => /* @__PURE__ */ React6.createElement(TableHead, { key: header.id }, header.isPlaceholder ? null : /* @__PURE__ */ React6.createElement(
758
- DataTableColumnHeader,
759
- {
760
- column: header.column,
761
- title: header.column.columnDef.header
762
- }
763
- )))))), /* @__PURE__ */ React6.createElement(TableBody, null, ((_a = table.getRowModel().rows) == null ? void 0 : _a.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React6.createElement(TableRow, { key: row.id }, row.getVisibleCells().map((cell) => /* @__PURE__ */ React6.createElement(TableCell, { key: cell.id }, (0, import_react_table.flexRender)(
764
- cell.column.columnDef.cell,
765
- cell.getContext()
766
- ))))) : /* @__PURE__ */ React6.createElement(TableRow, null, /* @__PURE__ */ React6.createElement(
767
- TableCell,
768
- {
769
- colSpan: columns.length,
770
- className: "phsa-h-24 phsa-text-center"
771
- },
772
- "Nenhum resultado encontrado."
773
- ))))), showPagination && /* @__PURE__ */ React6.createElement(DataTablePagination, { table, pageSizeOptions: rowsPerPage }));
828
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "space-y-4", children: [
829
+ (toolbar || filters || showColumnVisibility) && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
830
+ DataTableToolbar,
831
+ {
832
+ table,
833
+ filters,
834
+ showColumnVisibility
835
+ }
836
+ ),
837
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: cn("rounded-md border", className), children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(Table, { children: [
838
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(TableHeader, { children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(TableRow, { children: headerGroup.headers.map((header) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(TableHead, { children: header.isPlaceholder ? null : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
839
+ DataTableColumnHeader,
840
+ {
841
+ column: header.column,
842
+ title: header.column.columnDef.header
843
+ }
844
+ ) }, header.id)) }, headerGroup.id)) }),
845
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(TableBody, { children: ((_a = table.getRowModel().rows) == null ? void 0 : _a.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(TableRow, { children: row.getVisibleCells().map((cell) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(TableCell, { children: (0, import_react_table.flexRender)(
846
+ cell.column.columnDef.cell,
847
+ cell.getContext()
848
+ ) }, cell.id)) }, row.id)) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
849
+ TableCell,
850
+ {
851
+ colSpan: columns.length,
852
+ className: "h-24 text-center",
853
+ children: "Nenhum resultado encontrado."
854
+ }
855
+ ) }) })
856
+ ] }) }),
857
+ showPagination && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DataTablePagination, { table, pageSizeOptions: rowsPerPage })
858
+ ] });
774
859
  }
775
860
 
776
861
  // src/components/ui/badge.tsx
777
- var React7 = __toESM(require("react"));
778
862
  var import_class_variance_authority2 = require("class-variance-authority");
863
+ var import_jsx_runtime10 = require("react/jsx-runtime");
779
864
  var badgeVariants = (0, import_class_variance_authority2.cva)(
780
- "phsa-inline-flex phsa-items-center phsa-rounded-md border phsa-px-2.5 phsa-py-0.5 phsa-text-xs phsa-font-semibold phsa-transition-colors phsa-focus:outline-none phsa-focus:ring-2 phsa-focus:ring-ring phsa-focus:ring-offset-2",
865
+ "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
781
866
  {
782
867
  variants: {
783
868
  variant: {
@@ -796,12 +881,13 @@ var badgeVariants = (0, import_class_variance_authority2.cva)(
796
881
  );
797
882
  function Badge(_a) {
798
883
  var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
799
- return /* @__PURE__ */ React7.createElement("div", __spreadValues({ className: cn(badgeVariants({ variant }), className) }, props));
884
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", __spreadValues({ className: cn(badgeVariants({ variant }), className) }, props));
800
885
  }
801
886
 
802
887
  // src/components/dataDisplay/Icon/Icon.tsx
803
- var import_react = __toESM(require("react"));
888
+ var import_react = require("react");
804
889
  var import_react_icons4 = require("react-icons");
890
+ var import_jsx_runtime11 = require("react/jsx-runtime");
805
891
  var Icon2 = (_a) => {
806
892
  var _b = _a, { name, size = 24 } = _b, rest = __objRest(_b, ["name", "size"]);
807
893
  const nameIcon = (0, import_react.useMemo)(() => name, [name]);
@@ -827,23 +913,24 @@ var Icon2 = (_a) => {
827
913
  (props) => {
828
914
  var _a2, _b2;
829
915
  try {
830
- if (!typeIcon || !nameIcon) return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null);
916
+ if (!typeIcon || !nameIcon) return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_jsx_runtime11.Fragment, {});
831
917
  return (_b2 = (_a2 = iconsModulePath[typeIcon])[nameIcon]) == null ? void 0 : _b2.call(_a2, props);
832
918
  } catch (e) {
833
- return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null);
919
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_jsx_runtime11.Fragment, {});
834
920
  }
835
921
  },
836
922
  [iconsModulePath, nameIcon, typeIcon]
837
923
  );
838
- return /* @__PURE__ */ import_react.default.createElement(import_react_icons4.IconContext.Provider, { value: { size: String(size) } }, /* @__PURE__ */ import_react.default.createElement(Icon3, __spreadValues({}, rest)));
924
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react_icons4.IconContext.Provider, { value: { size: String(size) }, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Icon3, __spreadValues({}, rest)) });
839
925
  };
840
926
 
841
927
  // src/components/ui/avatar.tsx
842
- var React9 = __toESM(require("react"));
928
+ var React7 = __toESM(require("react"));
843
929
  var AvatarPrimitive = __toESM(require("@radix-ui/react-avatar"));
844
- var Avatar = React9.forwardRef((_a, ref) => {
930
+ var import_jsx_runtime12 = require("react/jsx-runtime");
931
+ var Avatar = React7.forwardRef((_a, ref) => {
845
932
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
846
- return /* @__PURE__ */ React9.createElement(
933
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
847
934
  AvatarPrimitive.Root,
848
935
  __spreadValues({
849
936
  ref,
@@ -855,9 +942,9 @@ var Avatar = React9.forwardRef((_a, ref) => {
855
942
  );
856
943
  });
857
944
  Avatar.displayName = AvatarPrimitive.Root.displayName;
858
- var AvatarImage = React9.forwardRef((_a, ref) => {
945
+ var AvatarImage = React7.forwardRef((_a, ref) => {
859
946
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
860
- return /* @__PURE__ */ React9.createElement(
947
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
861
948
  AvatarPrimitive.Image,
862
949
  __spreadValues({
863
950
  ref,
@@ -866,9 +953,9 @@ var AvatarImage = React9.forwardRef((_a, ref) => {
866
953
  );
867
954
  });
868
955
  AvatarImage.displayName = AvatarPrimitive.Image.displayName;
869
- var AvatarFallback = React9.forwardRef((_a, ref) => {
956
+ var AvatarFallback = React7.forwardRef((_a, ref) => {
870
957
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
871
- return /* @__PURE__ */ React9.createElement(
958
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
872
959
  AvatarPrimitive.Fallback,
873
960
  __spreadValues({
874
961
  ref,
@@ -882,11 +969,11 @@ var AvatarFallback = React9.forwardRef((_a, ref) => {
882
969
  AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
883
970
 
884
971
  // src/components/dataDisplay/DataPairList/DataPairList.tsx
885
- var import_react2 = __toESM(require("react"));
886
972
  var import_lodash = require("lodash");
887
973
 
888
974
  // src/components/dataDisplay/Text/Text.tsx
889
975
  var import_class_variance_authority3 = require("class-variance-authority");
976
+ var import_jsx_runtime13 = require("react/jsx-runtime");
890
977
  var textVariants = (0, import_class_variance_authority3.cva)("", {
891
978
  variants: {
892
979
  variant: {
@@ -924,10 +1011,11 @@ function Text({
924
1011
  children
925
1012
  }) {
926
1013
  const Tag = tagMap[variant || "normal"] || "p";
927
- return /* @__PURE__ */ React.createElement(Tag, { className: cn(textVariants({ variant, align }), className) }, children);
1014
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Tag, { className: cn(textVariants({ variant, align }), className), children });
928
1015
  }
929
1016
 
930
1017
  // src/components/dataDisplay/DataPairList/DataPairList.tsx
1018
+ var import_jsx_runtime14 = require("react/jsx-runtime");
931
1019
  var DataPairList = ({
932
1020
  title,
933
1021
  data,
@@ -936,82 +1024,180 @@ var DataPairList = ({
936
1024
  infoDirection = "horizontal",
937
1025
  direction = "vertical",
938
1026
  withBorder = false,
939
- header = /* @__PURE__ */ import_react2.default.createElement(import_react2.default.Fragment, null)
1027
+ header = /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_jsx_runtime14.Fragment, {})
940
1028
  }) => {
941
1029
  if ((0, import_lodash.isEmpty)(data)) return null;
942
- return /* @__PURE__ */ import_react2.default.createElement(
1030
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
943
1031
  "div",
944
1032
  {
945
1033
  className: cn(
946
1034
  "flex flex-col gap-2 rounded-md p-4",
947
1035
  withBorder && "border border-muted",
948
1036
  className
949
- )
950
- },
951
- /* @__PURE__ */ import_react2.default.createElement("div", { className: "phsa-flex phsa-gap-3" }, title && /* @__PURE__ */ import_react2.default.createElement(Text, { variant: "title" }, title), header),
952
- /* @__PURE__ */ import_react2.default.createElement(
953
- "div",
954
- {
955
- className: cn(
956
- "grid grid-cols-1 mt-5",
957
- direction === "vertical" ? "gap-3" : "sm:grid-cols-2 md:grid-cols-4 gap-10"
1037
+ ),
1038
+ children: [
1039
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex gap-3", children: [
1040
+ title && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Text, { variant: "title", children: title }),
1041
+ header
1042
+ ] }),
1043
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1044
+ "div",
1045
+ {
1046
+ className: cn(
1047
+ "grid grid-cols-1 mt-5",
1048
+ direction === "vertical" ? "gap-3" : "sm:grid-cols-2 md:grid-cols-4 gap-10"
1049
+ ),
1050
+ children: Object.entries(data || {}).map(([key, value], index) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
1051
+ "div",
1052
+ {
1053
+ className: cn(
1054
+ "flex gap-3",
1055
+ infoDirection === "horizontal" ? "flex-row" : "flex-col"
1056
+ ),
1057
+ children: [
1058
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(Text, { className: "uppercase text-muted-foreground font-bold", children: [
1059
+ (labels == null ? void 0 : labels[key]) || key,
1060
+ ":"
1061
+ ] }),
1062
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Text, { children: value })
1063
+ ]
1064
+ },
1065
+ index
1066
+ ))
1067
+ }
958
1068
  )
959
- },
960
- Object.entries(data || {}).map(([key, value], index) => /* @__PURE__ */ import_react2.default.createElement(
961
- "div",
962
- {
963
- className: cn(
964
- "flex gap-3",
965
- infoDirection === "horizontal" ? "flex-row" : "flex-col"
966
- ),
967
- key: index
968
- },
969
- /* @__PURE__ */ import_react2.default.createElement(Text, { className: "uppercase phsa-text-muted-foreground phsa-font-bold" }, (labels == null ? void 0 : labels[key]) || key, ":"),
970
- /* @__PURE__ */ import_react2.default.createElement(Text, null, value)
971
- ))
972
- )
1069
+ ]
1070
+ }
1071
+ );
1072
+ };
1073
+
1074
+ // src/components/ui/card.tsx
1075
+ var React8 = __toESM(require("react"));
1076
+ var import_jsx_runtime15 = require("react/jsx-runtime");
1077
+ var Card = React8.forwardRef((_a, ref) => {
1078
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1079
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1080
+ "div",
1081
+ __spreadValues({
1082
+ ref,
1083
+ className: cn(
1084
+ "rounded-xl border bg-card text-card-foreground shadow",
1085
+ className
1086
+ )
1087
+ }, props)
1088
+ );
1089
+ });
1090
+ Card.displayName = "Card";
1091
+ var CardHeader = React8.forwardRef((_a, ref) => {
1092
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1093
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1094
+ "div",
1095
+ __spreadValues({
1096
+ ref,
1097
+ className: cn("flex flex-col space-y-1.5 p-6", className)
1098
+ }, props)
1099
+ );
1100
+ });
1101
+ CardHeader.displayName = "CardHeader";
1102
+ var CardTitle = React8.forwardRef((_a, ref) => {
1103
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1104
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1105
+ "div",
1106
+ __spreadValues({
1107
+ ref,
1108
+ className: cn("font-semibold leading-none tracking-tight", className)
1109
+ }, props)
1110
+ );
1111
+ });
1112
+ CardTitle.displayName = "CardTitle";
1113
+ var CardDescription = React8.forwardRef((_a, ref) => {
1114
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1115
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1116
+ "div",
1117
+ __spreadValues({
1118
+ ref,
1119
+ className: cn("text-sm text-muted-foreground", className)
1120
+ }, props)
1121
+ );
1122
+ });
1123
+ CardDescription.displayName = "CardDescription";
1124
+ var CardContent = React8.forwardRef((_a, ref) => {
1125
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1126
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", __spreadValues({ ref, className: cn("p-6 pt-0", className) }, props));
1127
+ });
1128
+ CardContent.displayName = "CardContent";
1129
+ var CardFooter = React8.forwardRef((_a, ref) => {
1130
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1131
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1132
+ "div",
1133
+ __spreadValues({
1134
+ ref,
1135
+ className: cn("flex items-center p-6 pt-0", className)
1136
+ }, props)
973
1137
  );
1138
+ });
1139
+ CardFooter.displayName = "CardFooter";
1140
+
1141
+ // src/components/dataDisplay/Card/Card.tsx
1142
+ var import_jsx_runtime16 = require("react/jsx-runtime");
1143
+ var Card2 = ({
1144
+ title,
1145
+ children,
1146
+ description,
1147
+ footer = () => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_jsx_runtime16.Fragment, {})
1148
+ }) => {
1149
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Card, { children: [
1150
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(CardHeader, { children: [
1151
+ title && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CardTitle, { children: title }),
1152
+ description && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CardDescription, { children: description })
1153
+ ] }),
1154
+ children && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CardContent, { children }),
1155
+ footer && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CardFooter, { children: footer() })
1156
+ ] });
974
1157
  };
975
1158
 
976
1159
  // src/components/dataInput/checkbox/Checkbox.tsx
977
1160
  var import_react_hook_form3 = require("react-hook-form");
978
1161
 
979
1162
  // src/components/ui/checkbox.tsx
980
- var React11 = __toESM(require("react"));
1163
+ var React9 = __toESM(require("react"));
981
1164
  var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
982
1165
  var import_lucide_react3 = require("lucide-react");
983
- var Checkbox = React11.forwardRef((_a, ref) => {
1166
+ var import_jsx_runtime17 = require("react/jsx-runtime");
1167
+ var Checkbox = React9.forwardRef((_a, ref) => {
984
1168
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
985
- return /* @__PURE__ */ React11.createElement(
1169
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
986
1170
  CheckboxPrimitive.Root,
987
- __spreadValues({
1171
+ __spreadProps(__spreadValues({
988
1172
  ref,
989
1173
  className: cn(
990
1174
  "peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
991
1175
  className
992
1176
  )
993
- }, props),
994
- /* @__PURE__ */ React11.createElement(
995
- CheckboxPrimitive.Indicator,
996
- {
997
- className: cn("flex items-center justify-center text-current")
998
- },
999
- /* @__PURE__ */ React11.createElement(import_lucide_react3.Check, { className: "phsa-h-4 phsa-w-4" })
1000
- )
1177
+ }, props), {
1178
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1179
+ CheckboxPrimitive.Indicator,
1180
+ {
1181
+ className: cn("flex items-center justify-center text-current"),
1182
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react3.Check, { className: "h-4 w-4" })
1183
+ }
1184
+ )
1185
+ })
1001
1186
  );
1002
1187
  });
1003
1188
  Checkbox.displayName = CheckboxPrimitive.Root.displayName;
1004
1189
 
1005
1190
  // src/components/ui/label.tsx
1006
- var React12 = __toESM(require("react"));
1191
+ var React10 = __toESM(require("react"));
1007
1192
  var LabelPrimitive = __toESM(require("@radix-ui/react-label"));
1008
1193
  var import_class_variance_authority4 = require("class-variance-authority");
1194
+ var import_jsx_runtime18 = require("react/jsx-runtime");
1009
1195
  var labelVariants = (0, import_class_variance_authority4.cva)(
1010
- "phsa-text-sm phsa-font-medium phsa-leading-none phsa-peer-disabled:cursor-not-allowed phsa-peer-disabled:opacity-70"
1196
+ "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
1011
1197
  );
1012
- var Label3 = React12.forwardRef((_a, ref) => {
1198
+ var Label3 = React10.forwardRef((_a, ref) => {
1013
1199
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1014
- return /* @__PURE__ */ React12.createElement(
1200
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1015
1201
  LabelPrimitive.Root,
1016
1202
  __spreadValues({
1017
1203
  ref,
@@ -1025,20 +1211,21 @@ Label3.displayName = LabelPrimitive.Root.displayName;
1025
1211
  var import_react_hook_form2 = require("react-hook-form");
1026
1212
 
1027
1213
  // src/components/ui/form.tsx
1028
- var React13 = __toESM(require("react"));
1214
+ var React11 = __toESM(require("react"));
1029
1215
  var import_react_slot2 = require("@radix-ui/react-slot");
1030
1216
  var import_react_hook_form = require("react-hook-form");
1217
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1031
1218
  var Form = import_react_hook_form.FormProvider;
1032
- var FormFieldContext = React13.createContext(
1219
+ var FormFieldContext = React11.createContext(
1033
1220
  {}
1034
1221
  );
1035
1222
  var FormField = (_a) => {
1036
1223
  var props = __objRest(_a, []);
1037
- return /* @__PURE__ */ React13.createElement(FormFieldContext.Provider, { value: { name: props.name } }, /* @__PURE__ */ React13.createElement(import_react_hook_form.Controller, __spreadValues({}, props)));
1224
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react_hook_form.Controller, __spreadValues({}, props)) });
1038
1225
  };
1039
1226
  var useFormField = () => {
1040
- const fieldContext = React13.useContext(FormFieldContext);
1041
- const itemContext = React13.useContext(FormItemContext);
1227
+ const fieldContext = React11.useContext(FormFieldContext);
1228
+ const itemContext = React11.useContext(FormItemContext);
1042
1229
  const { getFieldState, formState } = (0, import_react_hook_form.useFormContext)();
1043
1230
  const fieldState = getFieldState(fieldContext.name, formState);
1044
1231
  if (!fieldContext) {
@@ -1053,19 +1240,19 @@ var useFormField = () => {
1053
1240
  formMessageId: `${id}-form-item-message`
1054
1241
  }, fieldState);
1055
1242
  };
1056
- var FormItemContext = React13.createContext(
1243
+ var FormItemContext = React11.createContext(
1057
1244
  {}
1058
1245
  );
1059
- var FormItem = React13.forwardRef((_a, ref) => {
1246
+ var FormItem = React11.forwardRef((_a, ref) => {
1060
1247
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1061
- const id = React13.useId();
1062
- return /* @__PURE__ */ React13.createElement(FormItemContext.Provider, { value: { id } }, /* @__PURE__ */ React13.createElement("div", __spreadValues({ ref, className: cn("space-y-2", className) }, props)));
1248
+ const id = React11.useId();
1249
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", __spreadValues({ ref, className: cn("space-y-2", className) }, props)) });
1063
1250
  });
1064
1251
  FormItem.displayName = "FormItem";
1065
- var FormLabel = React13.forwardRef((_a, ref) => {
1252
+ var FormLabel = React11.forwardRef((_a, ref) => {
1066
1253
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1067
1254
  const { error, formItemId } = useFormField();
1068
- return /* @__PURE__ */ React13.createElement(
1255
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1069
1256
  Label3,
1070
1257
  __spreadValues({
1071
1258
  ref,
@@ -1075,10 +1262,10 @@ var FormLabel = React13.forwardRef((_a, ref) => {
1075
1262
  );
1076
1263
  });
1077
1264
  FormLabel.displayName = "FormLabel";
1078
- var FormControl = React13.forwardRef((_a, ref) => {
1265
+ var FormControl = React11.forwardRef((_a, ref) => {
1079
1266
  var props = __objRest(_a, []);
1080
1267
  const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
1081
- return /* @__PURE__ */ React13.createElement(
1268
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1082
1269
  import_react_slot2.Slot,
1083
1270
  __spreadValues({
1084
1271
  ref,
@@ -1089,10 +1276,10 @@ var FormControl = React13.forwardRef((_a, ref) => {
1089
1276
  );
1090
1277
  });
1091
1278
  FormControl.displayName = "FormControl";
1092
- var FormDescription = React13.forwardRef((_a, ref) => {
1279
+ var FormDescription = React11.forwardRef((_a, ref) => {
1093
1280
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1094
1281
  const { formDescriptionId } = useFormField();
1095
- return /* @__PURE__ */ React13.createElement(
1282
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1096
1283
  "p",
1097
1284
  __spreadValues({
1098
1285
  ref,
@@ -1102,31 +1289,34 @@ var FormDescription = React13.forwardRef((_a, ref) => {
1102
1289
  );
1103
1290
  });
1104
1291
  FormDescription.displayName = "FormDescription";
1105
- var FormMessage = React13.forwardRef((_a, ref) => {
1292
+ var FormMessage = React11.forwardRef((_a, ref) => {
1106
1293
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
1107
1294
  const { error, formMessageId } = useFormField();
1108
1295
  const body = error ? String(error == null ? void 0 : error.message) : children;
1109
1296
  if (!body) {
1110
1297
  return null;
1111
1298
  }
1112
- return /* @__PURE__ */ React13.createElement(
1299
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1113
1300
  "p",
1114
- __spreadValues({
1301
+ __spreadProps(__spreadValues({
1115
1302
  ref,
1116
1303
  id: formMessageId,
1117
1304
  className: cn("text-[0.8rem] font-medium text-destructive", className)
1118
- }, props),
1119
- body
1305
+ }, props), {
1306
+ children: body
1307
+ })
1120
1308
  );
1121
1309
  });
1122
1310
  FormMessage.displayName = "FormMessage";
1123
1311
 
1124
1312
  // src/components/dataDisplay/ErrorMessage/ErrorMessage.tsx
1313
+ var import_jsx_runtime20 = require("react/jsx-runtime");
1125
1314
  var ErrorMessage = ({ children }) => {
1126
- return /* @__PURE__ */ React.createElement("p", { className: "phsa-text-sm phsa-font-medium phsa-text-destructive" }, children);
1315
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "text-sm font-medium text-destructive", children });
1127
1316
  };
1128
1317
 
1129
1318
  // src/components/dataInput/checkbox/Checkbox.tsx
1319
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1130
1320
  var Checkbox2 = (_a) => {
1131
1321
  var _b = _a, {
1132
1322
  label,
@@ -1141,29 +1331,37 @@ var Checkbox2 = (_a) => {
1141
1331
  const form = (0, import_react_hook_form3.useFormContext)();
1142
1332
  const hasForm = !withoutForm && !!form && !!props.name;
1143
1333
  if (!hasForm)
1144
- return /* @__PURE__ */ React.createElement("div", { className: "phsa-flex phsa-items-center phsa-space-x-2" }, /* @__PURE__ */ React.createElement(Checkbox, __spreadValues({}, props)), label && /* @__PURE__ */ React.createElement(Label3, { htmlFor: props.id }, label), error && /* @__PURE__ */ React.createElement(ErrorMessage, null, error));
1145
- return /* @__PURE__ */ React.createElement(
1334
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-center space-x-2", children: [
1335
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Checkbox, __spreadValues({}, props)),
1336
+ label && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Label3, { htmlFor: props.id, children: label }),
1337
+ error && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ErrorMessage, { children: error })
1338
+ ] });
1339
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1146
1340
  FormField,
1147
1341
  {
1148
1342
  control: form.control,
1149
1343
  name: (_a2 = props.name) != null ? _a2 : "",
1150
- render: ({ field }) => /* @__PURE__ */ React.createElement(FormItem, { className: "phsa-flex phsa-flex-row phsa-items-start phsa-space-x-3 phsa-space-y-0 phsa-rounded-md border phsa-p-4" }, /* @__PURE__ */ React.createElement(FormControl, null, /* @__PURE__ */ React.createElement(
1151
- Checkbox,
1152
- {
1153
- checked: field.value,
1154
- onCheckedChange: field.onChange
1155
- }
1156
- )), label && /* @__PURE__ */ React.createElement("div", { className: "phsa-space-y-1 phsa-leading-none" }, /* @__PURE__ */ React.createElement(FormLabel, null, label)))
1344
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(FormItem, { className: "flex flex-row items-start space-x-3 space-y-0 rounded-md border p-4", children: [
1345
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(FormControl, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1346
+ Checkbox,
1347
+ {
1348
+ checked: field.value,
1349
+ onCheckedChange: field.onChange
1350
+ }
1351
+ ) }),
1352
+ label && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "space-y-1 leading-none", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(FormLabel, { children: label }) })
1353
+ ] })
1157
1354
  }
1158
1355
  );
1159
1356
  };
1160
1357
 
1161
1358
  // src/components/ui/input.tsx
1162
- var React14 = __toESM(require("react"));
1163
- var Input = React14.forwardRef(
1359
+ var React12 = __toESM(require("react"));
1360
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1361
+ var Input = React12.forwardRef(
1164
1362
  (_a, ref) => {
1165
1363
  var _b = _a, { className, type } = _b, props = __objRest(_b, ["className", "type"]);
1166
- return /* @__PURE__ */ React14.createElement(
1364
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1167
1365
  "input",
1168
1366
  __spreadValues({
1169
1367
  type,
@@ -1179,27 +1377,30 @@ var Input = React14.forwardRef(
1179
1377
  Input.displayName = "Input";
1180
1378
 
1181
1379
  // src/components/dataInput/Input/components/Input/index.tsx
1182
- var import_react5 = require("react");
1380
+ var import_react3 = require("react");
1183
1381
 
1184
1382
  // src/components/feedback/ErrorLabel/index.tsx
1185
- var import_react3 = __toESM(require("react"));
1383
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1186
1384
  var ErrorLabel = ({
1187
1385
  children,
1188
1386
  className,
1189
1387
  "data-testid": dataTestId
1190
1388
  }) => {
1191
- return /* @__PURE__ */ import_react3.default.createElement(
1389
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1192
1390
  "div",
1193
1391
  {
1194
1392
  className: cn("flex items-center gap-2 my-2", className),
1195
- "data-testid": `${dataTestId}-error-label`
1196
- },
1197
- /* @__PURE__ */ import_react3.default.createElement(Icon2, { name: "MdErrorOutline", size: 18, className: "phsa-text-destructive" }),
1198
- /* @__PURE__ */ import_react3.default.createElement("span", { className: "phsa-text-destructive phsa-text-sm" }, children)
1393
+ "data-testid": `${dataTestId}-error-label`,
1394
+ children: [
1395
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Icon2, { name: "MdErrorOutline", size: 18, className: "text-destructive" }),
1396
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "text-destructive text-sm", children })
1397
+ ]
1398
+ }
1199
1399
  );
1200
1400
  };
1201
1401
 
1202
1402
  // src/components/dataInput/Input/components/InputBase/index.tsx
1403
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1203
1404
  var InputBase = ({
1204
1405
  label,
1205
1406
  error,
@@ -1207,22 +1408,29 @@ var InputBase = ({
1207
1408
  required,
1208
1409
  "data-testid": testId
1209
1410
  }) => {
1210
- return /* @__PURE__ */ React.createElement("div", null, label && /* @__PURE__ */ React.createElement(Label3, { "data-testid": `${testId}-label` }, `${label} ${required ? "*" : ""}`, " "), children, error && /* @__PURE__ */ React.createElement(ErrorLabel, { "data-testid": testId }, error));
1411
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { children: [
1412
+ label && /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Label3, { "data-testid": `${testId}-label`, children: [
1413
+ `${label} ${required ? "*" : ""}`,
1414
+ " "
1415
+ ] }),
1416
+ children,
1417
+ error && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ErrorLabel, { "data-testid": testId, children: error })
1418
+ ] });
1211
1419
  };
1212
1420
 
1213
1421
  // src/hooks/use-conditional-controller.tsx
1214
- var import_react4 = require("react");
1422
+ var import_react2 = require("react");
1215
1423
  var import_react_hook_form4 = require("react-hook-form");
1216
1424
  var useConditionalController = ({
1217
1425
  name,
1218
1426
  withoutForm
1219
1427
  }) => {
1220
1428
  const form = (0, import_react_hook_form4.useFormContext)();
1221
- const hasForm = (0, import_react4.useMemo)(() => {
1429
+ const hasForm = (0, import_react2.useMemo)(() => {
1222
1430
  return !withoutForm && !!(form == null ? void 0 : form.control);
1223
1431
  }, [withoutForm, form]);
1224
1432
  const tempForm = (0, import_react_hook_form4.useForm)();
1225
- const controlToUse = (0, import_react4.useMemo)(() => {
1433
+ const controlToUse = (0, import_react2.useMemo)(() => {
1226
1434
  return hasForm ? form.control : tempForm.control;
1227
1435
  }, [tempForm, form, hasForm]);
1228
1436
  const controller = (0, import_react_hook_form4.useController)({
@@ -1233,6 +1441,7 @@ var useConditionalController = ({
1233
1441
  };
1234
1442
 
1235
1443
  // src/components/dataInput/Input/components/Input/index.tsx
1444
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1236
1445
  var Input2 = (_a) => {
1237
1446
  var _b = _a, {
1238
1447
  "data-testid": dataTestId,
@@ -1249,43 +1458,46 @@ var Input2 = (_a) => {
1249
1458
  name: props.name || "",
1250
1459
  withoutForm
1251
1460
  });
1252
- const inputProps = (0, import_react5.useMemo)(() => {
1461
+ const inputProps = (0, import_react3.useMemo)(() => {
1253
1462
  return __spreadValues(__spreadValues({}, formData), props);
1254
1463
  }, [formData, props]);
1255
- return /* @__PURE__ */ React.createElement(
1464
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1256
1465
  InputBase,
1257
1466
  {
1258
1467
  label: props.label,
1259
1468
  error: props.error,
1260
1469
  required: props.required,
1261
- "data-testid": dataTestId
1262
- },
1263
- /* @__PURE__ */ React.createElement("div", { className: cn("flex items-center gap-2", containerClassName) }, /* @__PURE__ */ React.createElement(
1264
- Input,
1265
- __spreadProps(__spreadValues({}, inputProps), {
1266
- "data-testid": dataTestId,
1267
- className: cn(
1268
- props.className,
1269
- props.error && "border-destructive focus:border-destructive focus-visible:ring-0"
1270
- )
1271
- })
1272
- ), extraElement)
1470
+ "data-testid": dataTestId,
1471
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: cn("flex items-center gap-2", containerClassName), children: [
1472
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1473
+ Input,
1474
+ __spreadProps(__spreadValues({}, inputProps), {
1475
+ "data-testid": dataTestId,
1476
+ className: cn(
1477
+ props.className,
1478
+ props.error && "border-destructive focus:border-destructive focus-visible:ring-0"
1479
+ )
1480
+ })
1481
+ ),
1482
+ extraElement
1483
+ ] })
1484
+ }
1273
1485
  );
1274
1486
  };
1275
1487
 
1276
1488
  // src/components/dataInput/Input/components/NumberInput/number-input.tsx
1277
- var React16 = __toESM(require("react"));
1278
1489
  var import_react_number_format = require("react-number-format");
1279
- var import_react6 = require("react");
1490
+ var import_react4 = require("react");
1491
+ var import_jsx_runtime26 = require("react/jsx-runtime");
1280
1492
  var NumberInput = (props) => {
1281
1493
  const formData = useConditionalController({
1282
1494
  name: props.name || "",
1283
1495
  withoutForm: props.withoutForm
1284
1496
  });
1285
- const inputProps = (0, import_react6.useMemo)(() => {
1497
+ const inputProps = (0, import_react4.useMemo)(() => {
1286
1498
  return __spreadValues(__spreadValues({}, formData), props);
1287
1499
  }, [formData, props]);
1288
- const onValueChange = (0, import_react6.useCallback)(
1500
+ const onValueChange = (0, import_react4.useCallback)(
1289
1501
  (data, sourceInfo) => {
1290
1502
  var _a, _b;
1291
1503
  const syntheticEvent = {
@@ -1306,25 +1518,25 @@ var NumberInput = (props) => {
1306
1518
  },
1307
1519
  [props, formData]
1308
1520
  );
1309
- return /* @__PURE__ */ React16.createElement(InputBase, __spreadValues({}, props), /* @__PURE__ */ React16.createElement(
1521
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(InputBase, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1310
1522
  import_react_number_format.NumericFormat,
1311
1523
  __spreadProps(__spreadValues({}, inputProps), {
1312
1524
  customInput: Input,
1313
1525
  value: props.value,
1314
1526
  onValueChange
1315
1527
  })
1316
- ));
1528
+ ) }));
1317
1529
  };
1318
1530
 
1319
1531
  // src/components/dataInput/Input/components/MaskInput/mask-input.tsx
1320
- var React17 = __toESM(require("react"));
1532
+ var React13 = __toESM(require("react"));
1321
1533
 
1322
1534
  // src/hooks/use-mask.tsx
1323
- var import_react7 = require("react");
1535
+ var import_react5 = require("react");
1324
1536
  var useMask = (_a) => {
1325
1537
  var _b = _a, { mask } = _b, options = __objRest(_b, ["mask"]);
1326
- const [value, setValue] = (0, import_react7.useState)("");
1327
- const applyMask = (0, import_react7.useCallback)(
1538
+ const [value, setValue] = (0, import_react5.useState)("");
1539
+ const applyMask = (0, import_react5.useCallback)(
1328
1540
  (inputValue) => {
1329
1541
  if (!inputValue || !mask) return "";
1330
1542
  const cleanValue = inputValue.replace(/[^a-zA-Z0-9]/g, "");
@@ -1361,26 +1573,26 @@ var useMask = (_a) => {
1361
1573
  },
1362
1574
  [mask, options.transform]
1363
1575
  );
1364
- const handleSetValue = (0, import_react7.useCallback)(
1576
+ const handleSetValue = (0, import_react5.useCallback)(
1365
1577
  (newValue) => {
1366
1578
  const maskedValue = applyMask(newValue);
1367
1579
  setValue(maskedValue);
1368
1580
  },
1369
1581
  [applyMask]
1370
1582
  );
1371
- const getRawValue = (0, import_react7.useCallback)(() => {
1583
+ const getRawValue = (0, import_react5.useCallback)(() => {
1372
1584
  return value.replace(/[^a-zA-Z0-9]/g, "");
1373
1585
  }, [value]);
1374
- const isComplete = (0, import_react7.useCallback)(() => {
1586
+ const isComplete = (0, import_react5.useCallback)(() => {
1375
1587
  return value.length === mask.length;
1376
1588
  }, [value, mask]);
1377
- const isValid = (0, import_react7.useCallback)(() => {
1589
+ const isValid = (0, import_react5.useCallback)(() => {
1378
1590
  return isComplete() && value.length > 0;
1379
1591
  }, [isComplete, value]);
1380
- const clear = (0, import_react7.useCallback)(() => {
1592
+ const clear = (0, import_react5.useCallback)(() => {
1381
1593
  setValue("");
1382
1594
  }, []);
1383
- const getFormProps = (0, import_react7.useCallback)(
1595
+ const getFormProps = (0, import_react5.useCallback)(
1384
1596
  () => ({
1385
1597
  value,
1386
1598
  onChange: (e) => {
@@ -1404,7 +1616,8 @@ var useMask = (_a) => {
1404
1616
  };
1405
1617
 
1406
1618
  // src/components/dataInput/Input/components/MaskInput/mask-input.tsx
1407
- var import_react8 = require("react");
1619
+ var import_react6 = require("react");
1620
+ var import_jsx_runtime27 = require("react/jsx-runtime");
1408
1621
  var MaskInput = (_a) => {
1409
1622
  var _b = _a, {
1410
1623
  "data-testid": dataTestId,
@@ -1421,12 +1634,12 @@ var MaskInput = (_a) => {
1421
1634
  name: props.name || "",
1422
1635
  withoutForm
1423
1636
  });
1424
- const inputProps = React17.useMemo(() => {
1637
+ const inputProps = React13.useMemo(() => {
1425
1638
  return __spreadValues(__spreadValues({}, formData), props);
1426
1639
  }, [formData, props]);
1427
1640
  const { applyMask } = useMask({ mask });
1428
- const inputRef = (0, import_react8.useRef)(null);
1429
- const applyMaskToInput = React17.useCallback(
1641
+ const inputRef = (0, import_react6.useRef)(null);
1642
+ const applyMaskToInput = React13.useCallback(
1430
1643
  (value) => {
1431
1644
  if (inputRef.current && mask) {
1432
1645
  const maskedValue = applyMask(value);
@@ -1435,7 +1648,7 @@ var MaskInput = (_a) => {
1435
1648
  },
1436
1649
  [applyMask, mask]
1437
1650
  );
1438
- const handleChange = React17.useCallback(
1651
+ const handleChange = React13.useCallback(
1439
1652
  (e) => {
1440
1653
  var _a2;
1441
1654
  const maskedValue = mask ? applyMask(e.target.value) : e.target.value;
@@ -1449,7 +1662,7 @@ var MaskInput = (_a) => {
1449
1662
  },
1450
1663
  [applyMask, inputProps, mask, applyMaskToInput]
1451
1664
  );
1452
- return /* @__PURE__ */ React17.createElement(
1665
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1453
1666
  Input2,
1454
1667
  __spreadProps(__spreadValues({}, inputProps), {
1455
1668
  ref: inputRef,
@@ -1462,12 +1675,12 @@ var MaskInput = (_a) => {
1462
1675
  };
1463
1676
 
1464
1677
  // src/components/actions/Button/Button.tsx
1465
- var import_react10 = require("react");
1678
+ var import_react7 = require("react");
1466
1679
 
1467
1680
  // src/components/ui/spinner.tsx
1468
- var import_react9 = __toESM(require("react"));
1469
1681
  var import_class_variance_authority5 = require("class-variance-authority");
1470
- var spinnerVariants = (0, import_class_variance_authority5.cva)("phsa-flex-col phsa-items-center phsa-justify-center", {
1682
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1683
+ var spinnerVariants = (0, import_class_variance_authority5.cva)("flex-col items-center justify-center", {
1471
1684
  variants: {
1472
1685
  show: {
1473
1686
  true: "flex",
@@ -1478,7 +1691,7 @@ var spinnerVariants = (0, import_class_variance_authority5.cva)("phsa-flex-col p
1478
1691
  show: true
1479
1692
  }
1480
1693
  });
1481
- var loaderVariants = (0, import_class_variance_authority5.cva)("phsa-animate-spin phsa-text-primary", {
1694
+ var loaderVariants = (0, import_class_variance_authority5.cva)("animate-spin text-primary", {
1482
1695
  variants: {
1483
1696
  size: {
1484
1697
  small: "size-6",
@@ -1496,17 +1709,20 @@ function Spinner({
1496
1709
  children,
1497
1710
  className
1498
1711
  }) {
1499
- return /* @__PURE__ */ import_react9.default.createElement("span", { className: spinnerVariants({ show }) }, /* @__PURE__ */ import_react9.default.createElement(
1500
- Icon2,
1501
- {
1502
- name: "FaSpinner",
1503
- className: cn(loaderVariants({ size }), className)
1504
- }
1505
- ), children);
1712
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("span", { className: spinnerVariants({ show }), children: [
1713
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1714
+ Icon2,
1715
+ {
1716
+ name: "FaSpinner",
1717
+ className: cn(loaderVariants({ size }), className)
1718
+ }
1719
+ ),
1720
+ children
1721
+ ] });
1506
1722
  }
1507
1723
 
1508
1724
  // src/hooks/use-toast.ts
1509
- var React19 = __toESM(require("react"));
1725
+ var React14 = __toESM(require("react"));
1510
1726
  var TOAST_LIMIT = 1;
1511
1727
  var TOAST_REMOVE_DELAY = 1e6;
1512
1728
  var count = 0;
@@ -1601,8 +1817,8 @@ function toast(_a) {
1601
1817
  };
1602
1818
  }
1603
1819
  function useToast() {
1604
- const [state, setState] = React19.useState(memoryState);
1605
- React19.useEffect(() => {
1820
+ const [state, setState] = React14.useState(memoryState);
1821
+ React14.useEffect(() => {
1606
1822
  listeners.push(setState);
1607
1823
  return () => {
1608
1824
  const index = listeners.indexOf(setState);
@@ -1618,14 +1834,15 @@ function useToast() {
1618
1834
  }
1619
1835
 
1620
1836
  // src/components/ui/toast.tsx
1621
- var React20 = __toESM(require("react"));
1837
+ var React15 = __toESM(require("react"));
1622
1838
  var ToastPrimitives = __toESM(require("@radix-ui/react-toast"));
1623
1839
  var import_class_variance_authority6 = require("class-variance-authority");
1624
1840
  var import_lucide_react4 = require("lucide-react");
1841
+ var import_jsx_runtime29 = require("react/jsx-runtime");
1625
1842
  var ToastProvider = ToastPrimitives.Provider;
1626
- var ToastViewport = React20.forwardRef((_a, ref) => {
1843
+ var ToastViewport = React15.forwardRef((_a, ref) => {
1627
1844
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1628
- return /* @__PURE__ */ React20.createElement(
1845
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1629
1846
  ToastPrimitives.Viewport,
1630
1847
  __spreadValues({
1631
1848
  ref,
@@ -1638,7 +1855,7 @@ var ToastViewport = React20.forwardRef((_a, ref) => {
1638
1855
  });
1639
1856
  ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
1640
1857
  var toastVariants = (0, import_class_variance_authority6.cva)(
1641
- "group phsa-pointer-events-auto relative phsa-flex phsa-w-full phsa-items-center phsa-justify-between phsa-space-x-2 phsa-overflow-hidden phsa-rounded-md border phsa-p-4 phsa-pr-6 phsa-shadow-lg phsa-transition-all phsa-data-[swipe=cancel]:translate-x-0 phsa-data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] phsa-data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] phsa-data-[swipe=move]:transition-none phsa-data-[state=open]:animate-in phsa-data-[state=closed]:animate-out phsa-data-[swipe=end]:animate-out phsa-data-[state=closed]:fade-out-80 phsa-data-[state=closed]:slide-out-to-right-full phsa-data-[state=open]:slide-in-from-top-full phsa-data-[state=open]:sm:slide-in-from-bottom-full",
1858
+ "group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
1642
1859
  {
1643
1860
  variants: {
1644
1861
  variant: {
@@ -1652,9 +1869,9 @@ var toastVariants = (0, import_class_variance_authority6.cva)(
1652
1869
  }
1653
1870
  }
1654
1871
  );
1655
- var Toast = React20.forwardRef((_a, ref) => {
1872
+ var Toast = React15.forwardRef((_a, ref) => {
1656
1873
  var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
1657
- return /* @__PURE__ */ React20.createElement(
1874
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1658
1875
  ToastPrimitives.Root,
1659
1876
  __spreadValues({
1660
1877
  ref,
@@ -1663,9 +1880,9 @@ var Toast = React20.forwardRef((_a, ref) => {
1663
1880
  );
1664
1881
  });
1665
1882
  Toast.displayName = ToastPrimitives.Root.displayName;
1666
- var ToastAction = React20.forwardRef((_a, ref) => {
1883
+ var ToastAction = React15.forwardRef((_a, ref) => {
1667
1884
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1668
- return /* @__PURE__ */ React20.createElement(
1885
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1669
1886
  ToastPrimitives.Action,
1670
1887
  __spreadValues({
1671
1888
  ref,
@@ -1677,25 +1894,26 @@ var ToastAction = React20.forwardRef((_a, ref) => {
1677
1894
  );
1678
1895
  });
1679
1896
  ToastAction.displayName = ToastPrimitives.Action.displayName;
1680
- var ToastClose = React20.forwardRef((_a, ref) => {
1897
+ var ToastClose = React15.forwardRef((_a, ref) => {
1681
1898
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1682
- return /* @__PURE__ */ React20.createElement(
1899
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1683
1900
  ToastPrimitives.Close,
1684
- __spreadValues({
1901
+ __spreadProps(__spreadValues({
1685
1902
  ref,
1686
1903
  className: cn(
1687
1904
  "absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",
1688
1905
  className
1689
1906
  ),
1690
1907
  "toast-close": ""
1691
- }, props),
1692
- /* @__PURE__ */ React20.createElement(import_lucide_react4.X, { className: "phsa-h-4 phsa-w-4" })
1908
+ }, props), {
1909
+ children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_lucide_react4.X, { className: "h-4 w-4" })
1910
+ })
1693
1911
  );
1694
1912
  });
1695
1913
  ToastClose.displayName = ToastPrimitives.Close.displayName;
1696
- var ToastTitle = React20.forwardRef((_a, ref) => {
1914
+ var ToastTitle = React15.forwardRef((_a, ref) => {
1697
1915
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1698
- return /* @__PURE__ */ React20.createElement(
1916
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1699
1917
  ToastPrimitives.Title,
1700
1918
  __spreadValues({
1701
1919
  ref,
@@ -1704,9 +1922,9 @@ var ToastTitle = React20.forwardRef((_a, ref) => {
1704
1922
  );
1705
1923
  });
1706
1924
  ToastTitle.displayName = ToastPrimitives.Title.displayName;
1707
- var ToastDescription = React20.forwardRef((_a, ref) => {
1925
+ var ToastDescription = React15.forwardRef((_a, ref) => {
1708
1926
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1709
- return /* @__PURE__ */ React20.createElement(
1927
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1710
1928
  ToastPrimitives.Description,
1711
1929
  __spreadValues({
1712
1930
  ref,
@@ -1717,25 +1935,41 @@ var ToastDescription = React20.forwardRef((_a, ref) => {
1717
1935
  ToastDescription.displayName = ToastPrimitives.Description.displayName;
1718
1936
 
1719
1937
  // src/components/ui/toaster.tsx
1938
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1720
1939
  function Toaster() {
1721
1940
  const { toasts } = useToast();
1722
- return /* @__PURE__ */ React.createElement(ToastProvider, null, toasts.map(function(_a) {
1723
- var _b = _a, { id, title, description, action } = _b, props = __objRest(_b, ["id", "title", "description", "action"]);
1724
- return /* @__PURE__ */ React.createElement(Toast, __spreadValues({ key: id }, props), /* @__PURE__ */ React.createElement("div", { className: "phsa-grid phsa-gap-1" }, title && /* @__PURE__ */ React.createElement(ToastTitle, null, title), description && /* @__PURE__ */ React.createElement(ToastDescription, null, description)), action, /* @__PURE__ */ React.createElement(ToastClose, null));
1725
- }), /* @__PURE__ */ React.createElement(ToastViewport, null));
1941
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(ToastProvider, { children: [
1942
+ toasts.map(function(_a) {
1943
+ var _b = _a, { id, title, description, action } = _b, props = __objRest(_b, ["id", "title", "description", "action"]);
1944
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(Toast, __spreadProps(__spreadValues({}, props), { children: [
1945
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "grid gap-1", children: [
1946
+ title && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(ToastTitle, { children: title }),
1947
+ description && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(ToastDescription, { children: description })
1948
+ ] }),
1949
+ action,
1950
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(ToastClose, {})
1951
+ ] }), id);
1952
+ }),
1953
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(ToastViewport, {})
1954
+ ] });
1726
1955
  }
1727
1956
 
1728
1957
  // src/components/actions/Button/Button.tsx
1729
- var Button2 = (0, import_react10.forwardRef)(
1958
+ var import_jsx_runtime31 = require("react/jsx-runtime");
1959
+ var Button2 = (0, import_react7.forwardRef)(
1730
1960
  (_a, ref) => {
1731
1961
  var _b = _a, { children, disabled, loading } = _b, rest = __objRest(_b, ["children", "disabled", "loading"]);
1732
- return /* @__PURE__ */ React.createElement(Button, __spreadProps(__spreadValues({}, rest), { disabled: disabled || loading, ref }), loading && /* @__PURE__ */ React.createElement(Spinner, { className: "phsa-fill-white" }), children);
1962
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(Button, __spreadProps(__spreadValues({}, rest), { disabled: disabled || loading, ref, children: [
1963
+ loading && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Spinner, { className: "fill-white" }),
1964
+ children
1965
+ ] }));
1733
1966
  }
1734
1967
  );
1735
1968
  Button2.displayName = "Button";
1736
1969
 
1737
1970
  // src/components/dataInput/Input/components/MultipleInput/MultipleInput.tsx
1738
- var import_react11 = require("react");
1971
+ var import_react8 = require("react");
1972
+ var import_jsx_runtime32 = require("react/jsx-runtime");
1739
1973
  var MultipleInput = (_a) => {
1740
1974
  var _b = _a, {
1741
1975
  data = [],
@@ -1752,18 +1986,18 @@ var MultipleInput = (_a) => {
1752
1986
  "onRemove",
1753
1987
  "withoutForm"
1754
1988
  ]);
1755
- const [inputValue, setInputValue] = (0, import_react11.useState)(defaultValue);
1989
+ const [inputValue, setInputValue] = (0, import_react8.useState)(defaultValue);
1756
1990
  const formData = useConditionalController({
1757
1991
  name: props.name || "",
1758
1992
  withoutForm
1759
1993
  });
1760
- const inputItems = (0, import_react11.useMemo)(() => {
1994
+ const inputItems = (0, import_react8.useMemo)(() => {
1761
1995
  if (formData == null ? void 0 : formData.value) {
1762
1996
  return formData.value;
1763
1997
  }
1764
1998
  return data;
1765
1999
  }, [data, formData]);
1766
- const onAddData = (0, import_react11.useCallback)(() => {
2000
+ const onAddData = (0, import_react8.useCallback)(() => {
1767
2001
  const trimmedValue = inputValue.trim();
1768
2002
  if (trimmedValue) {
1769
2003
  if (formData == null ? void 0 : formData.onChange) {
@@ -1774,7 +2008,7 @@ var MultipleInput = (_a) => {
1774
2008
  setInputValue("");
1775
2009
  }
1776
2010
  }, [inputValue, formData, onAdd, inputItems]);
1777
- const onRemoveData = (0, import_react11.useCallback)(
2011
+ const onRemoveData = (0, import_react8.useCallback)(
1778
2012
  (index) => {
1779
2013
  if (formData == null ? void 0 : formData.onChange) {
1780
2014
  const newData = inputItems.filter(
@@ -1787,47 +2021,54 @@ var MultipleInput = (_a) => {
1787
2021
  },
1788
2022
  [formData, inputItems, onRemove]
1789
2023
  );
1790
- const renderItens = (0, import_react11.useCallback)(() => {
2024
+ const renderItens = (0, import_react8.useCallback)(() => {
1791
2025
  return inputItems == null ? void 0 : inputItems.map((item, index) => {
1792
- return /* @__PURE__ */ React.createElement("div", { key: item, className: "phsa-flex phsa-justify-between" }, item, /* @__PURE__ */ React.createElement(
1793
- Button2,
1794
- {
1795
- variant: "ghost",
1796
- className: "phsa-text-destructive",
1797
- size: "icon",
1798
- onClick: () => onRemoveData(index)
1799
- },
1800
- /* @__PURE__ */ React.createElement(Icon2, { name: "MdDelete" })
1801
- ));
1802
- });
2026
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex justify-between", children: [
2027
+ item,
2028
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2029
+ Button2,
2030
+ {
2031
+ variant: "ghost",
2032
+ className: "text-destructive",
2033
+ size: "icon",
2034
+ onClick: () => onRemoveData(index),
2035
+ children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon2, { name: "MdDelete" })
2036
+ }
2037
+ )
2038
+ ] }, item);
2039
+ });
1803
2040
  }, [inputItems, onRemoveData]);
1804
- const extraElement = (0, import_react11.useMemo)(
1805
- () => /* @__PURE__ */ React.createElement(Button2, { type: "button", onClick: onAddData, disabled: !inputValue }, /* @__PURE__ */ React.createElement(Icon2, { name: "MdAdd" })),
2041
+ const extraElement = (0, import_react8.useMemo)(
2042
+ () => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Button2, { type: "button", onClick: onAddData, disabled: !inputValue, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon2, { name: "MdAdd" }) }),
1806
2043
  [onAddData, inputValue]
1807
2044
  );
1808
- return /* @__PURE__ */ React.createElement("div", { className: "phsa-flex phsa-flex-col phsa-gap-2" }, /* @__PURE__ */ React.createElement(
1809
- MaskInput,
1810
- __spreadProps(__spreadValues({}, props), {
1811
- withoutForm: true,
1812
- extraElement,
1813
- onChange: (e) => {
1814
- setInputValue(e.target.value);
1815
- },
1816
- value: inputValue
1817
- })
1818
- ), renderItens());
2045
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex flex-col gap-2", children: [
2046
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2047
+ MaskInput,
2048
+ __spreadProps(__spreadValues({}, props), {
2049
+ withoutForm: true,
2050
+ extraElement,
2051
+ onChange: (e) => {
2052
+ setInputValue(e.target.value);
2053
+ },
2054
+ value: inputValue
2055
+ })
2056
+ ),
2057
+ renderItens()
2058
+ ] });
1819
2059
  };
1820
2060
 
1821
2061
  // src/components/ui/dialog.tsx
1822
- var React21 = __toESM(require("react"));
2062
+ var React16 = __toESM(require("react"));
1823
2063
  var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"));
1824
2064
  var import_lucide_react5 = require("lucide-react");
2065
+ var import_jsx_runtime33 = require("react/jsx-runtime");
1825
2066
  var Dialog = DialogPrimitive.Root;
1826
2067
  var DialogPortal = DialogPrimitive.Portal;
1827
2068
  var DialogClose = DialogPrimitive.Close;
1828
- var DialogOverlay = React21.forwardRef((_a, ref) => {
2069
+ var DialogOverlay = React16.forwardRef((_a, ref) => {
1829
2070
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1830
- return /* @__PURE__ */ React21.createElement(
2071
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1831
2072
  DialogPrimitive.Overlay,
1832
2073
  __spreadValues({
1833
2074
  ref,
@@ -1839,20 +2080,29 @@ var DialogOverlay = React21.forwardRef((_a, ref) => {
1839
2080
  );
1840
2081
  });
1841
2082
  DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
1842
- var DialogContent = React21.forwardRef((_a, ref) => {
2083
+ var DialogContent = React16.forwardRef((_a, ref) => {
1843
2084
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
1844
- return /* @__PURE__ */ React21.createElement(DialogPortal, null, /* @__PURE__ */ React21.createElement(DialogOverlay, null), /* @__PURE__ */ React21.createElement(
1845
- DialogPrimitive.Content,
1846
- __spreadValues({
1847
- ref,
1848
- className: cn(
1849
- "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg overflow-auto max-h-[80vh]",
1850
- className
1851
- )
1852
- }, props),
1853
- children,
1854
- /* @__PURE__ */ React21.createElement(DialogPrimitive.Close, { className: "absolute phsa-right-4 phsa-top-4 phsa-rounded-sm phsa-opacity-70 phsa-ring-offset-background phsa-transition-opacity phsa-hover:opacity-100 phsa-focus:outline-none phsa-focus:ring-2 phsa-focus:ring-ring phsa-focus:ring-offset-2 phsa-disabled:pointer-events-none phsa-data-[state=open]:bg-accent phsa-data-[state=open]:text-muted-foreground" }, /* @__PURE__ */ React21.createElement(import_lucide_react5.X, { className: "phsa-h-4 phsa-w-4" }), /* @__PURE__ */ React21.createElement("span", { className: "phsa-sr-only" }, "Close"))
1855
- ));
2085
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(DialogPortal, { children: [
2086
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(DialogOverlay, {}),
2087
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
2088
+ DialogPrimitive.Content,
2089
+ __spreadProps(__spreadValues({
2090
+ ref,
2091
+ className: cn(
2092
+ "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg overflow-auto max-h-[80vh]",
2093
+ className
2094
+ )
2095
+ }, props), {
2096
+ children: [
2097
+ children,
2098
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
2099
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react5.X, { className: "h-4 w-4" }),
2100
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "sr-only", children: "Close" })
2101
+ ] })
2102
+ ]
2103
+ })
2104
+ )
2105
+ ] });
1856
2106
  });
1857
2107
  DialogContent.displayName = DialogPrimitive.Content.displayName;
1858
2108
  var DialogHeader = (_a) => {
@@ -1861,7 +2111,7 @@ var DialogHeader = (_a) => {
1861
2111
  } = _b, props = __objRest(_b, [
1862
2112
  "className"
1863
2113
  ]);
1864
- return /* @__PURE__ */ React21.createElement(
2114
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1865
2115
  "div",
1866
2116
  __spreadValues({
1867
2117
  className: cn(
@@ -1878,7 +2128,7 @@ var DialogFooter = (_a) => {
1878
2128
  } = _b, props = __objRest(_b, [
1879
2129
  "className"
1880
2130
  ]);
1881
- return /* @__PURE__ */ React21.createElement(
2131
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1882
2132
  "div",
1883
2133
  __spreadValues({
1884
2134
  className: cn(
@@ -1889,9 +2139,9 @@ var DialogFooter = (_a) => {
1889
2139
  );
1890
2140
  };
1891
2141
  DialogFooter.displayName = "DialogFooter";
1892
- var DialogTitle = React21.forwardRef((_a, ref) => {
2142
+ var DialogTitle = React16.forwardRef((_a, ref) => {
1893
2143
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1894
- return /* @__PURE__ */ React21.createElement(
2144
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1895
2145
  DialogPrimitive.Title,
1896
2146
  __spreadValues({
1897
2147
  ref,
@@ -1903,9 +2153,9 @@ var DialogTitle = React21.forwardRef((_a, ref) => {
1903
2153
  );
1904
2154
  });
1905
2155
  DialogTitle.displayName = DialogPrimitive.Title.displayName;
1906
- var DialogDescription = React21.forwardRef((_a, ref) => {
2156
+ var DialogDescription = React16.forwardRef((_a, ref) => {
1907
2157
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1908
- return /* @__PURE__ */ React21.createElement(
2158
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1909
2159
  DialogPrimitive.Description,
1910
2160
  __spreadValues({
1911
2161
  ref,
@@ -1916,7 +2166,8 @@ var DialogDescription = React21.forwardRef((_a, ref) => {
1916
2166
  DialogDescription.displayName = DialogPrimitive.Description.displayName;
1917
2167
 
1918
2168
  // src/components/actions/Dialog/Dialog.tsx
1919
- var import_react12 = require("react");
2169
+ var import_react9 = require("react");
2170
+ var import_jsx_runtime34 = require("react/jsx-runtime");
1920
2171
  function Dialog2(_a) {
1921
2172
  var _b = _a, {
1922
2173
  title,
@@ -1931,7 +2182,14 @@ function Dialog2(_a) {
1931
2182
  "children",
1932
2183
  "footer"
1933
2184
  ]);
1934
- return /* @__PURE__ */ React.createElement(Dialog, __spreadValues({}, props), /* @__PURE__ */ React.createElement(DialogContent, { className }, /* @__PURE__ */ React.createElement(DialogHeader, null, title && /* @__PURE__ */ React.createElement(DialogTitle, null, title), description && /* @__PURE__ */ React.createElement(DialogDescription, null, description)), children, footer && /* @__PURE__ */ React.createElement(DialogFooter, null, footer())));
2185
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Dialog, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(DialogContent, { className, children: [
2186
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(DialogHeader, { children: [
2187
+ title && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(DialogTitle, { children: title }),
2188
+ description && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(DialogDescription, { children: description })
2189
+ ] }),
2190
+ children,
2191
+ footer && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(DialogFooter, { children: footer() })
2192
+ ] }) }));
1935
2193
  }
1936
2194
  var DialogWithForm = (_a) => {
1937
2195
  var _b = _a, {
@@ -1950,8 +2208,18 @@ var DialogWithForm = (_a) => {
1950
2208
  "footer",
1951
2209
  "onSubmit"
1952
2210
  ]);
1953
- const dialogRef = (0, import_react12.useRef)(null);
1954
- return /* @__PURE__ */ React.createElement(Dialog, __spreadValues({}, props), /* @__PURE__ */ React.createElement(DialogContent, { className, ref: dialogRef }, /* @__PURE__ */ React.createElement("form", { onSubmit, className: "phsa-flex phsa-flex-col phsa-gap-4" }, /* @__PURE__ */ React.createElement(DialogHeader, null, title && /* @__PURE__ */ React.createElement(DialogTitle, null, title), description && /* @__PURE__ */ React.createElement(DialogDescription, null, description)), children, footer && /* @__PURE__ */ React.createElement(DialogFooter, null, /* @__PURE__ */ React.createElement("div", { className: "phsa-flex phsa-justify-between phsa-w-full" }, /* @__PURE__ */ React.createElement(DialogClose, { asChild: true }, /* @__PURE__ */ React.createElement(Button2, { type: "button", variant: "secondary" }, "Fechar")), footer())))));
2211
+ const dialogRef = (0, import_react9.useRef)(null);
2212
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Dialog, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(DialogContent, { className, ref: dialogRef, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("form", { onSubmit, className: "flex flex-col gap-4", children: [
2213
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(DialogHeader, { children: [
2214
+ title && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(DialogTitle, { children: title }),
2215
+ description && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(DialogDescription, { children: description })
2216
+ ] }),
2217
+ children,
2218
+ footer && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(DialogFooter, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex justify-between w-full", children: [
2219
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(DialogClose, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Button2, { type: "button", variant: "secondary", children: "Fechar" }) }),
2220
+ footer()
2221
+ ] }) })
2222
+ ] }) }) }));
1955
2223
  };
1956
2224
 
1957
2225
  // src/components/ui/collapsible.tsx
@@ -1961,14 +2229,15 @@ var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
1961
2229
  var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
1962
2230
 
1963
2231
  // src/components/actions/Steps/Steps.tsx
1964
- var import_react17 = require("react");
2232
+ var import_react12 = require("react");
1965
2233
 
1966
2234
  // src/components/ui/drawer.tsx
1967
- var React22 = __toESM(require("react"));
2235
+ var React17 = __toESM(require("react"));
1968
2236
  var import_vaul = require("vaul");
2237
+ var import_jsx_runtime35 = require("react/jsx-runtime");
1969
2238
  var Drawer = (_a) => {
1970
2239
  var _b = _a, { shouldScaleBackground = true } = _b, props = __objRest(_b, ["shouldScaleBackground"]);
1971
- return /* @__PURE__ */ React22.createElement(
2240
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1972
2241
  import_vaul.Drawer.Root,
1973
2242
  __spreadValues({
1974
2243
  shouldScaleBackground
@@ -1979,9 +2248,9 @@ Drawer.displayName = "Drawer";
1979
2248
  var DrawerTrigger = import_vaul.Drawer.Trigger;
1980
2249
  var DrawerPortal = import_vaul.Drawer.Portal;
1981
2250
  var DrawerClose = import_vaul.Drawer.Close;
1982
- var DrawerOverlay = React22.forwardRef((_a, ref) => {
2251
+ var DrawerOverlay = React17.forwardRef((_a, ref) => {
1983
2252
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1984
- return /* @__PURE__ */ React22.createElement(
2253
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1985
2254
  import_vaul.Drawer.Overlay,
1986
2255
  __spreadValues({
1987
2256
  ref,
@@ -1990,20 +2259,26 @@ var DrawerOverlay = React22.forwardRef((_a, ref) => {
1990
2259
  );
1991
2260
  });
1992
2261
  DrawerOverlay.displayName = import_vaul.Drawer.Overlay.displayName;
1993
- var DrawerContent = React22.forwardRef((_a, ref) => {
2262
+ var DrawerContent = React17.forwardRef((_a, ref) => {
1994
2263
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
1995
- return /* @__PURE__ */ React22.createElement(DrawerPortal, null, /* @__PURE__ */ React22.createElement(DrawerOverlay, null), /* @__PURE__ */ React22.createElement(
1996
- import_vaul.Drawer.Content,
1997
- __spreadValues({
1998
- ref,
1999
- className: cn(
2000
- "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
2001
- className
2002
- )
2003
- }, props),
2004
- /* @__PURE__ */ React22.createElement("div", { className: "phsa-mx-auto phsa-mt-4 phsa-h-2 phsa-w-[100px] phsa-rounded-full phsa-bg-muted" }),
2005
- children
2006
- ));
2264
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(DrawerPortal, { children: [
2265
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(DrawerOverlay, {}),
2266
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
2267
+ import_vaul.Drawer.Content,
2268
+ __spreadProps(__spreadValues({
2269
+ ref,
2270
+ className: cn(
2271
+ "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
2272
+ className
2273
+ )
2274
+ }, props), {
2275
+ children: [
2276
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
2277
+ children
2278
+ ]
2279
+ })
2280
+ )
2281
+ ] });
2007
2282
  });
2008
2283
  DrawerContent.displayName = "DrawerContent";
2009
2284
  var DrawerHeader = (_a) => {
@@ -2012,7 +2287,7 @@ var DrawerHeader = (_a) => {
2012
2287
  } = _b, props = __objRest(_b, [
2013
2288
  "className"
2014
2289
  ]);
2015
- return /* @__PURE__ */ React22.createElement(
2290
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2016
2291
  "div",
2017
2292
  __spreadValues({
2018
2293
  className: cn("grid gap-1.5 p-4 text-center sm:text-left", className)
@@ -2026,7 +2301,7 @@ var DrawerFooter = (_a) => {
2026
2301
  } = _b, props = __objRest(_b, [
2027
2302
  "className"
2028
2303
  ]);
2029
- return /* @__PURE__ */ React22.createElement(
2304
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2030
2305
  "div",
2031
2306
  __spreadValues({
2032
2307
  className: cn("mt-auto flex flex-col gap-2 p-4", className)
@@ -2034,9 +2309,9 @@ var DrawerFooter = (_a) => {
2034
2309
  );
2035
2310
  };
2036
2311
  DrawerFooter.displayName = "DrawerFooter";
2037
- var DrawerTitle = React22.forwardRef((_a, ref) => {
2312
+ var DrawerTitle = React17.forwardRef((_a, ref) => {
2038
2313
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2039
- return /* @__PURE__ */ React22.createElement(
2314
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2040
2315
  import_vaul.Drawer.Title,
2041
2316
  __spreadValues({
2042
2317
  ref,
@@ -2048,9 +2323,9 @@ var DrawerTitle = React22.forwardRef((_a, ref) => {
2048
2323
  );
2049
2324
  });
2050
2325
  DrawerTitle.displayName = import_vaul.Drawer.Title.displayName;
2051
- var DrawerDescription = React22.forwardRef((_a, ref) => {
2326
+ var DrawerDescription = React17.forwardRef((_a, ref) => {
2052
2327
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2053
- return /* @__PURE__ */ React22.createElement(
2328
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2054
2329
  import_vaul.Drawer.Description,
2055
2330
  __spreadValues({
2056
2331
  ref,
@@ -2061,22 +2336,23 @@ var DrawerDescription = React22.forwardRef((_a, ref) => {
2061
2336
  DrawerDescription.displayName = import_vaul.Drawer.Description.displayName;
2062
2337
 
2063
2338
  // src/components/layout/Drawer/CustomDrawer/index.tsx
2064
- var React23 = __toESM(require("react"));
2339
+ var import_jsx_runtime36 = require("react/jsx-runtime");
2065
2340
  function CustomDrawer(_a) {
2066
2341
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2067
- return /* @__PURE__ */ React23.createElement(Drawer, __spreadValues({}, props), /* @__PURE__ */ React23.createElement(DrawerContent, { className }, props.children));
2342
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Drawer, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(DrawerContent, { className, children: props.children }) }));
2068
2343
  }
2069
2344
 
2070
2345
  // src/components/ui/sheet.tsx
2071
- var React24 = __toESM(require("react"));
2346
+ var React18 = __toESM(require("react"));
2072
2347
  var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"));
2073
2348
  var import_class_variance_authority7 = require("class-variance-authority");
2074
2349
  var import_lucide_react6 = require("lucide-react");
2350
+ var import_jsx_runtime37 = require("react/jsx-runtime");
2075
2351
  var Sheet = SheetPrimitive.Root;
2076
2352
  var SheetPortal = SheetPrimitive.Portal;
2077
- var SheetOverlay = React24.forwardRef((_a, ref) => {
2353
+ var SheetOverlay = React18.forwardRef((_a, ref) => {
2078
2354
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2079
- return /* @__PURE__ */ React24.createElement(
2355
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2080
2356
  SheetPrimitive.Overlay,
2081
2357
  __spreadProps(__spreadValues({
2082
2358
  className: cn(
@@ -2090,7 +2366,7 @@ var SheetOverlay = React24.forwardRef((_a, ref) => {
2090
2366
  });
2091
2367
  SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
2092
2368
  var sheetVariants = (0, import_class_variance_authority7.cva)(
2093
- "fixed phsa-z-50 phsa-gap-4 phsa-bg-background phsa-p-6 phsa-shadow-lg transition phsa-ease-in-out phsa-data-[state=closed]:duration-300 phsa-data-[state=open]:duration-500 phsa-data-[state=open]:animate-in phsa-data-[state=closed]:animate-out",
2369
+ "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",
2094
2370
  {
2095
2371
  variants: {
2096
2372
  side: {
@@ -2105,17 +2381,26 @@ var sheetVariants = (0, import_class_variance_authority7.cva)(
2105
2381
  }
2106
2382
  }
2107
2383
  );
2108
- var SheetContent = React24.forwardRef((_a, ref) => {
2384
+ var SheetContent = React18.forwardRef((_a, ref) => {
2109
2385
  var _b = _a, { side = "right", className, children } = _b, props = __objRest(_b, ["side", "className", "children"]);
2110
- return /* @__PURE__ */ React24.createElement(SheetPortal, null, /* @__PURE__ */ React24.createElement(SheetOverlay, null), /* @__PURE__ */ React24.createElement(
2111
- SheetPrimitive.Content,
2112
- __spreadValues({
2113
- ref,
2114
- className: cn(sheetVariants({ side }), className)
2115
- }, props),
2116
- /* @__PURE__ */ React24.createElement(SheetPrimitive.Close, { className: "absolute phsa-right-4 phsa-top-4 phsa-rounded-sm phsa-opacity-70 phsa-ring-offset-background phsa-transition-opacity phsa-hover:opacity-100 phsa-focus:outline-none phsa-focus:ring-2 phsa-focus:ring-ring phsa-focus:ring-offset-2 phsa-disabled:pointer-events-none phsa-data-[state=open]:bg-secondary" }, /* @__PURE__ */ React24.createElement(import_lucide_react6.X, { className: "phsa-h-4 phsa-w-4" }), /* @__PURE__ */ React24.createElement("span", { className: "phsa-sr-only" }, "Close")),
2117
- children
2118
- ));
2386
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(SheetPortal, { children: [
2387
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(SheetOverlay, {}),
2388
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
2389
+ SheetPrimitive.Content,
2390
+ __spreadProps(__spreadValues({
2391
+ ref,
2392
+ className: cn(sheetVariants({ side }), className)
2393
+ }, props), {
2394
+ children: [
2395
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
2396
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react6.X, { className: "h-4 w-4" }),
2397
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "sr-only", children: "Close" })
2398
+ ] }),
2399
+ children
2400
+ ]
2401
+ })
2402
+ )
2403
+ ] });
2119
2404
  });
2120
2405
  SheetContent.displayName = SheetPrimitive.Content.displayName;
2121
2406
  var SheetHeader = (_a) => {
@@ -2124,7 +2409,7 @@ var SheetHeader = (_a) => {
2124
2409
  } = _b, props = __objRest(_b, [
2125
2410
  "className"
2126
2411
  ]);
2127
- return /* @__PURE__ */ React24.createElement(
2412
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2128
2413
  "div",
2129
2414
  __spreadValues({
2130
2415
  className: cn(
@@ -2141,7 +2426,7 @@ var SheetFooter = (_a) => {
2141
2426
  } = _b, props = __objRest(_b, [
2142
2427
  "className"
2143
2428
  ]);
2144
- return /* @__PURE__ */ React24.createElement(
2429
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2145
2430
  "div",
2146
2431
  __spreadValues({
2147
2432
  className: cn(
@@ -2152,9 +2437,9 @@ var SheetFooter = (_a) => {
2152
2437
  );
2153
2438
  };
2154
2439
  SheetFooter.displayName = "SheetFooter";
2155
- var SheetTitle = React24.forwardRef((_a, ref) => {
2440
+ var SheetTitle = React18.forwardRef((_a, ref) => {
2156
2441
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2157
- return /* @__PURE__ */ React24.createElement(
2442
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2158
2443
  SheetPrimitive.Title,
2159
2444
  __spreadValues({
2160
2445
  ref,
@@ -2163,9 +2448,9 @@ var SheetTitle = React24.forwardRef((_a, ref) => {
2163
2448
  );
2164
2449
  });
2165
2450
  SheetTitle.displayName = SheetPrimitive.Title.displayName;
2166
- var SheetDescription = React24.forwardRef((_a, ref) => {
2451
+ var SheetDescription = React18.forwardRef((_a, ref) => {
2167
2452
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2168
- return /* @__PURE__ */ React24.createElement(
2453
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2169
2454
  SheetPrimitive.Description,
2170
2455
  __spreadValues({
2171
2456
  ref,
@@ -2176,23 +2461,24 @@ var SheetDescription = React24.forwardRef((_a, ref) => {
2176
2461
  SheetDescription.displayName = SheetPrimitive.Description.displayName;
2177
2462
 
2178
2463
  // src/components/layout/Sheet/Sheet.tsx
2464
+ var import_jsx_runtime38 = require("react/jsx-runtime");
2179
2465
  function Sheet2(_a) {
2180
2466
  var _b = _a, { side, className, children } = _b, props = __objRest(_b, ["side", "className", "children"]);
2181
- return /* @__PURE__ */ React.createElement(Sheet, __spreadValues({}, props), /* @__PURE__ */ React.createElement(SheetContent, { side, className }, children));
2467
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Sheet, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(SheetContent, { side, className, children }) }));
2182
2468
  }
2183
2469
 
2184
2470
  // src/components/ui/sidebar.tsx
2185
- var React28 = __toESM(require("react"));
2471
+ var React22 = __toESM(require("react"));
2186
2472
  var import_react_slot3 = require("@radix-ui/react-slot");
2187
2473
  var import_class_variance_authority8 = require("class-variance-authority");
2188
2474
  var import_lucide_react7 = require("lucide-react");
2189
2475
 
2190
2476
  // src/hooks/use-mobile.tsx
2191
- var React25 = __toESM(require("react"));
2477
+ var React19 = __toESM(require("react"));
2192
2478
  var MOBILE_BREAKPOINT = 768;
2193
2479
  function useIsMobile() {
2194
- const [isMobile, setIsMobile] = React25.useState(void 0);
2195
- React25.useEffect(() => {
2480
+ const [isMobile, setIsMobile] = React19.useState(void 0);
2481
+ React19.useEffect(() => {
2196
2482
  const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
2197
2483
  const onChange = () => {
2198
2484
  setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
@@ -2205,12 +2491,13 @@ function useIsMobile() {
2205
2491
  }
2206
2492
 
2207
2493
  // src/components/ui/separator.tsx
2208
- var React26 = __toESM(require("react"));
2494
+ var React20 = __toESM(require("react"));
2209
2495
  var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"));
2210
- var Separator3 = React26.forwardRef(
2496
+ var import_jsx_runtime39 = require("react/jsx-runtime");
2497
+ var Separator3 = React20.forwardRef(
2211
2498
  (_a, ref) => {
2212
2499
  var _b = _a, { className, orientation = "horizontal", decorative = true } = _b, props = __objRest(_b, ["className", "orientation", "decorative"]);
2213
- return /* @__PURE__ */ React26.createElement(
2500
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2214
2501
  SeparatorPrimitive.Root,
2215
2502
  __spreadValues({
2216
2503
  ref,
@@ -2228,13 +2515,14 @@ var Separator3 = React26.forwardRef(
2228
2515
  Separator3.displayName = SeparatorPrimitive.Root.displayName;
2229
2516
 
2230
2517
  // src/components/ui/skeleton.tsx
2518
+ var import_jsx_runtime40 = require("react/jsx-runtime");
2231
2519
  function Skeleton(_a) {
2232
2520
  var _b = _a, {
2233
2521
  className
2234
2522
  } = _b, props = __objRest(_b, [
2235
2523
  "className"
2236
2524
  ]);
2237
- return /* @__PURE__ */ React.createElement(
2525
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2238
2526
  "div",
2239
2527
  __spreadValues({
2240
2528
  className: cn("animate-pulse rounded-md bg-primary/10", className)
@@ -2243,14 +2531,15 @@ function Skeleton(_a) {
2243
2531
  }
2244
2532
 
2245
2533
  // src/components/ui/tooltip.tsx
2246
- var React27 = __toESM(require("react"));
2534
+ var React21 = __toESM(require("react"));
2247
2535
  var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
2536
+ var import_jsx_runtime41 = require("react/jsx-runtime");
2248
2537
  var TooltipProvider = TooltipPrimitive.Provider;
2249
2538
  var Tooltip = TooltipPrimitive.Root;
2250
2539
  var TooltipTrigger = TooltipPrimitive.Trigger;
2251
- var TooltipContent = React27.forwardRef((_a, ref) => {
2540
+ var TooltipContent = React21.forwardRef((_a, ref) => {
2252
2541
  var _b = _a, { className, sideOffset = 4 } = _b, props = __objRest(_b, ["className", "sideOffset"]);
2253
- return /* @__PURE__ */ React27.createElement(TooltipPrimitive.Portal, null, /* @__PURE__ */ React27.createElement(
2542
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(TooltipPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2254
2543
  TooltipPrimitive.Content,
2255
2544
  __spreadValues({
2256
2545
  ref,
@@ -2260,26 +2549,27 @@ var TooltipContent = React27.forwardRef((_a, ref) => {
2260
2549
  className
2261
2550
  )
2262
2551
  }, props)
2263
- ));
2552
+ ) });
2264
2553
  });
2265
2554
  TooltipContent.displayName = TooltipPrimitive.Content.displayName;
2266
2555
 
2267
2556
  // src/components/ui/sidebar.tsx
2557
+ var import_jsx_runtime42 = require("react/jsx-runtime");
2268
2558
  var SIDEBAR_COOKIE_NAME = "sidebar:state";
2269
2559
  var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
2270
2560
  var SIDEBAR_WIDTH = "16rem";
2271
2561
  var SIDEBAR_WIDTH_MOBILE = "18rem";
2272
2562
  var SIDEBAR_WIDTH_ICON = "3rem";
2273
2563
  var SIDEBAR_KEYBOARD_SHORTCUT = "b";
2274
- var SidebarContext = React28.createContext(null);
2564
+ var SidebarContext = React22.createContext(null);
2275
2565
  function useSidebar() {
2276
- const context = React28.useContext(SidebarContext);
2566
+ const context = React22.useContext(SidebarContext);
2277
2567
  if (!context) {
2278
2568
  throw new Error("useSidebar must be used within a SidebarProvider.");
2279
2569
  }
2280
2570
  return context;
2281
2571
  }
2282
- var SidebarProvider = React28.forwardRef(
2572
+ var SidebarProvider = React22.forwardRef(
2283
2573
  (_a, ref) => {
2284
2574
  var _b = _a, {
2285
2575
  defaultOpen = true,
@@ -2297,10 +2587,10 @@ var SidebarProvider = React28.forwardRef(
2297
2587
  "children"
2298
2588
  ]);
2299
2589
  const isMobile = useIsMobile();
2300
- const [openMobile, setOpenMobile] = React28.useState(false);
2301
- const [_open, _setOpen] = React28.useState(defaultOpen);
2590
+ const [openMobile, setOpenMobile] = React22.useState(false);
2591
+ const [_open, _setOpen] = React22.useState(defaultOpen);
2302
2592
  const open = openProp != null ? openProp : _open;
2303
- const setOpen = React28.useCallback(
2593
+ const setOpen = React22.useCallback(
2304
2594
  (value) => {
2305
2595
  const openState = typeof value === "function" ? value(open) : value;
2306
2596
  if (setOpenProp) {
@@ -2312,10 +2602,10 @@ var SidebarProvider = React28.forwardRef(
2312
2602
  },
2313
2603
  [setOpenProp, open]
2314
2604
  );
2315
- const toggleSidebar = React28.useCallback(() => {
2605
+ const toggleSidebar = React22.useCallback(() => {
2316
2606
  return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
2317
2607
  }, [isMobile, setOpen, setOpenMobile]);
2318
- React28.useEffect(() => {
2608
+ React22.useEffect(() => {
2319
2609
  const handleKeyDown = (event) => {
2320
2610
  if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
2321
2611
  event.preventDefault();
@@ -2326,7 +2616,7 @@ var SidebarProvider = React28.forwardRef(
2326
2616
  return () => window.removeEventListener("keydown", handleKeyDown);
2327
2617
  }, [toggleSidebar]);
2328
2618
  const state = open ? "expanded" : "collapsed";
2329
- const contextValue = React28.useMemo(
2619
+ const contextValue = React22.useMemo(
2330
2620
  () => ({
2331
2621
  state,
2332
2622
  open,
@@ -2338,9 +2628,9 @@ var SidebarProvider = React28.forwardRef(
2338
2628
  }),
2339
2629
  [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
2340
2630
  );
2341
- return /* @__PURE__ */ React28.createElement(SidebarContext.Provider, { value: contextValue }, /* @__PURE__ */ React28.createElement(TooltipProvider, { delayDuration: 0 }, /* @__PURE__ */ React28.createElement(
2631
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2342
2632
  "div",
2343
- __spreadValues({
2633
+ __spreadProps(__spreadValues({
2344
2634
  style: __spreadValues({
2345
2635
  "--sidebar-width": SIDEBAR_WIDTH,
2346
2636
  "--sidebar-width-icon": SIDEBAR_WIDTH_ICON
@@ -2350,13 +2640,14 @@ var SidebarProvider = React28.forwardRef(
2350
2640
  className
2351
2641
  ),
2352
2642
  ref
2353
- }, props),
2354
- children
2355
- )));
2643
+ }, props), {
2644
+ children
2645
+ })
2646
+ ) }) });
2356
2647
  }
2357
2648
  );
2358
2649
  SidebarProvider.displayName = "SidebarProvider";
2359
- var Sidebar = React28.forwardRef(
2650
+ var Sidebar = React22.forwardRef(
2360
2651
  (_a, ref) => {
2361
2652
  var _b = _a, {
2362
2653
  side = "left",
@@ -2373,84 +2664,88 @@ var Sidebar = React28.forwardRef(
2373
2664
  ]);
2374
2665
  const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
2375
2666
  if (collapsible === "none") {
2376
- return /* @__PURE__ */ React28.createElement(
2667
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2377
2668
  "div",
2378
- __spreadValues({
2669
+ __spreadProps(__spreadValues({
2379
2670
  className: cn(
2380
2671
  "flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",
2381
2672
  className
2382
2673
  ),
2383
2674
  ref
2384
- }, props),
2385
- children
2675
+ }, props), {
2676
+ children
2677
+ })
2386
2678
  );
2387
2679
  }
2388
2680
  if (isMobile) {
2389
- return /* @__PURE__ */ React28.createElement(Sheet, __spreadValues({ open: openMobile, onOpenChange: setOpenMobile }, props), /* @__PURE__ */ React28.createElement(
2681
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Sheet, __spreadProps(__spreadValues({ open: openMobile, onOpenChange: setOpenMobile }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2390
2682
  SheetContent,
2391
2683
  {
2392
2684
  "data-sidebar": "sidebar",
2393
2685
  "data-mobile": "true",
2394
- className: "phsa-w-[--sidebar-width] phsa-bg-sidebar phsa-p-0 phsa-text-sidebar-foreground [&>button]:hidden",
2686
+ className: "w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",
2395
2687
  style: {
2396
2688
  "--sidebar-width": SIDEBAR_WIDTH_MOBILE
2397
2689
  },
2398
- side
2399
- },
2400
- /* @__PURE__ */ React28.createElement("div", { className: "phsa-flex phsa-h-full phsa-w-full phsa-flex-col" }, children)
2401
- ));
2690
+ side,
2691
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "flex h-full w-full flex-col", children })
2692
+ }
2693
+ ) }));
2402
2694
  }
2403
- return /* @__PURE__ */ React28.createElement(
2695
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
2404
2696
  "div",
2405
2697
  {
2406
2698
  ref,
2407
- className: "group peer phsa-hidden md:block phsa-text-sidebar-foreground",
2699
+ className: "group peer hidden md:block text-sidebar-foreground",
2408
2700
  "data-state": state,
2409
2701
  "data-collapsible": state === "collapsed" ? collapsible : "",
2410
2702
  "data-variant": variant,
2411
- "data-side": side
2412
- },
2413
- /* @__PURE__ */ React28.createElement(
2414
- "div",
2415
- {
2416
- className: cn(
2417
- "duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear",
2418
- "group-data-[collapsible=offcanvas]:w-0",
2419
- "group-data-[side=right]:rotate-180",
2420
- variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]" : "group-data-[collapsible=icon]:w-[--sidebar-width-icon]"
2421
- )
2422
- }
2423
- ),
2424
- /* @__PURE__ */ React28.createElement(
2425
- "div",
2426
- __spreadValues({
2427
- className: cn(
2428
- "duration-200 fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",
2429
- side === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
2430
- // Adjust the padding for floating and inset variants.
2431
- variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]" : "group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",
2432
- className
2703
+ "data-side": side,
2704
+ children: [
2705
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2706
+ "div",
2707
+ {
2708
+ className: cn(
2709
+ "duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear",
2710
+ "group-data-[collapsible=offcanvas]:w-0",
2711
+ "group-data-[side=right]:rotate-180",
2712
+ variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]" : "group-data-[collapsible=icon]:w-[--sidebar-width-icon]"
2713
+ )
2714
+ }
2715
+ ),
2716
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2717
+ "div",
2718
+ __spreadProps(__spreadValues({
2719
+ className: cn(
2720
+ "duration-200 fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",
2721
+ side === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
2722
+ // Adjust the padding for floating and inset variants.
2723
+ variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]" : "group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",
2724
+ className
2725
+ )
2726
+ }, props), {
2727
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2728
+ "div",
2729
+ {
2730
+ "data-sidebar": "sidebar",
2731
+ className: "flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",
2732
+ children
2733
+ }
2734
+ )
2735
+ })
2433
2736
  )
2434
- }, props),
2435
- /* @__PURE__ */ React28.createElement(
2436
- "div",
2437
- {
2438
- "data-sidebar": "sidebar",
2439
- className: "phsa-flex phsa-h-full phsa-w-full phsa-flex-col phsa-bg-sidebar phsa-group-data-[variant=floating]:rounded-lg phsa-group-data-[variant=floating]:border phsa-group-data-[variant=floating]:border-sidebar-border phsa-group-data-[variant=floating]:shadow"
2440
- },
2441
- children
2442
- )
2443
- )
2737
+ ]
2738
+ }
2444
2739
  );
2445
2740
  }
2446
2741
  );
2447
2742
  Sidebar.displayName = "Sidebar";
2448
- var SidebarTrigger = React28.forwardRef((_a, ref) => {
2743
+ var SidebarTrigger = React22.forwardRef((_a, ref) => {
2449
2744
  var _b = _a, { className, onClick } = _b, props = __objRest(_b, ["className", "onClick"]);
2450
2745
  const { toggleSidebar } = useSidebar();
2451
- return /* @__PURE__ */ React28.createElement(
2746
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
2452
2747
  Button,
2453
- __spreadValues({
2748
+ __spreadProps(__spreadValues({
2454
2749
  ref,
2455
2750
  "data-sidebar": "trigger",
2456
2751
  variant: "ghost",
@@ -2460,16 +2755,19 @@ var SidebarTrigger = React28.forwardRef((_a, ref) => {
2460
2755
  onClick == null ? void 0 : onClick(event);
2461
2756
  toggleSidebar();
2462
2757
  }
2463
- }, props),
2464
- /* @__PURE__ */ React28.createElement(import_lucide_react7.PanelLeft, null),
2465
- /* @__PURE__ */ React28.createElement("span", { className: "phsa-sr-only" }, "Toggle Sidebar")
2758
+ }, props), {
2759
+ children: [
2760
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react7.PanelLeft, {}),
2761
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "sr-only", children: "Toggle Sidebar" })
2762
+ ]
2763
+ })
2466
2764
  );
2467
2765
  });
2468
2766
  SidebarTrigger.displayName = "SidebarTrigger";
2469
- var SidebarRail = React28.forwardRef((_a, ref) => {
2767
+ var SidebarRail = React22.forwardRef((_a, ref) => {
2470
2768
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2471
2769
  const { toggleSidebar } = useSidebar();
2472
- return /* @__PURE__ */ React28.createElement(
2770
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2473
2771
  "button",
2474
2772
  __spreadValues({
2475
2773
  ref,
@@ -2491,9 +2789,9 @@ var SidebarRail = React28.forwardRef((_a, ref) => {
2491
2789
  );
2492
2790
  });
2493
2791
  SidebarRail.displayName = "SidebarRail";
2494
- var SidebarInset = React28.forwardRef((_a, ref) => {
2792
+ var SidebarInset = React22.forwardRef((_a, ref) => {
2495
2793
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2496
- return /* @__PURE__ */ React28.createElement(
2794
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2497
2795
  "main",
2498
2796
  __spreadValues({
2499
2797
  ref,
@@ -2506,9 +2804,9 @@ var SidebarInset = React28.forwardRef((_a, ref) => {
2506
2804
  );
2507
2805
  });
2508
2806
  SidebarInset.displayName = "SidebarInset";
2509
- var SidebarInput = React28.forwardRef((_a, ref) => {
2807
+ var SidebarInput = React22.forwardRef((_a, ref) => {
2510
2808
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2511
- return /* @__PURE__ */ React28.createElement(
2809
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2512
2810
  Input,
2513
2811
  __spreadValues({
2514
2812
  ref,
@@ -2521,9 +2819,9 @@ var SidebarInput = React28.forwardRef((_a, ref) => {
2521
2819
  );
2522
2820
  });
2523
2821
  SidebarInput.displayName = "SidebarInput";
2524
- var SidebarHeader = React28.forwardRef((_a, ref) => {
2822
+ var SidebarHeader = React22.forwardRef((_a, ref) => {
2525
2823
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2526
- return /* @__PURE__ */ React28.createElement(
2824
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2527
2825
  "div",
2528
2826
  __spreadValues({
2529
2827
  ref,
@@ -2533,9 +2831,9 @@ var SidebarHeader = React28.forwardRef((_a, ref) => {
2533
2831
  );
2534
2832
  });
2535
2833
  SidebarHeader.displayName = "SidebarHeader";
2536
- var SidebarFooter = React28.forwardRef((_a, ref) => {
2834
+ var SidebarFooter = React22.forwardRef((_a, ref) => {
2537
2835
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2538
- return /* @__PURE__ */ React28.createElement(
2836
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2539
2837
  "div",
2540
2838
  __spreadValues({
2541
2839
  ref,
@@ -2545,9 +2843,9 @@ var SidebarFooter = React28.forwardRef((_a, ref) => {
2545
2843
  );
2546
2844
  });
2547
2845
  SidebarFooter.displayName = "SidebarFooter";
2548
- var SidebarSeparator = React28.forwardRef((_a, ref) => {
2846
+ var SidebarSeparator = React22.forwardRef((_a, ref) => {
2549
2847
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2550
- return /* @__PURE__ */ React28.createElement(
2848
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2551
2849
  Separator3,
2552
2850
  __spreadValues({
2553
2851
  ref,
@@ -2557,9 +2855,9 @@ var SidebarSeparator = React28.forwardRef((_a, ref) => {
2557
2855
  );
2558
2856
  });
2559
2857
  SidebarSeparator.displayName = "SidebarSeparator";
2560
- var SidebarContent = React28.forwardRef((_a, ref) => {
2858
+ var SidebarContent = React22.forwardRef((_a, ref) => {
2561
2859
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2562
- return /* @__PURE__ */ React28.createElement(
2860
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2563
2861
  "div",
2564
2862
  __spreadValues({
2565
2863
  ref,
@@ -2572,9 +2870,9 @@ var SidebarContent = React28.forwardRef((_a, ref) => {
2572
2870
  );
2573
2871
  });
2574
2872
  SidebarContent.displayName = "SidebarContent";
2575
- var SidebarGroup = React28.forwardRef((_a, ref) => {
2873
+ var SidebarGroup = React22.forwardRef((_a, ref) => {
2576
2874
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2577
- return /* @__PURE__ */ React28.createElement(
2875
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2578
2876
  "div",
2579
2877
  __spreadValues({
2580
2878
  ref,
@@ -2584,10 +2882,10 @@ var SidebarGroup = React28.forwardRef((_a, ref) => {
2584
2882
  );
2585
2883
  });
2586
2884
  SidebarGroup.displayName = "SidebarGroup";
2587
- var SidebarGroupLabel = React28.forwardRef((_a, ref) => {
2885
+ var SidebarGroupLabel = React22.forwardRef((_a, ref) => {
2588
2886
  var _b = _a, { className, asChild = false } = _b, props = __objRest(_b, ["className", "asChild"]);
2589
2887
  const Comp = asChild ? import_react_slot3.Slot : "div";
2590
- return /* @__PURE__ */ React28.createElement(
2888
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2591
2889
  Comp,
2592
2890
  __spreadValues({
2593
2891
  ref,
@@ -2601,10 +2899,10 @@ var SidebarGroupLabel = React28.forwardRef((_a, ref) => {
2601
2899
  );
2602
2900
  });
2603
2901
  SidebarGroupLabel.displayName = "SidebarGroupLabel";
2604
- var SidebarGroupAction = React28.forwardRef((_a, ref) => {
2902
+ var SidebarGroupAction = React22.forwardRef((_a, ref) => {
2605
2903
  var _b = _a, { className, asChild = false } = _b, props = __objRest(_b, ["className", "asChild"]);
2606
2904
  const Comp = asChild ? import_react_slot3.Slot : "button";
2607
- return /* @__PURE__ */ React28.createElement(
2905
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2608
2906
  Comp,
2609
2907
  __spreadValues({
2610
2908
  ref,
@@ -2620,9 +2918,9 @@ var SidebarGroupAction = React28.forwardRef((_a, ref) => {
2620
2918
  );
2621
2919
  });
2622
2920
  SidebarGroupAction.displayName = "SidebarGroupAction";
2623
- var SidebarGroupContent = React28.forwardRef((_a, ref) => {
2921
+ var SidebarGroupContent = React22.forwardRef((_a, ref) => {
2624
2922
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2625
- return /* @__PURE__ */ React28.createElement(
2923
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2626
2924
  "div",
2627
2925
  __spreadValues({
2628
2926
  ref,
@@ -2632,9 +2930,9 @@ var SidebarGroupContent = React28.forwardRef((_a, ref) => {
2632
2930
  );
2633
2931
  });
2634
2932
  SidebarGroupContent.displayName = "SidebarGroupContent";
2635
- var SidebarMenu = React28.forwardRef((_a, ref) => {
2933
+ var SidebarMenu = React22.forwardRef((_a, ref) => {
2636
2934
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2637
- return /* @__PURE__ */ React28.createElement(
2935
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2638
2936
  "ul",
2639
2937
  __spreadValues({
2640
2938
  ref,
@@ -2644,9 +2942,9 @@ var SidebarMenu = React28.forwardRef((_a, ref) => {
2644
2942
  );
2645
2943
  });
2646
2944
  SidebarMenu.displayName = "SidebarMenu";
2647
- var SidebarMenuItem = React28.forwardRef((_a, ref) => {
2945
+ var SidebarMenuItem = React22.forwardRef((_a, ref) => {
2648
2946
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2649
- return /* @__PURE__ */ React28.createElement(
2947
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2650
2948
  "li",
2651
2949
  __spreadValues({
2652
2950
  ref,
@@ -2657,7 +2955,7 @@ var SidebarMenuItem = React28.forwardRef((_a, ref) => {
2657
2955
  });
2658
2956
  SidebarMenuItem.displayName = "SidebarMenuItem";
2659
2957
  var sidebarMenuButtonVariants = (0, import_class_variance_authority8.cva)(
2660
- "phsa-peer/menu-button phsa-flex phsa-w-full phsa-items-center phsa-gap-2 phsa-overflow-hidden phsa-rounded-md phsa-p-2 phsa-text-left phsa-text-sm phsa-outline-none phsa-ring-sidebar-ring phsa-transition-[width,height,padding] phsa-hover:bg-sidebar-accent phsa-hover:text-sidebar-accent-foreground phsa-focus-visible:ring-2 phsa-active:bg-sidebar-accent phsa-active:text-sidebar-accent-foreground phsa-disabled:pointer-events-none phsa-disabled:opacity-50 phsa-group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 phsa-aria-disabled:pointer-events-none phsa-aria-disabled:opacity-50 phsa-data-[active=true]:bg-sidebar-accent phsa-data-[active=true]:font-medium phsa-data-[active=true]:text-sidebar-accent-foreground phsa-data-[state=open]:hover:bg-sidebar-accent phsa-data-[state=open]:hover:text-sidebar-accent-foreground phsa-group-data-[collapsible=icon]:!size-8 phsa-group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
2958
+ "peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
2661
2959
  {
2662
2960
  variants: {
2663
2961
  variant: {
@@ -2676,7 +2974,7 @@ var sidebarMenuButtonVariants = (0, import_class_variance_authority8.cva)(
2676
2974
  }
2677
2975
  }
2678
2976
  );
2679
- var SidebarMenuButton = React28.forwardRef(
2977
+ var SidebarMenuButton = React22.forwardRef(
2680
2978
  (_a, ref) => {
2681
2979
  var _b = _a, {
2682
2980
  asChild = false,
@@ -2695,7 +2993,7 @@ var SidebarMenuButton = React28.forwardRef(
2695
2993
  ]);
2696
2994
  const Comp = asChild ? import_react_slot3.Slot : "button";
2697
2995
  const { isMobile, state } = useSidebar();
2698
- const button = /* @__PURE__ */ React28.createElement(
2996
+ const button = /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2699
2997
  Comp,
2700
2998
  __spreadValues({
2701
2999
  ref,
@@ -2713,21 +3011,24 @@ var SidebarMenuButton = React28.forwardRef(
2713
3011
  children: tooltip
2714
3012
  };
2715
3013
  }
2716
- return /* @__PURE__ */ React28.createElement(Tooltip, null, /* @__PURE__ */ React28.createElement(TooltipTrigger, { asChild: true }, button), /* @__PURE__ */ React28.createElement(
2717
- TooltipContent,
2718
- __spreadValues({
2719
- side: "right",
2720
- align: "center",
2721
- hidden: state !== "collapsed" || isMobile
2722
- }, tooltip)
2723
- ));
3014
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Tooltip, { children: [
3015
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(TooltipTrigger, { asChild: true, children: button }),
3016
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3017
+ TooltipContent,
3018
+ __spreadValues({
3019
+ side: "right",
3020
+ align: "center",
3021
+ hidden: state !== "collapsed" || isMobile
3022
+ }, tooltip)
3023
+ )
3024
+ ] });
2724
3025
  }
2725
3026
  );
2726
3027
  SidebarMenuButton.displayName = "SidebarMenuButton";
2727
- var SidebarMenuAction = React28.forwardRef((_a, ref) => {
3028
+ var SidebarMenuAction = React22.forwardRef((_a, ref) => {
2728
3029
  var _b = _a, { className, asChild = false, showOnHover = false } = _b, props = __objRest(_b, ["className", "asChild", "showOnHover"]);
2729
3030
  const Comp = asChild ? import_react_slot3.Slot : "button";
2730
- return /* @__PURE__ */ React28.createElement(
3031
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2731
3032
  Comp,
2732
3033
  __spreadValues({
2733
3034
  ref,
@@ -2747,9 +3048,9 @@ var SidebarMenuAction = React28.forwardRef((_a, ref) => {
2747
3048
  );
2748
3049
  });
2749
3050
  SidebarMenuAction.displayName = "SidebarMenuAction";
2750
- var SidebarMenuBadge = React28.forwardRef((_a, ref) => {
3051
+ var SidebarMenuBadge = React22.forwardRef((_a, ref) => {
2751
3052
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2752
- return /* @__PURE__ */ React28.createElement(
3053
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2753
3054
  "div",
2754
3055
  __spreadValues({
2755
3056
  ref,
@@ -2767,41 +3068,44 @@ var SidebarMenuBadge = React28.forwardRef((_a, ref) => {
2767
3068
  );
2768
3069
  });
2769
3070
  SidebarMenuBadge.displayName = "SidebarMenuBadge";
2770
- var SidebarMenuSkeleton = React28.forwardRef((_a, ref) => {
3071
+ var SidebarMenuSkeleton = React22.forwardRef((_a, ref) => {
2771
3072
  var _b = _a, { className, showIcon = false } = _b, props = __objRest(_b, ["className", "showIcon"]);
2772
- const width = React28.useMemo(() => {
3073
+ const width = React22.useMemo(() => {
2773
3074
  return `${Math.floor(Math.random() * 40) + 50}%`;
2774
3075
  }, []);
2775
- return /* @__PURE__ */ React28.createElement(
3076
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
2776
3077
  "div",
2777
- __spreadValues({
3078
+ __spreadProps(__spreadValues({
2778
3079
  ref,
2779
3080
  "data-sidebar": "menu-skeleton",
2780
3081
  className: cn("rounded-md h-8 flex gap-2 px-2 items-center", className)
2781
- }, props),
2782
- showIcon && /* @__PURE__ */ React28.createElement(
2783
- Skeleton,
2784
- {
2785
- className: "phsa-size-4 phsa-rounded-md",
2786
- "data-sidebar": "menu-skeleton-icon"
2787
- }
2788
- ),
2789
- /* @__PURE__ */ React28.createElement(
2790
- Skeleton,
2791
- {
2792
- className: "phsa-h-4 phsa-flex-1 phsa-max-w-[--skeleton-width]",
2793
- "data-sidebar": "menu-skeleton-text",
2794
- style: {
2795
- "--skeleton-width": width
2796
- }
2797
- }
2798
- )
3082
+ }, props), {
3083
+ children: [
3084
+ showIcon && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3085
+ Skeleton,
3086
+ {
3087
+ className: "size-4 rounded-md",
3088
+ "data-sidebar": "menu-skeleton-icon"
3089
+ }
3090
+ ),
3091
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3092
+ Skeleton,
3093
+ {
3094
+ className: "h-4 flex-1 max-w-[--skeleton-width]",
3095
+ "data-sidebar": "menu-skeleton-text",
3096
+ style: {
3097
+ "--skeleton-width": width
3098
+ }
3099
+ }
3100
+ )
3101
+ ]
3102
+ })
2799
3103
  );
2800
3104
  });
2801
3105
  SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
2802
- var SidebarMenuSub = React28.forwardRef((_a, ref) => {
3106
+ var SidebarMenuSub = React22.forwardRef((_a, ref) => {
2803
3107
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2804
- return /* @__PURE__ */ React28.createElement(
3108
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2805
3109
  "ul",
2806
3110
  __spreadValues({
2807
3111
  ref,
@@ -2815,15 +3119,15 @@ var SidebarMenuSub = React28.forwardRef((_a, ref) => {
2815
3119
  );
2816
3120
  });
2817
3121
  SidebarMenuSub.displayName = "SidebarMenuSub";
2818
- var SidebarMenuSubItem = React28.forwardRef((_a, ref) => {
3122
+ var SidebarMenuSubItem = React22.forwardRef((_a, ref) => {
2819
3123
  var props = __objRest(_a, []);
2820
- return /* @__PURE__ */ React28.createElement("li", __spreadValues({ ref }, props));
3124
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("li", __spreadValues({ ref }, props));
2821
3125
  });
2822
3126
  SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
2823
- var SidebarMenuSubButton = React28.forwardRef((_a, ref) => {
3127
+ var SidebarMenuSubButton = React22.forwardRef((_a, ref) => {
2824
3128
  var _b = _a, { asChild = false, size = "md", isActive, className } = _b, props = __objRest(_b, ["asChild", "size", "isActive", "className"]);
2825
3129
  const Comp = asChild ? import_react_slot3.Slot : "a";
2826
- return /* @__PURE__ */ React28.createElement(
3130
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2827
3131
  Comp,
2828
3132
  __spreadValues({
2829
3133
  ref,
@@ -2844,55 +3148,66 @@ var SidebarMenuSubButton = React28.forwardRef((_a, ref) => {
2844
3148
  SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
2845
3149
 
2846
3150
  // src/components/layout/Sidebar/components/app-sidebar.tsx
2847
- var React31 = __toESM(require("react"));
2848
3151
  var import_lucide_react9 = require("lucide-react");
2849
3152
 
2850
3153
  // src/components/layout/Sidebar/components/team-switcher.tsx
2851
- var React29 = __toESM(require("react"));
2852
3154
  var import_lucide_react8 = require("lucide-react");
3155
+ var import_jsx_runtime43 = require("react/jsx-runtime");
2853
3156
  function TeamSwitcher({
2854
3157
  teams
2855
3158
  }) {
2856
3159
  const { isMobile } = useSidebar();
2857
- return /* @__PURE__ */ React29.createElement(SidebarMenu, null, /* @__PURE__ */ React29.createElement(SidebarMenuItem, null, /* @__PURE__ */ React29.createElement(DropdownMenu, null, /* @__PURE__ */ React29.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React29.createElement(
3160
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(SidebarMenu, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(SidebarMenuItem, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(DropdownMenu, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
2858
3161
  SidebarMenuButton,
2859
3162
  {
2860
3163
  size: "lg",
2861
- className: "phsa-data-[state=open]:bg-sidebar-accent phsa-data-[state=open]:text-sidebar-accent-foreground"
2862
- },
2863
- /* @__PURE__ */ React29.createElement("div", { className: "phsa-flex phsa-aspect-square phsa-size-8 phsa-items-center phsa-justify-center phsa-rounded-lg phsa-bg-sidebar-primary phsa-text-sidebar-primary-foreground" }),
2864
- /* @__PURE__ */ React29.createElement("div", { className: "phsa-grid phsa-flex-1 phsa-text-left phsa-text-sm phsa-leading-tight" }, /* @__PURE__ */ React29.createElement("span", { className: "truncate phsa-font-semibold" }, teams == null ? void 0 : teams.name), /* @__PURE__ */ React29.createElement("span", { className: "truncate phsa-text-xs" }, teams == null ? void 0 : teams.plan)),
2865
- /* @__PURE__ */ React29.createElement(import_lucide_react8.ChevronsUpDown, { className: "phsa-ml-auto" })
2866
- )))));
3164
+ className: "data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground",
3165
+ children: [
3166
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "flex aspect-square size-8 items-center justify-center rounded-lg bg-sidebar-primary text-sidebar-primary-foreground" }),
3167
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "grid flex-1 text-left text-sm leading-tight", children: [
3168
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "truncate font-semibold", children: teams == null ? void 0 : teams.name }),
3169
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "truncate text-xs", children: teams == null ? void 0 : teams.plan })
3170
+ ] }),
3171
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_lucide_react8.ChevronsUpDown, { className: "ml-auto" })
3172
+ ]
3173
+ }
3174
+ ) }) }) }) });
2867
3175
  }
2868
3176
 
2869
3177
  // src/components/layout/Sidebar/components/menus.tsx
2870
- var import_react13 = __toESM(require("react"));
3178
+ var import_jsx_runtime44 = require("react/jsx-runtime");
2871
3179
  function Menus({
2872
3180
  items
2873
3181
  }) {
2874
- return /* @__PURE__ */ import_react13.default.createElement(import_react13.default.Fragment, null, items.map((item, index) => {
3182
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_jsx_runtime44.Fragment, { children: items.map((item, index) => {
2875
3183
  var _a;
2876
- return /* @__PURE__ */ import_react13.default.createElement(SidebarGroup, { key: index }, /* @__PURE__ */ import_react13.default.createElement(SidebarGroupLabel, null, item.title), /* @__PURE__ */ import_react13.default.createElement(SidebarMenu, null, (_a = item.items) == null ? void 0 : _a.map((subItem) => /* @__PURE__ */ import_react13.default.createElement(SidebarMenuItem, { key: subItem.title }, /* @__PURE__ */ import_react13.default.createElement(
2877
- SidebarMenuButton,
2878
- {
2879
- asChild: true,
2880
- className: cn(
2881
- (subItem == null ? void 0 : subItem.isActive) && "bg-sidebar-accent font-semibold"
2882
- )
2883
- },
2884
- /* @__PURE__ */ import_react13.default.createElement("a", { href: subItem.url }, (subItem == null ? void 0 : subItem.icon) && subItem.icon(), /* @__PURE__ */ import_react13.default.createElement("span", null, subItem.title))
2885
- )))));
2886
- }));
3184
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(SidebarGroup, { children: [
3185
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SidebarGroupLabel, { children: item.title }),
3186
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SidebarMenu, { children: (_a = item.items) == null ? void 0 : _a.map((subItem) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SidebarMenuItem, { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
3187
+ SidebarMenuButton,
3188
+ {
3189
+ asChild: true,
3190
+ className: cn(
3191
+ (subItem == null ? void 0 : subItem.isActive) && "bg-sidebar-accent font-semibold"
3192
+ ),
3193
+ children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("a", { href: subItem.url, children: [
3194
+ (subItem == null ? void 0 : subItem.icon) && subItem.icon(),
3195
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { children: subItem.title })
3196
+ ] })
3197
+ }
3198
+ ) }, subItem.title)) })
3199
+ ] }, index);
3200
+ }) });
2887
3201
  }
2888
3202
 
2889
3203
  // src/components/layout/Sidebar/components/app-sidebar.tsx
3204
+ var import_jsx_runtime45 = require("react/jsx-runtime");
2890
3205
  function AppSidebar(_a) {
2891
3206
  var _b = _a, {
2892
3207
  navbar = [],
2893
3208
  enterprise = {
2894
3209
  name: "Acme Inc",
2895
- logo: () => /* @__PURE__ */ React31.createElement(import_lucide_react9.GalleryVerticalEnd, null),
3210
+ logo: () => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react9.GalleryVerticalEnd, {}),
2896
3211
  plan: "Enterprise"
2897
3212
  },
2898
3213
  footer
@@ -2901,21 +3216,27 @@ function AppSidebar(_a) {
2901
3216
  "enterprise",
2902
3217
  "footer"
2903
3218
  ]);
2904
- return /* @__PURE__ */ React31.createElement(Sidebar, __spreadValues({ collapsible: "icon" }, props), /* @__PURE__ */ React31.createElement(SidebarHeader, null, /* @__PURE__ */ React31.createElement(TeamSwitcher, { teams: enterprise })), /* @__PURE__ */ React31.createElement(SidebarContent, null, /* @__PURE__ */ React31.createElement(Menus, { items: navbar })), footer && /* @__PURE__ */ React31.createElement(SidebarFooter, null, footer()), /* @__PURE__ */ React31.createElement(SidebarRail, null));
3219
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(Sidebar, __spreadProps(__spreadValues({ collapsible: "icon" }, props), { children: [
3220
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SidebarHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TeamSwitcher, { teams: enterprise }) }),
3221
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SidebarContent, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Menus, { items: navbar }) }),
3222
+ footer && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SidebarFooter, { children: footer() }),
3223
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SidebarRail, {})
3224
+ ] }));
2905
3225
  }
2906
3226
 
2907
3227
  // src/components/ui/breadcrumb.tsx
2908
- var React32 = __toESM(require("react"));
3228
+ var React23 = __toESM(require("react"));
2909
3229
  var import_react_slot4 = require("@radix-ui/react-slot");
2910
3230
  var import_lucide_react10 = require("lucide-react");
2911
- var Breadcrumb = React32.forwardRef((_a, ref) => {
3231
+ var import_jsx_runtime46 = require("react/jsx-runtime");
3232
+ var Breadcrumb = React23.forwardRef((_a, ref) => {
2912
3233
  var props = __objRest(_a, []);
2913
- return /* @__PURE__ */ React32.createElement("nav", __spreadValues({ ref, "aria-label": "breadcrumb" }, props));
3234
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("nav", __spreadValues({ ref, "aria-label": "breadcrumb" }, props));
2914
3235
  });
2915
3236
  Breadcrumb.displayName = "Breadcrumb";
2916
- var BreadcrumbList = React32.forwardRef((_a, ref) => {
3237
+ var BreadcrumbList = React23.forwardRef((_a, ref) => {
2917
3238
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2918
- return /* @__PURE__ */ React32.createElement(
3239
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2919
3240
  "ol",
2920
3241
  __spreadValues({
2921
3242
  ref,
@@ -2927,9 +3248,9 @@ var BreadcrumbList = React32.forwardRef((_a, ref) => {
2927
3248
  );
2928
3249
  });
2929
3250
  BreadcrumbList.displayName = "BreadcrumbList";
2930
- var BreadcrumbItem = React32.forwardRef((_a, ref) => {
3251
+ var BreadcrumbItem = React23.forwardRef((_a, ref) => {
2931
3252
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2932
- return /* @__PURE__ */ React32.createElement(
3253
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2933
3254
  "li",
2934
3255
  __spreadValues({
2935
3256
  ref,
@@ -2938,10 +3259,10 @@ var BreadcrumbItem = React32.forwardRef((_a, ref) => {
2938
3259
  );
2939
3260
  });
2940
3261
  BreadcrumbItem.displayName = "BreadcrumbItem";
2941
- var BreadcrumbLink = React32.forwardRef((_a, ref) => {
3262
+ var BreadcrumbLink = React23.forwardRef((_a, ref) => {
2942
3263
  var _b = _a, { asChild, className } = _b, props = __objRest(_b, ["asChild", "className"]);
2943
3264
  const Comp = asChild ? import_react_slot4.Slot : "a";
2944
- return /* @__PURE__ */ React32.createElement(
3265
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2945
3266
  Comp,
2946
3267
  __spreadValues({
2947
3268
  ref,
@@ -2950,9 +3271,9 @@ var BreadcrumbLink = React32.forwardRef((_a, ref) => {
2950
3271
  );
2951
3272
  });
2952
3273
  BreadcrumbLink.displayName = "BreadcrumbLink";
2953
- var BreadcrumbPage = React32.forwardRef((_a, ref) => {
3274
+ var BreadcrumbPage = React23.forwardRef((_a, ref) => {
2954
3275
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2955
- return /* @__PURE__ */ React32.createElement(
3276
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2956
3277
  "span",
2957
3278
  __spreadValues({
2958
3279
  ref,
@@ -2972,14 +3293,15 @@ var BreadcrumbSeparator = (_a) => {
2972
3293
  "children",
2973
3294
  "className"
2974
3295
  ]);
2975
- return /* @__PURE__ */ React32.createElement(
3296
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2976
3297
  "li",
2977
- __spreadValues({
3298
+ __spreadProps(__spreadValues({
2978
3299
  role: "presentation",
2979
3300
  "aria-hidden": "true",
2980
3301
  className: cn("[&>svg]:w-3.5 [&>svg]:h-3.5", className)
2981
- }, props),
2982
- children != null ? children : /* @__PURE__ */ React32.createElement(import_lucide_react10.ChevronRight, null)
3302
+ }, props), {
3303
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react10.ChevronRight, {})
3304
+ })
2983
3305
  );
2984
3306
  };
2985
3307
  BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
@@ -2989,31 +3311,35 @@ var BreadcrumbEllipsis = (_a) => {
2989
3311
  } = _b, props = __objRest(_b, [
2990
3312
  "className"
2991
3313
  ]);
2992
- return /* @__PURE__ */ React32.createElement(
3314
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
2993
3315
  "span",
2994
- __spreadValues({
3316
+ __spreadProps(__spreadValues({
2995
3317
  role: "presentation",
2996
3318
  "aria-hidden": "true",
2997
3319
  className: cn("flex h-9 w-9 items-center justify-center", className)
2998
- }, props),
2999
- /* @__PURE__ */ React32.createElement(import_lucide_react10.MoreHorizontal, { className: "phsa-h-4 phsa-w-4" }),
3000
- /* @__PURE__ */ React32.createElement("span", { className: "phsa-sr-only" }, "More")
3320
+ }, props), {
3321
+ children: [
3322
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react10.MoreHorizontal, { className: "h-4 w-4" }),
3323
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "sr-only", children: "More" })
3324
+ ]
3325
+ })
3001
3326
  );
3002
3327
  };
3003
3328
  BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
3004
3329
 
3005
3330
  // src/components/layout/Sidebar/provider/index.tsx
3006
- var import_react14 = require("react");
3007
- var SidebarContext2 = (0, import_react14.createContext)({});
3331
+ var import_react10 = require("react");
3332
+ var import_jsx_runtime47 = require("react/jsx-runtime");
3333
+ var SidebarContext2 = (0, import_react10.createContext)({});
3008
3334
  function SidebarProvider2({
3009
3335
  children,
3010
3336
  defaultPath = "/",
3011
3337
  defaultCollapsed = false
3012
3338
  }) {
3013
- const [isCollapsed, setIsCollapsed] = (0, import_react14.useState)(defaultCollapsed);
3014
- const [currentPath, setCurrentPath] = (0, import_react14.useState)(defaultPath);
3339
+ const [isCollapsed, setIsCollapsed] = (0, import_react10.useState)(defaultCollapsed);
3340
+ const [currentPath, setCurrentPath] = (0, import_react10.useState)(defaultPath);
3015
3341
  const toggleCollapse = () => setIsCollapsed((prev) => !prev);
3016
- return /* @__PURE__ */ React.createElement(
3342
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
3017
3343
  SidebarContext2.Provider,
3018
3344
  {
3019
3345
  value: {
@@ -3021,13 +3347,13 @@ function SidebarProvider2({
3021
3347
  isCollapsed,
3022
3348
  toggleCollapse,
3023
3349
  setCurrentPath
3024
- }
3025
- },
3026
- children
3350
+ },
3351
+ children
3352
+ }
3027
3353
  );
3028
3354
  }
3029
3355
  function useSidebar2() {
3030
- const context = (0, import_react14.useContext)(SidebarContext2);
3356
+ const context = (0, import_react10.useContext)(SidebarContext2);
3031
3357
  if (!context) {
3032
3358
  throw new Error("useSidebar must be used within a SidebarProvider");
3033
3359
  }
@@ -3035,6 +3361,7 @@ function useSidebar2() {
3035
3361
  }
3036
3362
 
3037
3363
  // src/components/layout/Sidebar/components/header-sidebar.tsx
3364
+ var import_jsx_runtime48 = require("react/jsx-runtime");
3038
3365
  var routeMap = {
3039
3366
  dashboard: "Dashboard",
3040
3367
  users: "Usu\xE1rios",
@@ -3048,9 +3375,12 @@ var routeMap = {
3048
3375
  };
3049
3376
  var BreadcrumbElement = ({ isLast, path, label }) => {
3050
3377
  if (isLast) {
3051
- return /* @__PURE__ */ React.createElement(BreadcrumbItem, null, /* @__PURE__ */ React.createElement(BreadcrumbPage, { className: "capitalize" }, label));
3378
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(BreadcrumbItem, { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(BreadcrumbPage, { className: "capitalize", children: label }) });
3052
3379
  }
3053
- return /* @__PURE__ */ React.createElement(BreadcrumbItem, null, /* @__PURE__ */ React.createElement(BreadcrumbLink, { href: path, className: "capitalize" }, label), /* @__PURE__ */ React.createElement(BreadcrumbSeparator, null));
3380
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(BreadcrumbItem, { children: [
3381
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(BreadcrumbLink, { href: path, className: "capitalize", children: label }),
3382
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(BreadcrumbSeparator, {})
3383
+ ] });
3054
3384
  };
3055
3385
  var HeaderSidebar = () => {
3056
3386
  const { currentPath } = useSidebar2();
@@ -3064,15 +3394,37 @@ var HeaderSidebar = () => {
3064
3394
  isLast
3065
3395
  };
3066
3396
  });
3067
- return /* @__PURE__ */ React.createElement("header", { className: "phsa-flex phsa-h-16 phsa-shrink-0 phsa-items-center phsa-border-b phsa-border-border phsa-bg-background phsa-px-4 phsa-transition-[width,height] phsa-ease-linear phsa-group-has-[[data-collapsible=icon]]/sidebar-wrapper:h-12" }, /* @__PURE__ */ React.createElement("div", { className: "phsa-flex phsa-items-center phsa-gap-4" }, /* @__PURE__ */ React.createElement(SidebarTrigger, { className: "phsa--ml-2 phsa-h-9 phsa-w-9" }), /* @__PURE__ */ React.createElement(Separator3, { orientation: "vertical", className: "phsa-h-6" }), /* @__PURE__ */ React.createElement(Breadcrumb, null, /* @__PURE__ */ React.createElement(BreadcrumbList, null, /* @__PURE__ */ React.createElement(BreadcrumbItem, null, /* @__PURE__ */ React.createElement(BreadcrumbLink, { href: "/", className: "capitalize" }, "Home"), /* @__PURE__ */ React.createElement(BreadcrumbSeparator, null)), breadcrumbItems.map((item) => /* @__PURE__ */ React.createElement(BreadcrumbElement, __spreadValues({ key: item.path }, item)))))));
3397
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("header", { className: "flex h-16 shrink-0 items-center border-b border-border bg-background px-4 transition-[width,height] ease-linear group-has-[[data-collapsible=icon]]/sidebar-wrapper:h-12", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex items-center gap-4", children: [
3398
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SidebarTrigger, { className: "-ml-2 h-9 w-9" }),
3399
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Separator3, { orientation: "vertical", className: "h-6" }),
3400
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Breadcrumb, { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(BreadcrumbList, { children: [
3401
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(BreadcrumbItem, { children: [
3402
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(BreadcrumbLink, { href: "/", className: "capitalize", children: "Home" }),
3403
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(BreadcrumbSeparator, {})
3404
+ ] }),
3405
+ breadcrumbItems.map((item) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(BreadcrumbElement, __spreadValues({}, item), item.path))
3406
+ ] }) })
3407
+ ] }) });
3068
3408
  };
3069
3409
 
3070
3410
  // src/components/layout/Sidebar/components/footer-sidebar.tsx
3411
+ var import_jsx_runtime49 = require("react/jsx-runtime");
3071
3412
  var FooterSidebar = () => {
3072
- return /* @__PURE__ */ React.createElement("footer", { className: "phsa-h-[65px]" }, /* @__PURE__ */ React.createElement(Separator3, null), /* @__PURE__ */ React.createElement("div", { className: "phsa-flex phsa-items-center phsa-justify-between phsa-h-16 phsa-bg-background phsa-px-5" }, /* @__PURE__ */ React.createElement("span", { className: "phsa-text-sm phsa-text-muted-foreground" }, "\xA9 ", (/* @__PURE__ */ new Date()).getFullYear(), " Your Company"), /* @__PURE__ */ React.createElement("span", { className: "phsa-text-sm phsa-text-muted-foreground" }, "Feito na terra do sol \u{1F31E}")));
3413
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("footer", { className: "h-[65px]", children: [
3414
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Separator3, {}),
3415
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex items-center justify-between h-16 bg-background px-5", children: [
3416
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("span", { className: "text-sm text-muted-foreground", children: [
3417
+ "\xA9 ",
3418
+ (/* @__PURE__ */ new Date()).getFullYear(),
3419
+ " Your Company"
3420
+ ] }),
3421
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "text-sm text-muted-foreground", children: "Feito na terra do sol \u{1F31E}" })
3422
+ ] })
3423
+ ] });
3073
3424
  };
3074
3425
 
3075
3426
  // src/components/layout/Sidebar/Sidebar.tsx
3427
+ var import_jsx_runtime50 = require("react/jsx-runtime");
3076
3428
  var Sidebar2 = (_a) => {
3077
3429
  var _b = _a, {
3078
3430
  children,
@@ -3087,84 +3439,134 @@ var Sidebar2 = (_a) => {
3087
3439
  "defaultPath",
3088
3440
  "defaultCollapsed"
3089
3441
  ]);
3090
- return /* @__PURE__ */ React.createElement(
3442
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
3091
3443
  SidebarProvider2,
3092
3444
  {
3093
3445
  defaultPath,
3094
- defaultCollapsed
3095
- },
3096
- /* @__PURE__ */ React.createElement(SidebarProvider, null, /* @__PURE__ */ React.createElement(AppSidebar, __spreadValues({}, rest)), /* @__PURE__ */ React.createElement(SidebarInset, { className: "phsa-overflow-auto phsa-bg-slate-50" }, /* @__PURE__ */ React.createElement(HeaderSidebar, null), /* @__PURE__ */ React.createElement(
3097
- "main",
3098
- {
3099
- className: cn(
3100
- "flex flex-1 flex-col gap-4 p-4 pt-0",
3101
- contentClassName
3102
- )
3103
- },
3104
- children
3105
- ), showFooter && /* @__PURE__ */ React.createElement(FooterSidebar, null)))
3446
+ defaultCollapsed,
3447
+ children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(SidebarProvider, { children: [
3448
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(AppSidebar, __spreadValues({}, rest)),
3449
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(SidebarInset, { className: "overflow-auto bg-slate-50", children: [
3450
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(HeaderSidebar, {}),
3451
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
3452
+ "main",
3453
+ {
3454
+ className: cn(
3455
+ "flex flex-1 flex-col gap-4 p-4 pt-0",
3456
+ contentClassName
3457
+ ),
3458
+ children
3459
+ }
3460
+ ),
3461
+ showFooter && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(FooterSidebar, {})
3462
+ ] })
3463
+ ] })
3464
+ }
3106
3465
  );
3107
3466
  };
3108
3467
 
3109
3468
  // src/components/layout/Sidebar/components/nav-user.tsx
3110
3469
  var import_lucide_react11 = require("lucide-react");
3111
- var import_react15 = require("react");
3470
+ var import_react11 = require("react");
3471
+ var import_jsx_runtime51 = require("react/jsx-runtime");
3112
3472
  function NavUser({
3113
3473
  user,
3114
3474
  logoutAction = () => {
3115
3475
  }
3116
3476
  }) {
3117
3477
  const { isMobile } = useSidebar();
3118
- const renderUserInformation = (0, import_react15.useCallback)(() => {
3119
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Avatar, { className: "phsa-h-8 phsa-w-8 phsa-rounded-lg" }, /* @__PURE__ */ React.createElement(AvatarImage, { src: user == null ? void 0 : user.avatar, alt: user == null ? void 0 : user.name }), /* @__PURE__ */ React.createElement(AvatarFallback, { className: "phsa-rounded-lg" }, "CN")), /* @__PURE__ */ React.createElement("div", { className: "phsa-grid phsa-flex-1 phsa-text-left phsa-text-sm phsa-leading-tight" }, /* @__PURE__ */ React.createElement("span", { className: "truncate phsa-font-semibold" }, user == null ? void 0 : user.name), /* @__PURE__ */ React.createElement("span", { className: "truncate phsa-text-xs" }, user == null ? void 0 : user.email)));
3478
+ const renderUserInformation = (0, import_react11.useCallback)(() => {
3479
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
3480
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(Avatar, { className: "h-8 w-8 rounded-lg", children: [
3481
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(AvatarImage, { src: user == null ? void 0 : user.avatar, alt: user == null ? void 0 : user.name }),
3482
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(AvatarFallback, { className: "rounded-lg", children: "CN" })
3483
+ ] }),
3484
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "grid flex-1 text-left text-sm leading-tight", children: [
3485
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "truncate font-semibold", children: user == null ? void 0 : user.name }),
3486
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "truncate text-xs", children: user == null ? void 0 : user.email })
3487
+ ] })
3488
+ ] });
3120
3489
  }, [user]);
3121
- return /* @__PURE__ */ React.createElement(SidebarMenu, null, /* @__PURE__ */ React.createElement(SidebarMenuItem, null, /* @__PURE__ */ React.createElement(DropdownMenu, null, /* @__PURE__ */ React.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React.createElement(
3122
- SidebarMenuButton,
3123
- {
3124
- size: "lg",
3125
- className: "phsa-data-[state=open]:bg-sidebar-accent phsa-data-[state=open]:text-sidebar-accent-foreground"
3126
- },
3127
- renderUserInformation(),
3128
- /* @__PURE__ */ React.createElement(import_lucide_react11.ChevronsUpDown, { className: "phsa-ml-auto phsa-size-4" })
3129
- )), /* @__PURE__ */ React.createElement(
3130
- DropdownMenuContent,
3131
- {
3132
- className: "phsa-w-[--radix-dropdown-menu-trigger-width] phsa-min-w-56 phsa-rounded-lg",
3133
- side: isMobile ? "bottom" : "right",
3134
- align: "end",
3135
- sideOffset: 4
3136
- },
3137
- /* @__PURE__ */ React.createElement(DropdownMenuLabel, { className: "phsa-p-0 phsa-font-normal" }, /* @__PURE__ */ React.createElement("div", { className: "phsa-flex phsa-items-center phsa-gap-2 phsa-px-1 phsa-py-1.5 phsa-text-left phsa-text-sm" }, renderUserInformation())),
3138
- /* @__PURE__ */ React.createElement(DropdownMenuSeparator, null),
3139
- /* @__PURE__ */ React.createElement(DropdownMenuGroup, null, /* @__PURE__ */ React.createElement(DropdownMenuItem, null, /* @__PURE__ */ React.createElement(import_lucide_react11.Sparkles, null), "Upgrade to Pro")),
3140
- /* @__PURE__ */ React.createElement(DropdownMenuSeparator, null),
3141
- /* @__PURE__ */ React.createElement(DropdownMenuGroup, null, /* @__PURE__ */ React.createElement(DropdownMenuItem, null, /* @__PURE__ */ React.createElement(import_lucide_react11.BadgeCheck, null), "Account"), /* @__PURE__ */ React.createElement(DropdownMenuItem, null, /* @__PURE__ */ React.createElement(import_lucide_react11.CreditCard, null), "Billing"), /* @__PURE__ */ React.createElement(DropdownMenuItem, null, /* @__PURE__ */ React.createElement(import_lucide_react11.Bell, null), "Notifications")),
3142
- /* @__PURE__ */ React.createElement(DropdownMenuSeparator, null),
3143
- /* @__PURE__ */ React.createElement(DropdownMenuItem, { onClick: logoutAction }, /* @__PURE__ */ React.createElement(import_lucide_react11.LogOut, null), "Log out")
3144
- ))));
3490
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SidebarMenu, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SidebarMenuItem, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(DropdownMenu, { children: [
3491
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
3492
+ SidebarMenuButton,
3493
+ {
3494
+ size: "lg",
3495
+ className: "data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground",
3496
+ children: [
3497
+ renderUserInformation(),
3498
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_lucide_react11.ChevronsUpDown, { className: "ml-auto size-4" })
3499
+ ]
3500
+ }
3501
+ ) }),
3502
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
3503
+ DropdownMenuContent,
3504
+ {
3505
+ className: "w-[--radix-dropdown-menu-trigger-width] min-w-56 rounded-lg",
3506
+ side: isMobile ? "bottom" : "right",
3507
+ align: "end",
3508
+ sideOffset: 4,
3509
+ children: [
3510
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DropdownMenuLabel, { className: "p-0 font-normal", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "flex items-center gap-2 px-1 py-1.5 text-left text-sm", children: renderUserInformation() }) }),
3511
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DropdownMenuSeparator, {}),
3512
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DropdownMenuGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(DropdownMenuItem, { children: [
3513
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_lucide_react11.Sparkles, {}),
3514
+ "Upgrade to Pro"
3515
+ ] }) }),
3516
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DropdownMenuSeparator, {}),
3517
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(DropdownMenuGroup, { children: [
3518
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(DropdownMenuItem, { children: [
3519
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_lucide_react11.BadgeCheck, {}),
3520
+ "Account"
3521
+ ] }),
3522
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(DropdownMenuItem, { children: [
3523
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_lucide_react11.CreditCard, {}),
3524
+ "Billing"
3525
+ ] }),
3526
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(DropdownMenuItem, { children: [
3527
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_lucide_react11.Bell, {}),
3528
+ "Notifications"
3529
+ ] })
3530
+ ] }),
3531
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DropdownMenuSeparator, {}),
3532
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(DropdownMenuItem, { onClick: logoutAction, children: [
3533
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_lucide_react11.LogOut, {}),
3534
+ "Log out"
3535
+ ] })
3536
+ ]
3537
+ }
3538
+ )
3539
+ ] }) }) });
3145
3540
  }
3146
3541
 
3147
3542
  // src/components/layout/PageLayout/index.tsx
3148
- var import_react16 = __toESM(require("react"));
3543
+ var import_jsx_runtime52 = require("react/jsx-runtime");
3149
3544
  var PageLayout = ({
3150
3545
  subtitle,
3151
3546
  title,
3152
3547
  children,
3153
3548
  header
3154
3549
  }) => {
3155
- return /* @__PURE__ */ import_react16.default.createElement("div", { className: "phsa-m-5 phsa-p-4 phsa-bg-white" }, /* @__PURE__ */ import_react16.default.createElement("div", { className: "phsa-flex phsa-justify-between" }, /* @__PURE__ */ import_react16.default.createElement("div", null, title && /* @__PURE__ */ import_react16.default.createElement(Text, { variant: "title" }, title), subtitle && /* @__PURE__ */ import_react16.default.createElement(Text, { variant: "muted" }, subtitle)), header), /* @__PURE__ */ import_react16.default.createElement("div", { className: "phsa-mt-5" }, children));
3550
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "m-5 p-4 bg-white", children: [
3551
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex justify-between", children: [
3552
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { children: [
3553
+ title && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Text, { variant: "title", children: title }),
3554
+ subtitle && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Text, { variant: "muted", children: subtitle })
3555
+ ] }),
3556
+ header
3557
+ ] }),
3558
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "mt-5", children })
3559
+ ] });
3156
3560
  };
3157
3561
 
3158
- // src/components/layout/Tabs/Tabs.tsx
3159
- var React35 = __toESM(require("react"));
3160
-
3161
3562
  // src/components/ui/tabs.tsx
3162
- var React34 = __toESM(require("react"));
3563
+ var React24 = __toESM(require("react"));
3163
3564
  var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
3565
+ var import_jsx_runtime53 = require("react/jsx-runtime");
3164
3566
  var Tabs = TabsPrimitive.Root;
3165
- var TabsList = React34.forwardRef((_a, ref) => {
3567
+ var TabsList = React24.forwardRef((_a, ref) => {
3166
3568
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3167
- return /* @__PURE__ */ React34.createElement(
3569
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
3168
3570
  TabsPrimitive.List,
3169
3571
  __spreadValues({
3170
3572
  ref,
@@ -3176,9 +3578,9 @@ var TabsList = React34.forwardRef((_a, ref) => {
3176
3578
  );
3177
3579
  });
3178
3580
  TabsList.displayName = TabsPrimitive.List.displayName;
3179
- var TabsTrigger = React34.forwardRef((_a, ref) => {
3581
+ var TabsTrigger = React24.forwardRef((_a, ref) => {
3180
3582
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3181
- return /* @__PURE__ */ React34.createElement(
3583
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
3182
3584
  TabsPrimitive.Trigger,
3183
3585
  __spreadValues({
3184
3586
  ref,
@@ -3190,9 +3592,9 @@ var TabsTrigger = React34.forwardRef((_a, ref) => {
3190
3592
  );
3191
3593
  });
3192
3594
  TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
3193
- var TabsContent = React34.forwardRef((_a, ref) => {
3595
+ var TabsContent = React24.forwardRef((_a, ref) => {
3194
3596
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3195
- return /* @__PURE__ */ React34.createElement(
3597
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
3196
3598
  TabsPrimitive.Content,
3197
3599
  __spreadValues({
3198
3600
  ref,
@@ -3206,13 +3608,14 @@ var TabsContent = React34.forwardRef((_a, ref) => {
3206
3608
  TabsContent.displayName = TabsPrimitive.Content.displayName;
3207
3609
 
3208
3610
  // src/components/layout/Tabs/Tabs.tsx
3611
+ var import_jsx_runtime54 = require("react/jsx-runtime");
3209
3612
  var Tabs2 = ({
3210
3613
  tabs,
3211
3614
  activeTabIndex = 0,
3212
3615
  onTabChange,
3213
3616
  className
3214
3617
  }) => {
3215
- return /* @__PURE__ */ React35.createElement(
3618
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
3216
3619
  Tabs,
3217
3620
  {
3218
3621
  value: tabs[activeTabIndex].label,
@@ -3220,50 +3623,58 @@ var Tabs2 = ({
3220
3623
  const index = tabs.findIndex((tab) => tab.label === value);
3221
3624
  if (onTabChange) onTabChange(index);
3222
3625
  },
3223
- className: cn("w-full", className)
3224
- },
3225
- /* @__PURE__ */ React35.createElement(TabsList, null, tabs.map((tab, index) => /* @__PURE__ */ React35.createElement(TabsTrigger, { key: index, value: tab.label }, tab.label))),
3226
- tabs.map((tab, index) => /* @__PURE__ */ React35.createElement(TabsContent, { key: index, value: tab.label }, tab.content))
3626
+ className: cn("w-full", className),
3627
+ children: [
3628
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(TabsList, { children: tabs.map((tab, index) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(TabsTrigger, { value: tab.label, children: tab.label }, index)) }),
3629
+ tabs.map((tab, index) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(TabsContent, { value: tab.label, children: tab.content }, index))
3630
+ ]
3631
+ }
3227
3632
  );
3228
3633
  };
3229
3634
 
3230
3635
  // src/components/actions/Steps/Steps.tsx
3636
+ var import_jsx_runtime55 = require("react/jsx-runtime");
3231
3637
  var Steps = ({ data, onClick = () => {
3232
3638
  }, value }) => {
3233
- const renderSteps = (0, import_react17.useCallback)(() => {
3639
+ const renderSteps = (0, import_react12.useCallback)(() => {
3234
3640
  return data.map(({ label, id }, index) => {
3235
3641
  const isLast = index === data.length - 1;
3236
3642
  const isActive = typeof value === "number" && id <= value;
3237
- return /* @__PURE__ */ React.createElement("div", { key: index, className: cn(!isLast && "w-full flex items-center") }, /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(
3238
- Button2,
3239
- {
3240
- onClick: () => onClick && onClick(id),
3241
- variant: isActive ? "default" : "outline",
3242
- size: "icon",
3243
- className: "phsa-rounded-full"
3244
- },
3245
- isActive ? /* @__PURE__ */ React.createElement(Icon2, { name: "MdCheck" }) : index + 1
3246
- )), label && /* @__PURE__ */ React.createElement("p", { className: "absolute" }, label), !isLast && /* @__PURE__ */ React.createElement(
3247
- Separator3,
3248
- {
3249
- orientation: "horizontal",
3250
- className: cn(isActive && "bg-primary h-[2px]")
3251
- }
3252
- ));
3643
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: cn(!isLast && "w-full flex items-center"), children: [
3644
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
3645
+ Button2,
3646
+ {
3647
+ onClick: () => onClick && onClick(id),
3648
+ variant: isActive ? "default" : "outline",
3649
+ size: "icon",
3650
+ className: "rounded-full",
3651
+ children: isActive ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icon2, { name: "MdCheck" }) : index + 1
3652
+ }
3653
+ ) }),
3654
+ label && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: "absolute", children: label }),
3655
+ !isLast && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
3656
+ Separator3,
3657
+ {
3658
+ orientation: "horizontal",
3659
+ className: cn(isActive && "bg-primary h-[2px]")
3660
+ }
3661
+ )
3662
+ ] }, index);
3253
3663
  });
3254
3664
  }, [data, onClick, value]);
3255
- return /* @__PURE__ */ React.createElement("div", { className: "phsa-flex phsa-w-full" }, renderSteps());
3665
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "flex w-full", children: renderSteps() });
3256
3666
  };
3257
3667
 
3258
3668
  // src/components/ui/alert-dialog.tsx
3259
- var React36 = __toESM(require("react"));
3669
+ var React25 = __toESM(require("react"));
3260
3670
  var AlertDialogPrimitive = __toESM(require("@radix-ui/react-alert-dialog"));
3671
+ var import_jsx_runtime56 = require("react/jsx-runtime");
3261
3672
  var AlertDialog = AlertDialogPrimitive.Root;
3262
3673
  var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
3263
3674
  var AlertDialogPortal = AlertDialogPrimitive.Portal;
3264
- var AlertDialogOverlay = React36.forwardRef((_a, ref) => {
3675
+ var AlertDialogOverlay = React25.forwardRef((_a, ref) => {
3265
3676
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3266
- return /* @__PURE__ */ React36.createElement(
3677
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
3267
3678
  AlertDialogPrimitive.Overlay,
3268
3679
  __spreadProps(__spreadValues({
3269
3680
  className: cn(
@@ -3276,18 +3687,21 @@ var AlertDialogOverlay = React36.forwardRef((_a, ref) => {
3276
3687
  );
3277
3688
  });
3278
3689
  AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
3279
- var AlertDialogContent = React36.forwardRef((_a, ref) => {
3690
+ var AlertDialogContent = React25.forwardRef((_a, ref) => {
3280
3691
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3281
- return /* @__PURE__ */ React36.createElement(AlertDialogPortal, null, /* @__PURE__ */ React36.createElement(AlertDialogOverlay, null), /* @__PURE__ */ React36.createElement(
3282
- AlertDialogPrimitive.Content,
3283
- __spreadValues({
3284
- ref,
3285
- className: cn(
3286
- "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
3287
- className
3288
- )
3289
- }, props)
3290
- ));
3692
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(AlertDialogPortal, { children: [
3693
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(AlertDialogOverlay, {}),
3694
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
3695
+ AlertDialogPrimitive.Content,
3696
+ __spreadValues({
3697
+ ref,
3698
+ className: cn(
3699
+ "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
3700
+ className
3701
+ )
3702
+ }, props)
3703
+ )
3704
+ ] });
3291
3705
  });
3292
3706
  AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
3293
3707
  var AlertDialogHeader = (_a) => {
@@ -3296,7 +3710,7 @@ var AlertDialogHeader = (_a) => {
3296
3710
  } = _b, props = __objRest(_b, [
3297
3711
  "className"
3298
3712
  ]);
3299
- return /* @__PURE__ */ React36.createElement(
3713
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
3300
3714
  "div",
3301
3715
  __spreadValues({
3302
3716
  className: cn(
@@ -3313,7 +3727,7 @@ var AlertDialogFooter = (_a) => {
3313
3727
  } = _b, props = __objRest(_b, [
3314
3728
  "className"
3315
3729
  ]);
3316
- return /* @__PURE__ */ React36.createElement(
3730
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
3317
3731
  "div",
3318
3732
  __spreadValues({
3319
3733
  className: cn(
@@ -3324,9 +3738,9 @@ var AlertDialogFooter = (_a) => {
3324
3738
  );
3325
3739
  };
3326
3740
  AlertDialogFooter.displayName = "AlertDialogFooter";
3327
- var AlertDialogTitle = React36.forwardRef((_a, ref) => {
3741
+ var AlertDialogTitle = React25.forwardRef((_a, ref) => {
3328
3742
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3329
- return /* @__PURE__ */ React36.createElement(
3743
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
3330
3744
  AlertDialogPrimitive.Title,
3331
3745
  __spreadValues({
3332
3746
  ref,
@@ -3335,9 +3749,9 @@ var AlertDialogTitle = React36.forwardRef((_a, ref) => {
3335
3749
  );
3336
3750
  });
3337
3751
  AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
3338
- var AlertDialogDescription = React36.forwardRef((_a, ref) => {
3752
+ var AlertDialogDescription = React25.forwardRef((_a, ref) => {
3339
3753
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3340
- return /* @__PURE__ */ React36.createElement(
3754
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
3341
3755
  AlertDialogPrimitive.Description,
3342
3756
  __spreadValues({
3343
3757
  ref,
@@ -3346,9 +3760,9 @@ var AlertDialogDescription = React36.forwardRef((_a, ref) => {
3346
3760
  );
3347
3761
  });
3348
3762
  AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
3349
- var AlertDialogAction = React36.forwardRef((_a, ref) => {
3763
+ var AlertDialogAction = React25.forwardRef((_a, ref) => {
3350
3764
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3351
- return /* @__PURE__ */ React36.createElement(
3765
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
3352
3766
  AlertDialogPrimitive.Action,
3353
3767
  __spreadValues({
3354
3768
  ref,
@@ -3357,9 +3771,9 @@ var AlertDialogAction = React36.forwardRef((_a, ref) => {
3357
3771
  );
3358
3772
  });
3359
3773
  AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
3360
- var AlertDialogCancel = React36.forwardRef((_a, ref) => {
3774
+ var AlertDialogCancel = React25.forwardRef((_a, ref) => {
3361
3775
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3362
- return /* @__PURE__ */ React36.createElement(
3776
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
3363
3777
  AlertDialogPrimitive.Cancel,
3364
3778
  __spreadValues({
3365
3779
  ref,
@@ -3374,6 +3788,7 @@ var AlertDialogCancel = React36.forwardRef((_a, ref) => {
3374
3788
  AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
3375
3789
 
3376
3790
  // src/components/actions/AlertDialog/AlertDialog.tsx
3791
+ var import_jsx_runtime57 = require("react/jsx-runtime");
3377
3792
  var AlertDialog2 = ({
3378
3793
  title,
3379
3794
  description,
@@ -3381,13 +3796,26 @@ var AlertDialog2 = ({
3381
3796
  onConfirm,
3382
3797
  onCancel
3383
3798
  }) => {
3384
- return /* @__PURE__ */ React.createElement(AlertDialog, null, /* @__PURE__ */ React.createElement(AlertDialogTrigger, { asChild: true }, children), /* @__PURE__ */ React.createElement(AlertDialogContent, null, /* @__PURE__ */ React.createElement(AlertDialogHeader, null, /* @__PURE__ */ React.createElement(AlertDialogTitle, null, title), description && /* @__PURE__ */ React.createElement(AlertDialogDescription, null, description)), /* @__PURE__ */ React.createElement(AlertDialogFooter, null, /* @__PURE__ */ React.createElement(AlertDialogCancel, { onClick: onCancel }, "Cancel"), /* @__PURE__ */ React.createElement(AlertDialogAction, { onClick: onConfirm }, "Continue"))));
3799
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(AlertDialog, { children: [
3800
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(AlertDialogTrigger, { asChild: true, children }),
3801
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(AlertDialogContent, { children: [
3802
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(AlertDialogHeader, { children: [
3803
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(AlertDialogTitle, { children: title }),
3804
+ description && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(AlertDialogDescription, { children: description })
3805
+ ] }),
3806
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(AlertDialogFooter, { children: [
3807
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(AlertDialogCancel, { onClick: onCancel, children: "Cancel" }),
3808
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(AlertDialogAction, { onClick: onConfirm, children: "Continue" })
3809
+ ] })
3810
+ ] })
3811
+ ] });
3385
3812
  };
3386
3813
 
3387
3814
  // src/components/dataInput/Input/components/MultipleInput/MultipleInputBase.tsx
3388
- var import_react18 = require("react");
3815
+ var import_react13 = require("react");
3389
3816
  var import_react_hook_form5 = require("react-hook-form");
3390
3817
  var import_lodash2 = __toESM(require("lodash"));
3818
+ var import_jsx_runtime58 = require("react/jsx-runtime");
3391
3819
  var MultipleInputBase = ({
3392
3820
  children,
3393
3821
  data = [],
@@ -3398,21 +3826,21 @@ var MultipleInputBase = ({
3398
3826
  }) => {
3399
3827
  const form = (0, import_react_hook_form5.useFormContext)();
3400
3828
  const withForm = !!form && !!name;
3401
- const [inputValue, setInputValue] = (0, import_react18.useState)("");
3402
- const inputData = (0, import_react18.useMemo)(() => {
3829
+ const [inputValue, setInputValue] = (0, import_react13.useState)("");
3830
+ const inputData = (0, import_react13.useMemo)(() => {
3403
3831
  if (withForm) {
3404
3832
  return import_lodash2.default.get(form.watch(), name) || [];
3405
3833
  }
3406
3834
  return data;
3407
3835
  }, [withForm, form, name, data]);
3408
- const errorMessage = (0, import_react18.useMemo)(() => {
3836
+ const errorMessage = (0, import_react13.useMemo)(() => {
3409
3837
  var _a;
3410
3838
  if (withForm) {
3411
3839
  return (_a = import_lodash2.default.get(form.formState.errors, name)) == null ? void 0 : _a.message;
3412
3840
  }
3413
3841
  return error;
3414
3842
  }, [error, form, name, withForm]);
3415
- const updateData = (0, import_react18.useCallback)(() => {
3843
+ const updateData = (0, import_react13.useCallback)(() => {
3416
3844
  if (!inputValue.length) return;
3417
3845
  if (withForm) {
3418
3846
  form.setValue(name, [...inputData, inputValue]);
@@ -3421,7 +3849,7 @@ var MultipleInputBase = ({
3421
3849
  }
3422
3850
  setInputValue("");
3423
3851
  }, [inputData, inputValue, withForm, form, name, onChangeData]);
3424
- const removeItem = (0, import_react18.useCallback)(
3852
+ const removeItem = (0, import_react13.useCallback)(
3425
3853
  (index) => {
3426
3854
  if (withForm) {
3427
3855
  form.setValue(
@@ -3434,55 +3862,60 @@ var MultipleInputBase = ({
3434
3862
  },
3435
3863
  [withForm, form, name, inputData, onChangeData]
3436
3864
  );
3437
- const renderOptions = (0, import_react18.useCallback)(() => {
3865
+ const renderOptions = (0, import_react13.useCallback)(() => {
3438
3866
  return inputData == null ? void 0 : inputData.map((item, index) => {
3439
- return /* @__PURE__ */ React.createElement("div", { key: index, className: "phsa-flex phsa-justify-between phsa-mt-2" }, /* @__PURE__ */ React.createElement("div", null, item), /* @__PURE__ */ React.createElement(
3440
- Button2,
3441
- {
3442
- onClick: () => removeItem(index),
3443
- variant: "ghost",
3444
- size: "icon",
3445
- type: "button"
3446
- },
3447
- /* @__PURE__ */ React.createElement(Icon2, { name: "MdDelete", className: "phsa-fill-destructive" })
3448
- ));
3867
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex justify-between mt-2", children: [
3868
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { children: item }),
3869
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
3870
+ Button2,
3871
+ {
3872
+ onClick: () => removeItem(index),
3873
+ variant: "ghost",
3874
+ size: "icon",
3875
+ type: "button",
3876
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon2, { name: "MdDelete", className: "fill-destructive" })
3877
+ }
3878
+ )
3879
+ ] }, index);
3449
3880
  });
3450
3881
  }, [inputData, removeItem]);
3451
- return /* @__PURE__ */ React.createElement("div", null, children({
3452
- onChange: ({ target: { value } }) => {
3453
- setInputValue(value);
3454
- },
3455
- addItem: updateData,
3456
- value: inputValue,
3457
- error: errorMessage
3458
- }), renderOptions());
3882
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { children: [
3883
+ children({
3884
+ onChange: ({ target: { value } }) => {
3885
+ setInputValue(value);
3886
+ },
3887
+ addItem: updateData,
3888
+ value: inputValue,
3889
+ error: errorMessage
3890
+ }),
3891
+ renderOptions()
3892
+ ] });
3459
3893
  };
3460
3894
 
3461
3895
  // src/components/dataInput/Input/components/MultipleInput/MultipleMaskInput.tsx
3896
+ var import_jsx_runtime59 = require("react/jsx-runtime");
3462
3897
  var MultipleMaskInput = (_a) => {
3463
3898
  var _b = _a, {
3464
3899
  data = []
3465
3900
  } = _b, props = __objRest(_b, [
3466
3901
  "data"
3467
3902
  ]);
3468
- return /* @__PURE__ */ React.createElement(MultipleInputBase, __spreadValues({ data }, props), ({ onChange, addItem, value }) => {
3469
- return /* @__PURE__ */ React.createElement(
3903
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(MultipleInputBase, __spreadProps(__spreadValues({ data }, props), { children: ({ onChange, addItem, value }) => {
3904
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3470
3905
  MaskInput,
3471
3906
  __spreadProps(__spreadValues({}, props), {
3472
3907
  value,
3473
3908
  onChange,
3474
3909
  withoutForm: true,
3475
- component: /* @__PURE__ */ React.createElement(Button2, { type: "button", onClick: () => addItem() }, /* @__PURE__ */ React.createElement(Icon2, { name: "MdAdd" }))
3910
+ component: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Button2, { type: "button", onClick: () => addItem(), children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon2, { name: "MdAdd" }) })
3476
3911
  })
3477
3912
  );
3478
- });
3913
+ } }));
3479
3914
  };
3480
3915
 
3481
- // src/components/dataInput/Select/Select.tsx
3482
- var import_react20 = __toESM(require("react"));
3483
-
3484
3916
  // src/components/dataInput/Select/SelectBase.tsx
3485
- var import_react19 = require("react");
3917
+ var import_react14 = require("react");
3918
+ var import_jsx_runtime60 = require("react/jsx-runtime");
3486
3919
  var SelectBase = (_a) => {
3487
3920
  var _b = _a, {
3488
3921
  options,
@@ -3499,27 +3932,30 @@ var SelectBase = (_a) => {
3499
3932
  "onChangeCallback",
3500
3933
  "value"
3501
3934
  ]);
3502
- const onSelect = (0, import_react19.useCallback)(
3935
+ const onSelect = (0, import_react14.useCallback)(
3503
3936
  (value2) => {
3504
3937
  onChange(value2);
3505
3938
  onChangeCallback(value2);
3506
3939
  },
3507
3940
  [onChange, onChangeCallback]
3508
3941
  );
3509
- return /* @__PURE__ */ React.createElement(
3942
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
3510
3943
  Select,
3511
3944
  __spreadProps(__spreadValues({}, rest), {
3512
3945
  onValueChange: onSelect,
3513
3946
  defaultValue: value,
3514
- value
3515
- }),
3516
- /* @__PURE__ */ React.createElement(SelectTrigger, null, /* @__PURE__ */ React.createElement(SelectValue, { placeholder })),
3517
- /* @__PURE__ */ React.createElement(SelectContent, null, options == null ? void 0 : options.map((option, index) => /* @__PURE__ */ React.createElement(SelectItem, { key: index, value: String(option.value) }, option.label)))
3947
+ value,
3948
+ children: [
3949
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(SelectTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(SelectValue, { placeholder }) }),
3950
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(SelectContent, { children: options == null ? void 0 : options.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(SelectItem, { value: String(option.value), children: option.label }, index)) })
3951
+ ]
3952
+ })
3518
3953
  );
3519
3954
  };
3520
3955
 
3521
3956
  // src/components/dataInput/Select/Select.tsx
3522
3957
  var import_react_hook_form6 = require("react-hook-form");
3958
+ var import_jsx_runtime61 = require("react/jsx-runtime");
3523
3959
  var Select2 = (_a) => {
3524
3960
  var _b = _a, {
3525
3961
  name,
@@ -3543,36 +3979,45 @@ var Select2 = (_a) => {
3543
3979
  const form = (0, import_react_hook_form6.useFormContext)();
3544
3980
  const hasForm = !!form && !!name;
3545
3981
  if (!hasForm || withoutForm) {
3546
- return /* @__PURE__ */ import_react20.default.createElement("div", { className: cn("space-y-2", className) }, label && /* @__PURE__ */ import_react20.default.createElement(Label3, null, label), /* @__PURE__ */ import_react20.default.createElement(SelectBase, __spreadValues({ options, placeholder }, props)), description && /* @__PURE__ */ import_react20.default.createElement("p", { className: "phsa-text-sm phsa-text-muted-foreground" }, description), error && /* @__PURE__ */ import_react20.default.createElement(ErrorMessage, null, error));
3982
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: cn("space-y-2", className), children: [
3983
+ label && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Label3, { children: label }),
3984
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(SelectBase, __spreadValues({ options, placeholder }, props)),
3985
+ description && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "text-sm text-muted-foreground", children: description }),
3986
+ error && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(ErrorMessage, { children: error })
3987
+ ] });
3547
3988
  }
3548
- return /* @__PURE__ */ import_react20.default.createElement(
3989
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3549
3990
  FormField,
3550
3991
  {
3551
3992
  control: form.control,
3552
3993
  name,
3553
- render: ({ field }) => /* @__PURE__ */ import_react20.default.createElement(FormItem, { className }, label && /* @__PURE__ */ import_react20.default.createElement(FormLabel, null, label), /* @__PURE__ */ import_react20.default.createElement(FormControl, null, /* @__PURE__ */ import_react20.default.createElement(
3554
- SelectBase,
3555
- __spreadValues(__spreadValues({
3556
- options,
3557
- placeholder
3558
- }, props), field)
3559
- )), description && /* @__PURE__ */ import_react20.default.createElement(FormDescription, null, description), /* @__PURE__ */ import_react20.default.createElement(FormMessage, null))
3994
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(FormItem, { className, children: [
3995
+ label && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(FormLabel, { children: label }),
3996
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(FormControl, { children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3997
+ SelectBase,
3998
+ __spreadValues(__spreadValues({
3999
+ options,
4000
+ placeholder
4001
+ }, props), field)
4002
+ ) }),
4003
+ description && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(FormDescription, { children: description }),
4004
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(FormMessage, {})
4005
+ ] })
3560
4006
  }
3561
4007
  );
3562
4008
  };
3563
4009
 
3564
- // src/components/dataInput/Select/MultiSelect/index.tsx
3565
- var import_react21 = __toESM(require("react"));
3566
-
3567
4010
  // src/components/dataDisplay/Label/Label.tsx
4011
+ var import_jsx_runtime62 = require("react/jsx-runtime");
3568
4012
  var Label4 = (props) => {
3569
- return /* @__PURE__ */ React.createElement(Label3, __spreadValues({}, props));
4013
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Label3, __spreadValues({}, props));
3570
4014
  };
3571
4015
 
3572
4016
  // src/components/dataInput/Select/MultiSelect/MultiSelectBase.tsx
3573
- var React38 = __toESM(require("react"));
4017
+ var React26 = __toESM(require("react"));
3574
4018
  var import_lucide_react12 = require("lucide-react");
3575
4019
  var Popover = __toESM(require("@radix-ui/react-popover"));
4020
+ var import_jsx_runtime63 = require("react/jsx-runtime");
3576
4021
  function MultiSelectBase({
3577
4022
  options = [],
3578
4023
  selected = [],
@@ -3581,9 +4026,9 @@ function MultiSelectBase({
3581
4026
  placeholder = "Select frameworks...",
3582
4027
  className
3583
4028
  }) {
3584
- const [open, setOpen] = React38.useState(false);
3585
- const [inputValue, setInputValue] = React38.useState("");
3586
- const inputRef = React38.useRef(null);
4029
+ const [open, setOpen] = React26.useState(false);
4030
+ const [inputValue, setInputValue] = React26.useState("");
4031
+ const inputRef = React26.useRef(null);
3587
4032
  const handleRemoveItem = (valueToRemove) => {
3588
4033
  onChange(selected.filter((value) => value !== valueToRemove));
3589
4034
  };
@@ -3597,84 +4042,104 @@ function MultiSelectBase({
3597
4042
  const filteredOptions = options.filter(
3598
4043
  (option) => option.label.toLowerCase().includes(inputValue.toLowerCase())
3599
4044
  );
3600
- return /* @__PURE__ */ React38.createElement(Popover.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React38.createElement(Popover.Trigger, { asChild: true }, /* @__PURE__ */ React38.createElement(
3601
- "div",
3602
- {
3603
- className: cn(
3604
- "flex min-h-[40px] w-full flex-wrap gap-1.5 rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2",
3605
- className
3606
- )
3607
- },
3608
- selected.map((value) => {
3609
- const option = options.find((o) => o.value === value);
3610
- if (!option) return null;
3611
- return /* @__PURE__ */ React38.createElement(
3612
- "div",
3613
- {
3614
- key: value,
3615
- className: "phsa-flex phsa-items-center phsa-gap-1 phsa-rounded-md phsa-bg-secondary phsa-px-2 phsa-py-1 phsa-text-sm phsa-text-secondary-foreground"
3616
- },
3617
- option.label,
3618
- /* @__PURE__ */ React38.createElement(
3619
- "button",
3620
- {
3621
- type: "button",
3622
- onClick: (e) => {
3623
- e.stopPropagation();
3624
- handleRemoveItem(value);
3625
- },
3626
- className: "phsa-rounded-full phsa-hover:bg-secondary-foreground/20"
3627
- },
3628
- /* @__PURE__ */ React38.createElement(import_lucide_react12.X, { className: "phsa-h-3 phsa-w-3" }),
3629
- /* @__PURE__ */ React38.createElement("span", { className: "phsa-sr-only" }, "Remove ", option.label)
3630
- )
3631
- );
3632
- }),
3633
- /* @__PURE__ */ React38.createElement("div", { className: "phsa-flex-1" }, selected.length === 0 && /* @__PURE__ */ React38.createElement("span", { className: "phsa-text-muted-foreground" }, placeholder))
3634
- )), /* @__PURE__ */ React38.createElement(Popover.Portal, null, /* @__PURE__ */ React38.createElement(
3635
- Popover.Content,
3636
- {
3637
- className: "phsa-w-[--radix-popover-trigger-width] phsa-z-50 phsa-mt-1 phsa-overflow-hidden phsa-rounded-md border phsa-bg-popover phsa-text-popover-foreground phsa-shadow-md phsa-animate-in phsa-fade-in-0 phsa-zoom-in-95",
3638
- align: "start",
3639
- sideOffset: 4
3640
- },
3641
- /* @__PURE__ */ React38.createElement("div", { className: "phsa-flex phsa-items-center phsa-border-b phsa-border-border phsa-px-3 phsa-py-2" }, /* @__PURE__ */ React38.createElement(import_lucide_react12.Search, { className: "phsa-h-4 phsa-w-4 phsa-text-muted-foreground" }), /* @__PURE__ */ React38.createElement(
3642
- "input",
3643
- {
3644
- ref: inputRef,
3645
- value: inputValue,
3646
- onChange: (e) => setInputValue(e.target.value),
3647
- placeholder: "Search...",
3648
- className: "phsa-flex-1 phsa-bg-transparent phsa-px-2 phsa-outline-none phsa-placeholder:text-muted-foreground"
3649
- }
3650
- )),
3651
- /* @__PURE__ */ React38.createElement("div", { className: "phsa-max-h-[200px] phsa-overflow-auto" }, filteredOptions.length === 0 ? /* @__PURE__ */ React38.createElement("div", { className: "phsa-px-2 phsa-py-4 phsa-text-center phsa-text-sm phsa-text-muted-foreground" }, "No results found.") : filteredOptions.map((option) => /* @__PURE__ */ React38.createElement(
4045
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Popover.Root, { open, onOpenChange: setOpen, children: [
4046
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
3652
4047
  "div",
3653
4048
  {
3654
- key: option.value,
3655
- onClick: () => handleSelectItem(option.value),
3656
4049
  className: cn(
3657
- "flex cursor-pointer items-center gap-2 px-4 py-2 text-sm hover:bg-accent",
3658
- selected.includes(option.value) && "bg-accent"
3659
- )
3660
- },
3661
- /* @__PURE__ */ React38.createElement(
3662
- "div",
3663
- {
3664
- className: cn(
3665
- "flex h-4 w-4 items-center justify-center rounded border border-primary",
3666
- selected.includes(option.value) && "bg-primary text-primary-foreground"
3667
- )
3668
- },
3669
- selected.includes(option.value) && /* @__PURE__ */ React38.createElement("span", { className: "phsa-text-[10px]" }, "\u2713")
3670
- ),
3671
- option.label
3672
- )))
3673
- )));
4050
+ "flex min-h-[40px] w-full flex-wrap gap-1.5 rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2",
4051
+ className
4052
+ ),
4053
+ children: [
4054
+ selected.map((value) => {
4055
+ const option = options.find((o) => o.value === value);
4056
+ if (!option) return null;
4057
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
4058
+ "div",
4059
+ {
4060
+ className: "flex items-center gap-1 rounded-md bg-secondary px-2 py-1 text-sm text-secondary-foreground",
4061
+ children: [
4062
+ option.label,
4063
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
4064
+ "button",
4065
+ {
4066
+ type: "button",
4067
+ onClick: (e) => {
4068
+ e.stopPropagation();
4069
+ handleRemoveItem(value);
4070
+ },
4071
+ className: "rounded-full hover:bg-secondary-foreground/20",
4072
+ children: [
4073
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_lucide_react12.X, { className: "h-3 w-3" }),
4074
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("span", { className: "sr-only", children: [
4075
+ "Remove ",
4076
+ option.label
4077
+ ] })
4078
+ ]
4079
+ }
4080
+ )
4081
+ ]
4082
+ },
4083
+ value
4084
+ );
4085
+ }),
4086
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "flex-1", children: selected.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "text-muted-foreground", children: placeholder }) })
4087
+ ]
4088
+ }
4089
+ ) }),
4090
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
4091
+ Popover.Content,
4092
+ {
4093
+ className: "w-[--radix-popover-trigger-width] z-50 mt-1 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95",
4094
+ align: "start",
4095
+ sideOffset: 4,
4096
+ children: [
4097
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex items-center border-b border-border px-3 py-2", children: [
4098
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_lucide_react12.Search, { className: "h-4 w-4 text-muted-foreground" }),
4099
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
4100
+ "input",
4101
+ {
4102
+ ref: inputRef,
4103
+ value: inputValue,
4104
+ onChange: (e) => setInputValue(e.target.value),
4105
+ placeholder: "Search...",
4106
+ className: "flex-1 bg-transparent px-2 outline-none placeholder:text-muted-foreground"
4107
+ }
4108
+ )
4109
+ ] }),
4110
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "max-h-[200px] overflow-auto", children: filteredOptions.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "px-2 py-4 text-center text-sm text-muted-foreground", children: "No results found." }) : filteredOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
4111
+ "div",
4112
+ {
4113
+ onClick: () => handleSelectItem(option.value),
4114
+ className: cn(
4115
+ "flex cursor-pointer items-center gap-2 px-4 py-2 text-sm hover:bg-accent",
4116
+ selected.includes(option.value) && "bg-accent"
4117
+ ),
4118
+ children: [
4119
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
4120
+ "div",
4121
+ {
4122
+ className: cn(
4123
+ "flex h-4 w-4 items-center justify-center rounded border border-primary",
4124
+ selected.includes(option.value) && "bg-primary text-primary-foreground"
4125
+ ),
4126
+ children: selected.includes(option.value) && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "text-[10px]", children: "\u2713" })
4127
+ }
4128
+ ),
4129
+ option.label
4130
+ ]
4131
+ },
4132
+ option.value
4133
+ )) })
4134
+ ]
4135
+ }
4136
+ ) })
4137
+ ] });
3674
4138
  }
3675
4139
 
3676
4140
  // src/components/dataInput/Select/MultiSelect/index.tsx
3677
4141
  var import_react_hook_form7 = require("react-hook-form");
4142
+ var import_jsx_runtime64 = require("react/jsx-runtime");
3678
4143
  function MultiSelect(_a) {
3679
4144
  var _b = _a, {
3680
4145
  label,
@@ -3694,36 +4159,41 @@ function MultiSelect(_a) {
3694
4159
  const form = (0, import_react_hook_form7.useFormContext)();
3695
4160
  const hasForm = !withoutForm && !!form && !!name;
3696
4161
  if (!hasForm)
3697
- return /* @__PURE__ */ import_react21.default.createElement("div", { className: "phsa-grid phsa-w-full phsa-items-center phsa-gap-3" }, label && /* @__PURE__ */ import_react21.default.createElement(Label4, { htmlFor: name }, label), /* @__PURE__ */ import_react21.default.createElement(MultiSelectBase, __spreadValues({}, props)));
3698
- return /* @__PURE__ */ import_react21.default.createElement(
4162
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "grid w-full items-center gap-3", children: [
4163
+ label && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Label4, { htmlFor: name, children: label }),
4164
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(MultiSelectBase, __spreadValues({}, props))
4165
+ ] });
4166
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
3699
4167
  FormField,
3700
4168
  {
3701
4169
  control: form.control,
3702
4170
  name,
3703
4171
  render: (_a2) => {
3704
4172
  var { field: _b2 } = _a2, _c = _b2, { value } = _c, rest = __objRest(_c, ["value"]);
3705
- return /* @__PURE__ */ import_react21.default.createElement(
4173
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
3706
4174
  FormItem,
3707
4175
  {
3708
4176
  className,
3709
- "data-testid": testId ? `form-item-${testId}` : void 0
3710
- },
3711
- label && /* @__PURE__ */ import_react21.default.createElement(
3712
- FormLabel,
3713
- {
3714
- htmlFor: name,
3715
- "data-testid": testId ? `form-label-${testId}` : void 0
3716
- },
3717
- `${label}${required ? " *" : ""}`
3718
- ),
3719
- /* @__PURE__ */ import_react21.default.createElement(FormControl, null, /* @__PURE__ */ import_react21.default.createElement("div", { className: "phsa-flex phsa-w-full phsa-items-center phsa-space-x-2" }, /* @__PURE__ */ import_react21.default.createElement(MultiSelectBase, __spreadProps(__spreadValues(__spreadValues({}, props), rest), { selected: value })))),
3720
- /* @__PURE__ */ import_react21.default.createElement(
3721
- FormMessage,
3722
- {
3723
- role: "alert",
3724
- "data-testid": testId ? `form-message-${testId}` : void 0
3725
- }
3726
- )
4177
+ "data-testid": testId ? `form-item-${testId}` : void 0,
4178
+ children: [
4179
+ label && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
4180
+ FormLabel,
4181
+ {
4182
+ htmlFor: name,
4183
+ "data-testid": testId ? `form-label-${testId}` : void 0,
4184
+ children: `${label}${required ? " *" : ""}`
4185
+ }
4186
+ ),
4187
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(FormControl, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "flex w-full items-center space-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(MultiSelectBase, __spreadProps(__spreadValues(__spreadValues({}, props), rest), { selected: value })) }) }),
4188
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
4189
+ FormMessage,
4190
+ {
4191
+ role: "alert",
4192
+ "data-testid": testId ? `form-message-${testId}` : void 0
4193
+ }
4194
+ )
4195
+ ]
4196
+ }
3727
4197
  );
3728
4198
  }
3729
4199
  }
@@ -3731,11 +4201,12 @@ function MultiSelect(_a) {
3731
4201
  }
3732
4202
 
3733
4203
  // src/components/ui/switch.tsx
3734
- var React40 = __toESM(require("react"));
4204
+ var React27 = __toESM(require("react"));
3735
4205
  var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"));
3736
- var Switch = React40.forwardRef((_a, ref) => {
4206
+ var import_jsx_runtime65 = require("react/jsx-runtime");
4207
+ var Switch = React27.forwardRef((_a, ref) => {
3737
4208
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3738
- return /* @__PURE__ */ React40.createElement(
4209
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3739
4210
  SwitchPrimitives.Root,
3740
4211
  __spreadProps(__spreadValues({
3741
4212
  className: cn(
@@ -3743,22 +4214,23 @@ var Switch = React40.forwardRef((_a, ref) => {
3743
4214
  className
3744
4215
  )
3745
4216
  }, props), {
3746
- ref
3747
- }),
3748
- /* @__PURE__ */ React40.createElement(
3749
- SwitchPrimitives.Thumb,
3750
- {
3751
- className: cn(
3752
- "pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"
3753
- )
3754
- }
3755
- )
4217
+ ref,
4218
+ children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
4219
+ SwitchPrimitives.Thumb,
4220
+ {
4221
+ className: cn(
4222
+ "pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"
4223
+ )
4224
+ }
4225
+ )
4226
+ })
3756
4227
  );
3757
4228
  });
3758
4229
  Switch.displayName = SwitchPrimitives.Root.displayName;
3759
4230
 
3760
4231
  // src/components/dataInput/Switch/Switch.tsx
3761
4232
  var import_react_hook_form8 = require("react-hook-form");
4233
+ var import_jsx_runtime66 = require("react/jsx-runtime");
3762
4234
  function Switch2(_a) {
3763
4235
  var _b = _a, {
3764
4236
  label,
@@ -3773,161 +4245,39 @@ function Switch2(_a) {
3773
4245
  const form = (0, import_react_hook_form8.useFormContext)();
3774
4246
  const hasForm = !!form && !withoutForm && !!props.name;
3775
4247
  if (!hasForm)
3776
- return /* @__PURE__ */ React.createElement("div", { className: "phsa-flex phsa-items-center phsa-space-x-2" }, /* @__PURE__ */ React.createElement(Switch, __spreadValues({}, props)), label && /* @__PURE__ */ React.createElement(Label3, { htmlFor: props.id }, label));
3777
- return /* @__PURE__ */ React.createElement(
4248
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex items-center space-x-2", children: [
4249
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Switch, __spreadValues({}, props)),
4250
+ label && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Label3, { htmlFor: props.id, children: label })
4251
+ ] });
4252
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3778
4253
  FormField,
3779
4254
  {
3780
4255
  control: form.control,
3781
4256
  name: (_a2 = props.name) != null ? _a2 : "",
3782
- render: ({ field }) => /* @__PURE__ */ React.createElement(
4257
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
3783
4258
  FormItem,
3784
4259
  {
3785
- className: cn(className, "flex items-center space-x-2 space-y-0")
3786
- },
3787
- /* @__PURE__ */ React.createElement(FormControl, null, /* @__PURE__ */ React.createElement(Switch2, { checked: field.value, onCheckedChange: field.onChange })),
3788
- /* @__PURE__ */ React.createElement(FormLabel, null, label)
4260
+ className: cn(className, "flex items-center space-x-2 space-y-0"),
4261
+ children: [
4262
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(FormControl, { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Switch2, { checked: field.value, onCheckedChange: field.onChange }) }),
4263
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(FormLabel, { children: label })
4264
+ ]
4265
+ }
3789
4266
  )
3790
4267
  }
3791
4268
  );
3792
4269
  }
3793
4270
 
3794
4271
  // src/components/config/DesignSystemProvider/index.tsx
3795
- var import_react22 = __toESM(require("react"));
3796
- var stylesInjected = false;
3797
- var normalizeColor = (color) => {
3798
- if (!color) return void 0;
3799
- if (/^\d+\s+\d+%\s+\d+%$/.test(color)) {
3800
- return color;
3801
- }
3802
- if (/^#?[0-9A-Fa-f]{6}$/.test(color)) {
3803
- return hexToHsl(color);
3804
- }
3805
- return color;
3806
- };
4272
+ var import_react15 = require("react");
4273
+ var import_jsx_runtime67 = require("react/jsx-runtime");
3807
4274
  function DesignSystemProvider({
3808
4275
  children,
3809
- className = "",
3810
- colors,
3811
- theme
4276
+ className = ""
3812
4277
  }) {
3813
- const uniqueId = (0, import_react22.useId)().replace(/:/g, "_");
4278
+ const uniqueId = (0, import_react15.useId)().replace(/:/g, "_");
3814
4279
  const scopeClass = `ds-${uniqueId}`;
3815
- const themeColors = (theme == null ? void 0 : theme.colors) || colors;
3816
- (0, import_react22.useLayoutEffect)(() => {
3817
- if (stylesInjected) return;
3818
- const styleId = "phsa-design-system-styles";
3819
- let styleElement = document.getElementById(styleId);
3820
- if (!styleElement) {
3821
- const stylesPath = "@phsa.tec/design-system-react/styles";
3822
- import(stylesPath).then((module2) => {
3823
- const css = module2.default || "";
3824
- if (css) {
3825
- styleElement = document.createElement("style");
3826
- styleElement.id = styleId;
3827
- styleElement.textContent = css;
3828
- document.head.appendChild(styleElement);
3829
- stylesInjected = true;
3830
- }
3831
- }).catch((error) => {
3832
- if (process.env.NODE_ENV === "development") {
3833
- console.warn('\u26A0\uFE0F CSS do design system n\xE3o encontrado. Execute "npm run build:lib" para compilar.');
3834
- }
3835
- });
3836
- }
3837
- }, []);
3838
- const themeVariables = (0, import_react22.useMemo)(() => {
3839
- const vars = {};
3840
- if (themeColors) {
3841
- vars["--background"] = normalizeColor(themeColors.background) || "";
3842
- vars["--foreground"] = normalizeColor(themeColors.foreground) || "";
3843
- vars["--card"] = normalizeColor(themeColors.card) || "";
3844
- vars["--card-foreground"] = normalizeColor(themeColors.cardForeground) || "";
3845
- vars["--popover"] = normalizeColor(themeColors.popover) || "";
3846
- vars["--popover-foreground"] = normalizeColor(themeColors.popoverForeground) || "";
3847
- vars["--primary"] = normalizeColor(themeColors.primary) || "";
3848
- vars["--primary-foreground"] = normalizeColor(themeColors.primaryForeground) || "";
3849
- vars["--secondary"] = normalizeColor(themeColors.secondary) || "";
3850
- vars["--secondary-foreground"] = normalizeColor(themeColors.secondaryForeground) || "";
3851
- vars["--muted"] = normalizeColor(themeColors.muted) || "";
3852
- vars["--muted-foreground"] = normalizeColor(themeColors.mutedForeground) || "";
3853
- vars["--accent"] = normalizeColor(themeColors.accent) || "";
3854
- vars["--accent-foreground"] = normalizeColor(themeColors.accentForeground) || "";
3855
- vars["--success"] = normalizeColor(themeColors.success) || "";
3856
- vars["--success-foreground"] = normalizeColor(themeColors.successForeground) || "";
3857
- vars["--warning"] = normalizeColor(themeColors.warning) || "";
3858
- vars["--destructive"] = normalizeColor(themeColors.destructive) || "";
3859
- vars["--destructive-foreground"] = normalizeColor(themeColors.destructiveForeground) || "";
3860
- vars["--border"] = normalizeColor(themeColors.border) || "";
3861
- vars["--input"] = normalizeColor(themeColors.input) || "";
3862
- vars["--ring"] = normalizeColor(themeColors.ring) || "";
3863
- vars["--radius"] = themeColors.radius || "";
3864
- }
3865
- if (theme == null ? void 0 : theme.spacing) {
3866
- if (theme.spacing.base) vars["--spacing-base"] = theme.spacing.base;
3867
- if (theme.spacing.xs) vars["--spacing-xs"] = theme.spacing.xs;
3868
- if (theme.spacing.sm) vars["--spacing-sm"] = theme.spacing.sm;
3869
- if (theme.spacing.md) vars["--spacing-md"] = theme.spacing.md;
3870
- if (theme.spacing.lg) vars["--spacing-lg"] = theme.spacing.lg;
3871
- if (theme.spacing.xl) vars["--spacing-xl"] = theme.spacing.xl;
3872
- if (theme.spacing["2xl"]) vars["--spacing-2xl"] = theme.spacing["2xl"];
3873
- if (theme.spacing["3xl"]) vars["--spacing-3xl"] = theme.spacing["3xl"];
3874
- }
3875
- if (theme == null ? void 0 : theme.typography) {
3876
- if (theme.typography.fontFamily) vars["--font-family"] = theme.typography.fontFamily;
3877
- if (theme.typography.fontSize) {
3878
- Object.entries(theme.typography.fontSize).forEach(([key, value]) => {
3879
- vars[`--font-size-${key}`] = value;
3880
- });
3881
- }
3882
- if (theme.typography.fontWeight) {
3883
- Object.entries(theme.typography.fontWeight).forEach(([key, value]) => {
3884
- vars[`--font-weight-${key}`] = value;
3885
- });
3886
- }
3887
- if (theme.typography.lineHeight) {
3888
- Object.entries(theme.typography.lineHeight).forEach(([key, value]) => {
3889
- vars[`--line-height-${key}`] = value;
3890
- });
3891
- }
3892
- }
3893
- if (theme == null ? void 0 : theme.borderRadius) {
3894
- Object.entries(theme.borderRadius).forEach(([key, value]) => {
3895
- vars[`--radius-${key}`] = value;
3896
- });
3897
- }
3898
- if (theme == null ? void 0 : theme.boxShadow) {
3899
- Object.entries(theme.boxShadow).forEach(([key, value]) => {
3900
- vars[`--shadow-${key}`] = value;
3901
- });
3902
- }
3903
- if (theme == null ? void 0 : theme.breakpoints) {
3904
- Object.entries(theme.breakpoints).forEach(([key, value]) => {
3905
- vars[`--breakpoint-${key}`] = value;
3906
- });
3907
- }
3908
- return Object.fromEntries(
3909
- Object.entries(vars).filter(([, value]) => value !== void 0 && value !== "")
3910
- );
3911
- }, [theme, themeColors]);
3912
- (0, import_react22.useLayoutEffect)(() => {
3913
- if (Object.keys(themeVariables).length === 0) return;
3914
- const styleId = `design-system-theme-${uniqueId}`;
3915
- let styleElement = document.getElementById(styleId);
3916
- if (!styleElement) {
3917
- styleElement = document.createElement("style");
3918
- styleElement.id = styleId;
3919
- document.head.appendChild(styleElement);
3920
- }
3921
- const cssVariables = Object.entries(themeVariables).map(([key, value]) => ` ${key}: ${value};`).join("\n");
3922
- styleElement.textContent = `.${scopeClass} {
3923
- ${cssVariables}
3924
- }`;
3925
- return () => {
3926
- styleElement.remove();
3927
- };
3928
- }, [themeVariables, uniqueId, scopeClass]);
3929
- const inlineStyle = Object.keys(themeVariables).length > 0 ? themeVariables : void 0;
3930
- return /* @__PURE__ */ import_react22.default.createElement("div", { className: `ds ${scopeClass} ${className}`.trim(), style: inlineStyle }, children);
4280
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: `ds ${scopeClass} ${className}`.trim(), children });
3931
4281
  }
3932
4282
  // Annotate the CommonJS export names for ESM import in node:
3933
4283
  0 && (module.exports = {
@@ -3936,7 +4286,6 @@ ${cssVariables}
3936
4286
  AvatarFallback,
3937
4287
  AvatarImage,
3938
4288
  Badge,
3939
- BaseDesignSystemProvider,
3940
4289
  Breadcrumb,
3941
4290
  BreadcrumbEllipsis,
3942
4291
  BreadcrumbItem,
@@ -3945,6 +4294,13 @@ ${cssVariables}
3945
4294
  BreadcrumbPage,
3946
4295
  BreadcrumbSeparator,
3947
4296
  Button,
4297
+ Card,
4298
+ CardBase,
4299
+ CardContent,
4300
+ CardDescription,
4301
+ CardFooter,
4302
+ CardHeader,
4303
+ CardTitle,
3948
4304
  Checkbox,
3949
4305
  Collapsible,
3950
4306
  CollapsibleContent,