@moontra/moonui-pro 2.25.16 → 2.25.18
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.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.global.js +20 -20
- package/dist/index.global.js.map +1 -1
- package/dist/index.mjs +30 -27
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1725,6 +1725,32 @@ var require_core = __commonJS({
|
|
|
1725
1725
|
highlight.default = highlight;
|
|
1726
1726
|
}
|
|
1727
1727
|
});
|
|
1728
|
+
|
|
1729
|
+
// #style-inject:#style-inject
|
|
1730
|
+
function styleInject(css2, { insertAt } = {}) {
|
|
1731
|
+
if (!css2 || typeof document === "undefined")
|
|
1732
|
+
return;
|
|
1733
|
+
const head = document.head || document.getElementsByTagName("head")[0];
|
|
1734
|
+
const style2 = document.createElement("style");
|
|
1735
|
+
style2.type = "text/css";
|
|
1736
|
+
if (insertAt === "top") {
|
|
1737
|
+
if (head.firstChild) {
|
|
1738
|
+
head.insertBefore(style2, head.firstChild);
|
|
1739
|
+
} else {
|
|
1740
|
+
head.appendChild(style2);
|
|
1741
|
+
}
|
|
1742
|
+
} else {
|
|
1743
|
+
head.appendChild(style2);
|
|
1744
|
+
}
|
|
1745
|
+
if (style2.styleSheet) {
|
|
1746
|
+
style2.styleSheet.cssText = css2;
|
|
1747
|
+
} else {
|
|
1748
|
+
style2.appendChild(document.createTextNode(css2));
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
// src/styles/components.css
|
|
1753
|
+
styleInject(".moonui-pro-sidebar {\n isolation: isolate;\n}\n.moonui-pro-navbar {\n isolation: isolate;\n}\n");
|
|
1728
1754
|
function cn(...inputs) {
|
|
1729
1755
|
return twMerge(clsx(inputs));
|
|
1730
1756
|
}
|
|
@@ -58088,29 +58114,6 @@ var SlashCommandsExtension = Extension.create({
|
|
|
58088
58114
|
}
|
|
58089
58115
|
});
|
|
58090
58116
|
|
|
58091
|
-
// #style-inject:#style-inject
|
|
58092
|
-
function styleInject(css2, { insertAt } = {}) {
|
|
58093
|
-
if (!css2 || typeof document === "undefined")
|
|
58094
|
-
return;
|
|
58095
|
-
const head = document.head || document.getElementsByTagName("head")[0];
|
|
58096
|
-
const style2 = document.createElement("style");
|
|
58097
|
-
style2.type = "text/css";
|
|
58098
|
-
if (insertAt === "top") {
|
|
58099
|
-
if (head.firstChild) {
|
|
58100
|
-
head.insertBefore(style2, head.firstChild);
|
|
58101
|
-
} else {
|
|
58102
|
-
head.appendChild(style2);
|
|
58103
|
-
}
|
|
58104
|
-
} else {
|
|
58105
|
-
head.appendChild(style2);
|
|
58106
|
-
}
|
|
58107
|
-
if (style2.styleSheet) {
|
|
58108
|
-
style2.styleSheet.cssText = css2;
|
|
58109
|
-
} else {
|
|
58110
|
-
style2.appendChild(document.createTextNode(css2));
|
|
58111
|
-
}
|
|
58112
|
-
}
|
|
58113
|
-
|
|
58114
58117
|
// src/components/rich-text-editor/slash-commands.css
|
|
58115
58118
|
styleInject(".slash-commands-menu {\n border-radius: var(--radius);\n border-width: 1px;\n --tw-border-opacity: 1;\n border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));\n --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.slash-commands-menu:is(.dark *) {\n --tw-border-opacity: 1;\n border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));\n --tw-bg-opacity: 1;\n background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));\n}\n.slash-commands-menu {\n max-height: 20rem;\n min-width: 280px;\n overflow-y: auto;\n padding: 0.5rem;\n}\n.slash-command-item {\n display: flex;\n cursor: pointer;\n align-items: center;\n gap: 0.75rem;\n border-radius: calc(var(--radius) - 2px);\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n transition-property:\n color,\n background-color,\n border-color,\n text-decoration-color,\n fill,\n stroke;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.slash-command-item:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));\n}\n.slash-command-item:hover:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));\n}\n.slash-command-item.selected {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));\n}\n.slash-command-item.selected:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));\n}\n.slash-command-item svg {\n height: 1rem;\n width: 1rem;\n --tw-text-opacity: 1;\n color: rgb(107 114 128 / var(--tw-text-opacity, 1));\n}\n.slash-command-item svg:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgb(156 163 175 / var(--tw-text-opacity, 1));\n}\n.slash-command-item > div {\n flex: 1 1 0%;\n}\n.slash-command-item .command-name {\n font-size: 0.875rem;\n line-height: 1.25rem;\n font-weight: 500;\n --tw-text-opacity: 1;\n color: rgb(17 24 39 / var(--tw-text-opacity, 1));\n}\n.slash-command-item .command-name:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgb(243 244 246 / var(--tw-text-opacity, 1));\n}\n.slash-command-item .command-description {\n margin-top: 0.125rem;\n font-size: 0.75rem;\n line-height: 1rem;\n --tw-text-opacity: 1;\n color: rgb(107 114 128 / var(--tw-text-opacity, 1));\n}\n.slash-command-item .command-description:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgb(156 163 175 / var(--tw-text-opacity, 1));\n}\n.dark .slash-commands-menu {\n box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);\n}\n");
|
|
58116
58119
|
|
|
@@ -75007,7 +75010,7 @@ function SidebarInternal({
|
|
|
75007
75010
|
] });
|
|
75008
75011
|
});
|
|
75009
75012
|
const sidebarClasses = cn(
|
|
75010
|
-
"moonui-pro flex h-full flex-col bg-background border-r",
|
|
75013
|
+
"moonui-pro-sidebar flex h-full flex-col bg-background border-r",
|
|
75011
75014
|
glassmorphism && "bg-background/80 backdrop-blur-xl border-white/10",
|
|
75012
75015
|
collapsed && !isMobile && "w-16",
|
|
75013
75016
|
!collapsed && !isMobile && "w-64",
|
|
@@ -75035,7 +75038,7 @@ function SidebarInternal({
|
|
|
75035
75038
|
children: /* @__PURE__ */ jsx(Menu, { className: "h-5 w-5" })
|
|
75036
75039
|
}
|
|
75037
75040
|
),
|
|
75038
|
-
/* @__PURE__ */ jsx(Sheet, { open: isOpen, onOpenChange: setIsOpen, children: /* @__PURE__ */ jsx(SheetContent, { side: "left", className: "w-80 p-0", children: /* @__PURE__ */ jsxs("div", { className: cn(sidebarClasses, "
|
|
75041
|
+
/* @__PURE__ */ jsx(Sheet, { open: isOpen, onOpenChange: setIsOpen, children: /* @__PURE__ */ jsx(SheetContent, { side: "left", className: "w-80 p-0", children: /* @__PURE__ */ jsxs("div", { className: cn(sidebarClasses, "h-full overflow-y-auto"), children: [
|
|
75039
75042
|
animatedBackground && /* @__PURE__ */ jsx(
|
|
75040
75043
|
motion.div,
|
|
75041
75044
|
{
|
|
@@ -75061,7 +75064,7 @@ function SidebarInternal({
|
|
|
75061
75064
|
] }) }) })
|
|
75062
75065
|
] });
|
|
75063
75066
|
}
|
|
75064
|
-
return /* @__PURE__ */ jsxs("aside", { className: cn(sidebarClasses, "
|
|
75067
|
+
return /* @__PURE__ */ jsxs("aside", { className: cn(sidebarClasses, "hidden md:flex"), children: [
|
|
75065
75068
|
animatedBackground && /* @__PURE__ */ jsx(
|
|
75066
75069
|
motion.div,
|
|
75067
75070
|
{
|
|
@@ -75340,7 +75343,7 @@ function NavbarInternal({
|
|
|
75340
75343
|
className
|
|
75341
75344
|
);
|
|
75342
75345
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
75343
|
-
/* @__PURE__ */ jsxs("nav", { ref: navRef, className: navClasses, children: [
|
|
75346
|
+
/* @__PURE__ */ jsxs("nav", { ref: navRef, className: cn("moonui-pro-navbar", navClasses), children: [
|
|
75344
75347
|
/* @__PURE__ */ jsxs("div", { className: cn(
|
|
75345
75348
|
"flex items-center",
|
|
75346
75349
|
getHeight(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moontra/moonui-pro",
|
|
3
|
-
"version": "2.25.
|
|
3
|
+
"version": "2.25.18",
|
|
4
4
|
"description": "Premium React components for MoonUI - Advanced UI library with 50+ pro components including performance, interactive, and gesture components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.mjs",
|