@overmap-ai/blocks 1.0.37 → 1.0.38
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/Dialog/Content.d.ts +0 -1
- package/dist/Dialog/index.d.ts +2 -0
- package/dist/blocks.js +6 -10
- package/dist/blocks.js.map +1 -1
- package/dist/blocks.umd.cjs +7 -11
- package/dist/blocks.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/Dialog/Content.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { AlertDialogSize } from '../AlertDialog';
|
|
|
3
3
|
import { CloseDialogWithOptions } from './typings';
|
|
4
4
|
import * as RadixDialog from "@radix-ui/react-dialog";
|
|
5
5
|
export interface DialogContentProps extends Omit<RadixDialog.DialogContentProps, "children"> {
|
|
6
|
-
title: string;
|
|
7
6
|
container?: RadixDialog.DialogPortalProps["container"];
|
|
8
7
|
size?: AlertDialogSize;
|
|
9
8
|
children: ReactNode | ((close: CloseDialogWithOptions) => ReactNode);
|
package/dist/Dialog/index.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ export declare const Dialog: {
|
|
|
8
8
|
Root: (props: import('./typings').DialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
Content: import('react').ForwardRefExoticComponent<import('./Content').DialogContentProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
10
10
|
Overlay: import('react').ForwardRefExoticComponent<import('./Overlay').DialogOverlayProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
11
|
+
Title: import('react').ForwardRefExoticComponent<RadixDialog.DialogTitleProps & import('react').RefAttributes<HTMLHeadingElement>>;
|
|
12
|
+
Description: import('react').ForwardRefExoticComponent<RadixDialog.DialogDescriptionProps & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
11
13
|
Trigger: import('react').ForwardRefExoticComponent<RadixDialog.DialogTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
12
14
|
Close: import('react').ForwardRefExoticComponent<RadixDialog.DialogCloseProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
13
15
|
};
|
package/dist/blocks.js
CHANGED
|
@@ -13,7 +13,6 @@ import { DialogPortal, DialogContent as DialogContent$1, DialogTitle, DialogDesc
|
|
|
13
13
|
import { DayPicker as DayPicker$1 } from "react-day-picker";
|
|
14
14
|
import * as RiIcons from "react-icons/ri";
|
|
15
15
|
import { RiArrowRightSLine, RiArrowLeftSLine, RiArrowDownSLine, RiArrowUpSLine, RiQuestionMark } from "react-icons/ri";
|
|
16
|
-
import { HiX } from "react-icons/hi";
|
|
17
16
|
import * as RadixHoverCard from "@radix-ui/react-hover-card";
|
|
18
17
|
import { CSSTransition } from "react-transition-group";
|
|
19
18
|
import ReactDOM from "react-dom";
|
|
@@ -30,6 +29,7 @@ import * as RadixSlider from "@radix-ui/react-slider";
|
|
|
30
29
|
import * as RadixSwitch from "@radix-ui/react-switch";
|
|
31
30
|
import * as RadixToast from "@radix-ui/react-toast";
|
|
32
31
|
import { ToastProvider as ToastProvider$1, ToastViewport } from "@radix-ui/react-toast";
|
|
32
|
+
import { HiX } from "react-icons/hi";
|
|
33
33
|
import * as Toggle from "@radix-ui/react-toggle";
|
|
34
34
|
import * as RadixTooltip from "@radix-ui/react-tooltip";
|
|
35
35
|
const floating = cva(
|
|
@@ -2028,24 +2028,18 @@ const useCloseDialog = () => {
|
|
|
2028
2028
|
const DialogContent = forwardRef((props, ref) => {
|
|
2029
2029
|
const { radius } = useProvider();
|
|
2030
2030
|
const close = useCloseDialog();
|
|
2031
|
-
const { children,
|
|
2031
|
+
const { children, container, className, size: size2, ...rest } = props;
|
|
2032
2032
|
const computedChildren = useMemo(() => {
|
|
2033
2033
|
return typeof children === "function" ? children(close) : children;
|
|
2034
2034
|
}, [children, close]);
|
|
2035
|
-
return /* @__PURE__ */ jsx(RadixDialog.Portal, { container, children: /* @__PURE__ */
|
|
2035
|
+
return /* @__PURE__ */ jsx(RadixDialog.Portal, { container, children: /* @__PURE__ */ jsx(
|
|
2036
2036
|
RadixDialog.Content,
|
|
2037
2037
|
{
|
|
2038
2038
|
className: cx(dialogContent({ size: size2 }), radiusCva({ radius, maxLarge: true }), className),
|
|
2039
2039
|
ref,
|
|
2040
2040
|
"data-floating-content": "",
|
|
2041
2041
|
...rest,
|
|
2042
|
-
children:
|
|
2043
|
-
/* @__PURE__ */ jsxs("div", { className: "flex h-max w-full justify-between", children: [
|
|
2044
|
-
/* @__PURE__ */ jsx(RadixDialog.Title, { className: "font-medium", children: title }),
|
|
2045
|
-
/* @__PURE__ */ jsx(RadixDialog.Close, { asChild: true, children: /* @__PURE__ */ jsx(IconButton, { accentColor: "base", size: size2, variant: "ghost", children: /* @__PURE__ */ jsx(HiX, {}) }) })
|
|
2046
|
-
] }),
|
|
2047
|
-
computedChildren
|
|
2048
|
-
]
|
|
2042
|
+
children: computedChildren
|
|
2049
2043
|
}
|
|
2050
2044
|
) });
|
|
2051
2045
|
});
|
|
@@ -2108,6 +2102,8 @@ const Dialog = {
|
|
|
2108
2102
|
Root: DialogRoot,
|
|
2109
2103
|
Content: DialogContent,
|
|
2110
2104
|
Overlay: DialogOverlay,
|
|
2105
|
+
Title: RadixDialog.Title,
|
|
2106
|
+
Description: RadixDialog.Description,
|
|
2111
2107
|
Trigger: RadixDialog.Trigger,
|
|
2112
2108
|
Close: RadixDialog.Close
|
|
2113
2109
|
};
|