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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -38,7 +38,7 @@ var __objRest = (source, exclude) => {
38
38
  };
39
39
 
40
40
  // src/components/dataDisplay/Table/components/DynamicTable/index.tsx
41
- import * as React6 from "react";
41
+ import * as React5 from "react";
42
42
  import {
43
43
  flexRender,
44
44
  getCoreRowModel,
@@ -48,7 +48,7 @@ import {
48
48
  } from "@tanstack/react-table";
49
49
 
50
50
  // src/components/ui/table.tsx
51
- import * as React2 from "react";
51
+ import * as React from "react";
52
52
 
53
53
  // src/lib/utils.ts
54
54
  import { clsx } from "clsx";
@@ -56,44 +56,28 @@ import { twMerge } from "tailwind-merge";
56
56
  function cn(...inputs) {
57
57
  return twMerge(clsx(inputs));
58
58
  }
59
- var hexToHsl = (hex) => {
60
- if (!hex) return "";
61
- const cleanHex = hex.replace(/^#/, "");
62
- const [r, g, b] = cleanHex.match(/.{2}/g).map((x) => parseInt(x, 16) / 255);
63
- const max = Math.max(r, g, b);
64
- const min = Math.min(r, g, b);
65
- const l = (max + min) / 2;
66
- let h = 0;
67
- let s = 0;
68
- if (max !== min) {
69
- const d = max - min;
70
- s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
71
- h = max === r ? (g - b) / d + (g < b ? 6 : 0) : max === g ? (b - r) / d + 2 : (r - g) / d + 4;
72
- h *= 60;
73
- }
74
- return `${Math.round(h)} ${Math.round(s * 100)}% ${Math.round(l * 100)}%`;
75
- };
76
59
 
77
60
  // src/components/ui/table.tsx
78
- var Table = React2.forwardRef((_a, ref) => {
61
+ import { jsx } from "react/jsx-runtime";
62
+ var Table = React.forwardRef((_a, ref) => {
79
63
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
80
- return /* @__PURE__ */ React2.createElement("div", { className: "relative phsa-w-full phsa-overflow-auto" }, /* @__PURE__ */ React2.createElement(
64
+ return /* @__PURE__ */ jsx("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx(
81
65
  "table",
82
66
  __spreadValues({
83
67
  ref,
84
68
  className: cn("w-full caption-bottom text-sm", className)
85
69
  }, props)
86
- ));
70
+ ) });
87
71
  });
88
72
  Table.displayName = "Table";
89
- var TableHeader = React2.forwardRef((_a, ref) => {
73
+ var TableHeader = React.forwardRef((_a, ref) => {
90
74
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
91
- return /* @__PURE__ */ React2.createElement("thead", __spreadValues({ ref, className: cn("[&_tr]:border-b", className) }, props));
75
+ return /* @__PURE__ */ jsx("thead", __spreadValues({ ref, className: cn("[&_tr]:border-b", className) }, props));
92
76
  });
93
77
  TableHeader.displayName = "TableHeader";
94
- var TableBody = React2.forwardRef((_a, ref) => {
78
+ var TableBody = React.forwardRef((_a, ref) => {
95
79
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
96
- return /* @__PURE__ */ React2.createElement(
80
+ return /* @__PURE__ */ jsx(
97
81
  "tbody",
98
82
  __spreadValues({
99
83
  ref,
@@ -102,9 +86,9 @@ var TableBody = React2.forwardRef((_a, ref) => {
102
86
  );
103
87
  });
104
88
  TableBody.displayName = "TableBody";
105
- var TableFooter = React2.forwardRef((_a, ref) => {
89
+ var TableFooter = React.forwardRef((_a, ref) => {
106
90
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
107
- return /* @__PURE__ */ React2.createElement(
91
+ return /* @__PURE__ */ jsx(
108
92
  "tfoot",
109
93
  __spreadValues({
110
94
  ref,
@@ -116,9 +100,9 @@ var TableFooter = React2.forwardRef((_a, ref) => {
116
100
  );
117
101
  });
118
102
  TableFooter.displayName = "TableFooter";
119
- var TableRow = React2.forwardRef((_a, ref) => {
103
+ var TableRow = React.forwardRef((_a, ref) => {
120
104
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
121
- return /* @__PURE__ */ React2.createElement(
105
+ return /* @__PURE__ */ jsx(
122
106
  "tr",
123
107
  __spreadValues({
124
108
  ref,
@@ -130,9 +114,9 @@ var TableRow = React2.forwardRef((_a, ref) => {
130
114
  );
131
115
  });
132
116
  TableRow.displayName = "TableRow";
133
- var TableHead = React2.forwardRef((_a, ref) => {
117
+ var TableHead = React.forwardRef((_a, ref) => {
134
118
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
135
- return /* @__PURE__ */ React2.createElement(
119
+ return /* @__PURE__ */ jsx(
136
120
  "th",
137
121
  __spreadValues({
138
122
  ref,
@@ -144,9 +128,9 @@ var TableHead = React2.forwardRef((_a, ref) => {
144
128
  );
145
129
  });
146
130
  TableHead.displayName = "TableHead";
147
- var TableCell = React2.forwardRef((_a, ref) => {
131
+ var TableCell = React.forwardRef((_a, ref) => {
148
132
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
149
- return /* @__PURE__ */ React2.createElement(
133
+ return /* @__PURE__ */ jsx(
150
134
  "td",
151
135
  __spreadValues({
152
136
  ref,
@@ -158,9 +142,9 @@ var TableCell = React2.forwardRef((_a, ref) => {
158
142
  );
159
143
  });
160
144
  TableCell.displayName = "TableCell";
161
- var TableCaption = React2.forwardRef((_a, ref) => {
145
+ var TableCaption = React.forwardRef((_a, ref) => {
162
146
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
163
- return /* @__PURE__ */ React2.createElement(
147
+ return /* @__PURE__ */ jsx(
164
148
  "caption",
165
149
  __spreadValues({
166
150
  ref,
@@ -175,11 +159,12 @@ import { DropdownMenuTrigger as DropdownMenuTrigger2 } from "@radix-ui/react-dro
175
159
  import { MixerHorizontalIcon } from "@radix-ui/react-icons";
176
160
 
177
161
  // src/components/ui/button.tsx
178
- import * as React3 from "react";
162
+ import * as React2 from "react";
179
163
  import { Slot } from "@radix-ui/react-slot";
180
164
  import { cva } from "class-variance-authority";
165
+ import { jsx as jsx2 } from "react/jsx-runtime";
181
166
  var buttonVariants = cva(
182
- "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",
167
+ "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",
183
168
  {
184
169
  variants: {
185
170
  variant: {
@@ -203,11 +188,11 @@ var buttonVariants = cva(
203
188
  }
204
189
  }
205
190
  );
206
- var Button = React3.forwardRef(
191
+ var Button = React2.forwardRef(
207
192
  (_a, ref) => {
208
193
  var _b = _a, { className, variant, size, asChild = false } = _b, props = __objRest(_b, ["className", "variant", "size", "asChild"]);
209
194
  const Comp = asChild ? Slot : "button";
210
- return /* @__PURE__ */ React3.createElement(
195
+ return /* @__PURE__ */ jsx2(
211
196
  Comp,
212
197
  __spreadValues({
213
198
  className: cn(buttonVariants({ variant, size, className })),
@@ -219,35 +204,39 @@ var Button = React3.forwardRef(
219
204
  Button.displayName = "Button";
220
205
 
221
206
  // src/components/ui/dropdown-menu.tsx
222
- import * as React4 from "react";
207
+ import * as React3 from "react";
223
208
  import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
224
209
  import { Check, ChevronRight, Circle } from "lucide-react";
210
+ import { jsx as jsx3, jsxs } from "react/jsx-runtime";
225
211
  var DropdownMenu = DropdownMenuPrimitive.Root;
226
212
  var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
227
213
  var DropdownMenuGroup = DropdownMenuPrimitive.Group;
228
214
  var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
229
215
  var DropdownMenuSub = DropdownMenuPrimitive.Sub;
230
216
  var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
231
- var DropdownMenuSubTrigger = React4.forwardRef((_a, ref) => {
217
+ var DropdownMenuSubTrigger = React3.forwardRef((_a, ref) => {
232
218
  var _b = _a, { className, inset, children } = _b, props = __objRest(_b, ["className", "inset", "children"]);
233
- return /* @__PURE__ */ React4.createElement(
219
+ return /* @__PURE__ */ jsxs(
234
220
  DropdownMenuPrimitive.SubTrigger,
235
- __spreadValues({
221
+ __spreadProps(__spreadValues({
236
222
  ref,
237
223
  className: cn(
238
224
  "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",
239
225
  inset && "pl-8",
240
226
  className
241
227
  )
242
- }, props),
243
- children,
244
- /* @__PURE__ */ React4.createElement(ChevronRight, { className: "phsa-ml-auto" })
228
+ }, props), {
229
+ children: [
230
+ children,
231
+ /* @__PURE__ */ jsx3(ChevronRight, { className: "ml-auto" })
232
+ ]
233
+ })
245
234
  );
246
235
  });
247
236
  DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
248
- var DropdownMenuSubContent = React4.forwardRef((_a, ref) => {
237
+ var DropdownMenuSubContent = React3.forwardRef((_a, ref) => {
249
238
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
250
- return /* @__PURE__ */ React4.createElement(
239
+ return /* @__PURE__ */ jsx3(
251
240
  DropdownMenuPrimitive.SubContent,
252
241
  __spreadValues({
253
242
  ref,
@@ -259,9 +248,9 @@ var DropdownMenuSubContent = React4.forwardRef((_a, ref) => {
259
248
  );
260
249
  });
261
250
  DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
262
- var DropdownMenuContent = React4.forwardRef((_a, ref) => {
251
+ var DropdownMenuContent = React3.forwardRef((_a, ref) => {
263
252
  var _b = _a, { className, sideOffset = 4 } = _b, props = __objRest(_b, ["className", "sideOffset"]);
264
- return /* @__PURE__ */ React4.createElement(DropdownMenuPrimitive.Portal, null, /* @__PURE__ */ React4.createElement(
253
+ return /* @__PURE__ */ jsx3(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx3(
265
254
  DropdownMenuPrimitive.Content,
266
255
  __spreadValues({
267
256
  ref,
@@ -272,12 +261,12 @@ var DropdownMenuContent = React4.forwardRef((_a, ref) => {
272
261
  className
273
262
  )
274
263
  }, props)
275
- ));
264
+ ) });
276
265
  });
277
266
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
278
- var DropdownMenuItem = React4.forwardRef((_a, ref) => {
267
+ var DropdownMenuItem = React3.forwardRef((_a, ref) => {
279
268
  var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
280
- return /* @__PURE__ */ React4.createElement(
269
+ return /* @__PURE__ */ jsx3(
281
270
  DropdownMenuPrimitive.Item,
282
271
  __spreadValues({
283
272
  ref,
@@ -290,42 +279,48 @@ var DropdownMenuItem = React4.forwardRef((_a, ref) => {
290
279
  );
291
280
  });
292
281
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
293
- var DropdownMenuCheckboxItem = React4.forwardRef((_a, ref) => {
282
+ var DropdownMenuCheckboxItem = React3.forwardRef((_a, ref) => {
294
283
  var _b = _a, { className, children, checked } = _b, props = __objRest(_b, ["className", "children", "checked"]);
295
- return /* @__PURE__ */ React4.createElement(
284
+ return /* @__PURE__ */ jsxs(
296
285
  DropdownMenuPrimitive.CheckboxItem,
297
- __spreadValues({
286
+ __spreadProps(__spreadValues({
298
287
  ref,
299
288
  className: cn(
300
289
  "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",
301
290
  className
302
291
  ),
303
292
  checked
304
- }, props),
305
- /* @__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(Check, { className: "phsa-h-4 phsa-w-4" }))),
306
- children
293
+ }, props), {
294
+ children: [
295
+ /* @__PURE__ */ jsx3("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx3(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx3(Check, { className: "h-4 w-4" }) }) }),
296
+ children
297
+ ]
298
+ })
307
299
  );
308
300
  });
309
301
  DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
310
- var DropdownMenuRadioItem = React4.forwardRef((_a, ref) => {
302
+ var DropdownMenuRadioItem = React3.forwardRef((_a, ref) => {
311
303
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
312
- return /* @__PURE__ */ React4.createElement(
304
+ return /* @__PURE__ */ jsxs(
313
305
  DropdownMenuPrimitive.RadioItem,
314
- __spreadValues({
306
+ __spreadProps(__spreadValues({
315
307
  ref,
316
308
  className: cn(
317
309
  "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",
318
310
  className
319
311
  )
320
- }, props),
321
- /* @__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(Circle, { className: "phsa-h-2 phsa-w-2 phsa-fill-current" }))),
322
- children
312
+ }, props), {
313
+ children: [
314
+ /* @__PURE__ */ jsx3("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx3(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx3(Circle, { className: "h-2 w-2 fill-current" }) }) }),
315
+ children
316
+ ]
317
+ })
323
318
  );
324
319
  });
325
320
  DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
326
- var DropdownMenuLabel = React4.forwardRef((_a, ref) => {
321
+ var DropdownMenuLabel = React3.forwardRef((_a, ref) => {
327
322
  var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
328
- return /* @__PURE__ */ React4.createElement(
323
+ return /* @__PURE__ */ jsx3(
329
324
  DropdownMenuPrimitive.Label,
330
325
  __spreadValues({
331
326
  ref,
@@ -338,9 +333,9 @@ var DropdownMenuLabel = React4.forwardRef((_a, ref) => {
338
333
  );
339
334
  });
340
335
  DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
341
- var DropdownMenuSeparator = React4.forwardRef((_a, ref) => {
336
+ var DropdownMenuSeparator = React3.forwardRef((_a, ref) => {
342
337
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
343
- return /* @__PURE__ */ React4.createElement(
338
+ return /* @__PURE__ */ jsx3(
344
339
  DropdownMenuPrimitive.Separator,
345
340
  __spreadValues({
346
341
  ref,
@@ -355,7 +350,7 @@ var DropdownMenuShortcut = (_a) => {
355
350
  } = _b, props = __objRest(_b, [
356
351
  "className"
357
352
  ]);
358
- return /* @__PURE__ */ React4.createElement(
353
+ return /* @__PURE__ */ jsx3(
359
354
  "span",
360
355
  __spreadValues({
361
356
  className: cn("ml-auto text-xs tracking-widest opacity-60", className)
@@ -365,41 +360,55 @@ var DropdownMenuShortcut = (_a) => {
365
360
  DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
366
361
 
367
362
  // src/components/dataDisplay/Table/components/DynamicTable/data-table-view-options.tsx
363
+ import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
368
364
  function DataTableViewOptions({
369
365
  table
370
366
  }) {
371
- return /* @__PURE__ */ React.createElement(DropdownMenu, null, /* @__PURE__ */ React.createElement(DropdownMenuTrigger2, { asChild: true }, /* @__PURE__ */ React.createElement(
372
- Button,
373
- {
374
- variant: "outline",
375
- size: "sm",
376
- className: "phsa-ml-auto phsa-hidden phsa-h-8 lg:flex"
377
- },
378
- /* @__PURE__ */ React.createElement(MixerHorizontalIcon, { className: "phsa-mr-2 phsa-h-4 phsa-w-4" }),
379
- "Colunas"
380
- )), /* @__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(
381
- (column) => typeof column.accessorFn !== "undefined" && column.getCanHide()
382
- ).map((column) => {
383
- return /* @__PURE__ */ React.createElement(
384
- DropdownMenuCheckboxItem,
367
+ return /* @__PURE__ */ jsxs2(DropdownMenu, { children: [
368
+ /* @__PURE__ */ jsx4(DropdownMenuTrigger2, { asChild: true, children: /* @__PURE__ */ jsxs2(
369
+ Button,
385
370
  {
386
- key: column.id,
387
- className: "capitalize",
388
- checked: column.getIsVisible(),
389
- onCheckedChange: (value) => column.toggleVisibility(!!value)
390
- },
391
- column.id
392
- );
393
- })));
371
+ variant: "outline",
372
+ size: "sm",
373
+ className: "ml-auto hidden h-8 lg:flex",
374
+ children: [
375
+ /* @__PURE__ */ jsx4(MixerHorizontalIcon, { className: "mr-2 h-4 w-4" }),
376
+ "Colunas"
377
+ ]
378
+ }
379
+ ) }),
380
+ /* @__PURE__ */ jsxs2(DropdownMenuContent, { align: "end", className: "w-[150px]", children: [
381
+ /* @__PURE__ */ jsx4(DropdownMenuLabel, { children: "Colunas vis\xEDveis" }),
382
+ /* @__PURE__ */ jsx4(DropdownMenuSeparator, {}),
383
+ table.getAllColumns().filter(
384
+ (column) => typeof column.accessorFn !== "undefined" && column.getCanHide()
385
+ ).map((column) => {
386
+ return /* @__PURE__ */ jsx4(
387
+ DropdownMenuCheckboxItem,
388
+ {
389
+ className: "capitalize",
390
+ checked: column.getIsVisible(),
391
+ onCheckedChange: (value) => column.toggleVisibility(!!value),
392
+ children: column.id
393
+ },
394
+ column.id
395
+ );
396
+ })
397
+ ] })
398
+ ] });
394
399
  }
395
400
 
396
401
  // src/components/dataDisplay/Table/components/DynamicTable/data-table-toolbar.tsx
402
+ import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
397
403
  function DataTableToolbar({
398
404
  table,
399
405
  filters,
400
406
  showColumnVisibility
401
407
  }) {
402
- 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 }));
408
+ return /* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between", children: [
409
+ /* @__PURE__ */ jsx5("div", { className: "flex flex-1 items-center space-x-2", children: filters }),
410
+ showColumnVisibility && /* @__PURE__ */ jsx5(DataTableViewOptions, { table })
411
+ ] });
403
412
  }
404
413
 
405
414
  // src/components/dataDisplay/Table/components/DynamicTable/data-table-pagination.tsx
@@ -411,62 +420,68 @@ import {
411
420
  } from "@radix-ui/react-icons";
412
421
 
413
422
  // src/components/ui/select.tsx
414
- import * as React5 from "react";
423
+ import * as React4 from "react";
415
424
  import * as SelectPrimitive from "@radix-ui/react-select";
416
425
  import { Check as Check2, ChevronDown, ChevronUp } from "lucide-react";
426
+ import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
417
427
  var Select = SelectPrimitive.Root;
418
428
  var SelectValue = SelectPrimitive.Value;
419
- var SelectTrigger = React5.forwardRef((_a, ref) => {
429
+ var SelectTrigger = React4.forwardRef((_a, ref) => {
420
430
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
421
- return /* @__PURE__ */ React5.createElement(
431
+ return /* @__PURE__ */ jsxs4(
422
432
  SelectPrimitive.Trigger,
423
- __spreadValues({
433
+ __spreadProps(__spreadValues({
424
434
  ref,
425
435
  className: cn(
426
436
  "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",
427
437
  className
428
438
  )
429
- }, props),
430
- children,
431
- /* @__PURE__ */ React5.createElement(SelectPrimitive.Icon, { asChild: true }, /* @__PURE__ */ React5.createElement(ChevronDown, { className: "phsa-h-4 phsa-w-4 phsa-opacity-50" }))
439
+ }, props), {
440
+ children: [
441
+ children,
442
+ /* @__PURE__ */ jsx6(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx6(ChevronDown, { className: "h-4 w-4 opacity-50" }) })
443
+ ]
444
+ })
432
445
  );
433
446
  });
434
447
  SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
435
- var SelectScrollUpButton = React5.forwardRef((_a, ref) => {
448
+ var SelectScrollUpButton = React4.forwardRef((_a, ref) => {
436
449
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
437
- return /* @__PURE__ */ React5.createElement(
450
+ return /* @__PURE__ */ jsx6(
438
451
  SelectPrimitive.ScrollUpButton,
439
- __spreadValues({
452
+ __spreadProps(__spreadValues({
440
453
  ref,
441
454
  className: cn(
442
455
  "flex cursor-default items-center justify-center py-1",
443
456
  className
444
457
  )
445
- }, props),
446
- /* @__PURE__ */ React5.createElement(ChevronUp, { className: "phsa-h-4 phsa-w-4" })
458
+ }, props), {
459
+ children: /* @__PURE__ */ jsx6(ChevronUp, { className: "h-4 w-4" })
460
+ })
447
461
  );
448
462
  });
449
463
  SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
450
- var SelectScrollDownButton = React5.forwardRef((_a, ref) => {
464
+ var SelectScrollDownButton = React4.forwardRef((_a, ref) => {
451
465
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
452
- return /* @__PURE__ */ React5.createElement(
466
+ return /* @__PURE__ */ jsx6(
453
467
  SelectPrimitive.ScrollDownButton,
454
- __spreadValues({
468
+ __spreadProps(__spreadValues({
455
469
  ref,
456
470
  className: cn(
457
471
  "flex cursor-default items-center justify-center py-1",
458
472
  className
459
473
  )
460
- }, props),
461
- /* @__PURE__ */ React5.createElement(ChevronDown, { className: "phsa-h-4 phsa-w-4" })
474
+ }, props), {
475
+ children: /* @__PURE__ */ jsx6(ChevronDown, { className: "h-4 w-4" })
476
+ })
462
477
  );
463
478
  });
464
479
  SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
465
- var SelectContent = React5.forwardRef((_a, ref) => {
480
+ var SelectContent = React4.forwardRef((_a, ref) => {
466
481
  var _b = _a, { className, children, position = "popper" } = _b, props = __objRest(_b, ["className", "children", "position"]);
467
- return /* @__PURE__ */ React5.createElement(SelectPrimitive.Portal, null, /* @__PURE__ */ React5.createElement(
482
+ return /* @__PURE__ */ jsx6(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs4(
468
483
  SelectPrimitive.Content,
469
- __spreadValues({
484
+ __spreadProps(__spreadValues({
470
485
  ref,
471
486
  className: cn(
472
487
  "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",
@@ -474,25 +489,28 @@ var SelectContent = React5.forwardRef((_a, ref) => {
474
489
  className
475
490
  ),
476
491
  position
477
- }, props),
478
- /* @__PURE__ */ React5.createElement(SelectScrollUpButton, null),
479
- /* @__PURE__ */ React5.createElement(
480
- SelectPrimitive.Viewport,
481
- {
482
- className: cn(
483
- "p-1",
484
- position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
485
- )
486
- },
487
- children
488
- ),
489
- /* @__PURE__ */ React5.createElement(SelectScrollDownButton, null)
490
- ));
492
+ }, props), {
493
+ children: [
494
+ /* @__PURE__ */ jsx6(SelectScrollUpButton, {}),
495
+ /* @__PURE__ */ jsx6(
496
+ SelectPrimitive.Viewport,
497
+ {
498
+ className: cn(
499
+ "p-1",
500
+ position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
501
+ ),
502
+ children
503
+ }
504
+ ),
505
+ /* @__PURE__ */ jsx6(SelectScrollDownButton, {})
506
+ ]
507
+ })
508
+ ) });
491
509
  });
492
510
  SelectContent.displayName = SelectPrimitive.Content.displayName;
493
- var SelectLabel = React5.forwardRef((_a, ref) => {
511
+ var SelectLabel = React4.forwardRef((_a, ref) => {
494
512
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
495
- return /* @__PURE__ */ React5.createElement(
513
+ return /* @__PURE__ */ jsx6(
496
514
  SelectPrimitive.Label,
497
515
  __spreadValues({
498
516
  ref,
@@ -501,25 +519,28 @@ var SelectLabel = React5.forwardRef((_a, ref) => {
501
519
  );
502
520
  });
503
521
  SelectLabel.displayName = SelectPrimitive.Label.displayName;
504
- var SelectItem = React5.forwardRef((_a, ref) => {
522
+ var SelectItem = React4.forwardRef((_a, ref) => {
505
523
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
506
- return /* @__PURE__ */ React5.createElement(
524
+ return /* @__PURE__ */ jsxs4(
507
525
  SelectPrimitive.Item,
508
- __spreadValues({
526
+ __spreadProps(__spreadValues({
509
527
  ref,
510
528
  className: cn(
511
529
  "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",
512
530
  className
513
531
  )
514
- }, props),
515
- /* @__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(Check2, { className: "phsa-h-4 phsa-w-4" }))),
516
- /* @__PURE__ */ React5.createElement(SelectPrimitive.ItemText, null, children)
532
+ }, props), {
533
+ children: [
534
+ /* @__PURE__ */ jsx6("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx6(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx6(Check2, { className: "h-4 w-4" }) }) }),
535
+ /* @__PURE__ */ jsx6(SelectPrimitive.ItemText, { children })
536
+ ]
537
+ })
517
538
  );
518
539
  });
519
540
  SelectItem.displayName = SelectPrimitive.Item.displayName;
520
- var SelectSeparator = React5.forwardRef((_a, ref) => {
541
+ var SelectSeparator = React4.forwardRef((_a, ref) => {
521
542
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
522
- return /* @__PURE__ */ React5.createElement(
543
+ return /* @__PURE__ */ jsx6(
523
544
  SelectPrimitive.Separator,
524
545
  __spreadValues({
525
546
  ref,
@@ -530,57 +551,87 @@ var SelectSeparator = React5.forwardRef((_a, ref) => {
530
551
  SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
531
552
 
532
553
  // src/components/dataDisplay/Table/components/DynamicTable/data-table-pagination.tsx
554
+ import { jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
533
555
  function DataTablePagination({
534
556
  table,
535
557
  pageSizeOptions = [10, 20, 30, 40, 50]
536
558
  }) {
537
- 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(
538
- Select,
539
- {
540
- value: `${table.getState().pagination.pageSize}`,
541
- onValueChange: (value) => {
542
- table.setPageSize(Number(value));
543
- }
544
- },
545
- /* @__PURE__ */ React.createElement(SelectTrigger, { className: "phsa-h-8 phsa-w-[70px]" }, /* @__PURE__ */ React.createElement(SelectValue, { placeholder: table.getState().pagination.pageSize })),
546
- /* @__PURE__ */ React.createElement(SelectContent, { side: "top" }, pageSizeOptions.map((pageSize) => /* @__PURE__ */ React.createElement(SelectItem, { key: pageSize, value: `${pageSize}` }, pageSize)))
547
- )), /* @__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(
548
- Button,
549
- {
550
- variant: "outline",
551
- className: "phsa-hidden phsa-h-8 phsa-w-8 phsa-p-0 lg:flex",
552
- onClick: () => table.setPageIndex(0),
553
- disabled: !table.getCanPreviousPage()
554
- },
555
- /* @__PURE__ */ React.createElement(DoubleArrowLeftIcon, { className: "phsa-h-4 phsa-w-4" })
556
- ), /* @__PURE__ */ React.createElement(
557
- Button,
558
- {
559
- variant: "outline",
560
- className: "phsa-h-8 phsa-w-8 phsa-p-0",
561
- onClick: () => table.previousPage(),
562
- disabled: !table.getCanPreviousPage()
563
- },
564
- /* @__PURE__ */ React.createElement(ChevronLeftIcon, { className: "phsa-h-4 phsa-w-4" })
565
- ), /* @__PURE__ */ React.createElement(
566
- Button,
567
- {
568
- variant: "outline",
569
- className: "phsa-h-8 phsa-w-8 phsa-p-0",
570
- onClick: () => table.nextPage(),
571
- disabled: !table.getCanNextPage()
572
- },
573
- /* @__PURE__ */ React.createElement(ChevronRightIcon, { className: "phsa-h-4 phsa-w-4" })
574
- ), /* @__PURE__ */ React.createElement(
575
- Button,
576
- {
577
- variant: "outline",
578
- className: "phsa-hidden phsa-h-8 phsa-w-8 phsa-p-0 lg:flex",
579
- onClick: () => table.setPageIndex(table.getPageCount() - 1),
580
- disabled: !table.getCanNextPage()
581
- },
582
- /* @__PURE__ */ React.createElement(DoubleArrowRightIcon, { className: "phsa-h-4 phsa-w-4" })
583
- ))));
559
+ return /* @__PURE__ */ jsxs5("div", { className: "flex items-center justify-between px-2", children: [
560
+ /* @__PURE__ */ jsxs5("div", { className: "flex-1 text-sm text-muted-foreground", children: [
561
+ table.getFilteredSelectedRowModel().rows.length,
562
+ " de",
563
+ " ",
564
+ table.getFilteredRowModel().rows.length,
565
+ " linha(s) selecionada(s)."
566
+ ] }),
567
+ /* @__PURE__ */ jsxs5("div", { className: "flex items-center space-x-6 lg:space-x-8", children: [
568
+ /* @__PURE__ */ jsxs5("div", { className: "flex items-center space-x-2", children: [
569
+ /* @__PURE__ */ jsx7("p", { className: "text-sm font-medium", children: "Linhas por p\xE1gina" }),
570
+ /* @__PURE__ */ jsxs5(
571
+ Select,
572
+ {
573
+ value: `${table.getState().pagination.pageSize}`,
574
+ onValueChange: (value) => {
575
+ table.setPageSize(Number(value));
576
+ },
577
+ children: [
578
+ /* @__PURE__ */ jsx7(SelectTrigger, { className: "h-8 w-[70px]", children: /* @__PURE__ */ jsx7(SelectValue, { placeholder: table.getState().pagination.pageSize }) }),
579
+ /* @__PURE__ */ jsx7(SelectContent, { side: "top", children: pageSizeOptions.map((pageSize) => /* @__PURE__ */ jsx7(SelectItem, { value: `${pageSize}`, children: pageSize }, pageSize)) })
580
+ ]
581
+ }
582
+ )
583
+ ] }),
584
+ /* @__PURE__ */ jsxs5("div", { className: "flex w-[100px] items-center justify-center text-sm font-medium", children: [
585
+ "P\xE1gina ",
586
+ table.getState().pagination.pageIndex + 1,
587
+ " de",
588
+ " ",
589
+ table.getPageCount()
590
+ ] }),
591
+ /* @__PURE__ */ jsxs5("div", { className: "flex items-center space-x-2", children: [
592
+ /* @__PURE__ */ jsx7(
593
+ Button,
594
+ {
595
+ variant: "outline",
596
+ className: "hidden h-8 w-8 p-0 lg:flex",
597
+ onClick: () => table.setPageIndex(0),
598
+ disabled: !table.getCanPreviousPage(),
599
+ children: /* @__PURE__ */ jsx7(DoubleArrowLeftIcon, { className: "h-4 w-4" })
600
+ }
601
+ ),
602
+ /* @__PURE__ */ jsx7(
603
+ Button,
604
+ {
605
+ variant: "outline",
606
+ className: "h-8 w-8 p-0",
607
+ onClick: () => table.previousPage(),
608
+ disabled: !table.getCanPreviousPage(),
609
+ children: /* @__PURE__ */ jsx7(ChevronLeftIcon, { className: "h-4 w-4" })
610
+ }
611
+ ),
612
+ /* @__PURE__ */ jsx7(
613
+ Button,
614
+ {
615
+ variant: "outline",
616
+ className: "h-8 w-8 p-0",
617
+ onClick: () => table.nextPage(),
618
+ disabled: !table.getCanNextPage(),
619
+ children: /* @__PURE__ */ jsx7(ChevronRightIcon, { className: "h-4 w-4" })
620
+ }
621
+ ),
622
+ /* @__PURE__ */ jsx7(
623
+ Button,
624
+ {
625
+ variant: "outline",
626
+ className: "hidden h-8 w-8 p-0 lg:flex",
627
+ onClick: () => table.setPageIndex(table.getPageCount() - 1),
628
+ disabled: !table.getCanNextPage(),
629
+ children: /* @__PURE__ */ jsx7(DoubleArrowRightIcon, { className: "h-4 w-4" })
630
+ }
631
+ )
632
+ ] })
633
+ ] })
634
+ ] });
584
635
  }
585
636
 
586
637
  // src/components/dataDisplay/Table/components/DynamicTable/data-table-column-header.tsx
@@ -590,27 +641,48 @@ import {
590
641
  CaretSortIcon,
591
642
  EyeNoneIcon
592
643
  } from "@radix-ui/react-icons";
644
+ import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
593
645
  function DataTableColumnHeader({
594
646
  column,
595
647
  title,
596
648
  className
597
649
  }) {
598
650
  if (!column.getCanSort()) {
599
- return /* @__PURE__ */ React.createElement("div", { className: cn(className) }, title);
651
+ return /* @__PURE__ */ jsx8("div", { className: cn(className), children: title });
600
652
  }
601
- 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(
602
- Button,
603
- {
604
- variant: "ghost",
605
- size: "sm",
606
- className: "phsa--ml-3 phsa-h-8 phsa-data-[state=open]:bg-accent"
607
- },
608
- /* @__PURE__ */ React.createElement("span", null, title),
609
- column.getIsSorted() === "desc" ? /* @__PURE__ */ React.createElement(ArrowDownIcon, { className: "phsa-ml-2 phsa-h-4 phsa-w-4" }) : column.getIsSorted() === "asc" ? /* @__PURE__ */ React.createElement(ArrowUpIcon, { className: "phsa-ml-2 phsa-h-4 phsa-w-4" }) : /* @__PURE__ */ React.createElement(CaretSortIcon, { className: "phsa-ml-2 phsa-h-4 phsa-w-4" })
610
- )), /* @__PURE__ */ React.createElement(DropdownMenuContent, { align: "start" }, /* @__PURE__ */ React.createElement(DropdownMenuItem, { onClick: () => column.toggleSorting(false) }, /* @__PURE__ */ React.createElement(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(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(EyeNoneIcon, { className: "phsa-mr-2 phsa-h-3.5 phsa-w-3.5 phsa-text-muted-foreground/70" }), "Ocultar"))));
653
+ return /* @__PURE__ */ jsx8("div", { className: cn("flex items-center space-x-2", className), children: /* @__PURE__ */ jsxs6(DropdownMenu, { children: [
654
+ /* @__PURE__ */ jsx8(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs6(
655
+ Button,
656
+ {
657
+ variant: "ghost",
658
+ size: "sm",
659
+ className: "-ml-3 h-8 data-[state=open]:bg-accent",
660
+ children: [
661
+ /* @__PURE__ */ jsx8("span", { children: title }),
662
+ column.getIsSorted() === "desc" ? /* @__PURE__ */ jsx8(ArrowDownIcon, { className: "ml-2 h-4 w-4" }) : column.getIsSorted() === "asc" ? /* @__PURE__ */ jsx8(ArrowUpIcon, { className: "ml-2 h-4 w-4" }) : /* @__PURE__ */ jsx8(CaretSortIcon, { className: "ml-2 h-4 w-4" })
663
+ ]
664
+ }
665
+ ) }),
666
+ /* @__PURE__ */ jsxs6(DropdownMenuContent, { align: "start", children: [
667
+ /* @__PURE__ */ jsxs6(DropdownMenuItem, { onClick: () => column.toggleSorting(false), children: [
668
+ /* @__PURE__ */ jsx8(ArrowUpIcon, { className: "mr-2 h-3.5 w-3.5 text-muted-foreground/70" }),
669
+ "Crescente"
670
+ ] }),
671
+ /* @__PURE__ */ jsxs6(DropdownMenuItem, { onClick: () => column.toggleSorting(true), children: [
672
+ /* @__PURE__ */ jsx8(ArrowDownIcon, { className: "mr-2 h-3.5 w-3.5 text-muted-foreground/70" }),
673
+ "Decrescente"
674
+ ] }),
675
+ /* @__PURE__ */ jsx8(DropdownMenuSeparator, {}),
676
+ /* @__PURE__ */ jsxs6(DropdownMenuItem, { onClick: () => column.toggleVisibility(false), children: [
677
+ /* @__PURE__ */ jsx8(EyeNoneIcon, { className: "mr-2 h-3.5 w-3.5 text-muted-foreground/70" }),
678
+ "Ocultar"
679
+ ] })
680
+ ] })
681
+ ] }) });
611
682
  }
612
683
 
613
684
  // src/components/dataDisplay/Table/components/DynamicTable/index.tsx
685
+ import { jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
614
686
  function DynamicTable({
615
687
  data,
616
688
  columns,
@@ -625,13 +697,13 @@ function DynamicTable({
625
697
  defaultVisibility = {}
626
698
  }) {
627
699
  var _a;
628
- const [sorting, setSorting] = React6.useState(defaultSort);
629
- const [columnVisibility, setColumnVisibility] = React6.useState(defaultVisibility);
630
- const [{ pageIndex, pageSize }, setPagination] = React6.useState({
700
+ const [sorting, setSorting] = React5.useState(defaultSort);
701
+ const [columnVisibility, setColumnVisibility] = React5.useState(defaultVisibility);
702
+ const [{ pageIndex, pageSize }, setPagination] = React5.useState({
631
703
  pageIndex: 0,
632
704
  pageSize: rowsPerPage[0]
633
705
  });
634
- const pagination = React6.useMemo(
706
+ const pagination = React5.useMemo(
635
707
  () => ({
636
708
  pageIndex,
637
709
  pageSize
@@ -656,37 +728,44 @@ function DynamicTable({
656
728
  },
657
729
  enableSorting: showSorting
658
730
  });
659
- return /* @__PURE__ */ React6.createElement("div", { className: "phsa-space-y-4" }, (toolbar || filters || showColumnVisibility) && /* @__PURE__ */ React6.createElement(
660
- DataTableToolbar,
661
- {
662
- table,
663
- filters,
664
- showColumnVisibility
665
- }
666
- ), /* @__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(
667
- DataTableColumnHeader,
668
- {
669
- column: header.column,
670
- title: header.column.columnDef.header
671
- }
672
- )))))), /* @__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 }, flexRender(
673
- cell.column.columnDef.cell,
674
- cell.getContext()
675
- ))))) : /* @__PURE__ */ React6.createElement(TableRow, null, /* @__PURE__ */ React6.createElement(
676
- TableCell,
677
- {
678
- colSpan: columns.length,
679
- className: "phsa-h-24 phsa-text-center"
680
- },
681
- "Nenhum resultado encontrado."
682
- ))))), showPagination && /* @__PURE__ */ React6.createElement(DataTablePagination, { table, pageSizeOptions: rowsPerPage }));
731
+ return /* @__PURE__ */ jsxs7("div", { className: "space-y-4", children: [
732
+ (toolbar || filters || showColumnVisibility) && /* @__PURE__ */ jsx9(
733
+ DataTableToolbar,
734
+ {
735
+ table,
736
+ filters,
737
+ showColumnVisibility
738
+ }
739
+ ),
740
+ /* @__PURE__ */ jsx9("div", { className: cn("rounded-md border", className), children: /* @__PURE__ */ jsxs7(Table, { children: [
741
+ /* @__PURE__ */ jsx9(TableHeader, { children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx9(TableRow, { children: headerGroup.headers.map((header) => /* @__PURE__ */ jsx9(TableHead, { children: header.isPlaceholder ? null : /* @__PURE__ */ jsx9(
742
+ DataTableColumnHeader,
743
+ {
744
+ column: header.column,
745
+ title: header.column.columnDef.header
746
+ }
747
+ ) }, header.id)) }, headerGroup.id)) }),
748
+ /* @__PURE__ */ jsx9(TableBody, { children: ((_a = table.getRowModel().rows) == null ? void 0 : _a.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ jsx9(TableRow, { children: row.getVisibleCells().map((cell) => /* @__PURE__ */ jsx9(TableCell, { children: flexRender(
749
+ cell.column.columnDef.cell,
750
+ cell.getContext()
751
+ ) }, cell.id)) }, row.id)) : /* @__PURE__ */ jsx9(TableRow, { children: /* @__PURE__ */ jsx9(
752
+ TableCell,
753
+ {
754
+ colSpan: columns.length,
755
+ className: "h-24 text-center",
756
+ children: "Nenhum resultado encontrado."
757
+ }
758
+ ) }) })
759
+ ] }) }),
760
+ showPagination && /* @__PURE__ */ jsx9(DataTablePagination, { table, pageSizeOptions: rowsPerPage })
761
+ ] });
683
762
  }
684
763
 
685
764
  // src/components/ui/badge.tsx
686
- import * as React7 from "react";
687
765
  import { cva as cva2 } from "class-variance-authority";
766
+ import { jsx as jsx10 } from "react/jsx-runtime";
688
767
  var badgeVariants = cva2(
689
- "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",
768
+ "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",
690
769
  {
691
770
  variants: {
692
771
  variant: {
@@ -705,12 +784,13 @@ var badgeVariants = cva2(
705
784
  );
706
785
  function Badge(_a) {
707
786
  var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
708
- return /* @__PURE__ */ React7.createElement("div", __spreadValues({ className: cn(badgeVariants({ variant }), className) }, props));
787
+ return /* @__PURE__ */ jsx10("div", __spreadValues({ className: cn(badgeVariants({ variant }), className) }, props));
709
788
  }
710
789
 
711
790
  // src/components/dataDisplay/Icon/Icon.tsx
712
- import React8, { useCallback, useMemo as useMemo2 } from "react";
791
+ import { useCallback, useMemo as useMemo2 } from "react";
713
792
  import { IconContext } from "react-icons";
793
+ import { Fragment, jsx as jsx11 } from "react/jsx-runtime";
714
794
  var Icon2 = (_a) => {
715
795
  var _b = _a, { name, size = 24 } = _b, rest = __objRest(_b, ["name", "size"]);
716
796
  const nameIcon = useMemo2(() => name, [name]);
@@ -736,23 +816,24 @@ var Icon2 = (_a) => {
736
816
  (props) => {
737
817
  var _a2, _b2;
738
818
  try {
739
- if (!typeIcon || !nameIcon) return /* @__PURE__ */ React8.createElement(React8.Fragment, null);
819
+ if (!typeIcon || !nameIcon) return /* @__PURE__ */ jsx11(Fragment, {});
740
820
  return (_b2 = (_a2 = iconsModulePath[typeIcon])[nameIcon]) == null ? void 0 : _b2.call(_a2, props);
741
821
  } catch (e) {
742
- return /* @__PURE__ */ React8.createElement(React8.Fragment, null);
822
+ return /* @__PURE__ */ jsx11(Fragment, {});
743
823
  }
744
824
  },
745
825
  [iconsModulePath, nameIcon, typeIcon]
746
826
  );
747
- return /* @__PURE__ */ React8.createElement(IconContext.Provider, { value: { size: String(size) } }, /* @__PURE__ */ React8.createElement(Icon3, __spreadValues({}, rest)));
827
+ return /* @__PURE__ */ jsx11(IconContext.Provider, { value: { size: String(size) }, children: /* @__PURE__ */ jsx11(Icon3, __spreadValues({}, rest)) });
748
828
  };
749
829
 
750
830
  // src/components/ui/avatar.tsx
751
- import * as React9 from "react";
831
+ import * as React7 from "react";
752
832
  import * as AvatarPrimitive from "@radix-ui/react-avatar";
753
- var Avatar = React9.forwardRef((_a, ref) => {
833
+ import { jsx as jsx12 } from "react/jsx-runtime";
834
+ var Avatar = React7.forwardRef((_a, ref) => {
754
835
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
755
- return /* @__PURE__ */ React9.createElement(
836
+ return /* @__PURE__ */ jsx12(
756
837
  AvatarPrimitive.Root,
757
838
  __spreadValues({
758
839
  ref,
@@ -764,9 +845,9 @@ var Avatar = React9.forwardRef((_a, ref) => {
764
845
  );
765
846
  });
766
847
  Avatar.displayName = AvatarPrimitive.Root.displayName;
767
- var AvatarImage = React9.forwardRef((_a, ref) => {
848
+ var AvatarImage = React7.forwardRef((_a, ref) => {
768
849
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
769
- return /* @__PURE__ */ React9.createElement(
850
+ return /* @__PURE__ */ jsx12(
770
851
  AvatarPrimitive.Image,
771
852
  __spreadValues({
772
853
  ref,
@@ -775,9 +856,9 @@ var AvatarImage = React9.forwardRef((_a, ref) => {
775
856
  );
776
857
  });
777
858
  AvatarImage.displayName = AvatarPrimitive.Image.displayName;
778
- var AvatarFallback = React9.forwardRef((_a, ref) => {
859
+ var AvatarFallback = React7.forwardRef((_a, ref) => {
779
860
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
780
- return /* @__PURE__ */ React9.createElement(
861
+ return /* @__PURE__ */ jsx12(
781
862
  AvatarPrimitive.Fallback,
782
863
  __spreadValues({
783
864
  ref,
@@ -791,11 +872,11 @@ var AvatarFallback = React9.forwardRef((_a, ref) => {
791
872
  AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
792
873
 
793
874
  // src/components/dataDisplay/DataPairList/DataPairList.tsx
794
- import React10 from "react";
795
875
  import { isEmpty } from "lodash";
796
876
 
797
877
  // src/components/dataDisplay/Text/Text.tsx
798
878
  import { cva as cva3 } from "class-variance-authority";
879
+ import { jsx as jsx13 } from "react/jsx-runtime";
799
880
  var textVariants = cva3("", {
800
881
  variants: {
801
882
  variant: {
@@ -833,10 +914,11 @@ function Text({
833
914
  children
834
915
  }) {
835
916
  const Tag = tagMap[variant || "normal"] || "p";
836
- return /* @__PURE__ */ React.createElement(Tag, { className: cn(textVariants({ variant, align }), className) }, children);
917
+ return /* @__PURE__ */ jsx13(Tag, { className: cn(textVariants({ variant, align }), className), children });
837
918
  }
838
919
 
839
920
  // src/components/dataDisplay/DataPairList/DataPairList.tsx
921
+ import { Fragment as Fragment2, jsx as jsx14, jsxs as jsxs8 } from "react/jsx-runtime";
840
922
  var DataPairList = ({
841
923
  title,
842
924
  data,
@@ -845,82 +927,180 @@ var DataPairList = ({
845
927
  infoDirection = "horizontal",
846
928
  direction = "vertical",
847
929
  withBorder = false,
848
- header = /* @__PURE__ */ React10.createElement(React10.Fragment, null)
930
+ header = /* @__PURE__ */ jsx14(Fragment2, {})
849
931
  }) => {
850
932
  if (isEmpty(data)) return null;
851
- return /* @__PURE__ */ React10.createElement(
933
+ return /* @__PURE__ */ jsxs8(
852
934
  "div",
853
935
  {
854
936
  className: cn(
855
937
  "flex flex-col gap-2 rounded-md p-4",
856
938
  withBorder && "border border-muted",
857
939
  className
858
- )
859
- },
860
- /* @__PURE__ */ React10.createElement("div", { className: "phsa-flex phsa-gap-3" }, title && /* @__PURE__ */ React10.createElement(Text, { variant: "title" }, title), header),
861
- /* @__PURE__ */ React10.createElement(
862
- "div",
863
- {
864
- className: cn(
865
- "grid grid-cols-1 mt-5",
866
- direction === "vertical" ? "gap-3" : "sm:grid-cols-2 md:grid-cols-4 gap-10"
940
+ ),
941
+ children: [
942
+ /* @__PURE__ */ jsxs8("div", { className: "flex gap-3", children: [
943
+ title && /* @__PURE__ */ jsx14(Text, { variant: "title", children: title }),
944
+ header
945
+ ] }),
946
+ /* @__PURE__ */ jsx14(
947
+ "div",
948
+ {
949
+ className: cn(
950
+ "grid grid-cols-1 mt-5",
951
+ direction === "vertical" ? "gap-3" : "sm:grid-cols-2 md:grid-cols-4 gap-10"
952
+ ),
953
+ children: Object.entries(data || {}).map(([key, value], index) => /* @__PURE__ */ jsxs8(
954
+ "div",
955
+ {
956
+ className: cn(
957
+ "flex gap-3",
958
+ infoDirection === "horizontal" ? "flex-row" : "flex-col"
959
+ ),
960
+ children: [
961
+ /* @__PURE__ */ jsxs8(Text, { className: "uppercase text-muted-foreground font-bold", children: [
962
+ (labels == null ? void 0 : labels[key]) || key,
963
+ ":"
964
+ ] }),
965
+ /* @__PURE__ */ jsx14(Text, { children: value })
966
+ ]
967
+ },
968
+ index
969
+ ))
970
+ }
867
971
  )
868
- },
869
- Object.entries(data || {}).map(([key, value], index) => /* @__PURE__ */ React10.createElement(
870
- "div",
871
- {
872
- className: cn(
873
- "flex gap-3",
874
- infoDirection === "horizontal" ? "flex-row" : "flex-col"
875
- ),
876
- key: index
877
- },
878
- /* @__PURE__ */ React10.createElement(Text, { className: "uppercase phsa-text-muted-foreground phsa-font-bold" }, (labels == null ? void 0 : labels[key]) || key, ":"),
879
- /* @__PURE__ */ React10.createElement(Text, null, value)
880
- ))
881
- )
972
+ ]
973
+ }
974
+ );
975
+ };
976
+
977
+ // src/components/ui/card.tsx
978
+ import * as React8 from "react";
979
+ import { jsx as jsx15 } from "react/jsx-runtime";
980
+ var Card = React8.forwardRef((_a, ref) => {
981
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
982
+ return /* @__PURE__ */ jsx15(
983
+ "div",
984
+ __spreadValues({
985
+ ref,
986
+ className: cn(
987
+ "rounded-xl border bg-card text-card-foreground shadow",
988
+ className
989
+ )
990
+ }, props)
991
+ );
992
+ });
993
+ Card.displayName = "Card";
994
+ var CardHeader = React8.forwardRef((_a, ref) => {
995
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
996
+ return /* @__PURE__ */ jsx15(
997
+ "div",
998
+ __spreadValues({
999
+ ref,
1000
+ className: cn("flex flex-col space-y-1.5 p-6", className)
1001
+ }, props)
1002
+ );
1003
+ });
1004
+ CardHeader.displayName = "CardHeader";
1005
+ var CardTitle = React8.forwardRef((_a, ref) => {
1006
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1007
+ return /* @__PURE__ */ jsx15(
1008
+ "div",
1009
+ __spreadValues({
1010
+ ref,
1011
+ className: cn("font-semibold leading-none tracking-tight", className)
1012
+ }, props)
1013
+ );
1014
+ });
1015
+ CardTitle.displayName = "CardTitle";
1016
+ var CardDescription = React8.forwardRef((_a, ref) => {
1017
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1018
+ return /* @__PURE__ */ jsx15(
1019
+ "div",
1020
+ __spreadValues({
1021
+ ref,
1022
+ className: cn("text-sm text-muted-foreground", className)
1023
+ }, props)
1024
+ );
1025
+ });
1026
+ CardDescription.displayName = "CardDescription";
1027
+ var CardContent = React8.forwardRef((_a, ref) => {
1028
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1029
+ return /* @__PURE__ */ jsx15("div", __spreadValues({ ref, className: cn("p-6 pt-0", className) }, props));
1030
+ });
1031
+ CardContent.displayName = "CardContent";
1032
+ var CardFooter = React8.forwardRef((_a, ref) => {
1033
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1034
+ return /* @__PURE__ */ jsx15(
1035
+ "div",
1036
+ __spreadValues({
1037
+ ref,
1038
+ className: cn("flex items-center p-6 pt-0", className)
1039
+ }, props)
882
1040
  );
1041
+ });
1042
+ CardFooter.displayName = "CardFooter";
1043
+
1044
+ // src/components/dataDisplay/Card/Card.tsx
1045
+ import { Fragment as Fragment3, jsx as jsx16, jsxs as jsxs9 } from "react/jsx-runtime";
1046
+ var Card2 = ({
1047
+ title,
1048
+ children,
1049
+ description,
1050
+ footer = () => /* @__PURE__ */ jsx16(Fragment3, {})
1051
+ }) => {
1052
+ return /* @__PURE__ */ jsxs9(Card, { children: [
1053
+ /* @__PURE__ */ jsxs9(CardHeader, { children: [
1054
+ title && /* @__PURE__ */ jsx16(CardTitle, { children: title }),
1055
+ description && /* @__PURE__ */ jsx16(CardDescription, { children: description })
1056
+ ] }),
1057
+ children && /* @__PURE__ */ jsx16(CardContent, { children }),
1058
+ footer && /* @__PURE__ */ jsx16(CardFooter, { children: footer() })
1059
+ ] });
883
1060
  };
884
1061
 
885
1062
  // src/components/dataInput/checkbox/Checkbox.tsx
886
1063
  import { useFormContext as useFormContext3 } from "react-hook-form";
887
1064
 
888
1065
  // src/components/ui/checkbox.tsx
889
- import * as React11 from "react";
1066
+ import * as React9 from "react";
890
1067
  import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
891
1068
  import { Check as Check3 } from "lucide-react";
892
- var Checkbox = React11.forwardRef((_a, ref) => {
1069
+ import { jsx as jsx17 } from "react/jsx-runtime";
1070
+ var Checkbox = React9.forwardRef((_a, ref) => {
893
1071
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
894
- return /* @__PURE__ */ React11.createElement(
1072
+ return /* @__PURE__ */ jsx17(
895
1073
  CheckboxPrimitive.Root,
896
- __spreadValues({
1074
+ __spreadProps(__spreadValues({
897
1075
  ref,
898
1076
  className: cn(
899
1077
  "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",
900
1078
  className
901
1079
  )
902
- }, props),
903
- /* @__PURE__ */ React11.createElement(
904
- CheckboxPrimitive.Indicator,
905
- {
906
- className: cn("flex items-center justify-center text-current")
907
- },
908
- /* @__PURE__ */ React11.createElement(Check3, { className: "phsa-h-4 phsa-w-4" })
909
- )
1080
+ }, props), {
1081
+ children: /* @__PURE__ */ jsx17(
1082
+ CheckboxPrimitive.Indicator,
1083
+ {
1084
+ className: cn("flex items-center justify-center text-current"),
1085
+ children: /* @__PURE__ */ jsx17(Check3, { className: "h-4 w-4" })
1086
+ }
1087
+ )
1088
+ })
910
1089
  );
911
1090
  });
912
1091
  Checkbox.displayName = CheckboxPrimitive.Root.displayName;
913
1092
 
914
1093
  // src/components/ui/label.tsx
915
- import * as React12 from "react";
1094
+ import * as React10 from "react";
916
1095
  import * as LabelPrimitive from "@radix-ui/react-label";
917
1096
  import { cva as cva4 } from "class-variance-authority";
1097
+ import { jsx as jsx18 } from "react/jsx-runtime";
918
1098
  var labelVariants = cva4(
919
- "phsa-text-sm phsa-font-medium phsa-leading-none phsa-peer-disabled:cursor-not-allowed phsa-peer-disabled:opacity-70"
1099
+ "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
920
1100
  );
921
- var Label3 = React12.forwardRef((_a, ref) => {
1101
+ var Label3 = React10.forwardRef((_a, ref) => {
922
1102
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
923
- return /* @__PURE__ */ React12.createElement(
1103
+ return /* @__PURE__ */ jsx18(
924
1104
  LabelPrimitive.Root,
925
1105
  __spreadValues({
926
1106
  ref,
@@ -934,24 +1114,25 @@ Label3.displayName = LabelPrimitive.Root.displayName;
934
1114
  import { useFormContext as useFormContext2 } from "react-hook-form";
935
1115
 
936
1116
  // src/components/ui/form.tsx
937
- import * as React13 from "react";
1117
+ import * as React11 from "react";
938
1118
  import { Slot as Slot2 } from "@radix-ui/react-slot";
939
1119
  import {
940
1120
  Controller,
941
1121
  FormProvider,
942
1122
  useFormContext
943
1123
  } from "react-hook-form";
1124
+ import { jsx as jsx19 } from "react/jsx-runtime";
944
1125
  var Form = FormProvider;
945
- var FormFieldContext = React13.createContext(
1126
+ var FormFieldContext = React11.createContext(
946
1127
  {}
947
1128
  );
948
1129
  var FormField = (_a) => {
949
1130
  var props = __objRest(_a, []);
950
- return /* @__PURE__ */ React13.createElement(FormFieldContext.Provider, { value: { name: props.name } }, /* @__PURE__ */ React13.createElement(Controller, __spreadValues({}, props)));
1131
+ return /* @__PURE__ */ jsx19(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx19(Controller, __spreadValues({}, props)) });
951
1132
  };
952
1133
  var useFormField = () => {
953
- const fieldContext = React13.useContext(FormFieldContext);
954
- const itemContext = React13.useContext(FormItemContext);
1134
+ const fieldContext = React11.useContext(FormFieldContext);
1135
+ const itemContext = React11.useContext(FormItemContext);
955
1136
  const { getFieldState, formState } = useFormContext();
956
1137
  const fieldState = getFieldState(fieldContext.name, formState);
957
1138
  if (!fieldContext) {
@@ -966,19 +1147,19 @@ var useFormField = () => {
966
1147
  formMessageId: `${id}-form-item-message`
967
1148
  }, fieldState);
968
1149
  };
969
- var FormItemContext = React13.createContext(
1150
+ var FormItemContext = React11.createContext(
970
1151
  {}
971
1152
  );
972
- var FormItem = React13.forwardRef((_a, ref) => {
1153
+ var FormItem = React11.forwardRef((_a, ref) => {
973
1154
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
974
- const id = React13.useId();
975
- return /* @__PURE__ */ React13.createElement(FormItemContext.Provider, { value: { id } }, /* @__PURE__ */ React13.createElement("div", __spreadValues({ ref, className: cn("space-y-2", className) }, props)));
1155
+ const id = React11.useId();
1156
+ return /* @__PURE__ */ jsx19(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx19("div", __spreadValues({ ref, className: cn("space-y-2", className) }, props)) });
976
1157
  });
977
1158
  FormItem.displayName = "FormItem";
978
- var FormLabel = React13.forwardRef((_a, ref) => {
1159
+ var FormLabel = React11.forwardRef((_a, ref) => {
979
1160
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
980
1161
  const { error, formItemId } = useFormField();
981
- return /* @__PURE__ */ React13.createElement(
1162
+ return /* @__PURE__ */ jsx19(
982
1163
  Label3,
983
1164
  __spreadValues({
984
1165
  ref,
@@ -988,10 +1169,10 @@ var FormLabel = React13.forwardRef((_a, ref) => {
988
1169
  );
989
1170
  });
990
1171
  FormLabel.displayName = "FormLabel";
991
- var FormControl = React13.forwardRef((_a, ref) => {
1172
+ var FormControl = React11.forwardRef((_a, ref) => {
992
1173
  var props = __objRest(_a, []);
993
1174
  const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
994
- return /* @__PURE__ */ React13.createElement(
1175
+ return /* @__PURE__ */ jsx19(
995
1176
  Slot2,
996
1177
  __spreadValues({
997
1178
  ref,
@@ -1002,10 +1183,10 @@ var FormControl = React13.forwardRef((_a, ref) => {
1002
1183
  );
1003
1184
  });
1004
1185
  FormControl.displayName = "FormControl";
1005
- var FormDescription = React13.forwardRef((_a, ref) => {
1186
+ var FormDescription = React11.forwardRef((_a, ref) => {
1006
1187
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1007
1188
  const { formDescriptionId } = useFormField();
1008
- return /* @__PURE__ */ React13.createElement(
1189
+ return /* @__PURE__ */ jsx19(
1009
1190
  "p",
1010
1191
  __spreadValues({
1011
1192
  ref,
@@ -1015,31 +1196,34 @@ var FormDescription = React13.forwardRef((_a, ref) => {
1015
1196
  );
1016
1197
  });
1017
1198
  FormDescription.displayName = "FormDescription";
1018
- var FormMessage = React13.forwardRef((_a, ref) => {
1199
+ var FormMessage = React11.forwardRef((_a, ref) => {
1019
1200
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
1020
1201
  const { error, formMessageId } = useFormField();
1021
1202
  const body = error ? String(error == null ? void 0 : error.message) : children;
1022
1203
  if (!body) {
1023
1204
  return null;
1024
1205
  }
1025
- return /* @__PURE__ */ React13.createElement(
1206
+ return /* @__PURE__ */ jsx19(
1026
1207
  "p",
1027
- __spreadValues({
1208
+ __spreadProps(__spreadValues({
1028
1209
  ref,
1029
1210
  id: formMessageId,
1030
1211
  className: cn("text-[0.8rem] font-medium text-destructive", className)
1031
- }, props),
1032
- body
1212
+ }, props), {
1213
+ children: body
1214
+ })
1033
1215
  );
1034
1216
  });
1035
1217
  FormMessage.displayName = "FormMessage";
1036
1218
 
1037
1219
  // src/components/dataDisplay/ErrorMessage/ErrorMessage.tsx
1220
+ import { jsx as jsx20 } from "react/jsx-runtime";
1038
1221
  var ErrorMessage = ({ children }) => {
1039
- return /* @__PURE__ */ React.createElement("p", { className: "phsa-text-sm phsa-font-medium phsa-text-destructive" }, children);
1222
+ return /* @__PURE__ */ jsx20("p", { className: "text-sm font-medium text-destructive", children });
1040
1223
  };
1041
1224
 
1042
1225
  // src/components/dataInput/checkbox/Checkbox.tsx
1226
+ import { jsx as jsx21, jsxs as jsxs10 } from "react/jsx-runtime";
1043
1227
  var Checkbox2 = (_a) => {
1044
1228
  var _b = _a, {
1045
1229
  label,
@@ -1054,29 +1238,37 @@ var Checkbox2 = (_a) => {
1054
1238
  const form = useFormContext3();
1055
1239
  const hasForm = !withoutForm && !!form && !!props.name;
1056
1240
  if (!hasForm)
1057
- 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));
1058
- return /* @__PURE__ */ React.createElement(
1241
+ return /* @__PURE__ */ jsxs10("div", { className: "flex items-center space-x-2", children: [
1242
+ /* @__PURE__ */ jsx21(Checkbox, __spreadValues({}, props)),
1243
+ label && /* @__PURE__ */ jsx21(Label3, { htmlFor: props.id, children: label }),
1244
+ error && /* @__PURE__ */ jsx21(ErrorMessage, { children: error })
1245
+ ] });
1246
+ return /* @__PURE__ */ jsx21(
1059
1247
  FormField,
1060
1248
  {
1061
1249
  control: form.control,
1062
1250
  name: (_a2 = props.name) != null ? _a2 : "",
1063
- 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(
1064
- Checkbox,
1065
- {
1066
- checked: field.value,
1067
- onCheckedChange: field.onChange
1068
- }
1069
- )), label && /* @__PURE__ */ React.createElement("div", { className: "phsa-space-y-1 phsa-leading-none" }, /* @__PURE__ */ React.createElement(FormLabel, null, label)))
1251
+ render: ({ field }) => /* @__PURE__ */ jsxs10(FormItem, { className: "flex flex-row items-start space-x-3 space-y-0 rounded-md border p-4", children: [
1252
+ /* @__PURE__ */ jsx21(FormControl, { children: /* @__PURE__ */ jsx21(
1253
+ Checkbox,
1254
+ {
1255
+ checked: field.value,
1256
+ onCheckedChange: field.onChange
1257
+ }
1258
+ ) }),
1259
+ label && /* @__PURE__ */ jsx21("div", { className: "space-y-1 leading-none", children: /* @__PURE__ */ jsx21(FormLabel, { children: label }) })
1260
+ ] })
1070
1261
  }
1071
1262
  );
1072
1263
  };
1073
1264
 
1074
1265
  // src/components/ui/input.tsx
1075
- import * as React14 from "react";
1076
- var Input = React14.forwardRef(
1266
+ import * as React12 from "react";
1267
+ import { jsx as jsx22 } from "react/jsx-runtime";
1268
+ var Input = React12.forwardRef(
1077
1269
  (_a, ref) => {
1078
1270
  var _b = _a, { className, type } = _b, props = __objRest(_b, ["className", "type"]);
1079
- return /* @__PURE__ */ React14.createElement(
1271
+ return /* @__PURE__ */ jsx22(
1080
1272
  "input",
1081
1273
  __spreadValues({
1082
1274
  type,
@@ -1095,24 +1287,27 @@ Input.displayName = "Input";
1095
1287
  import { useMemo as useMemo4 } from "react";
1096
1288
 
1097
1289
  // src/components/feedback/ErrorLabel/index.tsx
1098
- import React15 from "react";
1290
+ import { jsx as jsx23, jsxs as jsxs11 } from "react/jsx-runtime";
1099
1291
  var ErrorLabel = ({
1100
1292
  children,
1101
1293
  className,
1102
1294
  "data-testid": dataTestId
1103
1295
  }) => {
1104
- return /* @__PURE__ */ React15.createElement(
1296
+ return /* @__PURE__ */ jsxs11(
1105
1297
  "div",
1106
1298
  {
1107
1299
  className: cn("flex items-center gap-2 my-2", className),
1108
- "data-testid": `${dataTestId}-error-label`
1109
- },
1110
- /* @__PURE__ */ React15.createElement(Icon2, { name: "MdErrorOutline", size: 18, className: "phsa-text-destructive" }),
1111
- /* @__PURE__ */ React15.createElement("span", { className: "phsa-text-destructive phsa-text-sm" }, children)
1300
+ "data-testid": `${dataTestId}-error-label`,
1301
+ children: [
1302
+ /* @__PURE__ */ jsx23(Icon2, { name: "MdErrorOutline", size: 18, className: "text-destructive" }),
1303
+ /* @__PURE__ */ jsx23("span", { className: "text-destructive text-sm", children })
1304
+ ]
1305
+ }
1112
1306
  );
1113
1307
  };
1114
1308
 
1115
1309
  // src/components/dataInput/Input/components/InputBase/index.tsx
1310
+ import { jsx as jsx24, jsxs as jsxs12 } from "react/jsx-runtime";
1116
1311
  var InputBase = ({
1117
1312
  label,
1118
1313
  error,
@@ -1120,7 +1315,14 @@ var InputBase = ({
1120
1315
  required,
1121
1316
  "data-testid": testId
1122
1317
  }) => {
1123
- 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));
1318
+ return /* @__PURE__ */ jsxs12("div", { children: [
1319
+ label && /* @__PURE__ */ jsxs12(Label3, { "data-testid": `${testId}-label`, children: [
1320
+ `${label} ${required ? "*" : ""}`,
1321
+ " "
1322
+ ] }),
1323
+ children,
1324
+ error && /* @__PURE__ */ jsx24(ErrorLabel, { "data-testid": testId, children: error })
1325
+ ] });
1124
1326
  };
1125
1327
 
1126
1328
  // src/hooks/use-conditional-controller.tsx
@@ -1150,6 +1352,7 @@ var useConditionalController = ({
1150
1352
  };
1151
1353
 
1152
1354
  // src/components/dataInput/Input/components/Input/index.tsx
1355
+ import { jsx as jsx25, jsxs as jsxs13 } from "react/jsx-runtime";
1153
1356
  var Input2 = (_a) => {
1154
1357
  var _b = _a, {
1155
1358
  "data-testid": dataTestId,
@@ -1169,33 +1372,36 @@ var Input2 = (_a) => {
1169
1372
  const inputProps = useMemo4(() => {
1170
1373
  return __spreadValues(__spreadValues({}, formData), props);
1171
1374
  }, [formData, props]);
1172
- return /* @__PURE__ */ React.createElement(
1375
+ return /* @__PURE__ */ jsx25(
1173
1376
  InputBase,
1174
1377
  {
1175
1378
  label: props.label,
1176
1379
  error: props.error,
1177
1380
  required: props.required,
1178
- "data-testid": dataTestId
1179
- },
1180
- /* @__PURE__ */ React.createElement("div", { className: cn("flex items-center gap-2", containerClassName) }, /* @__PURE__ */ React.createElement(
1181
- Input,
1182
- __spreadProps(__spreadValues({}, inputProps), {
1183
- "data-testid": dataTestId,
1184
- className: cn(
1185
- props.className,
1186
- props.error && "border-destructive focus:border-destructive focus-visible:ring-0"
1187
- )
1188
- })
1189
- ), extraElement)
1381
+ "data-testid": dataTestId,
1382
+ children: /* @__PURE__ */ jsxs13("div", { className: cn("flex items-center gap-2", containerClassName), children: [
1383
+ /* @__PURE__ */ jsx25(
1384
+ Input,
1385
+ __spreadProps(__spreadValues({}, inputProps), {
1386
+ "data-testid": dataTestId,
1387
+ className: cn(
1388
+ props.className,
1389
+ props.error && "border-destructive focus:border-destructive focus-visible:ring-0"
1390
+ )
1391
+ })
1392
+ ),
1393
+ extraElement
1394
+ ] })
1395
+ }
1190
1396
  );
1191
1397
  };
1192
1398
 
1193
1399
  // src/components/dataInput/Input/components/NumberInput/number-input.tsx
1194
- import * as React16 from "react";
1195
1400
  import {
1196
1401
  NumericFormat
1197
1402
  } from "react-number-format";
1198
1403
  import { useCallback as useCallback2, useMemo as useMemo5 } from "react";
1404
+ import { jsx as jsx26 } from "react/jsx-runtime";
1199
1405
  var NumberInput = (props) => {
1200
1406
  const formData = useConditionalController({
1201
1407
  name: props.name || "",
@@ -1225,18 +1431,18 @@ var NumberInput = (props) => {
1225
1431
  },
1226
1432
  [props, formData]
1227
1433
  );
1228
- return /* @__PURE__ */ React16.createElement(InputBase, __spreadValues({}, props), /* @__PURE__ */ React16.createElement(
1434
+ return /* @__PURE__ */ jsx26(InputBase, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsx26(
1229
1435
  NumericFormat,
1230
1436
  __spreadProps(__spreadValues({}, inputProps), {
1231
1437
  customInput: Input,
1232
1438
  value: props.value,
1233
1439
  onValueChange
1234
1440
  })
1235
- ));
1441
+ ) }));
1236
1442
  };
1237
1443
 
1238
1444
  // src/components/dataInput/Input/components/MaskInput/mask-input.tsx
1239
- import * as React17 from "react";
1445
+ import * as React13 from "react";
1240
1446
 
1241
1447
  // src/hooks/use-mask.tsx
1242
1448
  import { useState as useState2, useCallback as useCallback3 } from "react";
@@ -1324,6 +1530,7 @@ var useMask = (_a) => {
1324
1530
 
1325
1531
  // src/components/dataInput/Input/components/MaskInput/mask-input.tsx
1326
1532
  import { useRef } from "react";
1533
+ import { jsx as jsx27 } from "react/jsx-runtime";
1327
1534
  var MaskInput = (_a) => {
1328
1535
  var _b = _a, {
1329
1536
  "data-testid": dataTestId,
@@ -1340,12 +1547,12 @@ var MaskInput = (_a) => {
1340
1547
  name: props.name || "",
1341
1548
  withoutForm
1342
1549
  });
1343
- const inputProps = React17.useMemo(() => {
1550
+ const inputProps = React13.useMemo(() => {
1344
1551
  return __spreadValues(__spreadValues({}, formData), props);
1345
1552
  }, [formData, props]);
1346
1553
  const { applyMask } = useMask({ mask });
1347
1554
  const inputRef = useRef(null);
1348
- const applyMaskToInput = React17.useCallback(
1555
+ const applyMaskToInput = React13.useCallback(
1349
1556
  (value) => {
1350
1557
  if (inputRef.current && mask) {
1351
1558
  const maskedValue = applyMask(value);
@@ -1354,7 +1561,7 @@ var MaskInput = (_a) => {
1354
1561
  },
1355
1562
  [applyMask, mask]
1356
1563
  );
1357
- const handleChange = React17.useCallback(
1564
+ const handleChange = React13.useCallback(
1358
1565
  (e) => {
1359
1566
  var _a2;
1360
1567
  const maskedValue = mask ? applyMask(e.target.value) : e.target.value;
@@ -1368,7 +1575,7 @@ var MaskInput = (_a) => {
1368
1575
  },
1369
1576
  [applyMask, inputProps, mask, applyMaskToInput]
1370
1577
  );
1371
- return /* @__PURE__ */ React17.createElement(
1578
+ return /* @__PURE__ */ jsx27(
1372
1579
  Input2,
1373
1580
  __spreadProps(__spreadValues({}, inputProps), {
1374
1581
  ref: inputRef,
@@ -1381,12 +1588,12 @@ var MaskInput = (_a) => {
1381
1588
  };
1382
1589
 
1383
1590
  // src/components/actions/Button/Button.tsx
1384
- import { forwardRef as forwardRef11 } from "react";
1591
+ import { forwardRef as forwardRef12 } from "react";
1385
1592
 
1386
1593
  // src/components/ui/spinner.tsx
1387
- import React18 from "react";
1388
1594
  import { cva as cva5 } from "class-variance-authority";
1389
- var spinnerVariants = cva5("phsa-flex-col phsa-items-center phsa-justify-center", {
1595
+ import { jsx as jsx28, jsxs as jsxs14 } from "react/jsx-runtime";
1596
+ var spinnerVariants = cva5("flex-col items-center justify-center", {
1390
1597
  variants: {
1391
1598
  show: {
1392
1599
  true: "flex",
@@ -1397,7 +1604,7 @@ var spinnerVariants = cva5("phsa-flex-col phsa-items-center phsa-justify-center"
1397
1604
  show: true
1398
1605
  }
1399
1606
  });
1400
- var loaderVariants = cva5("phsa-animate-spin phsa-text-primary", {
1607
+ var loaderVariants = cva5("animate-spin text-primary", {
1401
1608
  variants: {
1402
1609
  size: {
1403
1610
  small: "size-6",
@@ -1415,17 +1622,20 @@ function Spinner({
1415
1622
  children,
1416
1623
  className
1417
1624
  }) {
1418
- return /* @__PURE__ */ React18.createElement("span", { className: spinnerVariants({ show }) }, /* @__PURE__ */ React18.createElement(
1419
- Icon2,
1420
- {
1421
- name: "FaSpinner",
1422
- className: cn(loaderVariants({ size }), className)
1423
- }
1424
- ), children);
1625
+ return /* @__PURE__ */ jsxs14("span", { className: spinnerVariants({ show }), children: [
1626
+ /* @__PURE__ */ jsx28(
1627
+ Icon2,
1628
+ {
1629
+ name: "FaSpinner",
1630
+ className: cn(loaderVariants({ size }), className)
1631
+ }
1632
+ ),
1633
+ children
1634
+ ] });
1425
1635
  }
1426
1636
 
1427
1637
  // src/hooks/use-toast.ts
1428
- import * as React19 from "react";
1638
+ import * as React14 from "react";
1429
1639
  var TOAST_LIMIT = 1;
1430
1640
  var TOAST_REMOVE_DELAY = 1e6;
1431
1641
  var count = 0;
@@ -1520,8 +1730,8 @@ function toast(_a) {
1520
1730
  };
1521
1731
  }
1522
1732
  function useToast() {
1523
- const [state, setState] = React19.useState(memoryState);
1524
- React19.useEffect(() => {
1733
+ const [state, setState] = React14.useState(memoryState);
1734
+ React14.useEffect(() => {
1525
1735
  listeners.push(setState);
1526
1736
  return () => {
1527
1737
  const index = listeners.indexOf(setState);
@@ -1537,14 +1747,15 @@ function useToast() {
1537
1747
  }
1538
1748
 
1539
1749
  // src/components/ui/toast.tsx
1540
- import * as React20 from "react";
1750
+ import * as React15 from "react";
1541
1751
  import * as ToastPrimitives from "@radix-ui/react-toast";
1542
1752
  import { cva as cva6 } from "class-variance-authority";
1543
1753
  import { X } from "lucide-react";
1754
+ import { jsx as jsx29 } from "react/jsx-runtime";
1544
1755
  var ToastProvider = ToastPrimitives.Provider;
1545
- var ToastViewport = React20.forwardRef((_a, ref) => {
1756
+ var ToastViewport = React15.forwardRef((_a, ref) => {
1546
1757
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1547
- return /* @__PURE__ */ React20.createElement(
1758
+ return /* @__PURE__ */ jsx29(
1548
1759
  ToastPrimitives.Viewport,
1549
1760
  __spreadValues({
1550
1761
  ref,
@@ -1557,7 +1768,7 @@ var ToastViewport = React20.forwardRef((_a, ref) => {
1557
1768
  });
1558
1769
  ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
1559
1770
  var toastVariants = cva6(
1560
- "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",
1771
+ "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",
1561
1772
  {
1562
1773
  variants: {
1563
1774
  variant: {
@@ -1571,9 +1782,9 @@ var toastVariants = cva6(
1571
1782
  }
1572
1783
  }
1573
1784
  );
1574
- var Toast = React20.forwardRef((_a, ref) => {
1785
+ var Toast = React15.forwardRef((_a, ref) => {
1575
1786
  var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
1576
- return /* @__PURE__ */ React20.createElement(
1787
+ return /* @__PURE__ */ jsx29(
1577
1788
  ToastPrimitives.Root,
1578
1789
  __spreadValues({
1579
1790
  ref,
@@ -1582,9 +1793,9 @@ var Toast = React20.forwardRef((_a, ref) => {
1582
1793
  );
1583
1794
  });
1584
1795
  Toast.displayName = ToastPrimitives.Root.displayName;
1585
- var ToastAction = React20.forwardRef((_a, ref) => {
1796
+ var ToastAction = React15.forwardRef((_a, ref) => {
1586
1797
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1587
- return /* @__PURE__ */ React20.createElement(
1798
+ return /* @__PURE__ */ jsx29(
1588
1799
  ToastPrimitives.Action,
1589
1800
  __spreadValues({
1590
1801
  ref,
@@ -1596,25 +1807,26 @@ var ToastAction = React20.forwardRef((_a, ref) => {
1596
1807
  );
1597
1808
  });
1598
1809
  ToastAction.displayName = ToastPrimitives.Action.displayName;
1599
- var ToastClose = React20.forwardRef((_a, ref) => {
1810
+ var ToastClose = React15.forwardRef((_a, ref) => {
1600
1811
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1601
- return /* @__PURE__ */ React20.createElement(
1812
+ return /* @__PURE__ */ jsx29(
1602
1813
  ToastPrimitives.Close,
1603
- __spreadValues({
1814
+ __spreadProps(__spreadValues({
1604
1815
  ref,
1605
1816
  className: cn(
1606
1817
  "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",
1607
1818
  className
1608
1819
  ),
1609
1820
  "toast-close": ""
1610
- }, props),
1611
- /* @__PURE__ */ React20.createElement(X, { className: "phsa-h-4 phsa-w-4" })
1821
+ }, props), {
1822
+ children: /* @__PURE__ */ jsx29(X, { className: "h-4 w-4" })
1823
+ })
1612
1824
  );
1613
1825
  });
1614
1826
  ToastClose.displayName = ToastPrimitives.Close.displayName;
1615
- var ToastTitle = React20.forwardRef((_a, ref) => {
1827
+ var ToastTitle = React15.forwardRef((_a, ref) => {
1616
1828
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1617
- return /* @__PURE__ */ React20.createElement(
1829
+ return /* @__PURE__ */ jsx29(
1618
1830
  ToastPrimitives.Title,
1619
1831
  __spreadValues({
1620
1832
  ref,
@@ -1623,9 +1835,9 @@ var ToastTitle = React20.forwardRef((_a, ref) => {
1623
1835
  );
1624
1836
  });
1625
1837
  ToastTitle.displayName = ToastPrimitives.Title.displayName;
1626
- var ToastDescription = React20.forwardRef((_a, ref) => {
1838
+ var ToastDescription = React15.forwardRef((_a, ref) => {
1627
1839
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1628
- return /* @__PURE__ */ React20.createElement(
1840
+ return /* @__PURE__ */ jsx29(
1629
1841
  ToastPrimitives.Description,
1630
1842
  __spreadValues({
1631
1843
  ref,
@@ -1636,25 +1848,41 @@ var ToastDescription = React20.forwardRef((_a, ref) => {
1636
1848
  ToastDescription.displayName = ToastPrimitives.Description.displayName;
1637
1849
 
1638
1850
  // src/components/ui/toaster.tsx
1851
+ import { jsx as jsx30, jsxs as jsxs15 } from "react/jsx-runtime";
1639
1852
  function Toaster() {
1640
1853
  const { toasts } = useToast();
1641
- return /* @__PURE__ */ React.createElement(ToastProvider, null, toasts.map(function(_a) {
1642
- var _b = _a, { id, title, description, action } = _b, props = __objRest(_b, ["id", "title", "description", "action"]);
1643
- 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));
1644
- }), /* @__PURE__ */ React.createElement(ToastViewport, null));
1854
+ return /* @__PURE__ */ jsxs15(ToastProvider, { children: [
1855
+ toasts.map(function(_a) {
1856
+ var _b = _a, { id, title, description, action } = _b, props = __objRest(_b, ["id", "title", "description", "action"]);
1857
+ return /* @__PURE__ */ jsxs15(Toast, __spreadProps(__spreadValues({}, props), { children: [
1858
+ /* @__PURE__ */ jsxs15("div", { className: "grid gap-1", children: [
1859
+ title && /* @__PURE__ */ jsx30(ToastTitle, { children: title }),
1860
+ description && /* @__PURE__ */ jsx30(ToastDescription, { children: description })
1861
+ ] }),
1862
+ action,
1863
+ /* @__PURE__ */ jsx30(ToastClose, {})
1864
+ ] }), id);
1865
+ }),
1866
+ /* @__PURE__ */ jsx30(ToastViewport, {})
1867
+ ] });
1645
1868
  }
1646
1869
 
1647
1870
  // src/components/actions/Button/Button.tsx
1648
- var Button2 = forwardRef11(
1871
+ import { jsx as jsx31, jsxs as jsxs16 } from "react/jsx-runtime";
1872
+ var Button2 = forwardRef12(
1649
1873
  (_a, ref) => {
1650
1874
  var _b = _a, { children, disabled, loading } = _b, rest = __objRest(_b, ["children", "disabled", "loading"]);
1651
- return /* @__PURE__ */ React.createElement(Button, __spreadProps(__spreadValues({}, rest), { disabled: disabled || loading, ref }), loading && /* @__PURE__ */ React.createElement(Spinner, { className: "phsa-fill-white" }), children);
1875
+ return /* @__PURE__ */ jsxs16(Button, __spreadProps(__spreadValues({}, rest), { disabled: disabled || loading, ref, children: [
1876
+ loading && /* @__PURE__ */ jsx31(Spinner, { className: "fill-white" }),
1877
+ children
1878
+ ] }));
1652
1879
  }
1653
1880
  );
1654
1881
  Button2.displayName = "Button";
1655
1882
 
1656
1883
  // src/components/dataInput/Input/components/MultipleInput/MultipleInput.tsx
1657
1884
  import { useCallback as useCallback5, useMemo as useMemo7, useState as useState4 } from "react";
1885
+ import { jsx as jsx32, jsxs as jsxs17 } from "react/jsx-runtime";
1658
1886
  var MultipleInput = (_a) => {
1659
1887
  var _b = _a, {
1660
1888
  data = [],
@@ -1708,45 +1936,52 @@ var MultipleInput = (_a) => {
1708
1936
  );
1709
1937
  const renderItens = useCallback5(() => {
1710
1938
  return inputItems == null ? void 0 : inputItems.map((item, index) => {
1711
- return /* @__PURE__ */ React.createElement("div", { key: item, className: "phsa-flex phsa-justify-between" }, item, /* @__PURE__ */ React.createElement(
1712
- Button2,
1713
- {
1714
- variant: "ghost",
1715
- className: "phsa-text-destructive",
1716
- size: "icon",
1717
- onClick: () => onRemoveData(index)
1718
- },
1719
- /* @__PURE__ */ React.createElement(Icon2, { name: "MdDelete" })
1720
- ));
1939
+ return /* @__PURE__ */ jsxs17("div", { className: "flex justify-between", children: [
1940
+ item,
1941
+ /* @__PURE__ */ jsx32(
1942
+ Button2,
1943
+ {
1944
+ variant: "ghost",
1945
+ className: "text-destructive",
1946
+ size: "icon",
1947
+ onClick: () => onRemoveData(index),
1948
+ children: /* @__PURE__ */ jsx32(Icon2, { name: "MdDelete" })
1949
+ }
1950
+ )
1951
+ ] }, item);
1721
1952
  });
1722
1953
  }, [inputItems, onRemoveData]);
1723
1954
  const extraElement = useMemo7(
1724
- () => /* @__PURE__ */ React.createElement(Button2, { type: "button", onClick: onAddData, disabled: !inputValue }, /* @__PURE__ */ React.createElement(Icon2, { name: "MdAdd" })),
1955
+ () => /* @__PURE__ */ jsx32(Button2, { type: "button", onClick: onAddData, disabled: !inputValue, children: /* @__PURE__ */ jsx32(Icon2, { name: "MdAdd" }) }),
1725
1956
  [onAddData, inputValue]
1726
1957
  );
1727
- return /* @__PURE__ */ React.createElement("div", { className: "phsa-flex phsa-flex-col phsa-gap-2" }, /* @__PURE__ */ React.createElement(
1728
- MaskInput,
1729
- __spreadProps(__spreadValues({}, props), {
1730
- withoutForm: true,
1731
- extraElement,
1732
- onChange: (e) => {
1733
- setInputValue(e.target.value);
1734
- },
1735
- value: inputValue
1736
- })
1737
- ), renderItens());
1958
+ return /* @__PURE__ */ jsxs17("div", { className: "flex flex-col gap-2", children: [
1959
+ /* @__PURE__ */ jsx32(
1960
+ MaskInput,
1961
+ __spreadProps(__spreadValues({}, props), {
1962
+ withoutForm: true,
1963
+ extraElement,
1964
+ onChange: (e) => {
1965
+ setInputValue(e.target.value);
1966
+ },
1967
+ value: inputValue
1968
+ })
1969
+ ),
1970
+ renderItens()
1971
+ ] });
1738
1972
  };
1739
1973
 
1740
1974
  // src/components/ui/dialog.tsx
1741
- import * as React21 from "react";
1975
+ import * as React16 from "react";
1742
1976
  import * as DialogPrimitive from "@radix-ui/react-dialog";
1743
1977
  import { X as X2 } from "lucide-react";
1978
+ import { jsx as jsx33, jsxs as jsxs18 } from "react/jsx-runtime";
1744
1979
  var Dialog = DialogPrimitive.Root;
1745
1980
  var DialogPortal = DialogPrimitive.Portal;
1746
1981
  var DialogClose = DialogPrimitive.Close;
1747
- var DialogOverlay = React21.forwardRef((_a, ref) => {
1982
+ var DialogOverlay = React16.forwardRef((_a, ref) => {
1748
1983
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1749
- return /* @__PURE__ */ React21.createElement(
1984
+ return /* @__PURE__ */ jsx33(
1750
1985
  DialogPrimitive.Overlay,
1751
1986
  __spreadValues({
1752
1987
  ref,
@@ -1758,20 +1993,29 @@ var DialogOverlay = React21.forwardRef((_a, ref) => {
1758
1993
  );
1759
1994
  });
1760
1995
  DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
1761
- var DialogContent = React21.forwardRef((_a, ref) => {
1996
+ var DialogContent = React16.forwardRef((_a, ref) => {
1762
1997
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
1763
- return /* @__PURE__ */ React21.createElement(DialogPortal, null, /* @__PURE__ */ React21.createElement(DialogOverlay, null), /* @__PURE__ */ React21.createElement(
1764
- DialogPrimitive.Content,
1765
- __spreadValues({
1766
- ref,
1767
- className: cn(
1768
- "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]",
1769
- className
1770
- )
1771
- }, props),
1772
- children,
1773
- /* @__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(X2, { className: "phsa-h-4 phsa-w-4" }), /* @__PURE__ */ React21.createElement("span", { className: "phsa-sr-only" }, "Close"))
1774
- ));
1998
+ return /* @__PURE__ */ jsxs18(DialogPortal, { children: [
1999
+ /* @__PURE__ */ jsx33(DialogOverlay, {}),
2000
+ /* @__PURE__ */ jsxs18(
2001
+ DialogPrimitive.Content,
2002
+ __spreadProps(__spreadValues({
2003
+ ref,
2004
+ className: cn(
2005
+ "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]",
2006
+ className
2007
+ )
2008
+ }, props), {
2009
+ children: [
2010
+ children,
2011
+ /* @__PURE__ */ jsxs18(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: [
2012
+ /* @__PURE__ */ jsx33(X2, { className: "h-4 w-4" }),
2013
+ /* @__PURE__ */ jsx33("span", { className: "sr-only", children: "Close" })
2014
+ ] })
2015
+ ]
2016
+ })
2017
+ )
2018
+ ] });
1775
2019
  });
1776
2020
  DialogContent.displayName = DialogPrimitive.Content.displayName;
1777
2021
  var DialogHeader = (_a) => {
@@ -1780,7 +2024,7 @@ var DialogHeader = (_a) => {
1780
2024
  } = _b, props = __objRest(_b, [
1781
2025
  "className"
1782
2026
  ]);
1783
- return /* @__PURE__ */ React21.createElement(
2027
+ return /* @__PURE__ */ jsx33(
1784
2028
  "div",
1785
2029
  __spreadValues({
1786
2030
  className: cn(
@@ -1797,7 +2041,7 @@ var DialogFooter = (_a) => {
1797
2041
  } = _b, props = __objRest(_b, [
1798
2042
  "className"
1799
2043
  ]);
1800
- return /* @__PURE__ */ React21.createElement(
2044
+ return /* @__PURE__ */ jsx33(
1801
2045
  "div",
1802
2046
  __spreadValues({
1803
2047
  className: cn(
@@ -1808,9 +2052,9 @@ var DialogFooter = (_a) => {
1808
2052
  );
1809
2053
  };
1810
2054
  DialogFooter.displayName = "DialogFooter";
1811
- var DialogTitle = React21.forwardRef((_a, ref) => {
2055
+ var DialogTitle = React16.forwardRef((_a, ref) => {
1812
2056
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1813
- return /* @__PURE__ */ React21.createElement(
2057
+ return /* @__PURE__ */ jsx33(
1814
2058
  DialogPrimitive.Title,
1815
2059
  __spreadValues({
1816
2060
  ref,
@@ -1822,9 +2066,9 @@ var DialogTitle = React21.forwardRef((_a, ref) => {
1822
2066
  );
1823
2067
  });
1824
2068
  DialogTitle.displayName = DialogPrimitive.Title.displayName;
1825
- var DialogDescription = React21.forwardRef((_a, ref) => {
2069
+ var DialogDescription = React16.forwardRef((_a, ref) => {
1826
2070
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1827
- return /* @__PURE__ */ React21.createElement(
2071
+ return /* @__PURE__ */ jsx33(
1828
2072
  DialogPrimitive.Description,
1829
2073
  __spreadValues({
1830
2074
  ref,
@@ -1836,6 +2080,7 @@ DialogDescription.displayName = DialogPrimitive.Description.displayName;
1836
2080
 
1837
2081
  // src/components/actions/Dialog/Dialog.tsx
1838
2082
  import { useRef as useRef2 } from "react";
2083
+ import { jsx as jsx34, jsxs as jsxs19 } from "react/jsx-runtime";
1839
2084
  function Dialog2(_a) {
1840
2085
  var _b = _a, {
1841
2086
  title,
@@ -1850,7 +2095,14 @@ function Dialog2(_a) {
1850
2095
  "children",
1851
2096
  "footer"
1852
2097
  ]);
1853
- 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())));
2098
+ return /* @__PURE__ */ jsx34(Dialog, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsxs19(DialogContent, { className, children: [
2099
+ /* @__PURE__ */ jsxs19(DialogHeader, { children: [
2100
+ title && /* @__PURE__ */ jsx34(DialogTitle, { children: title }),
2101
+ description && /* @__PURE__ */ jsx34(DialogDescription, { children: description })
2102
+ ] }),
2103
+ children,
2104
+ footer && /* @__PURE__ */ jsx34(DialogFooter, { children: footer() })
2105
+ ] }) }));
1854
2106
  }
1855
2107
  var DialogWithForm = (_a) => {
1856
2108
  var _b = _a, {
@@ -1870,7 +2122,17 @@ var DialogWithForm = (_a) => {
1870
2122
  "onSubmit"
1871
2123
  ]);
1872
2124
  const dialogRef = useRef2(null);
1873
- 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())))));
2125
+ return /* @__PURE__ */ jsx34(Dialog, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsx34(DialogContent, { className, ref: dialogRef, children: /* @__PURE__ */ jsxs19("form", { onSubmit, className: "flex flex-col gap-4", children: [
2126
+ /* @__PURE__ */ jsxs19(DialogHeader, { children: [
2127
+ title && /* @__PURE__ */ jsx34(DialogTitle, { children: title }),
2128
+ description && /* @__PURE__ */ jsx34(DialogDescription, { children: description })
2129
+ ] }),
2130
+ children,
2131
+ footer && /* @__PURE__ */ jsx34(DialogFooter, { children: /* @__PURE__ */ jsxs19("div", { className: "flex justify-between w-full", children: [
2132
+ /* @__PURE__ */ jsx34(DialogClose, { asChild: true, children: /* @__PURE__ */ jsx34(Button2, { type: "button", variant: "secondary", children: "Fechar" }) }),
2133
+ footer()
2134
+ ] }) })
2135
+ ] }) }) }));
1874
2136
  };
1875
2137
 
1876
2138
  // src/components/ui/collapsible.tsx
@@ -1883,11 +2145,12 @@ var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
1883
2145
  import { useCallback as useCallback8 } from "react";
1884
2146
 
1885
2147
  // src/components/ui/drawer.tsx
1886
- import * as React22 from "react";
2148
+ import * as React17 from "react";
1887
2149
  import { Drawer as DrawerPrimitive } from "vaul";
2150
+ import { jsx as jsx35, jsxs as jsxs20 } from "react/jsx-runtime";
1888
2151
  var Drawer = (_a) => {
1889
2152
  var _b = _a, { shouldScaleBackground = true } = _b, props = __objRest(_b, ["shouldScaleBackground"]);
1890
- return /* @__PURE__ */ React22.createElement(
2153
+ return /* @__PURE__ */ jsx35(
1891
2154
  DrawerPrimitive.Root,
1892
2155
  __spreadValues({
1893
2156
  shouldScaleBackground
@@ -1898,9 +2161,9 @@ Drawer.displayName = "Drawer";
1898
2161
  var DrawerTrigger = DrawerPrimitive.Trigger;
1899
2162
  var DrawerPortal = DrawerPrimitive.Portal;
1900
2163
  var DrawerClose = DrawerPrimitive.Close;
1901
- var DrawerOverlay = React22.forwardRef((_a, ref) => {
2164
+ var DrawerOverlay = React17.forwardRef((_a, ref) => {
1902
2165
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1903
- return /* @__PURE__ */ React22.createElement(
2166
+ return /* @__PURE__ */ jsx35(
1904
2167
  DrawerPrimitive.Overlay,
1905
2168
  __spreadValues({
1906
2169
  ref,
@@ -1909,20 +2172,26 @@ var DrawerOverlay = React22.forwardRef((_a, ref) => {
1909
2172
  );
1910
2173
  });
1911
2174
  DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName;
1912
- var DrawerContent = React22.forwardRef((_a, ref) => {
2175
+ var DrawerContent = React17.forwardRef((_a, ref) => {
1913
2176
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
1914
- return /* @__PURE__ */ React22.createElement(DrawerPortal, null, /* @__PURE__ */ React22.createElement(DrawerOverlay, null), /* @__PURE__ */ React22.createElement(
1915
- DrawerPrimitive.Content,
1916
- __spreadValues({
1917
- ref,
1918
- className: cn(
1919
- "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
1920
- className
1921
- )
1922
- }, props),
1923
- /* @__PURE__ */ React22.createElement("div", { className: "phsa-mx-auto phsa-mt-4 phsa-h-2 phsa-w-[100px] phsa-rounded-full phsa-bg-muted" }),
1924
- children
1925
- ));
2177
+ return /* @__PURE__ */ jsxs20(DrawerPortal, { children: [
2178
+ /* @__PURE__ */ jsx35(DrawerOverlay, {}),
2179
+ /* @__PURE__ */ jsxs20(
2180
+ DrawerPrimitive.Content,
2181
+ __spreadProps(__spreadValues({
2182
+ ref,
2183
+ className: cn(
2184
+ "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
2185
+ className
2186
+ )
2187
+ }, props), {
2188
+ children: [
2189
+ /* @__PURE__ */ jsx35("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
2190
+ children
2191
+ ]
2192
+ })
2193
+ )
2194
+ ] });
1926
2195
  });
1927
2196
  DrawerContent.displayName = "DrawerContent";
1928
2197
  var DrawerHeader = (_a) => {
@@ -1931,7 +2200,7 @@ var DrawerHeader = (_a) => {
1931
2200
  } = _b, props = __objRest(_b, [
1932
2201
  "className"
1933
2202
  ]);
1934
- return /* @__PURE__ */ React22.createElement(
2203
+ return /* @__PURE__ */ jsx35(
1935
2204
  "div",
1936
2205
  __spreadValues({
1937
2206
  className: cn("grid gap-1.5 p-4 text-center sm:text-left", className)
@@ -1945,7 +2214,7 @@ var DrawerFooter = (_a) => {
1945
2214
  } = _b, props = __objRest(_b, [
1946
2215
  "className"
1947
2216
  ]);
1948
- return /* @__PURE__ */ React22.createElement(
2217
+ return /* @__PURE__ */ jsx35(
1949
2218
  "div",
1950
2219
  __spreadValues({
1951
2220
  className: cn("mt-auto flex flex-col gap-2 p-4", className)
@@ -1953,9 +2222,9 @@ var DrawerFooter = (_a) => {
1953
2222
  );
1954
2223
  };
1955
2224
  DrawerFooter.displayName = "DrawerFooter";
1956
- var DrawerTitle = React22.forwardRef((_a, ref) => {
2225
+ var DrawerTitle = React17.forwardRef((_a, ref) => {
1957
2226
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1958
- return /* @__PURE__ */ React22.createElement(
2227
+ return /* @__PURE__ */ jsx35(
1959
2228
  DrawerPrimitive.Title,
1960
2229
  __spreadValues({
1961
2230
  ref,
@@ -1967,9 +2236,9 @@ var DrawerTitle = React22.forwardRef((_a, ref) => {
1967
2236
  );
1968
2237
  });
1969
2238
  DrawerTitle.displayName = DrawerPrimitive.Title.displayName;
1970
- var DrawerDescription = React22.forwardRef((_a, ref) => {
2239
+ var DrawerDescription = React17.forwardRef((_a, ref) => {
1971
2240
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1972
- return /* @__PURE__ */ React22.createElement(
2241
+ return /* @__PURE__ */ jsx35(
1973
2242
  DrawerPrimitive.Description,
1974
2243
  __spreadValues({
1975
2244
  ref,
@@ -1980,22 +2249,23 @@ var DrawerDescription = React22.forwardRef((_a, ref) => {
1980
2249
  DrawerDescription.displayName = DrawerPrimitive.Description.displayName;
1981
2250
 
1982
2251
  // src/components/layout/Drawer/CustomDrawer/index.tsx
1983
- import * as React23 from "react";
2252
+ import { jsx as jsx36 } from "react/jsx-runtime";
1984
2253
  function CustomDrawer(_a) {
1985
2254
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1986
- return /* @__PURE__ */ React23.createElement(Drawer, __spreadValues({}, props), /* @__PURE__ */ React23.createElement(DrawerContent, { className }, props.children));
2255
+ return /* @__PURE__ */ jsx36(Drawer, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsx36(DrawerContent, { className, children: props.children }) }));
1987
2256
  }
1988
2257
 
1989
2258
  // src/components/ui/sheet.tsx
1990
- import * as React24 from "react";
2259
+ import * as React18 from "react";
1991
2260
  import * as SheetPrimitive from "@radix-ui/react-dialog";
1992
2261
  import { cva as cva7 } from "class-variance-authority";
1993
2262
  import { X as X3 } from "lucide-react";
2263
+ import { jsx as jsx37, jsxs as jsxs21 } from "react/jsx-runtime";
1994
2264
  var Sheet = SheetPrimitive.Root;
1995
2265
  var SheetPortal = SheetPrimitive.Portal;
1996
- var SheetOverlay = React24.forwardRef((_a, ref) => {
2266
+ var SheetOverlay = React18.forwardRef((_a, ref) => {
1997
2267
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1998
- return /* @__PURE__ */ React24.createElement(
2268
+ return /* @__PURE__ */ jsx37(
1999
2269
  SheetPrimitive.Overlay,
2000
2270
  __spreadProps(__spreadValues({
2001
2271
  className: cn(
@@ -2009,7 +2279,7 @@ var SheetOverlay = React24.forwardRef((_a, ref) => {
2009
2279
  });
2010
2280
  SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
2011
2281
  var sheetVariants = cva7(
2012
- "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",
2282
+ "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",
2013
2283
  {
2014
2284
  variants: {
2015
2285
  side: {
@@ -2024,17 +2294,26 @@ var sheetVariants = cva7(
2024
2294
  }
2025
2295
  }
2026
2296
  );
2027
- var SheetContent = React24.forwardRef((_a, ref) => {
2297
+ var SheetContent = React18.forwardRef((_a, ref) => {
2028
2298
  var _b = _a, { side = "right", className, children } = _b, props = __objRest(_b, ["side", "className", "children"]);
2029
- return /* @__PURE__ */ React24.createElement(SheetPortal, null, /* @__PURE__ */ React24.createElement(SheetOverlay, null), /* @__PURE__ */ React24.createElement(
2030
- SheetPrimitive.Content,
2031
- __spreadValues({
2032
- ref,
2033
- className: cn(sheetVariants({ side }), className)
2034
- }, props),
2035
- /* @__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(X3, { className: "phsa-h-4 phsa-w-4" }), /* @__PURE__ */ React24.createElement("span", { className: "phsa-sr-only" }, "Close")),
2036
- children
2037
- ));
2299
+ return /* @__PURE__ */ jsxs21(SheetPortal, { children: [
2300
+ /* @__PURE__ */ jsx37(SheetOverlay, {}),
2301
+ /* @__PURE__ */ jsxs21(
2302
+ SheetPrimitive.Content,
2303
+ __spreadProps(__spreadValues({
2304
+ ref,
2305
+ className: cn(sheetVariants({ side }), className)
2306
+ }, props), {
2307
+ children: [
2308
+ /* @__PURE__ */ jsxs21(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: [
2309
+ /* @__PURE__ */ jsx37(X3, { className: "h-4 w-4" }),
2310
+ /* @__PURE__ */ jsx37("span", { className: "sr-only", children: "Close" })
2311
+ ] }),
2312
+ children
2313
+ ]
2314
+ })
2315
+ )
2316
+ ] });
2038
2317
  });
2039
2318
  SheetContent.displayName = SheetPrimitive.Content.displayName;
2040
2319
  var SheetHeader = (_a) => {
@@ -2043,7 +2322,7 @@ var SheetHeader = (_a) => {
2043
2322
  } = _b, props = __objRest(_b, [
2044
2323
  "className"
2045
2324
  ]);
2046
- return /* @__PURE__ */ React24.createElement(
2325
+ return /* @__PURE__ */ jsx37(
2047
2326
  "div",
2048
2327
  __spreadValues({
2049
2328
  className: cn(
@@ -2060,7 +2339,7 @@ var SheetFooter = (_a) => {
2060
2339
  } = _b, props = __objRest(_b, [
2061
2340
  "className"
2062
2341
  ]);
2063
- return /* @__PURE__ */ React24.createElement(
2342
+ return /* @__PURE__ */ jsx37(
2064
2343
  "div",
2065
2344
  __spreadValues({
2066
2345
  className: cn(
@@ -2071,9 +2350,9 @@ var SheetFooter = (_a) => {
2071
2350
  );
2072
2351
  };
2073
2352
  SheetFooter.displayName = "SheetFooter";
2074
- var SheetTitle = React24.forwardRef((_a, ref) => {
2353
+ var SheetTitle = React18.forwardRef((_a, ref) => {
2075
2354
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2076
- return /* @__PURE__ */ React24.createElement(
2355
+ return /* @__PURE__ */ jsx37(
2077
2356
  SheetPrimitive.Title,
2078
2357
  __spreadValues({
2079
2358
  ref,
@@ -2082,9 +2361,9 @@ var SheetTitle = React24.forwardRef((_a, ref) => {
2082
2361
  );
2083
2362
  });
2084
2363
  SheetTitle.displayName = SheetPrimitive.Title.displayName;
2085
- var SheetDescription = React24.forwardRef((_a, ref) => {
2364
+ var SheetDescription = React18.forwardRef((_a, ref) => {
2086
2365
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2087
- return /* @__PURE__ */ React24.createElement(
2366
+ return /* @__PURE__ */ jsx37(
2088
2367
  SheetPrimitive.Description,
2089
2368
  __spreadValues({
2090
2369
  ref,
@@ -2095,23 +2374,24 @@ var SheetDescription = React24.forwardRef((_a, ref) => {
2095
2374
  SheetDescription.displayName = SheetPrimitive.Description.displayName;
2096
2375
 
2097
2376
  // src/components/layout/Sheet/Sheet.tsx
2377
+ import { jsx as jsx38 } from "react/jsx-runtime";
2098
2378
  function Sheet2(_a) {
2099
2379
  var _b = _a, { side, className, children } = _b, props = __objRest(_b, ["side", "className", "children"]);
2100
- return /* @__PURE__ */ React.createElement(Sheet, __spreadValues({}, props), /* @__PURE__ */ React.createElement(SheetContent, { side, className }, children));
2380
+ return /* @__PURE__ */ jsx38(Sheet, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsx38(SheetContent, { side, className, children }) }));
2101
2381
  }
2102
2382
 
2103
2383
  // src/components/ui/sidebar.tsx
2104
- import * as React28 from "react";
2384
+ import * as React22 from "react";
2105
2385
  import { Slot as Slot3 } from "@radix-ui/react-slot";
2106
2386
  import { cva as cva8 } from "class-variance-authority";
2107
2387
  import { PanelLeft } from "lucide-react";
2108
2388
 
2109
2389
  // src/hooks/use-mobile.tsx
2110
- import * as React25 from "react";
2390
+ import * as React19 from "react";
2111
2391
  var MOBILE_BREAKPOINT = 768;
2112
2392
  function useIsMobile() {
2113
- const [isMobile, setIsMobile] = React25.useState(void 0);
2114
- React25.useEffect(() => {
2393
+ const [isMobile, setIsMobile] = React19.useState(void 0);
2394
+ React19.useEffect(() => {
2115
2395
  const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
2116
2396
  const onChange = () => {
2117
2397
  setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
@@ -2124,12 +2404,13 @@ function useIsMobile() {
2124
2404
  }
2125
2405
 
2126
2406
  // src/components/ui/separator.tsx
2127
- import * as React26 from "react";
2407
+ import * as React20 from "react";
2128
2408
  import * as SeparatorPrimitive from "@radix-ui/react-separator";
2129
- var Separator3 = React26.forwardRef(
2409
+ import { jsx as jsx39 } from "react/jsx-runtime";
2410
+ var Separator3 = React20.forwardRef(
2130
2411
  (_a, ref) => {
2131
2412
  var _b = _a, { className, orientation = "horizontal", decorative = true } = _b, props = __objRest(_b, ["className", "orientation", "decorative"]);
2132
- return /* @__PURE__ */ React26.createElement(
2413
+ return /* @__PURE__ */ jsx39(
2133
2414
  SeparatorPrimitive.Root,
2134
2415
  __spreadValues({
2135
2416
  ref,
@@ -2147,13 +2428,14 @@ var Separator3 = React26.forwardRef(
2147
2428
  Separator3.displayName = SeparatorPrimitive.Root.displayName;
2148
2429
 
2149
2430
  // src/components/ui/skeleton.tsx
2431
+ import { jsx as jsx40 } from "react/jsx-runtime";
2150
2432
  function Skeleton(_a) {
2151
2433
  var _b = _a, {
2152
2434
  className
2153
2435
  } = _b, props = __objRest(_b, [
2154
2436
  "className"
2155
2437
  ]);
2156
- return /* @__PURE__ */ React.createElement(
2438
+ return /* @__PURE__ */ jsx40(
2157
2439
  "div",
2158
2440
  __spreadValues({
2159
2441
  className: cn("animate-pulse rounded-md bg-primary/10", className)
@@ -2162,14 +2444,15 @@ function Skeleton(_a) {
2162
2444
  }
2163
2445
 
2164
2446
  // src/components/ui/tooltip.tsx
2165
- import * as React27 from "react";
2447
+ import * as React21 from "react";
2166
2448
  import * as TooltipPrimitive from "@radix-ui/react-tooltip";
2449
+ import { jsx as jsx41 } from "react/jsx-runtime";
2167
2450
  var TooltipProvider = TooltipPrimitive.Provider;
2168
2451
  var Tooltip = TooltipPrimitive.Root;
2169
2452
  var TooltipTrigger = TooltipPrimitive.Trigger;
2170
- var TooltipContent = React27.forwardRef((_a, ref) => {
2453
+ var TooltipContent = React21.forwardRef((_a, ref) => {
2171
2454
  var _b = _a, { className, sideOffset = 4 } = _b, props = __objRest(_b, ["className", "sideOffset"]);
2172
- return /* @__PURE__ */ React27.createElement(TooltipPrimitive.Portal, null, /* @__PURE__ */ React27.createElement(
2455
+ return /* @__PURE__ */ jsx41(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx41(
2173
2456
  TooltipPrimitive.Content,
2174
2457
  __spreadValues({
2175
2458
  ref,
@@ -2179,26 +2462,27 @@ var TooltipContent = React27.forwardRef((_a, ref) => {
2179
2462
  className
2180
2463
  )
2181
2464
  }, props)
2182
- ));
2465
+ ) });
2183
2466
  });
2184
2467
  TooltipContent.displayName = TooltipPrimitive.Content.displayName;
2185
2468
 
2186
2469
  // src/components/ui/sidebar.tsx
2470
+ import { jsx as jsx42, jsxs as jsxs22 } from "react/jsx-runtime";
2187
2471
  var SIDEBAR_COOKIE_NAME = "sidebar:state";
2188
2472
  var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
2189
2473
  var SIDEBAR_WIDTH = "16rem";
2190
2474
  var SIDEBAR_WIDTH_MOBILE = "18rem";
2191
2475
  var SIDEBAR_WIDTH_ICON = "3rem";
2192
2476
  var SIDEBAR_KEYBOARD_SHORTCUT = "b";
2193
- var SidebarContext = React28.createContext(null);
2477
+ var SidebarContext = React22.createContext(null);
2194
2478
  function useSidebar() {
2195
- const context = React28.useContext(SidebarContext);
2479
+ const context = React22.useContext(SidebarContext);
2196
2480
  if (!context) {
2197
2481
  throw new Error("useSidebar must be used within a SidebarProvider.");
2198
2482
  }
2199
2483
  return context;
2200
2484
  }
2201
- var SidebarProvider = React28.forwardRef(
2485
+ var SidebarProvider = React22.forwardRef(
2202
2486
  (_a, ref) => {
2203
2487
  var _b = _a, {
2204
2488
  defaultOpen = true,
@@ -2216,10 +2500,10 @@ var SidebarProvider = React28.forwardRef(
2216
2500
  "children"
2217
2501
  ]);
2218
2502
  const isMobile = useIsMobile();
2219
- const [openMobile, setOpenMobile] = React28.useState(false);
2220
- const [_open, _setOpen] = React28.useState(defaultOpen);
2503
+ const [openMobile, setOpenMobile] = React22.useState(false);
2504
+ const [_open, _setOpen] = React22.useState(defaultOpen);
2221
2505
  const open = openProp != null ? openProp : _open;
2222
- const setOpen = React28.useCallback(
2506
+ const setOpen = React22.useCallback(
2223
2507
  (value) => {
2224
2508
  const openState = typeof value === "function" ? value(open) : value;
2225
2509
  if (setOpenProp) {
@@ -2231,10 +2515,10 @@ var SidebarProvider = React28.forwardRef(
2231
2515
  },
2232
2516
  [setOpenProp, open]
2233
2517
  );
2234
- const toggleSidebar = React28.useCallback(() => {
2518
+ const toggleSidebar = React22.useCallback(() => {
2235
2519
  return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
2236
2520
  }, [isMobile, setOpen, setOpenMobile]);
2237
- React28.useEffect(() => {
2521
+ React22.useEffect(() => {
2238
2522
  const handleKeyDown = (event) => {
2239
2523
  if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
2240
2524
  event.preventDefault();
@@ -2245,7 +2529,7 @@ var SidebarProvider = React28.forwardRef(
2245
2529
  return () => window.removeEventListener("keydown", handleKeyDown);
2246
2530
  }, [toggleSidebar]);
2247
2531
  const state = open ? "expanded" : "collapsed";
2248
- const contextValue = React28.useMemo(
2532
+ const contextValue = React22.useMemo(
2249
2533
  () => ({
2250
2534
  state,
2251
2535
  open,
@@ -2257,9 +2541,9 @@ var SidebarProvider = React28.forwardRef(
2257
2541
  }),
2258
2542
  [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
2259
2543
  );
2260
- return /* @__PURE__ */ React28.createElement(SidebarContext.Provider, { value: contextValue }, /* @__PURE__ */ React28.createElement(TooltipProvider, { delayDuration: 0 }, /* @__PURE__ */ React28.createElement(
2544
+ return /* @__PURE__ */ jsx42(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx42(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ jsx42(
2261
2545
  "div",
2262
- __spreadValues({
2546
+ __spreadProps(__spreadValues({
2263
2547
  style: __spreadValues({
2264
2548
  "--sidebar-width": SIDEBAR_WIDTH,
2265
2549
  "--sidebar-width-icon": SIDEBAR_WIDTH_ICON
@@ -2269,13 +2553,14 @@ var SidebarProvider = React28.forwardRef(
2269
2553
  className
2270
2554
  ),
2271
2555
  ref
2272
- }, props),
2273
- children
2274
- )));
2556
+ }, props), {
2557
+ children
2558
+ })
2559
+ ) }) });
2275
2560
  }
2276
2561
  );
2277
2562
  SidebarProvider.displayName = "SidebarProvider";
2278
- var Sidebar = React28.forwardRef(
2563
+ var Sidebar = React22.forwardRef(
2279
2564
  (_a, ref) => {
2280
2565
  var _b = _a, {
2281
2566
  side = "left",
@@ -2292,84 +2577,88 @@ var Sidebar = React28.forwardRef(
2292
2577
  ]);
2293
2578
  const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
2294
2579
  if (collapsible === "none") {
2295
- return /* @__PURE__ */ React28.createElement(
2580
+ return /* @__PURE__ */ jsx42(
2296
2581
  "div",
2297
- __spreadValues({
2582
+ __spreadProps(__spreadValues({
2298
2583
  className: cn(
2299
2584
  "flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",
2300
2585
  className
2301
2586
  ),
2302
2587
  ref
2303
- }, props),
2304
- children
2588
+ }, props), {
2589
+ children
2590
+ })
2305
2591
  );
2306
2592
  }
2307
2593
  if (isMobile) {
2308
- return /* @__PURE__ */ React28.createElement(Sheet, __spreadValues({ open: openMobile, onOpenChange: setOpenMobile }, props), /* @__PURE__ */ React28.createElement(
2594
+ return /* @__PURE__ */ jsx42(Sheet, __spreadProps(__spreadValues({ open: openMobile, onOpenChange: setOpenMobile }, props), { children: /* @__PURE__ */ jsx42(
2309
2595
  SheetContent,
2310
2596
  {
2311
2597
  "data-sidebar": "sidebar",
2312
2598
  "data-mobile": "true",
2313
- className: "phsa-w-[--sidebar-width] phsa-bg-sidebar phsa-p-0 phsa-text-sidebar-foreground [&>button]:hidden",
2599
+ className: "w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",
2314
2600
  style: {
2315
2601
  "--sidebar-width": SIDEBAR_WIDTH_MOBILE
2316
2602
  },
2317
- side
2318
- },
2319
- /* @__PURE__ */ React28.createElement("div", { className: "phsa-flex phsa-h-full phsa-w-full phsa-flex-col" }, children)
2320
- ));
2603
+ side,
2604
+ children: /* @__PURE__ */ jsx42("div", { className: "flex h-full w-full flex-col", children })
2605
+ }
2606
+ ) }));
2321
2607
  }
2322
- return /* @__PURE__ */ React28.createElement(
2608
+ return /* @__PURE__ */ jsxs22(
2323
2609
  "div",
2324
2610
  {
2325
2611
  ref,
2326
- className: "group peer phsa-hidden md:block phsa-text-sidebar-foreground",
2612
+ className: "group peer hidden md:block text-sidebar-foreground",
2327
2613
  "data-state": state,
2328
2614
  "data-collapsible": state === "collapsed" ? collapsible : "",
2329
2615
  "data-variant": variant,
2330
- "data-side": side
2331
- },
2332
- /* @__PURE__ */ React28.createElement(
2333
- "div",
2334
- {
2335
- className: cn(
2336
- "duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear",
2337
- "group-data-[collapsible=offcanvas]:w-0",
2338
- "group-data-[side=right]:rotate-180",
2339
- 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]"
2340
- )
2341
- }
2342
- ),
2343
- /* @__PURE__ */ React28.createElement(
2344
- "div",
2345
- __spreadValues({
2346
- className: cn(
2347
- "duration-200 fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",
2348
- 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)]",
2349
- // Adjust the padding for floating and inset variants.
2350
- 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",
2351
- className
2616
+ "data-side": side,
2617
+ children: [
2618
+ /* @__PURE__ */ jsx42(
2619
+ "div",
2620
+ {
2621
+ className: cn(
2622
+ "duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear",
2623
+ "group-data-[collapsible=offcanvas]:w-0",
2624
+ "group-data-[side=right]:rotate-180",
2625
+ 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]"
2626
+ )
2627
+ }
2628
+ ),
2629
+ /* @__PURE__ */ jsx42(
2630
+ "div",
2631
+ __spreadProps(__spreadValues({
2632
+ className: cn(
2633
+ "duration-200 fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",
2634
+ 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)]",
2635
+ // Adjust the padding for floating and inset variants.
2636
+ 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",
2637
+ className
2638
+ )
2639
+ }, props), {
2640
+ children: /* @__PURE__ */ jsx42(
2641
+ "div",
2642
+ {
2643
+ "data-sidebar": "sidebar",
2644
+ 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",
2645
+ children
2646
+ }
2647
+ )
2648
+ })
2352
2649
  )
2353
- }, props),
2354
- /* @__PURE__ */ React28.createElement(
2355
- "div",
2356
- {
2357
- "data-sidebar": "sidebar",
2358
- 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"
2359
- },
2360
- children
2361
- )
2362
- )
2650
+ ]
2651
+ }
2363
2652
  );
2364
2653
  }
2365
2654
  );
2366
2655
  Sidebar.displayName = "Sidebar";
2367
- var SidebarTrigger = React28.forwardRef((_a, ref) => {
2656
+ var SidebarTrigger = React22.forwardRef((_a, ref) => {
2368
2657
  var _b = _a, { className, onClick } = _b, props = __objRest(_b, ["className", "onClick"]);
2369
2658
  const { toggleSidebar } = useSidebar();
2370
- return /* @__PURE__ */ React28.createElement(
2659
+ return /* @__PURE__ */ jsxs22(
2371
2660
  Button,
2372
- __spreadValues({
2661
+ __spreadProps(__spreadValues({
2373
2662
  ref,
2374
2663
  "data-sidebar": "trigger",
2375
2664
  variant: "ghost",
@@ -2379,16 +2668,19 @@ var SidebarTrigger = React28.forwardRef((_a, ref) => {
2379
2668
  onClick == null ? void 0 : onClick(event);
2380
2669
  toggleSidebar();
2381
2670
  }
2382
- }, props),
2383
- /* @__PURE__ */ React28.createElement(PanelLeft, null),
2384
- /* @__PURE__ */ React28.createElement("span", { className: "phsa-sr-only" }, "Toggle Sidebar")
2671
+ }, props), {
2672
+ children: [
2673
+ /* @__PURE__ */ jsx42(PanelLeft, {}),
2674
+ /* @__PURE__ */ jsx42("span", { className: "sr-only", children: "Toggle Sidebar" })
2675
+ ]
2676
+ })
2385
2677
  );
2386
2678
  });
2387
2679
  SidebarTrigger.displayName = "SidebarTrigger";
2388
- var SidebarRail = React28.forwardRef((_a, ref) => {
2680
+ var SidebarRail = React22.forwardRef((_a, ref) => {
2389
2681
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2390
2682
  const { toggleSidebar } = useSidebar();
2391
- return /* @__PURE__ */ React28.createElement(
2683
+ return /* @__PURE__ */ jsx42(
2392
2684
  "button",
2393
2685
  __spreadValues({
2394
2686
  ref,
@@ -2410,9 +2702,9 @@ var SidebarRail = React28.forwardRef((_a, ref) => {
2410
2702
  );
2411
2703
  });
2412
2704
  SidebarRail.displayName = "SidebarRail";
2413
- var SidebarInset = React28.forwardRef((_a, ref) => {
2705
+ var SidebarInset = React22.forwardRef((_a, ref) => {
2414
2706
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2415
- return /* @__PURE__ */ React28.createElement(
2707
+ return /* @__PURE__ */ jsx42(
2416
2708
  "main",
2417
2709
  __spreadValues({
2418
2710
  ref,
@@ -2425,9 +2717,9 @@ var SidebarInset = React28.forwardRef((_a, ref) => {
2425
2717
  );
2426
2718
  });
2427
2719
  SidebarInset.displayName = "SidebarInset";
2428
- var SidebarInput = React28.forwardRef((_a, ref) => {
2720
+ var SidebarInput = React22.forwardRef((_a, ref) => {
2429
2721
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2430
- return /* @__PURE__ */ React28.createElement(
2722
+ return /* @__PURE__ */ jsx42(
2431
2723
  Input,
2432
2724
  __spreadValues({
2433
2725
  ref,
@@ -2440,9 +2732,9 @@ var SidebarInput = React28.forwardRef((_a, ref) => {
2440
2732
  );
2441
2733
  });
2442
2734
  SidebarInput.displayName = "SidebarInput";
2443
- var SidebarHeader = React28.forwardRef((_a, ref) => {
2735
+ var SidebarHeader = React22.forwardRef((_a, ref) => {
2444
2736
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2445
- return /* @__PURE__ */ React28.createElement(
2737
+ return /* @__PURE__ */ jsx42(
2446
2738
  "div",
2447
2739
  __spreadValues({
2448
2740
  ref,
@@ -2452,9 +2744,9 @@ var SidebarHeader = React28.forwardRef((_a, ref) => {
2452
2744
  );
2453
2745
  });
2454
2746
  SidebarHeader.displayName = "SidebarHeader";
2455
- var SidebarFooter = React28.forwardRef((_a, ref) => {
2747
+ var SidebarFooter = React22.forwardRef((_a, ref) => {
2456
2748
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2457
- return /* @__PURE__ */ React28.createElement(
2749
+ return /* @__PURE__ */ jsx42(
2458
2750
  "div",
2459
2751
  __spreadValues({
2460
2752
  ref,
@@ -2464,9 +2756,9 @@ var SidebarFooter = React28.forwardRef((_a, ref) => {
2464
2756
  );
2465
2757
  });
2466
2758
  SidebarFooter.displayName = "SidebarFooter";
2467
- var SidebarSeparator = React28.forwardRef((_a, ref) => {
2759
+ var SidebarSeparator = React22.forwardRef((_a, ref) => {
2468
2760
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2469
- return /* @__PURE__ */ React28.createElement(
2761
+ return /* @__PURE__ */ jsx42(
2470
2762
  Separator3,
2471
2763
  __spreadValues({
2472
2764
  ref,
@@ -2476,9 +2768,9 @@ var SidebarSeparator = React28.forwardRef((_a, ref) => {
2476
2768
  );
2477
2769
  });
2478
2770
  SidebarSeparator.displayName = "SidebarSeparator";
2479
- var SidebarContent = React28.forwardRef((_a, ref) => {
2771
+ var SidebarContent = React22.forwardRef((_a, ref) => {
2480
2772
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2481
- return /* @__PURE__ */ React28.createElement(
2773
+ return /* @__PURE__ */ jsx42(
2482
2774
  "div",
2483
2775
  __spreadValues({
2484
2776
  ref,
@@ -2491,9 +2783,9 @@ var SidebarContent = React28.forwardRef((_a, ref) => {
2491
2783
  );
2492
2784
  });
2493
2785
  SidebarContent.displayName = "SidebarContent";
2494
- var SidebarGroup = React28.forwardRef((_a, ref) => {
2786
+ var SidebarGroup = React22.forwardRef((_a, ref) => {
2495
2787
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2496
- return /* @__PURE__ */ React28.createElement(
2788
+ return /* @__PURE__ */ jsx42(
2497
2789
  "div",
2498
2790
  __spreadValues({
2499
2791
  ref,
@@ -2503,10 +2795,10 @@ var SidebarGroup = React28.forwardRef((_a, ref) => {
2503
2795
  );
2504
2796
  });
2505
2797
  SidebarGroup.displayName = "SidebarGroup";
2506
- var SidebarGroupLabel = React28.forwardRef((_a, ref) => {
2798
+ var SidebarGroupLabel = React22.forwardRef((_a, ref) => {
2507
2799
  var _b = _a, { className, asChild = false } = _b, props = __objRest(_b, ["className", "asChild"]);
2508
2800
  const Comp = asChild ? Slot3 : "div";
2509
- return /* @__PURE__ */ React28.createElement(
2801
+ return /* @__PURE__ */ jsx42(
2510
2802
  Comp,
2511
2803
  __spreadValues({
2512
2804
  ref,
@@ -2520,10 +2812,10 @@ var SidebarGroupLabel = React28.forwardRef((_a, ref) => {
2520
2812
  );
2521
2813
  });
2522
2814
  SidebarGroupLabel.displayName = "SidebarGroupLabel";
2523
- var SidebarGroupAction = React28.forwardRef((_a, ref) => {
2815
+ var SidebarGroupAction = React22.forwardRef((_a, ref) => {
2524
2816
  var _b = _a, { className, asChild = false } = _b, props = __objRest(_b, ["className", "asChild"]);
2525
2817
  const Comp = asChild ? Slot3 : "button";
2526
- return /* @__PURE__ */ React28.createElement(
2818
+ return /* @__PURE__ */ jsx42(
2527
2819
  Comp,
2528
2820
  __spreadValues({
2529
2821
  ref,
@@ -2539,9 +2831,9 @@ var SidebarGroupAction = React28.forwardRef((_a, ref) => {
2539
2831
  );
2540
2832
  });
2541
2833
  SidebarGroupAction.displayName = "SidebarGroupAction";
2542
- var SidebarGroupContent = React28.forwardRef((_a, ref) => {
2834
+ var SidebarGroupContent = React22.forwardRef((_a, ref) => {
2543
2835
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2544
- return /* @__PURE__ */ React28.createElement(
2836
+ return /* @__PURE__ */ jsx42(
2545
2837
  "div",
2546
2838
  __spreadValues({
2547
2839
  ref,
@@ -2551,9 +2843,9 @@ var SidebarGroupContent = React28.forwardRef((_a, ref) => {
2551
2843
  );
2552
2844
  });
2553
2845
  SidebarGroupContent.displayName = "SidebarGroupContent";
2554
- var SidebarMenu = React28.forwardRef((_a, ref) => {
2846
+ var SidebarMenu = React22.forwardRef((_a, ref) => {
2555
2847
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2556
- return /* @__PURE__ */ React28.createElement(
2848
+ return /* @__PURE__ */ jsx42(
2557
2849
  "ul",
2558
2850
  __spreadValues({
2559
2851
  ref,
@@ -2563,9 +2855,9 @@ var SidebarMenu = React28.forwardRef((_a, ref) => {
2563
2855
  );
2564
2856
  });
2565
2857
  SidebarMenu.displayName = "SidebarMenu";
2566
- var SidebarMenuItem = React28.forwardRef((_a, ref) => {
2858
+ var SidebarMenuItem = React22.forwardRef((_a, ref) => {
2567
2859
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2568
- return /* @__PURE__ */ React28.createElement(
2860
+ return /* @__PURE__ */ jsx42(
2569
2861
  "li",
2570
2862
  __spreadValues({
2571
2863
  ref,
@@ -2576,7 +2868,7 @@ var SidebarMenuItem = React28.forwardRef((_a, ref) => {
2576
2868
  });
2577
2869
  SidebarMenuItem.displayName = "SidebarMenuItem";
2578
2870
  var sidebarMenuButtonVariants = cva8(
2579
- "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",
2871
+ "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",
2580
2872
  {
2581
2873
  variants: {
2582
2874
  variant: {
@@ -2595,7 +2887,7 @@ var sidebarMenuButtonVariants = cva8(
2595
2887
  }
2596
2888
  }
2597
2889
  );
2598
- var SidebarMenuButton = React28.forwardRef(
2890
+ var SidebarMenuButton = React22.forwardRef(
2599
2891
  (_a, ref) => {
2600
2892
  var _b = _a, {
2601
2893
  asChild = false,
@@ -2614,7 +2906,7 @@ var SidebarMenuButton = React28.forwardRef(
2614
2906
  ]);
2615
2907
  const Comp = asChild ? Slot3 : "button";
2616
2908
  const { isMobile, state } = useSidebar();
2617
- const button = /* @__PURE__ */ React28.createElement(
2909
+ const button = /* @__PURE__ */ jsx42(
2618
2910
  Comp,
2619
2911
  __spreadValues({
2620
2912
  ref,
@@ -2632,21 +2924,24 @@ var SidebarMenuButton = React28.forwardRef(
2632
2924
  children: tooltip
2633
2925
  };
2634
2926
  }
2635
- return /* @__PURE__ */ React28.createElement(Tooltip, null, /* @__PURE__ */ React28.createElement(TooltipTrigger, { asChild: true }, button), /* @__PURE__ */ React28.createElement(
2636
- TooltipContent,
2637
- __spreadValues({
2638
- side: "right",
2639
- align: "center",
2640
- hidden: state !== "collapsed" || isMobile
2641
- }, tooltip)
2642
- ));
2927
+ return /* @__PURE__ */ jsxs22(Tooltip, { children: [
2928
+ /* @__PURE__ */ jsx42(TooltipTrigger, { asChild: true, children: button }),
2929
+ /* @__PURE__ */ jsx42(
2930
+ TooltipContent,
2931
+ __spreadValues({
2932
+ side: "right",
2933
+ align: "center",
2934
+ hidden: state !== "collapsed" || isMobile
2935
+ }, tooltip)
2936
+ )
2937
+ ] });
2643
2938
  }
2644
2939
  );
2645
2940
  SidebarMenuButton.displayName = "SidebarMenuButton";
2646
- var SidebarMenuAction = React28.forwardRef((_a, ref) => {
2941
+ var SidebarMenuAction = React22.forwardRef((_a, ref) => {
2647
2942
  var _b = _a, { className, asChild = false, showOnHover = false } = _b, props = __objRest(_b, ["className", "asChild", "showOnHover"]);
2648
2943
  const Comp = asChild ? Slot3 : "button";
2649
- return /* @__PURE__ */ React28.createElement(
2944
+ return /* @__PURE__ */ jsx42(
2650
2945
  Comp,
2651
2946
  __spreadValues({
2652
2947
  ref,
@@ -2666,9 +2961,9 @@ var SidebarMenuAction = React28.forwardRef((_a, ref) => {
2666
2961
  );
2667
2962
  });
2668
2963
  SidebarMenuAction.displayName = "SidebarMenuAction";
2669
- var SidebarMenuBadge = React28.forwardRef((_a, ref) => {
2964
+ var SidebarMenuBadge = React22.forwardRef((_a, ref) => {
2670
2965
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2671
- return /* @__PURE__ */ React28.createElement(
2966
+ return /* @__PURE__ */ jsx42(
2672
2967
  "div",
2673
2968
  __spreadValues({
2674
2969
  ref,
@@ -2686,41 +2981,44 @@ var SidebarMenuBadge = React28.forwardRef((_a, ref) => {
2686
2981
  );
2687
2982
  });
2688
2983
  SidebarMenuBadge.displayName = "SidebarMenuBadge";
2689
- var SidebarMenuSkeleton = React28.forwardRef((_a, ref) => {
2984
+ var SidebarMenuSkeleton = React22.forwardRef((_a, ref) => {
2690
2985
  var _b = _a, { className, showIcon = false } = _b, props = __objRest(_b, ["className", "showIcon"]);
2691
- const width = React28.useMemo(() => {
2986
+ const width = React22.useMemo(() => {
2692
2987
  return `${Math.floor(Math.random() * 40) + 50}%`;
2693
2988
  }, []);
2694
- return /* @__PURE__ */ React28.createElement(
2989
+ return /* @__PURE__ */ jsxs22(
2695
2990
  "div",
2696
- __spreadValues({
2991
+ __spreadProps(__spreadValues({
2697
2992
  ref,
2698
2993
  "data-sidebar": "menu-skeleton",
2699
2994
  className: cn("rounded-md h-8 flex gap-2 px-2 items-center", className)
2700
- }, props),
2701
- showIcon && /* @__PURE__ */ React28.createElement(
2702
- Skeleton,
2703
- {
2704
- className: "phsa-size-4 phsa-rounded-md",
2705
- "data-sidebar": "menu-skeleton-icon"
2706
- }
2707
- ),
2708
- /* @__PURE__ */ React28.createElement(
2709
- Skeleton,
2710
- {
2711
- className: "phsa-h-4 phsa-flex-1 phsa-max-w-[--skeleton-width]",
2712
- "data-sidebar": "menu-skeleton-text",
2713
- style: {
2714
- "--skeleton-width": width
2715
- }
2716
- }
2717
- )
2995
+ }, props), {
2996
+ children: [
2997
+ showIcon && /* @__PURE__ */ jsx42(
2998
+ Skeleton,
2999
+ {
3000
+ className: "size-4 rounded-md",
3001
+ "data-sidebar": "menu-skeleton-icon"
3002
+ }
3003
+ ),
3004
+ /* @__PURE__ */ jsx42(
3005
+ Skeleton,
3006
+ {
3007
+ className: "h-4 flex-1 max-w-[--skeleton-width]",
3008
+ "data-sidebar": "menu-skeleton-text",
3009
+ style: {
3010
+ "--skeleton-width": width
3011
+ }
3012
+ }
3013
+ )
3014
+ ]
3015
+ })
2718
3016
  );
2719
3017
  });
2720
3018
  SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
2721
- var SidebarMenuSub = React28.forwardRef((_a, ref) => {
3019
+ var SidebarMenuSub = React22.forwardRef((_a, ref) => {
2722
3020
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2723
- return /* @__PURE__ */ React28.createElement(
3021
+ return /* @__PURE__ */ jsx42(
2724
3022
  "ul",
2725
3023
  __spreadValues({
2726
3024
  ref,
@@ -2734,15 +3032,15 @@ var SidebarMenuSub = React28.forwardRef((_a, ref) => {
2734
3032
  );
2735
3033
  });
2736
3034
  SidebarMenuSub.displayName = "SidebarMenuSub";
2737
- var SidebarMenuSubItem = React28.forwardRef((_a, ref) => {
3035
+ var SidebarMenuSubItem = React22.forwardRef((_a, ref) => {
2738
3036
  var props = __objRest(_a, []);
2739
- return /* @__PURE__ */ React28.createElement("li", __spreadValues({ ref }, props));
3037
+ return /* @__PURE__ */ jsx42("li", __spreadValues({ ref }, props));
2740
3038
  });
2741
3039
  SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
2742
- var SidebarMenuSubButton = React28.forwardRef((_a, ref) => {
3040
+ var SidebarMenuSubButton = React22.forwardRef((_a, ref) => {
2743
3041
  var _b = _a, { asChild = false, size = "md", isActive, className } = _b, props = __objRest(_b, ["asChild", "size", "isActive", "className"]);
2744
3042
  const Comp = asChild ? Slot3 : "a";
2745
- return /* @__PURE__ */ React28.createElement(
3043
+ return /* @__PURE__ */ jsx42(
2746
3044
  Comp,
2747
3045
  __spreadValues({
2748
3046
  ref,
@@ -2763,55 +3061,66 @@ var SidebarMenuSubButton = React28.forwardRef((_a, ref) => {
2763
3061
  SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
2764
3062
 
2765
3063
  // src/components/layout/Sidebar/components/app-sidebar.tsx
2766
- import * as React31 from "react";
2767
3064
  import { GalleryVerticalEnd } from "lucide-react";
2768
3065
 
2769
3066
  // src/components/layout/Sidebar/components/team-switcher.tsx
2770
- import * as React29 from "react";
2771
3067
  import { ChevronsUpDown } from "lucide-react";
3068
+ import { jsx as jsx43, jsxs as jsxs23 } from "react/jsx-runtime";
2772
3069
  function TeamSwitcher({
2773
3070
  teams
2774
3071
  }) {
2775
3072
  const { isMobile } = useSidebar();
2776
- 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(
3073
+ return /* @__PURE__ */ jsx43(SidebarMenu, { children: /* @__PURE__ */ jsx43(SidebarMenuItem, { children: /* @__PURE__ */ jsx43(DropdownMenu, { children: /* @__PURE__ */ jsx43(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs23(
2777
3074
  SidebarMenuButton,
2778
3075
  {
2779
3076
  size: "lg",
2780
- className: "phsa-data-[state=open]:bg-sidebar-accent phsa-data-[state=open]:text-sidebar-accent-foreground"
2781
- },
2782
- /* @__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" }),
2783
- /* @__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)),
2784
- /* @__PURE__ */ React29.createElement(ChevronsUpDown, { className: "phsa-ml-auto" })
2785
- )))));
3077
+ className: "data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground",
3078
+ children: [
3079
+ /* @__PURE__ */ jsx43("div", { className: "flex aspect-square size-8 items-center justify-center rounded-lg bg-sidebar-primary text-sidebar-primary-foreground" }),
3080
+ /* @__PURE__ */ jsxs23("div", { className: "grid flex-1 text-left text-sm leading-tight", children: [
3081
+ /* @__PURE__ */ jsx43("span", { className: "truncate font-semibold", children: teams == null ? void 0 : teams.name }),
3082
+ /* @__PURE__ */ jsx43("span", { className: "truncate text-xs", children: teams == null ? void 0 : teams.plan })
3083
+ ] }),
3084
+ /* @__PURE__ */ jsx43(ChevronsUpDown, { className: "ml-auto" })
3085
+ ]
3086
+ }
3087
+ ) }) }) }) });
2786
3088
  }
2787
3089
 
2788
3090
  // src/components/layout/Sidebar/components/menus.tsx
2789
- import React30 from "react";
3091
+ import { Fragment as Fragment4, jsx as jsx44, jsxs as jsxs24 } from "react/jsx-runtime";
2790
3092
  function Menus({
2791
3093
  items
2792
3094
  }) {
2793
- return /* @__PURE__ */ React30.createElement(React30.Fragment, null, items.map((item, index) => {
3095
+ return /* @__PURE__ */ jsx44(Fragment4, { children: items.map((item, index) => {
2794
3096
  var _a;
2795
- return /* @__PURE__ */ React30.createElement(SidebarGroup, { key: index }, /* @__PURE__ */ React30.createElement(SidebarGroupLabel, null, item.title), /* @__PURE__ */ React30.createElement(SidebarMenu, null, (_a = item.items) == null ? void 0 : _a.map((subItem) => /* @__PURE__ */ React30.createElement(SidebarMenuItem, { key: subItem.title }, /* @__PURE__ */ React30.createElement(
2796
- SidebarMenuButton,
2797
- {
2798
- asChild: true,
2799
- className: cn(
2800
- (subItem == null ? void 0 : subItem.isActive) && "bg-sidebar-accent font-semibold"
2801
- )
2802
- },
2803
- /* @__PURE__ */ React30.createElement("a", { href: subItem.url }, (subItem == null ? void 0 : subItem.icon) && subItem.icon(), /* @__PURE__ */ React30.createElement("span", null, subItem.title))
2804
- )))));
2805
- }));
3097
+ return /* @__PURE__ */ jsxs24(SidebarGroup, { children: [
3098
+ /* @__PURE__ */ jsx44(SidebarGroupLabel, { children: item.title }),
3099
+ /* @__PURE__ */ jsx44(SidebarMenu, { children: (_a = item.items) == null ? void 0 : _a.map((subItem) => /* @__PURE__ */ jsx44(SidebarMenuItem, { children: /* @__PURE__ */ jsx44(
3100
+ SidebarMenuButton,
3101
+ {
3102
+ asChild: true,
3103
+ className: cn(
3104
+ (subItem == null ? void 0 : subItem.isActive) && "bg-sidebar-accent font-semibold"
3105
+ ),
3106
+ children: /* @__PURE__ */ jsxs24("a", { href: subItem.url, children: [
3107
+ (subItem == null ? void 0 : subItem.icon) && subItem.icon(),
3108
+ /* @__PURE__ */ jsx44("span", { children: subItem.title })
3109
+ ] })
3110
+ }
3111
+ ) }, subItem.title)) })
3112
+ ] }, index);
3113
+ }) });
2806
3114
  }
2807
3115
 
2808
3116
  // src/components/layout/Sidebar/components/app-sidebar.tsx
3117
+ import { jsx as jsx45, jsxs as jsxs25 } from "react/jsx-runtime";
2809
3118
  function AppSidebar(_a) {
2810
3119
  var _b = _a, {
2811
3120
  navbar = [],
2812
3121
  enterprise = {
2813
3122
  name: "Acme Inc",
2814
- logo: () => /* @__PURE__ */ React31.createElement(GalleryVerticalEnd, null),
3123
+ logo: () => /* @__PURE__ */ jsx45(GalleryVerticalEnd, {}),
2815
3124
  plan: "Enterprise"
2816
3125
  },
2817
3126
  footer
@@ -2820,21 +3129,27 @@ function AppSidebar(_a) {
2820
3129
  "enterprise",
2821
3130
  "footer"
2822
3131
  ]);
2823
- 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));
3132
+ return /* @__PURE__ */ jsxs25(Sidebar, __spreadProps(__spreadValues({ collapsible: "icon" }, props), { children: [
3133
+ /* @__PURE__ */ jsx45(SidebarHeader, { children: /* @__PURE__ */ jsx45(TeamSwitcher, { teams: enterprise }) }),
3134
+ /* @__PURE__ */ jsx45(SidebarContent, { children: /* @__PURE__ */ jsx45(Menus, { items: navbar }) }),
3135
+ footer && /* @__PURE__ */ jsx45(SidebarFooter, { children: footer() }),
3136
+ /* @__PURE__ */ jsx45(SidebarRail, {})
3137
+ ] }));
2824
3138
  }
2825
3139
 
2826
3140
  // src/components/ui/breadcrumb.tsx
2827
- import * as React32 from "react";
3141
+ import * as React23 from "react";
2828
3142
  import { Slot as Slot4 } from "@radix-ui/react-slot";
2829
3143
  import { ChevronRight as ChevronRight2, MoreHorizontal } from "lucide-react";
2830
- var Breadcrumb = React32.forwardRef((_a, ref) => {
3144
+ import { jsx as jsx46, jsxs as jsxs26 } from "react/jsx-runtime";
3145
+ var Breadcrumb = React23.forwardRef((_a, ref) => {
2831
3146
  var props = __objRest(_a, []);
2832
- return /* @__PURE__ */ React32.createElement("nav", __spreadValues({ ref, "aria-label": "breadcrumb" }, props));
3147
+ return /* @__PURE__ */ jsx46("nav", __spreadValues({ ref, "aria-label": "breadcrumb" }, props));
2833
3148
  });
2834
3149
  Breadcrumb.displayName = "Breadcrumb";
2835
- var BreadcrumbList = React32.forwardRef((_a, ref) => {
3150
+ var BreadcrumbList = React23.forwardRef((_a, ref) => {
2836
3151
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2837
- return /* @__PURE__ */ React32.createElement(
3152
+ return /* @__PURE__ */ jsx46(
2838
3153
  "ol",
2839
3154
  __spreadValues({
2840
3155
  ref,
@@ -2846,9 +3161,9 @@ var BreadcrumbList = React32.forwardRef((_a, ref) => {
2846
3161
  );
2847
3162
  });
2848
3163
  BreadcrumbList.displayName = "BreadcrumbList";
2849
- var BreadcrumbItem = React32.forwardRef((_a, ref) => {
3164
+ var BreadcrumbItem = React23.forwardRef((_a, ref) => {
2850
3165
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2851
- return /* @__PURE__ */ React32.createElement(
3166
+ return /* @__PURE__ */ jsx46(
2852
3167
  "li",
2853
3168
  __spreadValues({
2854
3169
  ref,
@@ -2857,10 +3172,10 @@ var BreadcrumbItem = React32.forwardRef((_a, ref) => {
2857
3172
  );
2858
3173
  });
2859
3174
  BreadcrumbItem.displayName = "BreadcrumbItem";
2860
- var BreadcrumbLink = React32.forwardRef((_a, ref) => {
3175
+ var BreadcrumbLink = React23.forwardRef((_a, ref) => {
2861
3176
  var _b = _a, { asChild, className } = _b, props = __objRest(_b, ["asChild", "className"]);
2862
3177
  const Comp = asChild ? Slot4 : "a";
2863
- return /* @__PURE__ */ React32.createElement(
3178
+ return /* @__PURE__ */ jsx46(
2864
3179
  Comp,
2865
3180
  __spreadValues({
2866
3181
  ref,
@@ -2869,9 +3184,9 @@ var BreadcrumbLink = React32.forwardRef((_a, ref) => {
2869
3184
  );
2870
3185
  });
2871
3186
  BreadcrumbLink.displayName = "BreadcrumbLink";
2872
- var BreadcrumbPage = React32.forwardRef((_a, ref) => {
3187
+ var BreadcrumbPage = React23.forwardRef((_a, ref) => {
2873
3188
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2874
- return /* @__PURE__ */ React32.createElement(
3189
+ return /* @__PURE__ */ jsx46(
2875
3190
  "span",
2876
3191
  __spreadValues({
2877
3192
  ref,
@@ -2891,14 +3206,15 @@ var BreadcrumbSeparator = (_a) => {
2891
3206
  "children",
2892
3207
  "className"
2893
3208
  ]);
2894
- return /* @__PURE__ */ React32.createElement(
3209
+ return /* @__PURE__ */ jsx46(
2895
3210
  "li",
2896
- __spreadValues({
3211
+ __spreadProps(__spreadValues({
2897
3212
  role: "presentation",
2898
3213
  "aria-hidden": "true",
2899
3214
  className: cn("[&>svg]:w-3.5 [&>svg]:h-3.5", className)
2900
- }, props),
2901
- children != null ? children : /* @__PURE__ */ React32.createElement(ChevronRight2, null)
3215
+ }, props), {
3216
+ children: children != null ? children : /* @__PURE__ */ jsx46(ChevronRight2, {})
3217
+ })
2902
3218
  );
2903
3219
  };
2904
3220
  BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
@@ -2908,21 +3224,25 @@ var BreadcrumbEllipsis = (_a) => {
2908
3224
  } = _b, props = __objRest(_b, [
2909
3225
  "className"
2910
3226
  ]);
2911
- return /* @__PURE__ */ React32.createElement(
3227
+ return /* @__PURE__ */ jsxs26(
2912
3228
  "span",
2913
- __spreadValues({
3229
+ __spreadProps(__spreadValues({
2914
3230
  role: "presentation",
2915
3231
  "aria-hidden": "true",
2916
3232
  className: cn("flex h-9 w-9 items-center justify-center", className)
2917
- }, props),
2918
- /* @__PURE__ */ React32.createElement(MoreHorizontal, { className: "phsa-h-4 phsa-w-4" }),
2919
- /* @__PURE__ */ React32.createElement("span", { className: "phsa-sr-only" }, "More")
3233
+ }, props), {
3234
+ children: [
3235
+ /* @__PURE__ */ jsx46(MoreHorizontal, { className: "h-4 w-4" }),
3236
+ /* @__PURE__ */ jsx46("span", { className: "sr-only", children: "More" })
3237
+ ]
3238
+ })
2920
3239
  );
2921
3240
  };
2922
3241
  BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
2923
3242
 
2924
3243
  // src/components/layout/Sidebar/provider/index.tsx
2925
3244
  import { createContext as createContext3, useContext as useContext3, useState as useState7 } from "react";
3245
+ import { jsx as jsx47 } from "react/jsx-runtime";
2926
3246
  var SidebarContext2 = createContext3({});
2927
3247
  function SidebarProvider2({
2928
3248
  children,
@@ -2932,7 +3252,7 @@ function SidebarProvider2({
2932
3252
  const [isCollapsed, setIsCollapsed] = useState7(defaultCollapsed);
2933
3253
  const [currentPath, setCurrentPath] = useState7(defaultPath);
2934
3254
  const toggleCollapse = () => setIsCollapsed((prev) => !prev);
2935
- return /* @__PURE__ */ React.createElement(
3255
+ return /* @__PURE__ */ jsx47(
2936
3256
  SidebarContext2.Provider,
2937
3257
  {
2938
3258
  value: {
@@ -2940,9 +3260,9 @@ function SidebarProvider2({
2940
3260
  isCollapsed,
2941
3261
  toggleCollapse,
2942
3262
  setCurrentPath
2943
- }
2944
- },
2945
- children
3263
+ },
3264
+ children
3265
+ }
2946
3266
  );
2947
3267
  }
2948
3268
  function useSidebar2() {
@@ -2954,6 +3274,7 @@ function useSidebar2() {
2954
3274
  }
2955
3275
 
2956
3276
  // src/components/layout/Sidebar/components/header-sidebar.tsx
3277
+ import { jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
2957
3278
  var routeMap = {
2958
3279
  dashboard: "Dashboard",
2959
3280
  users: "Usu\xE1rios",
@@ -2967,9 +3288,12 @@ var routeMap = {
2967
3288
  };
2968
3289
  var BreadcrumbElement = ({ isLast, path, label }) => {
2969
3290
  if (isLast) {
2970
- return /* @__PURE__ */ React.createElement(BreadcrumbItem, null, /* @__PURE__ */ React.createElement(BreadcrumbPage, { className: "capitalize" }, label));
3291
+ return /* @__PURE__ */ jsx48(BreadcrumbItem, { children: /* @__PURE__ */ jsx48(BreadcrumbPage, { className: "capitalize", children: label }) });
2971
3292
  }
2972
- return /* @__PURE__ */ React.createElement(BreadcrumbItem, null, /* @__PURE__ */ React.createElement(BreadcrumbLink, { href: path, className: "capitalize" }, label), /* @__PURE__ */ React.createElement(BreadcrumbSeparator, null));
3293
+ return /* @__PURE__ */ jsxs27(BreadcrumbItem, { children: [
3294
+ /* @__PURE__ */ jsx48(BreadcrumbLink, { href: path, className: "capitalize", children: label }),
3295
+ /* @__PURE__ */ jsx48(BreadcrumbSeparator, {})
3296
+ ] });
2973
3297
  };
2974
3298
  var HeaderSidebar = () => {
2975
3299
  const { currentPath } = useSidebar2();
@@ -2983,15 +3307,37 @@ var HeaderSidebar = () => {
2983
3307
  isLast
2984
3308
  };
2985
3309
  });
2986
- 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)))))));
3310
+ return /* @__PURE__ */ jsx48("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__ */ jsxs27("div", { className: "flex items-center gap-4", children: [
3311
+ /* @__PURE__ */ jsx48(SidebarTrigger, { className: "-ml-2 h-9 w-9" }),
3312
+ /* @__PURE__ */ jsx48(Separator3, { orientation: "vertical", className: "h-6" }),
3313
+ /* @__PURE__ */ jsx48(Breadcrumb, { children: /* @__PURE__ */ jsxs27(BreadcrumbList, { children: [
3314
+ /* @__PURE__ */ jsxs27(BreadcrumbItem, { children: [
3315
+ /* @__PURE__ */ jsx48(BreadcrumbLink, { href: "/", className: "capitalize", children: "Home" }),
3316
+ /* @__PURE__ */ jsx48(BreadcrumbSeparator, {})
3317
+ ] }),
3318
+ breadcrumbItems.map((item) => /* @__PURE__ */ jsx48(BreadcrumbElement, __spreadValues({}, item), item.path))
3319
+ ] }) })
3320
+ ] }) });
2987
3321
  };
2988
3322
 
2989
3323
  // src/components/layout/Sidebar/components/footer-sidebar.tsx
3324
+ import { jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
2990
3325
  var FooterSidebar = () => {
2991
- 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}")));
3326
+ return /* @__PURE__ */ jsxs28("footer", { className: "h-[65px]", children: [
3327
+ /* @__PURE__ */ jsx49(Separator3, {}),
3328
+ /* @__PURE__ */ jsxs28("div", { className: "flex items-center justify-between h-16 bg-background px-5", children: [
3329
+ /* @__PURE__ */ jsxs28("span", { className: "text-sm text-muted-foreground", children: [
3330
+ "\xA9 ",
3331
+ (/* @__PURE__ */ new Date()).getFullYear(),
3332
+ " Your Company"
3333
+ ] }),
3334
+ /* @__PURE__ */ jsx49("span", { className: "text-sm text-muted-foreground", children: "Feito na terra do sol \u{1F31E}" })
3335
+ ] })
3336
+ ] });
2992
3337
  };
2993
3338
 
2994
3339
  // src/components/layout/Sidebar/Sidebar.tsx
3340
+ import { jsx as jsx50, jsxs as jsxs29 } from "react/jsx-runtime";
2995
3341
  var Sidebar2 = (_a) => {
2996
3342
  var _b = _a, {
2997
3343
  children,
@@ -3006,22 +3352,29 @@ var Sidebar2 = (_a) => {
3006
3352
  "defaultPath",
3007
3353
  "defaultCollapsed"
3008
3354
  ]);
3009
- return /* @__PURE__ */ React.createElement(
3355
+ return /* @__PURE__ */ jsx50(
3010
3356
  SidebarProvider2,
3011
3357
  {
3012
3358
  defaultPath,
3013
- defaultCollapsed
3014
- },
3015
- /* @__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(
3016
- "main",
3017
- {
3018
- className: cn(
3019
- "flex flex-1 flex-col gap-4 p-4 pt-0",
3020
- contentClassName
3021
- )
3022
- },
3023
- children
3024
- ), showFooter && /* @__PURE__ */ React.createElement(FooterSidebar, null)))
3359
+ defaultCollapsed,
3360
+ children: /* @__PURE__ */ jsxs29(SidebarProvider, { children: [
3361
+ /* @__PURE__ */ jsx50(AppSidebar, __spreadValues({}, rest)),
3362
+ /* @__PURE__ */ jsxs29(SidebarInset, { className: "overflow-auto bg-slate-50", children: [
3363
+ /* @__PURE__ */ jsx50(HeaderSidebar, {}),
3364
+ /* @__PURE__ */ jsx50(
3365
+ "main",
3366
+ {
3367
+ className: cn(
3368
+ "flex flex-1 flex-col gap-4 p-4 pt-0",
3369
+ contentClassName
3370
+ ),
3371
+ children
3372
+ }
3373
+ ),
3374
+ showFooter && /* @__PURE__ */ jsx50(FooterSidebar, {})
3375
+ ] })
3376
+ ] })
3377
+ }
3025
3378
  );
3026
3379
  };
3027
3380
 
@@ -3035,6 +3388,7 @@ import {
3035
3388
  Sparkles
3036
3389
  } from "lucide-react";
3037
3390
  import { useCallback as useCallback7 } from "react";
3391
+ import { Fragment as Fragment5, jsx as jsx51, jsxs as jsxs30 } from "react/jsx-runtime";
3038
3392
  function NavUser({
3039
3393
  user,
3040
3394
  logoutAction = () => {
@@ -3042,55 +3396,97 @@ function NavUser({
3042
3396
  }) {
3043
3397
  const { isMobile } = useSidebar();
3044
3398
  const renderUserInformation = useCallback7(() => {
3045
- 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)));
3399
+ return /* @__PURE__ */ jsxs30(Fragment5, { children: [
3400
+ /* @__PURE__ */ jsxs30(Avatar, { className: "h-8 w-8 rounded-lg", children: [
3401
+ /* @__PURE__ */ jsx51(AvatarImage, { src: user == null ? void 0 : user.avatar, alt: user == null ? void 0 : user.name }),
3402
+ /* @__PURE__ */ jsx51(AvatarFallback, { className: "rounded-lg", children: "CN" })
3403
+ ] }),
3404
+ /* @__PURE__ */ jsxs30("div", { className: "grid flex-1 text-left text-sm leading-tight", children: [
3405
+ /* @__PURE__ */ jsx51("span", { className: "truncate font-semibold", children: user == null ? void 0 : user.name }),
3406
+ /* @__PURE__ */ jsx51("span", { className: "truncate text-xs", children: user == null ? void 0 : user.email })
3407
+ ] })
3408
+ ] });
3046
3409
  }, [user]);
3047
- 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(
3048
- SidebarMenuButton,
3049
- {
3050
- size: "lg",
3051
- className: "phsa-data-[state=open]:bg-sidebar-accent phsa-data-[state=open]:text-sidebar-accent-foreground"
3052
- },
3053
- renderUserInformation(),
3054
- /* @__PURE__ */ React.createElement(ChevronsUpDown2, { className: "phsa-ml-auto phsa-size-4" })
3055
- )), /* @__PURE__ */ React.createElement(
3056
- DropdownMenuContent,
3057
- {
3058
- className: "phsa-w-[--radix-dropdown-menu-trigger-width] phsa-min-w-56 phsa-rounded-lg",
3059
- side: isMobile ? "bottom" : "right",
3060
- align: "end",
3061
- sideOffset: 4
3062
- },
3063
- /* @__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())),
3064
- /* @__PURE__ */ React.createElement(DropdownMenuSeparator, null),
3065
- /* @__PURE__ */ React.createElement(DropdownMenuGroup, null, /* @__PURE__ */ React.createElement(DropdownMenuItem, null, /* @__PURE__ */ React.createElement(Sparkles, null), "Upgrade to Pro")),
3066
- /* @__PURE__ */ React.createElement(DropdownMenuSeparator, null),
3067
- /* @__PURE__ */ React.createElement(DropdownMenuGroup, null, /* @__PURE__ */ React.createElement(DropdownMenuItem, null, /* @__PURE__ */ React.createElement(BadgeCheck, null), "Account"), /* @__PURE__ */ React.createElement(DropdownMenuItem, null, /* @__PURE__ */ React.createElement(CreditCard, null), "Billing"), /* @__PURE__ */ React.createElement(DropdownMenuItem, null, /* @__PURE__ */ React.createElement(Bell, null), "Notifications")),
3068
- /* @__PURE__ */ React.createElement(DropdownMenuSeparator, null),
3069
- /* @__PURE__ */ React.createElement(DropdownMenuItem, { onClick: logoutAction }, /* @__PURE__ */ React.createElement(LogOut, null), "Log out")
3070
- ))));
3410
+ return /* @__PURE__ */ jsx51(SidebarMenu, { children: /* @__PURE__ */ jsx51(SidebarMenuItem, { children: /* @__PURE__ */ jsxs30(DropdownMenu, { children: [
3411
+ /* @__PURE__ */ jsx51(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs30(
3412
+ SidebarMenuButton,
3413
+ {
3414
+ size: "lg",
3415
+ className: "data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground",
3416
+ children: [
3417
+ renderUserInformation(),
3418
+ /* @__PURE__ */ jsx51(ChevronsUpDown2, { className: "ml-auto size-4" })
3419
+ ]
3420
+ }
3421
+ ) }),
3422
+ /* @__PURE__ */ jsxs30(
3423
+ DropdownMenuContent,
3424
+ {
3425
+ className: "w-[--radix-dropdown-menu-trigger-width] min-w-56 rounded-lg",
3426
+ side: isMobile ? "bottom" : "right",
3427
+ align: "end",
3428
+ sideOffset: 4,
3429
+ children: [
3430
+ /* @__PURE__ */ jsx51(DropdownMenuLabel, { className: "p-0 font-normal", children: /* @__PURE__ */ jsx51("div", { className: "flex items-center gap-2 px-1 py-1.5 text-left text-sm", children: renderUserInformation() }) }),
3431
+ /* @__PURE__ */ jsx51(DropdownMenuSeparator, {}),
3432
+ /* @__PURE__ */ jsx51(DropdownMenuGroup, { children: /* @__PURE__ */ jsxs30(DropdownMenuItem, { children: [
3433
+ /* @__PURE__ */ jsx51(Sparkles, {}),
3434
+ "Upgrade to Pro"
3435
+ ] }) }),
3436
+ /* @__PURE__ */ jsx51(DropdownMenuSeparator, {}),
3437
+ /* @__PURE__ */ jsxs30(DropdownMenuGroup, { children: [
3438
+ /* @__PURE__ */ jsxs30(DropdownMenuItem, { children: [
3439
+ /* @__PURE__ */ jsx51(BadgeCheck, {}),
3440
+ "Account"
3441
+ ] }),
3442
+ /* @__PURE__ */ jsxs30(DropdownMenuItem, { children: [
3443
+ /* @__PURE__ */ jsx51(CreditCard, {}),
3444
+ "Billing"
3445
+ ] }),
3446
+ /* @__PURE__ */ jsxs30(DropdownMenuItem, { children: [
3447
+ /* @__PURE__ */ jsx51(Bell, {}),
3448
+ "Notifications"
3449
+ ] })
3450
+ ] }),
3451
+ /* @__PURE__ */ jsx51(DropdownMenuSeparator, {}),
3452
+ /* @__PURE__ */ jsxs30(DropdownMenuItem, { onClick: logoutAction, children: [
3453
+ /* @__PURE__ */ jsx51(LogOut, {}),
3454
+ "Log out"
3455
+ ] })
3456
+ ]
3457
+ }
3458
+ )
3459
+ ] }) }) });
3071
3460
  }
3072
3461
 
3073
3462
  // src/components/layout/PageLayout/index.tsx
3074
- import React33 from "react";
3463
+ import { jsx as jsx52, jsxs as jsxs31 } from "react/jsx-runtime";
3075
3464
  var PageLayout = ({
3076
3465
  subtitle,
3077
3466
  title,
3078
3467
  children,
3079
3468
  header
3080
3469
  }) => {
3081
- return /* @__PURE__ */ React33.createElement("div", { className: "phsa-m-5 phsa-p-4 phsa-bg-white" }, /* @__PURE__ */ React33.createElement("div", { className: "phsa-flex phsa-justify-between" }, /* @__PURE__ */ React33.createElement("div", null, title && /* @__PURE__ */ React33.createElement(Text, { variant: "title" }, title), subtitle && /* @__PURE__ */ React33.createElement(Text, { variant: "muted" }, subtitle)), header), /* @__PURE__ */ React33.createElement("div", { className: "phsa-mt-5" }, children));
3470
+ return /* @__PURE__ */ jsxs31("div", { className: "m-5 p-4 bg-white", children: [
3471
+ /* @__PURE__ */ jsxs31("div", { className: "flex justify-between", children: [
3472
+ /* @__PURE__ */ jsxs31("div", { children: [
3473
+ title && /* @__PURE__ */ jsx52(Text, { variant: "title", children: title }),
3474
+ subtitle && /* @__PURE__ */ jsx52(Text, { variant: "muted", children: subtitle })
3475
+ ] }),
3476
+ header
3477
+ ] }),
3478
+ /* @__PURE__ */ jsx52("div", { className: "mt-5", children })
3479
+ ] });
3082
3480
  };
3083
3481
 
3084
- // src/components/layout/Tabs/Tabs.tsx
3085
- import * as React35 from "react";
3086
-
3087
3482
  // src/components/ui/tabs.tsx
3088
- import * as React34 from "react";
3483
+ import * as React24 from "react";
3089
3484
  import * as TabsPrimitive from "@radix-ui/react-tabs";
3485
+ import { jsx as jsx53 } from "react/jsx-runtime";
3090
3486
  var Tabs = TabsPrimitive.Root;
3091
- var TabsList = React34.forwardRef((_a, ref) => {
3487
+ var TabsList = React24.forwardRef((_a, ref) => {
3092
3488
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3093
- return /* @__PURE__ */ React34.createElement(
3489
+ return /* @__PURE__ */ jsx53(
3094
3490
  TabsPrimitive.List,
3095
3491
  __spreadValues({
3096
3492
  ref,
@@ -3102,9 +3498,9 @@ var TabsList = React34.forwardRef((_a, ref) => {
3102
3498
  );
3103
3499
  });
3104
3500
  TabsList.displayName = TabsPrimitive.List.displayName;
3105
- var TabsTrigger = React34.forwardRef((_a, ref) => {
3501
+ var TabsTrigger = React24.forwardRef((_a, ref) => {
3106
3502
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3107
- return /* @__PURE__ */ React34.createElement(
3503
+ return /* @__PURE__ */ jsx53(
3108
3504
  TabsPrimitive.Trigger,
3109
3505
  __spreadValues({
3110
3506
  ref,
@@ -3116,9 +3512,9 @@ var TabsTrigger = React34.forwardRef((_a, ref) => {
3116
3512
  );
3117
3513
  });
3118
3514
  TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
3119
- var TabsContent = React34.forwardRef((_a, ref) => {
3515
+ var TabsContent = React24.forwardRef((_a, ref) => {
3120
3516
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3121
- return /* @__PURE__ */ React34.createElement(
3517
+ return /* @__PURE__ */ jsx53(
3122
3518
  TabsPrimitive.Content,
3123
3519
  __spreadValues({
3124
3520
  ref,
@@ -3132,13 +3528,14 @@ var TabsContent = React34.forwardRef((_a, ref) => {
3132
3528
  TabsContent.displayName = TabsPrimitive.Content.displayName;
3133
3529
 
3134
3530
  // src/components/layout/Tabs/Tabs.tsx
3531
+ import { jsx as jsx54, jsxs as jsxs32 } from "react/jsx-runtime";
3135
3532
  var Tabs2 = ({
3136
3533
  tabs,
3137
3534
  activeTabIndex = 0,
3138
3535
  onTabChange,
3139
3536
  className
3140
3537
  }) => {
3141
- return /* @__PURE__ */ React35.createElement(
3538
+ return /* @__PURE__ */ jsxs32(
3142
3539
  Tabs,
3143
3540
  {
3144
3541
  value: tabs[activeTabIndex].label,
@@ -3146,50 +3543,58 @@ var Tabs2 = ({
3146
3543
  const index = tabs.findIndex((tab) => tab.label === value);
3147
3544
  if (onTabChange) onTabChange(index);
3148
3545
  },
3149
- className: cn("w-full", className)
3150
- },
3151
- /* @__PURE__ */ React35.createElement(TabsList, null, tabs.map((tab, index) => /* @__PURE__ */ React35.createElement(TabsTrigger, { key: index, value: tab.label }, tab.label))),
3152
- tabs.map((tab, index) => /* @__PURE__ */ React35.createElement(TabsContent, { key: index, value: tab.label }, tab.content))
3546
+ className: cn("w-full", className),
3547
+ children: [
3548
+ /* @__PURE__ */ jsx54(TabsList, { children: tabs.map((tab, index) => /* @__PURE__ */ jsx54(TabsTrigger, { value: tab.label, children: tab.label }, index)) }),
3549
+ tabs.map((tab, index) => /* @__PURE__ */ jsx54(TabsContent, { value: tab.label, children: tab.content }, index))
3550
+ ]
3551
+ }
3153
3552
  );
3154
3553
  };
3155
3554
 
3156
3555
  // src/components/actions/Steps/Steps.tsx
3556
+ import { jsx as jsx55, jsxs as jsxs33 } from "react/jsx-runtime";
3157
3557
  var Steps = ({ data, onClick = () => {
3158
3558
  }, value }) => {
3159
3559
  const renderSteps = useCallback8(() => {
3160
3560
  return data.map(({ label, id }, index) => {
3161
3561
  const isLast = index === data.length - 1;
3162
3562
  const isActive = typeof value === "number" && id <= value;
3163
- return /* @__PURE__ */ React.createElement("div", { key: index, className: cn(!isLast && "w-full flex items-center") }, /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(
3164
- Button2,
3165
- {
3166
- onClick: () => onClick && onClick(id),
3167
- variant: isActive ? "default" : "outline",
3168
- size: "icon",
3169
- className: "phsa-rounded-full"
3170
- },
3171
- isActive ? /* @__PURE__ */ React.createElement(Icon2, { name: "MdCheck" }) : index + 1
3172
- )), label && /* @__PURE__ */ React.createElement("p", { className: "absolute" }, label), !isLast && /* @__PURE__ */ React.createElement(
3173
- Separator3,
3174
- {
3175
- orientation: "horizontal",
3176
- className: cn(isActive && "bg-primary h-[2px]")
3177
- }
3178
- ));
3563
+ return /* @__PURE__ */ jsxs33("div", { className: cn(!isLast && "w-full flex items-center"), children: [
3564
+ /* @__PURE__ */ jsx55("div", { children: /* @__PURE__ */ jsx55(
3565
+ Button2,
3566
+ {
3567
+ onClick: () => onClick && onClick(id),
3568
+ variant: isActive ? "default" : "outline",
3569
+ size: "icon",
3570
+ className: "rounded-full",
3571
+ children: isActive ? /* @__PURE__ */ jsx55(Icon2, { name: "MdCheck" }) : index + 1
3572
+ }
3573
+ ) }),
3574
+ label && /* @__PURE__ */ jsx55("p", { className: "absolute", children: label }),
3575
+ !isLast && /* @__PURE__ */ jsx55(
3576
+ Separator3,
3577
+ {
3578
+ orientation: "horizontal",
3579
+ className: cn(isActive && "bg-primary h-[2px]")
3580
+ }
3581
+ )
3582
+ ] }, index);
3179
3583
  });
3180
3584
  }, [data, onClick, value]);
3181
- return /* @__PURE__ */ React.createElement("div", { className: "phsa-flex phsa-w-full" }, renderSteps());
3585
+ return /* @__PURE__ */ jsx55("div", { className: "flex w-full", children: renderSteps() });
3182
3586
  };
3183
3587
 
3184
3588
  // src/components/ui/alert-dialog.tsx
3185
- import * as React36 from "react";
3589
+ import * as React25 from "react";
3186
3590
  import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
3591
+ import { jsx as jsx56, jsxs as jsxs34 } from "react/jsx-runtime";
3187
3592
  var AlertDialog = AlertDialogPrimitive.Root;
3188
3593
  var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
3189
3594
  var AlertDialogPortal = AlertDialogPrimitive.Portal;
3190
- var AlertDialogOverlay = React36.forwardRef((_a, ref) => {
3595
+ var AlertDialogOverlay = React25.forwardRef((_a, ref) => {
3191
3596
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3192
- return /* @__PURE__ */ React36.createElement(
3597
+ return /* @__PURE__ */ jsx56(
3193
3598
  AlertDialogPrimitive.Overlay,
3194
3599
  __spreadProps(__spreadValues({
3195
3600
  className: cn(
@@ -3202,18 +3607,21 @@ var AlertDialogOverlay = React36.forwardRef((_a, ref) => {
3202
3607
  );
3203
3608
  });
3204
3609
  AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
3205
- var AlertDialogContent = React36.forwardRef((_a, ref) => {
3610
+ var AlertDialogContent = React25.forwardRef((_a, ref) => {
3206
3611
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3207
- return /* @__PURE__ */ React36.createElement(AlertDialogPortal, null, /* @__PURE__ */ React36.createElement(AlertDialogOverlay, null), /* @__PURE__ */ React36.createElement(
3208
- AlertDialogPrimitive.Content,
3209
- __spreadValues({
3210
- ref,
3211
- className: cn(
3212
- "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",
3213
- className
3214
- )
3215
- }, props)
3216
- ));
3612
+ return /* @__PURE__ */ jsxs34(AlertDialogPortal, { children: [
3613
+ /* @__PURE__ */ jsx56(AlertDialogOverlay, {}),
3614
+ /* @__PURE__ */ jsx56(
3615
+ AlertDialogPrimitive.Content,
3616
+ __spreadValues({
3617
+ ref,
3618
+ className: cn(
3619
+ "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",
3620
+ className
3621
+ )
3622
+ }, props)
3623
+ )
3624
+ ] });
3217
3625
  });
3218
3626
  AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
3219
3627
  var AlertDialogHeader = (_a) => {
@@ -3222,7 +3630,7 @@ var AlertDialogHeader = (_a) => {
3222
3630
  } = _b, props = __objRest(_b, [
3223
3631
  "className"
3224
3632
  ]);
3225
- return /* @__PURE__ */ React36.createElement(
3633
+ return /* @__PURE__ */ jsx56(
3226
3634
  "div",
3227
3635
  __spreadValues({
3228
3636
  className: cn(
@@ -3239,7 +3647,7 @@ var AlertDialogFooter = (_a) => {
3239
3647
  } = _b, props = __objRest(_b, [
3240
3648
  "className"
3241
3649
  ]);
3242
- return /* @__PURE__ */ React36.createElement(
3650
+ return /* @__PURE__ */ jsx56(
3243
3651
  "div",
3244
3652
  __spreadValues({
3245
3653
  className: cn(
@@ -3250,9 +3658,9 @@ var AlertDialogFooter = (_a) => {
3250
3658
  );
3251
3659
  };
3252
3660
  AlertDialogFooter.displayName = "AlertDialogFooter";
3253
- var AlertDialogTitle = React36.forwardRef((_a, ref) => {
3661
+ var AlertDialogTitle = React25.forwardRef((_a, ref) => {
3254
3662
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3255
- return /* @__PURE__ */ React36.createElement(
3663
+ return /* @__PURE__ */ jsx56(
3256
3664
  AlertDialogPrimitive.Title,
3257
3665
  __spreadValues({
3258
3666
  ref,
@@ -3261,9 +3669,9 @@ var AlertDialogTitle = React36.forwardRef((_a, ref) => {
3261
3669
  );
3262
3670
  });
3263
3671
  AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
3264
- var AlertDialogDescription = React36.forwardRef((_a, ref) => {
3672
+ var AlertDialogDescription = React25.forwardRef((_a, ref) => {
3265
3673
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3266
- return /* @__PURE__ */ React36.createElement(
3674
+ return /* @__PURE__ */ jsx56(
3267
3675
  AlertDialogPrimitive.Description,
3268
3676
  __spreadValues({
3269
3677
  ref,
@@ -3272,9 +3680,9 @@ var AlertDialogDescription = React36.forwardRef((_a, ref) => {
3272
3680
  );
3273
3681
  });
3274
3682
  AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
3275
- var AlertDialogAction = React36.forwardRef((_a, ref) => {
3683
+ var AlertDialogAction = React25.forwardRef((_a, ref) => {
3276
3684
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3277
- return /* @__PURE__ */ React36.createElement(
3685
+ return /* @__PURE__ */ jsx56(
3278
3686
  AlertDialogPrimitive.Action,
3279
3687
  __spreadValues({
3280
3688
  ref,
@@ -3283,9 +3691,9 @@ var AlertDialogAction = React36.forwardRef((_a, ref) => {
3283
3691
  );
3284
3692
  });
3285
3693
  AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
3286
- var AlertDialogCancel = React36.forwardRef((_a, ref) => {
3694
+ var AlertDialogCancel = React25.forwardRef((_a, ref) => {
3287
3695
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3288
- return /* @__PURE__ */ React36.createElement(
3696
+ return /* @__PURE__ */ jsx56(
3289
3697
  AlertDialogPrimitive.Cancel,
3290
3698
  __spreadValues({
3291
3699
  ref,
@@ -3300,6 +3708,7 @@ var AlertDialogCancel = React36.forwardRef((_a, ref) => {
3300
3708
  AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
3301
3709
 
3302
3710
  // src/components/actions/AlertDialog/AlertDialog.tsx
3711
+ import { jsx as jsx57, jsxs as jsxs35 } from "react/jsx-runtime";
3303
3712
  var AlertDialog2 = ({
3304
3713
  title,
3305
3714
  description,
@@ -3307,13 +3716,26 @@ var AlertDialog2 = ({
3307
3716
  onConfirm,
3308
3717
  onCancel
3309
3718
  }) => {
3310
- 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"))));
3719
+ return /* @__PURE__ */ jsxs35(AlertDialog, { children: [
3720
+ /* @__PURE__ */ jsx57(AlertDialogTrigger, { asChild: true, children }),
3721
+ /* @__PURE__ */ jsxs35(AlertDialogContent, { children: [
3722
+ /* @__PURE__ */ jsxs35(AlertDialogHeader, { children: [
3723
+ /* @__PURE__ */ jsx57(AlertDialogTitle, { children: title }),
3724
+ description && /* @__PURE__ */ jsx57(AlertDialogDescription, { children: description })
3725
+ ] }),
3726
+ /* @__PURE__ */ jsxs35(AlertDialogFooter, { children: [
3727
+ /* @__PURE__ */ jsx57(AlertDialogCancel, { onClick: onCancel, children: "Cancel" }),
3728
+ /* @__PURE__ */ jsx57(AlertDialogAction, { onClick: onConfirm, children: "Continue" })
3729
+ ] })
3730
+ ] })
3731
+ ] });
3311
3732
  };
3312
3733
 
3313
3734
  // src/components/dataInput/Input/components/MultipleInput/MultipleInputBase.tsx
3314
3735
  import { useCallback as useCallback9, useMemo as useMemo9, useState as useState8 } from "react";
3315
3736
  import { useFormContext as useFormContext5 } from "react-hook-form";
3316
3737
  import _ from "lodash";
3738
+ import { jsx as jsx58, jsxs as jsxs36 } from "react/jsx-runtime";
3317
3739
  var MultipleInputBase = ({
3318
3740
  children,
3319
3741
  data = [],
@@ -3362,53 +3784,58 @@ var MultipleInputBase = ({
3362
3784
  );
3363
3785
  const renderOptions = useCallback9(() => {
3364
3786
  return inputData == null ? void 0 : inputData.map((item, index) => {
3365
- 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(
3366
- Button2,
3367
- {
3368
- onClick: () => removeItem(index),
3369
- variant: "ghost",
3370
- size: "icon",
3371
- type: "button"
3372
- },
3373
- /* @__PURE__ */ React.createElement(Icon2, { name: "MdDelete", className: "phsa-fill-destructive" })
3374
- ));
3787
+ return /* @__PURE__ */ jsxs36("div", { className: "flex justify-between mt-2", children: [
3788
+ /* @__PURE__ */ jsx58("div", { children: item }),
3789
+ /* @__PURE__ */ jsx58(
3790
+ Button2,
3791
+ {
3792
+ onClick: () => removeItem(index),
3793
+ variant: "ghost",
3794
+ size: "icon",
3795
+ type: "button",
3796
+ children: /* @__PURE__ */ jsx58(Icon2, { name: "MdDelete", className: "fill-destructive" })
3797
+ }
3798
+ )
3799
+ ] }, index);
3375
3800
  });
3376
3801
  }, [inputData, removeItem]);
3377
- return /* @__PURE__ */ React.createElement("div", null, children({
3378
- onChange: ({ target: { value } }) => {
3379
- setInputValue(value);
3380
- },
3381
- addItem: updateData,
3382
- value: inputValue,
3383
- error: errorMessage
3384
- }), renderOptions());
3802
+ return /* @__PURE__ */ jsxs36("div", { children: [
3803
+ children({
3804
+ onChange: ({ target: { value } }) => {
3805
+ setInputValue(value);
3806
+ },
3807
+ addItem: updateData,
3808
+ value: inputValue,
3809
+ error: errorMessage
3810
+ }),
3811
+ renderOptions()
3812
+ ] });
3385
3813
  };
3386
3814
 
3387
3815
  // src/components/dataInput/Input/components/MultipleInput/MultipleMaskInput.tsx
3816
+ import { jsx as jsx59 } from "react/jsx-runtime";
3388
3817
  var MultipleMaskInput = (_a) => {
3389
3818
  var _b = _a, {
3390
3819
  data = []
3391
3820
  } = _b, props = __objRest(_b, [
3392
3821
  "data"
3393
3822
  ]);
3394
- return /* @__PURE__ */ React.createElement(MultipleInputBase, __spreadValues({ data }, props), ({ onChange, addItem, value }) => {
3395
- return /* @__PURE__ */ React.createElement(
3823
+ return /* @__PURE__ */ jsx59(MultipleInputBase, __spreadProps(__spreadValues({ data }, props), { children: ({ onChange, addItem, value }) => {
3824
+ return /* @__PURE__ */ jsx59(
3396
3825
  MaskInput,
3397
3826
  __spreadProps(__spreadValues({}, props), {
3398
3827
  value,
3399
3828
  onChange,
3400
3829
  withoutForm: true,
3401
- component: /* @__PURE__ */ React.createElement(Button2, { type: "button", onClick: () => addItem() }, /* @__PURE__ */ React.createElement(Icon2, { name: "MdAdd" }))
3830
+ component: /* @__PURE__ */ jsx59(Button2, { type: "button", onClick: () => addItem(), children: /* @__PURE__ */ jsx59(Icon2, { name: "MdAdd" }) })
3402
3831
  })
3403
3832
  );
3404
- });
3833
+ } }));
3405
3834
  };
3406
3835
 
3407
- // src/components/dataInput/Select/Select.tsx
3408
- import React37 from "react";
3409
-
3410
3836
  // src/components/dataInput/Select/SelectBase.tsx
3411
3837
  import { useCallback as useCallback10 } from "react";
3838
+ import { jsx as jsx60, jsxs as jsxs37 } from "react/jsx-runtime";
3412
3839
  var SelectBase = (_a) => {
3413
3840
  var _b = _a, {
3414
3841
  options,
@@ -3432,20 +3859,23 @@ var SelectBase = (_a) => {
3432
3859
  },
3433
3860
  [onChange, onChangeCallback]
3434
3861
  );
3435
- return /* @__PURE__ */ React.createElement(
3862
+ return /* @__PURE__ */ jsxs37(
3436
3863
  Select,
3437
3864
  __spreadProps(__spreadValues({}, rest), {
3438
3865
  onValueChange: onSelect,
3439
3866
  defaultValue: value,
3440
- value
3441
- }),
3442
- /* @__PURE__ */ React.createElement(SelectTrigger, null, /* @__PURE__ */ React.createElement(SelectValue, { placeholder })),
3443
- /* @__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)))
3867
+ value,
3868
+ children: [
3869
+ /* @__PURE__ */ jsx60(SelectTrigger, { children: /* @__PURE__ */ jsx60(SelectValue, { placeholder }) }),
3870
+ /* @__PURE__ */ jsx60(SelectContent, { children: options == null ? void 0 : options.map((option, index) => /* @__PURE__ */ jsx60(SelectItem, { value: String(option.value), children: option.label }, index)) })
3871
+ ]
3872
+ })
3444
3873
  );
3445
3874
  };
3446
3875
 
3447
3876
  // src/components/dataInput/Select/Select.tsx
3448
3877
  import { useFormContext as useFormContext6 } from "react-hook-form";
3878
+ import { jsx as jsx61, jsxs as jsxs38 } from "react/jsx-runtime";
3449
3879
  var Select2 = (_a) => {
3450
3880
  var _b = _a, {
3451
3881
  name,
@@ -3469,36 +3899,45 @@ var Select2 = (_a) => {
3469
3899
  const form = useFormContext6();
3470
3900
  const hasForm = !!form && !!name;
3471
3901
  if (!hasForm || withoutForm) {
3472
- return /* @__PURE__ */ React37.createElement("div", { className: cn("space-y-2", className) }, label && /* @__PURE__ */ React37.createElement(Label3, null, label), /* @__PURE__ */ React37.createElement(SelectBase, __spreadValues({ options, placeholder }, props)), description && /* @__PURE__ */ React37.createElement("p", { className: "phsa-text-sm phsa-text-muted-foreground" }, description), error && /* @__PURE__ */ React37.createElement(ErrorMessage, null, error));
3902
+ return /* @__PURE__ */ jsxs38("div", { className: cn("space-y-2", className), children: [
3903
+ label && /* @__PURE__ */ jsx61(Label3, { children: label }),
3904
+ /* @__PURE__ */ jsx61(SelectBase, __spreadValues({ options, placeholder }, props)),
3905
+ description && /* @__PURE__ */ jsx61("p", { className: "text-sm text-muted-foreground", children: description }),
3906
+ error && /* @__PURE__ */ jsx61(ErrorMessage, { children: error })
3907
+ ] });
3473
3908
  }
3474
- return /* @__PURE__ */ React37.createElement(
3909
+ return /* @__PURE__ */ jsx61(
3475
3910
  FormField,
3476
3911
  {
3477
3912
  control: form.control,
3478
3913
  name,
3479
- render: ({ field }) => /* @__PURE__ */ React37.createElement(FormItem, { className }, label && /* @__PURE__ */ React37.createElement(FormLabel, null, label), /* @__PURE__ */ React37.createElement(FormControl, null, /* @__PURE__ */ React37.createElement(
3480
- SelectBase,
3481
- __spreadValues(__spreadValues({
3482
- options,
3483
- placeholder
3484
- }, props), field)
3485
- )), description && /* @__PURE__ */ React37.createElement(FormDescription, null, description), /* @__PURE__ */ React37.createElement(FormMessage, null))
3914
+ render: ({ field }) => /* @__PURE__ */ jsxs38(FormItem, { className, children: [
3915
+ label && /* @__PURE__ */ jsx61(FormLabel, { children: label }),
3916
+ /* @__PURE__ */ jsx61(FormControl, { children: /* @__PURE__ */ jsx61(
3917
+ SelectBase,
3918
+ __spreadValues(__spreadValues({
3919
+ options,
3920
+ placeholder
3921
+ }, props), field)
3922
+ ) }),
3923
+ description && /* @__PURE__ */ jsx61(FormDescription, { children: description }),
3924
+ /* @__PURE__ */ jsx61(FormMessage, {})
3925
+ ] })
3486
3926
  }
3487
3927
  );
3488
3928
  };
3489
3929
 
3490
- // src/components/dataInput/Select/MultiSelect/index.tsx
3491
- import React39 from "react";
3492
-
3493
3930
  // src/components/dataDisplay/Label/Label.tsx
3931
+ import { jsx as jsx62 } from "react/jsx-runtime";
3494
3932
  var Label4 = (props) => {
3495
- return /* @__PURE__ */ React.createElement(Label3, __spreadValues({}, props));
3933
+ return /* @__PURE__ */ jsx62(Label3, __spreadValues({}, props));
3496
3934
  };
3497
3935
 
3498
3936
  // src/components/dataInput/Select/MultiSelect/MultiSelectBase.tsx
3499
- import * as React38 from "react";
3937
+ import * as React26 from "react";
3500
3938
  import { Search, X as X4 } from "lucide-react";
3501
3939
  import * as Popover from "@radix-ui/react-popover";
3940
+ import { jsx as jsx63, jsxs as jsxs39 } from "react/jsx-runtime";
3502
3941
  function MultiSelectBase({
3503
3942
  options = [],
3504
3943
  selected = [],
@@ -3507,9 +3946,9 @@ function MultiSelectBase({
3507
3946
  placeholder = "Select frameworks...",
3508
3947
  className
3509
3948
  }) {
3510
- const [open, setOpen] = React38.useState(false);
3511
- const [inputValue, setInputValue] = React38.useState("");
3512
- const inputRef = React38.useRef(null);
3949
+ const [open, setOpen] = React26.useState(false);
3950
+ const [inputValue, setInputValue] = React26.useState("");
3951
+ const inputRef = React26.useRef(null);
3513
3952
  const handleRemoveItem = (valueToRemove) => {
3514
3953
  onChange(selected.filter((value) => value !== valueToRemove));
3515
3954
  };
@@ -3523,84 +3962,104 @@ function MultiSelectBase({
3523
3962
  const filteredOptions = options.filter(
3524
3963
  (option) => option.label.toLowerCase().includes(inputValue.toLowerCase())
3525
3964
  );
3526
- return /* @__PURE__ */ React38.createElement(Popover.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React38.createElement(Popover.Trigger, { asChild: true }, /* @__PURE__ */ React38.createElement(
3527
- "div",
3528
- {
3529
- className: cn(
3530
- "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",
3531
- className
3532
- )
3533
- },
3534
- selected.map((value) => {
3535
- const option = options.find((o) => o.value === value);
3536
- if (!option) return null;
3537
- return /* @__PURE__ */ React38.createElement(
3538
- "div",
3539
- {
3540
- key: value,
3541
- 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"
3542
- },
3543
- option.label,
3544
- /* @__PURE__ */ React38.createElement(
3545
- "button",
3546
- {
3547
- type: "button",
3548
- onClick: (e) => {
3549
- e.stopPropagation();
3550
- handleRemoveItem(value);
3551
- },
3552
- className: "phsa-rounded-full phsa-hover:bg-secondary-foreground/20"
3553
- },
3554
- /* @__PURE__ */ React38.createElement(X4, { className: "phsa-h-3 phsa-w-3" }),
3555
- /* @__PURE__ */ React38.createElement("span", { className: "phsa-sr-only" }, "Remove ", option.label)
3556
- )
3557
- );
3558
- }),
3559
- /* @__PURE__ */ React38.createElement("div", { className: "phsa-flex-1" }, selected.length === 0 && /* @__PURE__ */ React38.createElement("span", { className: "phsa-text-muted-foreground" }, placeholder))
3560
- )), /* @__PURE__ */ React38.createElement(Popover.Portal, null, /* @__PURE__ */ React38.createElement(
3561
- Popover.Content,
3562
- {
3563
- 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",
3564
- align: "start",
3565
- sideOffset: 4
3566
- },
3567
- /* @__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(Search, { className: "phsa-h-4 phsa-w-4 phsa-text-muted-foreground" }), /* @__PURE__ */ React38.createElement(
3568
- "input",
3569
- {
3570
- ref: inputRef,
3571
- value: inputValue,
3572
- onChange: (e) => setInputValue(e.target.value),
3573
- placeholder: "Search...",
3574
- className: "phsa-flex-1 phsa-bg-transparent phsa-px-2 phsa-outline-none phsa-placeholder:text-muted-foreground"
3575
- }
3576
- )),
3577
- /* @__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(
3965
+ return /* @__PURE__ */ jsxs39(Popover.Root, { open, onOpenChange: setOpen, children: [
3966
+ /* @__PURE__ */ jsx63(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs39(
3578
3967
  "div",
3579
3968
  {
3580
- key: option.value,
3581
- onClick: () => handleSelectItem(option.value),
3582
3969
  className: cn(
3583
- "flex cursor-pointer items-center gap-2 px-4 py-2 text-sm hover:bg-accent",
3584
- selected.includes(option.value) && "bg-accent"
3585
- )
3586
- },
3587
- /* @__PURE__ */ React38.createElement(
3588
- "div",
3589
- {
3590
- className: cn(
3591
- "flex h-4 w-4 items-center justify-center rounded border border-primary",
3592
- selected.includes(option.value) && "bg-primary text-primary-foreground"
3593
- )
3594
- },
3595
- selected.includes(option.value) && /* @__PURE__ */ React38.createElement("span", { className: "phsa-text-[10px]" }, "\u2713")
3596
- ),
3597
- option.label
3598
- )))
3599
- )));
3970
+ "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",
3971
+ className
3972
+ ),
3973
+ children: [
3974
+ selected.map((value) => {
3975
+ const option = options.find((o) => o.value === value);
3976
+ if (!option) return null;
3977
+ return /* @__PURE__ */ jsxs39(
3978
+ "div",
3979
+ {
3980
+ className: "flex items-center gap-1 rounded-md bg-secondary px-2 py-1 text-sm text-secondary-foreground",
3981
+ children: [
3982
+ option.label,
3983
+ /* @__PURE__ */ jsxs39(
3984
+ "button",
3985
+ {
3986
+ type: "button",
3987
+ onClick: (e) => {
3988
+ e.stopPropagation();
3989
+ handleRemoveItem(value);
3990
+ },
3991
+ className: "rounded-full hover:bg-secondary-foreground/20",
3992
+ children: [
3993
+ /* @__PURE__ */ jsx63(X4, { className: "h-3 w-3" }),
3994
+ /* @__PURE__ */ jsxs39("span", { className: "sr-only", children: [
3995
+ "Remove ",
3996
+ option.label
3997
+ ] })
3998
+ ]
3999
+ }
4000
+ )
4001
+ ]
4002
+ },
4003
+ value
4004
+ );
4005
+ }),
4006
+ /* @__PURE__ */ jsx63("div", { className: "flex-1", children: selected.length === 0 && /* @__PURE__ */ jsx63("span", { className: "text-muted-foreground", children: placeholder }) })
4007
+ ]
4008
+ }
4009
+ ) }),
4010
+ /* @__PURE__ */ jsx63(Popover.Portal, { children: /* @__PURE__ */ jsxs39(
4011
+ Popover.Content,
4012
+ {
4013
+ 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",
4014
+ align: "start",
4015
+ sideOffset: 4,
4016
+ children: [
4017
+ /* @__PURE__ */ jsxs39("div", { className: "flex items-center border-b border-border px-3 py-2", children: [
4018
+ /* @__PURE__ */ jsx63(Search, { className: "h-4 w-4 text-muted-foreground" }),
4019
+ /* @__PURE__ */ jsx63(
4020
+ "input",
4021
+ {
4022
+ ref: inputRef,
4023
+ value: inputValue,
4024
+ onChange: (e) => setInputValue(e.target.value),
4025
+ placeholder: "Search...",
4026
+ className: "flex-1 bg-transparent px-2 outline-none placeholder:text-muted-foreground"
4027
+ }
4028
+ )
4029
+ ] }),
4030
+ /* @__PURE__ */ jsx63("div", { className: "max-h-[200px] overflow-auto", children: filteredOptions.length === 0 ? /* @__PURE__ */ jsx63("div", { className: "px-2 py-4 text-center text-sm text-muted-foreground", children: "No results found." }) : filteredOptions.map((option) => /* @__PURE__ */ jsxs39(
4031
+ "div",
4032
+ {
4033
+ onClick: () => handleSelectItem(option.value),
4034
+ className: cn(
4035
+ "flex cursor-pointer items-center gap-2 px-4 py-2 text-sm hover:bg-accent",
4036
+ selected.includes(option.value) && "bg-accent"
4037
+ ),
4038
+ children: [
4039
+ /* @__PURE__ */ jsx63(
4040
+ "div",
4041
+ {
4042
+ className: cn(
4043
+ "flex h-4 w-4 items-center justify-center rounded border border-primary",
4044
+ selected.includes(option.value) && "bg-primary text-primary-foreground"
4045
+ ),
4046
+ children: selected.includes(option.value) && /* @__PURE__ */ jsx63("span", { className: "text-[10px]", children: "\u2713" })
4047
+ }
4048
+ ),
4049
+ option.label
4050
+ ]
4051
+ },
4052
+ option.value
4053
+ )) })
4054
+ ]
4055
+ }
4056
+ ) })
4057
+ ] });
3600
4058
  }
3601
4059
 
3602
4060
  // src/components/dataInput/Select/MultiSelect/index.tsx
3603
4061
  import { useFormContext as useFormContext7 } from "react-hook-form";
4062
+ import { jsx as jsx64, jsxs as jsxs40 } from "react/jsx-runtime";
3604
4063
  function MultiSelect(_a) {
3605
4064
  var _b = _a, {
3606
4065
  label,
@@ -3620,36 +4079,41 @@ function MultiSelect(_a) {
3620
4079
  const form = useFormContext7();
3621
4080
  const hasForm = !withoutForm && !!form && !!name;
3622
4081
  if (!hasForm)
3623
- return /* @__PURE__ */ React39.createElement("div", { className: "phsa-grid phsa-w-full phsa-items-center phsa-gap-3" }, label && /* @__PURE__ */ React39.createElement(Label4, { htmlFor: name }, label), /* @__PURE__ */ React39.createElement(MultiSelectBase, __spreadValues({}, props)));
3624
- return /* @__PURE__ */ React39.createElement(
4082
+ return /* @__PURE__ */ jsxs40("div", { className: "grid w-full items-center gap-3", children: [
4083
+ label && /* @__PURE__ */ jsx64(Label4, { htmlFor: name, children: label }),
4084
+ /* @__PURE__ */ jsx64(MultiSelectBase, __spreadValues({}, props))
4085
+ ] });
4086
+ return /* @__PURE__ */ jsx64(
3625
4087
  FormField,
3626
4088
  {
3627
4089
  control: form.control,
3628
4090
  name,
3629
4091
  render: (_a2) => {
3630
4092
  var { field: _b2 } = _a2, _c = _b2, { value } = _c, rest = __objRest(_c, ["value"]);
3631
- return /* @__PURE__ */ React39.createElement(
4093
+ return /* @__PURE__ */ jsxs40(
3632
4094
  FormItem,
3633
4095
  {
3634
4096
  className,
3635
- "data-testid": testId ? `form-item-${testId}` : void 0
3636
- },
3637
- label && /* @__PURE__ */ React39.createElement(
3638
- FormLabel,
3639
- {
3640
- htmlFor: name,
3641
- "data-testid": testId ? `form-label-${testId}` : void 0
3642
- },
3643
- `${label}${required ? " *" : ""}`
3644
- ),
3645
- /* @__PURE__ */ React39.createElement(FormControl, null, /* @__PURE__ */ React39.createElement("div", { className: "phsa-flex phsa-w-full phsa-items-center phsa-space-x-2" }, /* @__PURE__ */ React39.createElement(MultiSelectBase, __spreadProps(__spreadValues(__spreadValues({}, props), rest), { selected: value })))),
3646
- /* @__PURE__ */ React39.createElement(
3647
- FormMessage,
3648
- {
3649
- role: "alert",
3650
- "data-testid": testId ? `form-message-${testId}` : void 0
3651
- }
3652
- )
4097
+ "data-testid": testId ? `form-item-${testId}` : void 0,
4098
+ children: [
4099
+ label && /* @__PURE__ */ jsx64(
4100
+ FormLabel,
4101
+ {
4102
+ htmlFor: name,
4103
+ "data-testid": testId ? `form-label-${testId}` : void 0,
4104
+ children: `${label}${required ? " *" : ""}`
4105
+ }
4106
+ ),
4107
+ /* @__PURE__ */ jsx64(FormControl, { children: /* @__PURE__ */ jsx64("div", { className: "flex w-full items-center space-x-2", children: /* @__PURE__ */ jsx64(MultiSelectBase, __spreadProps(__spreadValues(__spreadValues({}, props), rest), { selected: value })) }) }),
4108
+ /* @__PURE__ */ jsx64(
4109
+ FormMessage,
4110
+ {
4111
+ role: "alert",
4112
+ "data-testid": testId ? `form-message-${testId}` : void 0
4113
+ }
4114
+ )
4115
+ ]
4116
+ }
3653
4117
  );
3654
4118
  }
3655
4119
  }
@@ -3657,11 +4121,12 @@ function MultiSelect(_a) {
3657
4121
  }
3658
4122
 
3659
4123
  // src/components/ui/switch.tsx
3660
- import * as React40 from "react";
4124
+ import * as React27 from "react";
3661
4125
  import * as SwitchPrimitives from "@radix-ui/react-switch";
3662
- var Switch = React40.forwardRef((_a, ref) => {
4126
+ import { jsx as jsx65 } from "react/jsx-runtime";
4127
+ var Switch = React27.forwardRef((_a, ref) => {
3663
4128
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3664
- return /* @__PURE__ */ React40.createElement(
4129
+ return /* @__PURE__ */ jsx65(
3665
4130
  SwitchPrimitives.Root,
3666
4131
  __spreadProps(__spreadValues({
3667
4132
  className: cn(
@@ -3669,22 +4134,23 @@ var Switch = React40.forwardRef((_a, ref) => {
3669
4134
  className
3670
4135
  )
3671
4136
  }, props), {
3672
- ref
3673
- }),
3674
- /* @__PURE__ */ React40.createElement(
3675
- SwitchPrimitives.Thumb,
3676
- {
3677
- className: cn(
3678
- "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"
3679
- )
3680
- }
3681
- )
4137
+ ref,
4138
+ children: /* @__PURE__ */ jsx65(
4139
+ SwitchPrimitives.Thumb,
4140
+ {
4141
+ className: cn(
4142
+ "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"
4143
+ )
4144
+ }
4145
+ )
4146
+ })
3682
4147
  );
3683
4148
  });
3684
4149
  Switch.displayName = SwitchPrimitives.Root.displayName;
3685
4150
 
3686
4151
  // src/components/dataInput/Switch/Switch.tsx
3687
4152
  import { useFormContext as useFormContext8 } from "react-hook-form";
4153
+ import { jsx as jsx66, jsxs as jsxs41 } from "react/jsx-runtime";
3688
4154
  function Switch2(_a) {
3689
4155
  var _b = _a, {
3690
4156
  label,
@@ -3699,161 +4165,39 @@ function Switch2(_a) {
3699
4165
  const form = useFormContext8();
3700
4166
  const hasForm = !!form && !withoutForm && !!props.name;
3701
4167
  if (!hasForm)
3702
- 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));
3703
- return /* @__PURE__ */ React.createElement(
4168
+ return /* @__PURE__ */ jsxs41("div", { className: "flex items-center space-x-2", children: [
4169
+ /* @__PURE__ */ jsx66(Switch, __spreadValues({}, props)),
4170
+ label && /* @__PURE__ */ jsx66(Label3, { htmlFor: props.id, children: label })
4171
+ ] });
4172
+ return /* @__PURE__ */ jsx66(
3704
4173
  FormField,
3705
4174
  {
3706
4175
  control: form.control,
3707
4176
  name: (_a2 = props.name) != null ? _a2 : "",
3708
- render: ({ field }) => /* @__PURE__ */ React.createElement(
4177
+ render: ({ field }) => /* @__PURE__ */ jsxs41(
3709
4178
  FormItem,
3710
4179
  {
3711
- className: cn(className, "flex items-center space-x-2 space-y-0")
3712
- },
3713
- /* @__PURE__ */ React.createElement(FormControl, null, /* @__PURE__ */ React.createElement(Switch2, { checked: field.value, onCheckedChange: field.onChange })),
3714
- /* @__PURE__ */ React.createElement(FormLabel, null, label)
4180
+ className: cn(className, "flex items-center space-x-2 space-y-0"),
4181
+ children: [
4182
+ /* @__PURE__ */ jsx66(FormControl, { children: /* @__PURE__ */ jsx66(Switch2, { checked: field.value, onCheckedChange: field.onChange }) }),
4183
+ /* @__PURE__ */ jsx66(FormLabel, { children: label })
4184
+ ]
4185
+ }
3715
4186
  )
3716
4187
  }
3717
4188
  );
3718
4189
  }
3719
4190
 
3720
4191
  // src/components/config/DesignSystemProvider/index.tsx
3721
- import React41, { useLayoutEffect, useId as useId2, useMemo as useMemo10 } from "react";
3722
- var stylesInjected = false;
3723
- var normalizeColor = (color) => {
3724
- if (!color) return void 0;
3725
- if (/^\d+\s+\d+%\s+\d+%$/.test(color)) {
3726
- return color;
3727
- }
3728
- if (/^#?[0-9A-Fa-f]{6}$/.test(color)) {
3729
- return hexToHsl(color);
3730
- }
3731
- return color;
3732
- };
4192
+ import { useId as useId2 } from "react";
4193
+ import { jsx as jsx67 } from "react/jsx-runtime";
3733
4194
  function DesignSystemProvider({
3734
4195
  children,
3735
- className = "",
3736
- colors,
3737
- theme
4196
+ className = ""
3738
4197
  }) {
3739
4198
  const uniqueId = useId2().replace(/:/g, "_");
3740
4199
  const scopeClass = `ds-${uniqueId}`;
3741
- const themeColors = (theme == null ? void 0 : theme.colors) || colors;
3742
- useLayoutEffect(() => {
3743
- if (stylesInjected) return;
3744
- const styleId = "phsa-design-system-styles";
3745
- let styleElement = document.getElementById(styleId);
3746
- if (!styleElement) {
3747
- const stylesPath = "@phsa.tec/design-system-react/styles";
3748
- import(stylesPath).then((module) => {
3749
- const css = module.default || "";
3750
- if (css) {
3751
- styleElement = document.createElement("style");
3752
- styleElement.id = styleId;
3753
- styleElement.textContent = css;
3754
- document.head.appendChild(styleElement);
3755
- stylesInjected = true;
3756
- }
3757
- }).catch((error) => {
3758
- if (process.env.NODE_ENV === "development") {
3759
- console.warn('\u26A0\uFE0F CSS do design system n\xE3o encontrado. Execute "npm run build:lib" para compilar.');
3760
- }
3761
- });
3762
- }
3763
- }, []);
3764
- const themeVariables = useMemo10(() => {
3765
- const vars = {};
3766
- if (themeColors) {
3767
- vars["--background"] = normalizeColor(themeColors.background) || "";
3768
- vars["--foreground"] = normalizeColor(themeColors.foreground) || "";
3769
- vars["--card"] = normalizeColor(themeColors.card) || "";
3770
- vars["--card-foreground"] = normalizeColor(themeColors.cardForeground) || "";
3771
- vars["--popover"] = normalizeColor(themeColors.popover) || "";
3772
- vars["--popover-foreground"] = normalizeColor(themeColors.popoverForeground) || "";
3773
- vars["--primary"] = normalizeColor(themeColors.primary) || "";
3774
- vars["--primary-foreground"] = normalizeColor(themeColors.primaryForeground) || "";
3775
- vars["--secondary"] = normalizeColor(themeColors.secondary) || "";
3776
- vars["--secondary-foreground"] = normalizeColor(themeColors.secondaryForeground) || "";
3777
- vars["--muted"] = normalizeColor(themeColors.muted) || "";
3778
- vars["--muted-foreground"] = normalizeColor(themeColors.mutedForeground) || "";
3779
- vars["--accent"] = normalizeColor(themeColors.accent) || "";
3780
- vars["--accent-foreground"] = normalizeColor(themeColors.accentForeground) || "";
3781
- vars["--success"] = normalizeColor(themeColors.success) || "";
3782
- vars["--success-foreground"] = normalizeColor(themeColors.successForeground) || "";
3783
- vars["--warning"] = normalizeColor(themeColors.warning) || "";
3784
- vars["--destructive"] = normalizeColor(themeColors.destructive) || "";
3785
- vars["--destructive-foreground"] = normalizeColor(themeColors.destructiveForeground) || "";
3786
- vars["--border"] = normalizeColor(themeColors.border) || "";
3787
- vars["--input"] = normalizeColor(themeColors.input) || "";
3788
- vars["--ring"] = normalizeColor(themeColors.ring) || "";
3789
- vars["--radius"] = themeColors.radius || "";
3790
- }
3791
- if (theme == null ? void 0 : theme.spacing) {
3792
- if (theme.spacing.base) vars["--spacing-base"] = theme.spacing.base;
3793
- if (theme.spacing.xs) vars["--spacing-xs"] = theme.spacing.xs;
3794
- if (theme.spacing.sm) vars["--spacing-sm"] = theme.spacing.sm;
3795
- if (theme.spacing.md) vars["--spacing-md"] = theme.spacing.md;
3796
- if (theme.spacing.lg) vars["--spacing-lg"] = theme.spacing.lg;
3797
- if (theme.spacing.xl) vars["--spacing-xl"] = theme.spacing.xl;
3798
- if (theme.spacing["2xl"]) vars["--spacing-2xl"] = theme.spacing["2xl"];
3799
- if (theme.spacing["3xl"]) vars["--spacing-3xl"] = theme.spacing["3xl"];
3800
- }
3801
- if (theme == null ? void 0 : theme.typography) {
3802
- if (theme.typography.fontFamily) vars["--font-family"] = theme.typography.fontFamily;
3803
- if (theme.typography.fontSize) {
3804
- Object.entries(theme.typography.fontSize).forEach(([key, value]) => {
3805
- vars[`--font-size-${key}`] = value;
3806
- });
3807
- }
3808
- if (theme.typography.fontWeight) {
3809
- Object.entries(theme.typography.fontWeight).forEach(([key, value]) => {
3810
- vars[`--font-weight-${key}`] = value;
3811
- });
3812
- }
3813
- if (theme.typography.lineHeight) {
3814
- Object.entries(theme.typography.lineHeight).forEach(([key, value]) => {
3815
- vars[`--line-height-${key}`] = value;
3816
- });
3817
- }
3818
- }
3819
- if (theme == null ? void 0 : theme.borderRadius) {
3820
- Object.entries(theme.borderRadius).forEach(([key, value]) => {
3821
- vars[`--radius-${key}`] = value;
3822
- });
3823
- }
3824
- if (theme == null ? void 0 : theme.boxShadow) {
3825
- Object.entries(theme.boxShadow).forEach(([key, value]) => {
3826
- vars[`--shadow-${key}`] = value;
3827
- });
3828
- }
3829
- if (theme == null ? void 0 : theme.breakpoints) {
3830
- Object.entries(theme.breakpoints).forEach(([key, value]) => {
3831
- vars[`--breakpoint-${key}`] = value;
3832
- });
3833
- }
3834
- return Object.fromEntries(
3835
- Object.entries(vars).filter(([, value]) => value !== void 0 && value !== "")
3836
- );
3837
- }, [theme, themeColors]);
3838
- useLayoutEffect(() => {
3839
- if (Object.keys(themeVariables).length === 0) return;
3840
- const styleId = `design-system-theme-${uniqueId}`;
3841
- let styleElement = document.getElementById(styleId);
3842
- if (!styleElement) {
3843
- styleElement = document.createElement("style");
3844
- styleElement.id = styleId;
3845
- document.head.appendChild(styleElement);
3846
- }
3847
- const cssVariables = Object.entries(themeVariables).map(([key, value]) => ` ${key}: ${value};`).join("\n");
3848
- styleElement.textContent = `.${scopeClass} {
3849
- ${cssVariables}
3850
- }`;
3851
- return () => {
3852
- styleElement.remove();
3853
- };
3854
- }, [themeVariables, uniqueId, scopeClass]);
3855
- const inlineStyle = Object.keys(themeVariables).length > 0 ? themeVariables : void 0;
3856
- return /* @__PURE__ */ React41.createElement("div", { className: `ds ${scopeClass} ${className}`.trim(), style: inlineStyle }, children);
4200
+ return /* @__PURE__ */ jsx67("div", { className: `ds ${scopeClass} ${className}`.trim(), children });
3857
4201
  }
3858
4202
  export {
3859
4203
  AlertDialog2 as AlertDialog,
@@ -3861,7 +4205,6 @@ export {
3861
4205
  AvatarFallback,
3862
4206
  AvatarImage,
3863
4207
  Badge,
3864
- DesignSystemProvider as BaseDesignSystemProvider,
3865
4208
  Breadcrumb,
3866
4209
  BreadcrumbEllipsis,
3867
4210
  BreadcrumbItem,
@@ -3870,6 +4213,13 @@ export {
3870
4213
  BreadcrumbPage,
3871
4214
  BreadcrumbSeparator,
3872
4215
  Button2 as Button,
4216
+ Card2 as Card,
4217
+ Card as CardBase,
4218
+ CardContent,
4219
+ CardDescription,
4220
+ CardFooter,
4221
+ CardHeader,
4222
+ CardTitle,
3873
4223
  Checkbox2 as Checkbox,
3874
4224
  Collapsible,
3875
4225
  CollapsibleContent2 as CollapsibleContent,