shadcn-ui-react 0.3.8 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5508,11 +5508,11 @@ var Form = ({
5508
5508
  };
5509
5509
 
5510
5510
  // src/components/Form/form-field.tsx
5511
+ import React42 from "react";
5511
5512
  import {
5512
5513
  Controller,
5513
5514
  useFormContext
5514
5515
  } from "react-hook-form";
5515
- import React44 from "react";
5516
5516
  import { Slot as Slot3 } from "@radix-ui/react-slot";
5517
5517
  import { Asterisk } from "lucide-react";
5518
5518
 
@@ -5541,7 +5541,7 @@ var Input = React41.forwardRef(
5541
5541
  ]);
5542
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
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 = {
5544
+ const variants2 = {
5545
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
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
5547
  ghost: "rounded-md border border-transparent bg-transparent hover:bg-muted/50 focus:ring-2 focus:ring-ring",
@@ -5585,7 +5585,7 @@ var Input = React41.forwardRef(
5585
5585
  disabled,
5586
5586
  className: cn(
5587
5587
  base,
5588
- variants[variant],
5588
+ variants2[variant],
5589
5589
  variant === "flushed" ? specialSizeForFlushed : variant === "link" ? specialSizeForLink : sizeCls,
5590
5590
  errorCls,
5591
5591
  iconPadLeft,
@@ -5611,166 +5611,22 @@ var Input = React41.forwardRef(
5611
5611
  Input.displayName = "Input";
5612
5612
  Input.displayName = "Input";
5613
5613
 
5614
- // src/components/Label/label.tsx
5615
- import * as LabelPrimitive from "@radix-ui/react-label";
5616
- import { cva as cva4 } from "class-variance-authority";
5617
- import * as React42 from "react";
5618
- import { jsx as jsx18 } from "react/jsx-runtime";
5619
- var labelVariants = cva4(
5620
- "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 text-label"
5621
- );
5622
- var Label3 = React42.forwardRef((_a, ref) => {
5623
- var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5624
- return /* @__PURE__ */ jsx18(
5625
- LabelPrimitive.Root,
5626
- __spreadValues({
5627
- ref,
5628
- className: cn(labelVariants(), className)
5629
- }, props)
5630
- );
5631
- });
5632
- Label3.displayName = LabelPrimitive.Root.displayName;
5633
-
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;
5770
-
5771
5614
  // src/components/Form/form-field.tsx
5772
- import { jsx as jsx20, jsxs as jsxs12 } from "react/jsx-runtime";
5773
- var FormFieldContext = React44.createContext(
5615
+ import { jsx as jsx18, jsxs as jsxs11 } from "react/jsx-runtime";
5616
+ var inputVariants = {
5617
+ 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",
5618
+ 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",
5619
+ ghost: "rounded-md border border-transparent bg-transparent hover:bg-muted/50 focus:ring-2 focus:ring-ring",
5620
+ 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",
5621
+ // sin bordes laterales/superior, solo inferior; sin sombras ni radios
5622
+ flushed: "rounded-none border-0 border-b border-input px-0 shadow-none focus:border-b-2 focus:border-primary focus:ring-0",
5623
+ // sin estilos, útil para inputs embebidos o controles muy custom
5624
+ unstyled: "border-0 shadow-none focus:ring-0",
5625
+ // aspecto tipo enlace: inline height-auto, sin paddings ni borde
5626
+ link: "border-0 p-0 h-auto shadow-none bg-transparent text-primary underline-offset-4 focus:underline focus:ring-0"
5627
+ };
5628
+ var variants = inputVariants;
5629
+ var FormFieldContext = React42.createContext(
5774
5630
  null
5775
5631
  );
5776
5632
  var FormField = (_a) => {
@@ -5814,7 +5670,7 @@ var FormField = (_a) => {
5814
5670
  formState: { errors }
5815
5671
  } = useFormContext();
5816
5672
  const fieldError = (_a2 = errors[name]) == null ? void 0 : _a2.message;
5817
- return /* @__PURE__ */ jsx20(FormFieldContext.Provider, { value: { name }, children: /* @__PURE__ */ jsx20(
5673
+ return /* @__PURE__ */ jsx18(FormFieldContext.Provider, { value: { name }, children: /* @__PURE__ */ jsx18(
5818
5674
  Controller,
5819
5675
  {
5820
5676
  control,
@@ -5822,8 +5678,8 @@ var FormField = (_a) => {
5822
5678
  rules,
5823
5679
  shouldUnregister,
5824
5680
  defaultValue,
5825
- render: ({ field }) => /* @__PURE__ */ jsxs12(FormItem, { children: [
5826
- label && /* @__PURE__ */ jsxs12(
5681
+ render: ({ field }) => /* @__PURE__ */ jsxs11(FormItem, { children: [
5682
+ label && /* @__PURE__ */ jsxs11(
5827
5683
  FormLabel,
5828
5684
  {
5829
5685
  className: cn(
@@ -5832,7 +5688,7 @@ var FormField = (_a) => {
5832
5688
  ),
5833
5689
  children: [
5834
5690
  label,
5835
- requiredLabel && /* @__PURE__ */ jsx20(
5691
+ requiredLabel && /* @__PURE__ */ jsx18(
5836
5692
  Asterisk,
5837
5693
  {
5838
5694
  className: cn(
@@ -5844,55 +5700,50 @@ var FormField = (_a) => {
5844
5700
  ]
5845
5701
  }
5846
5702
  ),
5847
- /* @__PURE__ */ jsx20(FormControl, { children: /* @__PURE__ */ jsx20(
5703
+ /* @__PURE__ */ jsx18(FormControl, { children: /* @__PURE__ */ jsx18(
5848
5704
  Input,
5849
5705
  __spreadProps(__spreadValues(__spreadValues({}, field), inputProps), {
5850
5706
  onChange: (e) => {
5851
5707
  field.onChange(e);
5852
5708
  onChange == null ? void 0 : onChange(e.target.value);
5853
5709
  },
5854
- variant,
5855
- size,
5856
5710
  placeholder,
5857
5711
  className: cn("bg-input px-[0.9rem] py-5", className),
5858
5712
  classNameDefault: classNameDefault != null ? classNameDefault : true
5859
5713
  })
5860
5714
  ) }),
5861
- fieldError && /* @__PURE__ */ jsx20(FormMessage, { className: messageClassName, children: fieldError })
5715
+ fieldError && /* @__PURE__ */ jsx18(FormMessage, { className: messageClassName, children: fieldError })
5862
5716
  ] })
5863
5717
  }
5864
5718
  ) });
5865
5719
  };
5866
- var FormItemContext = React44.createContext(
5720
+ var FormItemContext = React42.createContext(
5867
5721
  {}
5868
5722
  );
5869
- var FormItem = React44.forwardRef((_a, ref) => {
5723
+ var FormItem = React42.forwardRef((_a, ref) => {
5870
5724
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
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)) });
5725
+ const id = React42.useId();
5726
+ return /* @__PURE__ */ jsx18(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx18("div", __spreadValues({ ref, className: cn("space-y-2", className) }, props)) });
5873
5727
  });
5874
5728
  FormItem.displayName = "FormItem";
5875
- var FormLabel = React44.forwardRef((_a, ref) => {
5876
- var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5877
- const { error, formItemId } = useFormField();
5878
- return /* @__PURE__ */ jsx20(
5879
- Label3,
5880
- __spreadValues({
5881
- ref,
5882
- className: cn(error && "text-destructive", className),
5883
- htmlFor: formItemId
5884
- }, props)
5885
- );
5886
- });
5887
- FormLabel.displayName = "FormLabel";
5888
5729
  var useFormField = () => {
5889
- const fieldContext = React44.useContext(FormFieldContext);
5890
- const itemContext = React44.useContext(FormItemContext);
5730
+ const fieldContext = React42.useContext(FormFieldContext);
5731
+ const itemContext = React42.useContext(FormItemContext);
5891
5732
  const { getFieldState, formState } = useFormContext();
5733
+ if (!(itemContext == null ? void 0 : itemContext.id)) {
5734
+ const id2 = React42.useId();
5735
+ return {
5736
+ id: id2,
5737
+ formItemId: `${id2}-form-item`,
5738
+ formDescriptionId: `${id2}-form-item-description`,
5739
+ formMessageId: `${id2}-form-item-message`,
5740
+ error: null
5741
+ };
5742
+ }
5892
5743
  if (!fieldContext) {
5893
5744
  const { id: id2 } = itemContext;
5894
5745
  return {
5895
- id: itemContext.id,
5746
+ id: id2,
5896
5747
  formItemId: `${id2}-form-item`,
5897
5748
  formDescriptionId: `${id2}-form-item-description`,
5898
5749
  formMessageId: `${id2}-form-item-message`,
@@ -5900,9 +5751,6 @@ var useFormField = () => {
5900
5751
  };
5901
5752
  }
5902
5753
  const fieldState = getFieldState(fieldContext.name, formState);
5903
- if (!fieldContext) {
5904
- throw new Error("useFormField should be used within <FormField>");
5905
- }
5906
5754
  const { id } = itemContext;
5907
5755
  return __spreadValues({
5908
5756
  id,
@@ -5912,10 +5760,23 @@ var useFormField = () => {
5912
5760
  formMessageId: `${id}-form-item-message`
5913
5761
  }, fieldState);
5914
5762
  };
5915
- var FormControl = React44.forwardRef((_a, ref) => {
5763
+ var FormLabel = React42.forwardRef((_a, ref) => {
5764
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5765
+ const { error, formItemId } = useFormField();
5766
+ return /* @__PURE__ */ jsx18(
5767
+ Label3,
5768
+ __spreadValues({
5769
+ ref,
5770
+ className: cn(error && "text-destructive", className),
5771
+ htmlFor: formItemId
5772
+ }, props)
5773
+ );
5774
+ });
5775
+ FormLabel.displayName = "FormLabel";
5776
+ var FormControl = React42.forwardRef((_a, ref) => {
5916
5777
  var props = __objRest(_a, []);
5917
5778
  const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
5918
- return /* @__PURE__ */ jsx20(
5779
+ return /* @__PURE__ */ jsx18(
5919
5780
  Slot3,
5920
5781
  __spreadValues({
5921
5782
  ref,
@@ -5926,10 +5787,10 @@ var FormControl = React44.forwardRef((_a, ref) => {
5926
5787
  );
5927
5788
  });
5928
5789
  FormControl.displayName = "FormControl";
5929
- var FormDescription = React44.forwardRef((_a, ref) => {
5790
+ var FormDescription = React42.forwardRef((_a, ref) => {
5930
5791
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5931
5792
  const { formDescriptionId } = useFormField();
5932
- return /* @__PURE__ */ jsx20(
5793
+ return /* @__PURE__ */ jsx18(
5933
5794
  "p",
5934
5795
  __spreadValues({
5935
5796
  ref,
@@ -5939,14 +5800,12 @@ var FormDescription = React44.forwardRef((_a, ref) => {
5939
5800
  );
5940
5801
  });
5941
5802
  FormDescription.displayName = "FormDescription";
5942
- var FormMessage = React44.forwardRef((_a, ref) => {
5803
+ var FormMessage = React42.forwardRef((_a, ref) => {
5943
5804
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
5944
5805
  const { error, formMessageId } = useFormField();
5945
- const body = error ? String(error == null ? void 0 : error.message) : children;
5946
- if (!body) {
5947
- return null;
5948
- }
5949
- return /* @__PURE__ */ jsx20(
5806
+ const body = error ? error == null ? void 0 : error.message : children;
5807
+ if (!body) return null;
5808
+ return /* @__PURE__ */ jsx18(
5950
5809
  "p",
5951
5810
  __spreadProps(__spreadValues({
5952
5811
  ref,
@@ -5978,7 +5837,9 @@ var FormSelect = ({
5978
5837
  disabled,
5979
5838
  size = "md",
5980
5839
  variant = "outline",
5981
- invalid
5840
+ invalid,
5841
+ searchable = false,
5842
+ searchPlaceholder = "Buscar\u2026"
5982
5843
  }) => {
5983
5844
  var _a;
5984
5845
  const {
@@ -5990,24 +5851,6 @@ var FormSelect = ({
5990
5851
  md: "h-11 px-4 text-sm",
5991
5852
  lg: "h-12 px-5 text-base"
5992
5853
  };
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
5854
  const errorCls = invalid ? "ring-destructive focus:ring-destructive/40 border-destructive" : "";
6012
5855
  const specialFlushed = variant === "flushed" ? size === "sm" ? "h-9 text-sm" : size === "lg" ? "h-12 text-base" : "h-11 text-sm" : "";
6013
5856
  const specialLink = variant === "link" ? "text-sm" : "";
@@ -6018,7 +5861,21 @@ var FormSelect = ({
6018
5861
  lg: "h-10 text-base"
6019
5862
  };
6020
5863
  const fieldError = (_a = errors[name]) == null ? void 0 : _a.message;
6021
- return /* @__PURE__ */ jsx20(FormFieldContext.Provider, { value: { name }, children: /* @__PURE__ */ jsx20(
5864
+ const [query, setQuery] = React42.useState("");
5865
+ const getOptionText = React42.useCallback((opt) => {
5866
+ var _a2;
5867
+ if (typeof opt.label === "string") return opt.label.toLowerCase();
5868
+ const extra = typeof ((_a2 = opt == null ? void 0 : opt.data) == null ? void 0 : _a2.search) === "string" ? opt.data.search.toLowerCase() : "";
5869
+ return `${opt.value}${extra}`.toLowerCase();
5870
+ }, []);
5871
+ const searchRef = React42.useRef(null);
5872
+ const filteredItems = React42.useMemo(() => {
5873
+ if (!items) return items;
5874
+ if (!searchable || !query.trim()) return items;
5875
+ const q = query.trim().toLowerCase();
5876
+ return items.filter((opt) => getOptionText(opt).includes(q));
5877
+ }, [items, searchable, query, getOptionText]);
5878
+ return /* @__PURE__ */ jsx18(FormFieldContext.Provider, { value: { name }, children: /* @__PURE__ */ jsx18(
6022
5879
  Controller,
6023
5880
  {
6024
5881
  control,
@@ -6027,21 +5884,27 @@ var FormSelect = ({
6027
5884
  shouldUnregister,
6028
5885
  defaultValue,
6029
5886
  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
5887
+ var _a2, _b, _c;
5888
+ return /* @__PURE__ */ jsxs11(FormItem, { children: [
5889
+ label && /* @__PURE__ */ jsxs11(
5890
+ FormLabel,
5891
+ {
5892
+ className: cn("flex items-center gap-0", labelClassName),
5893
+ children: [
5894
+ label,
5895
+ requiredLabel && /* @__PURE__ */ jsx18(
5896
+ Asterisk,
5897
+ {
5898
+ className: cn(
5899
+ "ml-[4px] h-3 w-3 text-red-500",
5900
+ requiredLabelClassName
5901
+ )
5902
+ }
6040
5903
  )
6041
- }
6042
- )
6043
- ] }),
6044
- /* @__PURE__ */ jsxs12(
5904
+ ]
5905
+ }
5906
+ ),
5907
+ /* @__PURE__ */ jsxs11(
6045
5908
  Select2,
6046
5909
  {
6047
5910
  value: (_a2 = field.value) != null ? _a2 : "",
@@ -6051,7 +5914,7 @@ var FormSelect = ({
6051
5914
  },
6052
5915
  disabled,
6053
5916
  children: [
6054
- /* @__PURE__ */ jsx20(FormControl, { children: /* @__PURE__ */ jsx20(
5917
+ /* @__PURE__ */ jsx18(FormControl, { children: /* @__PURE__ */ jsx18(
6055
5918
  SelectTrigger,
6056
5919
  {
6057
5920
  className: cn(
@@ -6061,23 +5924,56 @@ var FormSelect = ({
6061
5924
  errorCls,
6062
5925
  className
6063
5926
  ),
6064
- children: /* @__PURE__ */ jsx20(SelectValue, { placeholder })
5927
+ children: /* @__PURE__ */ jsx18(SelectValue, { placeholder })
6065
5928
  }
6066
5929
  ) }),
6067
- /* @__PURE__ */ jsx20(SelectContent, { className: cn(contentBase, contentClassName), children: children ? children : items == null ? void 0 : items.map((opt) => /* @__PURE__ */ jsx20(
6068
- SelectItem,
5930
+ /* @__PURE__ */ jsxs11(
5931
+ SelectContent,
6069
5932
  {
6070
- value: opt.value,
6071
- disabled: opt.disabled,
6072
- className: cn(itemSize[size]),
6073
- children: opt.label
6074
- },
6075
- opt.value
6076
- )) })
5933
+ className: cn(contentBase, contentClassName),
5934
+ onCloseAutoFocus: (e) => {
5935
+ e.preventDefault();
5936
+ requestAnimationFrame(() => {
5937
+ var _a3;
5938
+ return (_a3 = searchRef.current) == null ? void 0 : _a3.focus();
5939
+ });
5940
+ },
5941
+ children: [
5942
+ searchable && ((_b = items == null ? void 0 : items.length) != null ? _b : 0) > 0 && /* @__PURE__ */ jsx18("div", { className: "border-border bg-popover sticky top-0 border-b p-2", children: /* @__PURE__ */ jsx18(
5943
+ "input",
5944
+ {
5945
+ ref: searchRef,
5946
+ autoFocus: true,
5947
+ value: query,
5948
+ onChange: (e) => setQuery(e.target.value),
5949
+ placeholder: searchPlaceholder,
5950
+ className: cn(
5951
+ "border-input bg-input focus:ring-primary/20 w-full rounded-md border px-3 py-2 text-sm outline-none focus:ring-2"
5952
+ ),
5953
+ onKeyDown: (e) => {
5954
+ if (e.key !== "Escape") e.stopPropagation();
5955
+ },
5956
+ onPointerDown: (e) => e.stopPropagation(),
5957
+ onClick: (e) => e.stopPropagation()
5958
+ }
5959
+ ) }),
5960
+ children && !searchable ? children : (_c = filteredItems != null ? filteredItems : items) == null ? void 0 : _c.map((opt) => /* @__PURE__ */ jsx18(
5961
+ SelectItem,
5962
+ {
5963
+ value: opt.value,
5964
+ disabled: opt.disabled,
5965
+ className: cn(itemSize[size]),
5966
+ children: opt.label
5967
+ },
5968
+ opt.value
5969
+ ))
5970
+ ]
5971
+ }
5972
+ )
6077
5973
  ]
6078
5974
  }
6079
5975
  ),
6080
- fieldError && /* @__PURE__ */ jsx20(FormMessage, { className: messageClassName, children: fieldError })
5976
+ fieldError && /* @__PURE__ */ jsx18(FormMessage, { className: messageClassName, children: fieldError })
6081
5977
  ] });
6082
5978
  }
6083
5979
  }
@@ -6087,13 +5983,13 @@ FormSelect.displayName = "FormSelect";
6087
5983
 
6088
5984
  // src/components/hover-card.tsx
6089
5985
  import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
6090
- import * as React45 from "react";
6091
- import { jsx as jsx21 } from "react/jsx-runtime";
5986
+ import * as React43 from "react";
5987
+ import { jsx as jsx19 } from "react/jsx-runtime";
6092
5988
  var HoverCard = HoverCardPrimitive.Root;
6093
5989
  var HoverCardTrigger = HoverCardPrimitive.Trigger;
6094
- var HoverCardContent = React45.forwardRef((_a, ref) => {
5990
+ var HoverCardContent = React43.forwardRef((_a, ref) => {
6095
5991
  var _b = _a, { className, align = "center", sideOffset = 4 } = _b, props = __objRest(_b, ["className", "align", "sideOffset"]);
6096
- return /* @__PURE__ */ jsx21(
5992
+ return /* @__PURE__ */ jsx19(
6097
5993
  HoverCardPrimitive.Content,
6098
5994
  __spreadValues({
6099
5995
  ref,
@@ -6172,11 +6068,11 @@ var Icons = IconsApp;
6172
6068
  // src/components/input-otp.tsx
6173
6069
  import { DashIcon } from "@radix-ui/react-icons";
6174
6070
  import { OTPInput, OTPInputContext } from "input-otp";
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) => {
6071
+ import * as React44 from "react";
6072
+ import { jsx as jsx20, jsxs as jsxs12 } from "react/jsx-runtime";
6073
+ var InputOTP = React44.forwardRef((_a, ref) => {
6178
6074
  var _b = _a, { className, containerClassName } = _b, props = __objRest(_b, ["className", "containerClassName"]);
6179
- return /* @__PURE__ */ jsx22(
6075
+ return /* @__PURE__ */ jsx20(
6180
6076
  OTPInput,
6181
6077
  __spreadValues({
6182
6078
  ref,
@@ -6189,16 +6085,16 @@ var InputOTP = React46.forwardRef((_a, ref) => {
6189
6085
  );
6190
6086
  });
6191
6087
  InputOTP.displayName = "InputOTP";
6192
- var InputOTPGroup = React46.forwardRef((_a, ref) => {
6088
+ var InputOTPGroup = React44.forwardRef((_a, ref) => {
6193
6089
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6194
- return /* @__PURE__ */ jsx22("div", __spreadValues({ ref, className: cn("flex items-center", className) }, props));
6090
+ return /* @__PURE__ */ jsx20("div", __spreadValues({ ref, className: cn("flex items-center", className) }, props));
6195
6091
  });
6196
6092
  InputOTPGroup.displayName = "InputOTPGroup";
6197
- var InputOTPSlot = React46.forwardRef((_a, ref) => {
6093
+ var InputOTPSlot = React44.forwardRef((_a, ref) => {
6198
6094
  var _b = _a, { index, className } = _b, props = __objRest(_b, ["index", "className"]);
6199
- const inputOTPContext = React46.useContext(OTPInputContext);
6095
+ const inputOTPContext = React44.useContext(OTPInputContext);
6200
6096
  const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
6201
- return /* @__PURE__ */ jsxs13(
6097
+ return /* @__PURE__ */ jsxs12(
6202
6098
  "div",
6203
6099
  __spreadProps(__spreadValues({
6204
6100
  ref,
@@ -6210,35 +6106,55 @@ var InputOTPSlot = React46.forwardRef((_a, ref) => {
6210
6106
  }, props), {
6211
6107
  children: [
6212
6108
  char,
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" }) })
6109
+ hasFakeCaret && /* @__PURE__ */ jsx20("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx20("div", { className: "animate-caret-blink h-4 w-px bg-foreground duration-1000" }) })
6214
6110
  ]
6215
6111
  })
6216
6112
  );
6217
6113
  });
6218
6114
  InputOTPSlot.displayName = "InputOTPSlot";
6219
- var InputOTPSeparator = React46.forwardRef((_a, ref) => {
6115
+ var InputOTPSeparator = React44.forwardRef((_a, ref) => {
6220
6116
  var props = __objRest(_a, []);
6221
- return /* @__PURE__ */ jsx22("div", __spreadProps(__spreadValues({ ref, role: "separator" }, props), { children: /* @__PURE__ */ jsx22(DashIcon, {}) }));
6117
+ return /* @__PURE__ */ jsx20("div", __spreadProps(__spreadValues({ ref, role: "separator" }, props), { children: /* @__PURE__ */ jsx20(DashIcon, {}) }));
6222
6118
  });
6223
6119
  InputOTPSeparator.displayName = "InputOTPSeparator";
6224
6120
 
6121
+ // src/components/Label/label.tsx
6122
+ import * as LabelPrimitive from "@radix-ui/react-label";
6123
+ import { cva as cva4 } from "class-variance-authority";
6124
+ import * as React45 from "react";
6125
+ import { jsx as jsx21 } from "react/jsx-runtime";
6126
+ var labelVariants = cva4(
6127
+ "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 text-label"
6128
+ );
6129
+ var Label3 = React45.forwardRef((_a, ref) => {
6130
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6131
+ return /* @__PURE__ */ jsx21(
6132
+ LabelPrimitive.Root,
6133
+ __spreadValues({
6134
+ ref,
6135
+ className: cn(labelVariants(), className)
6136
+ }, props)
6137
+ );
6138
+ });
6139
+ Label3.displayName = LabelPrimitive.Root.displayName;
6140
+
6225
6141
  // src/components/menubar.tsx
6226
6142
  import {
6227
- CheckIcon as CheckIcon5,
6143
+ CheckIcon as CheckIcon4,
6228
6144
  ChevronRightIcon as ChevronRightIcon4,
6229
6145
  DotFilledIcon as DotFilledIcon3
6230
6146
  } from "@radix-ui/react-icons";
6231
6147
  import * as MenubarPrimitive from "@radix-ui/react-menubar";
6232
- import * as React47 from "react";
6233
- import { jsx as jsx23, jsxs as jsxs14 } from "react/jsx-runtime";
6148
+ import * as React46 from "react";
6149
+ import { jsx as jsx22, jsxs as jsxs13 } from "react/jsx-runtime";
6234
6150
  var MenubarMenu = MenubarPrimitive.Menu;
6235
6151
  var MenubarGroup = MenubarPrimitive.Group;
6236
6152
  var MenubarPortal = MenubarPrimitive.Portal;
6237
6153
  var MenubarSub = MenubarPrimitive.Sub;
6238
6154
  var MenubarRadioGroup = MenubarPrimitive.RadioGroup;
6239
- var Menubar = React47.forwardRef((_a, ref) => {
6155
+ var Menubar = React46.forwardRef((_a, ref) => {
6240
6156
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6241
- return /* @__PURE__ */ jsx23(
6157
+ return /* @__PURE__ */ jsx22(
6242
6158
  MenubarPrimitive.Root,
6243
6159
  __spreadValues({
6244
6160
  ref,
@@ -6250,9 +6166,9 @@ var Menubar = React47.forwardRef((_a, ref) => {
6250
6166
  );
6251
6167
  });
6252
6168
  Menubar.displayName = MenubarPrimitive.Root.displayName;
6253
- var MenubarTrigger = React47.forwardRef((_a, ref) => {
6169
+ var MenubarTrigger = React46.forwardRef((_a, ref) => {
6254
6170
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6255
- return /* @__PURE__ */ jsx23(
6171
+ return /* @__PURE__ */ jsx22(
6256
6172
  MenubarPrimitive.Trigger,
6257
6173
  __spreadValues({
6258
6174
  ref,
@@ -6264,9 +6180,9 @@ var MenubarTrigger = React47.forwardRef((_a, ref) => {
6264
6180
  );
6265
6181
  });
6266
6182
  MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
6267
- var MenubarSubTrigger = React47.forwardRef((_a, ref) => {
6183
+ var MenubarSubTrigger = React46.forwardRef((_a, ref) => {
6268
6184
  var _b = _a, { className, inset, children } = _b, props = __objRest(_b, ["className", "inset", "children"]);
6269
- return /* @__PURE__ */ jsxs14(
6185
+ return /* @__PURE__ */ jsxs13(
6270
6186
  MenubarPrimitive.SubTrigger,
6271
6187
  __spreadProps(__spreadValues({
6272
6188
  ref,
@@ -6278,15 +6194,15 @@ var MenubarSubTrigger = React47.forwardRef((_a, ref) => {
6278
6194
  }, props), {
6279
6195
  children: [
6280
6196
  children,
6281
- /* @__PURE__ */ jsx23(ChevronRightIcon4, { className: "ml-auto h-4 w-4" })
6197
+ /* @__PURE__ */ jsx22(ChevronRightIcon4, { className: "ml-auto h-4 w-4" })
6282
6198
  ]
6283
6199
  })
6284
6200
  );
6285
6201
  });
6286
6202
  MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
6287
- var MenubarSubContent = React47.forwardRef((_a, ref) => {
6203
+ var MenubarSubContent = React46.forwardRef((_a, ref) => {
6288
6204
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6289
- return /* @__PURE__ */ jsx23(
6205
+ return /* @__PURE__ */ jsx22(
6290
6206
  MenubarPrimitive.SubContent,
6291
6207
  __spreadValues({
6292
6208
  ref,
@@ -6298,10 +6214,10 @@ var MenubarSubContent = React47.forwardRef((_a, ref) => {
6298
6214
  );
6299
6215
  });
6300
6216
  MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
6301
- var MenubarContent = React47.forwardRef(
6217
+ var MenubarContent = React46.forwardRef(
6302
6218
  (_a, ref) => {
6303
6219
  var _b = _a, { className, align = "start", alignOffset = -4, sideOffset = 8 } = _b, props = __objRest(_b, ["className", "align", "alignOffset", "sideOffset"]);
6304
- return /* @__PURE__ */ jsx23(MenubarPrimitive.Portal, { children: /* @__PURE__ */ jsx23(
6220
+ return /* @__PURE__ */ jsx22(MenubarPrimitive.Portal, { children: /* @__PURE__ */ jsx22(
6305
6221
  MenubarPrimitive.Content,
6306
6222
  __spreadValues({
6307
6223
  ref,
@@ -6317,9 +6233,9 @@ var MenubarContent = React47.forwardRef(
6317
6233
  }
6318
6234
  );
6319
6235
  MenubarContent.displayName = MenubarPrimitive.Content.displayName;
6320
- var MenubarItem = React47.forwardRef((_a, ref) => {
6236
+ var MenubarItem = React46.forwardRef((_a, ref) => {
6321
6237
  var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
6322
- return /* @__PURE__ */ jsx23(
6238
+ return /* @__PURE__ */ jsx22(
6323
6239
  MenubarPrimitive.Item,
6324
6240
  __spreadValues({
6325
6241
  ref,
@@ -6332,9 +6248,9 @@ var MenubarItem = React47.forwardRef((_a, ref) => {
6332
6248
  );
6333
6249
  });
6334
6250
  MenubarItem.displayName = MenubarPrimitive.Item.displayName;
6335
- var MenubarCheckboxItem = React47.forwardRef((_a, ref) => {
6251
+ var MenubarCheckboxItem = React46.forwardRef((_a, ref) => {
6336
6252
  var _b = _a, { className, children, checked } = _b, props = __objRest(_b, ["className", "children", "checked"]);
6337
- return /* @__PURE__ */ jsxs14(
6253
+ return /* @__PURE__ */ jsxs13(
6338
6254
  MenubarPrimitive.CheckboxItem,
6339
6255
  __spreadProps(__spreadValues({
6340
6256
  ref,
@@ -6345,16 +6261,16 @@ var MenubarCheckboxItem = React47.forwardRef((_a, ref) => {
6345
6261
  checked
6346
6262
  }, props), {
6347
6263
  children: [
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" }) }) }),
6264
+ /* @__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" }) }) }),
6349
6265
  children
6350
6266
  ]
6351
6267
  })
6352
6268
  );
6353
6269
  });
6354
6270
  MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
6355
- var MenubarRadioItem = React47.forwardRef((_a, ref) => {
6271
+ var MenubarRadioItem = React46.forwardRef((_a, ref) => {
6356
6272
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
6357
- return /* @__PURE__ */ jsxs14(
6273
+ return /* @__PURE__ */ jsxs13(
6358
6274
  MenubarPrimitive.RadioItem,
6359
6275
  __spreadProps(__spreadValues({
6360
6276
  ref,
@@ -6364,16 +6280,16 @@ var MenubarRadioItem = React47.forwardRef((_a, ref) => {
6364
6280
  )
6365
6281
  }, props), {
6366
6282
  children: [
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" }) }) }),
6283
+ /* @__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" }) }) }),
6368
6284
  children
6369
6285
  ]
6370
6286
  })
6371
6287
  );
6372
6288
  });
6373
6289
  MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
6374
- var MenubarLabel = React47.forwardRef((_a, ref) => {
6290
+ var MenubarLabel = React46.forwardRef((_a, ref) => {
6375
6291
  var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
6376
- return /* @__PURE__ */ jsx23(
6292
+ return /* @__PURE__ */ jsx22(
6377
6293
  MenubarPrimitive.Label,
6378
6294
  __spreadValues({
6379
6295
  ref,
@@ -6386,9 +6302,9 @@ var MenubarLabel = React47.forwardRef((_a, ref) => {
6386
6302
  );
6387
6303
  });
6388
6304
  MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
6389
- var MenubarSeparator = React47.forwardRef((_a, ref) => {
6305
+ var MenubarSeparator = React46.forwardRef((_a, ref) => {
6390
6306
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6391
- return /* @__PURE__ */ jsx23(
6307
+ return /* @__PURE__ */ jsx22(
6392
6308
  MenubarPrimitive.Separator,
6393
6309
  __spreadValues({
6394
6310
  ref,
@@ -6403,7 +6319,7 @@ var MenubarShortcut = (_a) => {
6403
6319
  } = _b, props = __objRest(_b, [
6404
6320
  "className"
6405
6321
  ]);
6406
- return /* @__PURE__ */ jsx23(
6322
+ return /* @__PURE__ */ jsx22(
6407
6323
  "span",
6408
6324
  __spreadValues({
6409
6325
  className: cn(
@@ -6416,7 +6332,7 @@ var MenubarShortcut = (_a) => {
6416
6332
  MenubarShortcut.displayname = "MenubarShortcut";
6417
6333
 
6418
6334
  // src/components/modal.tsx
6419
- import { jsx as jsx24, jsxs as jsxs15 } from "react/jsx-runtime";
6335
+ import { jsx as jsx23, jsxs as jsxs14 } from "react/jsx-runtime";
6420
6336
  var Modal = ({
6421
6337
  title,
6422
6338
  description,
@@ -6430,24 +6346,24 @@ var Modal = ({
6430
6346
  onClose();
6431
6347
  }
6432
6348
  };
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 })
6349
+ return /* @__PURE__ */ jsx23(Dialog, { open: isOpen, onOpenChange: onChange, children: /* @__PURE__ */ jsxs14(DialogContent, { className, children: [
6350
+ /* @__PURE__ */ jsxs14(DialogHeader, { children: [
6351
+ /* @__PURE__ */ jsx23(DialogTitle, { children: title }),
6352
+ /* @__PURE__ */ jsx23(DialogDescription, { children: description })
6437
6353
  ] }),
6438
- /* @__PURE__ */ jsx24("div", { children })
6354
+ /* @__PURE__ */ jsx23("div", { children })
6439
6355
  ] }) });
6440
6356
  };
6441
6357
 
6442
6358
  // src/components/navigation-menu.tsx
6443
- import { ChevronDownIcon as ChevronDownIcon3 } from "@radix-ui/react-icons";
6359
+ import { ChevronDownIcon as ChevronDownIcon2 } from "@radix-ui/react-icons";
6444
6360
  import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
6445
6361
  import { cva as cva5 } from "class-variance-authority";
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) => {
6362
+ import * as React47 from "react";
6363
+ import { jsx as jsx24, jsxs as jsxs15 } from "react/jsx-runtime";
6364
+ var NavigationMenu = React47.forwardRef((_a, ref) => {
6449
6365
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
6450
- return /* @__PURE__ */ jsxs16(
6366
+ return /* @__PURE__ */ jsxs15(
6451
6367
  NavigationMenuPrimitive.Root,
6452
6368
  __spreadProps(__spreadValues({
6453
6369
  ref,
@@ -6458,15 +6374,15 @@ var NavigationMenu = React48.forwardRef((_a, ref) => {
6458
6374
  }, props), {
6459
6375
  children: [
6460
6376
  children,
6461
- /* @__PURE__ */ jsx25(NavigationMenuViewport, {})
6377
+ /* @__PURE__ */ jsx24(NavigationMenuViewport, {})
6462
6378
  ]
6463
6379
  })
6464
6380
  );
6465
6381
  });
6466
6382
  NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
6467
- var NavigationMenuList = React48.forwardRef((_a, ref) => {
6383
+ var NavigationMenuList = React47.forwardRef((_a, ref) => {
6468
6384
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6469
- return /* @__PURE__ */ jsx25(
6385
+ return /* @__PURE__ */ jsx24(
6470
6386
  NavigationMenuPrimitive.List,
6471
6387
  __spreadValues({
6472
6388
  ref,
@@ -6482,9 +6398,9 @@ var NavigationMenuItem = NavigationMenuPrimitive.Item;
6482
6398
  var navigationMenuTriggerStyle = cva5(
6483
6399
  "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"
6484
6400
  );
6485
- var NavigationMenuTrigger = React48.forwardRef((_a, ref) => {
6401
+ var NavigationMenuTrigger = React47.forwardRef((_a, ref) => {
6486
6402
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
6487
- return /* @__PURE__ */ jsxs16(
6403
+ return /* @__PURE__ */ jsxs15(
6488
6404
  NavigationMenuPrimitive.Trigger,
6489
6405
  __spreadProps(__spreadValues({
6490
6406
  ref,
@@ -6493,8 +6409,8 @@ var NavigationMenuTrigger = React48.forwardRef((_a, ref) => {
6493
6409
  children: [
6494
6410
  children,
6495
6411
  " ",
6496
- /* @__PURE__ */ jsx25(
6497
- ChevronDownIcon3,
6412
+ /* @__PURE__ */ jsx24(
6413
+ ChevronDownIcon2,
6498
6414
  {
6499
6415
  className: "relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180",
6500
6416
  "aria-hidden": "true"
@@ -6505,9 +6421,9 @@ var NavigationMenuTrigger = React48.forwardRef((_a, ref) => {
6505
6421
  );
6506
6422
  });
6507
6423
  NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
6508
- var NavigationMenuContent = React48.forwardRef((_a, ref) => {
6424
+ var NavigationMenuContent = React47.forwardRef((_a, ref) => {
6509
6425
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6510
- return /* @__PURE__ */ jsx25(
6426
+ return /* @__PURE__ */ jsx24(
6511
6427
  NavigationMenuPrimitive.Content,
6512
6428
  __spreadValues({
6513
6429
  ref,
@@ -6520,9 +6436,9 @@ var NavigationMenuContent = React48.forwardRef((_a, ref) => {
6520
6436
  });
6521
6437
  NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
6522
6438
  var NavigationMenuLink = NavigationMenuPrimitive.Link;
6523
- var NavigationMenuViewport = React48.forwardRef((_a, ref) => {
6439
+ var NavigationMenuViewport = React47.forwardRef((_a, ref) => {
6524
6440
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6525
- return /* @__PURE__ */ jsx25("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsx25(
6441
+ return /* @__PURE__ */ jsx24("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsx24(
6526
6442
  NavigationMenuPrimitive.Viewport,
6527
6443
  __spreadValues({
6528
6444
  className: cn(
@@ -6534,9 +6450,9 @@ var NavigationMenuViewport = React48.forwardRef((_a, ref) => {
6534
6450
  ) });
6535
6451
  });
6536
6452
  NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
6537
- var NavigationMenuIndicator = React48.forwardRef((_a, ref) => {
6453
+ var NavigationMenuIndicator = React47.forwardRef((_a, ref) => {
6538
6454
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6539
- return /* @__PURE__ */ jsx25(
6455
+ return /* @__PURE__ */ jsx24(
6540
6456
  NavigationMenuPrimitive.Indicator,
6541
6457
  __spreadProps(__spreadValues({
6542
6458
  ref,
@@ -6545,7 +6461,7 @@ var NavigationMenuIndicator = React48.forwardRef((_a, ref) => {
6545
6461
  className
6546
6462
  )
6547
6463
  }, props), {
6548
- children: /* @__PURE__ */ jsx25("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
6464
+ children: /* @__PURE__ */ jsx24("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
6549
6465
  })
6550
6466
  );
6551
6467
  });
@@ -6557,12 +6473,12 @@ import {
6557
6473
  ChevronRightIcon as ChevronRightIcon5,
6558
6474
  DotsHorizontalIcon as DotsHorizontalIcon2
6559
6475
  } from "@radix-ui/react-icons";
6560
- import * as React49 from "react";
6476
+ import * as React48 from "react";
6561
6477
  import { ChevronLeft as ChevronLeft2, ChevronRight as ChevronRight2 } from "lucide-react";
6562
- import { jsx as jsx26, jsxs as jsxs17 } from "react/jsx-runtime";
6478
+ import { jsx as jsx25, jsxs as jsxs16 } from "react/jsx-runtime";
6563
6479
  var Pagination = (_a) => {
6564
6480
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6565
- return /* @__PURE__ */ jsx26(
6481
+ return /* @__PURE__ */ jsx25(
6566
6482
  "nav",
6567
6483
  __spreadValues({
6568
6484
  role: "navigation",
@@ -6572,9 +6488,9 @@ var Pagination = (_a) => {
6572
6488
  );
6573
6489
  };
6574
6490
  Pagination.displayName = "Pagination";
6575
- var PaginationContent = React49.forwardRef((_a, ref) => {
6491
+ var PaginationContent = React48.forwardRef((_a, ref) => {
6576
6492
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6577
- return /* @__PURE__ */ jsx26(
6493
+ return /* @__PURE__ */ jsx25(
6578
6494
  "ul",
6579
6495
  __spreadValues({
6580
6496
  ref,
@@ -6583,9 +6499,9 @@ var PaginationContent = React49.forwardRef((_a, ref) => {
6583
6499
  );
6584
6500
  });
6585
6501
  PaginationContent.displayName = "PaginationContent";
6586
- var PaginationItem = React49.forwardRef((_a, ref) => {
6502
+ var PaginationItem = React48.forwardRef((_a, ref) => {
6587
6503
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6588
- return /* @__PURE__ */ jsx26("li", __spreadValues({ ref, className: cn("", className) }, props));
6504
+ return /* @__PURE__ */ jsx25("li", __spreadValues({ ref, className: cn("", className) }, props));
6589
6505
  });
6590
6506
  PaginationItem.displayName = "PaginationItem";
6591
6507
  var PaginationLink = (_a) => {
@@ -6598,7 +6514,7 @@ var PaginationLink = (_a) => {
6598
6514
  "isActive",
6599
6515
  "size"
6600
6516
  ]);
6601
- return /* @__PURE__ */ jsx26(
6517
+ return /* @__PURE__ */ jsx25(
6602
6518
  "a",
6603
6519
  __spreadValues({
6604
6520
  "aria-current": isActive ? "page" : void 0,
@@ -6619,7 +6535,7 @@ var PaginationPreviousLast = (_a) => {
6619
6535
  } = _b, props = __objRest(_b, [
6620
6536
  "className"
6621
6537
  ]);
6622
- return /* @__PURE__ */ jsxs17(
6538
+ return /* @__PURE__ */ jsxs16(
6623
6539
  PaginationLink,
6624
6540
  __spreadProps(__spreadValues({
6625
6541
  "aria-label": "Go to previous page",
@@ -6627,8 +6543,8 @@ var PaginationPreviousLast = (_a) => {
6627
6543
  className: cn("gap-1 pl-2.5", className)
6628
6544
  }, props), {
6629
6545
  children: [
6630
- /* @__PURE__ */ jsx26(ChevronLeft2, { className: "h-4 w-4" }),
6631
- /* @__PURE__ */ jsx26("span", { className: "sr-only", children: "Previous Last" })
6546
+ /* @__PURE__ */ jsx25(ChevronLeft2, { className: "h-4 w-4" }),
6547
+ /* @__PURE__ */ jsx25("span", { className: "sr-only", children: "Previous Last" })
6632
6548
  ]
6633
6549
  })
6634
6550
  );
@@ -6640,7 +6556,7 @@ var PaginationPrevious = (_a) => {
6640
6556
  } = _b, props = __objRest(_b, [
6641
6557
  "className"
6642
6558
  ]);
6643
- return /* @__PURE__ */ jsxs17(
6559
+ return /* @__PURE__ */ jsxs16(
6644
6560
  PaginationLink,
6645
6561
  __spreadProps(__spreadValues({
6646
6562
  "aria-label": "Go to previous page",
@@ -6648,8 +6564,8 @@ var PaginationPrevious = (_a) => {
6648
6564
  className: cn("gap-1 pl-2.5", className)
6649
6565
  }, props), {
6650
6566
  children: [
6651
- /* @__PURE__ */ jsx26(ChevronLeftIcon, { className: "h-4 w-4" }),
6652
- /* @__PURE__ */ jsx26("span", { children: "Previous" })
6567
+ /* @__PURE__ */ jsx25(ChevronLeftIcon, { className: "h-4 w-4" }),
6568
+ /* @__PURE__ */ jsx25("span", { children: "Previous" })
6653
6569
  ]
6654
6570
  })
6655
6571
  );
@@ -6661,7 +6577,7 @@ var PaginationNext = (_a) => {
6661
6577
  } = _b, props = __objRest(_b, [
6662
6578
  "className"
6663
6579
  ]);
6664
- return /* @__PURE__ */ jsxs17(
6580
+ return /* @__PURE__ */ jsxs16(
6665
6581
  PaginationLink,
6666
6582
  __spreadProps(__spreadValues({
6667
6583
  "aria-label": "Go to next page",
@@ -6669,8 +6585,8 @@ var PaginationNext = (_a) => {
6669
6585
  className: cn("gap-1 pr-2.5", className)
6670
6586
  }, props), {
6671
6587
  children: [
6672
- /* @__PURE__ */ jsx26("span", { children: "Next" }),
6673
- /* @__PURE__ */ jsx26(ChevronRightIcon5, { className: "h-4 w-4" })
6588
+ /* @__PURE__ */ jsx25("span", { children: "Next" }),
6589
+ /* @__PURE__ */ jsx25(ChevronRightIcon5, { className: "h-4 w-4" })
6674
6590
  ]
6675
6591
  })
6676
6592
  );
@@ -6682,7 +6598,7 @@ var PaginationNextLast = (_a) => {
6682
6598
  } = _b, props = __objRest(_b, [
6683
6599
  "className"
6684
6600
  ]);
6685
- return /* @__PURE__ */ jsxs17(
6601
+ return /* @__PURE__ */ jsxs16(
6686
6602
  PaginationLink,
6687
6603
  __spreadProps(__spreadValues({
6688
6604
  "aria-label": "Go to next page",
@@ -6690,8 +6606,8 @@ var PaginationNextLast = (_a) => {
6690
6606
  className: cn("gap-1 pr-2.5", className)
6691
6607
  }, props), {
6692
6608
  children: [
6693
- /* @__PURE__ */ jsx26("span", { className: "sr-only", children: "Next Last" }),
6694
- /* @__PURE__ */ jsx26(ChevronRight2, { className: "h-4 w-4" })
6609
+ /* @__PURE__ */ jsx25("span", { className: "sr-only", children: "Next Last" }),
6610
+ /* @__PURE__ */ jsx25(ChevronRight2, { className: "h-4 w-4" })
6695
6611
  ]
6696
6612
  })
6697
6613
  );
@@ -6703,15 +6619,15 @@ var PaginationEllipsis = (_a) => {
6703
6619
  } = _b, props = __objRest(_b, [
6704
6620
  "className"
6705
6621
  ]);
6706
- return /* @__PURE__ */ jsxs17(
6622
+ return /* @__PURE__ */ jsxs16(
6707
6623
  "span",
6708
6624
  __spreadProps(__spreadValues({
6709
6625
  "aria-hidden": true,
6710
6626
  className: cn("flex h-9 w-9 items-center justify-center", className)
6711
6627
  }, props), {
6712
6628
  children: [
6713
- /* @__PURE__ */ jsx26(DotsHorizontalIcon2, { className: "h-4 w-4" }),
6714
- /* @__PURE__ */ jsx26("span", { className: "sr-only", children: "More pages" })
6629
+ /* @__PURE__ */ jsx25(DotsHorizontalIcon2, { className: "h-4 w-4" }),
6630
+ /* @__PURE__ */ jsx25("span", { className: "sr-only", children: "More pages" })
6715
6631
  ]
6716
6632
  })
6717
6633
  );
@@ -6720,14 +6636,14 @@ PaginationEllipsis.displayName = "PaginationEllipsis";
6720
6636
 
6721
6637
  // src/components/popover.tsx
6722
6638
  import * as PopoverPrimitive from "@radix-ui/react-popover";
6723
- import * as React50 from "react";
6724
- import { jsx as jsx27 } from "react/jsx-runtime";
6639
+ import * as React49 from "react";
6640
+ import { jsx as jsx26 } from "react/jsx-runtime";
6725
6641
  var Popover = PopoverPrimitive.Root;
6726
6642
  var PopoverTrigger = PopoverPrimitive.Trigger;
6727
6643
  var PopoverAnchor = PopoverPrimitive.Anchor;
6728
- var PopoverContent = React50.forwardRef((_a, ref) => {
6644
+ var PopoverContent = React49.forwardRef((_a, ref) => {
6729
6645
  var _b = _a, { className, align = "center", sideOffset = 4 } = _b, props = __objRest(_b, ["className", "align", "sideOffset"]);
6730
- return /* @__PURE__ */ jsx27(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx27(
6646
+ return /* @__PURE__ */ jsx26(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx26(
6731
6647
  PopoverPrimitive.Content,
6732
6648
  __spreadValues({
6733
6649
  ref,
@@ -6744,11 +6660,11 @@ PopoverContent.displayName = PopoverPrimitive.Content.displayName;
6744
6660
 
6745
6661
  // src/components/progress.tsx
6746
6662
  import * as ProgressPrimitive from "@radix-ui/react-progress";
6747
- import * as React51 from "react";
6748
- import { jsx as jsx28 } from "react/jsx-runtime";
6749
- var Progress = React51.forwardRef((_a, ref) => {
6663
+ import * as React50 from "react";
6664
+ import { jsx as jsx27 } from "react/jsx-runtime";
6665
+ var Progress = React50.forwardRef((_a, ref) => {
6750
6666
  var _b = _a, { className, value } = _b, props = __objRest(_b, ["className", "value"]);
6751
- return /* @__PURE__ */ jsx28(
6667
+ return /* @__PURE__ */ jsx27(
6752
6668
  ProgressPrimitive.Root,
6753
6669
  __spreadProps(__spreadValues({
6754
6670
  ref,
@@ -6757,7 +6673,7 @@ var Progress = React51.forwardRef((_a, ref) => {
6757
6673
  className
6758
6674
  )
6759
6675
  }, props), {
6760
- children: /* @__PURE__ */ jsx28(
6676
+ children: /* @__PURE__ */ jsx27(
6761
6677
  ProgressPrimitive.Indicator,
6762
6678
  {
6763
6679
  className: "h-full w-full flex-1 bg-primary transition-all",
@@ -6770,13 +6686,13 @@ var Progress = React51.forwardRef((_a, ref) => {
6770
6686
  Progress.displayName = ProgressPrimitive.Root.displayName;
6771
6687
 
6772
6688
  // src/components/radio-group.tsx
6773
- import { CheckIcon as CheckIcon6 } from "@radix-ui/react-icons";
6689
+ import { CheckIcon as CheckIcon5 } from "@radix-ui/react-icons";
6774
6690
  import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
6775
- import * as React52 from "react";
6776
- import { jsx as jsx29 } from "react/jsx-runtime";
6777
- var RadioGroup4 = React52.forwardRef((_a, ref) => {
6691
+ import * as React51 from "react";
6692
+ import { jsx as jsx28 } from "react/jsx-runtime";
6693
+ var RadioGroup4 = React51.forwardRef((_a, ref) => {
6778
6694
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6779
- return /* @__PURE__ */ jsx29(
6695
+ return /* @__PURE__ */ jsx28(
6780
6696
  RadioGroupPrimitive.Root,
6781
6697
  __spreadProps(__spreadValues({
6782
6698
  className: cn("grid gap-2", className)
@@ -6786,9 +6702,9 @@ var RadioGroup4 = React52.forwardRef((_a, ref) => {
6786
6702
  );
6787
6703
  });
6788
6704
  RadioGroup4.displayName = RadioGroupPrimitive.Root.displayName;
6789
- var RadioGroupItem = React52.forwardRef((_a, ref) => {
6705
+ var RadioGroupItem = React51.forwardRef((_a, ref) => {
6790
6706
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6791
- return /* @__PURE__ */ jsx29(
6707
+ return /* @__PURE__ */ jsx28(
6792
6708
  RadioGroupPrimitive.Item,
6793
6709
  __spreadProps(__spreadValues({
6794
6710
  ref,
@@ -6797,7 +6713,7 @@ var RadioGroupItem = React52.forwardRef((_a, ref) => {
6797
6713
  className
6798
6714
  )
6799
6715
  }, props), {
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" }) })
6716
+ children: /* @__PURE__ */ jsx28(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx28(CheckIcon5, { className: "h-3.5 w-3.5 fill-primary" }) })
6801
6717
  })
6802
6718
  );
6803
6719
  });
@@ -6806,14 +6722,14 @@ RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
6806
6722
  // src/components/resizable.tsx
6807
6723
  import { DragHandleDots2Icon } from "@radix-ui/react-icons";
6808
6724
  import * as ResizablePrimitive from "react-resizable-panels";
6809
- import { jsx as jsx30 } from "react/jsx-runtime";
6725
+ import { jsx as jsx29 } from "react/jsx-runtime";
6810
6726
  var ResizablePanelGroup = (_a) => {
6811
6727
  var _b = _a, {
6812
6728
  className
6813
6729
  } = _b, props = __objRest(_b, [
6814
6730
  "className"
6815
6731
  ]);
6816
- return /* @__PURE__ */ jsx30(
6732
+ return /* @__PURE__ */ jsx29(
6817
6733
  ResizablePrimitive.PanelGroup,
6818
6734
  __spreadValues({
6819
6735
  className: cn(
@@ -6832,7 +6748,7 @@ var ResizableHandle = (_a) => {
6832
6748
  "withHandle",
6833
6749
  "className"
6834
6750
  ]);
6835
- return /* @__PURE__ */ jsx30(
6751
+ return /* @__PURE__ */ jsx29(
6836
6752
  ResizablePrimitive.PanelResizeHandle,
6837
6753
  __spreadProps(__spreadValues({
6838
6754
  className: cn(
@@ -6840,35 +6756,35 @@ var ResizableHandle = (_a) => {
6840
6756
  className
6841
6757
  )
6842
6758
  }, props), {
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" }) })
6759
+ 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" }) })
6844
6760
  })
6845
6761
  );
6846
6762
  };
6847
6763
 
6848
6764
  // src/components/scroll-area.tsx
6849
6765
  import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
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) => {
6766
+ import * as React52 from "react";
6767
+ import { jsx as jsx30, jsxs as jsxs17 } from "react/jsx-runtime";
6768
+ var ScrollArea = React52.forwardRef((_a, ref) => {
6853
6769
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
6854
- return /* @__PURE__ */ jsxs18(
6770
+ return /* @__PURE__ */ jsxs17(
6855
6771
  ScrollAreaPrimitive.Root,
6856
6772
  __spreadProps(__spreadValues({
6857
6773
  ref,
6858
6774
  className: cn("relative overflow-hidden", className)
6859
6775
  }, props), {
6860
6776
  children: [
6861
- /* @__PURE__ */ jsx31(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
6862
- /* @__PURE__ */ jsx31(ScrollBar, {}),
6863
- /* @__PURE__ */ jsx31(ScrollAreaPrimitive.Corner, {})
6777
+ /* @__PURE__ */ jsx30(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
6778
+ /* @__PURE__ */ jsx30(ScrollBar, {}),
6779
+ /* @__PURE__ */ jsx30(ScrollAreaPrimitive.Corner, {})
6864
6780
  ]
6865
6781
  })
6866
6782
  );
6867
6783
  });
6868
6784
  ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
6869
- var ScrollBar = React53.forwardRef((_a, ref) => {
6785
+ var ScrollBar = React52.forwardRef((_a, ref) => {
6870
6786
  var _b = _a, { className, orientation = "vertical" } = _b, props = __objRest(_b, ["className", "orientation"]);
6871
- return /* @__PURE__ */ jsx31(
6787
+ return /* @__PURE__ */ jsx30(
6872
6788
  ScrollAreaPrimitive.ScrollAreaScrollbar,
6873
6789
  __spreadProps(__spreadValues({
6874
6790
  ref,
@@ -6880,16 +6796,16 @@ var ScrollBar = React53.forwardRef((_a, ref) => {
6880
6796
  className
6881
6797
  )
6882
6798
  }, props), {
6883
- children: /* @__PURE__ */ jsx31(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
6799
+ children: /* @__PURE__ */ jsx30(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
6884
6800
  })
6885
6801
  );
6886
6802
  });
6887
6803
  ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
6888
6804
 
6889
6805
  // src/components/search-input.tsx
6890
- import React54, { useCallback as useCallback4 } from "react";
6806
+ import React53, { useCallback as useCallback4 } from "react";
6891
6807
  import { useDebounce } from "use-debounce";
6892
- import { jsx as jsx32 } from "react/jsx-runtime";
6808
+ import { jsx as jsx31 } from "react/jsx-runtime";
6893
6809
  function SearchInput({
6894
6810
  value,
6895
6811
  placeholder,
@@ -6898,18 +6814,18 @@ function SearchInput({
6898
6814
  debounceTime = 750,
6899
6815
  onSearch
6900
6816
  }) {
6901
- const [searchTerm, setSearchTerm] = React54.useState(value);
6817
+ const [searchTerm, setSearchTerm] = React53.useState(value);
6902
6818
  const [debouncedValue] = useDebounce(searchTerm, debounceTime);
6903
6819
  const handleSettingSearchParams = useCallback4((newSearchValue) => {
6904
6820
  onSearch(newSearchValue);
6905
6821
  }, []);
6906
- React54.useEffect(() => {
6822
+ React53.useEffect(() => {
6907
6823
  handleSettingSearchParams(debouncedValue);
6908
6824
  }, [debouncedValue, handleSettingSearchParams]);
6909
- React54.useEffect(() => {
6825
+ React53.useEffect(() => {
6910
6826
  setSearchTerm(value);
6911
6827
  }, [value]);
6912
- return /* @__PURE__ */ jsx32(
6828
+ return /* @__PURE__ */ jsx31(
6913
6829
  Input,
6914
6830
  {
6915
6831
  placeholder: placeholder || `Search...`,
@@ -6921,6 +6837,143 @@ function SearchInput({
6921
6837
  );
6922
6838
  }
6923
6839
 
6840
+ // src/components/select.tsx
6841
+ import {
6842
+ CaretSortIcon,
6843
+ CheckIcon as CheckIcon6,
6844
+ ChevronDownIcon as ChevronDownIcon3,
6845
+ ChevronUpIcon
6846
+ } from "@radix-ui/react-icons";
6847
+ import * as SelectPrimitive from "@radix-ui/react-select";
6848
+ import * as React54 from "react";
6849
+ import { jsx as jsx32, jsxs as jsxs18 } from "react/jsx-runtime";
6850
+ var Select2 = SelectPrimitive.Root;
6851
+ var SelectGroup = SelectPrimitive.Group;
6852
+ var SelectValue = SelectPrimitive.Value;
6853
+ var SelectTrigger = React54.forwardRef((_a, ref) => {
6854
+ var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
6855
+ return /* @__PURE__ */ jsxs18(
6856
+ SelectPrimitive.Trigger,
6857
+ __spreadProps(__spreadValues({
6858
+ ref,
6859
+ className: cn(
6860
+ "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",
6861
+ className
6862
+ )
6863
+ }, props), {
6864
+ children: [
6865
+ children,
6866
+ /* @__PURE__ */ jsx32(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx32(CaretSortIcon, { className: "h-4 w-4 opacity-50" }) })
6867
+ ]
6868
+ })
6869
+ );
6870
+ });
6871
+ SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
6872
+ var SelectScrollUpButton = React54.forwardRef((_a, ref) => {
6873
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6874
+ return /* @__PURE__ */ jsx32(
6875
+ SelectPrimitive.ScrollUpButton,
6876
+ __spreadProps(__spreadValues({
6877
+ ref,
6878
+ className: cn(
6879
+ "flex cursor-default items-center justify-center py-1",
6880
+ className
6881
+ )
6882
+ }, props), {
6883
+ children: /* @__PURE__ */ jsx32(ChevronUpIcon, {})
6884
+ })
6885
+ );
6886
+ });
6887
+ SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
6888
+ var SelectScrollDownButton = React54.forwardRef((_a, ref) => {
6889
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6890
+ return /* @__PURE__ */ jsx32(
6891
+ SelectPrimitive.ScrollDownButton,
6892
+ __spreadProps(__spreadValues({
6893
+ ref,
6894
+ className: cn(
6895
+ "flex cursor-default items-center justify-center py-1",
6896
+ className
6897
+ )
6898
+ }, props), {
6899
+ children: /* @__PURE__ */ jsx32(ChevronDownIcon3, {})
6900
+ })
6901
+ );
6902
+ });
6903
+ SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
6904
+ var SelectContent = React54.forwardRef((_a, ref) => {
6905
+ var _b = _a, { className, children, position = "popper" } = _b, props = __objRest(_b, ["className", "children", "position"]);
6906
+ return /* @__PURE__ */ jsx32(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs18(
6907
+ SelectPrimitive.Content,
6908
+ __spreadProps(__spreadValues({
6909
+ ref,
6910
+ className: cn(
6911
+ "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",
6912
+ 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",
6913
+ className
6914
+ ),
6915
+ position
6916
+ }, props), {
6917
+ children: [
6918
+ /* @__PURE__ */ jsx32(SelectScrollUpButton, {}),
6919
+ /* @__PURE__ */ jsx32(
6920
+ SelectPrimitive.Viewport,
6921
+ {
6922
+ className: cn(
6923
+ "p-1",
6924
+ position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
6925
+ ),
6926
+ children
6927
+ }
6928
+ ),
6929
+ /* @__PURE__ */ jsx32(SelectScrollDownButton, {})
6930
+ ]
6931
+ })
6932
+ ) });
6933
+ });
6934
+ SelectContent.displayName = SelectPrimitive.Content.displayName;
6935
+ var SelectLabel = React54.forwardRef((_a, ref) => {
6936
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6937
+ return /* @__PURE__ */ jsx32(
6938
+ SelectPrimitive.Label,
6939
+ __spreadValues({
6940
+ ref,
6941
+ className: cn("px-2 py-1.5 text-sm font-semibold", className)
6942
+ }, props)
6943
+ );
6944
+ });
6945
+ SelectLabel.displayName = SelectPrimitive.Label.displayName;
6946
+ var SelectItem = React54.forwardRef((_a, ref) => {
6947
+ var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
6948
+ return /* @__PURE__ */ jsxs18(
6949
+ SelectPrimitive.Item,
6950
+ __spreadProps(__spreadValues({
6951
+ ref,
6952
+ className: cn(
6953
+ "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",
6954
+ className
6955
+ )
6956
+ }, props), {
6957
+ children: [
6958
+ /* @__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" }) }) }),
6959
+ /* @__PURE__ */ jsx32(SelectPrimitive.ItemText, { children })
6960
+ ]
6961
+ })
6962
+ );
6963
+ });
6964
+ SelectItem.displayName = SelectPrimitive.Item.displayName;
6965
+ var SelectSeparator = React54.forwardRef((_a, ref) => {
6966
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6967
+ return /* @__PURE__ */ jsx32(
6968
+ SelectPrimitive.Separator,
6969
+ __spreadValues({
6970
+ ref,
6971
+ className: cn("-mx-1 my-1 h-px bg-muted", className)
6972
+ }, props)
6973
+ );
6974
+ });
6975
+ SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
6976
+
6924
6977
  // src/components/separator.tsx
6925
6978
  import * as SeparatorPrimitive from "@radix-ui/react-separator";
6926
6979
  import * as React55 from "react";
@@ -7754,13 +7807,13 @@ function DataTable({
7754
7807
  }
7755
7808
  }, [pagination]);
7756
7809
  return /* @__PURE__ */ jsxs23(Fragment2, { children: [
7757
- /* @__PURE__ */ jsxs23("div", { className: "rounded-md border", children: [
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(
7759
- header.column.columnDef.header,
7760
- header.getContext()
7761
- ) }, header.id)) }, headerGroup.id)) }) }),
7762
- /* @__PURE__ */ jsxs23(ScrollArea, { className: "h-[calc(80vh-220px)] md:h-[calc(80dvh-80px)]", children: [
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(
7810
+ /* @__PURE__ */ jsx48("div", { className: cn("rounded-md border", className), children: /* @__PURE__ */ jsxs23(ScrollArea, { className: "h-[calc(80vh-220px)] md:h-[calc(80dvh-80px)]", children: [
7811
+ /* @__PURE__ */ jsxs23(Table, { className: cn("relative", tableClassName), children: [
7812
+ /* @__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(
7813
+ header.column.columnDef.header,
7814
+ header.getContext()
7815
+ ) }, header.id)) }, headerGroup.id)) }),
7816
+ /* @__PURE__ */ jsx48(TableBody, { className: bodyClassName, children: table.getRowModel().rows.length ? table.getRowModel().rows.map((row) => /* @__PURE__ */ jsx48(
7764
7817
  TableRow,
7765
7818
  {
7766
7819
  "data-state": row.getIsSelected() ? "selected" : void 0,
@@ -7779,48 +7832,10 @@ function DataTable({
7779
7832
  className: "h-24 text-center",
7780
7833
  children: "No results."
7781
7834
  }
7782
- ) }) }) }),
7783
- /* @__PURE__ */ jsx48(ScrollBar, { orientation: "horizontal" })
7784
- ] })
7785
- ] }),
7786
- /* @__PURE__ */ jsxs23(
7787
- ScrollArea,
7788
- {
7789
- className: cn(
7790
- "h-[calc(80vh-220px)] rounded-md border md:h-[calc(80dvh-80px)]",
7791
- className
7792
- ),
7793
- children: [
7794
- /* @__PURE__ */ jsxs23(Table, { className: cn("relative", tableClassName), children: [
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(
7796
- header.column.columnDef.header,
7797
- header.getContext()
7798
- ) }, header.id)) }, headerGroup.id)) }),
7799
- /* @__PURE__ */ jsx48(TableBody, { className: bodyClassName, children: table.getRowModel().rows.length ? table.getRowModel().rows.map((row) => /* @__PURE__ */ jsx48(
7800
- TableRow,
7801
- {
7802
- "data-state": row.getIsSelected() ? "selected" : void 0,
7803
- onClick: () => onClickItem(row.original),
7804
- className: rowClassName,
7805
- children: row.getVisibleCells().map((cell) => /* @__PURE__ */ jsx48(TableCell, { className: cellClassName, children: flexRender(
7806
- cell.column.columnDef.cell,
7807
- cell.getContext()
7808
- ) }, cell.id))
7809
- },
7810
- row.id
7811
- )) : emptyData || /* @__PURE__ */ jsx48(TableRow, { children: /* @__PURE__ */ jsx48(
7812
- TableCell,
7813
- {
7814
- colSpan: columns.length,
7815
- className: "h-24 text-center",
7816
- children: "No results."
7817
- }
7818
- ) }) })
7819
- ] }),
7820
- /* @__PURE__ */ jsx48(ScrollBar, { orientation: "horizontal" })
7821
- ]
7822
- }
7823
- ),
7835
+ ) }) })
7836
+ ] }),
7837
+ /* @__PURE__ */ jsx48(ScrollBar, { orientation: "horizontal" })
7838
+ ] }) }),
7824
7839
  /* @__PURE__ */ jsxs23("div", { className: "flex flex-col items-center justify-end gap-2 space-x-2 py-4 sm:flex-row", children: [
7825
7840
  /* @__PURE__ */ jsxs23("div", { className: "flex w-full items-center justify-between", children: [
7826
7841
  isRowsSelected ? /* @__PURE__ */ jsxs23("div", { className: "text-muted-foreground flex-1 text-sm", children: [
@@ -8403,10 +8418,12 @@ export {
8403
8418
  badgeVariants,
8404
8419
  buttonVariants,
8405
8420
  cn,
8421
+ inputVariants,
8406
8422
  navigationMenuTriggerStyle,
8407
8423
  reducer,
8408
8424
  toast,
8409
8425
  toggleVariants,
8410
8426
  useFormField,
8411
- useToast
8427
+ useToast,
8428
+ variants
8412
8429
  };