@firecms/ui 3.0.0-canary.247 → 3.0.0-canary.249
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.es.js +16 -14
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +16 -14
- package/dist/index.umd.js.map +1 -1
- package/dist/styles.d.ts +2 -2
- package/package.json +2 -2
- package/src/components/Button.tsx +3 -1
- package/src/styles.ts +2 -2
package/dist/index.umd.js
CHANGED
@@ -44,8 +44,8 @@
|
|
44
44
|
const fieldBackgroundHoverMixin = "hover:bg-opacity-70 dark:hover:bg-surface-700 dark:hover:bg-opacity-40";
|
45
45
|
const defaultBorderMixin = "border-surface-200 border-opacity-40 dark:border-surface-700 dark:border-opacity-40";
|
46
46
|
const paperMixin = "bg-white rounded-md dark:bg-surface-950 border border-surface-200 border-opacity-40 dark:border-surface-700 dark:border-opacity-40";
|
47
|
-
const cardMixin = "bg-white border border-surface-200 border-opacity-40 dark:border-transparent rounded-md dark:bg-surface-950 dark:border-surface-700 dark:border-opacity-40
|
48
|
-
const cardClickableMixin = "hover:bg-
|
47
|
+
const cardMixin = "bg-white border border-surface-200 border-opacity-40 dark:border-transparent rounded-md dark:bg-surface-950 dark:border-surface-700 dark:border-opacity-40";
|
48
|
+
const cardClickableMixin = "hover:bg-surface-accent-100 dark:hover:bg-surface-accent-800 hover:ring-2 hover:ring-primary cursor-pointer";
|
49
49
|
const cardSelectedMixin = "bg-primary-bg dark:bg-primary-bg bg-opacity-30 dark:bg-opacity-10 ring-1 ring-primary ring-opacity-75";
|
50
50
|
function cls(...classes) {
|
51
51
|
return tailwindMerge.twMerge(clsx.clsx(classes));
|
@@ -799,7 +799,7 @@
|
|
799
799
|
] });
|
800
800
|
};
|
801
801
|
const ButtonInner = React.forwardRef((t0, ref) => {
|
802
|
-
const $ = reactCompilerRuntime.c(
|
802
|
+
const $ = reactCompilerRuntime.c(55);
|
803
803
|
let Component;
|
804
804
|
let children;
|
805
805
|
let className;
|
@@ -966,22 +966,24 @@
|
|
966
966
|
}
|
967
967
|
const t31 = props;
|
968
968
|
let t32;
|
969
|
-
if ($[44] !== children || $[45] !== disabled || $[46] !==
|
970
|
-
t32 = /* @__PURE__ */ jsxRuntime.jsxs("button", { ref: t26, type: t27, onClick: t28, className: t29, disabled, ...t31, children: [
|
969
|
+
if ($[44] !== children || $[45] !== disabled || $[46] !== size || $[47] !== startIcon || $[48] !== t26 || $[49] !== t27 || $[50] !== t28 || $[51] !== t29 || $[52] !== t31 || $[53] !== variant) {
|
970
|
+
t32 = /* @__PURE__ */ jsxRuntime.jsxs("button", { ref: t26, type: t27, onClick: t28, className: t29, disabled, "data-variant": variant, "data-size": size, ...t31, children: [
|
971
971
|
startIcon,
|
972
972
|
children
|
973
973
|
] });
|
974
974
|
$[44] = children;
|
975
975
|
$[45] = disabled;
|
976
|
-
$[46] =
|
977
|
-
$[47] =
|
978
|
-
$[48] =
|
979
|
-
$[49] =
|
980
|
-
$[50] =
|
981
|
-
$[51] =
|
982
|
-
$[52] =
|
983
|
-
|
984
|
-
|
976
|
+
$[46] = size;
|
977
|
+
$[47] = startIcon;
|
978
|
+
$[48] = t26;
|
979
|
+
$[49] = t27;
|
980
|
+
$[50] = t28;
|
981
|
+
$[51] = t29;
|
982
|
+
$[52] = t31;
|
983
|
+
$[53] = variant;
|
984
|
+
$[54] = t32;
|
985
|
+
} else {
|
986
|
+
t32 = $[54];
|
985
987
|
}
|
986
988
|
return t32;
|
987
989
|
});
|