@sanity/color-input

6.1.86.1.9
dist/index.d.ts
~dist/index.d.tsModified
+7−3
Index: package/dist/index.d.ts
===================================================================
--- package/dist/index.d.ts
+++ package/dist/index.d.ts
@@ -1,8 +1,13 @@
 import "@sanity/ui/styles.css";
 import { ObjectDefinition, ObjectInputProps, ObjectOptions, ObjectSchemaType } from "sanity";
 import "react";
-declare function ColorInput$1(props: ObjectInputProps): React.JSX.Element;
+/**
+ * The document form suspends as one tree, and that tree includes the field
+ * group tabs. Loading the picker here keeps that fallback inside the field,
+ * so the tabs stay mounted and keep the width they already measured.
+ */
+export declare function ColorInput(props: ObjectInputProps): import("react").JSX.Element;
 interface HEXColor {
   hex: string;
   source?: string | undefined;
 }
@@ -59,9 +64,9 @@
   name: "color";
   type: "object";
   title: string;
   components: {
-    input: import("react").LazyExoticComponent<typeof ColorInput$1>;
+    input: typeof ColorInput;
   };
   fields: {
     title: string;
     name: string;
@@ -119,8 +124,7 @@
     type: "number";
     title: string;
   }[];
 };
-export declare const ColorInput: import("react").LazyExoticComponent<typeof ColorInput$1>;
 export declare const colorInput: import("sanity").Plugin<void>;
 export type { ColorDefinition, ColorInputProps, ColorOptions, ColorSchemaType, ColorValue };
 //# sourceMappingURL=index.d.ts.map
\ No newline at end of file