magick-ui 0.2.2 → 0.2.4

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/ui/index.js CHANGED
@@ -3604,11 +3604,136 @@ function LinkButton({
3604
3604
  );
3605
3605
  }
3606
3606
 
3607
+ // src/ui/Map/index.tsx
3608
+ import {
3609
+ APIProvider,
3610
+ Map as GoogleMap,
3611
+ Marker,
3612
+ InfoWindow,
3613
+ useMap
3614
+ } from "@vis.gl/react-google-maps";
3615
+ import { useState as useState6, useCallback as useCallback3, useEffect as useEffect5 } from "react";
3616
+ import { Fragment as Fragment5, jsx as jsx34, jsxs as jsxs25 } from "react/jsx-runtime";
3617
+ function MarkerWithInfo({
3618
+ marker,
3619
+ index,
3620
+ onMarkerClick
3621
+ }) {
3622
+ const [open, setOpen] = useState6(false);
3623
+ const handleClick = useCallback3(() => {
3624
+ setOpen((prev) => !prev);
3625
+ onMarkerClick?.(marker, index);
3626
+ }, [marker, index, onMarkerClick]);
3627
+ return /* @__PURE__ */ jsxs25(Fragment5, { children: [
3628
+ /* @__PURE__ */ jsx34(
3629
+ Marker,
3630
+ {
3631
+ position: { lat: marker.lat, lng: marker.lng },
3632
+ title: marker.title,
3633
+ onClick: handleClick
3634
+ }
3635
+ ),
3636
+ open && (marker.title || marker.description) && /* @__PURE__ */ jsx34(
3637
+ InfoWindow,
3638
+ {
3639
+ position: { lat: marker.lat, lng: marker.lng },
3640
+ onCloseClick: () => setOpen(false),
3641
+ children: /* @__PURE__ */ jsxs25("div", { className: "max-w-xs", children: [
3642
+ marker.title && /* @__PURE__ */ jsx34("h3", { className: "text-body-sm font-semibold", children: marker.title }),
3643
+ marker.description && /* @__PURE__ */ jsx34("p", { className: "text-body-sm text-element-inverse-gray mt-1", children: marker.description })
3644
+ ] })
3645
+ }
3646
+ )
3647
+ ] });
3648
+ }
3649
+ var CURRENT_LOCATION_ICON = {
3650
+ path: 0,
3651
+ // google.maps.SymbolPath.CIRCLE
3652
+ scale: 8,
3653
+ fillColor: "#4285F4",
3654
+ fillOpacity: 1,
3655
+ strokeColor: "#ffffff",
3656
+ strokeWeight: 2.5
3657
+ };
3658
+ function CurrentLocationMarker() {
3659
+ const map = useMap();
3660
+ const [position, setPosition] = useState6(null);
3661
+ useEffect5(() => {
3662
+ if (!navigator.geolocation) return;
3663
+ const watchId = navigator.geolocation.watchPosition(
3664
+ (pos) => {
3665
+ const coords = { lat: pos.coords.latitude, lng: pos.coords.longitude };
3666
+ setPosition(coords);
3667
+ },
3668
+ () => {
3669
+ },
3670
+ { enableHighAccuracy: true, maximumAge: 1e4 }
3671
+ );
3672
+ return () => navigator.geolocation.clearWatch(watchId);
3673
+ }, [map]);
3674
+ if (!position) return null;
3675
+ return /* @__PURE__ */ jsx34(
3676
+ Marker,
3677
+ {
3678
+ position,
3679
+ title: "Your location",
3680
+ icon: CURRENT_LOCATION_ICON,
3681
+ clickable: false
3682
+ }
3683
+ );
3684
+ }
3685
+ var DEFAULT_CENTER = { lat: 16.8661, lng: 96.1951 };
3686
+ function GoogleMapView({
3687
+ apiKey,
3688
+ center = DEFAULT_CENTER,
3689
+ zoom = 12,
3690
+ markers = [],
3691
+ mapId,
3692
+ height = "400px",
3693
+ width = "100%",
3694
+ className,
3695
+ gestureHandling = "cooperative",
3696
+ disableDefaultUI = false,
3697
+ showCurrentLocation = false,
3698
+ onMarkerClick
3699
+ }) {
3700
+ return /* @__PURE__ */ jsx34(APIProvider, { apiKey, children: /* @__PURE__ */ jsx34(
3701
+ "div",
3702
+ {
3703
+ className: cn("overflow-hidden rounded-unit-corner-radius-xl", className),
3704
+ style: { height, width },
3705
+ children: /* @__PURE__ */ jsxs25(
3706
+ GoogleMap,
3707
+ {
3708
+ defaultCenter: center,
3709
+ defaultZoom: zoom,
3710
+ mapId,
3711
+ gestureHandling,
3712
+ disableDefaultUI,
3713
+ style: { width: "100%", height: "100%" },
3714
+ children: [
3715
+ showCurrentLocation && /* @__PURE__ */ jsx34(CurrentLocationMarker, {}),
3716
+ markers.map((marker, i) => /* @__PURE__ */ jsx34(
3717
+ MarkerWithInfo,
3718
+ {
3719
+ marker,
3720
+ index: i,
3721
+ onMarkerClick
3722
+ },
3723
+ `${marker.lat}-${marker.lng}-${i}`
3724
+ ))
3725
+ ]
3726
+ }
3727
+ )
3728
+ }
3729
+ ) });
3730
+ }
3731
+
3607
3732
  // src/ui/Media/index.tsx
3608
3733
  import { cva as cva10 } from "class-variance-authority";
3609
3734
  import { Pause, Play } from "lucide-react";
3610
3735
  import * as React10 from "react";
3611
- import { Fragment as Fragment5, jsx as jsx34, jsxs as jsxs25 } from "react/jsx-runtime";
3736
+ import { Fragment as Fragment6, jsx as jsx35, jsxs as jsxs26 } from "react/jsx-runtime";
3612
3737
  var mediaVariants = cva10(
3613
3738
  "relative overflow-hidden bg-gray-100 dark:bg-gray-800",
3614
3739
  {
@@ -3706,7 +3831,7 @@ var Media = React10.forwardRef(
3706
3831
  const handleImageError = () => {
3707
3832
  setImageError(true);
3708
3833
  };
3709
- return /* @__PURE__ */ jsx34(
3834
+ return /* @__PURE__ */ jsx35(
3710
3835
  "div",
3711
3836
  {
3712
3837
  ref,
@@ -3714,8 +3839,8 @@ var Media = React10.forwardRef(
3714
3839
  onMouseEnter: () => setIsHovered(true),
3715
3840
  onMouseLeave: () => setIsHovered(false),
3716
3841
  ...props,
3717
- children: type === "image" ? /* @__PURE__ */ jsxs25(Fragment5, { children: [
3718
- /* @__PURE__ */ jsx34(
3842
+ children: type === "image" ? /* @__PURE__ */ jsxs26(Fragment6, { children: [
3843
+ /* @__PURE__ */ jsx35(
3719
3844
  "img",
3720
3845
  {
3721
3846
  src,
@@ -3733,13 +3858,13 @@ var Media = React10.forwardRef(
3733
3858
  style: { objectFit }
3734
3859
  }
3735
3860
  ),
3736
- !imageLoaded && !imageError && /* @__PURE__ */ jsx34("div", { className: "absolute inset-0 flex items-center justify-center bg-gray-200 dark:bg-gray-700", children: /* @__PURE__ */ jsx34("div", { className: "h-8 w-8 animate-spin rounded-full border-2 border-gray-300 border-t-gray-600" }) }),
3737
- imageError && /* @__PURE__ */ jsx34("div", { className: "absolute inset-0 flex items-center justify-center bg-gray-200 dark:bg-gray-700", children: /* @__PURE__ */ jsxs25("div", { className: "text-center text-gray-500", children: [
3738
- /* @__PURE__ */ jsx34("div", { className: "text-2xl", children: "\u{1F4F7}" }),
3739
- /* @__PURE__ */ jsx34("div", { className: "text-sm", children: "Failed to load" })
3861
+ !imageLoaded && !imageError && /* @__PURE__ */ jsx35("div", { className: "absolute inset-0 flex items-center justify-center bg-gray-200 dark:bg-gray-700", children: /* @__PURE__ */ jsx35("div", { className: "h-8 w-8 animate-spin rounded-full border-2 border-gray-300 border-t-gray-600" }) }),
3862
+ imageError && /* @__PURE__ */ jsx35("div", { className: "absolute inset-0 flex items-center justify-center bg-gray-200 dark:bg-gray-700", children: /* @__PURE__ */ jsxs26("div", { className: "text-center text-gray-500", children: [
3863
+ /* @__PURE__ */ jsx35("div", { className: "text-2xl", children: "\u{1F4F7}" }),
3864
+ /* @__PURE__ */ jsx35("div", { className: "text-sm", children: "Failed to load" })
3740
3865
  ] }) })
3741
- ] }) : /* @__PURE__ */ jsxs25(Fragment5, { children: [
3742
- /* @__PURE__ */ jsx34(
3866
+ ] }) : /* @__PURE__ */ jsxs26(Fragment6, { children: [
3867
+ /* @__PURE__ */ jsx35(
3743
3868
  "video",
3744
3869
  {
3745
3870
  ref: videoRef,
@@ -3752,7 +3877,7 @@ var Media = React10.forwardRef(
3752
3877
  preload: "metadata"
3753
3878
  }
3754
3879
  ),
3755
- showPlayButton && /* @__PURE__ */ jsx34(
3880
+ showPlayButton && /* @__PURE__ */ jsx35(
3756
3881
  "div",
3757
3882
  {
3758
3883
  className: cn(
@@ -3762,10 +3887,10 @@ var Media = React10.forwardRef(
3762
3887
  "opacity-0": !isHovered && !videoPlaying
3763
3888
  }
3764
3889
  ),
3765
- children: /* @__PURE__ */ jsx34(
3890
+ children: /* @__PURE__ */ jsx35(
3766
3891
  IconButton,
3767
3892
  {
3768
- icon: videoPlaying ? /* @__PURE__ */ jsx34(Pause, { className: "text-gray-900" }) : /* @__PURE__ */ jsx34(Play, { className: "ml-1 text-gray-900" }),
3893
+ icon: videoPlaying ? /* @__PURE__ */ jsx35(Pause, { className: "text-gray-900" }) : /* @__PURE__ */ jsx35(Play, { className: "ml-1 text-gray-900" }),
3769
3894
  onClick: videoPlaying ? handlePause : handlePlay,
3770
3895
  varient: "outline",
3771
3896
  size: "md",
@@ -3786,7 +3911,7 @@ Media.displayName = "Media";
3786
3911
  // src/ui/MultiSelect/index.tsx
3787
3912
  import { ChevronDown as ChevronDown2, CircleXIcon, X as X3 } from "lucide-react";
3788
3913
  import * as React11 from "react";
3789
- import { jsx as jsx35, jsxs as jsxs26 } from "react/jsx-runtime";
3914
+ import { jsx as jsx36, jsxs as jsxs27 } from "react/jsx-runtime";
3790
3915
  function MultiSelect({
3791
3916
  options,
3792
3917
  selected,
@@ -3859,8 +3984,8 @@ function MultiSelect({
3859
3984
  e.preventDefault();
3860
3985
  inputRef.current?.focus();
3861
3986
  };
3862
- return /* @__PURE__ */ jsxs26(Popover, { open, onOpenChange: setOpen, children: [
3863
- /* @__PURE__ */ jsx35(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs26(
3987
+ return /* @__PURE__ */ jsxs27(Popover, { open, onOpenChange: setOpen, children: [
3988
+ /* @__PURE__ */ jsx36(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs27(
3864
3989
  "div",
3865
3990
  {
3866
3991
  ref: containerRef,
@@ -3872,10 +3997,10 @@ function MultiSelect({
3872
3997
  ),
3873
3998
  onClick: handleContainerClick,
3874
3999
  children: [
3875
- /* @__PURE__ */ jsxs26("div", { className: "flex flex-1 flex-wrap items-center gap-1", children: [
4000
+ /* @__PURE__ */ jsxs27("div", { className: "flex flex-1 flex-wrap items-center gap-1", children: [
3876
4001
  selected.map((value) => {
3877
4002
  const option = options.find((opt) => opt.value === value);
3878
- return /* @__PURE__ */ jsx35(
4003
+ return /* @__PURE__ */ jsx36(
3879
4004
  Chip,
3880
4005
  {
3881
4006
  label: option?.label || value,
@@ -3886,12 +4011,12 @@ function MultiSelect({
3886
4011
  className: cn(
3887
4012
  disabled && "pointer-events-none cursor-not-allowed"
3888
4013
  ),
3889
- children: /* @__PURE__ */ jsx35(X3, { className: "hover:text-destructive ml-1.5 h-3 w-3 cursor-pointer" })
4014
+ children: /* @__PURE__ */ jsx36(X3, { className: "hover:text-destructive ml-1.5 h-3 w-3 cursor-pointer" })
3890
4015
  },
3891
4016
  value
3892
4017
  );
3893
4018
  }),
3894
- /* @__PURE__ */ jsx35(
4019
+ /* @__PURE__ */ jsx36(
3895
4020
  "input",
3896
4021
  {
3897
4022
  ref: inputRef,
@@ -3905,25 +4030,25 @@ function MultiSelect({
3905
4030
  }
3906
4031
  )
3907
4032
  ] }),
3908
- selected.length > 0 && /* @__PURE__ */ jsx35(
4033
+ selected.length > 0 && /* @__PURE__ */ jsx36(
3909
4034
  CircleXIcon,
3910
4035
  {
3911
4036
  className: "text-icon-default size-4.5 shrink-0",
3912
4037
  onClick: () => onChange([])
3913
4038
  }
3914
4039
  ),
3915
- !createConfig?.enabled && /* @__PURE__ */ jsx35(ChevronDown2, { className: "text-icon-default size-4.5 shrink-0" })
4040
+ !createConfig?.enabled && /* @__PURE__ */ jsx36(ChevronDown2, { className: "text-icon-default size-4.5 shrink-0" })
3916
4041
  ]
3917
4042
  }
3918
4043
  ) }),
3919
- /* @__PURE__ */ jsx35(
4044
+ /* @__PURE__ */ jsx36(
3920
4045
  PopoverContent,
3921
4046
  {
3922
4047
  className: "shadow-box w-[var(--radix-popover-trigger-width)] border-none bg-white p-2",
3923
4048
  align: "start",
3924
- children: /* @__PURE__ */ jsx35("div", { className: "p-0", children: /* @__PURE__ */ jsx35("div", { className: "max-h-[300px] overflow-y-auto", children: filteredOptions.length === 0 && !canCreate ? /* @__PURE__ */ jsx35("div", { className: "py-6 text-center text-gray-500", children: inputValue ? "No results found." : "Start typing to search..." }) : /* @__PURE__ */ jsxs26("div", { className: "flex flex-col gap-1.5 px-1.5 pt-1.5 pb-0.5", children: [
3925
- createConfig?.enabled && /* @__PURE__ */ jsx35("p", { className: "text-text-default pb-0.5 font-semibold", children: "Select or create one" }),
3926
- filteredOptions.map((option) => /* @__PURE__ */ jsx35(
4049
+ children: /* @__PURE__ */ jsx36("div", { className: "p-0", children: /* @__PURE__ */ jsx36("div", { className: "max-h-[300px] overflow-y-auto", children: filteredOptions.length === 0 && !canCreate ? /* @__PURE__ */ jsx36("div", { className: "py-6 text-center text-gray-500", children: inputValue ? "No results found." : "Start typing to search..." }) : /* @__PURE__ */ jsxs27("div", { className: "flex flex-col gap-1.5 px-1.5 pt-1.5 pb-0.5", children: [
4050
+ createConfig?.enabled && /* @__PURE__ */ jsx36("p", { className: "text-text-default pb-0.5 font-semibold", children: "Select or create one" }),
4051
+ filteredOptions.map((option) => /* @__PURE__ */ jsx36(
3927
4052
  Chip,
3928
4053
  {
3929
4054
  label: option.label,
@@ -3932,14 +4057,14 @@ function MultiSelect({
3932
4057
  },
3933
4058
  option.value
3934
4059
  )),
3935
- canCreate && /* @__PURE__ */ jsxs26(
4060
+ canCreate && /* @__PURE__ */ jsxs27(
3936
4061
  "div",
3937
4062
  {
3938
4063
  onClick: async () => await handleCreate(),
3939
4064
  className: "flex items-center justify-between",
3940
4065
  children: [
3941
- /* @__PURE__ */ jsx35(Chip, { label: inputValue.trim(), className: "rounded-md" }),
3942
- /* @__PURE__ */ jsx35(
4066
+ /* @__PURE__ */ jsx36(Chip, { label: inputValue.trim(), className: "rounded-md" }),
4067
+ /* @__PURE__ */ jsx36(
3943
4068
  Button,
3944
4069
  {
3945
4070
  variant: "ghost",
@@ -3963,7 +4088,7 @@ import {
3963
4088
  OTPInputContext as BaseOTPInputContext
3964
4089
  } from "input-otp";
3965
4090
  import * as React12 from "react";
3966
- import { jsx as jsx36, jsxs as jsxs27 } from "react/jsx-runtime";
4091
+ import { jsx as jsx37, jsxs as jsxs28 } from "react/jsx-runtime";
3967
4092
  function OTPInput({
3968
4093
  type = 4,
3969
4094
  separate = false,
@@ -3971,8 +4096,8 @@ function OTPInput({
3971
4096
  className,
3972
4097
  ...props
3973
4098
  }) {
3974
- return /* @__PURE__ */ jsx36("div", { className: cn(className), children: /* @__PURE__ */ jsxs27(InputOTP, { disabled, className: "w-full", ...props, children: [
3975
- /* @__PURE__ */ jsx36(InputOTPGroup, { className: "w-full", children: [...new Array(type / 2)].map((_, index) => /* @__PURE__ */ jsx36(
4099
+ return /* @__PURE__ */ jsx37("div", { className: cn(className), children: /* @__PURE__ */ jsxs28(InputOTP, { disabled, className: "w-full", ...props, children: [
4100
+ /* @__PURE__ */ jsx37(InputOTPGroup, { className: "w-full", children: [...new Array(type / 2)].map((_, index) => /* @__PURE__ */ jsx37(
3976
4101
  InputOTPSlot,
3977
4102
  {
3978
4103
  className: "w-full",
@@ -3981,8 +4106,8 @@ function OTPInput({
3981
4106
  },
3982
4107
  index
3983
4108
  )) }),
3984
- separate && /* @__PURE__ */ jsx36(InputOTPSeparator, {}),
3985
- /* @__PURE__ */ jsx36(InputOTPGroup, { className: "w-full", children: [...new Array(type / 2)].map((_, index) => /* @__PURE__ */ jsx36(
4109
+ separate && /* @__PURE__ */ jsx37(InputOTPSeparator, {}),
4110
+ /* @__PURE__ */ jsx37(InputOTPGroup, { className: "w-full", children: [...new Array(type / 2)].map((_, index) => /* @__PURE__ */ jsx37(
3986
4111
  InputOTPSlot,
3987
4112
  {
3988
4113
  className: "w-full",
@@ -3998,7 +4123,7 @@ function InputOTP({
3998
4123
  containerClassName,
3999
4124
  ...props
4000
4125
  }) {
4001
- return /* @__PURE__ */ jsx36(
4126
+ return /* @__PURE__ */ jsx37(
4002
4127
  BaseOTPInput,
4003
4128
  {
4004
4129
  "data-slot": "input-otp",
@@ -4009,7 +4134,7 @@ function InputOTP({
4009
4134
  );
4010
4135
  }
4011
4136
  function InputOTPGroup({ className, ...props }) {
4012
- return /* @__PURE__ */ jsx36(
4137
+ return /* @__PURE__ */ jsx37(
4013
4138
  "div",
4014
4139
  {
4015
4140
  "data-slot": "input-otp-group",
@@ -4027,7 +4152,7 @@ function InputOTPSlot({
4027
4152
  }) {
4028
4153
  const inputOTPContext = React12.useContext(BaseOTPInputContext);
4029
4154
  const { char, hasFakeCaret, isActive } = inputOTPContext?.slots[index] ?? {};
4030
- return /* @__PURE__ */ jsxs27(
4155
+ return /* @__PURE__ */ jsxs28(
4031
4156
  "div",
4032
4157
  {
4033
4158
  "data-slot": "input-otp-slot",
@@ -4042,26 +4167,26 @@ function InputOTPSlot({
4042
4167
  ),
4043
4168
  ...props,
4044
4169
  children: [
4045
- /* @__PURE__ */ jsx36("span", { className: "text-h6", children: char || placeholder }),
4046
- hasFakeCaret && /* @__PURE__ */ jsx36("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx36("div", { className: "animate-caret-blink bg-foreground h-4 w-px duration-1000" }) })
4170
+ /* @__PURE__ */ jsx37("span", { className: "text-h6", children: char || placeholder }),
4171
+ hasFakeCaret && /* @__PURE__ */ jsx37("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx37("div", { className: "animate-caret-blink bg-foreground h-4 w-px duration-1000" }) })
4047
4172
  ]
4048
4173
  }
4049
4174
  );
4050
4175
  }
4051
4176
  function InputOTPSeparator({ ...props }) {
4052
- return /* @__PURE__ */ jsx36("div", { "data-slot": "input-otp-separator", role: "separator", ...props, children: /* @__PURE__ */ jsx36("div", { className: "bg-border-primary-normal h-0.5 w-2" }) });
4177
+ return /* @__PURE__ */ jsx37("div", { "data-slot": "input-otp-separator", role: "separator", ...props, children: /* @__PURE__ */ jsx37("div", { className: "bg-border-primary-normal h-0.5 w-2" }) });
4053
4178
  }
4054
4179
 
4055
4180
  // src/ui/PasswordInput/index.tsx
4056
4181
  import * as React13 from "react";
4057
4182
  import { Eye, EyeOff } from "lucide-react";
4058
- import { jsx as jsx37, jsxs as jsxs28 } from "react/jsx-runtime";
4183
+ import { jsx as jsx38, jsxs as jsxs29 } from "react/jsx-runtime";
4059
4184
  var PasswordInput = React13.memo(
4060
4185
  ({ type, label, className, ...props }) => {
4061
4186
  const [showPassword, setShowPassword] = React13.useState(false);
4062
4187
  const error = props["aria-invalid"] || false;
4063
4188
  const inputRef = React13.useRef(null);
4064
- return /* @__PURE__ */ jsxs28(
4189
+ return /* @__PURE__ */ jsxs29(
4065
4190
  "div",
4066
4191
  {
4067
4192
  className: cn(
@@ -4081,7 +4206,7 @@ var PasswordInput = React13.memo(
4081
4206
  }
4082
4207
  ),
4083
4208
  children: [
4084
- /* @__PURE__ */ jsx37(
4209
+ /* @__PURE__ */ jsx38(
4085
4210
  "input",
4086
4211
  {
4087
4212
  ref: inputRef,
@@ -4105,7 +4230,7 @@ var PasswordInput = React13.memo(
4105
4230
  }
4106
4231
  }
4107
4232
  ),
4108
- /* @__PURE__ */ jsx37(
4233
+ /* @__PURE__ */ jsx38(
4109
4234
  "button",
4110
4235
  {
4111
4236
  tabIndex: -1,
@@ -4114,7 +4239,7 @@ var PasswordInput = React13.memo(
4114
4239
  onClick: () => setShowPassword(!showPassword),
4115
4240
  "aria-label": showPassword ? "Hide password" : "Show password",
4116
4241
  className: "hover:bg-primary-bg-soft absolute right-2 flex h-5 w-5 cursor-pointer items-center justify-center rounded-sm bg-white",
4117
- children: showPassword ? /* @__PURE__ */ jsx37(Eye, { size: 16, className: "text-element-inverse-default-alt" }) : /* @__PURE__ */ jsx37(EyeOff, { size: 16, className: "text-element-inverse-default-alt" })
4242
+ children: showPassword ? /* @__PURE__ */ jsx38(Eye, { size: 16, className: "text-element-inverse-default-alt" }) : /* @__PURE__ */ jsx38(EyeOff, { size: 16, className: "text-element-inverse-default-alt" })
4118
4243
  }
4119
4244
  )
4120
4245
  ]
@@ -4126,16 +4251,16 @@ var PasswordInput = React13.memo(
4126
4251
  // src/ui/Radio/index.tsx
4127
4252
  import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
4128
4253
  import { CircleIcon as CircleIcon2 } from "lucide-react";
4129
- import { jsx as jsx38, jsxs as jsxs29 } from "react/jsx-runtime";
4254
+ import { jsx as jsx39, jsxs as jsxs30 } from "react/jsx-runtime";
4130
4255
  function Radio({ onSelect, options, ...props }) {
4131
- return /* @__PURE__ */ jsx38(BaseRadioGroup, { ...props, children: options.map((option) => {
4132
- return /* @__PURE__ */ jsxs29(
4256
+ return /* @__PURE__ */ jsx39(BaseRadioGroup, { ...props, children: options.map((option) => {
4257
+ return /* @__PURE__ */ jsxs30(
4133
4258
  Label2,
4134
4259
  {
4135
4260
  htmlFor: option.value,
4136
4261
  className: "hover:bg-surface-bg flex cursor-pointer items-center gap-x-2 rounded-lg p-1.5",
4137
4262
  children: [
4138
- /* @__PURE__ */ jsx38(
4263
+ /* @__PURE__ */ jsx39(
4139
4264
  BaseRadioGroupItem,
4140
4265
  {
4141
4266
  onClick: () => {
@@ -4156,7 +4281,7 @@ function BaseRadioGroup({
4156
4281
  className,
4157
4282
  ...props
4158
4283
  }) {
4159
- return /* @__PURE__ */ jsx38(
4284
+ return /* @__PURE__ */ jsx39(
4160
4285
  RadioGroupPrimitive.Root,
4161
4286
  {
4162
4287
  "data-slot": "radio-group",
@@ -4169,7 +4294,7 @@ function BaseRadioGroupItem({
4169
4294
  className,
4170
4295
  ...props
4171
4296
  }) {
4172
- return /* @__PURE__ */ jsx38(
4297
+ return /* @__PURE__ */ jsx39(
4173
4298
  RadioGroupPrimitive.Item,
4174
4299
  {
4175
4300
  "data-slot": "radio-group-item",
@@ -4178,12 +4303,12 @@ function BaseRadioGroupItem({
4178
4303
  className
4179
4304
  ),
4180
4305
  ...props,
4181
- children: /* @__PURE__ */ jsx38(
4306
+ children: /* @__PURE__ */ jsx39(
4182
4307
  RadioGroupPrimitive.Indicator,
4183
4308
  {
4184
4309
  "data-slot": "radio-group-indicator",
4185
4310
  className: "relative flex items-center justify-center",
4186
- children: /* @__PURE__ */ jsx38(CircleIcon2, { className: "fill-check-box-and-radio-checked-enabled group-data-[state=checked]:hover:fill-check-box-and-radio-checked-hovered absolute top-1/2 left-1/2 size-[16px] -translate-x-1/2 -translate-y-1/2 stroke-none" })
4311
+ children: /* @__PURE__ */ jsx39(CircleIcon2, { className: "fill-check-box-and-radio-checked-enabled group-data-[state=checked]:hover:fill-check-box-and-radio-checked-hovered absolute top-1/2 left-1/2 size-[16px] -translate-x-1/2 -translate-y-1/2 stroke-none" })
4187
4312
  }
4188
4313
  )
4189
4314
  }
@@ -4194,8 +4319,8 @@ function BaseRadioGroupItem({
4194
4319
  import { debounce } from "lodash";
4195
4320
  import { SearchIcon as SearchIcon2 } from "lucide-react";
4196
4321
  import { useQueryState } from "nuqs";
4197
- import { useCallback as useCallback3, useEffect as useEffect6, useState as useState9 } from "react";
4198
- import { jsx as jsx39 } from "react/jsx-runtime";
4322
+ import { useCallback as useCallback4, useEffect as useEffect7, useState as useState10 } from "react";
4323
+ import { jsx as jsx40 } from "react/jsx-runtime";
4199
4324
  function SearchInput({
4200
4325
  searchKey,
4201
4326
  placeholder = "Search by...",
@@ -4207,8 +4332,8 @@ function SearchInput({
4207
4332
  const [search, setSearch] = useQueryState(searchKey, {
4208
4333
  defaultValue: ""
4209
4334
  });
4210
- const [inputValue, setInputValue] = useState9(search ?? "");
4211
- const debouncedSetValue = useCallback3(
4335
+ const [inputValue, setInputValue] = useState10(search ?? "");
4336
+ const debouncedSetValue = useCallback4(
4212
4337
  debounce((value) => {
4213
4338
  if (addToParam) {
4214
4339
  setSearch(value);
@@ -4218,13 +4343,13 @@ function SearchInput({
4218
4343
  }, debounceDelay),
4219
4344
  [debounceDelay, addToParam, setSearch]
4220
4345
  );
4221
- useEffect6(() => {
4346
+ useEffect7(() => {
4222
4347
  debouncedSetValue(inputValue);
4223
4348
  return () => {
4224
4349
  debouncedSetValue.cancel();
4225
4350
  };
4226
4351
  }, [inputValue, debouncedSetValue]);
4227
- return /* @__PURE__ */ jsx39("div", { className: cn("relative", className), children: /* @__PURE__ */ jsx39(
4352
+ return /* @__PURE__ */ jsx40("div", { className: cn("relative", className), children: /* @__PURE__ */ jsx40(
4228
4353
  Input,
4229
4354
  {
4230
4355
  onChange: (e) => {
@@ -4233,7 +4358,7 @@ function SearchInput({
4233
4358
  },
4234
4359
  placeholder,
4235
4360
  prefixNode: {
4236
- node: /* @__PURE__ */ jsx39(SearchIcon2, { className: "text-element-inverse-default" }),
4361
+ node: /* @__PURE__ */ jsx40(SearchIcon2, { className: "text-element-inverse-default" }),
4237
4362
  withBorder: false
4238
4363
  },
4239
4364
  value: inputValue,
@@ -4246,7 +4371,7 @@ function SearchInput({
4246
4371
  // src/ui/SelectHover/index.tsx
4247
4372
  import { Check as Check2 } from "lucide-react";
4248
4373
  import * as React14 from "react";
4249
- import { jsx as jsx40, jsxs as jsxs30 } from "react/jsx-runtime";
4374
+ import { jsx as jsx41, jsxs as jsxs31 } from "react/jsx-runtime";
4250
4375
  function SelectHover({
4251
4376
  options,
4252
4377
  placeholder = "Select an option",
@@ -4273,15 +4398,15 @@ function SelectHover({
4273
4398
  setIsOpen(false);
4274
4399
  }, 300);
4275
4400
  };
4276
- return /* @__PURE__ */ jsx40(Popover, { open: isOpen, onOpenChange: setIsOpen, children: /* @__PURE__ */ jsxs30("div", { onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: [
4277
- /* @__PURE__ */ jsx40(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx40(Button, { role: "combobox", "aria-expanded": isOpen, className, children: /* @__PURE__ */ jsx40("span", { className: "truncate", children: selectedOption ? selectedOption.label : placeholder }) }) }),
4278
- /* @__PURE__ */ jsx40(
4401
+ return /* @__PURE__ */ jsx41(Popover, { open: isOpen, onOpenChange: setIsOpen, children: /* @__PURE__ */ jsxs31("div", { onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: [
4402
+ /* @__PURE__ */ jsx41(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx41(Button, { role: "combobox", "aria-expanded": isOpen, className, children: /* @__PURE__ */ jsx41("span", { className: "truncate", children: selectedOption ? selectedOption.label : placeholder }) }) }),
4403
+ /* @__PURE__ */ jsx41(
4279
4404
  PopoverContent,
4280
4405
  {
4281
4406
  className: "bg-surface-bg-container w-full rounded-3xl border-none p-2 shadow-md",
4282
4407
  onMouseEnter: handleMouseEnter,
4283
4408
  onMouseLeave: handleMouseLeave,
4284
- children: /* @__PURE__ */ jsx40("div", { className: "flex max-h-[300px] flex-col items-start gap-[2px] overflow-auto", children: options.map((option) => /* @__PURE__ */ jsxs30(
4409
+ children: /* @__PURE__ */ jsx41("div", { className: "flex max-h-[300px] flex-col items-start gap-[2px] overflow-auto", children: options.map((option) => /* @__PURE__ */ jsxs31(
4285
4410
  "button",
4286
4411
  {
4287
4412
  className: cn(
@@ -4290,8 +4415,8 @@ function SelectHover({
4290
4415
  ),
4291
4416
  onClick: () => handleSelect(option.value),
4292
4417
  children: [
4293
- /* @__PURE__ */ jsx40("span", { className: "flex-1", children: option.label }),
4294
- value === option.value && /* @__PURE__ */ jsx40(Check2, { className: "text-icon-secondary ml-2 h-4 w-4" })
4418
+ /* @__PURE__ */ jsx41("span", { className: "flex-1", children: option.label }),
4419
+ value === option.value && /* @__PURE__ */ jsx41(Check2, { className: "text-icon-secondary ml-2 h-4 w-4" })
4295
4420
  ]
4296
4421
  },
4297
4422
  option.value
@@ -4304,7 +4429,7 @@ function SelectHover({
4304
4429
  // src/ui/SelectInput/index.tsx
4305
4430
  import * as SelectPrimitive from "@radix-ui/react-select";
4306
4431
  import { CheckIcon as CheckIcon4, ChevronDownIcon as ChevronDownIcon3, ChevronUpIcon } from "lucide-react";
4307
- import { jsx as jsx41, jsxs as jsxs31 } from "react/jsx-runtime";
4432
+ import { jsx as jsx42, jsxs as jsxs32 } from "react/jsx-runtime";
4308
4433
  function SelectInput({
4309
4434
  defaultValue,
4310
4435
  options,
@@ -4317,8 +4442,8 @@ function SelectInput({
4317
4442
  itemProps,
4318
4443
  ...props
4319
4444
  }) {
4320
- return /* @__PURE__ */ jsxs31(BaseSelect, { onValueChange: onChange, defaultValue, ...props, children: [
4321
- /* @__PURE__ */ jsx41(
4445
+ return /* @__PURE__ */ jsxs32(BaseSelect, { onValueChange: onChange, defaultValue, ...props, children: [
4446
+ /* @__PURE__ */ jsx42(
4322
4447
  BaseSelectTrigger,
4323
4448
  {
4324
4449
  withArrow,
@@ -4326,7 +4451,7 @@ function SelectInput({
4326
4451
  "aria-invalid": props["aria-invalid"],
4327
4452
  className: cn("w-full cursor-pointer", className),
4328
4453
  variant,
4329
- children: /* @__PURE__ */ jsx41(
4454
+ children: /* @__PURE__ */ jsx42(
4330
4455
  BaseSelectValue,
4331
4456
  {
4332
4457
  className: "flex-1",
@@ -4335,7 +4460,7 @@ function SelectInput({
4335
4460
  )
4336
4461
  }
4337
4462
  ),
4338
- /* @__PURE__ */ jsx41(
4463
+ /* @__PURE__ */ jsx42(
4339
4464
  BaseSelectContent,
4340
4465
  {
4341
4466
  ...contentProps,
@@ -4343,7 +4468,7 @@ function SelectInput({
4343
4468
  "border-stroke-inverse-slate-02 border",
4344
4469
  contentProps?.className
4345
4470
  ),
4346
- children: options.map((option) => /* @__PURE__ */ jsxs31(
4471
+ children: options.map((option) => /* @__PURE__ */ jsxs32(
4347
4472
  BaseSelectItem,
4348
4473
  {
4349
4474
  value: option.value,
@@ -4363,12 +4488,12 @@ function SelectInput({
4363
4488
  function BaseSelect({
4364
4489
  ...props
4365
4490
  }) {
4366
- return /* @__PURE__ */ jsx41(SelectPrimitive.Root, { "data-slot": "select", ...props });
4491
+ return /* @__PURE__ */ jsx42(SelectPrimitive.Root, { "data-slot": "select", ...props });
4367
4492
  }
4368
4493
  function BaseSelectValue({
4369
4494
  ...props
4370
4495
  }) {
4371
- return /* @__PURE__ */ jsx41(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
4496
+ return /* @__PURE__ */ jsx42(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
4372
4497
  }
4373
4498
  function BaseSelectTrigger({
4374
4499
  className,
@@ -4378,7 +4503,7 @@ function BaseSelectTrigger({
4378
4503
  children,
4379
4504
  ...props
4380
4505
  }) {
4381
- return /* @__PURE__ */ jsxs31(
4506
+ return /* @__PURE__ */ jsxs32(
4382
4507
  SelectPrimitive.Trigger,
4383
4508
  {
4384
4509
  "data-slot": "select-trigger",
@@ -4399,7 +4524,7 @@ function BaseSelectTrigger({
4399
4524
  ...props,
4400
4525
  children: [
4401
4526
  children,
4402
- withArrow && /* @__PURE__ */ jsx41(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx41(ChevronDownIcon3, { className: "text-icon-default size-4" }) })
4527
+ withArrow && /* @__PURE__ */ jsx42(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx42(ChevronDownIcon3, { className: "text-icon-default size-4" }) })
4403
4528
  ]
4404
4529
  }
4405
4530
  );
@@ -4410,7 +4535,7 @@ function BaseSelectContent({
4410
4535
  position = "popper",
4411
4536
  ...props
4412
4537
  }) {
4413
- return /* @__PURE__ */ jsx41(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs31(
4538
+ return /* @__PURE__ */ jsx42(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs32(
4414
4539
  SelectPrimitive.Content,
4415
4540
  {
4416
4541
  "data-slot": "select-content",
@@ -4422,8 +4547,8 @@ function BaseSelectContent({
4422
4547
  position,
4423
4548
  ...props,
4424
4549
  children: [
4425
- /* @__PURE__ */ jsx41(BaseSelectScrollUpButton, {}),
4426
- /* @__PURE__ */ jsx41(
4550
+ /* @__PURE__ */ jsx42(BaseSelectScrollUpButton, {}),
4551
+ /* @__PURE__ */ jsx42(
4427
4552
  SelectPrimitive.Viewport,
4428
4553
  {
4429
4554
  className: cn(
@@ -4433,7 +4558,7 @@ function BaseSelectContent({
4433
4558
  children
4434
4559
  }
4435
4560
  ),
4436
- /* @__PURE__ */ jsx41(BaseSelectScrollDownButton, {})
4561
+ /* @__PURE__ */ jsx42(BaseSelectScrollDownButton, {})
4437
4562
  ]
4438
4563
  }
4439
4564
  ) });
@@ -4443,7 +4568,7 @@ function BaseSelectItem({
4443
4568
  children,
4444
4569
  ...props
4445
4570
  }) {
4446
- return /* @__PURE__ */ jsxs31(
4571
+ return /* @__PURE__ */ jsxs32(
4447
4572
  SelectPrimitive.Item,
4448
4573
  {
4449
4574
  "data-slot": "select-item",
@@ -4453,8 +4578,8 @@ function BaseSelectItem({
4453
4578
  ),
4454
4579
  ...props,
4455
4580
  children: [
4456
- /* @__PURE__ */ jsx41("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx41(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx41(CheckIcon4, { className: "text-icon-secondary size-4" }) }) }),
4457
- /* @__PURE__ */ jsx41(SelectPrimitive.ItemText, { children })
4581
+ /* @__PURE__ */ jsx42("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx42(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx42(CheckIcon4, { className: "text-icon-secondary size-4" }) }) }),
4582
+ /* @__PURE__ */ jsx42(SelectPrimitive.ItemText, { children })
4458
4583
  ]
4459
4584
  }
4460
4585
  );
@@ -4463,7 +4588,7 @@ function BaseSelectScrollUpButton({
4463
4588
  className,
4464
4589
  ...props
4465
4590
  }) {
4466
- return /* @__PURE__ */ jsx41(
4591
+ return /* @__PURE__ */ jsx42(
4467
4592
  SelectPrimitive.ScrollUpButton,
4468
4593
  {
4469
4594
  "data-slot": "select-scroll-up-button",
@@ -4472,7 +4597,7 @@ function BaseSelectScrollUpButton({
4472
4597
  className
4473
4598
  ),
4474
4599
  ...props,
4475
- children: /* @__PURE__ */ jsx41(ChevronUpIcon, { className: "size-4" })
4600
+ children: /* @__PURE__ */ jsx42(ChevronUpIcon, { className: "size-4" })
4476
4601
  }
4477
4602
  );
4478
4603
  }
@@ -4480,7 +4605,7 @@ function BaseSelectScrollDownButton({
4480
4605
  className,
4481
4606
  ...props
4482
4607
  }) {
4483
- return /* @__PURE__ */ jsx41(
4608
+ return /* @__PURE__ */ jsx42(
4484
4609
  SelectPrimitive.ScrollDownButton,
4485
4610
  {
4486
4611
  "data-slot": "select-scroll-down-button",
@@ -4489,7 +4614,7 @@ function BaseSelectScrollDownButton({
4489
4614
  className
4490
4615
  ),
4491
4616
  ...props,
4492
- children: /* @__PURE__ */ jsx41(ChevronDownIcon3, { className: "size-4" })
4617
+ children: /* @__PURE__ */ jsx42(ChevronDownIcon3, { className: "size-4" })
4493
4618
  }
4494
4619
  );
4495
4620
  }
@@ -4497,15 +4622,15 @@ function BaseSelectScrollDownButton({
4497
4622
  // src/ui/Sheet/index.tsx
4498
4623
  import * as SheetPrimitive from "@radix-ui/react-dialog";
4499
4624
  import { XIcon as XIcon3 } from "lucide-react";
4500
- import { jsx as jsx42, jsxs as jsxs32 } from "react/jsx-runtime";
4625
+ import { jsx as jsx43, jsxs as jsxs33 } from "react/jsx-runtime";
4501
4626
  function Sheet({ ...props }) {
4502
- return /* @__PURE__ */ jsx42(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
4627
+ return /* @__PURE__ */ jsx43(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
4503
4628
  }
4504
4629
 
4505
4630
  // src/ui/Skeleton/index.tsx
4506
- import { jsx as jsx43 } from "react/jsx-runtime";
4631
+ import { jsx as jsx44 } from "react/jsx-runtime";
4507
4632
  function Skeleton({ className, ...props }) {
4508
- return /* @__PURE__ */ jsx43(
4633
+ return /* @__PURE__ */ jsx44(
4509
4634
  "div",
4510
4635
  {
4511
4636
  "data-slot": "skeleton",
@@ -4521,7 +4646,7 @@ function Skeleton({ className, ...props }) {
4521
4646
  // src/ui/Slider/index.tsx
4522
4647
  import * as SliderPrimitive from "@radix-ui/react-slider";
4523
4648
  import * as React15 from "react";
4524
- import { jsx as jsx44, jsxs as jsxs33 } from "react/jsx-runtime";
4649
+ import { jsx as jsx45, jsxs as jsxs34 } from "react/jsx-runtime";
4525
4650
  function Slider({
4526
4651
  className,
4527
4652
  defaultValue,
@@ -4534,7 +4659,7 @@ function Slider({
4534
4659
  () => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max],
4535
4660
  [value, defaultValue, min, max]
4536
4661
  );
4537
- return /* @__PURE__ */ jsxs33(
4662
+ return /* @__PURE__ */ jsxs34(
4538
4663
  SliderPrimitive.Root,
4539
4664
  {
4540
4665
  "data-slot": "slider",
@@ -4548,14 +4673,14 @@ function Slider({
4548
4673
  ),
4549
4674
  ...props,
4550
4675
  children: [
4551
- /* @__PURE__ */ jsx44(
4676
+ /* @__PURE__ */ jsx45(
4552
4677
  SliderPrimitive.Track,
4553
4678
  {
4554
4679
  "data-slot": "slider-track",
4555
4680
  className: cn(
4556
4681
  "bg-audioProgress-bg relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"
4557
4682
  ),
4558
- children: /* @__PURE__ */ jsx44(
4683
+ children: /* @__PURE__ */ jsx45(
4559
4684
  SliderPrimitive.Range,
4560
4685
  {
4561
4686
  "data-slot": "slider-range",
@@ -4566,7 +4691,7 @@ function Slider({
4566
4691
  )
4567
4692
  }
4568
4693
  ),
4569
- Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ jsx44(
4694
+ Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ jsx45(
4570
4695
  SliderPrimitive.Thumb,
4571
4696
  {
4572
4697
  "data-slot": "slider-thumb",
@@ -4582,10 +4707,10 @@ function Slider({
4582
4707
  // src/ui/Sooner/index.tsx
4583
4708
  import { useTheme } from "next-themes";
4584
4709
  import { Toaster as Sonner } from "sonner";
4585
- import { jsx as jsx45 } from "react/jsx-runtime";
4710
+ import { jsx as jsx46 } from "react/jsx-runtime";
4586
4711
  var Toaster = ({ ...props }) => {
4587
4712
  const { theme = "system" } = useTheme();
4588
- return /* @__PURE__ */ jsx45(
4713
+ return /* @__PURE__ */ jsx46(
4589
4714
  Sonner,
4590
4715
  {
4591
4716
  theme,
@@ -4602,14 +4727,14 @@ var Toaster = ({ ...props }) => {
4602
4727
 
4603
4728
  // src/ui/Switch/index.tsx
4604
4729
  import * as SwitchPrimitive from "@radix-ui/react-switch";
4605
- import { jsx as jsx46, jsxs as jsxs34 } from "react/jsx-runtime";
4730
+ import { jsx as jsx47, jsxs as jsxs35 } from "react/jsx-runtime";
4606
4731
  function Switch({
4607
4732
  className,
4608
4733
  label,
4609
4734
  ...props
4610
4735
  }) {
4611
- return /* @__PURE__ */ jsxs34("div", { className: "flex items-center space-x-2", children: [
4612
- /* @__PURE__ */ jsx46(
4736
+ return /* @__PURE__ */ jsxs35("div", { className: "flex items-center space-x-2", children: [
4737
+ /* @__PURE__ */ jsx47(
4613
4738
  SwitchPrimitive.Root,
4614
4739
  {
4615
4740
  "data-slot": "switch",
@@ -4619,7 +4744,7 @@ function Switch({
4619
4744
  className
4620
4745
  ),
4621
4746
  ...props,
4622
- children: /* @__PURE__ */ jsx46(
4747
+ children: /* @__PURE__ */ jsx47(
4623
4748
  SwitchPrimitive.Thumb,
4624
4749
  {
4625
4750
  "data-slot": "switch-thumb",
@@ -4630,7 +4755,7 @@ function Switch({
4630
4755
  )
4631
4756
  }
4632
4757
  ),
4633
- label && /* @__PURE__ */ jsx46(Label2, { htmlFor: props.id || label, children: label })
4758
+ label && /* @__PURE__ */ jsx47(Label2, { htmlFor: props.id || label, children: label })
4634
4759
  ] });
4635
4760
  }
4636
4761
 
@@ -4653,8 +4778,8 @@ import {
4653
4778
  MagickoCopySuccess
4654
4779
  } from "magick-icons";
4655
4780
  import * as React16 from "react";
4656
- import { useState as useState11 } from "react";
4657
- import { Fragment as Fragment6, jsx as jsx47, jsxs as jsxs35 } from "react/jsx-runtime";
4781
+ import { useState as useState12 } from "react";
4782
+ import { Fragment as Fragment7, jsx as jsx48, jsxs as jsxs36 } from "react/jsx-runtime";
4658
4783
  var Table = ({
4659
4784
  columns,
4660
4785
  tableData,
@@ -4662,7 +4787,7 @@ var Table = ({
4662
4787
  emptyState = {
4663
4788
  emptyAction: void 0,
4664
4789
  label: "There is currently no data available to display in this table.",
4665
- icon: /* @__PURE__ */ jsx47(IconProfile, { icon: /* @__PURE__ */ jsx47(IconsaxBriefcaseBold, {}), color: "teal" })
4790
+ icon: /* @__PURE__ */ jsx48(IconProfile, { icon: /* @__PURE__ */ jsx48(IconsaxBriefcaseBold, {}), color: "teal" })
4666
4791
  },
4667
4792
  onRowClick
4668
4793
  }) => {
@@ -4674,41 +4799,41 @@ var Table = ({
4674
4799
  getSortedRowModel: getSortedRowModel()
4675
4800
  });
4676
4801
  const rowCount = table.getRowModel().rows.length;
4677
- return /* @__PURE__ */ jsxs35("div", { className: "relative flex flex-col overflow-auto", children: [
4678
- isLoading ? /* @__PURE__ */ jsx47(
4802
+ return /* @__PURE__ */ jsxs36("div", { className: "relative flex flex-col overflow-auto", children: [
4803
+ isLoading ? /* @__PURE__ */ jsx48(
4679
4804
  "div",
4680
4805
  {
4681
4806
  className: cn(
4682
4807
  rowCount === 0 ? "" : "bg-gray-100 dark:bg-gray-700",
4683
4808
  "absolute top-10 left-0 w-full h-full min-h-[100px] opacity-70 z-10 flex items-center justify-center"
4684
4809
  ),
4685
- children: /* @__PURE__ */ jsx47(Spinner, { className: "size-10 text-stroke-inverse-slate-04 " })
4810
+ children: /* @__PURE__ */ jsx48(Spinner, { className: "size-10 text-stroke-inverse-slate-04 " })
4686
4811
  }
4687
4812
  ) : null,
4688
- !isLoading && rowCount === 0 ? /* @__PURE__ */ jsx47("div", { className: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-2", children: /* @__PURE__ */ jsxs35("div", { className: "flex flex-col items-center gap-4", children: [
4813
+ !isLoading && rowCount === 0 ? /* @__PURE__ */ jsx48("div", { className: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-2", children: /* @__PURE__ */ jsxs36("div", { className: "flex flex-col items-center gap-4", children: [
4689
4814
  emptyState?.icon,
4690
- /* @__PURE__ */ jsx47(Text, { children: emptyState?.label }),
4691
- emptyState?.emptyAction ? /* @__PURE__ */ jsx47(
4815
+ /* @__PURE__ */ jsx48(Text, { children: emptyState?.label }),
4816
+ emptyState?.emptyAction ? /* @__PURE__ */ jsx48(
4692
4817
  Button,
4693
4818
  {
4694
4819
  variant: "outline",
4695
- prefix: /* @__PURE__ */ jsx47(MagickoAdd, { className: "[&_path]:fill-element-inverse-default" }),
4820
+ prefix: /* @__PURE__ */ jsx48(MagickoAdd, { className: "[&_path]:fill-element-inverse-default" }),
4696
4821
  onClick: () => emptyState?.emptyAction?.(),
4697
4822
  children: "Create new"
4698
4823
  }
4699
4824
  ) : null
4700
4825
  ] }) }) : null,
4701
- /* @__PURE__ */ jsx47("div", { className: "max-w-full flex-1 overflow-x-auto", children: /* @__PURE__ */ jsxs35(
4826
+ /* @__PURE__ */ jsx48("div", { className: "max-w-full flex-1 overflow-x-auto", children: /* @__PURE__ */ jsxs36(
4702
4827
  "table",
4703
4828
  {
4704
4829
  className: "w-full caption-bottom text-sm",
4705
4830
  style: { minWidth: "max-content" },
4706
4831
  children: [
4707
- /* @__PURE__ */ jsx47("thead", { className: "bg-fill-inverse-slate-03", children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx47(
4832
+ /* @__PURE__ */ jsx48("thead", { className: "bg-fill-inverse-slate-03", children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx48(
4708
4833
  "tr",
4709
4834
  {
4710
4835
  className: "hover:bg-muted/50 border-stroke-inverse-slate-02 border-b transition-colors",
4711
- children: headerGroup.headers.map((header) => /* @__PURE__ */ jsx47(
4836
+ children: headerGroup.headers.map((header) => /* @__PURE__ */ jsx48(
4712
4837
  "th",
4713
4838
  {
4714
4839
  className: "text-muted-foreground h-12 px-4 text-left align-middle font-medium",
@@ -4722,14 +4847,14 @@ var Table = ({
4722
4847
  },
4723
4848
  headerGroup.id
4724
4849
  )) }),
4725
- /* @__PURE__ */ jsxs35("tbody", { className: "relative", children: [
4850
+ /* @__PURE__ */ jsxs36("tbody", { className: "relative", children: [
4726
4851
  table.getRowModel().rows.map((row) => {
4727
- return /* @__PURE__ */ jsx47(
4852
+ return /* @__PURE__ */ jsx48(
4728
4853
  "tr",
4729
4854
  {
4730
4855
  className: "hover:bg-muted/50 bg-table-table-cell-unselected group/row border-stroke-inverse-slate-02 cursor-pointer border-b transition-colors",
4731
4856
  onClick: () => onRowClick?.(row.original),
4732
- children: row.getVisibleCells().map((cell) => /* @__PURE__ */ jsx47("td", { className: "p-4", children: flexRender(
4857
+ children: row.getVisibleCells().map((cell) => /* @__PURE__ */ jsx48("td", { className: "p-4", children: flexRender(
4733
4858
  cell.column.columnDef.cell,
4734
4859
  cell.getContext()
4735
4860
  ) }, cell.id))
@@ -4737,7 +4862,7 @@ var Table = ({
4737
4862
  row.id
4738
4863
  );
4739
4864
  }),
4740
- rowCount === 0 && Array.from({ length: 6 }).map((_, index) => /* @__PURE__ */ jsx47("tr", { children: /* @__PURE__ */ jsx47("td", { colSpan: columns.length, className: "h-12 p-4", children: /* @__PURE__ */ jsx47("div", { className: "" }) }) }, index))
4865
+ rowCount === 0 && Array.from({ length: 6 }).map((_, index) => /* @__PURE__ */ jsx48("tr", { children: /* @__PURE__ */ jsx48("td", { colSpan: columns.length, className: "h-12 p-4", children: /* @__PURE__ */ jsx48("div", { className: "" }) }) }, index))
4741
4866
  ] })
4742
4867
  ]
4743
4868
  }
@@ -4772,13 +4897,13 @@ var PrimaryCell = React16.forwardRef(
4772
4897
  }, ref) => {
4773
4898
  let content = children;
4774
4899
  if (variant === "badge") {
4775
- content = /* @__PURE__ */ jsxs35("div", { className: "flex items-center gap-2", children: [
4900
+ content = /* @__PURE__ */ jsxs36("div", { className: "flex items-center gap-2", children: [
4776
4901
  children,
4777
- badgeContent && /* @__PURE__ */ jsx47(Badge, { type: badgeType, size: badgeSize, children: badgeContent })
4902
+ badgeContent && /* @__PURE__ */ jsx48(Badge, { type: badgeType, size: badgeSize, children: badgeContent })
4778
4903
  ] });
4779
4904
  } else if (variant === "progress") {
4780
- content = /* @__PURE__ */ jsxs35(Fragment6, { children: [
4781
- progressValue !== 100 && /* @__PURE__ */ jsx47(
4905
+ content = /* @__PURE__ */ jsxs36(Fragment7, { children: [
4906
+ progressValue !== 100 && /* @__PURE__ */ jsx48(
4782
4907
  ProgressIndicator,
4783
4908
  {
4784
4909
  variant: "circle",
@@ -4787,23 +4912,23 @@ var PrimaryCell = React16.forwardRef(
4787
4912
  showPercentage: showProgressPercentage
4788
4913
  }
4789
4914
  ),
4790
- children && /* @__PURE__ */ jsx47("span", { className: "text-body-sm text-element-inverse-default", children })
4915
+ children && /* @__PURE__ */ jsx48("span", { className: "text-body-sm text-element-inverse-default", children })
4791
4916
  ] });
4792
4917
  } else if (variant === "error") {
4793
- content = /* @__PURE__ */ jsxs35(Fragment6, { children: [
4794
- /* @__PURE__ */ jsx47(AlertCircle, { className: "size-4 shrink-0" }),
4795
- errorMessage ? /* @__PURE__ */ jsx47("span", { className: "text-body-sm", children: errorMessage }) : children
4918
+ content = /* @__PURE__ */ jsxs36(Fragment7, { children: [
4919
+ /* @__PURE__ */ jsx48(AlertCircle, { className: "size-4 shrink-0" }),
4920
+ errorMessage ? /* @__PURE__ */ jsx48("span", { className: "text-body-sm", children: errorMessage }) : children
4796
4921
  ] });
4797
4922
  }
4798
- return /* @__PURE__ */ jsxs35(
4923
+ return /* @__PURE__ */ jsxs36(
4799
4924
  "div",
4800
4925
  {
4801
4926
  ref,
4802
4927
  className: cn(primaryCellVariants({ variant })),
4803
4928
  ...props,
4804
4929
  children: [
4805
- /* @__PURE__ */ jsx47("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: content }),
4806
- hoverUI && /* @__PURE__ */ jsx47("div", { className: "ml-2 flex items-center gap-2 opacity-0 transition-opacity duration-200 group-hover/row:opacity-100", children: hoverUI })
4930
+ /* @__PURE__ */ jsx48("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: content }),
4931
+ hoverUI && /* @__PURE__ */ jsx48("div", { className: "ml-2 flex items-center gap-2 opacity-0 transition-opacity duration-200 group-hover/row:opacity-100", children: hoverUI })
4807
4932
  ]
4808
4933
  }
4809
4934
  );
@@ -4812,7 +4937,7 @@ var PrimaryCell = React16.forwardRef(
4812
4937
  PrimaryCell.displayName = "PrimaryCell";
4813
4938
  Table.PrimaryCell = PrimaryCell;
4814
4939
  var TextCell = React16.forwardRef(({ text, copyable = true, className, ...props }, ref) => {
4815
- const [isCopied, setIsCopied] = useState11(false);
4940
+ const [isCopied, setIsCopied] = useState12(false);
4816
4941
  const [hoverRef, isHovering] = useHover();
4817
4942
  const handleCopy = () => {
4818
4943
  navigator.clipboard.writeText(text);
@@ -4825,11 +4950,11 @@ var TextCell = React16.forwardRef(({ text, copyable = true, className, ...props
4825
4950
  }, 1200);
4826
4951
  }
4827
4952
  }, [isCopied]);
4828
- return /* @__PURE__ */ jsx47("div", { className: cn("w-full h-full", className), ref, ...props, children: /* @__PURE__ */ jsxs35("div", { className: "relative", ref: hoverRef, children: [
4829
- copyable && isHovering && /* @__PURE__ */ jsx47(
4953
+ return /* @__PURE__ */ jsx48("div", { className: cn("w-full h-full", className), ref, ...props, children: /* @__PURE__ */ jsxs36("div", { className: "relative", ref: hoverRef, children: [
4954
+ copyable && isHovering && /* @__PURE__ */ jsx48(
4830
4955
  IconButton,
4831
4956
  {
4832
- icon: isCopied ? /* @__PURE__ */ jsx47(
4957
+ icon: isCopied ? /* @__PURE__ */ jsx48(
4833
4958
  MagickoCopySuccess,
4834
4959
  {
4835
4960
  className: cn(
@@ -4837,16 +4962,16 @@ var TextCell = React16.forwardRef(({ text, copyable = true, className, ...props
4837
4962
  "transition-all ease-in duration-200"
4838
4963
  )
4839
4964
  }
4840
- ) : /* @__PURE__ */ jsx47(MagickoCopy, { className: "size-4" }),
4965
+ ) : /* @__PURE__ */ jsx48(MagickoCopy, { className: "size-4" }),
4841
4966
  className: "absolute top-1/2 -right-3 -translate-y-1/2",
4842
4967
  size: "sm",
4843
4968
  varient: "soft",
4844
4969
  onClick: handleCopy
4845
4970
  }
4846
4971
  ),
4847
- /* @__PURE__ */ jsxs35(Popover, { children: [
4848
- /* @__PURE__ */ jsx47(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx47(Text, { className: "truncate line-clamp-1", children: text ?? "-" }) }),
4849
- /* @__PURE__ */ jsx47(PopoverContent, { className: "", children: /* @__PURE__ */ jsx47(Text, { children: text ?? "-" }) })
4972
+ /* @__PURE__ */ jsxs36(Popover, { children: [
4973
+ /* @__PURE__ */ jsx48(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx48(Text, { className: "truncate line-clamp-1", children: text ?? "-" }) }),
4974
+ /* @__PURE__ */ jsx48(PopoverContent, { className: "", children: /* @__PURE__ */ jsx48(Text, { children: text ?? "-" }) })
4850
4975
  ] })
4851
4976
  ] }) });
4852
4977
  });
@@ -4856,7 +4981,7 @@ var Table_default = Table;
4856
4981
 
4857
4982
  // src/ui/Tabs/index.tsx
4858
4983
  import * as TabsPrimitive from "@radix-ui/react-tabs";
4859
- import { jsx as jsx48, jsxs as jsxs36 } from "react/jsx-runtime";
4984
+ import { jsx as jsx49, jsxs as jsxs37 } from "react/jsx-runtime";
4860
4985
  function Tabs({
4861
4986
  defaultActiveTab,
4862
4987
  tabSmall,
@@ -4865,8 +4990,8 @@ function Tabs({
4865
4990
  showContent = true,
4866
4991
  ...props
4867
4992
  }) {
4868
- return /* @__PURE__ */ jsxs36(BaseTabs, { defaultValue: defaultActiveTab, className, ...props, children: [
4869
- /* @__PURE__ */ jsx48(BaseTabsList, { children: tabs.map((tab) => /* @__PURE__ */ jsxs36(
4993
+ return /* @__PURE__ */ jsxs37(BaseTabs, { defaultValue: defaultActiveTab, className, ...props, children: [
4994
+ /* @__PURE__ */ jsx49(BaseTabsList, { children: tabs.map((tab) => /* @__PURE__ */ jsxs37(
4870
4995
  BaseTabsTrigger,
4871
4996
  {
4872
4997
  tabSmall,
@@ -4874,22 +4999,22 @@ function Tabs({
4874
4999
  className: "relative flex cursor-pointer items-center justify-center gap-x-2",
4875
5000
  onClick: typeof tab === "object" && "onClick" in tab ? tab.onClick : void 0,
4876
5001
  children: [
4877
- tab.icon && /* @__PURE__ */ jsx48("div", { children: tab.icon }),
5002
+ tab.icon && /* @__PURE__ */ jsx49("div", { children: tab.icon }),
4878
5003
  tab.label,
4879
- tab.notification && /* @__PURE__ */ jsx48("div", { className: "bg-icon-destructive absolute top-1 right-1 size-1.5 rounded-full" }),
4880
- !!tab.count && /* @__PURE__ */ jsx48(Badge, { type: "primary-soft", children: tab.count })
5004
+ tab.notification && /* @__PURE__ */ jsx49("div", { className: "bg-icon-destructive absolute top-1 right-1 size-1.5 rounded-full" }),
5005
+ !!tab.count && /* @__PURE__ */ jsx49(Badge, { type: "primary-soft", children: tab.count })
4881
5006
  ]
4882
5007
  },
4883
5008
  tab.value
4884
5009
  )) }),
4885
- showContent && "content" in tabs[0] && tabs.map((tab) => /* @__PURE__ */ jsx48(BaseTabsContent, { value: tab.value, children: tab.content }, tab.value))
5010
+ showContent && "content" in tabs[0] && tabs.map((tab) => /* @__PURE__ */ jsx49(BaseTabsContent, { value: tab.value, children: tab.content }, tab.value))
4886
5011
  ] });
4887
5012
  }
4888
5013
  function BaseTabs({
4889
5014
  className,
4890
5015
  ...props
4891
5016
  }) {
4892
- return /* @__PURE__ */ jsx48(
5017
+ return /* @__PURE__ */ jsx49(
4893
5018
  TabsPrimitive.Root,
4894
5019
  {
4895
5020
  "data-slot": "tabs",
@@ -4902,7 +5027,7 @@ function BaseTabsList({
4902
5027
  className,
4903
5028
  ...props
4904
5029
  }) {
4905
- return /* @__PURE__ */ jsx48(
5030
+ return /* @__PURE__ */ jsx49(
4906
5031
  TabsPrimitive.List,
4907
5032
  {
4908
5033
  "data-slot": "tabs-list",
@@ -4919,7 +5044,7 @@ function BaseTabsTrigger({
4919
5044
  tabSmall,
4920
5045
  ...props
4921
5046
  }) {
4922
- return /* @__PURE__ */ jsx48(
5047
+ return /* @__PURE__ */ jsx49(
4923
5048
  TabsPrimitive.Trigger,
4924
5049
  {
4925
5050
  "data-slot": "tabs-trigger",
@@ -4936,7 +5061,7 @@ function BaseTabsContent({
4936
5061
  className,
4937
5062
  ...props
4938
5063
  }) {
4939
- return /* @__PURE__ */ jsx48(
5064
+ return /* @__PURE__ */ jsx49(
4940
5065
  TabsPrimitive.Content,
4941
5066
  {
4942
5067
  "data-slot": "tabs-content",
@@ -4948,7 +5073,7 @@ function BaseTabsContent({
4948
5073
 
4949
5074
  // src/ui/Tag/index.tsx
4950
5075
  import { cva as cva12 } from "class-variance-authority";
4951
- import { jsx as jsx49 } from "react/jsx-runtime";
5076
+ import { jsx as jsx50 } from "react/jsx-runtime";
4952
5077
  var tagVariants = cva12("px-1 rounded-sm", {
4953
5078
  variants: {
4954
5079
  variant: {
@@ -4966,14 +5091,14 @@ function Tag({
4966
5091
  variant,
4967
5092
  className
4968
5093
  }) {
4969
- return /* @__PURE__ */ jsx49("div", { "data-slot": "tag", className: cn(tagVariants({ variant }), className), children: /* @__PURE__ */ jsx49("span", { className: "text-caption font-semibold text-white", children: label }) });
5094
+ return /* @__PURE__ */ jsx50("div", { "data-slot": "tag", className: cn(tagVariants({ variant }), className), children: /* @__PURE__ */ jsx50("span", { className: "text-caption font-semibold text-white", children: label }) });
4970
5095
  }
4971
5096
 
4972
5097
  // src/ui/TextAreaInput/index.tsx
4973
5098
  import * as React17 from "react";
4974
- import { jsx as jsx50 } from "react/jsx-runtime";
5099
+ import { jsx as jsx51 } from "react/jsx-runtime";
4975
5100
  var TextareaInput = React17.forwardRef(({ className, label, ...props }, ref) => {
4976
- return /* @__PURE__ */ jsx50(
5101
+ return /* @__PURE__ */ jsx51(
4977
5102
  "textarea",
4978
5103
  {
4979
5104
  ref,
@@ -4993,8 +5118,8 @@ var TextAreaInput_default = TextareaInput;
4993
5118
 
4994
5119
  // src/ui/TimePicker/index.tsx
4995
5120
  import { Clock } from "lucide-react";
4996
- import { useState as useState12 } from "react";
4997
- import { jsx as jsx51, jsxs as jsxs37 } from "react/jsx-runtime";
5121
+ import { useState as useState13 } from "react";
5122
+ import { jsx as jsx52, jsxs as jsxs38 } from "react/jsx-runtime";
4998
5123
  function TimePicker({
4999
5124
  label,
5000
5125
  onValueChange,
@@ -5003,7 +5128,7 @@ function TimePicker({
5003
5128
  value,
5004
5129
  ...props
5005
5130
  }) {
5006
- const [isOpen, setIsOpen] = useState12(false);
5131
+ const [isOpen, setIsOpen] = useState13(false);
5007
5132
  const currentValue = value || defaultValue || "";
5008
5133
  const formatTimeForDisplay = (timeValue) => {
5009
5134
  if (!timeValue) return "";
@@ -5015,10 +5140,10 @@ function TimePicker({
5015
5140
  const handleChange = (value2) => {
5016
5141
  onValueChange?.(value2);
5017
5142
  };
5018
- return /* @__PURE__ */ jsxs37("div", { className: "flex flex-col gap-3", children: [
5019
- label && /* @__PURE__ */ jsx51(Label2, { htmlFor: "time-picker", className: "px-1", children: "Time" }),
5020
- /* @__PURE__ */ jsxs37(DropdownMenu, { open: isOpen, onOpenChange: setIsOpen, children: [
5021
- /* @__PURE__ */ jsx51(DropdownMenuTrigger, { className: "!p-0", children: /* @__PURE__ */ jsx51(
5143
+ return /* @__PURE__ */ jsxs38("div", { className: "flex flex-col gap-3", children: [
5144
+ label && /* @__PURE__ */ jsx52(Label2, { htmlFor: "time-picker", className: "px-1", children: "Time" }),
5145
+ /* @__PURE__ */ jsxs38(DropdownMenu, { open: isOpen, onOpenChange: setIsOpen, children: [
5146
+ /* @__PURE__ */ jsx52(DropdownMenuTrigger, { className: "!p-0", children: /* @__PURE__ */ jsx52(
5022
5147
  Input,
5023
5148
  {
5024
5149
  ...props,
@@ -5026,17 +5151,17 @@ function TimePicker({
5026
5151
  value: currentValue ? formatTimeForDisplay(currentValue) : "",
5027
5152
  onKeyDown: (e) => e.preventDefault(),
5028
5153
  prefixNode: {
5029
- node: /* @__PURE__ */ jsx51(Clock, { className: "pointer-events-none h-5 w-5 text-gray-700" }),
5154
+ node: /* @__PURE__ */ jsx52(Clock, { className: "pointer-events-none h-5 w-5 text-gray-700" }),
5030
5155
  withBorder: false
5031
5156
  }
5032
5157
  }
5033
5158
  ) }),
5034
- /* @__PURE__ */ jsx51(
5159
+ /* @__PURE__ */ jsx52(
5035
5160
  DropdownMenuContent,
5036
5161
  {
5037
5162
  align: "start",
5038
5163
  className: "max-h-60 min-w-41 overflow-y-auto",
5039
- children: timeOptions?.map((item) => /* @__PURE__ */ jsx51(
5164
+ children: timeOptions?.map((item) => /* @__PURE__ */ jsx52(
5040
5165
  DropdownMenuItem,
5041
5166
  {
5042
5167
  className: cn(
@@ -5057,11 +5182,11 @@ function TimePicker({
5057
5182
  // src/ui/Title/index.tsx
5058
5183
  import { Slot as Slot6 } from "@radix-ui/react-slot";
5059
5184
  import * as React18 from "react";
5060
- import { jsx as jsx52 } from "react/jsx-runtime";
5185
+ import { jsx as jsx53 } from "react/jsx-runtime";
5061
5186
  var Title2 = React18.forwardRef(
5062
5187
  ({ className, asChild = false, ...props }, ref) => {
5063
5188
  const Comp = asChild ? Slot6 : "h2";
5064
- return /* @__PURE__ */ jsx52(
5189
+ return /* @__PURE__ */ jsx53(
5065
5190
  Comp,
5066
5191
  {
5067
5192
  ref,
@@ -5080,7 +5205,7 @@ var Title_default = Title2;
5080
5205
  // src/ui/Toggle/index.tsx
5081
5206
  import * as TogglePrimitive from "@radix-ui/react-toggle";
5082
5207
  import { cva as cva13 } from "class-variance-authority";
5083
- import { jsx as jsx53 } from "react/jsx-runtime";
5208
+ import { jsx as jsx54 } from "react/jsx-runtime";
5084
5209
  var toggleVariants = cva13(
5085
5210
  "inline-flex items-center justify-center gap-2 text-sm font-medium disabled:pointer-events-none disabled:text-icon-inactive data-[state=on]:disabled:text-icon-inactive data-[state=on]:disabled:bg-toggle-bg-inactiveDefault data-[state=on]:bg-toggle-bg-activeDefault data-[state=on]:hover:bg-toggle-bg-activeHover data-[state=on]:text-icon-white hover:bg-toggle-bg-inactiveHover hover:text-icon-default [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap cursor-pointer",
5086
5211
  {
@@ -5115,7 +5240,7 @@ function Toggle({
5115
5240
  size,
5116
5241
  ...props
5117
5242
  }) {
5118
- return /* @__PURE__ */ jsx53(
5243
+ return /* @__PURE__ */ jsx54(
5119
5244
  TogglePrimitive.Root,
5120
5245
  {
5121
5246
  "data-slot": "toggle",
@@ -5132,7 +5257,7 @@ import { useRef as useRef10 } from "react";
5132
5257
  // src/ui/ToggleDropdownButton/ToggleDropdownLeftButton.tsx
5133
5258
  import { cva as cva14 } from "class-variance-authority";
5134
5259
  import * as React19 from "react";
5135
- import { jsx as jsx54 } from "react/jsx-runtime";
5260
+ import { jsx as jsx55 } from "react/jsx-runtime";
5136
5261
  var toggleDropdownLeftButtonVariants = cva14(
5137
5262
  "flex items-center justify-center cursor-pointer transition-all",
5138
5263
  {
@@ -5228,7 +5353,7 @@ function ToggleDropdownLeftButton({
5228
5353
  }) {
5229
5354
  const iconClass = selected ? "text-element-static-white fill-element-static-white" : "text-element-inverse-default fill-element-inverse-default";
5230
5355
  const isIcon = React19.isValidElement(children);
5231
- return type === "text" ? /* @__PURE__ */ jsx54(
5356
+ return type === "text" ? /* @__PURE__ */ jsx55(
5232
5357
  "button",
5233
5358
  {
5234
5359
  type: "button",
@@ -5237,7 +5362,7 @@ function ToggleDropdownLeftButton({
5237
5362
  className
5238
5363
  ),
5239
5364
  ...props,
5240
- children: isIcon ? /* @__PURE__ */ jsx54(
5365
+ children: isIcon ? /* @__PURE__ */ jsx55(
5241
5366
  IconContainer,
5242
5367
  {
5243
5368
  colorInFill: false,
@@ -5250,7 +5375,7 @@ function ToggleDropdownLeftButton({
5250
5375
  }
5251
5376
  ) : children
5252
5377
  }
5253
- ) : /* @__PURE__ */ jsx54(
5378
+ ) : /* @__PURE__ */ jsx55(
5254
5379
  "button",
5255
5380
  {
5256
5381
  type: "button",
@@ -5259,7 +5384,7 @@ function ToggleDropdownLeftButton({
5259
5384
  className
5260
5385
  ),
5261
5386
  ...props,
5262
- children: /* @__PURE__ */ jsx54(
5387
+ children: /* @__PURE__ */ jsx55(
5263
5388
  IconContainer,
5264
5389
  {
5265
5390
  colorInFill: false,
@@ -5278,7 +5403,7 @@ function ToggleDropdownLeftButton({
5278
5403
  // src/ui/ToggleDropdownButton/ToggleDropdownRightButton.tsx
5279
5404
  import { cva as cva15 } from "class-variance-authority";
5280
5405
  import * as React20 from "react";
5281
- import { jsx as jsx55 } from "react/jsx-runtime";
5406
+ import { jsx as jsx56 } from "react/jsx-runtime";
5282
5407
  var toggleDropdownRightButtonVariants = cva15(
5283
5408
  "flex items-center justify-center group cursor-pointer transition-all",
5284
5409
  {
@@ -5374,7 +5499,7 @@ function ToggleDropdownRightButton({
5374
5499
  }) {
5375
5500
  const iconClass = selected ? "text-element-static-white fill-element-static-white" : "text-element-inverse-default fill-element-inverse-default";
5376
5501
  const isIcon = React20.isValidElement(children);
5377
- return type === "text" ? /* @__PURE__ */ jsx55(
5502
+ return type === "text" ? /* @__PURE__ */ jsx56(
5378
5503
  "button",
5379
5504
  {
5380
5505
  type: "button",
@@ -5383,7 +5508,7 @@ function ToggleDropdownRightButton({
5383
5508
  className
5384
5509
  ),
5385
5510
  ...props,
5386
- children: isIcon ? /* @__PURE__ */ jsx55(
5511
+ children: isIcon ? /* @__PURE__ */ jsx56(
5387
5512
  IconContainer,
5388
5513
  {
5389
5514
  colorInFill: false,
@@ -5396,7 +5521,7 @@ function ToggleDropdownRightButton({
5396
5521
  }
5397
5522
  ) : children
5398
5523
  }
5399
- ) : /* @__PURE__ */ jsx55(
5524
+ ) : /* @__PURE__ */ jsx56(
5400
5525
  "button",
5401
5526
  {
5402
5527
  type: "button",
@@ -5405,7 +5530,7 @@ function ToggleDropdownRightButton({
5405
5530
  className
5406
5531
  ),
5407
5532
  ...props,
5408
- children: /* @__PURE__ */ jsx55(
5533
+ children: /* @__PURE__ */ jsx56(
5409
5534
  IconContainer,
5410
5535
  {
5411
5536
  colorInFill: false,
@@ -5422,10 +5547,10 @@ function ToggleDropdownRightButton({
5422
5547
  }
5423
5548
 
5424
5549
  // src/ui/ToggleDropdownButton/useToggleDropdown.ts
5425
- import { useState as useState13, useCallback as useCallback4 } from "react";
5550
+ import { useState as useState14, useCallback as useCallback5 } from "react";
5426
5551
 
5427
5552
  // src/ui/ToggleDropdownButton/index.tsx
5428
- import { jsx as jsx56, jsxs as jsxs38 } from "react/jsx-runtime";
5553
+ import { jsx as jsx57, jsxs as jsxs39 } from "react/jsx-runtime";
5429
5554
  var ToggleDropdownButton = ({
5430
5555
  type,
5431
5556
  selected,
@@ -5443,8 +5568,8 @@ var ToggleDropdownButton = ({
5443
5568
  const handleLeftButtonClick = () => {
5444
5569
  onLeftButtonClick?.();
5445
5570
  };
5446
- return /* @__PURE__ */ jsxs38("div", { className: "gap-x-unit-1px flex items-center", children: [
5447
- /* @__PURE__ */ jsx56(
5571
+ return /* @__PURE__ */ jsxs39("div", { className: "gap-x-unit-1px flex items-center", children: [
5572
+ /* @__PURE__ */ jsx57(
5448
5573
  ToggleDropdownLeftButton,
5449
5574
  {
5450
5575
  selected,
@@ -5455,8 +5580,8 @@ var ToggleDropdownButton = ({
5455
5580
  children: leftButtonChildren
5456
5581
  }
5457
5582
  ),
5458
- /* @__PURE__ */ jsxs38("div", { className: "relative", children: [
5459
- /* @__PURE__ */ jsx56(
5583
+ /* @__PURE__ */ jsxs39("div", { className: "relative", children: [
5584
+ /* @__PURE__ */ jsx57(
5460
5585
  ToggleDropdownRightButton,
5461
5586
  {
5462
5587
  ref: rightButtonRef,
@@ -5476,8 +5601,8 @@ var ToggleDropdownButton_default = ToggleDropdownButton;
5476
5601
 
5477
5602
  // src/ui/ToolToggle/index.tsx
5478
5603
  import { ChevronDown as ChevronDown3 } from "lucide-react";
5479
- import { useState as useState14 } from "react";
5480
- import { jsx as jsx57, jsxs as jsxs39 } from "react/jsx-runtime";
5604
+ import { useState as useState15 } from "react";
5605
+ import { jsx as jsx58, jsxs as jsxs40 } from "react/jsx-runtime";
5481
5606
  var ToolToggle = ({
5482
5607
  dropdown,
5483
5608
  dropdownContent,
@@ -5485,41 +5610,41 @@ var ToolToggle = ({
5485
5610
  className,
5486
5611
  onClick
5487
5612
  }) => {
5488
- const [active, setActive] = useState14(false);
5613
+ const [active, setActive] = useState15(false);
5489
5614
  const handleClick = () => {
5490
5615
  setActive(!active);
5491
5616
  onClick?.(active);
5492
5617
  };
5493
- return /* @__PURE__ */ jsx57("div", { className: cn(dropdown ? "min-w-20" : "min-w-[52px]", className), children: /* @__PURE__ */ jsxs39(DropdownMenu, { children: [
5494
- /* @__PURE__ */ jsx57(
5618
+ return /* @__PURE__ */ jsx58("div", { className: cn(dropdown ? "min-w-20" : "min-w-[52px]", className), children: /* @__PURE__ */ jsxs40(DropdownMenu, { children: [
5619
+ /* @__PURE__ */ jsx58(
5495
5620
  DropdownMenuTrigger,
5496
5621
  {
5497
5622
  className: cn(
5498
5623
  "border-border-primary-light !bg-toggle-bg-inactiveDefault hover:!bg-toggle-bg-inactiveHover flex h-full w-full items-center justify-center gap-x-2 !rounded-full border p-4 transition-all",
5499
5624
  active && "!bg-toggle-bg-activeDefault hover:!bg-toggle-bg-activeHover"
5500
5625
  ),
5501
- children: /* @__PURE__ */ jsxs39(
5626
+ children: /* @__PURE__ */ jsxs40(
5502
5627
  "div",
5503
5628
  {
5504
5629
  className: "flex items-center justify-center gap-x-2",
5505
5630
  onClick: handleClick,
5506
5631
  children: [
5507
5632
  icon,
5508
- dropdown && /* @__PURE__ */ jsx57(ChevronDown3, { className: "text-icon-default size-5" })
5633
+ dropdown && /* @__PURE__ */ jsx58(ChevronDown3, { className: "text-icon-default size-5" })
5509
5634
  ]
5510
5635
  }
5511
5636
  )
5512
5637
  }
5513
5638
  ),
5514
- dropdown && /* @__PURE__ */ jsx57(DropdownMenuContent, { align: "start", className: "min-w-41", children: dropdownContent })
5639
+ dropdown && /* @__PURE__ */ jsx58(DropdownMenuContent, { align: "start", className: "min-w-41", children: dropdownContent })
5515
5640
  ] }) });
5516
5641
  };
5517
5642
 
5518
5643
  // src/ui/WrapperCard/index.tsx
5519
- import { jsx as jsx58 } from "react/jsx-runtime";
5644
+ import { jsx as jsx59 } from "react/jsx-runtime";
5520
5645
  var WrapperCard = (props) => {
5521
5646
  const { children, className } = props;
5522
- return /* @__PURE__ */ jsx58(
5647
+ return /* @__PURE__ */ jsx59(
5523
5648
  "div",
5524
5649
  {
5525
5650
  className: cn(
@@ -5540,7 +5665,7 @@ import {
5540
5665
  useFormContext,
5541
5666
  useFormState
5542
5667
  } from "react-hook-form";
5543
- import { jsx as jsx59 } from "react/jsx-runtime";
5668
+ import { jsx as jsx60 } from "react/jsx-runtime";
5544
5669
  var BaseForm = FormProvider;
5545
5670
  var FormFieldContext = React21.createContext(
5546
5671
  {}
@@ -5548,7 +5673,7 @@ var FormFieldContext = React21.createContext(
5548
5673
  var BaseFormField = ({
5549
5674
  ...props
5550
5675
  }) => {
5551
- return /* @__PURE__ */ jsx59(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx59(Controller, { ...props }) });
5676
+ return /* @__PURE__ */ jsx60(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx60(Controller, { ...props }) });
5552
5677
  };
5553
5678
  var useFormField = () => {
5554
5679
  const fieldContext = React21.useContext(FormFieldContext);
@@ -5574,7 +5699,7 @@ var FormItemContext = React21.createContext(
5574
5699
  );
5575
5700
  function BaseFormItem({ className, ...props }) {
5576
5701
  const id = React21.useId();
5577
- return /* @__PURE__ */ jsx59(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx59(
5702
+ return /* @__PURE__ */ jsx60(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx60(
5578
5703
  "div",
5579
5704
  {
5580
5705
  "data-slot": "form-item",
@@ -5588,7 +5713,7 @@ function BaseFormLabel({
5588
5713
  ...props
5589
5714
  }) {
5590
5715
  const { error, formItemId } = useFormField();
5591
- return /* @__PURE__ */ jsx59(
5716
+ return /* @__PURE__ */ jsx60(
5592
5717
  Label2,
5593
5718
  {
5594
5719
  "data-slot": "form-label",
@@ -5604,7 +5729,7 @@ function BaseFormLabel({
5604
5729
  }
5605
5730
  function BaseFormControl({ ...props }) {
5606
5731
  const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
5607
- return /* @__PURE__ */ jsx59(
5732
+ return /* @__PURE__ */ jsx60(
5608
5733
  Slot7,
5609
5734
  {
5610
5735
  "data-slot": "form-control",
@@ -5620,7 +5745,7 @@ function BaseFormDescription({
5620
5745
  ...props
5621
5746
  }) {
5622
5747
  const { formDescriptionId } = useFormField();
5623
- return /* @__PURE__ */ jsx59(
5748
+ return /* @__PURE__ */ jsx60(
5624
5749
  "p",
5625
5750
  {
5626
5751
  "data-slot": "form-description",
@@ -5636,7 +5761,7 @@ function BaseFormMessage({ className, ...props }) {
5636
5761
  if (!body) {
5637
5762
  return null;
5638
5763
  }
5639
- return /* @__PURE__ */ jsx59(
5764
+ return /* @__PURE__ */ jsx60(
5640
5765
  "p",
5641
5766
  {
5642
5767
  "data-slot": "form-message",
@@ -5650,7 +5775,7 @@ function BaseFormMessage({ className, ...props }) {
5650
5775
 
5651
5776
  // src/ui/form/FormField.tsx
5652
5777
  import * as React22 from "react";
5653
- import { jsx as jsx60, jsxs as jsxs40 } from "react/jsx-runtime";
5778
+ import { jsx as jsx61, jsxs as jsxs41 } from "react/jsx-runtime";
5654
5779
  var FormField = ({
5655
5780
  control,
5656
5781
  field,
@@ -5658,18 +5783,18 @@ var FormField = ({
5658
5783
  onBlur,
5659
5784
  className
5660
5785
  }) => {
5661
- return /* @__PURE__ */ jsx60(
5786
+ return /* @__PURE__ */ jsx61(
5662
5787
  BaseFormField,
5663
5788
  {
5664
5789
  control,
5665
5790
  name: field.name,
5666
- render: ({ field: formField }) => /* @__PURE__ */ jsxs40(BaseFormItem, { className: cn("w-full", className), children: [
5667
- field.label && /* @__PURE__ */ jsxs40(BaseFormLabel, { className: "gap-1", children: [
5791
+ render: ({ field: formField }) => /* @__PURE__ */ jsxs41(BaseFormItem, { className: cn("w-full", className), children: [
5792
+ field.label && /* @__PURE__ */ jsxs41(BaseFormLabel, { className: "gap-1", children: [
5668
5793
  field.label,
5669
- field.required && /* @__PURE__ */ jsx60("span", { className: "text-element-inverse-red", children: "*" }),
5670
- field.optional && /* @__PURE__ */ jsx60("span", { className: "text-title-sm!", children: "(Optional)" })
5794
+ field.required && /* @__PURE__ */ jsx61("span", { className: "text-element-inverse-red", children: "*" }),
5795
+ field.optional && /* @__PURE__ */ jsx61("span", { className: "text-title-sm!", children: "(Optional)" })
5671
5796
  ] }),
5672
- /* @__PURE__ */ jsx60(BaseFormControl, { children: React22.isValidElement(field.render) ? React22.cloneElement(
5797
+ /* @__PURE__ */ jsx61(BaseFormControl, { children: React22.isValidElement(field.render) ? React22.cloneElement(
5673
5798
  field.render,
5674
5799
  {
5675
5800
  ...formField,
@@ -5679,7 +5804,7 @@ var FormField = ({
5679
5804
  }
5680
5805
  }
5681
5806
  ) : field.render }),
5682
- isShowError && /* @__PURE__ */ jsx60(BaseFormMessage, {})
5807
+ isShowError && /* @__PURE__ */ jsx61(BaseFormMessage, {})
5683
5808
  ] })
5684
5809
  },
5685
5810
  field.name
@@ -5692,7 +5817,7 @@ import {
5692
5817
  Controller as Controller2,
5693
5818
  useFormContext as useFormContext2
5694
5819
  } from "react-hook-form";
5695
- import { jsx as jsx61, jsxs as jsxs41 } from "react/jsx-runtime";
5820
+ import { jsx as jsx62, jsxs as jsxs42 } from "react/jsx-runtime";
5696
5821
  var FormMethodsContext = createContext4(
5697
5822
  null
5698
5823
  );
@@ -5703,11 +5828,11 @@ function Form({
5703
5828
  className,
5704
5829
  children
5705
5830
  }) {
5706
- return /* @__PURE__ */ jsx61(
5831
+ return /* @__PURE__ */ jsx62(
5707
5832
  FormMethodsContext.Provider,
5708
5833
  {
5709
5834
  value: formMethods,
5710
- children: /* @__PURE__ */ jsx61(BaseForm, { ...formMethods, children: /* @__PURE__ */ jsx61(
5835
+ children: /* @__PURE__ */ jsx62(BaseForm, { ...formMethods, children: /* @__PURE__ */ jsx62(
5711
5836
  "form",
5712
5837
  {
5713
5838
  id,
@@ -5728,7 +5853,7 @@ Form.InputField = function InputField({
5728
5853
  ...props
5729
5854
  }) {
5730
5855
  const { control } = useFormContext2();
5731
- return /* @__PURE__ */ jsx61(
5856
+ return /* @__PURE__ */ jsx62(
5732
5857
  FormField,
5733
5858
  {
5734
5859
  className: "w-full",
@@ -5739,7 +5864,7 @@ Form.InputField = function InputField({
5739
5864
  name,
5740
5865
  label,
5741
5866
  required,
5742
- render: /* @__PURE__ */ jsx61(Input, { ...props, inputClassName: props.inputClassName })
5867
+ render: /* @__PURE__ */ jsx62(Input, { ...props, inputClassName: props.inputClassName })
5743
5868
  }
5744
5869
  }
5745
5870
  );
@@ -5750,7 +5875,7 @@ Form.PasswordField = function PasswordField({
5750
5875
  ...props
5751
5876
  }) {
5752
5877
  const { control } = useFormContext2();
5753
- return /* @__PURE__ */ jsx61(
5878
+ return /* @__PURE__ */ jsx62(
5754
5879
  FormField,
5755
5880
  {
5756
5881
  className: "w-full",
@@ -5758,7 +5883,7 @@ Form.PasswordField = function PasswordField({
5758
5883
  field: {
5759
5884
  name,
5760
5885
  label,
5761
- render: /* @__PURE__ */ jsx61(PasswordInput, { ...props })
5886
+ render: /* @__PURE__ */ jsx62(PasswordInput, { ...props })
5762
5887
  }
5763
5888
  }
5764
5889
  );
@@ -5770,7 +5895,7 @@ Form.SelectInputField = function SelectInputField({
5770
5895
  ...props
5771
5896
  }) {
5772
5897
  const { control } = useFormContext2();
5773
- return /* @__PURE__ */ jsx61(
5898
+ return /* @__PURE__ */ jsx62(
5774
5899
  FormField,
5775
5900
  {
5776
5901
  control,
@@ -5778,7 +5903,7 @@ Form.SelectInputField = function SelectInputField({
5778
5903
  name,
5779
5904
  required,
5780
5905
  label,
5781
- render: /* @__PURE__ */ jsx61(SelectInput, { ...props })
5906
+ render: /* @__PURE__ */ jsx62(SelectInput, { ...props })
5782
5907
  }
5783
5908
  }
5784
5909
  );
@@ -5790,14 +5915,14 @@ Form.MultiSelectField = function MultiSelectField({
5790
5915
  }) {
5791
5916
  const { control, watch, setValue } = useFormContext2();
5792
5917
  const selectedValues = watch(name) || [];
5793
- return /* @__PURE__ */ jsx61(
5918
+ return /* @__PURE__ */ jsx62(
5794
5919
  FormField,
5795
5920
  {
5796
5921
  control,
5797
5922
  field: {
5798
5923
  name,
5799
5924
  label,
5800
- render: /* @__PURE__ */ jsx61(
5925
+ render: /* @__PURE__ */ jsx62(
5801
5926
  MultiSelect,
5802
5927
  {
5803
5928
  ...props,
@@ -5816,7 +5941,7 @@ Form.TextareaField = function TextareaField({
5816
5941
  ...props
5817
5942
  }) {
5818
5943
  const { control } = useFormContext2();
5819
- return /* @__PURE__ */ jsx61(
5944
+ return /* @__PURE__ */ jsx62(
5820
5945
  FormField,
5821
5946
  {
5822
5947
  control,
@@ -5824,7 +5949,7 @@ Form.TextareaField = function TextareaField({
5824
5949
  name,
5825
5950
  label,
5826
5951
  optional,
5827
- render: /* @__PURE__ */ jsx61(TextAreaInput_default, { ...props })
5952
+ render: /* @__PURE__ */ jsx62(TextAreaInput_default, { ...props })
5828
5953
  }
5829
5954
  }
5830
5955
  );
@@ -5842,14 +5967,14 @@ Form.FileUploadField = function FileUploadFieldComponent({
5842
5967
  const { control, formState } = useFormContext2();
5843
5968
  const fieldError = formState.errors[name];
5844
5969
  const hasValidationError = !!fieldError;
5845
- return /* @__PURE__ */ jsx61(
5970
+ return /* @__PURE__ */ jsx62(
5846
5971
  Controller2,
5847
5972
  {
5848
5973
  control,
5849
5974
  name,
5850
- render: ({ field: formField }) => /* @__PURE__ */ jsxs41("div", { className: "space-y-1", children: [
5851
- label && /* @__PURE__ */ jsx61("label", { htmlFor: name, className: "font-medium", children: label }),
5852
- /* @__PURE__ */ jsx61(
5975
+ render: ({ field: formField }) => /* @__PURE__ */ jsxs42("div", { className: "space-y-1", children: [
5976
+ label && /* @__PURE__ */ jsx62("label", { htmlFor: name, className: "font-medium", children: label }),
5977
+ /* @__PURE__ */ jsx62(
5853
5978
  FileUploadField,
5854
5979
  {
5855
5980
  field: { name, isMultiple, maxFiles, children },
@@ -5880,7 +6005,7 @@ Form.DateInputField = function DateInputField({
5880
6005
  }) {
5881
6006
  const { control, watch, setValue } = useFormContext2();
5882
6007
  const value = watch(name);
5883
- return /* @__PURE__ */ jsx61(
6008
+ return /* @__PURE__ */ jsx62(
5884
6009
  FormField,
5885
6010
  {
5886
6011
  control,
@@ -5888,7 +6013,7 @@ Form.DateInputField = function DateInputField({
5888
6013
  name,
5889
6014
  label,
5890
6015
  required,
5891
- render: /* @__PURE__ */ jsx61(
6016
+ render: /* @__PURE__ */ jsx62(
5892
6017
  DatePickerInput,
5893
6018
  {
5894
6019
  ...props,
@@ -5907,14 +6032,14 @@ Form.TimeInputField = function TimeInputField({
5907
6032
  ...props
5908
6033
  }) {
5909
6034
  const { control, setValue } = useFormContext2();
5910
- return /* @__PURE__ */ jsx61(
6035
+ return /* @__PURE__ */ jsx62(
5911
6036
  FormField,
5912
6037
  {
5913
6038
  control,
5914
6039
  field: {
5915
6040
  name,
5916
6041
  label,
5917
- render: /* @__PURE__ */ jsx61(
6042
+ render: /* @__PURE__ */ jsx62(
5918
6043
  TimePicker,
5919
6044
  {
5920
6045
  onValueChange: (value) => {
@@ -5933,13 +6058,13 @@ Form.CheckboxField = function CheckboxField({
5933
6058
  ...props
5934
6059
  }) {
5935
6060
  const { control } = useFormContext2();
5936
- return /* @__PURE__ */ jsx61(
6061
+ return /* @__PURE__ */ jsx62(
5937
6062
  FormField,
5938
6063
  {
5939
6064
  control,
5940
6065
  field: {
5941
6066
  name,
5942
- render: /* @__PURE__ */ jsx61(Checkbox, { value: name, label, ...props })
6067
+ render: /* @__PURE__ */ jsx62(Checkbox, { value: name, label, ...props })
5943
6068
  }
5944
6069
  }
5945
6070
  );
@@ -5949,12 +6074,12 @@ Form.OTPInputField = function OTPInputField({
5949
6074
  ...props
5950
6075
  }) {
5951
6076
  const { control } = useFormContext2();
5952
- return /* @__PURE__ */ jsx61(
6077
+ return /* @__PURE__ */ jsx62(
5953
6078
  FormField,
5954
6079
  {
5955
6080
  className: "w-full",
5956
6081
  control,
5957
- field: { name, render: /* @__PURE__ */ jsx61(OTPInput, { ...props }) }
6082
+ field: { name, render: /* @__PURE__ */ jsx62(OTPInput, { ...props }) }
5958
6083
  }
5959
6084
  );
5960
6085
  };
@@ -5965,14 +6090,14 @@ Form.RadioField = function RadioField({
5965
6090
  }) {
5966
6091
  const { control } = useFormContext2();
5967
6092
  const { setValue } = useFormContext2();
5968
- return /* @__PURE__ */ jsx61(
6093
+ return /* @__PURE__ */ jsx62(
5969
6094
  FormField,
5970
6095
  {
5971
6096
  control,
5972
6097
  field: {
5973
6098
  name,
5974
6099
  label,
5975
- render: /* @__PURE__ */ jsx61(
6100
+ render: /* @__PURE__ */ jsx62(
5976
6101
  Radio,
5977
6102
  {
5978
6103
  ...props,
@@ -5989,13 +6114,13 @@ Form.ComboboxField = function ComboboxField({
5989
6114
  }) {
5990
6115
  const { control, setValue, watch } = useFormContext2();
5991
6116
  const value = watch(name);
5992
- return /* @__PURE__ */ jsx61(
6117
+ return /* @__PURE__ */ jsx62(
5993
6118
  FormField,
5994
6119
  {
5995
6120
  control,
5996
6121
  field: {
5997
6122
  name,
5998
- render: /* @__PURE__ */ jsx61(
6123
+ render: /* @__PURE__ */ jsx62(
5999
6124
  Combobox,
6000
6125
  {
6001
6126
  ...props,
@@ -6017,7 +6142,7 @@ Form.SwitchField = function SwitchField({
6017
6142
  }) {
6018
6143
  const { control, setValue, watch } = useFormContext2();
6019
6144
  const value = watch(name);
6020
- return /* @__PURE__ */ jsx61(
6145
+ return /* @__PURE__ */ jsx62(
6021
6146
  FormField,
6022
6147
  {
6023
6148
  control,
@@ -6025,9 +6150,9 @@ Form.SwitchField = function SwitchField({
6025
6150
  field: {
6026
6151
  name,
6027
6152
  label,
6028
- render: /* @__PURE__ */ jsxs41("div", { className: "flex items-center", children: [
6029
- prefix && /* @__PURE__ */ jsx61("span", { className: "mr-2", children: prefix }),
6030
- /* @__PURE__ */ jsx61(
6153
+ render: /* @__PURE__ */ jsxs42("div", { className: "flex items-center", children: [
6154
+ prefix && /* @__PURE__ */ jsx62("span", { className: "mr-2", children: prefix }),
6155
+ /* @__PURE__ */ jsx62(
6031
6156
  Switch,
6032
6157
  {
6033
6158
  ...props,
@@ -6035,7 +6160,7 @@ Form.SwitchField = function SwitchField({
6035
6160
  onCheckedChange: (checked) => setValue(name, checked)
6036
6161
  }
6037
6162
  ),
6038
- suffix && /* @__PURE__ */ jsx61("span", { className: "ml-2", children: suffix })
6163
+ suffix && /* @__PURE__ */ jsx62("span", { className: "ml-2", children: suffix })
6039
6164
  ] })
6040
6165
  }
6041
6166
  }
@@ -6089,6 +6214,7 @@ export {
6089
6214
  FileUploadField,
6090
6215
  Form,
6091
6216
  FormField,
6217
+ GoogleMapView,
6092
6218
  GradientContainer,
6093
6219
  Grid,
6094
6220
  IconButton,