/** @jsxImportSource @webstudio-is/template */
import {
css,
PlaceholderValue,
setInstanceMeta,
type TemplateMeta,
} from "@webstudio-is/template";
import {
Alert as AlertComponent,
Blockquote,
Bold,
Box,
Button,
Checkbox,
Fragment,
Heading,
HtmlEmbed,
Image,
Input,
Italic,
JsonLd,
Label,
Link,
List,
ListItem,
Paragraph,
RadioButton,
RichTextLink,
Separator,
Span,
Subscript,
Superscript,
Text,
Textarea,
Time,
Video,
} from "./components";
const sampleImage =
"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 360'%3E%3Crect width='640' height='360' fill='%23eef2ff'/%3E%3Cpath d='M96 264l120-120 88 88 56-56 184 184H96z' fill='%2394a3b8'/%3E%3Ccircle cx='456' cy='112' r='44' fill='%23f59e0b'/%3E%3C/svg%3E";
export const Alert: TemplateMeta = {
category: "typography",
description: "Highlight information that deserves extra attention.",
template: (
{new PlaceholderValue("Add helpful context here.")}
),
};
const BlockquoteTemplate: TemplateMeta = {
category: "typography",
description: "A quoted customer insight or design principle.",
template: (
{
new PlaceholderValue(
"Operations teams need interfaces that make the next action obvious."
)
}
),
};
const BoldTemplate: TemplateMeta = {
category: "typography",
template: {new PlaceholderValue("Critical update")},
};
const BoxTemplate: TemplateMeta = {
category: "general",
template: setInstanceMeta(
{ label: "Example Card" },
{new PlaceholderValue("Component example container")}
),
};
const ButtonTemplate: TemplateMeta = {
category: "forms",
template: ,
};
const CheckboxTemplate: TemplateMeta = {
category: "forms",
template: ,
};
const FragmentTemplate: TemplateMeta = {
category: "general",
template: (
{new PlaceholderValue("Reusable fragment content")}
),
};
const HeadingTemplate: TemplateMeta = {
category: "typography",
template: (
{new PlaceholderValue("Operational UI pattern")}
),
};
const HtmlEmbedTemplate: TemplateMeta = {
category: "media",
template: (
),
};
const JsonLdTemplate: TemplateMeta = {
category: "general",
order: 6,
template: (
),
};
const ImageTemplate: TemplateMeta = {
category: "media",
template: (
),
};
const InputTemplate: TemplateMeta = {
category: "forms",
template: ,
};
const ItalicTemplate: TemplateMeta = {
category: "typography",
template: {new PlaceholderValue("Draft state")},
};
const LabelTemplate: TemplateMeta = {
category: "forms",
template: ,
};
const LinkTemplate: TemplateMeta = {
category: "general",
template: (
{new PlaceholderValue("View components")}
),
};
const ListTemplate: TemplateMeta = {
category: "typography",
template: (
{new PlaceholderValue("Triage incoming requests")}
{new PlaceholderValue("Assign an owner")}
{new PlaceholderValue("Resolve before SLA")}
),
};
const ListItemTemplate: TemplateMeta = {
category: "typography",
template: {new PlaceholderValue("Review queue health")},
};
const ParagraphTemplate: TemplateMeta = {
category: "typography",
template: (
{
new PlaceholderValue(
"Use these patterns to compose dense operational screens that stay readable under pressure."
)
}
),
};
const RadioButtonTemplate: TemplateMeta = {
category: "forms",
template: (
),
};
const RichTextLinkTemplate: TemplateMeta = {
category: "typography",
template: (
{new PlaceholderValue("Read the usage guidelines")}
),
};
const SeparatorTemplate: TemplateMeta = {
category: "general",
template: ,
};
const SpanTemplate: TemplateMeta = {
category: "typography",
template: {new PlaceholderValue("Inline status")},
};
const SubscriptTemplate: TemplateMeta = {
category: "typography",
template: {new PlaceholderValue("beta")},
};
const SuperscriptTemplate: TemplateMeta = {
category: "typography",
template: {new PlaceholderValue("new")},
};
const TextTemplate: TemplateMeta = {
category: "typography",
template: {new PlaceholderValue("System message")},
};
const TextareaTemplate: TemplateMeta = {
category: "forms",
template: ,
};
const TimeTemplate: TemplateMeta = {
category: "typography",
template: (
),
};
const VideoTemplate: TemplateMeta = {
category: "media",
template: ,
};
export const templates = [
Alert,
BlockquoteTemplate,
BoldTemplate,
BoxTemplate,
ButtonTemplate,
CheckboxTemplate,
FragmentTemplate,
HeadingTemplate,
HtmlEmbedTemplate,
ImageTemplate,
InputTemplate,
ItalicTemplate,
JsonLdTemplate,
LabelTemplate,
LinkTemplate,
ListTemplate,
ListItemTemplate,
ParagraphTemplate,
RadioButtonTemplate,
RichTextLinkTemplate,
SeparatorTemplate,
SpanTemplate,
SubscriptTemplate,
SuperscriptTemplate,
TextTemplate,
TextareaTemplate,
TimeTemplate,
VideoTemplate,
].map((meta) => ({ meta }));