@overmap-ai/blocks 1.0.31-tailwind-components.36 → 1.0.31-tailwind-components.37
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/blocks.js +28 -11
- package/dist/blocks.js.map +1 -1
- package/dist/blocks.umd.cjs +28 -11
- package/dist/blocks.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/blocks.js
CHANGED
|
@@ -169,14 +169,18 @@ const dialogContent = cva(
|
|
|
169
169
|
const AlertDialogContent = forwardRef((props, ref) => {
|
|
170
170
|
const { radius } = useProvider();
|
|
171
171
|
const { className, size: size2, container, ...rest } = props;
|
|
172
|
-
return /* @__PURE__ */
|
|
173
|
-
RadixAlertDialog.
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
172
|
+
return /* @__PURE__ */ jsxs(RadixAlertDialog.Portal, { container, children: [
|
|
173
|
+
/* @__PURE__ */ jsx(RadixAlertDialog.Overlay, { className: dialogOverlay({}), "data-floating-content": "" }),
|
|
174
|
+
/* @__PURE__ */ jsx(
|
|
175
|
+
RadixAlertDialog.Content,
|
|
176
|
+
{
|
|
177
|
+
className: cx(className, dialogContent({ size: size2 }), radiusCva({ radius, maxLarge: true })),
|
|
178
|
+
ref,
|
|
179
|
+
"data-floating-content": "",
|
|
180
|
+
...rest
|
|
181
|
+
}
|
|
182
|
+
)
|
|
183
|
+
] });
|
|
180
184
|
});
|
|
181
185
|
AlertDialogContent.displayName = "AlertDialogContent";
|
|
182
186
|
const AlertDialogContext = createContext(() => {
|
|
@@ -997,6 +1001,7 @@ const DialogContent = forwardRef((props, ref) => {
|
|
|
997
1001
|
{
|
|
998
1002
|
className: cx(className, dialogContent({ size: size2 }), radiusCva({ radius, maxLarge: true })),
|
|
999
1003
|
ref,
|
|
1004
|
+
"data-floating-content": "",
|
|
1000
1005
|
...rest,
|
|
1001
1006
|
children: [
|
|
1002
1007
|
/* @__PURE__ */ jsxs("div", { className: "flex h-max w-full justify-between", children: [
|
|
@@ -1011,7 +1016,15 @@ const DialogContent = forwardRef((props, ref) => {
|
|
|
1011
1016
|
DialogContent.displayName = "DialogContent";
|
|
1012
1017
|
const DialogOverlay = forwardRef((props, ref) => {
|
|
1013
1018
|
const { className, container, ...rest } = props;
|
|
1014
|
-
return /* @__PURE__ */ jsx(RadixDialog.Portal, { container, children: /* @__PURE__ */ jsx(
|
|
1019
|
+
return /* @__PURE__ */ jsx(RadixDialog.Portal, { container, children: /* @__PURE__ */ jsx(
|
|
1020
|
+
RadixDialog.Overlay,
|
|
1021
|
+
{
|
|
1022
|
+
ref,
|
|
1023
|
+
className: cx(className, dialogOverlay({})),
|
|
1024
|
+
"data-floating-content": "",
|
|
1025
|
+
...rest
|
|
1026
|
+
}
|
|
1027
|
+
) });
|
|
1015
1028
|
});
|
|
1016
1029
|
DialogOverlay.displayName = "DialogOverlay";
|
|
1017
1030
|
const DialogRoot = (props) => {
|
|
@@ -1175,6 +1188,7 @@ const HoverCardContent = forwardRef((props, ref) => {
|
|
|
1175
1188
|
side,
|
|
1176
1189
|
"data-accent-color": accentColor,
|
|
1177
1190
|
sideOffset,
|
|
1191
|
+
"data-floating-content": "",
|
|
1178
1192
|
...rest
|
|
1179
1193
|
}
|
|
1180
1194
|
) });
|
|
@@ -2021,7 +2035,7 @@ const MenuContent = memo(
|
|
|
2021
2035
|
visibility: ((_a2 = middlewareData.hide) == null ? void 0 : _a2.referenceHidden) ? "hidden" : "visible"
|
|
2022
2036
|
};
|
|
2023
2037
|
}, [floatingStyles, (_a = middlewareData.hide) == null ? void 0 : _a.referenceHidden]);
|
|
2024
|
-
return /* @__PURE__ */ jsx(FloatingNode, { id: nodeId, children: open && /* @__PURE__ */ jsx(FloatingPortal, { children: /* @__PURE__ */ jsx(FloatingOverlay, { className:
|
|
2038
|
+
return /* @__PURE__ */ jsx(FloatingNode, { id: nodeId, children: open && /* @__PURE__ */ jsx(FloatingPortal, { children: /* @__PURE__ */ jsx(FloatingOverlay, { className: menuOverlay({ modal }), lockScroll: true, "data-floating": "", children: /* @__PURE__ */ jsx(FloatingFocusManager, { context, children: /* @__PURE__ */ jsx(FloatingList, { elementsRef, children: /* @__PURE__ */ jsx(
|
|
2025
2039
|
MenuContentContext.Provider,
|
|
2026
2040
|
{
|
|
2027
2041
|
value: {
|
|
@@ -2044,13 +2058,13 @@ const MenuContent = memo(
|
|
|
2044
2058
|
ref: refs.setFloating,
|
|
2045
2059
|
tabIndex: -1,
|
|
2046
2060
|
style: computedFloatingStyles,
|
|
2061
|
+
"data-floating": "",
|
|
2047
2062
|
...getFloatingProps(),
|
|
2048
2063
|
children: /* @__PURE__ */ jsx(
|
|
2049
2064
|
"div",
|
|
2050
2065
|
{
|
|
2051
2066
|
className: cx(
|
|
2052
2067
|
className,
|
|
2053
|
-
"overmap-menu-content",
|
|
2054
2068
|
menuContent({ size: size2 }),
|
|
2055
2069
|
floating({ side, shadow: "3" }),
|
|
2056
2070
|
radiusCva({ radius, maxLarge: true }),
|
|
@@ -2849,6 +2863,7 @@ const PopoverContent = forwardRef((props, ref) => {
|
|
|
2849
2863
|
ref,
|
|
2850
2864
|
sideOffset,
|
|
2851
2865
|
"data-accent-color": accentColor,
|
|
2866
|
+
"data-floating-content": "",
|
|
2852
2867
|
...rest
|
|
2853
2868
|
}
|
|
2854
2869
|
) });
|
|
@@ -3850,6 +3865,7 @@ const _Toast = forwardRef(function Toast2(props, ref) {
|
|
|
3850
3865
|
type: sensitivity,
|
|
3851
3866
|
onOpenChange: handleOpenChange,
|
|
3852
3867
|
"data-accent-color": accentColor,
|
|
3868
|
+
"data-floating-content": "",
|
|
3853
3869
|
...rest,
|
|
3854
3870
|
children: [
|
|
3855
3871
|
/* @__PURE__ */ jsxs("div", { className: "flex grow items-center gap-3", children: [
|
|
@@ -4145,6 +4161,7 @@ const TooltipContent = forwardRef((props, ref) => {
|
|
|
4145
4161
|
className: cx(className, tooltipContent({ size: size2, side }), radiusCva({ radius, maxLarge: false })),
|
|
4146
4162
|
ref,
|
|
4147
4163
|
sideOffset,
|
|
4164
|
+
"data-floating-content": "",
|
|
4148
4165
|
...rest,
|
|
4149
4166
|
children
|
|
4150
4167
|
}
|