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