@firecms/ui 3.0.0-canary.231 → 3.0.0-canary.232
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/Select.d.ts +1 -2
- package/dist/index.es.js +26 -27
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +26 -27
- package/dist/index.umd.js.map +1 -1
- package/package.json +3 -2
- package/src/components/Button.tsx +1 -1
- package/src/components/LoadingButton.tsx +1 -1
- package/src/components/Select.tsx +26 -29
package/dist/index.umd.js
CHANGED
@@ -879,7 +879,7 @@
|
|
879
879
|
"border border-transparent text-secondary hover:text-secondary hover:bg-surface-accent-200 hover:bg-opacity-75 dark:hover:bg-surface-accent-800": t14,
|
880
880
|
"border border-transparent text-red-500 hover:text-red-500 hover:bg-red-500 hover:bg-opacity-10": t15,
|
881
881
|
"border border-transparent text-text-primary hover:text-text-primary dark:text-text-primary-dark hover:dark:text-text-primary-dark hover:bg-surface-accent-200 hover:dark:bg-surface-700": t16,
|
882
|
-
"border border-transparent text-text-primary hover:text-text-primary hover:bg-surface-accent-200 dark:text-text-primary-dark dark:hover:bg-surface-accent-700": t17,
|
882
|
+
"border border-transparent text-text-primary hover:text-text-primary hover:bg-surface-accent-200 dark:text-text-primary-dark dark:hover:text-text-primary-dark dark:hover:bg-surface-accent-700": t17,
|
883
883
|
"border border-primary text-primary hover:text-primary hover:bg-primary-bg": t18,
|
884
884
|
"border border-secondary text-secondary hover:text-secondary hover:bg-secondary-bg": t19,
|
885
885
|
"border border-red-500 text-red-500 hover:text-red-500 hover:bg-red-500 hover:text-white": t20,
|
@@ -28718,7 +28718,7 @@
|
|
28718
28718
|
});
|
28719
28719
|
Label.displayName = LabelPrimitive__namespace.Root.displayName;
|
28720
28720
|
function LoadingButton(t0) {
|
28721
|
-
const $ = reactCompilerRuntime.c(
|
28721
|
+
const $ = reactCompilerRuntime.c(18);
|
28722
28722
|
let children;
|
28723
28723
|
let disabled;
|
28724
28724
|
let loading;
|
@@ -28752,31 +28752,32 @@
|
|
28752
28752
|
const t1 = loading || disabled;
|
28753
28753
|
const t2 = props.component;
|
28754
28754
|
let t3;
|
28755
|
-
if ($[7] !== loading) {
|
28756
|
-
t3 = loading && /* @__PURE__ */ jsxRuntime.jsx(CircularProgress, { size: "small" });
|
28755
|
+
if ($[7] !== loading || $[8] !== props.size) {
|
28756
|
+
t3 = loading && /* @__PURE__ */ jsxRuntime.jsx(CircularProgress, { size: props.size === "small" ? "smallest" : "small" });
|
28757
28757
|
$[7] = loading;
|
28758
|
-
$[8] =
|
28758
|
+
$[8] = props.size;
|
28759
|
+
$[9] = t3;
|
28759
28760
|
} else {
|
28760
|
-
t3 = $[
|
28761
|
+
t3 = $[9];
|
28761
28762
|
}
|
28762
28763
|
const t4 = !loading && startIcon;
|
28763
28764
|
let t5;
|
28764
|
-
if ($[
|
28765
|
+
if ($[10] !== children || $[11] !== onClick || $[12] !== props || $[13] !== t1 || $[14] !== t2 || $[15] !== t3 || $[16] !== t4) {
|
28765
28766
|
t5 = /* @__PURE__ */ jsxRuntime.jsxs(Button, { disabled: t1, onClick, component: t2, ...props, children: [
|
28766
28767
|
t3,
|
28767
28768
|
t4,
|
28768
28769
|
children
|
28769
28770
|
] });
|
28770
|
-
$[
|
28771
|
-
$[
|
28772
|
-
$[
|
28773
|
-
$[
|
28774
|
-
$[
|
28775
|
-
$[
|
28776
|
-
$[
|
28777
|
-
$[
|
28771
|
+
$[10] = children;
|
28772
|
+
$[11] = onClick;
|
28773
|
+
$[12] = props;
|
28774
|
+
$[13] = t1;
|
28775
|
+
$[14] = t2;
|
28776
|
+
$[15] = t3;
|
28777
|
+
$[16] = t4;
|
28778
|
+
$[17] = t5;
|
28778
28779
|
} else {
|
28779
|
-
t5 = $[
|
28780
|
+
t5 = $[17];
|
28780
28781
|
}
|
28781
28782
|
return t5;
|
28782
28783
|
}
|
@@ -30630,13 +30631,12 @@
|
|
30630
30631
|
});
|
30631
30632
|
Select.displayName = "Select";
|
30632
30633
|
function SelectItem(t0) {
|
30633
|
-
const $ = reactCompilerRuntime.c(
|
30634
|
+
const $ = reactCompilerRuntime.c(11);
|
30634
30635
|
const {
|
30635
30636
|
value,
|
30636
30637
|
children,
|
30637
30638
|
disabled,
|
30638
|
-
className
|
30639
|
-
onClick
|
30639
|
+
className
|
30640
30640
|
} = t0;
|
30641
30641
|
const stringValue = String(value);
|
30642
30642
|
const t1 = disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer";
|
@@ -30665,19 +30665,18 @@
|
|
30665
30665
|
t4 = $[5];
|
30666
30666
|
}
|
30667
30667
|
let t5;
|
30668
|
-
if ($[6] !== disabled || $[7] !==
|
30669
|
-
t5 = /* @__PURE__ */ jsxRuntime.jsxs(SelectPrimitive__namespace.Item, { value: stringValue, disabled,
|
30668
|
+
if ($[6] !== disabled || $[7] !== stringValue || $[8] !== t2 || $[9] !== t3) {
|
30669
|
+
t5 = /* @__PURE__ */ jsxRuntime.jsxs(SelectPrimitive__namespace.Item, { value: stringValue, disabled, className: t2, children: [
|
30670
30670
|
t3,
|
30671
30671
|
t4
|
30672
30672
|
] }, stringValue);
|
30673
30673
|
$[6] = disabled;
|
30674
|
-
$[7] =
|
30675
|
-
$[8] =
|
30676
|
-
$[9] =
|
30677
|
-
$[10] =
|
30678
|
-
$[11] = t5;
|
30674
|
+
$[7] = stringValue;
|
30675
|
+
$[8] = t2;
|
30676
|
+
$[9] = t3;
|
30677
|
+
$[10] = t5;
|
30679
30678
|
} else {
|
30680
|
-
t5 = $[
|
30679
|
+
t5 = $[10];
|
30681
30680
|
}
|
30682
30681
|
return t5;
|
30683
30682
|
}
|