@sanity/rich-date-input

4.1.24.1.3
dist/index.js
~dist/index.jsModified
+32−30
Index: package/dist/index.js
===================================================================
--- package/dist/index.js
+++ package/dist/index.js
@@ -1,13 +1,15 @@
+import "@sanity/ui/styles.css";
 import { DateTimeInput, ObjectInputMember, defineField, definePlugin, defineType, set, unset } from "sanity";
 import { c } from "react/compiler-runtime";
-import { Autocomplete, Box, Button, Card, Dialog, Flex, Text } from "@sanity/ui";
+import { Box, Button, Card, Dialog, Flex, Text } from "@sanity/ui";
 import { useState } from "react";
 import { TZDate, tz, tzOffset } from "@date-fns/tz";
 import { format } from "date-fns/format";
 import { Fragment, jsx, jsxs } from "react/jsx-runtime";
 import { EarthAmericasIcon } from "@sanity/icons/EarthAmericas";
 import { SearchIcon } from "@sanity/icons/Search";
+import { Autocomplete } from "@sanity/ui/autocomplete";
 /**
 * Formats `date` as seen in `timeZone`, using date-fns v4's `in` context
 * option with the official `@date-fns/tz` package (the replacement for
 * `date-fns-tz`'s `formatInTimeZone`).
@@ -275,38 +277,38 @@
 }
 function _temp2(member_0) {
 	return member_0.kind === "field" && member_0.name === "timezone";
 }
-const richDate = definePlugin({
+const richDateSchema = defineType({
+	name: "richDate",
+	title: "Rich Date",
+	type: "object",
+	fields: [
+		defineField({
+			name: "local",
+			title: "Local",
+			type: "string"
+		}),
+		defineField({
+			name: "utc",
+			title: "UTC",
+			type: "string"
+		}),
+		defineField({
+			name: "timezone",
+			title: "Timezone",
+			type: "string"
+		}),
+		defineField({
+			name: "offset",
+			title: "Offset",
+			type: "number"
+		})
+	],
+	components: { input: RichDateInput }
+}), richDate = definePlugin({
 	name: "v3-rich-date-input",
-	schema: { types: [defineType({
-		name: "richDate",
-		title: "Rich Date",
-		type: "object",
-		fields: [
-			defineField({
-				name: "local",
-				title: "Local",
-				type: "string"
-			}),
-			defineField({
-				name: "utc",
-				title: "UTC",
-				type: "string"
-			}),
-			defineField({
-				name: "timezone",
-				title: "Timezone",
-				type: "string"
-			}),
-			defineField({
-				name: "offset",
-				title: "Offset",
-				type: "number"
-			})
-		],
-		components: { input: RichDateInput }
-	})] }
+	schema: { types: [richDateSchema] }
 });
 export { richDate };
 
 //# sourceMappingURL=index.js.map
\ No newline at end of file