@firecms/ui 3.0.0-canary.231 → 3.0.0-canary.233
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
@@ -30,9 +30,8 @@ export type SelectItemProps<T extends SelectValue = string> = {
|
|
30
30
|
children?: React.ReactNode;
|
31
31
|
disabled?: boolean;
|
32
32
|
className?: string;
|
33
|
-
onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
34
33
|
};
|
35
|
-
export declare function SelectItem<T extends SelectValue = string>({ value, children, disabled, className
|
34
|
+
export declare function SelectItem<T extends SelectValue = string>({ value, children, disabled, className }: SelectItemProps<T>): import("react/jsx-runtime").JSX.Element;
|
36
35
|
export type SelectGroupProps = {
|
37
36
|
label: React.ReactNode;
|
38
37
|
children: React.ReactNode;
|
package/dist/index.es.js
CHANGED
@@ -869,7 +869,7 @@ const ButtonInner = React__default.forwardRef((t0, ref) => {
|
|
869
869
|
"border border-transparent text-secondary hover:text-secondary hover:bg-surface-accent-200 hover:bg-opacity-75 dark:hover:bg-surface-accent-800": t14,
|
870
870
|
"border border-transparent text-red-500 hover:text-red-500 hover:bg-red-500 hover:bg-opacity-10": t15,
|
871
871
|
"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,
|
872
|
-
"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,
|
872
|
+
"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,
|
873
873
|
"border border-primary text-primary hover:text-primary hover:bg-primary-bg": t18,
|
874
874
|
"border border-secondary text-secondary hover:text-secondary hover:bg-secondary-bg": t19,
|
875
875
|
"border border-red-500 text-red-500 hover:text-red-500 hover:bg-red-500 hover:text-white": t20,
|
@@ -28708,7 +28708,7 @@ const Label = React.forwardRef((t0, ref) => {
|
|
28708
28708
|
});
|
28709
28709
|
Label.displayName = LabelPrimitive.Root.displayName;
|
28710
28710
|
function LoadingButton(t0) {
|
28711
|
-
const $ = c(
|
28711
|
+
const $ = c(18);
|
28712
28712
|
let children;
|
28713
28713
|
let disabled;
|
28714
28714
|
let loading;
|
@@ -28742,31 +28742,32 @@ function LoadingButton(t0) {
|
|
28742
28742
|
const t1 = loading || disabled;
|
28743
28743
|
const t2 = props.component;
|
28744
28744
|
let t3;
|
28745
|
-
if ($[7] !== loading) {
|
28746
|
-
t3 = loading && /* @__PURE__ */ jsx(CircularProgress, { size: "small" });
|
28745
|
+
if ($[7] !== loading || $[8] !== props.size) {
|
28746
|
+
t3 = loading && /* @__PURE__ */ jsx(CircularProgress, { size: props.size === "small" ? "smallest" : "small" });
|
28747
28747
|
$[7] = loading;
|
28748
|
-
$[8] =
|
28748
|
+
$[8] = props.size;
|
28749
|
+
$[9] = t3;
|
28749
28750
|
} else {
|
28750
|
-
t3 = $[
|
28751
|
+
t3 = $[9];
|
28751
28752
|
}
|
28752
28753
|
const t4 = !loading && startIcon;
|
28753
28754
|
let t5;
|
28754
|
-
if ($[
|
28755
|
+
if ($[10] !== children || $[11] !== onClick || $[12] !== props || $[13] !== t1 || $[14] !== t2 || $[15] !== t3 || $[16] !== t4) {
|
28755
28756
|
t5 = /* @__PURE__ */ jsxs(Button, { disabled: t1, onClick, component: t2, ...props, children: [
|
28756
28757
|
t3,
|
28757
28758
|
t4,
|
28758
28759
|
children
|
28759
28760
|
] });
|
28760
|
-
$[
|
28761
|
-
$[
|
28762
|
-
$[
|
28763
|
-
$[
|
28764
|
-
$[
|
28765
|
-
$[
|
28766
|
-
$[
|
28767
|
-
$[
|
28761
|
+
$[10] = children;
|
28762
|
+
$[11] = onClick;
|
28763
|
+
$[12] = props;
|
28764
|
+
$[13] = t1;
|
28765
|
+
$[14] = t2;
|
28766
|
+
$[15] = t3;
|
28767
|
+
$[16] = t4;
|
28768
|
+
$[17] = t5;
|
28768
28769
|
} else {
|
28769
|
-
t5 = $[
|
28770
|
+
t5 = $[17];
|
28770
28771
|
}
|
28771
28772
|
return t5;
|
28772
28773
|
}
|
@@ -30620,13 +30621,12 @@ const Select = forwardRef(({
|
|
30620
30621
|
});
|
30621
30622
|
Select.displayName = "Select";
|
30622
30623
|
function SelectItem(t0) {
|
30623
|
-
const $ = c(
|
30624
|
+
const $ = c(11);
|
30624
30625
|
const {
|
30625
30626
|
value,
|
30626
30627
|
children,
|
30627
30628
|
disabled,
|
30628
|
-
className
|
30629
|
-
onClick
|
30629
|
+
className
|
30630
30630
|
} = t0;
|
30631
30631
|
const stringValue = String(value);
|
30632
30632
|
const t1 = disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer";
|
@@ -30655,19 +30655,18 @@ function SelectItem(t0) {
|
|
30655
30655
|
t4 = $[5];
|
30656
30656
|
}
|
30657
30657
|
let t5;
|
30658
|
-
if ($[6] !== disabled || $[7] !==
|
30659
|
-
t5 = /* @__PURE__ */ jsxs(SelectPrimitive.Item, { value: stringValue, disabled,
|
30658
|
+
if ($[6] !== disabled || $[7] !== stringValue || $[8] !== t2 || $[9] !== t3) {
|
30659
|
+
t5 = /* @__PURE__ */ jsxs(SelectPrimitive.Item, { value: stringValue, disabled, className: t2, children: [
|
30660
30660
|
t3,
|
30661
30661
|
t4
|
30662
30662
|
] }, stringValue);
|
30663
30663
|
$[6] = disabled;
|
30664
|
-
$[7] =
|
30665
|
-
$[8] =
|
30666
|
-
$[9] =
|
30667
|
-
$[10] =
|
30668
|
-
$[11] = t5;
|
30664
|
+
$[7] = stringValue;
|
30665
|
+
$[8] = t2;
|
30666
|
+
$[9] = t3;
|
30667
|
+
$[10] = t5;
|
30669
30668
|
} else {
|
30670
|
-
t5 = $[
|
30669
|
+
t5 = $[10];
|
30671
30670
|
}
|
30672
30671
|
return t5;
|
30673
30672
|
}
|