@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.es.js
CHANGED
@@ -34,8 +34,8 @@ const fieldBackgroundDisabledMixin = "dark:bg-surface-800 bg-opacity-50 dark:bg-
|
|
34
34
|
const fieldBackgroundHoverMixin = "hover:bg-opacity-70 dark:hover:bg-surface-700 dark:hover:bg-opacity-40";
|
35
35
|
const defaultBorderMixin = "border-surface-200 border-opacity-40 dark:border-surface-700 dark:border-opacity-40";
|
36
36
|
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";
|
37
|
-
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
|
38
|
-
const cardClickableMixin = "hover:bg-
|
37
|
+
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";
|
38
|
+
const cardClickableMixin = "hover:bg-surface-accent-100 dark:hover:bg-surface-accent-800 hover:ring-2 hover:ring-primary cursor-pointer";
|
39
39
|
const cardSelectedMixin = "bg-primary-bg dark:bg-primary-bg bg-opacity-30 dark:bg-opacity-10 ring-1 ring-primary ring-opacity-75";
|
40
40
|
function cls(...classes) {
|
41
41
|
return twMerge(clsx(classes));
|
@@ -789,7 +789,7 @@ const BooleanSwitchWithLabel = function BooleanSwitchWithLabel2({
|
|
789
789
|
] });
|
790
790
|
};
|
791
791
|
const ButtonInner = React__default.forwardRef((t0, ref) => {
|
792
|
-
const $ = c(
|
792
|
+
const $ = c(55);
|
793
793
|
let Component;
|
794
794
|
let children;
|
795
795
|
let className;
|
@@ -956,22 +956,24 @@ const ButtonInner = React__default.forwardRef((t0, ref) => {
|
|
956
956
|
}
|
957
957
|
const t31 = props;
|
958
958
|
let t32;
|
959
|
-
if ($[44] !== children || $[45] !== disabled || $[46] !==
|
960
|
-
t32 = /* @__PURE__ */ jsxs("button", { ref: t26, type: t27, onClick: t28, className: t29, disabled, ...t31, children: [
|
959
|
+
if ($[44] !== children || $[45] !== disabled || $[46] !== size || $[47] !== startIcon || $[48] !== t26 || $[49] !== t27 || $[50] !== t28 || $[51] !== t29 || $[52] !== t31 || $[53] !== variant) {
|
960
|
+
t32 = /* @__PURE__ */ jsxs("button", { ref: t26, type: t27, onClick: t28, className: t29, disabled, "data-variant": variant, "data-size": size, ...t31, children: [
|
961
961
|
startIcon,
|
962
962
|
children
|
963
963
|
] });
|
964
964
|
$[44] = children;
|
965
965
|
$[45] = disabled;
|
966
|
-
$[46] =
|
967
|
-
$[47] =
|
968
|
-
$[48] =
|
969
|
-
$[49] =
|
970
|
-
$[50] =
|
971
|
-
$[51] =
|
972
|
-
$[52] =
|
973
|
-
|
974
|
-
|
966
|
+
$[46] = size;
|
967
|
+
$[47] = startIcon;
|
968
|
+
$[48] = t26;
|
969
|
+
$[49] = t27;
|
970
|
+
$[50] = t28;
|
971
|
+
$[51] = t29;
|
972
|
+
$[52] = t31;
|
973
|
+
$[53] = variant;
|
974
|
+
$[54] = t32;
|
975
|
+
} else {
|
976
|
+
t32 = $[54];
|
975
977
|
}
|
976
978
|
return t32;
|
977
979
|
});
|