@firecms/ui 3.0.0-canary.147 → 3.0.0-canary.149
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/components/Button.d.ts +1 -1
- package/dist/components/Tabs.d.ts +4 -2
- package/dist/index.es.js +14 -6
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +14 -6
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Button.tsx +12 -3
- package/src/components/IconButton.tsx +1 -1
- package/src/components/MultiSelect.tsx +2 -1
- package/src/components/Tabs.tsx +8 -3
package/dist/index.umd.js
CHANGED
@@ -596,10 +596,14 @@
|
|
596
596
|
"border border-secondary text-secondary hover:text-secondary hover:bg-secondary-bg": variant === "outlined" && color === "secondary" && !disabled,
|
597
597
|
"border border-red-500 text-red-500 hover:text-red-500 hover:bg-red-500 hover:text-white": variant === "outlined" && color === "error" && !disabled,
|
598
598
|
"border border-surface-accent-400 text-text-primary hover:text-text-primary dark:text-text-primary-dark hover:bg-surface-accent-200": variant === "outlined" && color === "text" && !disabled,
|
599
|
+
// Neutral Variants
|
600
|
+
"border border-transparent bg-surface-100 hover:bg-surface-accent-200 text-text-primary dark:bg-surface-800 dark:hover:bg-surface-accent-700 dark:text-white": variant === "neutral" && (color === "primary" || color === "text") && !disabled,
|
601
|
+
"border border-transparent bg-surface-100 hover:bg-surface-accent-200 text-text-secondary dark:bg-surface-800 dark:hover:bg-surface-accent-700 dark:text-white": variant === "neutral" && color === "secondary" && !disabled,
|
602
|
+
"border border-transparent bg-surface-100 hover:bg-surface-accent-200 text-error dark:bg-surface-800 dark:hover:bg-surface-accent-700 dark:text-error": variant === "neutral" && color === "error" && !disabled,
|
599
603
|
// Disabled states for all variants
|
600
604
|
"border border-transparent opacity-50": variant === "text" && disabled,
|
601
605
|
"border border-surface-500 opacity-50": variant === "outlined" && disabled,
|
602
|
-
"border border-surface-500 bg-surface-500 opacity-50": variant === "filled" && disabled
|
606
|
+
"border border-surface-500 bg-surface-500 opacity-50": (variant === "filled" || variant === "neutral") && disabled
|
603
607
|
});
|
604
608
|
const sizeClasses2 = cls(
|
605
609
|
{
|
@@ -13674,7 +13678,7 @@
|
|
13674
13678
|
}
|
13675
13679
|
);
|
13676
13680
|
}
|
13677
|
-
const buttonClasses = "hover:bg-surface-accent-200 hover:bg-opacity-75 dark:hover:bg-surface-accent-800";
|
13681
|
+
const buttonClasses = "hover:bg-surface-accent-200 hover:bg-opacity-75 dark:hover:bg-surface-accent-800 hover:scale-110 transition-transform";
|
13678
13682
|
const baseClasses = "inline-flex items-center justify-center p-2 text-sm font-medium focus:outline-none transition-colors ease-in-out duration-150";
|
13679
13683
|
const colorClasses$1 = "text-surface-accent-600 visited:text-surface-accent-600 dark:text-surface-accent-300 dark:visited:text-surface-300";
|
13680
13684
|
const sizeClasses = {
|
@@ -14846,6 +14850,7 @@
|
|
14846
14850
|
} else {
|
14847
14851
|
updateValues(allValues);
|
14848
14852
|
}
|
14853
|
+
onPopoverOpenChange(false);
|
14849
14854
|
};
|
14850
14855
|
useInjectStyles("MultiSelect", `
|
14851
14856
|
[cmdk-group] {
|
@@ -14964,7 +14969,7 @@
|
|
14964
14969
|
/* @__PURE__ */ jsxRuntime.jsx(
|
14965
14970
|
cmdk.Command.Input,
|
14966
14971
|
{
|
14967
|
-
className: cls(focusedDisabled, "bg-transparent outline-none flex-1 h-full w-full m-4 flex-grow"),
|
14972
|
+
className: cls(focusedDisabled, "bg-transparent outline-none flex-1 h-full w-full m-4 flex-grow "),
|
14968
14973
|
placeholder: "Search...",
|
14969
14974
|
onKeyDown: handleInputKeyDown
|
14970
14975
|
}
|
@@ -16045,16 +16050,18 @@
|
|
16045
16050
|
value,
|
16046
16051
|
onValueChange,
|
16047
16052
|
className,
|
16053
|
+
innerClassName,
|
16048
16054
|
children
|
16049
16055
|
}) {
|
16050
|
-
return /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.Root, { value, onValueChange, children: /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.List, { className: cls(
|
16056
|
+
return /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.Root, { value, onValueChange, className, children: /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.List, { className: cls(
|
16051
16057
|
"flex text-sm font-medium text-center text-surface-accent-800 dark:text-white max-w-full overflow-auto no-scrollbar",
|
16052
|
-
|
16058
|
+
innerClassName
|
16053
16059
|
), children }) });
|
16054
16060
|
}
|
16055
16061
|
function Tab({
|
16056
16062
|
value,
|
16057
16063
|
className,
|
16064
|
+
innerClassName,
|
16058
16065
|
children,
|
16059
16066
|
disabled
|
16060
16067
|
}) {
|
@@ -16077,7 +16084,8 @@
|
|
16077
16084
|
),
|
16078
16085
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cls(
|
16079
16086
|
"uppercase inline-block p-2 px-4 m-2 rounded",
|
16080
|
-
"hover:bg-surface-accent-200 hover:bg-opacity-75 dark:hover:bg-surface-accent-800"
|
16087
|
+
"hover:bg-surface-accent-200 hover:bg-opacity-75 dark:hover:bg-surface-accent-800",
|
16088
|
+
innerClassName
|
16081
16089
|
), children })
|
16082
16090
|
}
|
16083
16091
|
);
|