@firecms/core 3.0.0-canary.153 → 3.0.0-canary.154
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/form/field_bindings/SwitchFieldBinding.d.ts +1 -2
- package/dist/index.es.js +5 -5
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +5 -5
- package/dist/index.umd.js.map +1 -1
- package/dist/types/auth.d.ts +2 -0
- package/package.json +129 -125
- package/src/components/EntityPreview.tsx +1 -1
- package/src/contexts/SnackbarProvider.tsx +2 -0
- package/src/core/FireCMS.tsx +3 -0
- package/src/form/field_bindings/SwitchFieldBinding.tsx +25 -25
- package/src/types/auth.tsx +2 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { FieldProps } from "../../types";
|
|
3
2
|
type SwitchFieldProps = FieldProps<boolean>;
|
|
4
3
|
/**
|
|
@@ -8,5 +7,5 @@ type SwitchFieldProps = FieldProps<boolean>;
|
|
|
8
7
|
* and tables to the specified properties.
|
|
9
8
|
* @group Form fields
|
|
10
9
|
*/
|
|
11
|
-
export declare const SwitchFieldBinding:
|
|
10
|
+
export declare const SwitchFieldBinding: ({ propertyKey, value, setValue, error, showError, autoFocus, disabled, size, property, includeDescription }: SwitchFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
11
|
export {};
|
package/dist/index.es.js
CHANGED
|
@@ -5088,7 +5088,7 @@ function EntityPreview({
|
|
|
5088
5088
|
children: entity.id
|
|
5089
5089
|
}
|
|
5090
5090
|
) }) : /* @__PURE__ */ jsx(Skeleton, {})),
|
|
5091
|
-
titleProperty && /* @__PURE__ */ jsx("div", { className: "my-0.5 text-sm font-
|
|
5091
|
+
titleProperty && /* @__PURE__ */ jsx("div", { className: "my-0.5 text-sm font-medium", children: entity ? /* @__PURE__ */ jsx(
|
|
5092
5092
|
PropertyPreview,
|
|
5093
5093
|
{
|
|
5094
5094
|
propertyKey: titleProperty,
|
|
@@ -15928,7 +15928,7 @@ function TextFieldBinding({
|
|
|
15928
15928
|
)
|
|
15929
15929
|
] });
|
|
15930
15930
|
}
|
|
15931
|
-
const SwitchFieldBinding =
|
|
15931
|
+
const SwitchFieldBinding = function SwitchFieldBinding2({
|
|
15932
15932
|
propertyKey,
|
|
15933
15933
|
value,
|
|
15934
15934
|
setValue,
|
|
@@ -15936,10 +15936,10 @@ const SwitchFieldBinding = React__default.forwardRef(function SwitchFieldBinding
|
|
|
15936
15936
|
showError,
|
|
15937
15937
|
autoFocus,
|
|
15938
15938
|
disabled,
|
|
15939
|
-
size = "
|
|
15939
|
+
size = "large",
|
|
15940
15940
|
property,
|
|
15941
15941
|
includeDescription
|
|
15942
|
-
}
|
|
15942
|
+
}) {
|
|
15943
15943
|
useClearRestoreValue({
|
|
15944
15944
|
property,
|
|
15945
15945
|
value,
|
|
@@ -15976,7 +15976,7 @@ const SwitchFieldBinding = React__default.forwardRef(function SwitchFieldBinding
|
|
|
15976
15976
|
}
|
|
15977
15977
|
)
|
|
15978
15978
|
] });
|
|
15979
|
-
}
|
|
15979
|
+
};
|
|
15980
15980
|
function DateTimeFieldBinding({
|
|
15981
15981
|
propertyKey,
|
|
15982
15982
|
value,
|