@overmap-ai/blocks 1.0.40-alpha.3 → 1.0.40-icon-fix.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/LuIcon/LuIcon.d.ts +4 -6
  2. package/dist/LuIcon/index.d.ts +1 -1
  3. package/dist/LuIcon/typings.d.ts +2 -2
  4. package/dist/MenuV2/CheckboxItem.d.ts +3 -3
  5. package/dist/MenuV2/CheckboxItemIndicator.d.ts +2 -2
  6. package/dist/MenuV2/Group.d.ts +2 -2
  7. package/dist/MenuV2/GroupLabel.d.ts +2 -2
  8. package/dist/MenuV2/Item.d.ts +2 -2
  9. package/dist/MenuV2/MultiSelectAllItem.d.ts +3 -3
  10. package/dist/MenuV2/MultiSelectGroup.d.ts +3 -3
  11. package/dist/MenuV2/MultiSelectItem.d.ts +3 -3
  12. package/dist/MenuV2/Page.d.ts +2 -2
  13. package/dist/MenuV2/PageTriggerItem.d.ts +3 -3
  14. package/dist/MenuV2/Pages.d.ts +2 -2
  15. package/dist/MenuV2/Root.d.ts +3 -3
  16. package/dist/MenuV2/SelectGroup.d.ts +3 -3
  17. package/dist/MenuV2/SelectItem.d.ts +3 -3
  18. package/dist/MenuV2/SelectedIndicator.d.ts +2 -2
  19. package/dist/MenuV2/Separator.d.ts +2 -2
  20. package/dist/MenuV2/context.d.ts +2 -2
  21. package/dist/MenuV2/index.d.ts +31 -14
  22. package/dist/MenuV2/typings.d.ts +5 -5
  23. package/dist/Overlay/Close.d.ts +5 -0
  24. package/dist/Overlay/Content.d.ts +6 -0
  25. package/dist/Overlay/Description.d.ts +5 -0
  26. package/dist/Overlay/Root.d.ts +5 -0
  27. package/dist/Overlay/Title.d.ts +5 -0
  28. package/dist/Overlay/Trigger.d.ts +5 -0
  29. package/dist/Overlay/cva.d.ts +1 -0
  30. package/dist/Overlay/index.d.ts +15 -0
  31. package/dist/Rating/Item.d.ts +6 -0
  32. package/dist/Rating/ItemIndicator.d.ts +5 -0
  33. package/dist/Rating/Root.d.ts +8 -0
  34. package/dist/Rating/context.d.ts +9 -0
  35. package/dist/Rating/index.d.ts +9 -0
  36. package/dist/blocks.js +255 -111
  37. package/dist/blocks.js.map +1 -1
  38. package/dist/blocks.umd.cjs +256 -112
  39. package/dist/blocks.umd.cjs.map +1 -1
  40. package/dist/index.d.ts +2 -0
  41. package/package.json +1 -1
package/dist/blocks.js CHANGED
@@ -9,7 +9,7 @@ import { CommandItem, CommandRoot, CommandEmpty, CommandGroup, CommandInput, use
9
9
  import * as RadixDialog from "@radix-ui/react-dialog";
10
10
  import { DialogPortal, DialogContent as DialogContent$1, DialogTitle, DialogDescription, DialogOverlay as DialogOverlay$1, DialogTrigger } from "@radix-ui/react-dialog";
11
11
  import { DayPicker as DayPicker$1 } from "react-day-picker";
12
- import { DynamicIcon } from "lucide-react/dynamic";
12
+ import { ChevronRight, ChevronLeft, ChevronDown, ChevronUp, AlertTriangle, RotateCcw, X } from "lucide-react";
13
13
  import * as RadixHoverCard from "@radix-ui/react-hover-card";
14
14
  import { CSSTransition } from "react-transition-group";
15
15
  import ReactDOM from "react-dom";
@@ -1649,21 +1649,21 @@ const CommandMenu = {
1649
1649
  PageTriggerItem: CommandMenuPageTriggerItem
1650
1650
  };
1651
1651
  const LuIcon = memo((props) => {
1652
- const { ref, icon, className, size: size2 = "1em", ...rest } = props;
1653
- return /* @__PURE__ */ jsx(DynamicIcon, { ref, className: cx("shrink-0", className), size: size2, name: icon, ...rest });
1652
+ const { ref, icon: Icon, className, size: size2 = "1em", ...rest } = props;
1653
+ return /* @__PURE__ */ jsx(Icon, { ref, className: cx("shrink-0", className), size: size2, ...rest });
1654
1654
  });
1655
1655
  LuIcon.displayName = "LuIcon";
1656
1656
  const Chevron = (props) => {
1657
1657
  const { orientation, ...rest } = props;
1658
1658
  switch (orientation) {
1659
1659
  case "up":
1660
- return /* @__PURE__ */ jsx(LuIcon, { icon: "chevron-up", ...rest });
1660
+ return /* @__PURE__ */ jsx(LuIcon, { icon: ChevronUp, ...rest });
1661
1661
  case "down":
1662
- return /* @__PURE__ */ jsx(LuIcon, { icon: "chevron-down", ...rest });
1662
+ return /* @__PURE__ */ jsx(LuIcon, { icon: ChevronDown, ...rest });
1663
1663
  case "left":
1664
- return /* @__PURE__ */ jsx(LuIcon, { icon: "chevron-left", ...rest });
1664
+ return /* @__PURE__ */ jsx(LuIcon, { icon: ChevronLeft, ...rest });
1665
1665
  default:
1666
- return /* @__PURE__ */ jsx(LuIcon, { icon: "chevron-right", ...rest });
1666
+ return /* @__PURE__ */ jsx(LuIcon, { icon: ChevronRight, ...rest });
1667
1667
  }
1668
1668
  };
1669
1669
  const rootCva = cva(["relative", "size-max"], {
@@ -2823,7 +2823,7 @@ const MenuContentContext = createContext({});
2823
2823
  const MenuContext = createContext({});
2824
2824
  const SubContext = createContext({});
2825
2825
  const TRIGGER_SELECT_KEYS = ["Enter", " "];
2826
- const MenuItem$1 = memo((props) => {
2826
+ const MenuItem = memo((props) => {
2827
2827
  const rootMenuContext = use(MenuContext);
2828
2828
  const { getItemProps, activeIndex, setOpen, size: size2, variant, radius } = use(MenuContentContext);
2829
2829
  const { closeRoot } = use(SubContext);
@@ -2885,8 +2885,8 @@ const MenuItem$1 = memo((props) => {
2885
2885
  }
2886
2886
  );
2887
2887
  });
2888
- MenuItem$1.displayName = "MenuItem";
2889
- const MenuCheckboxItem$1 = memo((props) => {
2888
+ MenuItem.displayName = "MenuItem";
2889
+ const MenuCheckboxItem = memo((props) => {
2890
2890
  const { ref, checked, onCheckedChange, onSelect, ...rest } = props;
2891
2891
  const handleSelect = useCallback(() => {
2892
2892
  onSelect == null ? void 0 : onSelect();
@@ -2900,9 +2900,9 @@ const MenuCheckboxItem$1 = memo((props) => {
2900
2900
  break;
2901
2901
  }
2902
2902
  }, [checked, onCheckedChange, onSelect]);
2903
- return /* @__PURE__ */ jsx(CheckedIndicatorContext.Provider, { value: checked, children: /* @__PURE__ */ jsx(MenuItem$1, { ref, onSelect: handleSelect, ...rest }) });
2903
+ return /* @__PURE__ */ jsx(CheckedIndicatorContext.Provider, { value: checked, children: /* @__PURE__ */ jsx(MenuItem, { ref, onSelect: handleSelect, ...rest }) });
2904
2904
  });
2905
- MenuCheckboxItem$1.displayName = "MenuCheckboxItem";
2905
+ MenuCheckboxItem.displayName = "MenuCheckboxItem";
2906
2906
  const MenuCheckboxItemIndicator = memo((props) => {
2907
2907
  const { ref, children, ...rest } = props;
2908
2908
  return /* @__PURE__ */ jsx(CheckedIndicator, { ref, ...rest, children });
@@ -3075,11 +3075,11 @@ const MenuContextTrigger = memo((props) => {
3075
3075
  );
3076
3076
  });
3077
3077
  MenuContextTrigger.displayName = "MenuContextTrigger";
3078
- const MenuGroup$1 = memo((props) => {
3078
+ const MenuGroup = memo((props) => {
3079
3079
  const { ref, children, ...rest } = props;
3080
3080
  return /* @__PURE__ */ jsx("div", { ref, role: "group", ...rest, children });
3081
3081
  });
3082
- MenuGroup$1.displayName = "MenuGroup";
3082
+ MenuGroup.displayName = "MenuGroup";
3083
3083
  const MenuInputField = memo((props) => {
3084
3084
  const { ref: forwardedRef, className, onValueChange, onChange, disabled = false, ...rest } = props;
3085
3085
  const { activeIndex, getItemProps } = use(MenuContentContext);
@@ -3130,11 +3130,11 @@ const MenuLabel = memo((props) => {
3130
3130
  return /* @__PURE__ */ jsx("div", { ref, className: cx(menuLabelCva({ size: size2 }), className), ...rest });
3131
3131
  });
3132
3132
  MenuLabel.displayName = "MenuLabel";
3133
- const MenuMultiSelectGroup$1 = genericMemo(function MenuMultiSelectGroup2(props) {
3133
+ const MenuMultiSelectGroup = genericMemo(function MenuMultiSelectGroup2(props) {
3134
3134
  const { ref, children, defaultValues, values, onValuesChange, ...rest } = props;
3135
- return /* @__PURE__ */ jsx(MenuGroup$1, { ref, ...rest, children: /* @__PURE__ */ jsx(MultiSelectProvider, { defaultValues, values, onValuesChange, children }) });
3135
+ return /* @__PURE__ */ jsx(MenuGroup, { ref, ...rest, children: /* @__PURE__ */ jsx(MultiSelectProvider, { defaultValues, values, onValuesChange, children }) });
3136
3136
  });
3137
- const MenuMultiSelectItem$1 = genericMemo(function(props) {
3137
+ const MenuMultiSelectItem = genericMemo(function(props) {
3138
3138
  const { ref, onSelect, children, closeOnSelect = false, value, ...rest } = props;
3139
3139
  const { selected, selectValue, registerValue } = use(MultiSelectContext);
3140
3140
  useLayoutEffect(() => {
@@ -3149,7 +3149,7 @@ const MenuMultiSelectItem$1 = genericMemo(function(props) {
3149
3149
  return typeof children === "function" ? ({ active }) => children({ selected: isSelected, active }) : children;
3150
3150
  }, [children, isSelected]);
3151
3151
  return /* @__PURE__ */ jsx(SelectedIndicatorContext.Provider, { value: isSelected, children: /* @__PURE__ */ jsx(
3152
- MenuItem$1,
3152
+ MenuItem,
3153
3153
  {
3154
3154
  ref,
3155
3155
  role: "menuitemcheckbox",
@@ -3168,13 +3168,13 @@ const MenuPageContent = memo((props) => {
3168
3168
  return activePage === page ? children : null;
3169
3169
  });
3170
3170
  MenuPageContent.displayName = "PageContent";
3171
- const MenuPages$1 = memo((props) => {
3171
+ const MenuPages = memo((props) => {
3172
3172
  const { children, defaultPage, page, onPageChange } = props;
3173
3173
  const [activePage, setActivePage] = useControlledState(defaultPage ?? "", page, onPageChange);
3174
3174
  const contextValue = useMemo(() => ({ activePage, setActivePage }), [activePage, setActivePage]);
3175
3175
  return /* @__PURE__ */ jsx(PagesContext.Provider, { value: contextValue, children });
3176
3176
  });
3177
- MenuPages$1.displayName = "MenuPages";
3177
+ MenuPages.displayName = "MenuPages";
3178
3178
  const MenuPageTrigger = memo((props) => {
3179
3179
  const { ref, onSelect, page, ...rest } = props;
3180
3180
  const { refs, setActiveIndex } = use(MenuContentContext);
@@ -3186,14 +3186,14 @@ const MenuPageTrigger = memo((props) => {
3186
3186
  (_a = refs.floating.current) == null ? void 0 : _a.focus();
3187
3187
  setActiveIndex(null);
3188
3188
  }, [onSelect, page, refs.floating, setActiveIndex, setActivePage]);
3189
- return /* @__PURE__ */ jsx(MenuItem$1, { ref, onSelect: handleSelect, closeOnSelect: false, ...rest });
3189
+ return /* @__PURE__ */ jsx(MenuItem, { ref, onSelect: handleSelect, closeOnSelect: false, ...rest });
3190
3190
  });
3191
3191
  MenuPageTrigger.displayName = "MenuPageTrigger";
3192
3192
  const MENU_OVERFLOW_PADDING = 20;
3193
3193
  const MENU_CONTENT_PADDING = 8;
3194
3194
  const MENU_MINIMUM_MAX_HEIGHT = 250;
3195
3195
  const DEFAULT_OFFSET = 5;
3196
- const MenuRoot$1 = memo((props) => {
3196
+ const MenuRoot = memo((props) => {
3197
3197
  const {
3198
3198
  children,
3199
3199
  side = "bottom",
@@ -3282,7 +3282,7 @@ const MenuRoot$1 = memo((props) => {
3282
3282
  }
3283
3283
  ) });
3284
3284
  });
3285
- MenuRoot$1.displayName = "Root";
3285
+ MenuRoot.displayName = "Root";
3286
3286
  const MenuScroll = memo((props) => {
3287
3287
  const { ref, className, ...rest } = props;
3288
3288
  return /* @__PURE__ */ jsx(
@@ -3298,7 +3298,7 @@ const MenuScroll = memo((props) => {
3298
3298
  );
3299
3299
  });
3300
3300
  MenuScroll.displayName = "MenuScroll";
3301
- const MenuSelectAllItem$1 = genericMemo((props) => {
3301
+ const MenuSelectAllItem = genericMemo((props) => {
3302
3302
  const { ref, children, onSelect, closeOnSelect = false, ...rest } = props;
3303
3303
  const { allSelected, someSelected, toggleSelectAll } = use(MultiSelectContext);
3304
3304
  const selectedState = allSelected ? true : someSelected ? "indeterminate" : false;
@@ -3310,7 +3310,7 @@ const MenuSelectAllItem$1 = genericMemo((props) => {
3310
3310
  return typeof children === "function" ? ({ active }) => children({ selected: selectedState, active }) : children;
3311
3311
  }, [children, selectedState]);
3312
3312
  return /* @__PURE__ */ jsx(CheckedIndicatorContext, { value: selectedState, children: /* @__PURE__ */ jsx(
3313
- MenuItem$1,
3313
+ MenuItem,
3314
3314
  {
3315
3315
  onSelect: handleSelect,
3316
3316
  ref,
@@ -3321,14 +3321,14 @@ const MenuSelectAllItem$1 = genericMemo((props) => {
3321
3321
  }
3322
3322
  ) });
3323
3323
  });
3324
- const MenuSelectedIndicator$1 = memo((props) => {
3324
+ const MenuSelectedIndicator = memo((props) => {
3325
3325
  const { ref, children, ...rest } = props;
3326
3326
  return /* @__PURE__ */ jsx(SelectedIndicator, { ref, ...rest, children });
3327
3327
  });
3328
- MenuSelectedIndicator$1.displayName = "MenuSelectedIndicator";
3329
- const MenuSelectGroup$1 = genericMemo(function MenuSelectGroup2(props) {
3328
+ MenuSelectedIndicator.displayName = "MenuSelectedIndicator";
3329
+ const MenuSelectGroup = genericMemo(function MenuSelectGroup2(props) {
3330
3330
  const { ref, children, required, defaultValue, value, onValueChange, ...rest } = props;
3331
- return /* @__PURE__ */ jsx(MenuGroup$1, { ref, ...rest, children: required ? /* @__PURE__ */ jsx(SingleSelectRequiredProvider, { defaultValue, value, onValueChange, children }) : /* @__PURE__ */ jsx(
3331
+ return /* @__PURE__ */ jsx(MenuGroup, { ref, ...rest, children: required ? /* @__PURE__ */ jsx(SingleSelectRequiredProvider, { defaultValue, value, onValueChange, children }) : /* @__PURE__ */ jsx(
3332
3332
  SingleSelectNotRequiredProvider,
3333
3333
  {
3334
3334
  defaultValue,
@@ -3338,7 +3338,7 @@ const MenuSelectGroup$1 = genericMemo(function MenuSelectGroup2(props) {
3338
3338
  }
3339
3339
  ) });
3340
3340
  });
3341
- const MenuSelectItem$1 = genericMemo(function(props) {
3341
+ const MenuSelectItem = genericMemo(function(props) {
3342
3342
  const { ref, value, onSelect, children, closeOnSelect = true, ...rest } = props;
3343
3343
  const { selected, selectValue } = use(SelectContext);
3344
3344
  const isSelected = selected(value);
@@ -3350,7 +3350,7 @@ const MenuSelectItem$1 = genericMemo(function(props) {
3350
3350
  return typeof children === "function" ? ({ active }) => children({ selected: isSelected, active }) : children;
3351
3351
  }, [children, isSelected]);
3352
3352
  return /* @__PURE__ */ jsx(SelectedIndicatorContext.Provider, { value: isSelected, children: /* @__PURE__ */ jsx(
3353
- MenuItem$1,
3353
+ MenuItem,
3354
3354
  {
3355
3355
  ref,
3356
3356
  role: "menuitemcheckbox",
@@ -3362,12 +3362,12 @@ const MenuSelectItem$1 = genericMemo(function(props) {
3362
3362
  }
3363
3363
  ) });
3364
3364
  });
3365
- const MenuSeparator$1 = memo((props) => {
3365
+ const MenuSeparator = memo((props) => {
3366
3366
  const { ref, className, ...rest } = props;
3367
3367
  const { size: size2 } = use(MenuContentContext);
3368
3368
  return /* @__PURE__ */ jsx(RadixSeparator.Root, { className: cx(menuSeparator({ size: size2 }), className), ref, ...rest });
3369
3369
  });
3370
- MenuSeparator$1.displayName = "MenuSeparator";
3370
+ MenuSeparator.displayName = "MenuSeparator";
3371
3371
  const computeOffsets = (side, alignment) => {
3372
3372
  switch (side) {
3373
3373
  case "right":
@@ -3565,7 +3565,7 @@ const MenuSubTrigger = memo((props) => {
3565
3565
  const { refs, getReferenceProps, open, disabled } = use(SubContext);
3566
3566
  const mergedRefs = useMergeRefs([forwardedRef, refs.setReference]);
3567
3567
  return /* @__PURE__ */ jsx(
3568
- MenuItem$1,
3568
+ MenuItem,
3569
3569
  {
3570
3570
  ref: mergedRefs,
3571
3571
  closeOnSelect: false,
@@ -3597,14 +3597,14 @@ const MenuVirtualTrigger = memo((props) => {
3597
3597
  });
3598
3598
  MenuVirtualTrigger.displayName = "VirtualTrigger";
3599
3599
  const Menu = {
3600
- Root: MenuRoot$1,
3600
+ Root: MenuRoot,
3601
3601
  Content: MenuContent,
3602
3602
  // sub
3603
3603
  Sub: MenuSub,
3604
3604
  SubContent: MenuSubContent,
3605
3605
  SubTrigger: MenuSubTrigger,
3606
3606
  // pages
3607
- Pages: MenuPages$1,
3607
+ Pages: MenuPages,
3608
3608
  PageContent: MenuPageContent,
3609
3609
  PageTrigger: MenuPageTrigger,
3610
3610
  // triggers
@@ -3612,17 +3612,17 @@ const Menu = {
3612
3612
  ContextTrigger: MenuContextTrigger,
3613
3613
  VirtualTrigger: MenuVirtualTrigger,
3614
3614
  // groups
3615
- Group: MenuGroup$1,
3616
- SelectGroup: MenuSelectGroup$1,
3617
- MultiSelectGroup: MenuMultiSelectGroup$1,
3615
+ Group: MenuGroup,
3616
+ SelectGroup: MenuSelectGroup,
3617
+ MultiSelectGroup: MenuMultiSelectGroup,
3618
3618
  // items
3619
- Item: MenuItem$1,
3620
- SelectItem: MenuSelectItem$1,
3621
- MultiSelectItem: MenuMultiSelectItem$1,
3622
- SelectAllItem: MenuSelectAllItem$1,
3623
- CheckboxItem: MenuCheckboxItem$1,
3619
+ Item: MenuItem,
3620
+ SelectItem: MenuSelectItem,
3621
+ MultiSelectItem: MenuMultiSelectItem,
3622
+ SelectAllItem: MenuSelectAllItem,
3623
+ CheckboxItem: MenuCheckboxItem,
3624
3624
  // indicators
3625
- SelectedIndicator: MenuSelectedIndicator$1,
3625
+ SelectedIndicator: MenuSelectedIndicator,
3626
3626
  CheckboxItemIndicator: MenuCheckboxItemIndicator,
3627
3627
  // input
3628
3628
  InputRoot: MenuInputRoot,
@@ -3630,7 +3630,7 @@ const Menu = {
3630
3630
  InputSlot: MenuInputSlot,
3631
3631
  // others
3632
3632
  Label: MenuLabel,
3633
- Separator: MenuSeparator$1,
3633
+ Separator: MenuSeparator,
3634
3634
  Scroll: MenuScroll
3635
3635
  };
3636
3636
  const KEY_MAPPING = {
@@ -3723,7 +3723,7 @@ const menuSeparatorCva = cva(["h-px", "bg-(--base-a6)", "w-auto", "shrink-0"], {
3723
3723
  }
3724
3724
  }
3725
3725
  });
3726
- const MenuItem = memo((props) => {
3726
+ const MenuV2Item = memo((props) => {
3727
3727
  const {
3728
3728
  ref,
3729
3729
  children,
@@ -3804,8 +3804,8 @@ const MenuItem = memo((props) => {
3804
3804
  }
3805
3805
  );
3806
3806
  });
3807
- MenuItem.displayName = "MenuItem";
3808
- const MenuCheckboxItem = memo((props) => {
3807
+ MenuV2Item.displayName = "MenuItem";
3808
+ const MenuV2CheckboxItem = memo((props) => {
3809
3809
  const { ref, checked, onCheckedChange, onSelect, ...rest } = props;
3810
3810
  const handleSelect = useCallback(
3811
3811
  (e) => {
@@ -3825,15 +3825,15 @@ const MenuCheckboxItem = memo((props) => {
3825
3825
  },
3826
3826
  [checked, onCheckedChange, onSelect]
3827
3827
  );
3828
- return /* @__PURE__ */ jsx(CheckedIndicatorContext.Provider, { value: checked, children: /* @__PURE__ */ jsx(MenuItem, { ref, onSelect: handleSelect, ...rest }) });
3828
+ return /* @__PURE__ */ jsx(CheckedIndicatorContext.Provider, { value: checked, children: /* @__PURE__ */ jsx(MenuV2Item, { ref, onSelect: handleSelect, ...rest }) });
3829
3829
  });
3830
- MenuCheckboxItem.displayName = "MenuCheckboxItem";
3831
- const MenuCheckedIndicator = memo((props) => {
3830
+ MenuV2CheckboxItem.displayName = "MenuCheckboxItem";
3831
+ const MenuV2CheckedIndicator = memo((props) => {
3832
3832
  const { ref, children, ...rest } = props;
3833
3833
  return /* @__PURE__ */ jsx(CheckedIndicator, { ref, ...rest, children });
3834
3834
  });
3835
- MenuCheckedIndicator.displayName = "MenuCheckboxItemIndicator";
3836
- const MenuGroup = memo((props) => {
3835
+ MenuV2CheckedIndicator.displayName = "MenuCheckboxItemIndicator";
3836
+ const MenuV2Group = memo((props) => {
3837
3837
  const { ref, children, ...rest } = props;
3838
3838
  const groupId = useId();
3839
3839
  const [labelId, setLabelId] = useState(null);
@@ -3846,8 +3846,8 @@ const MenuGroup = memo((props) => {
3846
3846
  );
3847
3847
  return /* @__PURE__ */ jsx("div", { ref, role: "group", ...{ [GROUP_SELECTOR]: groupId }, "aria-labelledby": labelId ?? void 0, ...rest, children: /* @__PURE__ */ jsx(MenuGroupContext, { value: contextValue, children }) });
3848
3848
  });
3849
- MenuGroup.displayName = "MenuGroup";
3850
- const MenuGroupLabel = memo((props) => {
3849
+ MenuV2Group.displayName = "MenuGroup";
3850
+ const MenuV2GroupLabel = memo((props) => {
3851
3851
  const { ref, children, id, className, ...rest } = props;
3852
3852
  const labelId = useFallbackId(id);
3853
3853
  const { size: size2 } = use(MenuRootContext);
@@ -3857,8 +3857,8 @@ const MenuGroupLabel = memo((props) => {
3857
3857
  }, [labelId, setLabelId]);
3858
3858
  return /* @__PURE__ */ jsx("div", { ref, id: labelId, className: cx(menuGroupLabelCva({ size: size2 }), className), ...rest, children });
3859
3859
  });
3860
- MenuGroupLabel.displayName = "MenuGroupLabel";
3861
- const MenuSelectAllItem = genericMemo((props) => {
3860
+ MenuV2GroupLabel.displayName = "MenuGroupLabel";
3861
+ const MenuV2SelectAllItem = genericMemo((props) => {
3862
3862
  const { ref, children, onSelect, ...rest } = props;
3863
3863
  const { allSelected, someSelected, toggleSelectAll } = use(MultiSelectContext);
3864
3864
  const selectedState = allSelected ? true : someSelected ? "indeterminate" : false;
@@ -3870,13 +3870,13 @@ const MenuSelectAllItem = genericMemo((props) => {
3870
3870
  },
3871
3871
  [onSelect, toggleSelectAll]
3872
3872
  );
3873
- return /* @__PURE__ */ jsx(MenuItem, { onSelect: handleSelect, ref, "data-state": getCheckedState(selectedState), ...rest, children: /* @__PURE__ */ jsx(CheckedIndicatorContext, { value: selectedState, children }) });
3873
+ return /* @__PURE__ */ jsx(MenuV2Item, { onSelect: handleSelect, ref, "data-state": getCheckedState(selectedState), ...rest, children: /* @__PURE__ */ jsx(CheckedIndicatorContext, { value: selectedState, children }) });
3874
3874
  });
3875
- const MenuMultiSelectGroup = genericMemo(function MenuMultiSelectGroup22(props) {
3875
+ const MenuV2MultiSelectGroup = genericMemo(function MenuMultiSelectGroup3(props) {
3876
3876
  const { ref, children, defaultValues, values, onValuesChange, ...rest } = props;
3877
- return /* @__PURE__ */ jsx(MenuGroup, { ref, ...rest, children: /* @__PURE__ */ jsx(MultiSelectProvider, { defaultValues, values, onValuesChange, children }) });
3877
+ return /* @__PURE__ */ jsx(MenuV2Group, { ref, ...rest, children: /* @__PURE__ */ jsx(MultiSelectProvider, { defaultValues, values, onValuesChange, children }) });
3878
3878
  });
3879
- const MenuMultiSelectItem = genericMemo(function(props) {
3879
+ const MenuV2MultiSelectItem = genericMemo(function(props) {
3880
3880
  const { ref, onSelect, children, value, ...rest } = props;
3881
3881
  const { selected, selectValue, registerValue } = use(MultiSelectContext);
3882
3882
  useLayoutEffect(() => {
@@ -3892,7 +3892,7 @@ const MenuMultiSelectItem = genericMemo(function(props) {
3892
3892
  [onSelect, selectValue, value]
3893
3893
  );
3894
3894
  return /* @__PURE__ */ jsx(
3895
- MenuItem,
3895
+ MenuV2Item,
3896
3896
  {
3897
3897
  ref,
3898
3898
  role: "menuitemcheckbox",
@@ -3903,14 +3903,14 @@ const MenuMultiSelectItem = genericMemo(function(props) {
3903
3903
  }
3904
3904
  );
3905
3905
  });
3906
- const MenuPage = memo((props) => {
3906
+ const MenuV2Page = memo((props) => {
3907
3907
  const { children, ref, page, ...rest } = props;
3908
3908
  const { page: activePage } = use(MenuPageContext);
3909
3909
  const isActive = page === activePage;
3910
3910
  return /* @__PURE__ */ jsx("div", { ref, "data-active": getActiveState(isActive), hidden: !isActive, ...rest, children: isActive ? children : null });
3911
3911
  });
3912
- MenuPage.displayName = "MenuPage";
3913
- const MenuPages = memo((props) => {
3912
+ MenuV2Page.displayName = "MenuPage";
3913
+ const MenuV2Pages = memo((props) => {
3914
3914
  const { children, defaultPage = "", page: controlledPage, onPageChange } = props;
3915
3915
  const [page, setPage] = useControlledState(defaultPage, controlledPage, onPageChange);
3916
3916
  const contextValue = useMemo(
@@ -3922,8 +3922,8 @@ const MenuPages = memo((props) => {
3922
3922
  );
3923
3923
  return /* @__PURE__ */ jsx(MenuPageContext, { value: contextValue, children });
3924
3924
  });
3925
- MenuPages.displayName = "MenuPages";
3926
- const MenuPageTriggerItem = memo((props) => {
3925
+ MenuV2Pages.displayName = "MenuPages";
3926
+ const MenuV2PageTriggerItem = memo((props) => {
3927
3927
  const { ref, children, page, onSelect, ...rest } = props;
3928
3928
  const { page: activePage, setPage } = use(MenuPageContext);
3929
3929
  const isActive = page === activePage;
@@ -3935,9 +3935,9 @@ const MenuPageTriggerItem = memo((props) => {
3935
3935
  },
3936
3936
  [onSelect, page, setPage]
3937
3937
  );
3938
- return /* @__PURE__ */ jsx(MenuItem, { ref, onSelect: handleSelect, "data-state": getActiveState(isActive), ...rest, children: /* @__PURE__ */ jsx(SelectedIndicatorContext, { value: isActive, children }) });
3938
+ return /* @__PURE__ */ jsx(MenuV2Item, { ref, onSelect: handleSelect, "data-state": getActiveState(isActive), ...rest, children: /* @__PURE__ */ jsx(SelectedIndicatorContext, { value: isActive, children }) });
3939
3939
  });
3940
- MenuPageTriggerItem.displayName = "CommandMenuPageTriggerItem";
3940
+ MenuV2PageTriggerItem.displayName = "CommandMenuPageTriggerItem";
3941
3941
  const computeNextIndex = (index, length, direction, loop) => {
3942
3942
  switch (direction) {
3943
3943
  case "next":
@@ -3946,7 +3946,7 @@ const computeNextIndex = (index, length, direction, loop) => {
3946
3946
  return index === 0 ? loop ? length - 1 : index : index - 1;
3947
3947
  }
3948
3948
  };
3949
- const MenuRoot = memo((props) => {
3949
+ const MenuV2Root = memo((props) => {
3950
3950
  const providerContext = useProvider();
3951
3951
  const {
3952
3952
  ref,
@@ -4085,8 +4085,10 @@ const MenuRoot = memo((props) => {
4085
4085
  [getActiveItem, getFirstGroup, getFirstItem, getLastGroup, getLastItem, getNextGroup, getNextItem, onKeyDown]
4086
4086
  );
4087
4087
  useEffect(() => {
4088
+ var _a;
4088
4089
  const firstItem = getFirstItem(internalRef.current);
4089
4090
  if (!firstItem) return;
4091
+ (_a = internalRef.current) == null ? void 0 : _a.focus();
4090
4092
  setActiveItemId(firstItem.getAttribute(ITEM_SELECTOR));
4091
4093
  }, [getFirstItem]);
4092
4094
  const contextValue = useMemo(
@@ -4116,15 +4118,15 @@ const MenuRoot = memo((props) => {
4116
4118
  }
4117
4119
  );
4118
4120
  });
4119
- MenuRoot.displayName = "MenuRoot";
4120
- const MenuSelectedIndicator = memo((props) => {
4121
+ MenuV2Root.displayName = "MenuRoot";
4122
+ const MenuV2SelectedIndicator = memo((props) => {
4121
4123
  const { ref, children, ...rest } = props;
4122
4124
  return /* @__PURE__ */ jsx(SelectedIndicator, { ref, ...rest, children });
4123
4125
  });
4124
- MenuSelectedIndicator.displayName = "MenuCheckboxItemIndicator";
4125
- const MenuSelectGroup = genericMemo(function MenuSelectGroup22(props) {
4126
+ MenuV2SelectedIndicator.displayName = "MenuCheckboxItemIndicator";
4127
+ const MenuV2SelectGroup = genericMemo(function MenuSelectGroup3(props) {
4126
4128
  const { ref, children, required, defaultValue, value, onValueChange, ...rest } = props;
4127
- return /* @__PURE__ */ jsx(MenuGroup, { ref, ...rest, children: required ? /* @__PURE__ */ jsx(SingleSelectRequiredProvider, { defaultValue, value, onValueChange, children }) : /* @__PURE__ */ jsx(
4129
+ return /* @__PURE__ */ jsx(MenuV2Group, { ref, ...rest, children: required ? /* @__PURE__ */ jsx(SingleSelectRequiredProvider, { defaultValue, value, onValueChange, children }) : /* @__PURE__ */ jsx(
4128
4130
  SingleSelectNotRequiredProvider,
4129
4131
  {
4130
4132
  defaultValue,
@@ -4134,7 +4136,7 @@ const MenuSelectGroup = genericMemo(function MenuSelectGroup22(props) {
4134
4136
  }
4135
4137
  ) });
4136
4138
  });
4137
- const MenuSelectItem = genericMemo(function(props) {
4139
+ const MenuV2SelectItem = genericMemo(function(props) {
4138
4140
  const { ref, value, onSelect, children, ...rest } = props;
4139
4141
  const { selected, selectValue } = use(SelectContext);
4140
4142
  const isSelected = selected(value);
@@ -4147,7 +4149,7 @@ const MenuSelectItem = genericMemo(function(props) {
4147
4149
  [onSelect, selectValue, value]
4148
4150
  );
4149
4151
  return /* @__PURE__ */ jsx(
4150
- MenuItem,
4152
+ MenuV2Item,
4151
4153
  {
4152
4154
  ref,
4153
4155
  role: "menuitemcheckbox",
@@ -4158,29 +4160,29 @@ const MenuSelectItem = genericMemo(function(props) {
4158
4160
  }
4159
4161
  );
4160
4162
  });
4161
- const MenuSeparator = memo((props) => {
4163
+ const MenuV2Separator = memo((props) => {
4162
4164
  const { ref, className, ...rest } = props;
4163
4165
  const { size: size2 } = use(MenuRootContext);
4164
4166
  return /* @__PURE__ */ jsx(RadixSeparator.Root, { className: cx(menuSeparatorCva({ size: size2 }), className), ref, ...rest });
4165
4167
  });
4166
- MenuSeparator.displayName = "MenuSeparator";
4168
+ MenuV2Separator.displayName = "MenuSeparator";
4167
4169
  const MenuV2 = {
4168
- Root: MenuRoot,
4169
- Group: MenuGroup,
4170
- GroupLabel: MenuGroupLabel,
4171
- Item: MenuItem,
4172
- Separator: MenuSeparator,
4173
- SelectGroup: MenuSelectGroup,
4174
- SelectItem: MenuSelectItem,
4175
- MultiSelectGroup: MenuMultiSelectGroup,
4176
- MultiSelectItem: MenuMultiSelectItem,
4177
- SelectAllItem: MenuSelectAllItem,
4178
- SelectedIndicator: MenuSelectedIndicator,
4179
- CheckboxItem: MenuCheckboxItem,
4180
- CheckedIndicator: MenuCheckedIndicator,
4181
- Pages: MenuPages,
4182
- Page: MenuPage,
4183
- PageTriggerItem: MenuPageTriggerItem
4170
+ Root: MenuV2Root,
4171
+ Group: MenuV2Group,
4172
+ GroupLabel: MenuV2GroupLabel,
4173
+ Item: MenuV2Item,
4174
+ Separator: MenuV2Separator,
4175
+ SelectGroup: MenuV2SelectGroup,
4176
+ SelectItem: MenuV2SelectItem,
4177
+ MultiSelectGroup: MenuV2MultiSelectGroup,
4178
+ MultiSelectItem: MenuV2MultiSelectItem,
4179
+ SelectAllItem: MenuV2SelectAllItem,
4180
+ SelectedIndicator: MenuV2SelectedIndicator,
4181
+ CheckboxItem: MenuV2CheckboxItem,
4182
+ CheckedIndicator: MenuV2CheckedIndicator,
4183
+ Pages: MenuV2Pages,
4184
+ Page: MenuV2Page,
4185
+ PageTriggerItem: MenuV2PageTriggerItem
4184
4186
  };
4185
4187
  const OneTimePasswordFieldHiddenInput = memo((props) => {
4186
4188
  return /* @__PURE__ */ jsx(RadixOneTimePasswordField.HiddenInput, { ...props });
@@ -4281,6 +4283,62 @@ const OneTimePasswordField = {
4281
4283
  Input: OneTimePasswordFieldInput,
4282
4284
  Root: OneTimePasswordFieldRoot
4283
4285
  };
4286
+ const OverlayClose = memo((props) => {
4287
+ const { ref, ...rest } = props;
4288
+ return /* @__PURE__ */ jsx(RadixDialog.Close, { ref, ...rest });
4289
+ });
4290
+ OverlayClose.displayName = "OverlayClose";
4291
+ const overlayContentCva = cva([
4292
+ "fixed",
4293
+ "inset-0",
4294
+ "bg-(--color-background)",
4295
+ "data-[state='closed']:animate-out",
4296
+ "data-[state='closed']:fade-out-0",
4297
+ "data-[state='closed']:zoom-out-95",
4298
+ "data-[state='open']:animate-in",
4299
+ "data-[state='open']:fade-in-0",
4300
+ "data-[state='open']:zoom-in-95"
4301
+ ]);
4302
+ const OverlayContent = memo((props) => {
4303
+ const { ref, container, className, ...rest } = props;
4304
+ return /* @__PURE__ */ jsx(RadixDialog.Portal, { container, children: /* @__PURE__ */ jsx(
4305
+ RadixDialog.Content,
4306
+ {
4307
+ className: cx(overlayContentCva(), className),
4308
+ ref,
4309
+ "data-floating-content": "",
4310
+ ...rest
4311
+ }
4312
+ ) });
4313
+ });
4314
+ OverlayContent.displayName = "OverlayContent";
4315
+ const OverlayDescription = memo((props) => {
4316
+ const { ref, ...rest } = props;
4317
+ return /* @__PURE__ */ jsx(RadixDialog.Description, { ref, ...rest });
4318
+ });
4319
+ OverlayDescription.displayName = "OverlayDescription";
4320
+ const OverlayRoot = memo((props) => {
4321
+ return /* @__PURE__ */ jsx(RadixDialog.Root, { ...props });
4322
+ });
4323
+ OverlayRoot.displayName = "OverlayRoot";
4324
+ const OverlayTitle = memo((props) => {
4325
+ const { ref, ...rest } = props;
4326
+ return /* @__PURE__ */ jsx(RadixDialog.Title, { ref, ...rest });
4327
+ });
4328
+ OverlayTitle.displayName = "OverlayTitle";
4329
+ const OverlayTrigger = memo((props) => {
4330
+ const { ref, ...rest } = props;
4331
+ return /* @__PURE__ */ jsx(RadixDialog.Trigger, { ref, ...rest });
4332
+ });
4333
+ OverlayTrigger.displayName = "OverlayTrigger";
4334
+ const Overlay = {
4335
+ Root: OverlayRoot,
4336
+ Content: OverlayContent,
4337
+ Title: OverlayTitle,
4338
+ Description: OverlayDescription,
4339
+ Trigger: OverlayTrigger,
4340
+ Close: OverlayClose
4341
+ };
4284
4342
  const centerStyles = { placeSelf: "center" };
4285
4343
  const ErrorFallback = memo((props) => {
4286
4344
  const { absoluteCentering, message = "Something went wrong", onRetry } = props;
@@ -4293,9 +4351,9 @@ const ErrorFallback = memo((props) => {
4293
4351
  }, [onRetry, resetBoundary]);
4294
4352
  return /* @__PURE__ */ jsxs("div", { className: "flex w-full gap-2", style: outerFlexStyles, children: [
4295
4353
  /* @__PURE__ */ jsx("div", { style: { flexGrow: 1 } }),
4296
- /* @__PURE__ */ jsx(LuIcon, { icon: "alert-triangle", size: height, style: centerStyles }),
4354
+ /* @__PURE__ */ jsx(LuIcon, { icon: AlertTriangle, size: height, style: centerStyles }),
4297
4355
  /* @__PURE__ */ jsx("span", { style: { lineHeight: height, ...centerStyles }, children: message }),
4298
- /* @__PURE__ */ jsx(IconButton, { "aria-label": "Try again", variant: "soft", onClick: handleRetry, style: centerStyles, children: /* @__PURE__ */ jsx(LuIcon, { icon: "rotate-ccw", size: height }) }),
4356
+ /* @__PURE__ */ jsx(IconButton, { "aria-label": "Try again", variant: "soft", onClick: handleRetry, style: centerStyles, children: /* @__PURE__ */ jsx(LuIcon, { icon: RotateCcw, size: height }) }),
4299
4357
  /* @__PURE__ */ jsx("div", { style: { flexGrow: 1 } })
4300
4358
  ] });
4301
4359
  });
@@ -4644,6 +4702,65 @@ const RadioGroup = {
4644
4702
  Item: RadioGroupItem,
4645
4703
  Root: RadioGroupRoot
4646
4704
  };
4705
+ const RatingRootContext = createContext({});
4706
+ const RatingItemContext = createContext({});
4707
+ const RatingItem = memo((props) => {
4708
+ const { ref, children, value, ...rest } = props;
4709
+ const { value: activeValue } = use(RatingRootContext);
4710
+ const active = !!activeValue && value <= activeValue;
4711
+ const contextValue = useMemo(() => ({ value }), [value]);
4712
+ return /* @__PURE__ */ jsx(RadixRadioGroup.Item, { ref, value: value.toString(), "data-active": active, ...rest, children: /* @__PURE__ */ jsx(RatingItemContext, { value: contextValue, children }) });
4713
+ });
4714
+ RatingItem.displayName = "RatingItem";
4715
+ const RatingItemIndicator = memo((props) => {
4716
+ const { ref, children, forceMount, ...rest } = props;
4717
+ const { value: activeValue } = use(RatingRootContext);
4718
+ const { value } = use(RatingItemContext);
4719
+ const active = !!activeValue && value <= activeValue;
4720
+ return /* @__PURE__ */ jsx(
4721
+ RadixRadioGroup.Indicator,
4722
+ {
4723
+ ref,
4724
+ forceMount: forceMount ?? (active || void 0),
4725
+ "data-active": active,
4726
+ ...rest,
4727
+ children
4728
+ }
4729
+ );
4730
+ });
4731
+ RatingItemIndicator.displayName = "RatingItemIndicator";
4732
+ const RatingRoot = memo((props) => {
4733
+ const { ref, children, defaultValue, value: controlledValue, onValueChange, ...rest } = props;
4734
+ const [value, setValue] = useControlledState(defaultValue ?? null, controlledValue, onValueChange);
4735
+ const handleValueChange = useCallback(
4736
+ (value2) => {
4737
+ setValue(parseInt(value2));
4738
+ },
4739
+ [setValue]
4740
+ );
4741
+ const contextValue = useMemo(
4742
+ () => ({
4743
+ value
4744
+ }),
4745
+ [value]
4746
+ );
4747
+ return /* @__PURE__ */ jsx(
4748
+ RadixRadioGroup.Root,
4749
+ {
4750
+ ref,
4751
+ value: value ? value.toString() : null,
4752
+ onValueChange: handleValueChange,
4753
+ ...rest,
4754
+ children: /* @__PURE__ */ jsx(RatingRootContext, { value: contextValue, children })
4755
+ }
4756
+ );
4757
+ });
4758
+ RatingRoot.displayName = "RatingRoot";
4759
+ const Rating = {
4760
+ Item: RatingItem,
4761
+ ItemIndicator: RatingItemIndicator,
4762
+ Root: RatingRoot
4763
+ };
4647
4764
  const segmentedControlRootCva = cva(
4648
4765
  ["shrink-0", "transition-colors", "inline-flex", "box-border", "min-w-max", "text-center"],
4649
4766
  {
@@ -5912,7 +6029,7 @@ const _Toast = function Toast2(props) {
5912
6029
  action && /* @__PURE__ */ jsx(RadixToast.Action, { className: "w-max", altText: action.altText, asChild: true, children: action.content })
5913
6030
  ] })
5914
6031
  ] }),
5915
- /* @__PURE__ */ jsx(RadixToast.Close, { asChild: true, children: /* @__PURE__ */ jsx(IconButton, { size: size2, "aria-label": "Close", variant: "ghost", accentColor, children: /* @__PURE__ */ jsx(LuIcon, { icon: "x" }) }) })
6032
+ /* @__PURE__ */ jsx(RadixToast.Close, { asChild: true, children: /* @__PURE__ */ jsx(IconButton, { size: size2, "aria-label": "Close", variant: "ghost", accentColor, children: /* @__PURE__ */ jsx(LuIcon, { icon: X }) }) })
5916
6033
  ]
5917
6034
  }
5918
6035
  );
@@ -6469,38 +6586,61 @@ export {
6469
6586
  Link,
6470
6587
  LuIcon,
6471
6588
  Menu,
6472
- MenuCheckboxItem$1 as MenuCheckboxItem,
6589
+ MenuCheckboxItem,
6473
6590
  MenuCheckboxItemIndicator,
6474
6591
  MenuClickTrigger,
6475
6592
  MenuContent,
6476
6593
  MenuContextTrigger,
6477
- MenuGroup$1 as MenuGroup,
6594
+ MenuGroup,
6478
6595
  MenuInputField,
6479
6596
  MenuInputRoot,
6480
6597
  MenuInputSlot,
6481
- MenuItem$1 as MenuItem,
6598
+ MenuItem,
6482
6599
  MenuLabel,
6483
- MenuMultiSelectGroup$1 as MenuMultiSelectGroup,
6484
- MenuMultiSelectItem$1 as MenuMultiSelectItem,
6600
+ MenuMultiSelectGroup,
6601
+ MenuMultiSelectItem,
6485
6602
  MenuPageContent,
6486
6603
  MenuPageTrigger,
6487
- MenuPages$1 as MenuPages,
6488
- MenuRoot$1 as MenuRoot,
6604
+ MenuPages,
6605
+ MenuRoot,
6489
6606
  MenuScroll,
6490
- MenuSelectAllItem$1 as MenuSelectAllItem,
6491
- MenuSelectGroup$1 as MenuSelectGroup,
6492
- MenuSelectItem$1 as MenuSelectItem,
6493
- MenuSelectedIndicator$1 as MenuSelectedIndicator,
6494
- MenuSeparator$1 as MenuSeparator,
6607
+ MenuSelectAllItem,
6608
+ MenuSelectGroup,
6609
+ MenuSelectItem,
6610
+ MenuSelectedIndicator,
6611
+ MenuSeparator,
6495
6612
  MenuSub,
6496
6613
  MenuSubContent,
6497
6614
  MenuSubTrigger,
6498
6615
  MenuV2,
6616
+ MenuV2CheckboxItem,
6617
+ MenuV2CheckedIndicator,
6618
+ MenuV2Group,
6619
+ MenuV2GroupLabel,
6620
+ MenuV2Item,
6621
+ MenuV2MultiSelectGroup,
6622
+ MenuV2MultiSelectItem,
6623
+ MenuV2Page,
6624
+ MenuV2PageTriggerItem,
6625
+ MenuV2Pages,
6626
+ MenuV2Root,
6627
+ MenuV2SelectAllItem,
6628
+ MenuV2SelectGroup,
6629
+ MenuV2SelectItem,
6630
+ MenuV2SelectedIndicator,
6631
+ MenuV2Separator,
6499
6632
  MenuVirtualTrigger,
6500
6633
  OneTimePasswordField,
6501
6634
  OneTimePasswordFieldHiddenInput,
6502
6635
  OneTimePasswordFieldInput,
6503
6636
  OneTimePasswordFieldRoot,
6637
+ Overlay,
6638
+ OverlayClose,
6639
+ OverlayContent,
6640
+ OverlayDescription,
6641
+ OverlayRoot,
6642
+ OverlayTitle,
6643
+ OverlayTrigger,
6504
6644
  OvermapErrorBoundary,
6505
6645
  Popover,
6506
6646
  PopoverArrow,
@@ -6514,6 +6654,10 @@ export {
6514
6654
  RadioGroupIndicator,
6515
6655
  RadioGroupItem,
6516
6656
  RadioGroupRoot,
6657
+ Rating,
6658
+ RatingItem,
6659
+ RatingItemIndicator,
6660
+ RatingRoot,
6517
6661
  SegmentedControl,
6518
6662
  SegmentedControlItem,
6519
6663
  SegmentedControlRoot,