@moontra/moonui-pro 2.2.7 → 2.2.8
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.mjs +2 -3
- package/package.json +1 -1
- package/src/components/ui/alert.tsx +2 -3
package/dist/index.mjs
CHANGED
|
@@ -1829,7 +1829,7 @@ var MoonUIalertVariantsPro = cva(
|
|
|
1829
1829
|
);
|
|
1830
1830
|
var MoonUIAlertPro = t.forwardRef(
|
|
1831
1831
|
({ className, variant = "default", size, radius, hideIcon = false, closable = false, onClose, children, ...props }, ref) => {
|
|
1832
|
-
const
|
|
1832
|
+
const MoonUIIconPro = t.useMemo(() => {
|
|
1833
1833
|
switch (variant) {
|
|
1834
1834
|
case "success":
|
|
1835
1835
|
return Check;
|
|
@@ -1851,7 +1851,7 @@ var MoonUIAlertPro = t.forwardRef(
|
|
|
1851
1851
|
className: cn(MoonUIalertVariantsPro({ variant, size, radius, withClose: closable }), className),
|
|
1852
1852
|
...props,
|
|
1853
1853
|
children: [
|
|
1854
|
-
!hideIcon && /* @__PURE__ */ jsx(
|
|
1854
|
+
!hideIcon && /* @__PURE__ */ jsx(MoonUIIconPro, { className: "h-5 w-5" }),
|
|
1855
1855
|
/* @__PURE__ */ jsx("div", { className: "flex-1", children }),
|
|
1856
1856
|
closable && onClose && /* @__PURE__ */ jsx(
|
|
1857
1857
|
"button",
|
|
@@ -1886,7 +1886,6 @@ var MoonUIAlertDescriptionPro = t.forwardRef(({ className, ...props }, ref) => /
|
|
|
1886
1886
|
}
|
|
1887
1887
|
));
|
|
1888
1888
|
MoonUIAlertDescriptionPro.displayName = "AlertDescriptionPro";
|
|
1889
|
-
MoonUIIconPro;
|
|
1890
1889
|
var MoonUIaspectRatioVariantsPro = cva(
|
|
1891
1890
|
"relative overflow-hidden",
|
|
1892
1891
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moontra/moonui-pro",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.8",
|
|
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",
|
|
@@ -131,12 +131,11 @@ MoonUIAlertDescriptionPro.displayName = "AlertDescriptionPro";
|
|
|
131
131
|
// Internal aliases for Pro component usage
|
|
132
132
|
export const alertVariantsInternal = MoonUIalertVariantsPro
|
|
133
133
|
export const AlertInternal = MoonUIAlertPro
|
|
134
|
-
export const IconInternal = MoonUIIconPro
|
|
135
134
|
export const AlertTitleInternal = MoonUIAlertTitlePro
|
|
136
135
|
export const AlertDescriptionInternal = MoonUIAlertDescriptionPro
|
|
137
136
|
|
|
138
137
|
// Pro exports
|
|
139
|
-
export { MoonUIalertVariantsPro, MoonUIAlertPro,
|
|
138
|
+
export { MoonUIalertVariantsPro, MoonUIAlertPro, MoonUIAlertTitlePro, MoonUIAlertDescriptionPro }
|
|
140
139
|
|
|
141
140
|
// Clean exports (without MoonUI prefix for easier usage)
|
|
142
|
-
export { MoonUIalertVariantsPro as alertVariants, MoonUIAlertPro as Alert,
|
|
141
|
+
export { MoonUIalertVariantsPro as alertVariants, MoonUIAlertPro as Alert, MoonUIAlertTitlePro as AlertTitle, MoonUIAlertDescriptionPro as AlertDescription };
|