UNPKG

@upstart.gg/sdk

Version:

You can test the CLI without recompiling by running:

45 lines (43 loc) 1.42 kB
import { cssLength } from "./css-length.js"; import { alignSelf } from "./align.js"; import { grow } from "./grow.js"; import { Type } from "@sinclair/typebox"; //#region src/shared/bricks/props/common.ts function hidden() { return Type.Object({ desktop: Type.Optional(Type.Boolean()), mobile: Type.Optional(Type.Boolean()) }, { title: "Hidden", description: "Used to hide the brick on desktop or mobile.", "ui:field": "hidden" }); } const commonProps = { lastTouched: Type.Optional(Type.Number({ "ui:field": "hidden", "ai:hidden": true })), hidden: Type.Optional(hidden()), editable: Type.Optional(Type.Boolean({ "ui:field": "hidden", "ai:hidden": true })), width: Type.Optional(cssLength({ title: "Fixed Width", description: "Set a fixed width for the brick. If not set, the brick will be responsive and will follow the flex layout of its parent section.", "ai:instructions": "Use percentage values to make the width responsive, like '50%'", "ui:field": "hidden" })), height: Type.Optional(cssLength({ title: "Fixed height", description: "Set a fixed height for the brick. If not set, the brick will be responsive and will follow the flex layout of its parent section.", "ui:field": "hidden" })), grow: Type.Optional(grow()), alignSelf: Type.Optional(alignSelf()) }; Type.Object(commonProps); //#endregion export { commonProps, hidden }; //# sourceMappingURL=common.js.map