@next-degree/pickle-shared-js 0.4.31 → 0.5.31

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.
Files changed (43) hide show
  1. package/dist/app/layout.css +12 -0
  2. package/dist/app/layout.css.map +1 -1
  3. package/dist/app/page.cjs +99 -9
  4. package/dist/app/page.cjs.map +1 -1
  5. package/dist/app/page.js +98 -8
  6. package/dist/app/page.js.map +1 -1
  7. package/dist/components/demos/MapComponentDemo.cjs +129 -0
  8. package/dist/components/demos/MapComponentDemo.cjs.map +1 -0
  9. package/dist/components/demos/MapComponentDemo.d.cts +5 -0
  10. package/dist/components/demos/MapComponentDemo.d.ts +5 -0
  11. package/dist/components/demos/MapComponentDemo.js +107 -0
  12. package/dist/components/demos/MapComponentDemo.js.map +1 -0
  13. package/dist/components/demos/PlacesQueryInputDemo.cjs.map +1 -1
  14. package/dist/components/demos/PlacesQueryInputDemo.js.map +1 -1
  15. package/dist/components/demos/index.cjs +97 -7
  16. package/dist/components/demos/index.cjs.map +1 -1
  17. package/dist/components/demos/index.js +96 -6
  18. package/dist/components/demos/index.js.map +1 -1
  19. package/dist/components/primitives/command.d.cts +1 -1
  20. package/dist/components/primitives/command.d.ts +1 -1
  21. package/dist/components/ui/MapComponent.cjs +54 -0
  22. package/dist/components/ui/MapComponent.cjs.map +1 -0
  23. package/dist/components/ui/MapComponent.d.cts +15 -0
  24. package/dist/components/ui/MapComponent.d.ts +15 -0
  25. package/dist/components/ui/MapComponent.js +34 -0
  26. package/dist/components/ui/MapComponent.js.map +1 -0
  27. package/dist/components/ui/PlacesQueryInput.cjs.map +1 -1
  28. package/dist/components/ui/PlacesQueryInput.js.map +1 -1
  29. package/dist/index.cjs +132 -72
  30. package/dist/index.cjs.map +1 -1
  31. package/dist/index.d.cts +2 -0
  32. package/dist/index.d.ts +2 -0
  33. package/dist/index.js +115 -57
  34. package/dist/index.js.map +1 -1
  35. package/dist/lib/google.cjs +44 -2
  36. package/dist/lib/google.cjs.map +1 -1
  37. package/dist/lib/google.d.cts +22 -1
  38. package/dist/lib/google.d.ts +22 -1
  39. package/dist/lib/google.js +40 -1
  40. package/dist/lib/google.js.map +1 -1
  41. package/dist/styles/globals.css +12 -0
  42. package/dist/styles/globals.css.map +1 -1
  43. package/package.json +2 -1
package/dist/index.js CHANGED
@@ -492,6 +492,26 @@ var inputVariants = cva2(
492
492
  );
493
493
  var Input_default = Input;
494
494
 
495
+ // src/components/ui/MapComponent.tsx
496
+ import { APIProvider, Map, AdvancedMarker, Pin } from "@vis.gl/react-google-maps";
497
+ import { jsx as jsx10 } from "react/jsx-runtime";
498
+ function MapComponent({ apiKey, mapId, position, className, zoom = 15 }) {
499
+ const defaultPosition = { lat: 40.715021, lng: -74.00459 };
500
+ const defaultZoom = 11;
501
+ return /* @__PURE__ */ jsx10(APIProvider, { apiKey, children: /* @__PURE__ */ jsx10("div", { className: cn("h-screen max-w-full", className), children: /* @__PURE__ */ jsx10(
502
+ Map,
503
+ {
504
+ zoom: position ? zoom : defaultZoom,
505
+ center: position || defaultPosition,
506
+ mapId,
507
+ keyboardShortcuts: false,
508
+ disableDefaultUI: true,
509
+ children: position && /* @__PURE__ */ jsx10(AdvancedMarker, { position, children: /* @__PURE__ */ jsx10(Pin, { background: "#0B5441", borderColor: "#EBFDF1", glyphColor: "#D4F500" }) })
510
+ }
511
+ ) }) });
512
+ }
513
+ var MapComponent_default = MapComponent;
514
+
495
515
  // src/components/primitives/command.tsx
496
516
  import { Command as CommandPrimitive } from "cmdk";
497
517
  import { Search } from "lucide-react";
@@ -501,9 +521,9 @@ import * as React4 from "react";
501
521
  import * as DialogPrimitive from "@radix-ui/react-dialog";
502
522
  import { X as X3 } from "lucide-react";
503
523
  import * as React3 from "react";
504
- import { jsx as jsx10, jsxs as jsxs6 } from "react/jsx-runtime";
524
+ import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
505
525
  var DialogPortal = DialogPrimitive.Portal;
506
- var DialogOverlay = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx10(
526
+ var DialogOverlay = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
507
527
  DialogPrimitive.Overlay,
508
528
  {
509
529
  ref,
@@ -516,7 +536,7 @@ var DialogOverlay = React3.forwardRef(({ className, ...props }, ref) => /* @__PU
516
536
  ));
517
537
  DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
518
538
  var DialogContent = React3.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs6(DialogPortal, { children: [
519
- /* @__PURE__ */ jsx10(DialogOverlay, {}),
539
+ /* @__PURE__ */ jsx11(DialogOverlay, {}),
520
540
  /* @__PURE__ */ jsxs6(
521
541
  DialogPrimitive.Content,
522
542
  {
@@ -529,17 +549,17 @@ var DialogContent = React3.forwardRef(({ className, children, ...props }, ref) =
529
549
  children: [
530
550
  children,
531
551
  /* @__PURE__ */ jsxs6(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-neutral-950 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-neutral-100 data-[state=open]:text-neutral-500 dark:ring-offset-neutral-950 dark:focus:ring-neutral-300 dark:data-[state=open]:bg-neutral-800 dark:data-[state=open]:text-neutral-400", children: [
532
- /* @__PURE__ */ jsx10(X3, { className: "h-4 w-4" }),
533
- /* @__PURE__ */ jsx10("span", { className: "sr-only", children: "Close" })
552
+ /* @__PURE__ */ jsx11(X3, { className: "h-4 w-4" }),
553
+ /* @__PURE__ */ jsx11("span", { className: "sr-only", children: "Close" })
534
554
  ] })
535
555
  ]
536
556
  }
537
557
  )
538
558
  ] }));
539
559
  DialogContent.displayName = DialogPrimitive.Content.displayName;
540
- var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx10("div", { className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className), ...props });
560
+ var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx11("div", { className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className), ...props });
541
561
  DialogHeader.displayName = "DialogHeader";
542
- var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx10(
562
+ var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx11(
543
563
  "div",
544
564
  {
545
565
  className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className),
@@ -547,7 +567,7 @@ var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx10(
547
567
  }
548
568
  );
549
569
  DialogFooter.displayName = "DialogFooter";
550
- var DialogTitle = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx10(
570
+ var DialogTitle = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
551
571
  DialogPrimitive.Title,
552
572
  {
553
573
  ref,
@@ -556,7 +576,7 @@ var DialogTitle = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE
556
576
  }
557
577
  ));
558
578
  DialogTitle.displayName = DialogPrimitive.Title.displayName;
559
- var DialogDescription = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx10(
579
+ var DialogDescription = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
560
580
  DialogPrimitive.Description,
561
581
  {
562
582
  ref,
@@ -567,8 +587,8 @@ var DialogDescription = React3.forwardRef(({ className, ...props }, ref) => /* @
567
587
  DialogDescription.displayName = DialogPrimitive.Description.displayName;
568
588
 
569
589
  // src/components/primitives/command.tsx
570
- import { jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
571
- var Command = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
590
+ import { jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
591
+ var Command = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
572
592
  CommandPrimitive,
573
593
  {
574
594
  ref,
@@ -581,8 +601,8 @@ var Command = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
581
601
  ));
582
602
  Command.displayName = CommandPrimitive.displayName;
583
603
  var CommandInput = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs7("div", { className: "m-1 flex items-center rounded-xl border px-3", "cmdk-input-wrapper": "", children: [
584
- /* @__PURE__ */ jsx11(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
585
- /* @__PURE__ */ jsx11(
604
+ /* @__PURE__ */ jsx12(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
605
+ /* @__PURE__ */ jsx12(
586
606
  CommandPrimitive.Input,
587
607
  {
588
608
  ref,
@@ -595,7 +615,7 @@ var CommandInput = React4.forwardRef(({ className, ...props }, ref) => /* @__PUR
595
615
  )
596
616
  ] }));
597
617
  CommandInput.displayName = CommandPrimitive.Input.displayName;
598
- var CommandList = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
618
+ var CommandList = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
599
619
  CommandPrimitive.List,
600
620
  {
601
621
  ref,
@@ -604,9 +624,9 @@ var CommandList = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE
604
624
  }
605
625
  ));
606
626
  CommandList.displayName = CommandPrimitive.List.displayName;
607
- var CommandEmpty = React4.forwardRef((props, ref) => /* @__PURE__ */ jsx11(CommandPrimitive.Empty, { ref, className: "py-6 text-center text-sm", ...props }));
627
+ var CommandEmpty = React4.forwardRef((props, ref) => /* @__PURE__ */ jsx12(CommandPrimitive.Empty, { ref, className: "py-6 text-center text-sm", ...props }));
608
628
  CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
609
- var CommandGroup = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
629
+ var CommandGroup = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
610
630
  CommandPrimitive.Group,
611
631
  {
612
632
  ref,
@@ -618,7 +638,7 @@ var CommandGroup = React4.forwardRef(({ className, ...props }, ref) => /* @__PUR
618
638
  }
619
639
  ));
620
640
  CommandGroup.displayName = CommandPrimitive.Group.displayName;
621
- var CommandSeparator = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
641
+ var CommandSeparator = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
622
642
  CommandPrimitive.Separator,
623
643
  {
624
644
  ref,
@@ -627,7 +647,7 @@ var CommandSeparator = React4.forwardRef(({ className, ...props }, ref) => /* @_
627
647
  }
628
648
  ));
629
649
  CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
630
- var CommandItem = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
650
+ var CommandItem = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
631
651
  CommandPrimitive.Item,
632
652
  {
633
653
  ref,
@@ -640,7 +660,7 @@ var CommandItem = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE
640
660
  ));
641
661
  CommandItem.displayName = CommandPrimitive.Item.displayName;
642
662
  var CommandShortcut = ({ className, ...props }) => {
643
- return /* @__PURE__ */ jsx11(
663
+ return /* @__PURE__ */ jsx12(
644
664
  "span",
645
665
  {
646
666
  className: cn("ml-auto text-xs tracking-widest text-neutral-500", className),
@@ -663,11 +683,47 @@ var autocomplete = async (input, key) => {
663
683
  console.error(error);
664
684
  }
665
685
  };
686
+ var fetchLocation = async (place, key) => {
687
+ try {
688
+ if (place.place_id) {
689
+ const placeDetails = await getPlaceDetails(place.place_id, key);
690
+ if (placeDetails) return placeDetails;
691
+ }
692
+ if (place.address) {
693
+ const result = await geocode(place.address, key);
694
+ const firstAddress = result?.[0];
695
+ return firstAddress;
696
+ }
697
+ return void 0;
698
+ } catch (error) {
699
+ console.error("Error fetching location:", error);
700
+ }
701
+ };
702
+ var getPlaceDetails = async (place_id, key) => {
703
+ try {
704
+ const response = await client.placeDetails({
705
+ params: { place_id, key }
706
+ });
707
+ return response.data.result;
708
+ } catch (error) {
709
+ console.error(error);
710
+ }
711
+ };
712
+ var geocode = async (address, key) => {
713
+ try {
714
+ const response = await client.geocode({
715
+ params: { address, key }
716
+ });
717
+ return response.data.results;
718
+ } catch (error) {
719
+ console.error(error);
720
+ }
721
+ };
666
722
 
667
723
  // src/components/ui/PlacesQueryInput.tsx
668
724
  import { CircleX, LoaderCircle } from "lucide-react";
669
725
  import { useState as useState2, useCallback, useRef as useRef2, useEffect as useEffect2 } from "react";
670
- import { jsx as jsx12, jsxs as jsxs8 } from "react/jsx-runtime";
726
+ import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
671
727
  function PlacesQueryInput({
672
728
  apiKey,
673
729
  selected,
@@ -722,9 +778,9 @@ function PlacesQueryInput({
722
778
  window.addEventListener("resize", checkDropdownPosition);
723
779
  return () => window.removeEventListener("resize", checkDropdownPosition);
724
780
  }, []);
725
- return /* @__PURE__ */ jsx12("div", { className: cn("relative w-full", className), ref: inputRef, onBlur: handleBlur, children: /* @__PURE__ */ jsxs8(Command, { children: [
781
+ return /* @__PURE__ */ jsx13("div", { className: cn("relative w-full", className), ref: inputRef, onBlur: handleBlur, children: /* @__PURE__ */ jsxs8(Command, { children: [
726
782
  /* @__PURE__ */ jsxs8("div", { className: "relative w-full", children: [
727
- /* @__PURE__ */ jsx12(
783
+ /* @__PURE__ */ jsx13(
728
784
  CommandInput,
729
785
  {
730
786
  placeholder: "Type an address to search...",
@@ -733,14 +789,14 @@ function PlacesQueryInput({
733
789
  className: "truncate pr-8"
734
790
  }
735
791
  ),
736
- isLoadingPredictions && /* @__PURE__ */ jsx12(LoaderCircle, { className: "absolute inset-y-0 right-2 my-auto flex h-8 w-8 animate-spin items-center justify-center rounded-full text-green-100" }),
737
- input && /* @__PURE__ */ jsx12(
792
+ isLoadingPredictions && /* @__PURE__ */ jsx13(LoaderCircle, { className: "absolute inset-y-0 right-2 my-auto flex h-8 w-8 animate-spin items-center justify-center rounded-full text-green-100" }),
793
+ input && /* @__PURE__ */ jsx13(
738
794
  "button",
739
795
  {
740
796
  type: "button",
741
797
  className: "absolute inset-y-0 right-2 my-auto flex h-8 w-8 cursor-pointer items-center justify-center rounded-full hover:bg-pickle-20",
742
798
  onClick: handleClear,
743
- children: /* @__PURE__ */ jsx12(CircleX, { className: "h-4 w-4 text-green-100" })
799
+ children: /* @__PURE__ */ jsx13(CircleX, { className: "h-4 w-4 text-green-100" })
744
800
  }
745
801
  )
746
802
  ] }),
@@ -752,8 +808,8 @@ function PlacesQueryInput({
752
808
  shouldOpenUpward ? "bottom-full" : "top-full"
753
809
  ),
754
810
  children: [
755
- /* @__PURE__ */ jsx12(CommandEmpty, { children: "No results" }),
756
- /* @__PURE__ */ jsx12(CommandGroup, { children: predictions.map((prediction) => /* @__PURE__ */ jsx12(
811
+ /* @__PURE__ */ jsx13(CommandEmpty, { children: "No results" }),
812
+ /* @__PURE__ */ jsx13(CommandGroup, { children: predictions.map((prediction) => /* @__PURE__ */ jsx13(
757
813
  CommandItem,
758
814
  {
759
815
  onSelect: () => handleSelect(prediction),
@@ -773,11 +829,11 @@ var PlacesQueryInput_default = PlacesQueryInput;
773
829
  import { Slot } from "@radix-ui/react-slot";
774
830
  import { cva as cva3 } from "cva";
775
831
  import { forwardRef as forwardRef8 } from "react";
776
- import { jsx as jsx13 } from "react/jsx-runtime";
832
+ import { jsx as jsx14 } from "react/jsx-runtime";
777
833
  var Button = forwardRef8(
778
834
  ({ className, variant, size, asChild = false, ...props }, ref) => {
779
835
  const Component = asChild ? Slot : "button";
780
- return /* @__PURE__ */ jsx13(
836
+ return /* @__PURE__ */ jsx14(
781
837
  Component,
782
838
  {
783
839
  className: cn(buttonVariants({ variant, size, className })),
@@ -886,10 +942,10 @@ import { cva as cva5 } from "cva";
886
942
  // src/components/primitives/popover.tsx
887
943
  import * as React6 from "react";
888
944
  import * as PopoverPrimitive from "@radix-ui/react-popover";
889
- import { jsx as jsx14 } from "react/jsx-runtime";
945
+ import { jsx as jsx15 } from "react/jsx-runtime";
890
946
  var Popover = PopoverPrimitive.Root;
891
947
  var PopoverTrigger = PopoverPrimitive.Trigger;
892
- var PopoverContent = React6.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx14(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx14(
948
+ var PopoverContent = React6.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx15(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx15(
893
949
  PopoverPrimitive.Content,
894
950
  {
895
951
  ref,
@@ -906,7 +962,7 @@ PopoverContent.displayName = PopoverPrimitive.Content.displayName;
906
962
 
907
963
  // src/components/ui/Badge.tsx
908
964
  import { cva as cva4 } from "cva";
909
- import { jsx as jsx15 } from "react/jsx-runtime";
965
+ import { jsx as jsx16 } from "react/jsx-runtime";
910
966
  var badgeVariants = cva4("rounded-full px-2 py-0.5 text-xs font-semibold", {
911
967
  variants: {
912
968
  variant: {
@@ -920,11 +976,11 @@ var badgeVariants = cva4("rounded-full px-2 py-0.5 text-xs font-semibold", {
920
976
  }
921
977
  });
922
978
  function Badge({ className, variant, ...props }) {
923
- return /* @__PURE__ */ jsx15("div", { className: cn(badgeVariants({ variant }), className), ...props });
979
+ return /* @__PURE__ */ jsx16("div", { className: cn(badgeVariants({ variant }), className), ...props });
924
980
  }
925
981
 
926
982
  // src/components/ui/Combobox.tsx
927
- import { jsx as jsx16, jsxs as jsxs9 } from "react/jsx-runtime";
983
+ import { jsx as jsx17, jsxs as jsxs9 } from "react/jsx-runtime";
928
984
  var Combobox = forwardRef10((props, ref) => {
929
985
  const {
930
986
  id,
@@ -982,7 +1038,7 @@ var Combobox = forwardRef10((props, ref) => {
982
1038
  return isDefault ? defaultLabel : label;
983
1039
  };
984
1040
  return /* @__PURE__ */ jsxs9("div", { className: cn("flex flex-col gap-1", className), children: [
985
- isDefault && /* @__PURE__ */ jsx16(
1041
+ isDefault && /* @__PURE__ */ jsx17(
986
1042
  Label_default,
987
1043
  {
988
1044
  text: label,
@@ -994,7 +1050,7 @@ var Combobox = forwardRef10((props, ref) => {
994
1050
  ),
995
1051
  /* @__PURE__ */ jsxs9("div", { className: "relative flex", children: [
996
1052
  /* @__PURE__ */ jsxs9(Popover, { open, onOpenChange: setOpen, children: [
997
- /* @__PURE__ */ jsx16(
1053
+ /* @__PURE__ */ jsx17(
998
1054
  PopoverTrigger,
999
1055
  {
1000
1056
  asChild: true,
@@ -1011,9 +1067,9 @@ var Combobox = forwardRef10((props, ref) => {
1011
1067
  ),
1012
1068
  "aria-expanded": open,
1013
1069
  children: [
1014
- isDefault && IconComponent && /* @__PURE__ */ jsx16(IconComponent, { className: "h-4 w-4 shrink-0" }),
1015
- isChip && !isEmpty && /* @__PURE__ */ jsx16(Badge, { variant: "purple", children: selected.length }),
1016
- /* @__PURE__ */ jsx16(
1070
+ isDefault && IconComponent && /* @__PURE__ */ jsx17(IconComponent, { className: "h-4 w-4 shrink-0" }),
1071
+ isChip && !isEmpty && /* @__PURE__ */ jsx17(Badge, { variant: "purple", children: selected.length }),
1072
+ /* @__PURE__ */ jsx17(
1017
1073
  "span",
1018
1074
  {
1019
1075
  className: cn(
@@ -1023,7 +1079,7 @@ var Combobox = forwardRef10((props, ref) => {
1023
1079
  children: handleDisplayValue()
1024
1080
  }
1025
1081
  ),
1026
- showChevron && /* @__PURE__ */ jsx16(
1082
+ showChevron && /* @__PURE__ */ jsx17(
1027
1083
  ChevronDownIcon2,
1028
1084
  {
1029
1085
  className: "shrink-0 transform group-data-[state=open]:rotate-180",
@@ -1035,7 +1091,7 @@ var Combobox = forwardRef10((props, ref) => {
1035
1091
  )
1036
1092
  }
1037
1093
  ),
1038
- /* @__PURE__ */ jsx16(
1094
+ /* @__PURE__ */ jsx17(
1039
1095
  PopoverContent,
1040
1096
  {
1041
1097
  className: cn(
@@ -1047,15 +1103,15 @@ var Combobox = forwardRef10((props, ref) => {
1047
1103
  sideOffset: 4,
1048
1104
  align: "start",
1049
1105
  children: /* @__PURE__ */ jsxs9(Command, { children: [
1050
- !hideSearchBox && /* @__PURE__ */ jsx16(CommandInput, { placeholder: "Search..." }),
1106
+ !hideSearchBox && /* @__PURE__ */ jsx17(CommandInput, { placeholder: "Search..." }),
1051
1107
  /* @__PURE__ */ jsxs9(CommandList, { children: [
1052
- /* @__PURE__ */ jsx16(CommandEmpty, { children: "No results" }),
1053
- /* @__PURE__ */ jsx16(CommandGroup, { children: options.map(({ id: id2, ...option }) => /* @__PURE__ */ jsx16(
1108
+ /* @__PURE__ */ jsx17(CommandEmpty, { children: "No results" }),
1109
+ /* @__PURE__ */ jsx17(CommandGroup, { children: options.map(({ id: id2, ...option }) => /* @__PURE__ */ jsx17(
1054
1110
  CommandItem,
1055
1111
  {
1056
1112
  value: option.title,
1057
1113
  onSelect: () => handleSelect(option.value),
1058
- children: /* @__PURE__ */ jsx16(
1114
+ children: /* @__PURE__ */ jsx17(
1059
1115
  ListItem_default,
1060
1116
  {
1061
1117
  className: cn(classNames?.items, "truncate py-1"),
@@ -1068,19 +1124,19 @@ var Combobox = forwardRef10((props, ref) => {
1068
1124
  id2
1069
1125
  )) })
1070
1126
  ] }),
1071
- !!footer && /* @__PURE__ */ jsx16(Separator, {}),
1127
+ !!footer && /* @__PURE__ */ jsx17(Separator, {}),
1072
1128
  footer && footer({ close })
1073
1129
  ] })
1074
1130
  }
1075
1131
  )
1076
1132
  ] }),
1077
- isDefault && !isEmpty && /* @__PURE__ */ jsx16(
1133
+ isDefault && !isEmpty && /* @__PURE__ */ jsx17(
1078
1134
  "button",
1079
1135
  {
1080
1136
  type: "button",
1081
1137
  className: "absolute inset-y-0 right-1 my-auto flex h-8 w-8 cursor-pointer items-center justify-center rounded-full hover:bg-pickle-20",
1082
1138
  onClick: handleClear,
1083
- children: /* @__PURE__ */ jsx16(CircleX2, { className: "h-4 w-4 text-green-100" })
1139
+ children: /* @__PURE__ */ jsx17(CircleX2, { className: "h-4 w-4 text-green-100" })
1084
1140
  }
1085
1141
  )
1086
1142
  ] })
@@ -1117,7 +1173,7 @@ var triggerVariants = cva5(
1117
1173
  import { cva as cva6 } from "cva";
1118
1174
  import { Minus as Minus2, Plus } from "lucide-react";
1119
1175
  import { forwardRef as forwardRef11, useEffect as useEffect4, useState as useState4 } from "react";
1120
- import { jsx as jsx17, jsxs as jsxs10 } from "react/jsx-runtime";
1176
+ import { jsx as jsx18, jsxs as jsxs10 } from "react/jsx-runtime";
1121
1177
  var Counter = forwardRef11(
1122
1178
  ({ label, error, min, max, step = 1, description, theme, value, classNames, onChange, ...props }, ref) => {
1123
1179
  const [count, setCount] = useState4(0);
@@ -1158,7 +1214,7 @@ var Counter = forwardRef11(
1158
1214
  className: cn("flex w-auto flex-col gap-1", classNames?.root),
1159
1215
  "data-testid": `counter-wrapper-${props.id}`,
1160
1216
  children: [
1161
- label && /* @__PURE__ */ jsx17(
1217
+ label && /* @__PURE__ */ jsx18(
1162
1218
  Label_default,
1163
1219
  {
1164
1220
  text: label,
@@ -1169,16 +1225,16 @@ var Counter = forwardRef11(
1169
1225
  }
1170
1226
  ),
1171
1227
  /* @__PURE__ */ jsxs10("div", { className: "relative flex w-[122px] flex-row items-center", children: [
1172
- /* @__PURE__ */ jsx17(
1228
+ /* @__PURE__ */ jsx18(
1173
1229
  "button",
1174
1230
  {
1175
1231
  type: "button",
1176
1232
  className: "absolute inset-y-0 left-1 my-auto flex h-8 w-8 cursor-pointer items-center justify-center rounded-full hover:bg-pickle-20",
1177
1233
  onClick: decrement,
1178
- children: /* @__PURE__ */ jsx17(Minus2, { className: "h-4 w-4 text-green-100" })
1234
+ children: /* @__PURE__ */ jsx18(Minus2, { className: "h-4 w-4 text-green-100" })
1179
1235
  }
1180
1236
  ),
1181
- /* @__PURE__ */ jsx17(
1237
+ /* @__PURE__ */ jsx18(
1182
1238
  "input",
1183
1239
  {
1184
1240
  className: cn(counterVariants({ theme }), classNames?.input),
@@ -1189,17 +1245,17 @@ var Counter = forwardRef11(
1189
1245
  ...props
1190
1246
  }
1191
1247
  ),
1192
- /* @__PURE__ */ jsx17(
1248
+ /* @__PURE__ */ jsx18(
1193
1249
  "button",
1194
1250
  {
1195
1251
  type: "button",
1196
1252
  className: "absolute inset-y-0 right-1 my-auto flex h-8 w-8 cursor-pointer items-center justify-center rounded-full hover:bg-pickle-20",
1197
1253
  onClick: increment,
1198
- children: /* @__PURE__ */ jsx17(Plus, { className: "h-4 w-4 text-green-100" })
1254
+ children: /* @__PURE__ */ jsx18(Plus, { className: "h-4 w-4 text-green-100" })
1199
1255
  }
1200
1256
  )
1201
1257
  ] }),
1202
- /* @__PURE__ */ jsx17(ErrorMessage_default, { message: error })
1258
+ /* @__PURE__ */ jsx18(ErrorMessage_default, { message: error })
1203
1259
  ]
1204
1260
  }
1205
1261
  );
@@ -1265,8 +1321,10 @@ export {
1265
1321
  Input_default as Input,
1266
1322
  Label_default as Label,
1267
1323
  ListItem_default as ListItem,
1324
+ MapComponent_default as MapComponent,
1268
1325
  PlacesQueryInput_default as PlacesQueryInput,
1269
1326
  Select_default as Select,
1270
- cn
1327
+ cn,
1328
+ fetchLocation
1271
1329
  };
1272
1330
  //# sourceMappingURL=index.js.map