@overmap-ai/blocks 1.0.31-tailwind-components.14 → 1.0.31-tailwind-components.15

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.
@@ -1,7 +1,7 @@
1
- import { PropsWithChildren } from "react";
1
+ import { ComponentProps, PropsWithoutRef } from "react";
2
2
  import { ButtonVariantProps } from "../Buttons";
3
3
  import { AccentColorProps } from "../typings";
4
- export interface ButtonGroupProps extends PropsWithChildren, ButtonVariantProps, AccentColorProps {
4
+ export interface ButtonGroupProps extends PropsWithoutRef<ComponentProps<"div">>, ButtonVariantProps, AccentColorProps {
5
5
  }
6
6
  export declare const ButtonGroup: {
7
7
  (props: ButtonGroupProps): import("react/jsx-runtime").JSX.Element;
@@ -24,7 +24,6 @@ export interface MenuRootProps extends PropsWithChildren {
24
24
  align?: MenuAlignment;
25
25
  offset?: number;
26
26
  loop?: boolean;
27
- dialog?: boolean;
28
27
  modal?: boolean;
29
28
  }
30
29
  export interface MenuContentProps extends ComponentProps<PropsWithoutRef<"div">>, AccentColorProps, MenuVariantProps {
package/dist/blocks.js CHANGED
@@ -196,7 +196,8 @@ const ButtonGroup = (props) => {
196
196
  variant = "solid",
197
197
  size: size2 = "md",
198
198
  radius = providerContext.radius,
199
- accentColor = providerContext.accentColor
199
+ accentColor = providerContext.accentColor,
200
+ ...rest
200
201
  } = props;
201
202
  const value = useMemo(
202
203
  () => ({
@@ -207,7 +208,7 @@ const ButtonGroup = (props) => {
207
208
  }),
208
209
  [accentColor, radius, size2, variant]
209
210
  );
210
- return /* @__PURE__ */ jsx(ButtonGroupContext.Provider, { value, children });
211
+ return /* @__PURE__ */ jsx("div", { ...rest, children: /* @__PURE__ */ jsx(ButtonGroupContext.Provider, { value, children }) });
211
212
  };
212
213
  ButtonGroup.displayName = "Buttons";
213
214
  const useButtonGroup = () => useContext(ButtonGroupContext);