@vantageos/mosaic-blocks 0.4.3-alpha → 0.4.4-alpha
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/index.cjs +63 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +85 -2
- package/dist/index.d.ts +85 -2
- package/dist/index.js +60 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -46,7 +46,7 @@ function _interopNamespace(e) {
|
|
|
46
46
|
var React27__namespace = /*#__PURE__*/_interopNamespace(React27);
|
|
47
47
|
|
|
48
48
|
// src/version.ts
|
|
49
|
-
var version = "0.4.
|
|
49
|
+
var version = "0.4.4-alpha";
|
|
50
50
|
function Placeholder({ label = "mosaic-blocks placeholder" }) {
|
|
51
51
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-mosaic-block": "placeholder", children: label });
|
|
52
52
|
}
|
|
@@ -1677,6 +1677,63 @@ MosaicTextarea.displayName = "MosaicTextarea";
|
|
|
1677
1677
|
function cn26(...classes) {
|
|
1678
1678
|
return classes.filter(Boolean).join(" ");
|
|
1679
1679
|
}
|
|
1680
|
+
var CONTENT_CLASS_NAME = cn26(
|
|
1681
|
+
"z-50 max-w-xs overflow-hidden rounded-md",
|
|
1682
|
+
"border border-border bg-foreground px-3 py-1.5",
|
|
1683
|
+
"text-xs text-background shadow-md",
|
|
1684
|
+
"origin-[var(--transform-origin)]",
|
|
1685
|
+
"transition-[transform,scale,opacity]",
|
|
1686
|
+
"data-[open]:scale-100 data-[open]:opacity-100",
|
|
1687
|
+
"data-[ending-style]:scale-95 data-[ending-style]:opacity-0",
|
|
1688
|
+
"data-[starting-style]:scale-95 data-[starting-style]:opacity-0"
|
|
1689
|
+
);
|
|
1690
|
+
function MosaicTooltipProvider({
|
|
1691
|
+
children,
|
|
1692
|
+
delay = 600,
|
|
1693
|
+
closeDelay
|
|
1694
|
+
}) {
|
|
1695
|
+
return /* @__PURE__ */ jsxRuntime.jsx(tooltip.Tooltip.Provider, { delay, closeDelay, children });
|
|
1696
|
+
}
|
|
1697
|
+
MosaicTooltipProvider.displayName = "MosaicTooltipProvider";
|
|
1698
|
+
function MosaicTooltipRoot({
|
|
1699
|
+
children,
|
|
1700
|
+
defaultOpen,
|
|
1701
|
+
open,
|
|
1702
|
+
onOpenChange
|
|
1703
|
+
}) {
|
|
1704
|
+
return /* @__PURE__ */ jsxRuntime.jsx(tooltip.Tooltip.Root, { defaultOpen, open, onOpenChange, children });
|
|
1705
|
+
}
|
|
1706
|
+
MosaicTooltipRoot.displayName = "MosaicTooltipRoot";
|
|
1707
|
+
function MosaicTooltipTrigger({
|
|
1708
|
+
children,
|
|
1709
|
+
asChild = false,
|
|
1710
|
+
className
|
|
1711
|
+
}) {
|
|
1712
|
+
if (asChild) {
|
|
1713
|
+
return /* @__PURE__ */ jsxRuntime.jsx(tooltip.Tooltip.Trigger, { "data-slot": "tooltip-trigger", className, render: children });
|
|
1714
|
+
}
|
|
1715
|
+
return /* @__PURE__ */ jsxRuntime.jsx(tooltip.Tooltip.Trigger, { "data-slot": "tooltip-trigger", className, children });
|
|
1716
|
+
}
|
|
1717
|
+
MosaicTooltipTrigger.displayName = "MosaicTooltipTrigger";
|
|
1718
|
+
function MosaicTooltipContent({
|
|
1719
|
+
children,
|
|
1720
|
+
side = "top",
|
|
1721
|
+
align = "center",
|
|
1722
|
+
sideOffset = 6,
|
|
1723
|
+
hidden,
|
|
1724
|
+
className
|
|
1725
|
+
}) {
|
|
1726
|
+
return /* @__PURE__ */ jsxRuntime.jsx(tooltip.Tooltip.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(tooltip.Tooltip.Positioner, { side, align, sideOffset, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1727
|
+
tooltip.Tooltip.Popup,
|
|
1728
|
+
{
|
|
1729
|
+
"data-slot": "tooltip-content",
|
|
1730
|
+
hidden,
|
|
1731
|
+
className: cn26(CONTENT_CLASS_NAME, className),
|
|
1732
|
+
children
|
|
1733
|
+
}
|
|
1734
|
+
) }) });
|
|
1735
|
+
}
|
|
1736
|
+
MosaicTooltipContent.displayName = "MosaicTooltipContent";
|
|
1680
1737
|
function MosaicTooltip({
|
|
1681
1738
|
children,
|
|
1682
1739
|
content,
|
|
@@ -1691,17 +1748,7 @@ function MosaicTooltip({
|
|
|
1691
1748
|
tooltip.Tooltip.Popup,
|
|
1692
1749
|
{
|
|
1693
1750
|
"data-slot": "tooltip-content",
|
|
1694
|
-
className: cn26(
|
|
1695
|
-
"z-50 max-w-xs overflow-hidden rounded-md",
|
|
1696
|
-
"border border-border bg-foreground px-3 py-1.5",
|
|
1697
|
-
"text-xs text-background shadow-md",
|
|
1698
|
-
"origin-[var(--transform-origin)]",
|
|
1699
|
-
"transition-[transform,scale,opacity]",
|
|
1700
|
-
"data-[open]:scale-100 data-[open]:opacity-100",
|
|
1701
|
-
"data-[ending-style]:scale-95 data-[ending-style]:opacity-0",
|
|
1702
|
-
"data-[starting-style]:scale-95 data-[starting-style]:opacity-0",
|
|
1703
|
-
className
|
|
1704
|
-
),
|
|
1751
|
+
className: cn26(CONTENT_CLASS_NAME, className),
|
|
1705
1752
|
children: content
|
|
1706
1753
|
}
|
|
1707
1754
|
) }) })
|
|
@@ -10793,6 +10840,10 @@ exports.MosaicTextarea = MosaicTextarea;
|
|
|
10793
10840
|
exports.MosaicThemeProvider = MosaicThemeProvider;
|
|
10794
10841
|
exports.MosaicThemeToggle = MosaicThemeToggle;
|
|
10795
10842
|
exports.MosaicTooltip = MosaicTooltip;
|
|
10843
|
+
exports.MosaicTooltipContent = MosaicTooltipContent;
|
|
10844
|
+
exports.MosaicTooltipProvider = MosaicTooltipProvider;
|
|
10845
|
+
exports.MosaicTooltipRoot = MosaicTooltipRoot;
|
|
10846
|
+
exports.MosaicTooltipTrigger = MosaicTooltipTrigger;
|
|
10796
10847
|
exports.MosaicUserButton = MosaicUserButton;
|
|
10797
10848
|
exports.Placeholder = Placeholder;
|
|
10798
10849
|
exports.badgeVariants = badgeVariants;
|