@moontra/moonui-pro 3.3.16 → 3.3.17
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/cdn/index.global.js +26 -26
- package/dist/cdn/index.global.js.map +1 -1
- package/dist/index.mjs +23 -7
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6899,7 +6899,7 @@ var MoonUISelectPro = SelectPrimitive.Root;
|
|
|
6899
6899
|
MoonUISelectPro.displayName = "MoonUISelectPro";
|
|
6900
6900
|
var MoonUISelectGroupPro = SelectPrimitive.Group;
|
|
6901
6901
|
var MoonUISelectValuePro = SelectPrimitive.Value;
|
|
6902
|
-
var MoonUISelectTriggerPro = React71.forwardRef(({ className, children, variant = "standard", size: size4 = "md", error, success, loading, leftIcon, rightIcon, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
6902
|
+
var MoonUISelectTriggerPro = React71.forwardRef(({ className, children, variant = "standard", size: size4 = "md", error, success, loading, leftIcon, rightIcon, clearable, onClear, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
6903
6903
|
SelectPrimitive.Trigger,
|
|
6904
6904
|
{
|
|
6905
6905
|
ref,
|
|
@@ -6917,10 +6917,10 @@ var MoonUISelectTriggerPro = React71.forwardRef(({ className, children, variant
|
|
|
6917
6917
|
size4 === "md" && "h-10 text-sm px-3",
|
|
6918
6918
|
size4 === "lg" && "h-12 text-base px-4",
|
|
6919
6919
|
/* Visual variants */
|
|
6920
|
-
variant === "standard" && "border border-gray-300 dark:border-gray-700 bg-background dark:bg-gray-
|
|
6921
|
-
variant === "outline" && "border border-gray-300 dark:border-gray-700 bg-transparent hover:border-gray-400 dark:hover:border-gray-600 focus-visible:ring-2 focus-visible:ring-primary/30 dark:focus-visible:ring-primary/
|
|
6922
|
-
variant === "ghost" && "border-none bg-gray-100 dark:bg-gray-800 hover:bg-gray-200 dark:hover:bg-gray-700 focus-visible:ring-2 focus-visible:ring-primary/30 dark:focus-visible:ring-primary/
|
|
6923
|
-
variant === "underline" && "border-t-0 border-l-0 border-r-0 border-b border-gray-300 dark:border-gray-600 rounded-none px-0 hover:border-gray-400 dark:hover:border-gray-500 focus-visible:ring-0 focus-visible:border-b-2 focus-visible:border-primary dark:focus-visible:border-primary",
|
|
6920
|
+
variant === "standard" && "border border-gray-300 dark:border-gray-700 bg-background dark:bg-gray-800/80 dark:shadow-inner dark:shadow-gray-950/10 dark:text-gray-200 hover:border-gray-400 dark:hover:border-gray-600 focus-visible:ring-2 focus-visible:ring-primary/30 dark:focus-visible:ring-primary/20 focus-visible:border-primary dark:focus-visible:border-primary/80",
|
|
6921
|
+
variant === "outline" && "border border-gray-300 dark:border-gray-700 bg-transparent dark:text-gray-200 hover:border-gray-400 dark:hover:border-gray-600 focus-visible:ring-2 focus-visible:ring-primary/30 dark:focus-visible:ring-primary/20 focus-visible:border-primary dark:focus-visible:border-primary/80",
|
|
6922
|
+
variant === "ghost" && "border-none bg-gray-100 dark:bg-gray-800 dark:shadow-inner dark:shadow-gray-950/10 dark:text-gray-200 hover:bg-gray-200 dark:hover:bg-gray-700 focus-visible:ring-2 focus-visible:ring-primary/30 dark:focus-visible:ring-primary/20",
|
|
6923
|
+
variant === "underline" && "border-t-0 border-l-0 border-r-0 border-b border-gray-300 dark:border-gray-600 rounded-none px-0 dark:text-gray-200 dark:bg-transparent hover:border-gray-400 dark:hover:border-gray-500 focus-visible:ring-0 focus-visible:border-b-2 focus-visible:border-primary dark:focus-visible:border-primary/80",
|
|
6924
6924
|
className
|
|
6925
6925
|
),
|
|
6926
6926
|
...props,
|
|
@@ -6936,6 +6936,19 @@ var MoonUISelectTriggerPro = React71.forwardRef(({ className, children, variant
|
|
|
6936
6936
|
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground dark:text-gray-400", children: "Loading..." })
|
|
6937
6937
|
] }) : children
|
|
6938
6938
|
] }),
|
|
6939
|
+
!loading && clearable && onClear && /* @__PURE__ */ jsx(
|
|
6940
|
+
"button",
|
|
6941
|
+
{
|
|
6942
|
+
type: "button",
|
|
6943
|
+
onClick: (e) => {
|
|
6944
|
+
e.stopPropagation();
|
|
6945
|
+
onClear();
|
|
6946
|
+
},
|
|
6947
|
+
className: "flex items-center justify-center opacity-60 hover:opacity-100 transition-opacity mr-1",
|
|
6948
|
+
"aria-label": "Clear selection",
|
|
6949
|
+
children: /* @__PURE__ */ jsx(X, { className: "h-3.5 w-3.5" })
|
|
6950
|
+
}
|
|
6951
|
+
),
|
|
6939
6952
|
!loading && /* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: rightIcon ? /* @__PURE__ */ jsx("span", { className: "opacity-60", children: rightIcon }) : /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4 opacity-60 transition-transform duration-200 ease-out group-data-[state=open]:rotate-180" }) })
|
|
6940
6953
|
]
|
|
6941
6954
|
}
|
|
@@ -6995,7 +7008,7 @@ var MoonUISelectContentPro = React71.forwardRef(({ className, children, position
|
|
|
6995
7008
|
[
|
|
6996
7009
|
"relative z-50 max-h-96 min-w-[8rem] overflow-hidden",
|
|
6997
7010
|
"rounded-md border border-gray-200 dark:border-gray-700",
|
|
6998
|
-
"bg-
|
|
7011
|
+
"bg-background dark:bg-gray-800/80 backdrop-blur-sm text-foreground dark:text-gray-200",
|
|
6999
7012
|
"shadow-lg dark:shadow-gray-900/20",
|
|
7000
7013
|
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
7001
7014
|
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
@@ -7070,7 +7083,10 @@ var MoonUISelectItemPro = React71.forwardRef(({ className, children, variant = "
|
|
|
7070
7083
|
{
|
|
7071
7084
|
ref,
|
|
7072
7085
|
className: cn(
|
|
7073
|
-
"
|
|
7086
|
+
"moonui-theme",
|
|
7087
|
+
"relative flex w-full cursor-default select-none items-center rounded-sm outline-none",
|
|
7088
|
+
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
7089
|
+
"transition-all duration-150",
|
|
7074
7090
|
/* Size variants */
|
|
7075
7091
|
size4 === "sm" && "py-1 pl-7 pr-2 text-xs",
|
|
7076
7092
|
size4 === "md" && "py-1.5 pl-8 pr-2 text-sm",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moontra/moonui-pro",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.17",
|
|
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",
|