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

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