UNPKG

@upstart.gg/sdk

Version:

You can test the CLI without recompiling by running:

32 lines (30 loc) 894 B
import { number } from "./number.js"; import { Type } from "@sinclair/typebox"; //#region src/shared/bricks/props/geolocation.ts function geolocation(opts = {}) { const { title = "Location", defaultZoom } = opts; return Type.Object({ lat: number("Latitude", { "ui:field": "hidden" }), lng: number("Longitude", { "ui:field": "hidden" }), address: Type.String({ title: "Address", "ui:field": "geoaddress" }), tooltip: Type.Optional(Type.String({ title: "Tooltip" })), zoom: Type.Optional(number("Zoom", { description: "Zoom level for the map", "ui:instructions": "The zoom level should be between 0 (world view) and 21 (street view).", "ui:field": "slider", minimum: 12, maximum: 18, default: defaultZoom })) }, { title, metadata: { category: "content" }, ...opts }); } //#endregion export { geolocation }; //# sourceMappingURL=geolocation.js.map