@moontra/moonui-pro 2.28.4 → 2.28.5
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.d.ts +12 -6
- package/dist/index.global.js +68 -68
- package/dist/index.global.js.map +1 -1
- package/dist/index.mjs +31 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -85703,6 +85703,7 @@ function WidgetBase({
|
|
|
85703
85703
|
animate: animate5 = true,
|
|
85704
85704
|
rounded = "lg",
|
|
85705
85705
|
shadow = "sm",
|
|
85706
|
+
gradientDirection = "to-br",
|
|
85706
85707
|
overlay
|
|
85707
85708
|
}) {
|
|
85708
85709
|
const colorSchemeClasses = {
|
|
@@ -85738,13 +85739,31 @@ function WidgetBase({
|
|
|
85738
85739
|
waves: "radial-gradient(ellipse at center, transparent 20%, currentColor 21%, currentColor 25%, transparent 26%)",
|
|
85739
85740
|
none: "none"
|
|
85740
85741
|
};
|
|
85742
|
+
const gradientDirectionClasses = {
|
|
85743
|
+
"to-t": "bg-gradient-to-t",
|
|
85744
|
+
// top
|
|
85745
|
+
"to-tr": "bg-gradient-to-tr",
|
|
85746
|
+
// top-right
|
|
85747
|
+
"to-r": "bg-gradient-to-r",
|
|
85748
|
+
// right
|
|
85749
|
+
"to-br": "bg-gradient-to-br",
|
|
85750
|
+
// bottom-right (default)
|
|
85751
|
+
"to-b": "bg-gradient-to-b",
|
|
85752
|
+
// bottom
|
|
85753
|
+
"to-bl": "bg-gradient-to-bl",
|
|
85754
|
+
// bottom-left
|
|
85755
|
+
"to-l": "bg-gradient-to-l",
|
|
85756
|
+
// left
|
|
85757
|
+
"to-tl": "bg-gradient-to-tl"
|
|
85758
|
+
// top-left
|
|
85759
|
+
};
|
|
85741
85760
|
const variantClasses = {
|
|
85742
85761
|
default: "bg-card border",
|
|
85743
85762
|
minimal: "border-0 shadow-none bg-card/50",
|
|
85744
85763
|
glass: "bg-background/60 backdrop-blur-md border-white/10",
|
|
85745
85764
|
bordered: "border-2 bg-card",
|
|
85746
|
-
gradient:
|
|
85747
|
-
colored:
|
|
85765
|
+
gradient: `${gradientDirectionClasses[gradientDirection]} ${colorSchemeClasses[colorScheme]}`,
|
|
85766
|
+
colored: `${gradientDirectionClasses[gradientDirection]} ${colorSchemeClasses[colorScheme]} border-2`,
|
|
85748
85767
|
overlay: "bg-card border relative overflow-hidden",
|
|
85749
85768
|
floating: "bg-card border-0 shadow-2xl hover:shadow-3xl transition-shadow duration-300"
|
|
85750
85769
|
};
|
|
@@ -85802,6 +85821,7 @@ function KPIWidget({
|
|
|
85802
85821
|
title,
|
|
85803
85822
|
variant = "default",
|
|
85804
85823
|
backgroundVariant,
|
|
85824
|
+
gradientDirection,
|
|
85805
85825
|
orientation = "horizontal",
|
|
85806
85826
|
showTrend = true,
|
|
85807
85827
|
showTarget = true,
|
|
@@ -85978,6 +85998,7 @@ function KPIWidget({
|
|
|
85978
85998
|
{
|
|
85979
85999
|
title,
|
|
85980
86000
|
variant: backgroundVariant,
|
|
86001
|
+
gradientDirection,
|
|
85981
86002
|
...widgetProps,
|
|
85982
86003
|
children: /* @__PURE__ */ jsx("div", { className: cn(
|
|
85983
86004
|
"space-y-4",
|
|
@@ -85992,6 +86013,7 @@ function ChartWidget2({
|
|
|
85992
86013
|
type = "line",
|
|
85993
86014
|
variant = "default",
|
|
85994
86015
|
backgroundVariant,
|
|
86016
|
+
gradientDirection,
|
|
85995
86017
|
height = 300,
|
|
85996
86018
|
showLegend = true,
|
|
85997
86019
|
showGrid = true,
|
|
@@ -86293,6 +86315,7 @@ function ChartWidget2({
|
|
|
86293
86315
|
{
|
|
86294
86316
|
title,
|
|
86295
86317
|
variant: backgroundVariant,
|
|
86318
|
+
gradientDirection,
|
|
86296
86319
|
...widgetProps,
|
|
86297
86320
|
children: /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
86298
86321
|
data.total !== void 0 && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
@@ -86326,6 +86349,7 @@ function GaugeWidget({
|
|
|
86326
86349
|
title,
|
|
86327
86350
|
variant = "radial",
|
|
86328
86351
|
backgroundVariant,
|
|
86352
|
+
gradientDirection,
|
|
86329
86353
|
showValue = true,
|
|
86330
86354
|
showTarget = true,
|
|
86331
86355
|
showThresholds = true,
|
|
@@ -86599,6 +86623,7 @@ function GaugeWidget({
|
|
|
86599
86623
|
{
|
|
86600
86624
|
title,
|
|
86601
86625
|
variant: backgroundVariant,
|
|
86626
|
+
gradientDirection,
|
|
86602
86627
|
...widgetProps,
|
|
86603
86628
|
children: /* @__PURE__ */ jsx("div", { className: cn(
|
|
86604
86629
|
"flex flex-wrap items-center justify-center",
|
|
@@ -86613,6 +86638,7 @@ function FunnelWidget({
|
|
|
86613
86638
|
title,
|
|
86614
86639
|
variant = "vertical",
|
|
86615
86640
|
backgroundVariant,
|
|
86641
|
+
gradientDirection,
|
|
86616
86642
|
showValues = true,
|
|
86617
86643
|
showPercentages = true,
|
|
86618
86644
|
showDropoff = true,
|
|
@@ -86927,6 +86953,7 @@ function FunnelWidget({
|
|
|
86927
86953
|
{
|
|
86928
86954
|
title,
|
|
86929
86955
|
variant: backgroundVariant,
|
|
86956
|
+
gradientDirection,
|
|
86930
86957
|
...widgetProps,
|
|
86931
86958
|
children: /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
86932
86959
|
showConversionRate && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between p-3 bg-muted/30 rounded-lg", children: [
|
|
@@ -87313,6 +87340,7 @@ function ServerMonitorWidget({
|
|
|
87313
87340
|
title,
|
|
87314
87341
|
variant = "default",
|
|
87315
87342
|
backgroundVariant,
|
|
87343
|
+
gradientDirection,
|
|
87316
87344
|
showMetrics = true,
|
|
87317
87345
|
showAlerts = true,
|
|
87318
87346
|
showServices = false,
|
|
@@ -87682,6 +87710,7 @@ function ServerMonitorWidget({
|
|
|
87682
87710
|
{
|
|
87683
87711
|
title,
|
|
87684
87712
|
variant: backgroundVariant,
|
|
87713
|
+
gradientDirection,
|
|
87685
87714
|
...widgetProps,
|
|
87686
87715
|
children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", children: renderContent() })
|
|
87687
87716
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moontra/moonui-pro",
|
|
3
|
-
"version": "2.28.
|
|
3
|
+
"version": "2.28.5",
|
|
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",
|