import { a as o } from "./chunk-EJGNYD4V.js";
import { Type as e } from "@sinclair/typebox";
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
function s(a = {}) {
  let { default: t, colorType: i = "background", ...r } = a;
  return e.Object({ color: e.Optional(e.String({ default: t?.color, title: "Color", description: "Use `bg-<variant>-<shade>`, variants being 'primary', 'secondary', 'accent' and 'neutral', and shades between 50 and 900. Can also be a gradient using 'bg-gradient-to-<direction> from-<color> to-<color>'", examples: ["bg-primary", "bg-base-100", "bg-primary-50", "bg-primary-500", "bg-accent-900"] })), image: e.Optional(e.String({ title: "Image", description: "The background image. Can be a URL or a data URI", examples: ["https://example.com/image.png", "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA..."] })), size: e.Optional(e.Union([e.Literal("auto", { title: "Auto" }), e.Literal("cover", { title: "Cover" }), e.Literal("contain", { title: "Contain" })], { default: t?.size ?? "auto", "ai:instructions": "Only use this when the image is set." })), repeat: e.Optional(e.Union([e.Literal("no-repeat", { title: "No repeat" }), e.Literal("repeat", { title: "Repeat" }), e.Literal("repeat-x", { title: "Repeat horizontally" }), e.Literal("repeat-y", { title: "Repeat vertically" }), e.Literal("space", { title: "Space" }), e.Literal("round", { title: "Round" })], { default: t?.repeat ?? "no-repeat", "ai:instructions": "Only use this when the image is set." })) }, { $id: "styles:background", "ui:styleId": "styles:background", "ui:field": "background", "ui:group": "background", "ui:group:title": "Background", "ui:color-type": i, title: "Background", default: t ? { color: t.color, size: t.size, repeat: t.repeat } : void 0, ...r });
}
function c(a = {}) {
  return e.String({ title: "Background color", $id: "styles:backgroundColor", "ai:instructions": "Can be set to transparent, hex/rgb/rgba color, or classes like `bg-<variant>-<shade>`, variants being primary, secondary, accent and neutral, and shades between 100 and 900. Use bg-<variant>-<shade> classes as much as possible.", "ui:field": "color", "ui:color-type": "background", "ui:styleId": "styles:backgroundColor", "ui:responsive": "desktop", ...a });
}
function u(a = {}) {
  return o("styles:backgroundColor", a);
}
export {
  s as a,
  c,
  u as d
};
//# sourceMappingURL=chunk-VPFCY4DH.js.map
