shadcn-ui-react 0.3.7 → 0.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5512,19 +5512,116 @@ import {
5512
5512
  Controller,
5513
5513
  useFormContext
5514
5514
  } from "react-hook-form";
5515
- import React43 from "react";
5515
+ import React44 from "react";
5516
+ import { Slot as Slot3 } from "@radix-ui/react-slot";
5517
+ import { Asterisk } from "lucide-react";
5518
+
5519
+ // src/components/input.tsx
5520
+ import * as React41 from "react";
5521
+ import { Mail, Search, Eye, EyeOff } from "lucide-react";
5522
+ import { jsx as jsx17, jsxs as jsxs10 } from "react/jsx-runtime";
5523
+ var Input = React41.forwardRef(
5524
+ (_a, ref) => {
5525
+ var _b = _a, {
5526
+ className,
5527
+ variant = "outline",
5528
+ size = "md",
5529
+ leading,
5530
+ trailing,
5531
+ invalid = false,
5532
+ disabled
5533
+ } = _b, props = __objRest(_b, [
5534
+ "className",
5535
+ "variant",
5536
+ "size",
5537
+ "leading",
5538
+ "trailing",
5539
+ "invalid",
5540
+ "disabled"
5541
+ ]);
5542
+ const base = "block w-full bg-transparent text-foreground placeholder:text-muted-foreground outline-none transition disabled:opacity-50 disabled:cursor-not-allowed";
5543
+ const sizeCls = size === "sm" ? "h-9 px-3 text-sm" : size === "lg" ? "h-12 px-5 text-base" : "h-11 px-4 text-sm";
5544
+ const variants = {
5545
+ outline: "rounded-md border border-input bg-input backdrop-blur-sm shadow-sm hover:border-primary/60 focus:border-primary focus:ring-2 focus:ring-primary/20",
5546
+ soft: "rounded-md border border-transparent bg-muted/60 hover:bg-muted shadow-sm focus:bg-input/80 focus:ring-2 focus:ring-primary/20",
5547
+ ghost: "rounded-md border border-transparent bg-transparent hover:bg-muted/50 focus:ring-2 focus:ring-ring",
5548
+ filled: "rounded-md border border-input bg-muted/70 hover:bg-muted shadow-inner focus:bg-input/70 focus:ring-2 focus:ring-primary/20",
5549
+ flushed: (
5550
+ // sin bordes laterales/superior, solo inferior; sin sombras ni radios
5551
+ "rounded-none border-0 border-b border-input px-0 shadow-none focus:border-b-2 focus:border-primary focus:ring-0"
5552
+ ),
5553
+ unstyled: (
5554
+ // sin estilos, útil para inputs embebidos o controles muy custom
5555
+ "border-0 shadow-none focus:ring-0"
5556
+ ),
5557
+ link: (
5558
+ // aspecto tipo enlace: inline height-auto, sin paddings ni borde
5559
+ "border-0 p-0 h-auto shadow-none bg-transparent text-primary underline-offset-4 focus:underline focus:ring-0"
5560
+ )
5561
+ };
5562
+ const errorCls = invalid ? "border-destructive focus:border-destructive focus:ring-destructive/20" : "";
5563
+ const iconPadLeft = leading && variant !== "flushed" && variant !== "link" ? size === "lg" ? "pl-12" : "pl-10" : "";
5564
+ const iconPadRight = trailing && variant !== "flushed" && variant !== "link" ? size === "lg" ? "pr-12" : "pr-10" : "";
5565
+ const specialSizeForFlushed = variant === "flushed" ? size === "sm" ? "h-9 text-sm" : size === "lg" ? "h-12 text-base" : "h-11 text-sm" : "";
5566
+ const specialSizeForLink = variant === "link" ? "text-sm" : "";
5567
+ return /* @__PURE__ */ jsxs10("div", { className: cn("relative", disabled && "opacity-80"), children: [
5568
+ leading ? /* @__PURE__ */ jsx17(
5569
+ "span",
5570
+ {
5571
+ className: cn(
5572
+ "pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 opacity-60",
5573
+ size === "lg" ? "text-[1.15rem]" : "text-[1rem]",
5574
+ // no desplazamos visualmente en variantes sin padding
5575
+ variant === "flushed" || variant === "link" ? "hidden" : ""
5576
+ ),
5577
+ children: leading
5578
+ }
5579
+ ) : null,
5580
+ /* @__PURE__ */ jsx17(
5581
+ "input",
5582
+ __spreadValues({
5583
+ ref,
5584
+ "aria-invalid": invalid || void 0,
5585
+ disabled,
5586
+ className: cn(
5587
+ base,
5588
+ variants[variant],
5589
+ variant === "flushed" ? specialSizeForFlushed : variant === "link" ? specialSizeForLink : sizeCls,
5590
+ errorCls,
5591
+ iconPadLeft,
5592
+ iconPadRight,
5593
+ className
5594
+ )
5595
+ }, props)
5596
+ ),
5597
+ trailing ? /* @__PURE__ */ jsx17(
5598
+ "span",
5599
+ {
5600
+ className: cn(
5601
+ "absolute right-3 top-1/2 -translate-y-1/2 opacity-70",
5602
+ size === "lg" ? "text-[1.15rem]" : "text-[1rem]",
5603
+ variant === "flushed" || variant === "link" ? "hidden" : ""
5604
+ ),
5605
+ children: trailing
5606
+ }
5607
+ ) : null
5608
+ ] });
5609
+ }
5610
+ );
5611
+ Input.displayName = "Input";
5612
+ Input.displayName = "Input";
5516
5613
 
5517
5614
  // src/components/Label/label.tsx
5518
5615
  import * as LabelPrimitive from "@radix-ui/react-label";
5519
5616
  import { cva as cva4 } from "class-variance-authority";
5520
- import * as React41 from "react";
5521
- import { jsx as jsx17 } from "react/jsx-runtime";
5617
+ import * as React42 from "react";
5618
+ import { jsx as jsx18 } from "react/jsx-runtime";
5522
5619
  var labelVariants = cva4(
5523
5620
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 text-label"
5524
5621
  );
5525
- var Label3 = React41.forwardRef((_a, ref) => {
5622
+ var Label3 = React42.forwardRef((_a, ref) => {
5526
5623
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5527
- return /* @__PURE__ */ jsx17(
5624
+ return /* @__PURE__ */ jsx18(
5528
5625
  LabelPrimitive.Root,
5529
5626
  __spreadValues({
5530
5627
  ref,
@@ -5534,34 +5631,146 @@ var Label3 = React41.forwardRef((_a, ref) => {
5534
5631
  });
5535
5632
  Label3.displayName = LabelPrimitive.Root.displayName;
5536
5633
 
5537
- // src/components/Form/form-field.tsx
5538
- import { Slot as Slot3 } from "@radix-ui/react-slot";
5539
-
5540
- // src/components/input.tsx
5541
- import * as React42 from "react";
5542
- import { jsx as jsx18 } from "react/jsx-runtime";
5543
- var Input = React42.forwardRef(
5544
- (_a, ref) => {
5545
- var _b = _a, { className, classNameDefault, type } = _b, props = __objRest(_b, ["className", "classNameDefault", "type"]);
5546
- return /* @__PURE__ */ jsx18(
5547
- "input",
5548
- __spreadValues({
5549
- type,
5550
- className: classNameDefault ? cn(
5551
- "flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
5552
- className
5553
- ) : className,
5554
- ref
5555
- }, props)
5556
- );
5557
- }
5558
- );
5559
- Input.displayName = "Input";
5634
+ // src/components/select.tsx
5635
+ import {
5636
+ CaretSortIcon,
5637
+ CheckIcon as CheckIcon4,
5638
+ ChevronDownIcon as ChevronDownIcon2,
5639
+ ChevronUpIcon
5640
+ } from "@radix-ui/react-icons";
5641
+ import * as SelectPrimitive from "@radix-ui/react-select";
5642
+ import * as React43 from "react";
5643
+ import { jsx as jsx19, jsxs as jsxs11 } from "react/jsx-runtime";
5644
+ var Select2 = SelectPrimitive.Root;
5645
+ var SelectGroup = SelectPrimitive.Group;
5646
+ var SelectValue = SelectPrimitive.Value;
5647
+ var SelectTrigger = React43.forwardRef((_a, ref) => {
5648
+ var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
5649
+ return /* @__PURE__ */ jsxs11(
5650
+ SelectPrimitive.Trigger,
5651
+ __spreadProps(__spreadValues({
5652
+ ref,
5653
+ className: cn(
5654
+ "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",
5655
+ className
5656
+ )
5657
+ }, props), {
5658
+ children: [
5659
+ children,
5660
+ /* @__PURE__ */ jsx19(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx19(CaretSortIcon, { className: "h-4 w-4 opacity-50" }) })
5661
+ ]
5662
+ })
5663
+ );
5664
+ });
5665
+ SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
5666
+ var SelectScrollUpButton = React43.forwardRef((_a, ref) => {
5667
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5668
+ return /* @__PURE__ */ jsx19(
5669
+ SelectPrimitive.ScrollUpButton,
5670
+ __spreadProps(__spreadValues({
5671
+ ref,
5672
+ className: cn(
5673
+ "flex cursor-default items-center justify-center py-1",
5674
+ className
5675
+ )
5676
+ }, props), {
5677
+ children: /* @__PURE__ */ jsx19(ChevronUpIcon, {})
5678
+ })
5679
+ );
5680
+ });
5681
+ SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
5682
+ var SelectScrollDownButton = React43.forwardRef((_a, ref) => {
5683
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5684
+ return /* @__PURE__ */ jsx19(
5685
+ SelectPrimitive.ScrollDownButton,
5686
+ __spreadProps(__spreadValues({
5687
+ ref,
5688
+ className: cn(
5689
+ "flex cursor-default items-center justify-center py-1",
5690
+ className
5691
+ )
5692
+ }, props), {
5693
+ children: /* @__PURE__ */ jsx19(ChevronDownIcon2, {})
5694
+ })
5695
+ );
5696
+ });
5697
+ SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
5698
+ var SelectContent = React43.forwardRef((_a, ref) => {
5699
+ var _b = _a, { className, children, position = "popper" } = _b, props = __objRest(_b, ["className", "children", "position"]);
5700
+ return /* @__PURE__ */ jsx19(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs11(
5701
+ SelectPrimitive.Content,
5702
+ __spreadProps(__spreadValues({
5703
+ ref,
5704
+ className: cn(
5705
+ "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",
5706
+ position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
5707
+ className
5708
+ ),
5709
+ position
5710
+ }, props), {
5711
+ children: [
5712
+ /* @__PURE__ */ jsx19(SelectScrollUpButton, {}),
5713
+ /* @__PURE__ */ jsx19(
5714
+ SelectPrimitive.Viewport,
5715
+ {
5716
+ className: cn(
5717
+ "p-1",
5718
+ position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
5719
+ ),
5720
+ children
5721
+ }
5722
+ ),
5723
+ /* @__PURE__ */ jsx19(SelectScrollDownButton, {})
5724
+ ]
5725
+ })
5726
+ ) });
5727
+ });
5728
+ SelectContent.displayName = SelectPrimitive.Content.displayName;
5729
+ var SelectLabel = React43.forwardRef((_a, ref) => {
5730
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5731
+ return /* @__PURE__ */ jsx19(
5732
+ SelectPrimitive.Label,
5733
+ __spreadValues({
5734
+ ref,
5735
+ className: cn("px-2 py-1.5 text-sm font-semibold", className)
5736
+ }, props)
5737
+ );
5738
+ });
5739
+ SelectLabel.displayName = SelectPrimitive.Label.displayName;
5740
+ var SelectItem = React43.forwardRef((_a, ref) => {
5741
+ var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
5742
+ return /* @__PURE__ */ jsxs11(
5743
+ SelectPrimitive.Item,
5744
+ __spreadProps(__spreadValues({
5745
+ ref,
5746
+ className: cn(
5747
+ "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",
5748
+ className
5749
+ )
5750
+ }, props), {
5751
+ children: [
5752
+ /* @__PURE__ */ jsx19("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx19(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx19(CheckIcon4, { className: "h-4 w-4" }) }) }),
5753
+ /* @__PURE__ */ jsx19(SelectPrimitive.ItemText, { children })
5754
+ ]
5755
+ })
5756
+ );
5757
+ });
5758
+ SelectItem.displayName = SelectPrimitive.Item.displayName;
5759
+ var SelectSeparator = React43.forwardRef((_a, ref) => {
5760
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5761
+ return /* @__PURE__ */ jsx19(
5762
+ SelectPrimitive.Separator,
5763
+ __spreadValues({
5764
+ ref,
5765
+ className: cn("-mx-1 my-1 h-px bg-muted", className)
5766
+ }, props)
5767
+ );
5768
+ });
5769
+ SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
5560
5770
 
5561
5771
  // src/components/Form/form-field.tsx
5562
- import { Asterisk } from "lucide-react";
5563
- import { jsx as jsx19, jsxs as jsxs10 } from "react/jsx-runtime";
5564
- var FormFieldContext = React43.createContext(
5772
+ import { jsx as jsx20, jsxs as jsxs12 } from "react/jsx-runtime";
5773
+ var FormFieldContext = React44.createContext(
5565
5774
  null
5566
5775
  );
5567
5776
  var FormField = (_a) => {
@@ -5571,11 +5780,13 @@ var FormField = (_a) => {
5571
5780
  label,
5572
5781
  placeholder,
5573
5782
  requiredLabel,
5574
- className = "px-4 py-6 shadow-inner drop-shadow-xl",
5783
+ className,
5575
5784
  classNameDefault,
5576
5785
  labelClassName,
5577
5786
  messageClassName,
5578
5787
  requiredLabelClassName,
5788
+ variant = "outline",
5789
+ size = "md",
5579
5790
  rules,
5580
5791
  shouldUnregister,
5581
5792
  defaultValue,
@@ -5591,6 +5802,8 @@ var FormField = (_a) => {
5591
5802
  "labelClassName",
5592
5803
  "messageClassName",
5593
5804
  "requiredLabelClassName",
5805
+ "variant",
5806
+ "size",
5594
5807
  "rules",
5595
5808
  "shouldUnregister",
5596
5809
  "defaultValue",
@@ -5601,7 +5814,7 @@ var FormField = (_a) => {
5601
5814
  formState: { errors }
5602
5815
  } = useFormContext();
5603
5816
  const fieldError = (_a2 = errors[name]) == null ? void 0 : _a2.message;
5604
- return /* @__PURE__ */ jsx19(FormFieldContext.Provider, { value: { name }, children: /* @__PURE__ */ jsx19(
5817
+ return /* @__PURE__ */ jsx20(FormFieldContext.Provider, { value: { name }, children: /* @__PURE__ */ jsx20(
5605
5818
  Controller,
5606
5819
  {
5607
5820
  control,
@@ -5609,49 +5822,60 @@ var FormField = (_a) => {
5609
5822
  rules,
5610
5823
  shouldUnregister,
5611
5824
  defaultValue,
5612
- render: ({ field }) => /* @__PURE__ */ jsxs10(FormItem, { children: [
5613
- label && /* @__PURE__ */ jsxs10(FormLabel, { className: cn("flex items-center self-center gap-0", labelClassName), children: [
5614
- label,
5615
- requiredLabel && /* @__PURE__ */ jsx19(
5616
- Asterisk,
5617
- {
5618
- className: cn(
5619
- "h-3 w-3 text-red-500 ml-[1px]",
5620
- requiredLabelClassName
5825
+ render: ({ field }) => /* @__PURE__ */ jsxs12(FormItem, { children: [
5826
+ label && /* @__PURE__ */ jsxs12(
5827
+ FormLabel,
5828
+ {
5829
+ className: cn(
5830
+ "flex items-center gap-0 self-center",
5831
+ labelClassName
5832
+ ),
5833
+ children: [
5834
+ label,
5835
+ requiredLabel && /* @__PURE__ */ jsx20(
5836
+ Asterisk,
5837
+ {
5838
+ className: cn(
5839
+ "ml-[1px] h-3 w-3 text-red-500",
5840
+ requiredLabelClassName
5841
+ )
5842
+ }
5621
5843
  )
5622
- }
5623
- )
5624
- ] }),
5625
- /* @__PURE__ */ jsx19(FormControl, { children: /* @__PURE__ */ jsx19(
5844
+ ]
5845
+ }
5846
+ ),
5847
+ /* @__PURE__ */ jsx20(FormControl, { children: /* @__PURE__ */ jsx20(
5626
5848
  Input,
5627
5849
  __spreadProps(__spreadValues(__spreadValues({}, field), inputProps), {
5628
5850
  onChange: (e) => {
5629
5851
  field.onChange(e);
5630
5852
  onChange == null ? void 0 : onChange(e.target.value);
5631
5853
  },
5854
+ variant,
5855
+ size,
5632
5856
  placeholder,
5633
- className,
5857
+ className: cn("bg-input px-[0.9rem] py-5", className),
5634
5858
  classNameDefault: classNameDefault != null ? classNameDefault : true
5635
5859
  })
5636
5860
  ) }),
5637
- fieldError && /* @__PURE__ */ jsx19(FormMessage, { className: messageClassName, children: fieldError })
5861
+ fieldError && /* @__PURE__ */ jsx20(FormMessage, { className: messageClassName, children: fieldError })
5638
5862
  ] })
5639
5863
  }
5640
5864
  ) });
5641
5865
  };
5642
- var FormItemContext = React43.createContext(
5866
+ var FormItemContext = React44.createContext(
5643
5867
  {}
5644
5868
  );
5645
- var FormItem = React43.forwardRef((_a, ref) => {
5869
+ var FormItem = React44.forwardRef((_a, ref) => {
5646
5870
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5647
- const id = React43.useId();
5648
- return /* @__PURE__ */ jsx19(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx19("div", __spreadValues({ ref, className: cn("space-y-2", className) }, props)) });
5871
+ const id = React44.useId();
5872
+ return /* @__PURE__ */ jsx20(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx20("div", __spreadValues({ ref, className: cn("space-y-2", className) }, props)) });
5649
5873
  });
5650
5874
  FormItem.displayName = "FormItem";
5651
- var FormLabel = React43.forwardRef((_a, ref) => {
5875
+ var FormLabel = React44.forwardRef((_a, ref) => {
5652
5876
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5653
5877
  const { error, formItemId } = useFormField();
5654
- return /* @__PURE__ */ jsx19(
5878
+ return /* @__PURE__ */ jsx20(
5655
5879
  Label3,
5656
5880
  __spreadValues({
5657
5881
  ref,
@@ -5662,8 +5886,8 @@ var FormLabel = React43.forwardRef((_a, ref) => {
5662
5886
  });
5663
5887
  FormLabel.displayName = "FormLabel";
5664
5888
  var useFormField = () => {
5665
- const fieldContext = React43.useContext(FormFieldContext);
5666
- const itemContext = React43.useContext(FormItemContext);
5889
+ const fieldContext = React44.useContext(FormFieldContext);
5890
+ const itemContext = React44.useContext(FormItemContext);
5667
5891
  const { getFieldState, formState } = useFormContext();
5668
5892
  if (!fieldContext) {
5669
5893
  const { id: id2 } = itemContext;
@@ -5688,10 +5912,10 @@ var useFormField = () => {
5688
5912
  formMessageId: `${id}-form-item-message`
5689
5913
  }, fieldState);
5690
5914
  };
5691
- var FormControl = React43.forwardRef((_a, ref) => {
5915
+ var FormControl = React44.forwardRef((_a, ref) => {
5692
5916
  var props = __objRest(_a, []);
5693
5917
  const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
5694
- return /* @__PURE__ */ jsx19(
5918
+ return /* @__PURE__ */ jsx20(
5695
5919
  Slot3,
5696
5920
  __spreadValues({
5697
5921
  ref,
@@ -5702,48 +5926,174 @@ var FormControl = React43.forwardRef((_a, ref) => {
5702
5926
  );
5703
5927
  });
5704
5928
  FormControl.displayName = "FormControl";
5705
- var FormDescription = React43.forwardRef((_a, ref) => {
5929
+ var FormDescription = React44.forwardRef((_a, ref) => {
5706
5930
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5707
5931
  const { formDescriptionId } = useFormField();
5708
- return /* @__PURE__ */ jsx19(
5932
+ return /* @__PURE__ */ jsx20(
5709
5933
  "p",
5710
5934
  __spreadValues({
5711
5935
  ref,
5712
5936
  id: formDescriptionId,
5713
- className: cn("text-[0.8rem] text-muted-foreground", className)
5937
+ className: cn("text-muted-foreground text-[0.8rem]", className)
5714
5938
  }, props)
5715
5939
  );
5716
5940
  });
5717
5941
  FormDescription.displayName = "FormDescription";
5718
- var FormMessage = React43.forwardRef((_a, ref) => {
5942
+ var FormMessage = React44.forwardRef((_a, ref) => {
5719
5943
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
5720
5944
  const { error, formMessageId } = useFormField();
5721
5945
  const body = error ? String(error == null ? void 0 : error.message) : children;
5722
5946
  if (!body) {
5723
5947
  return null;
5724
5948
  }
5725
- return /* @__PURE__ */ jsx19(
5949
+ return /* @__PURE__ */ jsx20(
5726
5950
  "p",
5727
5951
  __spreadProps(__spreadValues({
5728
5952
  ref,
5729
5953
  id: formMessageId,
5730
- className: cn("text-[0.8rem] font-medium text-destructive", className)
5954
+ className: cn("text-destructive text-[0.8rem] font-medium", className)
5731
5955
  }, props), {
5732
5956
  children: body
5733
5957
  })
5734
5958
  );
5735
5959
  });
5736
5960
  FormMessage.displayName = "FormMessage";
5961
+ var FormSelect = ({
5962
+ name,
5963
+ control,
5964
+ rules,
5965
+ shouldUnregister,
5966
+ defaultValue,
5967
+ placeholder,
5968
+ label,
5969
+ requiredLabel,
5970
+ className,
5971
+ contentClassName,
5972
+ labelClassName,
5973
+ messageClassName,
5974
+ requiredLabelClassName,
5975
+ items,
5976
+ children,
5977
+ onChange,
5978
+ disabled,
5979
+ size = "md",
5980
+ variant = "outline",
5981
+ invalid
5982
+ }) => {
5983
+ var _a;
5984
+ const {
5985
+ formState: { errors }
5986
+ } = useFormContext();
5987
+ const triggerBase = "relative inline-flex w-full items-center justify-between outline-none transition disabled:opacity-50 disabled:cursor-not-allowed text-foreground placeholder:text-muted-foreground ring-offset-background";
5988
+ const sizeTrigger = {
5989
+ sm: "h-9 px-3 text-sm",
5990
+ md: "h-11 px-4 text-sm",
5991
+ lg: "h-12 px-5 text-base"
5992
+ };
5993
+ const variants = {
5994
+ outline: "rounded-md border border-input bg-input backdrop-blur-sm shadow-sm hover:border-primary/60 focus:border-primary focus:ring-2 focus:ring-primary/20",
5995
+ soft: "rounded-md border border-transparent bg-muted/60 hover:bg-muted shadow-sm focus:bg-input/80 focus:ring-2 focus:ring-primary/20",
5996
+ ghost: "rounded-md border border-transparent bg-transparent hover:bg-muted/50 focus:ring-2 focus:ring-ring",
5997
+ filled: "rounded-md border border-input bg-muted/70 hover:bg-muted shadow-inner focus:bg-input/70 focus:ring-2 focus:ring-primary/20",
5998
+ flushed: (
5999
+ // sin bordes laterales/superior, solo inferior; sin sombras ni radios
6000
+ "rounded-none border-0 border-b border-input px-0 shadow-none focus:border-b-2 focus:border-primary focus:ring-0"
6001
+ ),
6002
+ unstyled: (
6003
+ // sin estilos, útil para inputs embebidos o controles muy custom
6004
+ "border-0 shadow-none focus:ring-0"
6005
+ ),
6006
+ link: (
6007
+ // aspecto tipo enlace: inline height-auto, sin paddings ni borde
6008
+ "border-0 p-0 h-auto shadow-none bg-transparent text-primary underline-offset-4 focus:underline focus:ring-0"
6009
+ )
6010
+ };
6011
+ const errorCls = invalid ? "ring-destructive focus:ring-destructive/40 border-destructive" : "";
6012
+ const specialFlushed = variant === "flushed" ? size === "sm" ? "h-9 text-sm" : size === "lg" ? "h-12 text-base" : "h-11 text-sm" : "";
6013
+ const specialLink = variant === "link" ? "text-sm" : "";
6014
+ const contentBase = "bg-popover text-popover-foreground border border-border rounded-md shadow-md";
6015
+ const itemSize = {
6016
+ sm: "h-8 text-sm",
6017
+ md: "h-9 text-sm",
6018
+ lg: "h-10 text-base"
6019
+ };
6020
+ const fieldError = (_a = errors[name]) == null ? void 0 : _a.message;
6021
+ return /* @__PURE__ */ jsx20(FormFieldContext.Provider, { value: { name }, children: /* @__PURE__ */ jsx20(
6022
+ Controller,
6023
+ {
6024
+ control,
6025
+ name,
6026
+ rules,
6027
+ shouldUnregister,
6028
+ defaultValue,
6029
+ render: ({ field }) => {
6030
+ var _a2;
6031
+ return /* @__PURE__ */ jsxs12(FormItem, { children: [
6032
+ label && /* @__PURE__ */ jsxs12(FormLabel, { className: cn("flex items-center gap-0", labelClassName), children: [
6033
+ label,
6034
+ requiredLabel && /* @__PURE__ */ jsx20(
6035
+ Asterisk,
6036
+ {
6037
+ className: cn(
6038
+ "ml-[4px] h-3 w-3 text-red-500",
6039
+ requiredLabelClassName
6040
+ )
6041
+ }
6042
+ )
6043
+ ] }),
6044
+ /* @__PURE__ */ jsxs12(
6045
+ Select2,
6046
+ {
6047
+ value: (_a2 = field.value) != null ? _a2 : "",
6048
+ onValueChange: (v) => {
6049
+ field.onChange(v);
6050
+ onChange == null ? void 0 : onChange(v);
6051
+ },
6052
+ disabled,
6053
+ children: [
6054
+ /* @__PURE__ */ jsx20(FormControl, { children: /* @__PURE__ */ jsx20(
6055
+ SelectTrigger,
6056
+ {
6057
+ className: cn(
6058
+ triggerBase,
6059
+ variants[variant],
6060
+ variant === "flushed" ? specialFlushed : variant === "link" ? specialLink : sizeTrigger[size],
6061
+ errorCls,
6062
+ className
6063
+ ),
6064
+ children: /* @__PURE__ */ jsx20(SelectValue, { placeholder })
6065
+ }
6066
+ ) }),
6067
+ /* @__PURE__ */ jsx20(SelectContent, { className: cn(contentBase, contentClassName), children: children ? children : items == null ? void 0 : items.map((opt) => /* @__PURE__ */ jsx20(
6068
+ SelectItem,
6069
+ {
6070
+ value: opt.value,
6071
+ disabled: opt.disabled,
6072
+ className: cn(itemSize[size]),
6073
+ children: opt.label
6074
+ },
6075
+ opt.value
6076
+ )) })
6077
+ ]
6078
+ }
6079
+ ),
6080
+ fieldError && /* @__PURE__ */ jsx20(FormMessage, { className: messageClassName, children: fieldError })
6081
+ ] });
6082
+ }
6083
+ }
6084
+ ) });
6085
+ };
6086
+ FormSelect.displayName = "FormSelect";
5737
6087
 
5738
6088
  // src/components/hover-card.tsx
5739
6089
  import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
5740
- import * as React44 from "react";
5741
- import { jsx as jsx20 } from "react/jsx-runtime";
6090
+ import * as React45 from "react";
6091
+ import { jsx as jsx21 } from "react/jsx-runtime";
5742
6092
  var HoverCard = HoverCardPrimitive.Root;
5743
6093
  var HoverCardTrigger = HoverCardPrimitive.Trigger;
5744
- var HoverCardContent = React44.forwardRef((_a, ref) => {
6094
+ var HoverCardContent = React45.forwardRef((_a, ref) => {
5745
6095
  var _b = _a, { className, align = "center", sideOffset = 4 } = _b, props = __objRest(_b, ["className", "align", "sideOffset"]);
5746
- return /* @__PURE__ */ jsx20(
6096
+ return /* @__PURE__ */ jsx21(
5747
6097
  HoverCardPrimitive.Content,
5748
6098
  __spreadValues({
5749
6099
  ref,
@@ -5822,11 +6172,11 @@ var Icons = IconsApp;
5822
6172
  // src/components/input-otp.tsx
5823
6173
  import { DashIcon } from "@radix-ui/react-icons";
5824
6174
  import { OTPInput, OTPInputContext } from "input-otp";
5825
- import * as React45 from "react";
5826
- import { jsx as jsx21, jsxs as jsxs11 } from "react/jsx-runtime";
5827
- var InputOTP = React45.forwardRef((_a, ref) => {
6175
+ import * as React46 from "react";
6176
+ import { jsx as jsx22, jsxs as jsxs13 } from "react/jsx-runtime";
6177
+ var InputOTP = React46.forwardRef((_a, ref) => {
5828
6178
  var _b = _a, { className, containerClassName } = _b, props = __objRest(_b, ["className", "containerClassName"]);
5829
- return /* @__PURE__ */ jsx21(
6179
+ return /* @__PURE__ */ jsx22(
5830
6180
  OTPInput,
5831
6181
  __spreadValues({
5832
6182
  ref,
@@ -5839,16 +6189,16 @@ var InputOTP = React45.forwardRef((_a, ref) => {
5839
6189
  );
5840
6190
  });
5841
6191
  InputOTP.displayName = "InputOTP";
5842
- var InputOTPGroup = React45.forwardRef((_a, ref) => {
6192
+ var InputOTPGroup = React46.forwardRef((_a, ref) => {
5843
6193
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5844
- return /* @__PURE__ */ jsx21("div", __spreadValues({ ref, className: cn("flex items-center", className) }, props));
6194
+ return /* @__PURE__ */ jsx22("div", __spreadValues({ ref, className: cn("flex items-center", className) }, props));
5845
6195
  });
5846
6196
  InputOTPGroup.displayName = "InputOTPGroup";
5847
- var InputOTPSlot = React45.forwardRef((_a, ref) => {
6197
+ var InputOTPSlot = React46.forwardRef((_a, ref) => {
5848
6198
  var _b = _a, { index, className } = _b, props = __objRest(_b, ["index", "className"]);
5849
- const inputOTPContext = React45.useContext(OTPInputContext);
6199
+ const inputOTPContext = React46.useContext(OTPInputContext);
5850
6200
  const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
5851
- return /* @__PURE__ */ jsxs11(
6201
+ return /* @__PURE__ */ jsxs13(
5852
6202
  "div",
5853
6203
  __spreadProps(__spreadValues({
5854
6204
  ref,
@@ -5860,35 +6210,35 @@ var InputOTPSlot = React45.forwardRef((_a, ref) => {
5860
6210
  }, props), {
5861
6211
  children: [
5862
6212
  char,
5863
- hasFakeCaret && /* @__PURE__ */ jsx21("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx21("div", { className: "animate-caret-blink h-4 w-px bg-foreground duration-1000" }) })
6213
+ hasFakeCaret && /* @__PURE__ */ jsx22("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx22("div", { className: "animate-caret-blink h-4 w-px bg-foreground duration-1000" }) })
5864
6214
  ]
5865
6215
  })
5866
6216
  );
5867
6217
  });
5868
6218
  InputOTPSlot.displayName = "InputOTPSlot";
5869
- var InputOTPSeparator = React45.forwardRef((_a, ref) => {
6219
+ var InputOTPSeparator = React46.forwardRef((_a, ref) => {
5870
6220
  var props = __objRest(_a, []);
5871
- return /* @__PURE__ */ jsx21("div", __spreadProps(__spreadValues({ ref, role: "separator" }, props), { children: /* @__PURE__ */ jsx21(DashIcon, {}) }));
6221
+ return /* @__PURE__ */ jsx22("div", __spreadProps(__spreadValues({ ref, role: "separator" }, props), { children: /* @__PURE__ */ jsx22(DashIcon, {}) }));
5872
6222
  });
5873
6223
  InputOTPSeparator.displayName = "InputOTPSeparator";
5874
6224
 
5875
6225
  // src/components/menubar.tsx
5876
6226
  import {
5877
- CheckIcon as CheckIcon4,
6227
+ CheckIcon as CheckIcon5,
5878
6228
  ChevronRightIcon as ChevronRightIcon4,
5879
6229
  DotFilledIcon as DotFilledIcon3
5880
6230
  } from "@radix-ui/react-icons";
5881
6231
  import * as MenubarPrimitive from "@radix-ui/react-menubar";
5882
- import * as React46 from "react";
5883
- import { jsx as jsx22, jsxs as jsxs12 } from "react/jsx-runtime";
6232
+ import * as React47 from "react";
6233
+ import { jsx as jsx23, jsxs as jsxs14 } from "react/jsx-runtime";
5884
6234
  var MenubarMenu = MenubarPrimitive.Menu;
5885
6235
  var MenubarGroup = MenubarPrimitive.Group;
5886
6236
  var MenubarPortal = MenubarPrimitive.Portal;
5887
6237
  var MenubarSub = MenubarPrimitive.Sub;
5888
6238
  var MenubarRadioGroup = MenubarPrimitive.RadioGroup;
5889
- var Menubar = React46.forwardRef((_a, ref) => {
6239
+ var Menubar = React47.forwardRef((_a, ref) => {
5890
6240
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5891
- return /* @__PURE__ */ jsx22(
6241
+ return /* @__PURE__ */ jsx23(
5892
6242
  MenubarPrimitive.Root,
5893
6243
  __spreadValues({
5894
6244
  ref,
@@ -5900,9 +6250,9 @@ var Menubar = React46.forwardRef((_a, ref) => {
5900
6250
  );
5901
6251
  });
5902
6252
  Menubar.displayName = MenubarPrimitive.Root.displayName;
5903
- var MenubarTrigger = React46.forwardRef((_a, ref) => {
6253
+ var MenubarTrigger = React47.forwardRef((_a, ref) => {
5904
6254
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5905
- return /* @__PURE__ */ jsx22(
6255
+ return /* @__PURE__ */ jsx23(
5906
6256
  MenubarPrimitive.Trigger,
5907
6257
  __spreadValues({
5908
6258
  ref,
@@ -5914,9 +6264,9 @@ var MenubarTrigger = React46.forwardRef((_a, ref) => {
5914
6264
  );
5915
6265
  });
5916
6266
  MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
5917
- var MenubarSubTrigger = React46.forwardRef((_a, ref) => {
6267
+ var MenubarSubTrigger = React47.forwardRef((_a, ref) => {
5918
6268
  var _b = _a, { className, inset, children } = _b, props = __objRest(_b, ["className", "inset", "children"]);
5919
- return /* @__PURE__ */ jsxs12(
6269
+ return /* @__PURE__ */ jsxs14(
5920
6270
  MenubarPrimitive.SubTrigger,
5921
6271
  __spreadProps(__spreadValues({
5922
6272
  ref,
@@ -5928,15 +6278,15 @@ var MenubarSubTrigger = React46.forwardRef((_a, ref) => {
5928
6278
  }, props), {
5929
6279
  children: [
5930
6280
  children,
5931
- /* @__PURE__ */ jsx22(ChevronRightIcon4, { className: "ml-auto h-4 w-4" })
6281
+ /* @__PURE__ */ jsx23(ChevronRightIcon4, { className: "ml-auto h-4 w-4" })
5932
6282
  ]
5933
6283
  })
5934
6284
  );
5935
6285
  });
5936
6286
  MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
5937
- var MenubarSubContent = React46.forwardRef((_a, ref) => {
6287
+ var MenubarSubContent = React47.forwardRef((_a, ref) => {
5938
6288
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5939
- return /* @__PURE__ */ jsx22(
6289
+ return /* @__PURE__ */ jsx23(
5940
6290
  MenubarPrimitive.SubContent,
5941
6291
  __spreadValues({
5942
6292
  ref,
@@ -5948,10 +6298,10 @@ var MenubarSubContent = React46.forwardRef((_a, ref) => {
5948
6298
  );
5949
6299
  });
5950
6300
  MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
5951
- var MenubarContent = React46.forwardRef(
6301
+ var MenubarContent = React47.forwardRef(
5952
6302
  (_a, ref) => {
5953
6303
  var _b = _a, { className, align = "start", alignOffset = -4, sideOffset = 8 } = _b, props = __objRest(_b, ["className", "align", "alignOffset", "sideOffset"]);
5954
- return /* @__PURE__ */ jsx22(MenubarPrimitive.Portal, { children: /* @__PURE__ */ jsx22(
6304
+ return /* @__PURE__ */ jsx23(MenubarPrimitive.Portal, { children: /* @__PURE__ */ jsx23(
5955
6305
  MenubarPrimitive.Content,
5956
6306
  __spreadValues({
5957
6307
  ref,
@@ -5967,9 +6317,9 @@ var MenubarContent = React46.forwardRef(
5967
6317
  }
5968
6318
  );
5969
6319
  MenubarContent.displayName = MenubarPrimitive.Content.displayName;
5970
- var MenubarItem = React46.forwardRef((_a, ref) => {
6320
+ var MenubarItem = React47.forwardRef((_a, ref) => {
5971
6321
  var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
5972
- return /* @__PURE__ */ jsx22(
6322
+ return /* @__PURE__ */ jsx23(
5973
6323
  MenubarPrimitive.Item,
5974
6324
  __spreadValues({
5975
6325
  ref,
@@ -5982,9 +6332,9 @@ var MenubarItem = React46.forwardRef((_a, ref) => {
5982
6332
  );
5983
6333
  });
5984
6334
  MenubarItem.displayName = MenubarPrimitive.Item.displayName;
5985
- var MenubarCheckboxItem = React46.forwardRef((_a, ref) => {
6335
+ var MenubarCheckboxItem = React47.forwardRef((_a, ref) => {
5986
6336
  var _b = _a, { className, children, checked } = _b, props = __objRest(_b, ["className", "children", "checked"]);
5987
- return /* @__PURE__ */ jsxs12(
6337
+ return /* @__PURE__ */ jsxs14(
5988
6338
  MenubarPrimitive.CheckboxItem,
5989
6339
  __spreadProps(__spreadValues({
5990
6340
  ref,
@@ -5995,16 +6345,16 @@ var MenubarCheckboxItem = React46.forwardRef((_a, ref) => {
5995
6345
  checked
5996
6346
  }, props), {
5997
6347
  children: [
5998
- /* @__PURE__ */ jsx22("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx22(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx22(CheckIcon4, { className: "h-4 w-4" }) }) }),
6348
+ /* @__PURE__ */ jsx23("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx23(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx23(CheckIcon5, { className: "h-4 w-4" }) }) }),
5999
6349
  children
6000
6350
  ]
6001
6351
  })
6002
6352
  );
6003
6353
  });
6004
6354
  MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
6005
- var MenubarRadioItem = React46.forwardRef((_a, ref) => {
6355
+ var MenubarRadioItem = React47.forwardRef((_a, ref) => {
6006
6356
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
6007
- return /* @__PURE__ */ jsxs12(
6357
+ return /* @__PURE__ */ jsxs14(
6008
6358
  MenubarPrimitive.RadioItem,
6009
6359
  __spreadProps(__spreadValues({
6010
6360
  ref,
@@ -6014,16 +6364,16 @@ var MenubarRadioItem = React46.forwardRef((_a, ref) => {
6014
6364
  )
6015
6365
  }, props), {
6016
6366
  children: [
6017
- /* @__PURE__ */ jsx22("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx22(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx22(DotFilledIcon3, { className: "h-4 w-4 fill-current" }) }) }),
6367
+ /* @__PURE__ */ jsx23("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx23(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx23(DotFilledIcon3, { className: "h-4 w-4 fill-current" }) }) }),
6018
6368
  children
6019
6369
  ]
6020
6370
  })
6021
6371
  );
6022
6372
  });
6023
6373
  MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
6024
- var MenubarLabel = React46.forwardRef((_a, ref) => {
6374
+ var MenubarLabel = React47.forwardRef((_a, ref) => {
6025
6375
  var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
6026
- return /* @__PURE__ */ jsx22(
6376
+ return /* @__PURE__ */ jsx23(
6027
6377
  MenubarPrimitive.Label,
6028
6378
  __spreadValues({
6029
6379
  ref,
@@ -6036,9 +6386,9 @@ var MenubarLabel = React46.forwardRef((_a, ref) => {
6036
6386
  );
6037
6387
  });
6038
6388
  MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
6039
- var MenubarSeparator = React46.forwardRef((_a, ref) => {
6389
+ var MenubarSeparator = React47.forwardRef((_a, ref) => {
6040
6390
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6041
- return /* @__PURE__ */ jsx22(
6391
+ return /* @__PURE__ */ jsx23(
6042
6392
  MenubarPrimitive.Separator,
6043
6393
  __spreadValues({
6044
6394
  ref,
@@ -6053,7 +6403,7 @@ var MenubarShortcut = (_a) => {
6053
6403
  } = _b, props = __objRest(_b, [
6054
6404
  "className"
6055
6405
  ]);
6056
- return /* @__PURE__ */ jsx22(
6406
+ return /* @__PURE__ */ jsx23(
6057
6407
  "span",
6058
6408
  __spreadValues({
6059
6409
  className: cn(
@@ -6066,7 +6416,7 @@ var MenubarShortcut = (_a) => {
6066
6416
  MenubarShortcut.displayname = "MenubarShortcut";
6067
6417
 
6068
6418
  // src/components/modal.tsx
6069
- import { jsx as jsx23, jsxs as jsxs13 } from "react/jsx-runtime";
6419
+ import { jsx as jsx24, jsxs as jsxs15 } from "react/jsx-runtime";
6070
6420
  var Modal = ({
6071
6421
  title,
6072
6422
  description,
@@ -6080,24 +6430,24 @@ var Modal = ({
6080
6430
  onClose();
6081
6431
  }
6082
6432
  };
6083
- return /* @__PURE__ */ jsx23(Dialog, { open: isOpen, onOpenChange: onChange, children: /* @__PURE__ */ jsxs13(DialogContent, { className, children: [
6084
- /* @__PURE__ */ jsxs13(DialogHeader, { children: [
6085
- /* @__PURE__ */ jsx23(DialogTitle, { children: title }),
6086
- /* @__PURE__ */ jsx23(DialogDescription, { children: description })
6433
+ return /* @__PURE__ */ jsx24(Dialog, { open: isOpen, onOpenChange: onChange, children: /* @__PURE__ */ jsxs15(DialogContent, { className, children: [
6434
+ /* @__PURE__ */ jsxs15(DialogHeader, { children: [
6435
+ /* @__PURE__ */ jsx24(DialogTitle, { children: title }),
6436
+ /* @__PURE__ */ jsx24(DialogDescription, { children: description })
6087
6437
  ] }),
6088
- /* @__PURE__ */ jsx23("div", { children })
6438
+ /* @__PURE__ */ jsx24("div", { children })
6089
6439
  ] }) });
6090
6440
  };
6091
6441
 
6092
6442
  // src/components/navigation-menu.tsx
6093
- import { ChevronDownIcon as ChevronDownIcon2 } from "@radix-ui/react-icons";
6443
+ import { ChevronDownIcon as ChevronDownIcon3 } from "@radix-ui/react-icons";
6094
6444
  import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
6095
6445
  import { cva as cva5 } from "class-variance-authority";
6096
- import * as React47 from "react";
6097
- import { jsx as jsx24, jsxs as jsxs14 } from "react/jsx-runtime";
6098
- var NavigationMenu = React47.forwardRef((_a, ref) => {
6446
+ import * as React48 from "react";
6447
+ import { jsx as jsx25, jsxs as jsxs16 } from "react/jsx-runtime";
6448
+ var NavigationMenu = React48.forwardRef((_a, ref) => {
6099
6449
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
6100
- return /* @__PURE__ */ jsxs14(
6450
+ return /* @__PURE__ */ jsxs16(
6101
6451
  NavigationMenuPrimitive.Root,
6102
6452
  __spreadProps(__spreadValues({
6103
6453
  ref,
@@ -6108,15 +6458,15 @@ var NavigationMenu = React47.forwardRef((_a, ref) => {
6108
6458
  }, props), {
6109
6459
  children: [
6110
6460
  children,
6111
- /* @__PURE__ */ jsx24(NavigationMenuViewport, {})
6461
+ /* @__PURE__ */ jsx25(NavigationMenuViewport, {})
6112
6462
  ]
6113
6463
  })
6114
6464
  );
6115
6465
  });
6116
6466
  NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
6117
- var NavigationMenuList = React47.forwardRef((_a, ref) => {
6467
+ var NavigationMenuList = React48.forwardRef((_a, ref) => {
6118
6468
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6119
- return /* @__PURE__ */ jsx24(
6469
+ return /* @__PURE__ */ jsx25(
6120
6470
  NavigationMenuPrimitive.List,
6121
6471
  __spreadValues({
6122
6472
  ref,
@@ -6132,9 +6482,9 @@ var NavigationMenuItem = NavigationMenuPrimitive.Item;
6132
6482
  var navigationMenuTriggerStyle = cva5(
6133
6483
  "group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"
6134
6484
  );
6135
- var NavigationMenuTrigger = React47.forwardRef((_a, ref) => {
6485
+ var NavigationMenuTrigger = React48.forwardRef((_a, ref) => {
6136
6486
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
6137
- return /* @__PURE__ */ jsxs14(
6487
+ return /* @__PURE__ */ jsxs16(
6138
6488
  NavigationMenuPrimitive.Trigger,
6139
6489
  __spreadProps(__spreadValues({
6140
6490
  ref,
@@ -6143,8 +6493,8 @@ var NavigationMenuTrigger = React47.forwardRef((_a, ref) => {
6143
6493
  children: [
6144
6494
  children,
6145
6495
  " ",
6146
- /* @__PURE__ */ jsx24(
6147
- ChevronDownIcon2,
6496
+ /* @__PURE__ */ jsx25(
6497
+ ChevronDownIcon3,
6148
6498
  {
6149
6499
  className: "relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180",
6150
6500
  "aria-hidden": "true"
@@ -6155,9 +6505,9 @@ var NavigationMenuTrigger = React47.forwardRef((_a, ref) => {
6155
6505
  );
6156
6506
  });
6157
6507
  NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
6158
- var NavigationMenuContent = React47.forwardRef((_a, ref) => {
6508
+ var NavigationMenuContent = React48.forwardRef((_a, ref) => {
6159
6509
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6160
- return /* @__PURE__ */ jsx24(
6510
+ return /* @__PURE__ */ jsx25(
6161
6511
  NavigationMenuPrimitive.Content,
6162
6512
  __spreadValues({
6163
6513
  ref,
@@ -6170,9 +6520,9 @@ var NavigationMenuContent = React47.forwardRef((_a, ref) => {
6170
6520
  });
6171
6521
  NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
6172
6522
  var NavigationMenuLink = NavigationMenuPrimitive.Link;
6173
- var NavigationMenuViewport = React47.forwardRef((_a, ref) => {
6523
+ var NavigationMenuViewport = React48.forwardRef((_a, ref) => {
6174
6524
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6175
- return /* @__PURE__ */ jsx24("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsx24(
6525
+ return /* @__PURE__ */ jsx25("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsx25(
6176
6526
  NavigationMenuPrimitive.Viewport,
6177
6527
  __spreadValues({
6178
6528
  className: cn(
@@ -6184,9 +6534,9 @@ var NavigationMenuViewport = React47.forwardRef((_a, ref) => {
6184
6534
  ) });
6185
6535
  });
6186
6536
  NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
6187
- var NavigationMenuIndicator = React47.forwardRef((_a, ref) => {
6537
+ var NavigationMenuIndicator = React48.forwardRef((_a, ref) => {
6188
6538
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6189
- return /* @__PURE__ */ jsx24(
6539
+ return /* @__PURE__ */ jsx25(
6190
6540
  NavigationMenuPrimitive.Indicator,
6191
6541
  __spreadProps(__spreadValues({
6192
6542
  ref,
@@ -6195,7 +6545,7 @@ var NavigationMenuIndicator = React47.forwardRef((_a, ref) => {
6195
6545
  className
6196
6546
  )
6197
6547
  }, props), {
6198
- children: /* @__PURE__ */ jsx24("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
6548
+ children: /* @__PURE__ */ jsx25("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
6199
6549
  })
6200
6550
  );
6201
6551
  });
@@ -6207,12 +6557,12 @@ import {
6207
6557
  ChevronRightIcon as ChevronRightIcon5,
6208
6558
  DotsHorizontalIcon as DotsHorizontalIcon2
6209
6559
  } from "@radix-ui/react-icons";
6210
- import * as React48 from "react";
6560
+ import * as React49 from "react";
6211
6561
  import { ChevronLeft as ChevronLeft2, ChevronRight as ChevronRight2 } from "lucide-react";
6212
- import { jsx as jsx25, jsxs as jsxs15 } from "react/jsx-runtime";
6562
+ import { jsx as jsx26, jsxs as jsxs17 } from "react/jsx-runtime";
6213
6563
  var Pagination = (_a) => {
6214
6564
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6215
- return /* @__PURE__ */ jsx25(
6565
+ return /* @__PURE__ */ jsx26(
6216
6566
  "nav",
6217
6567
  __spreadValues({
6218
6568
  role: "navigation",
@@ -6222,9 +6572,9 @@ var Pagination = (_a) => {
6222
6572
  );
6223
6573
  };
6224
6574
  Pagination.displayName = "Pagination";
6225
- var PaginationContent = React48.forwardRef((_a, ref) => {
6575
+ var PaginationContent = React49.forwardRef((_a, ref) => {
6226
6576
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6227
- return /* @__PURE__ */ jsx25(
6577
+ return /* @__PURE__ */ jsx26(
6228
6578
  "ul",
6229
6579
  __spreadValues({
6230
6580
  ref,
@@ -6233,9 +6583,9 @@ var PaginationContent = React48.forwardRef((_a, ref) => {
6233
6583
  );
6234
6584
  });
6235
6585
  PaginationContent.displayName = "PaginationContent";
6236
- var PaginationItem = React48.forwardRef((_a, ref) => {
6586
+ var PaginationItem = React49.forwardRef((_a, ref) => {
6237
6587
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6238
- return /* @__PURE__ */ jsx25("li", __spreadValues({ ref, className: cn("", className) }, props));
6588
+ return /* @__PURE__ */ jsx26("li", __spreadValues({ ref, className: cn("", className) }, props));
6239
6589
  });
6240
6590
  PaginationItem.displayName = "PaginationItem";
6241
6591
  var PaginationLink = (_a) => {
@@ -6248,7 +6598,7 @@ var PaginationLink = (_a) => {
6248
6598
  "isActive",
6249
6599
  "size"
6250
6600
  ]);
6251
- return /* @__PURE__ */ jsx25(
6601
+ return /* @__PURE__ */ jsx26(
6252
6602
  "a",
6253
6603
  __spreadValues({
6254
6604
  "aria-current": isActive ? "page" : void 0,
@@ -6269,7 +6619,7 @@ var PaginationPreviousLast = (_a) => {
6269
6619
  } = _b, props = __objRest(_b, [
6270
6620
  "className"
6271
6621
  ]);
6272
- return /* @__PURE__ */ jsxs15(
6622
+ return /* @__PURE__ */ jsxs17(
6273
6623
  PaginationLink,
6274
6624
  __spreadProps(__spreadValues({
6275
6625
  "aria-label": "Go to previous page",
@@ -6277,8 +6627,8 @@ var PaginationPreviousLast = (_a) => {
6277
6627
  className: cn("gap-1 pl-2.5", className)
6278
6628
  }, props), {
6279
6629
  children: [
6280
- /* @__PURE__ */ jsx25(ChevronLeft2, { className: "h-4 w-4" }),
6281
- /* @__PURE__ */ jsx25("span", { className: "sr-only", children: "Previous Last" })
6630
+ /* @__PURE__ */ jsx26(ChevronLeft2, { className: "h-4 w-4" }),
6631
+ /* @__PURE__ */ jsx26("span", { className: "sr-only", children: "Previous Last" })
6282
6632
  ]
6283
6633
  })
6284
6634
  );
@@ -6290,7 +6640,7 @@ var PaginationPrevious = (_a) => {
6290
6640
  } = _b, props = __objRest(_b, [
6291
6641
  "className"
6292
6642
  ]);
6293
- return /* @__PURE__ */ jsxs15(
6643
+ return /* @__PURE__ */ jsxs17(
6294
6644
  PaginationLink,
6295
6645
  __spreadProps(__spreadValues({
6296
6646
  "aria-label": "Go to previous page",
@@ -6298,8 +6648,8 @@ var PaginationPrevious = (_a) => {
6298
6648
  className: cn("gap-1 pl-2.5", className)
6299
6649
  }, props), {
6300
6650
  children: [
6301
- /* @__PURE__ */ jsx25(ChevronLeftIcon, { className: "h-4 w-4" }),
6302
- /* @__PURE__ */ jsx25("span", { children: "Previous" })
6651
+ /* @__PURE__ */ jsx26(ChevronLeftIcon, { className: "h-4 w-4" }),
6652
+ /* @__PURE__ */ jsx26("span", { children: "Previous" })
6303
6653
  ]
6304
6654
  })
6305
6655
  );
@@ -6311,7 +6661,7 @@ var PaginationNext = (_a) => {
6311
6661
  } = _b, props = __objRest(_b, [
6312
6662
  "className"
6313
6663
  ]);
6314
- return /* @__PURE__ */ jsxs15(
6664
+ return /* @__PURE__ */ jsxs17(
6315
6665
  PaginationLink,
6316
6666
  __spreadProps(__spreadValues({
6317
6667
  "aria-label": "Go to next page",
@@ -6319,8 +6669,8 @@ var PaginationNext = (_a) => {
6319
6669
  className: cn("gap-1 pr-2.5", className)
6320
6670
  }, props), {
6321
6671
  children: [
6322
- /* @__PURE__ */ jsx25("span", { children: "Next" }),
6323
- /* @__PURE__ */ jsx25(ChevronRightIcon5, { className: "h-4 w-4" })
6672
+ /* @__PURE__ */ jsx26("span", { children: "Next" }),
6673
+ /* @__PURE__ */ jsx26(ChevronRightIcon5, { className: "h-4 w-4" })
6324
6674
  ]
6325
6675
  })
6326
6676
  );
@@ -6332,7 +6682,7 @@ var PaginationNextLast = (_a) => {
6332
6682
  } = _b, props = __objRest(_b, [
6333
6683
  "className"
6334
6684
  ]);
6335
- return /* @__PURE__ */ jsxs15(
6685
+ return /* @__PURE__ */ jsxs17(
6336
6686
  PaginationLink,
6337
6687
  __spreadProps(__spreadValues({
6338
6688
  "aria-label": "Go to next page",
@@ -6340,8 +6690,8 @@ var PaginationNextLast = (_a) => {
6340
6690
  className: cn("gap-1 pr-2.5", className)
6341
6691
  }, props), {
6342
6692
  children: [
6343
- /* @__PURE__ */ jsx25("span", { className: "sr-only", children: "Next Last" }),
6344
- /* @__PURE__ */ jsx25(ChevronRight2, { className: "h-4 w-4" })
6693
+ /* @__PURE__ */ jsx26("span", { className: "sr-only", children: "Next Last" }),
6694
+ /* @__PURE__ */ jsx26(ChevronRight2, { className: "h-4 w-4" })
6345
6695
  ]
6346
6696
  })
6347
6697
  );
@@ -6353,15 +6703,15 @@ var PaginationEllipsis = (_a) => {
6353
6703
  } = _b, props = __objRest(_b, [
6354
6704
  "className"
6355
6705
  ]);
6356
- return /* @__PURE__ */ jsxs15(
6706
+ return /* @__PURE__ */ jsxs17(
6357
6707
  "span",
6358
6708
  __spreadProps(__spreadValues({
6359
6709
  "aria-hidden": true,
6360
6710
  className: cn("flex h-9 w-9 items-center justify-center", className)
6361
6711
  }, props), {
6362
6712
  children: [
6363
- /* @__PURE__ */ jsx25(DotsHorizontalIcon2, { className: "h-4 w-4" }),
6364
- /* @__PURE__ */ jsx25("span", { className: "sr-only", children: "More pages" })
6713
+ /* @__PURE__ */ jsx26(DotsHorizontalIcon2, { className: "h-4 w-4" }),
6714
+ /* @__PURE__ */ jsx26("span", { className: "sr-only", children: "More pages" })
6365
6715
  ]
6366
6716
  })
6367
6717
  );
@@ -6370,14 +6720,14 @@ PaginationEllipsis.displayName = "PaginationEllipsis";
6370
6720
 
6371
6721
  // src/components/popover.tsx
6372
6722
  import * as PopoverPrimitive from "@radix-ui/react-popover";
6373
- import * as React49 from "react";
6374
- import { jsx as jsx26 } from "react/jsx-runtime";
6723
+ import * as React50 from "react";
6724
+ import { jsx as jsx27 } from "react/jsx-runtime";
6375
6725
  var Popover = PopoverPrimitive.Root;
6376
6726
  var PopoverTrigger = PopoverPrimitive.Trigger;
6377
6727
  var PopoverAnchor = PopoverPrimitive.Anchor;
6378
- var PopoverContent = React49.forwardRef((_a, ref) => {
6728
+ var PopoverContent = React50.forwardRef((_a, ref) => {
6379
6729
  var _b = _a, { className, align = "center", sideOffset = 4 } = _b, props = __objRest(_b, ["className", "align", "sideOffset"]);
6380
- return /* @__PURE__ */ jsx26(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx26(
6730
+ return /* @__PURE__ */ jsx27(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx27(
6381
6731
  PopoverPrimitive.Content,
6382
6732
  __spreadValues({
6383
6733
  ref,
@@ -6394,11 +6744,11 @@ PopoverContent.displayName = PopoverPrimitive.Content.displayName;
6394
6744
 
6395
6745
  // src/components/progress.tsx
6396
6746
  import * as ProgressPrimitive from "@radix-ui/react-progress";
6397
- import * as React50 from "react";
6398
- import { jsx as jsx27 } from "react/jsx-runtime";
6399
- var Progress = React50.forwardRef((_a, ref) => {
6747
+ import * as React51 from "react";
6748
+ import { jsx as jsx28 } from "react/jsx-runtime";
6749
+ var Progress = React51.forwardRef((_a, ref) => {
6400
6750
  var _b = _a, { className, value } = _b, props = __objRest(_b, ["className", "value"]);
6401
- return /* @__PURE__ */ jsx27(
6751
+ return /* @__PURE__ */ jsx28(
6402
6752
  ProgressPrimitive.Root,
6403
6753
  __spreadProps(__spreadValues({
6404
6754
  ref,
@@ -6407,7 +6757,7 @@ var Progress = React50.forwardRef((_a, ref) => {
6407
6757
  className
6408
6758
  )
6409
6759
  }, props), {
6410
- children: /* @__PURE__ */ jsx27(
6760
+ children: /* @__PURE__ */ jsx28(
6411
6761
  ProgressPrimitive.Indicator,
6412
6762
  {
6413
6763
  className: "h-full w-full flex-1 bg-primary transition-all",
@@ -6420,13 +6770,13 @@ var Progress = React50.forwardRef((_a, ref) => {
6420
6770
  Progress.displayName = ProgressPrimitive.Root.displayName;
6421
6771
 
6422
6772
  // src/components/radio-group.tsx
6423
- import { CheckIcon as CheckIcon5 } from "@radix-ui/react-icons";
6773
+ import { CheckIcon as CheckIcon6 } from "@radix-ui/react-icons";
6424
6774
  import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
6425
- import * as React51 from "react";
6426
- import { jsx as jsx28 } from "react/jsx-runtime";
6427
- var RadioGroup4 = React51.forwardRef((_a, ref) => {
6775
+ import * as React52 from "react";
6776
+ import { jsx as jsx29 } from "react/jsx-runtime";
6777
+ var RadioGroup4 = React52.forwardRef((_a, ref) => {
6428
6778
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6429
- return /* @__PURE__ */ jsx28(
6779
+ return /* @__PURE__ */ jsx29(
6430
6780
  RadioGroupPrimitive.Root,
6431
6781
  __spreadProps(__spreadValues({
6432
6782
  className: cn("grid gap-2", className)
@@ -6436,9 +6786,9 @@ var RadioGroup4 = React51.forwardRef((_a, ref) => {
6436
6786
  );
6437
6787
  });
6438
6788
  RadioGroup4.displayName = RadioGroupPrimitive.Root.displayName;
6439
- var RadioGroupItem = React51.forwardRef((_a, ref) => {
6789
+ var RadioGroupItem = React52.forwardRef((_a, ref) => {
6440
6790
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6441
- return /* @__PURE__ */ jsx28(
6791
+ return /* @__PURE__ */ jsx29(
6442
6792
  RadioGroupPrimitive.Item,
6443
6793
  __spreadProps(__spreadValues({
6444
6794
  ref,
@@ -6447,7 +6797,7 @@ var RadioGroupItem = React51.forwardRef((_a, ref) => {
6447
6797
  className
6448
6798
  )
6449
6799
  }, props), {
6450
- children: /* @__PURE__ */ jsx28(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx28(CheckIcon5, { className: "h-3.5 w-3.5 fill-primary" }) })
6800
+ children: /* @__PURE__ */ jsx29(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx29(CheckIcon6, { className: "h-3.5 w-3.5 fill-primary" }) })
6451
6801
  })
6452
6802
  );
6453
6803
  });
@@ -6456,14 +6806,14 @@ RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
6456
6806
  // src/components/resizable.tsx
6457
6807
  import { DragHandleDots2Icon } from "@radix-ui/react-icons";
6458
6808
  import * as ResizablePrimitive from "react-resizable-panels";
6459
- import { jsx as jsx29 } from "react/jsx-runtime";
6809
+ import { jsx as jsx30 } from "react/jsx-runtime";
6460
6810
  var ResizablePanelGroup = (_a) => {
6461
6811
  var _b = _a, {
6462
6812
  className
6463
6813
  } = _b, props = __objRest(_b, [
6464
6814
  "className"
6465
6815
  ]);
6466
- return /* @__PURE__ */ jsx29(
6816
+ return /* @__PURE__ */ jsx30(
6467
6817
  ResizablePrimitive.PanelGroup,
6468
6818
  __spreadValues({
6469
6819
  className: cn(
@@ -6482,7 +6832,7 @@ var ResizableHandle = (_a) => {
6482
6832
  "withHandle",
6483
6833
  "className"
6484
6834
  ]);
6485
- return /* @__PURE__ */ jsx29(
6835
+ return /* @__PURE__ */ jsx30(
6486
6836
  ResizablePrimitive.PanelResizeHandle,
6487
6837
  __spreadProps(__spreadValues({
6488
6838
  className: cn(
@@ -6490,35 +6840,35 @@ var ResizableHandle = (_a) => {
6490
6840
  className
6491
6841
  )
6492
6842
  }, props), {
6493
- children: withHandle && /* @__PURE__ */ jsx29("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ jsx29(DragHandleDots2Icon, { className: "h-2.5 w-2.5" }) })
6843
+ children: withHandle && /* @__PURE__ */ jsx30("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ jsx30(DragHandleDots2Icon, { className: "h-2.5 w-2.5" }) })
6494
6844
  })
6495
6845
  );
6496
6846
  };
6497
6847
 
6498
6848
  // src/components/scroll-area.tsx
6499
6849
  import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
6500
- import * as React52 from "react";
6501
- import { jsx as jsx30, jsxs as jsxs16 } from "react/jsx-runtime";
6502
- var ScrollArea = React52.forwardRef((_a, ref) => {
6850
+ import * as React53 from "react";
6851
+ import { jsx as jsx31, jsxs as jsxs18 } from "react/jsx-runtime";
6852
+ var ScrollArea = React53.forwardRef((_a, ref) => {
6503
6853
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
6504
- return /* @__PURE__ */ jsxs16(
6854
+ return /* @__PURE__ */ jsxs18(
6505
6855
  ScrollAreaPrimitive.Root,
6506
6856
  __spreadProps(__spreadValues({
6507
6857
  ref,
6508
6858
  className: cn("relative overflow-hidden", className)
6509
6859
  }, props), {
6510
6860
  children: [
6511
- /* @__PURE__ */ jsx30(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
6512
- /* @__PURE__ */ jsx30(ScrollBar, {}),
6513
- /* @__PURE__ */ jsx30(ScrollAreaPrimitive.Corner, {})
6861
+ /* @__PURE__ */ jsx31(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
6862
+ /* @__PURE__ */ jsx31(ScrollBar, {}),
6863
+ /* @__PURE__ */ jsx31(ScrollAreaPrimitive.Corner, {})
6514
6864
  ]
6515
6865
  })
6516
6866
  );
6517
6867
  });
6518
6868
  ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
6519
- var ScrollBar = React52.forwardRef((_a, ref) => {
6869
+ var ScrollBar = React53.forwardRef((_a, ref) => {
6520
6870
  var _b = _a, { className, orientation = "vertical" } = _b, props = __objRest(_b, ["className", "orientation"]);
6521
- return /* @__PURE__ */ jsx30(
6871
+ return /* @__PURE__ */ jsx31(
6522
6872
  ScrollAreaPrimitive.ScrollAreaScrollbar,
6523
6873
  __spreadProps(__spreadValues({
6524
6874
  ref,
@@ -6530,16 +6880,16 @@ var ScrollBar = React52.forwardRef((_a, ref) => {
6530
6880
  className
6531
6881
  )
6532
6882
  }, props), {
6533
- children: /* @__PURE__ */ jsx30(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
6883
+ children: /* @__PURE__ */ jsx31(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
6534
6884
  })
6535
6885
  );
6536
6886
  });
6537
6887
  ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
6538
6888
 
6539
6889
  // src/components/search-input.tsx
6540
- import React53, { useCallback as useCallback4 } from "react";
6890
+ import React54, { useCallback as useCallback4 } from "react";
6541
6891
  import { useDebounce } from "use-debounce";
6542
- import { jsx as jsx31 } from "react/jsx-runtime";
6892
+ import { jsx as jsx32 } from "react/jsx-runtime";
6543
6893
  function SearchInput({
6544
6894
  value,
6545
6895
  placeholder,
@@ -6548,18 +6898,18 @@ function SearchInput({
6548
6898
  debounceTime = 750,
6549
6899
  onSearch
6550
6900
  }) {
6551
- const [searchTerm, setSearchTerm] = React53.useState(value);
6901
+ const [searchTerm, setSearchTerm] = React54.useState(value);
6552
6902
  const [debouncedValue] = useDebounce(searchTerm, debounceTime);
6553
6903
  const handleSettingSearchParams = useCallback4((newSearchValue) => {
6554
6904
  onSearch(newSearchValue);
6555
6905
  }, []);
6556
- React53.useEffect(() => {
6906
+ React54.useEffect(() => {
6557
6907
  handleSettingSearchParams(debouncedValue);
6558
6908
  }, [debouncedValue, handleSettingSearchParams]);
6559
- React53.useEffect(() => {
6909
+ React54.useEffect(() => {
6560
6910
  setSearchTerm(value);
6561
6911
  }, [value]);
6562
- return /* @__PURE__ */ jsx31(
6912
+ return /* @__PURE__ */ jsx32(
6563
6913
  Input,
6564
6914
  {
6565
6915
  placeholder: placeholder || `Search...`,
@@ -6571,143 +6921,6 @@ function SearchInput({
6571
6921
  );
6572
6922
  }
6573
6923
 
6574
- // src/components/select.tsx
6575
- import {
6576
- CaretSortIcon,
6577
- CheckIcon as CheckIcon6,
6578
- ChevronDownIcon as ChevronDownIcon3,
6579
- ChevronUpIcon
6580
- } from "@radix-ui/react-icons";
6581
- import * as SelectPrimitive from "@radix-ui/react-select";
6582
- import * as React54 from "react";
6583
- import { jsx as jsx32, jsxs as jsxs17 } from "react/jsx-runtime";
6584
- var Select2 = SelectPrimitive.Root;
6585
- var SelectGroup = SelectPrimitive.Group;
6586
- var SelectValue = SelectPrimitive.Value;
6587
- var SelectTrigger = React54.forwardRef((_a, ref) => {
6588
- var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
6589
- return /* @__PURE__ */ jsxs17(
6590
- SelectPrimitive.Trigger,
6591
- __spreadProps(__spreadValues({
6592
- ref,
6593
- className: cn(
6594
- "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",
6595
- className
6596
- )
6597
- }, props), {
6598
- children: [
6599
- children,
6600
- /* @__PURE__ */ jsx32(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx32(CaretSortIcon, { className: "h-4 w-4 opacity-50" }) })
6601
- ]
6602
- })
6603
- );
6604
- });
6605
- SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
6606
- var SelectScrollUpButton = React54.forwardRef((_a, ref) => {
6607
- var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6608
- return /* @__PURE__ */ jsx32(
6609
- SelectPrimitive.ScrollUpButton,
6610
- __spreadProps(__spreadValues({
6611
- ref,
6612
- className: cn(
6613
- "flex cursor-default items-center justify-center py-1",
6614
- className
6615
- )
6616
- }, props), {
6617
- children: /* @__PURE__ */ jsx32(ChevronUpIcon, {})
6618
- })
6619
- );
6620
- });
6621
- SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
6622
- var SelectScrollDownButton = React54.forwardRef((_a, ref) => {
6623
- var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6624
- return /* @__PURE__ */ jsx32(
6625
- SelectPrimitive.ScrollDownButton,
6626
- __spreadProps(__spreadValues({
6627
- ref,
6628
- className: cn(
6629
- "flex cursor-default items-center justify-center py-1",
6630
- className
6631
- )
6632
- }, props), {
6633
- children: /* @__PURE__ */ jsx32(ChevronDownIcon3, {})
6634
- })
6635
- );
6636
- });
6637
- SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
6638
- var SelectContent = React54.forwardRef((_a, ref) => {
6639
- var _b = _a, { className, children, position = "popper" } = _b, props = __objRest(_b, ["className", "children", "position"]);
6640
- return /* @__PURE__ */ jsx32(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs17(
6641
- SelectPrimitive.Content,
6642
- __spreadProps(__spreadValues({
6643
- ref,
6644
- className: cn(
6645
- "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",
6646
- position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
6647
- className
6648
- ),
6649
- position
6650
- }, props), {
6651
- children: [
6652
- /* @__PURE__ */ jsx32(SelectScrollUpButton, {}),
6653
- /* @__PURE__ */ jsx32(
6654
- SelectPrimitive.Viewport,
6655
- {
6656
- className: cn(
6657
- "p-1",
6658
- position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
6659
- ),
6660
- children
6661
- }
6662
- ),
6663
- /* @__PURE__ */ jsx32(SelectScrollDownButton, {})
6664
- ]
6665
- })
6666
- ) });
6667
- });
6668
- SelectContent.displayName = SelectPrimitive.Content.displayName;
6669
- var SelectLabel = React54.forwardRef((_a, ref) => {
6670
- var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6671
- return /* @__PURE__ */ jsx32(
6672
- SelectPrimitive.Label,
6673
- __spreadValues({
6674
- ref,
6675
- className: cn("px-2 py-1.5 text-sm font-semibold", className)
6676
- }, props)
6677
- );
6678
- });
6679
- SelectLabel.displayName = SelectPrimitive.Label.displayName;
6680
- var SelectItem = React54.forwardRef((_a, ref) => {
6681
- var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
6682
- return /* @__PURE__ */ jsxs17(
6683
- SelectPrimitive.Item,
6684
- __spreadProps(__spreadValues({
6685
- ref,
6686
- className: cn(
6687
- "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",
6688
- className
6689
- )
6690
- }, props), {
6691
- children: [
6692
- /* @__PURE__ */ jsx32("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx32(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx32(CheckIcon6, { className: "h-4 w-4" }) }) }),
6693
- /* @__PURE__ */ jsx32(SelectPrimitive.ItemText, { children })
6694
- ]
6695
- })
6696
- );
6697
- });
6698
- SelectItem.displayName = SelectPrimitive.Item.displayName;
6699
- var SelectSeparator = React54.forwardRef((_a, ref) => {
6700
- var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6701
- return /* @__PURE__ */ jsx32(
6702
- SelectPrimitive.Separator,
6703
- __spreadValues({
6704
- ref,
6705
- className: cn("-mx-1 my-1 h-px bg-muted", className)
6706
- }, props)
6707
- );
6708
- });
6709
- SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
6710
-
6711
6924
  // src/components/separator.tsx
6712
6925
  import * as SeparatorPrimitive from "@radix-ui/react-separator";
6713
6926
  import * as React55 from "react";
@@ -6737,7 +6950,7 @@ import * as SheetPrimitive from "@radix-ui/react-dialog";
6737
6950
  import { Cross2Icon as Cross2Icon2 } from "@radix-ui/react-icons";
6738
6951
  import { cva as cva6 } from "class-variance-authority";
6739
6952
  import * as React56 from "react";
6740
- import { jsx as jsx34, jsxs as jsxs18 } from "react/jsx-runtime";
6953
+ import { jsx as jsx34, jsxs as jsxs19 } from "react/jsx-runtime";
6741
6954
  var Sheet = SheetPrimitive.Root;
6742
6955
  var SheetTrigger = SheetPrimitive.Trigger;
6743
6956
  var SheetClose = SheetPrimitive.Close;
@@ -6775,9 +6988,9 @@ var sheetVariants = cva6(
6775
6988
  );
6776
6989
  var SheetContent = React56.forwardRef((_a, ref) => {
6777
6990
  var _b = _a, { side = "right", className, children } = _b, props = __objRest(_b, ["side", "className", "children"]);
6778
- return /* @__PURE__ */ jsxs18(SheetPortal, { children: [
6991
+ return /* @__PURE__ */ jsxs19(SheetPortal, { children: [
6779
6992
  /* @__PURE__ */ jsx34(SheetOverlay, {}),
6780
- /* @__PURE__ */ jsxs18(
6993
+ /* @__PURE__ */ jsxs19(
6781
6994
  SheetPrimitive.Content,
6782
6995
  __spreadProps(__spreadValues({
6783
6996
  ref,
@@ -6785,7 +6998,7 @@ var SheetContent = React56.forwardRef((_a, ref) => {
6785
6998
  }, props), {
6786
6999
  children: [
6787
7000
  children,
6788
- /* @__PURE__ */ jsxs18(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: [
7001
+ /* @__PURE__ */ jsxs19(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: [
6789
7002
  /* @__PURE__ */ jsx34(Cross2Icon2, { className: "h-4 w-4" }),
6790
7003
  /* @__PURE__ */ jsx34("span", { className: "sr-only", children: "Close" })
6791
7004
  ] })
@@ -6871,10 +7084,10 @@ function Skeleton(_a) {
6871
7084
  // src/components/slider.tsx
6872
7085
  import * as SliderPrimitive from "@radix-ui/react-slider";
6873
7086
  import * as React57 from "react";
6874
- import { jsx as jsx36, jsxs as jsxs19 } from "react/jsx-runtime";
7087
+ import { jsx as jsx36, jsxs as jsxs20 } from "react/jsx-runtime";
6875
7088
  var Slider = React57.forwardRef((_a, ref) => {
6876
7089
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6877
- return /* @__PURE__ */ jsxs19(
7090
+ return /* @__PURE__ */ jsxs20(
6878
7091
  SliderPrimitive.Root,
6879
7092
  __spreadProps(__spreadValues({
6880
7093
  ref,
@@ -7425,7 +7638,7 @@ function useToast() {
7425
7638
  }
7426
7639
 
7427
7640
  // src/shared/alert-modal.tsx
7428
- import { jsx as jsx46, jsxs as jsxs20 } from "react/jsx-runtime";
7641
+ import { jsx as jsx46, jsxs as jsxs21 } from "react/jsx-runtime";
7429
7642
  var AlertModal = ({
7430
7643
  isOpen,
7431
7644
  onClose,
@@ -7446,7 +7659,7 @@ var AlertModal = ({
7446
7659
  isOpen,
7447
7660
  onClose,
7448
7661
  className,
7449
- children: children ? children : /* @__PURE__ */ jsxs20("div", { className: "flex w-full items-center justify-end space-x-2 pt-6", children: [
7662
+ children: children ? children : /* @__PURE__ */ jsxs21("div", { className: "flex w-full items-center justify-end space-x-2 pt-6", children: [
7450
7663
  /* @__PURE__ */ jsx46(Button, { disabled: loading, variant: "outline", onClick: onClose, children: cancelText }),
7451
7664
  /* @__PURE__ */ jsx46(
7452
7665
  Button,
@@ -7466,9 +7679,9 @@ var AlertModal = ({
7466
7679
  // src/shared/breadcrumbs.tsx
7467
7680
  import { Slash } from "lucide-react";
7468
7681
  import { Fragment } from "react";
7469
- import { jsx as jsx47, jsxs as jsxs21 } from "react/jsx-runtime";
7682
+ import { jsx as jsx47, jsxs as jsxs22 } from "react/jsx-runtime";
7470
7683
  function Breadcrumbs({ items, className, classNameList }) {
7471
- return /* @__PURE__ */ jsx47(Breadcrumb, { className, children: /* @__PURE__ */ jsx47(BreadcrumbList, { className: classNameList, children: items.map((item, index) => /* @__PURE__ */ jsxs21(Fragment, { children: [
7684
+ return /* @__PURE__ */ jsx47(Breadcrumb, { className, children: /* @__PURE__ */ jsx47(BreadcrumbList, { className: classNameList, children: items.map((item, index) => /* @__PURE__ */ jsxs22(Fragment, { children: [
7472
7685
  index !== items.length - 1 && /* @__PURE__ */ jsx47(BreadcrumbItem, { className: item.className, children: /* @__PURE__ */ jsx47(BreadcrumbLink, { href: item.link, children: item.title }) }),
7473
7686
  index < items.length - 1 && /* @__PURE__ */ jsx47(BreadcrumbSeparator, { children: /* @__PURE__ */ jsx47(Slash, {}) }),
7474
7687
  index === items.length - 1 && /* @__PURE__ */ jsx47(BreadcrumbPage, { children: item.title })
@@ -7489,7 +7702,7 @@ import {
7489
7702
  useReactTable
7490
7703
  } from "@tanstack/react-table";
7491
7704
  import { ChevronLeftIcon as ChevronLeftIcon2, ChevronRightIcon as ChevronRightIcon6 } from "lucide-react";
7492
- import { Fragment as Fragment2, jsx as jsx48, jsxs as jsxs22 } from "react/jsx-runtime";
7705
+ import { Fragment as Fragment2, jsx as jsx48, jsxs as jsxs23 } from "react/jsx-runtime";
7493
7706
  function DataTable({
7494
7707
  columns,
7495
7708
  data,
@@ -7540,13 +7753,13 @@ function DataTable({
7540
7753
  onPageChange(pagination.pageIndex + 1);
7541
7754
  }
7542
7755
  }, [pagination]);
7543
- return /* @__PURE__ */ jsxs22(Fragment2, { children: [
7544
- /* @__PURE__ */ jsxs22("div", { className: "rounded-md border", children: [
7756
+ return /* @__PURE__ */ jsxs23(Fragment2, { children: [
7757
+ /* @__PURE__ */ jsxs23("div", { className: "rounded-md border", children: [
7545
7758
  /* @__PURE__ */ jsx48(Table, { className: cn("relative", tableClassName), children: /* @__PURE__ */ jsx48(TableHeader, { className: headerClassName, children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx48(TableRow, { className: rowClassName, children: headerGroup.headers.map((header) => /* @__PURE__ */ jsx48(TableHead, { className: headerClassName, children: header.isPlaceholder ? null : flexRender(
7546
7759
  header.column.columnDef.header,
7547
7760
  header.getContext()
7548
7761
  ) }, header.id)) }, headerGroup.id)) }) }),
7549
- /* @__PURE__ */ jsxs22(ScrollArea, { className: "h-[calc(80vh-220px)] md:h-[calc(80dvh-80px)]", children: [
7762
+ /* @__PURE__ */ jsxs23(ScrollArea, { className: "h-[calc(80vh-220px)] md:h-[calc(80dvh-80px)]", children: [
7550
7763
  /* @__PURE__ */ jsx48(Table, { className: cn("relative", tableClassName), children: /* @__PURE__ */ jsx48(TableBody, { className: bodyClassName, children: table.getRowModel().rows.length ? table.getRowModel().rows.map((row) => /* @__PURE__ */ jsx48(
7551
7764
  TableRow,
7552
7765
  {
@@ -7570,7 +7783,7 @@ function DataTable({
7570
7783
  /* @__PURE__ */ jsx48(ScrollBar, { orientation: "horizontal" })
7571
7784
  ] })
7572
7785
  ] }),
7573
- /* @__PURE__ */ jsxs22(
7786
+ /* @__PURE__ */ jsxs23(
7574
7787
  ScrollArea,
7575
7788
  {
7576
7789
  className: cn(
@@ -7578,7 +7791,7 @@ function DataTable({
7578
7791
  className
7579
7792
  ),
7580
7793
  children: [
7581
- /* @__PURE__ */ jsxs22(Table, { className: cn("relative", tableClassName), children: [
7794
+ /* @__PURE__ */ jsxs23(Table, { className: cn("relative", tableClassName), children: [
7582
7795
  /* @__PURE__ */ jsx48(TableHeader, { className: headerClassName, children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx48(TableRow, { className: rowClassName, children: headerGroup.headers.map((header) => /* @__PURE__ */ jsx48(TableHead, { className: headerClassName, children: header.isPlaceholder ? null : flexRender(
7583
7796
  header.column.columnDef.header,
7584
7797
  header.getContext()
@@ -7608,9 +7821,9 @@ function DataTable({
7608
7821
  ]
7609
7822
  }
7610
7823
  ),
7611
- /* @__PURE__ */ jsxs22("div", { className: "flex flex-col items-center justify-end gap-2 space-x-2 py-4 sm:flex-row", children: [
7612
- /* @__PURE__ */ jsxs22("div", { className: "flex w-full items-center justify-between", children: [
7613
- isRowsSelected ? /* @__PURE__ */ jsxs22("div", { className: "text-muted-foreground flex-1 text-sm", children: [
7824
+ /* @__PURE__ */ jsxs23("div", { className: "flex flex-col items-center justify-end gap-2 space-x-2 py-4 sm:flex-row", children: [
7825
+ /* @__PURE__ */ jsxs23("div", { className: "flex w-full items-center justify-between", children: [
7826
+ isRowsSelected ? /* @__PURE__ */ jsxs23("div", { className: "text-muted-foreground flex-1 text-sm", children: [
7614
7827
  table.getFilteredSelectedRowModel().rows.length,
7615
7828
  " ",
7616
7829
  ofLabel,
@@ -7618,14 +7831,14 @@ function DataTable({
7618
7831
  table.getFilteredRowModel().rows.length,
7619
7832
  " " + rowsSelectedLabel
7620
7833
  ] }) : null,
7621
- totalRows ? /* @__PURE__ */ jsxs22("div", { className: "text-sm text-muted-foreground", children: [
7834
+ totalRows ? /* @__PURE__ */ jsxs23("div", { className: "text-sm text-muted-foreground", children: [
7622
7835
  "Total: ",
7623
7836
  totalRows,
7624
7837
  " registros"
7625
7838
  ] }) : null,
7626
- /* @__PURE__ */ jsxs22("div", { className: "flex items-center space-x-2", children: [
7839
+ /* @__PURE__ */ jsxs23("div", { className: "flex items-center space-x-2", children: [
7627
7840
  /* @__PURE__ */ jsx48("p", { className: "text-sm font-medium whitespace-nowrap", children: rowPerPageLabel }),
7628
- /* @__PURE__ */ jsxs22(
7841
+ /* @__PURE__ */ jsxs23(
7629
7842
  Select2,
7630
7843
  {
7631
7844
  value: `${pagination.pageSize}`,
@@ -7645,8 +7858,8 @@ function DataTable({
7645
7858
  )
7646
7859
  ] })
7647
7860
  ] }),
7648
- /* @__PURE__ */ jsxs22("div", { className: "flex w-full items-center justify-between gap-2 sm:justify-end", children: [
7649
- /* @__PURE__ */ jsxs22("div", { className: "flex w-[100px] items-center justify-center text-sm font-medium", children: [
7861
+ /* @__PURE__ */ jsxs23("div", { className: "flex w-full items-center justify-between gap-2 sm:justify-end", children: [
7862
+ /* @__PURE__ */ jsxs23("div", { className: "flex w-[100px] items-center justify-center text-sm font-medium", children: [
7650
7863
  pageLabel,
7651
7864
  " ",
7652
7865
  pagination.pageIndex + 1,
@@ -7655,7 +7868,7 @@ function DataTable({
7655
7868
  " ",
7656
7869
  pageCount
7657
7870
  ] }),
7658
- /* @__PURE__ */ jsxs22("div", { className: "flex items-center space-x-2", children: [
7871
+ /* @__PURE__ */ jsxs23("div", { className: "flex items-center space-x-2", children: [
7659
7872
  /* @__PURE__ */ jsx48(
7660
7873
  Button,
7661
7874
  {
@@ -7711,7 +7924,7 @@ function DataTable({
7711
7924
  }
7712
7925
 
7713
7926
  // src/shared/data-table-skeleton.tsx
7714
- import { jsx as jsx49, jsxs as jsxs23 } from "react/jsx-runtime";
7927
+ import { jsx as jsx49, jsxs as jsxs24 } from "react/jsx-runtime";
7715
7928
  function DataTableSkeleton({
7716
7929
  columnCount,
7717
7930
  rowCount = 10,
@@ -7719,27 +7932,27 @@ function DataTableSkeleton({
7719
7932
  filterableColumnCount = 0,
7720
7933
  showViewOptions = true
7721
7934
  }) {
7722
- return /* @__PURE__ */ jsxs23("div", { className: "w-full space-y-3 overflow-auto", children: [
7723
- /* @__PURE__ */ jsxs23("div", { className: "flex w-full items-center justify-between space-x-2 overflow-auto p-1", children: [
7724
- /* @__PURE__ */ jsxs23("div", { className: "flex flex-1 items-center space-x-2 space-y-4", children: [
7935
+ return /* @__PURE__ */ jsxs24("div", { className: "w-full space-y-3 overflow-auto", children: [
7936
+ /* @__PURE__ */ jsxs24("div", { className: "flex w-full items-center justify-between space-x-2 overflow-auto p-1", children: [
7937
+ /* @__PURE__ */ jsxs24("div", { className: "flex flex-1 items-center space-x-2 space-y-4", children: [
7725
7938
  searchableColumnCount > 0 ? Array.from({ length: searchableColumnCount }).map((_, i) => /* @__PURE__ */ jsx49(Skeleton, { className: "h-10 w-[150px] lg:w-[250px]" }, i)) : null,
7726
7939
  filterableColumnCount > 0 ? Array.from({ length: filterableColumnCount }).map((_, i) => /* @__PURE__ */ jsx49(Skeleton, { className: "h-10 w-[70px] border-dashed" }, i)) : null
7727
7940
  ] }),
7728
7941
  showViewOptions ? /* @__PURE__ */ jsx49(Skeleton, { className: "ml-auto hidden h-7 w-[70px] lg:flex" }) : null
7729
7942
  ] }),
7730
- /* @__PURE__ */ jsx49("div", { className: "rounded-md border", children: /* @__PURE__ */ jsxs23(Table, { children: [
7943
+ /* @__PURE__ */ jsx49("div", { className: "rounded-md border", children: /* @__PURE__ */ jsxs24(Table, { children: [
7731
7944
  /* @__PURE__ */ jsx49(TableHeader, { children: Array.from({ length: 1 }).map((_, i) => /* @__PURE__ */ jsx49(TableRow, { className: "hover:bg-transparent", children: Array.from({ length: columnCount }).map((_2, i2) => /* @__PURE__ */ jsx49(TableHead, { children: /* @__PURE__ */ jsx49(Skeleton, { className: "h-6 w-full" }) }, i2)) }, i)) }),
7732
7945
  /* @__PURE__ */ jsx49(TableBody, { children: Array.from({ length: rowCount }).map((_, i) => /* @__PURE__ */ jsx49(TableRow, { className: "hover:bg-transparent", children: Array.from({ length: columnCount }).map((_2, i2) => /* @__PURE__ */ jsx49(TableCell, { children: /* @__PURE__ */ jsx49(Skeleton, { className: "h-6 w-full" }) }, i2)) }, i)) })
7733
7946
  ] }) }),
7734
- /* @__PURE__ */ jsxs23("div", { className: "flex w-full flex-col items-center justify-between gap-4 overflow-auto px-2 py-1 sm:flex-row sm:gap-8", children: [
7947
+ /* @__PURE__ */ jsxs24("div", { className: "flex w-full flex-col items-center justify-between gap-4 overflow-auto px-2 py-1 sm:flex-row sm:gap-8", children: [
7735
7948
  /* @__PURE__ */ jsx49("div", { className: "flex-1", children: /* @__PURE__ */ jsx49(Skeleton, { className: "h-8 w-40" }) }),
7736
- /* @__PURE__ */ jsxs23("div", { className: "flex flex-col items-center gap-4 sm:flex-row sm:gap-6 lg:gap-8", children: [
7737
- /* @__PURE__ */ jsxs23("div", { className: "flex items-center space-x-2", children: [
7949
+ /* @__PURE__ */ jsxs24("div", { className: "flex flex-col items-center gap-4 sm:flex-row sm:gap-6 lg:gap-8", children: [
7950
+ /* @__PURE__ */ jsxs24("div", { className: "flex items-center space-x-2", children: [
7738
7951
  /* @__PURE__ */ jsx49(Skeleton, { className: "h-8 w-24" }),
7739
7952
  /* @__PURE__ */ jsx49(Skeleton, { className: "h-8 w-[70px]" })
7740
7953
  ] }),
7741
7954
  /* @__PURE__ */ jsx49("div", { className: "flex w-[100px] items-center justify-center text-sm font-medium", children: /* @__PURE__ */ jsx49(Skeleton, { className: "h-8 w-20" }) }),
7742
- /* @__PURE__ */ jsxs23("div", { className: "flex items-center space-x-2", children: [
7955
+ /* @__PURE__ */ jsxs24("div", { className: "flex items-center space-x-2", children: [
7743
7956
  /* @__PURE__ */ jsx49(Skeleton, { className: "hidden size-8 lg:block" }),
7744
7957
  /* @__PURE__ */ jsx49(Skeleton, { className: "size-8" }),
7745
7958
  /* @__PURE__ */ jsx49(Skeleton, { className: "size-8" }),
@@ -7753,9 +7966,9 @@ function DataTableSkeleton({
7753
7966
  // src/shared/fileupload.tsx
7754
7967
  import { AvatarIcon } from "@radix-ui/react-icons";
7755
7968
  import { CameraIcon } from "lucide-react";
7756
- import { useEffect as useEffect5, useState as useState5 } from "react";
7969
+ import { useEffect as useEffect5, useState as useState6 } from "react";
7757
7970
  import { useDropzone } from "react-dropzone";
7758
- import { jsx as jsx50, jsxs as jsxs24 } from "react/jsx-runtime";
7971
+ import { jsx as jsx50, jsxs as jsxs25 } from "react/jsx-runtime";
7759
7972
  function FileUpload({
7760
7973
  onChange,
7761
7974
  value,
@@ -7779,10 +7992,10 @@ function FileUpload({
7779
7992
  "relative h-36 w-36 overflow-hidden rounded-full bg-gray-200 shadow-2xl ",
7780
7993
  classNameContent
7781
7994
  ),
7782
- children: /* @__PURE__ */ jsxs24("div", __spreadProps(__spreadValues({}, getRootProps({ className: "dropzone cursor-pointer" })), { children: [
7995
+ children: /* @__PURE__ */ jsxs25("div", __spreadProps(__spreadValues({}, getRootProps({ className: "dropzone cursor-pointer" })), { children: [
7783
7996
  /* @__PURE__ */ jsx50("input", __spreadValues({}, getInputProps())),
7784
7997
  value && !!value.length ? /* @__PURE__ */ jsx50(ImagePreview, { file: value[0] }) : /* @__PURE__ */ jsx50(AvatarIcon, { className: "h-36 w-36 text-gray-100" }),
7785
- /* @__PURE__ */ jsxs24("p", { className: "absolute -bottom-5 left-1/2 flex w-full -translate-x-1/2 -translate-y-1/2 transform flex-col items-center justify-center bg-gray-300 bg-opacity-50 py-1 text-xs font-normal text-muted-foreground ", children: [
7998
+ /* @__PURE__ */ jsxs25("p", { className: "absolute -bottom-5 left-1/2 flex w-full -translate-x-1/2 -translate-y-1/2 transform flex-col items-center justify-center bg-gray-300 bg-opacity-50 py-1 text-xs font-normal text-muted-foreground ", children: [
7786
7999
  /* @__PURE__ */ jsx50(CameraIcon, { className: "h-4 w-4 text-muted-foreground" }),
7787
8000
  label
7788
8001
  ] })
@@ -7791,7 +8004,7 @@ function FileUpload({
7791
8004
  ) });
7792
8005
  }
7793
8006
  function ImagePreview({ file }) {
7794
- const [objectUrl, setObjectUrl] = useState5(null);
8007
+ const [objectUrl, setObjectUrl] = useState6(null);
7795
8008
  useEffect5(() => {
7796
8009
  const url = URL.createObjectURL(file);
7797
8010
  setObjectUrl(url);
@@ -7810,9 +8023,9 @@ function ImagePreview({ file }) {
7810
8023
  }
7811
8024
 
7812
8025
  // src/shared/heading.tsx
7813
- import { jsx as jsx51, jsxs as jsxs25 } from "react/jsx-runtime";
8026
+ import { jsx as jsx51, jsxs as jsxs26 } from "react/jsx-runtime";
7814
8027
  function Heading({ title, description, className }) {
7815
- return /* @__PURE__ */ jsxs25("div", { className, children: [
8028
+ return /* @__PURE__ */ jsxs26("div", { className, children: [
7816
8029
  /* @__PURE__ */ jsx51("div", { className: "text-lg font-bold tracking-tight text-primary sm:text-3xl", children: title }),
7817
8030
  /* @__PURE__ */ jsx51("p", { className: "text-sm text-muted-foreground", children: description })
7818
8031
  ] });
@@ -7820,9 +8033,9 @@ function Heading({ title, description, className }) {
7820
8033
 
7821
8034
  // src/shared/page-head.tsx
7822
8035
  import { Helmet } from "react-helmet-next";
7823
- import { jsx as jsx52, jsxs as jsxs26 } from "react/jsx-runtime";
8036
+ import { jsx as jsx52, jsxs as jsxs27 } from "react/jsx-runtime";
7824
8037
  function PageHead({ title = "shadcn-ui-react" }) {
7825
- return /* @__PURE__ */ jsx52(Helmet, { children: /* @__PURE__ */ jsxs26("title", { children: [
8038
+ return /* @__PURE__ */ jsx52(Helmet, { children: /* @__PURE__ */ jsxs27("title", { children: [
7826
8039
  " ",
7827
8040
  title,
7828
8041
  " "
@@ -7830,7 +8043,7 @@ function PageHead({ title = "shadcn-ui-react" }) {
7830
8043
  }
7831
8044
 
7832
8045
  // src/shared/pagination-section.tsx
7833
- import { jsx as jsx53, jsxs as jsxs27 } from "react/jsx-runtime";
8046
+ import { jsx as jsx53, jsxs as jsxs28 } from "react/jsx-runtime";
7834
8047
  function PaginationSection({
7835
8048
  totalPosts,
7836
8049
  postsPerPage,
@@ -7900,8 +8113,8 @@ function PaginationSection({
7900
8113
  }
7901
8114
  return renderedPages;
7902
8115
  };
7903
- return /* @__PURE__ */ jsx53("div", { className: "p-4", children: /* @__PURE__ */ jsx53(Pagination, { children: /* @__PURE__ */ jsxs27(PaginationContent, { children: [
7904
- /* @__PURE__ */ jsxs27(PaginationItem, { children: [
8116
+ return /* @__PURE__ */ jsx53("div", { className: "p-4", children: /* @__PURE__ */ jsx53(Pagination, { children: /* @__PURE__ */ jsxs28(PaginationContent, { children: [
8117
+ /* @__PURE__ */ jsxs28(PaginationItem, { children: [
7905
8118
  /* @__PURE__ */ jsx53(
7906
8119
  PaginationPreviousLast,
7907
8120
  {
@@ -7912,7 +8125,7 @@ function PaginationSection({
7912
8125
  /* @__PURE__ */ jsx53(PaginationPrevious, { onClick: handlePrevPage, size: void 0 })
7913
8126
  ] }),
7914
8127
  renderPages(),
7915
- /* @__PURE__ */ jsxs27(PaginationItem, { children: [
8128
+ /* @__PURE__ */ jsxs28(PaginationItem, { children: [
7916
8129
  /* @__PURE__ */ jsx53(PaginationNext, { onClick: handleNextPage, size: void 0 }),
7917
8130
  /* @__PURE__ */ jsx53(PaginationNextLast, { onClick: handleNextPageLast, size: void 0 })
7918
8131
  ] })
@@ -7921,7 +8134,7 @@ function PaginationSection({
7921
8134
 
7922
8135
  // src/shared/dropzone.tsx
7923
8136
  import { useDropzone as useDropzone2 } from "react-dropzone";
7924
- import { jsx as jsx54, jsxs as jsxs28 } from "react/jsx-runtime";
8137
+ import { jsx as jsx54, jsxs as jsxs29 } from "react/jsx-runtime";
7925
8138
  function Dropzone({
7926
8139
  label,
7927
8140
  onChange,
@@ -7942,9 +8155,9 @@ function Dropzone({
7942
8155
  },
7943
8156
  accept
7944
8157
  }, options));
7945
- return /* @__PURE__ */ jsxs28("div", { className: cn("space-y-2", className), children: [
8158
+ return /* @__PURE__ */ jsxs29("div", { className: cn("space-y-2", className), children: [
7946
8159
  label && /* @__PURE__ */ jsx54("p", { className: cn("font-medium", labelClassName), children: label }),
7947
- /* @__PURE__ */ jsxs28(
8160
+ /* @__PURE__ */ jsxs29(
7948
8161
  "div",
7949
8162
  __spreadProps(__spreadValues({}, getRootProps()), {
7950
8163
  className: cn(
@@ -7958,7 +8171,7 @@ function Dropzone({
7958
8171
  ]
7959
8172
  })
7960
8173
  ),
7961
- value && value.length > 0 && /* @__PURE__ */ jsx54("ul", { className: cn("text-sm text-gray-700 space-y-1", valueClassName), children: value.map((file, idx) => /* @__PURE__ */ jsxs28("li", { children: [
8174
+ value && value.length > 0 && /* @__PURE__ */ jsx54("ul", { className: cn("text-sm text-gray-700 space-y-1", valueClassName), children: value.map((file, idx) => /* @__PURE__ */ jsxs29("li", { children: [
7962
8175
  "\u2022 ",
7963
8176
  file.name
7964
8177
  ] }, idx)) })
@@ -8073,6 +8286,7 @@ export {
8073
8286
  FormItem,
8074
8287
  FormLabel,
8075
8288
  FormMessage,
8289
+ FormSelect,
8076
8290
  Heading,
8077
8291
  HoverCard,
8078
8292
  HoverCardContent,